sanity-plugin-shopify-assets
2.0.182.0.19
~
Modified (3 files)
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "sanity-plugin-shopify-assets",
- "version": "2.0.18",
+ "version": "2.0.19",
"description": "Choose assets from your Shopify store in your Sanity Studio",
"keywords": [
"assets",
"images",
@@ -31,9 +31,9 @@
"./package.json": "./package.json"
},
"dependencies": {
"@sanity/icons": "^5.2.3",
- "@sanity/ui": "^4.4.0",
+ "@sanity/ui": "^4.4.4",
"axios": "^1.19.0",
"pretty-bytes": "^6.1.1",
"pretty-ms": "^8.0.0",
"react-infinite-scroll-component": "^6.1.1",
@@ -42,18 +42,18 @@
"video.js": "^7.21.7"
},
"devDependencies": {
"@sanity/tsconfig": "^2.2.1",
- "@sanity/tsdown-config": "^0.27.1",
+ "@sanity/tsdown-config": "^0.28.8",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@types/video.js": "^7.3.58",
"oxc-transform-react": "^0.153.0",
"react": "^19.3.0",
"react-dom": "^19.3.0",
- "sanity": "^6.16.0",
+ "sanity": "^6.18.0",
"styled-components": "^6.5.3",
- "tsdown": "^0.22.14"
+ "tsdown": "^0.23.1"
},
"peerDependencies": {
"react": "^19.2",
"react-dom": "^19.2", Index: package/dist/index.d.ts.map
===================================================================
--- package/dist/index.d.ts.map
+++ package/dist/index.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/index.ts"],"mappings":";;UAEiB;;;;EAIf;;UAGe,gCAAgC;EAC/C;IACE;;;KAIC;UAEY;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;;UAGe;EACf,MAAM;EACN,SAAS;EACT;EACA,MAAM;EACN;;UAGe,cAAc;EAC7B;EACA;EACA;;UAGe;EACf;EACA;;UAGe;EACf,UAAU;EACV,QAAQ;;;YCxCS;SAGH,sBAAsB,KAAK;MACrC;MACA;QACE;;;cAIa;MACf,iBAAiB;;;;cAKV,gCAAa,OAAA"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/index.ts"],"mappings":";;iBAEiB;;;;EAIf;;iBAGe,gCAAgC;EAC/C;IACE;;;KAIC;iBAEY;EACf;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf,MAAM;EACN,SAAS;EACT;EACA,MAAM;EACN;;iBAGe,cAAc;EAC7B;EACA;EACA;;iBAGe;EACf;EACA;;iBAGe;EACf,UAAU;EACV,QAAQ;;;YCxCS;SAGH,sBAAsB,KAAK;MACrC;MACA;QACE;;;cAIa;MACf,iBAAiB;;;;qBAKV,gCAAa,OAAA"}
\ No newline at end of file Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -1,47 +1,47 @@
import "@sanity/ui/styles.css";
import { ObjectDefinition, ObjectSchemaType } from "sanity";
-interface PluginConfig {
+export interface PluginConfig {
/**
* Your *.myshopify.com domain. Do not include https:// or any path.
*/
shopifyDomain: string;
}
-interface ObjectSchemaWithOptions extends ObjectSchemaType {
+export interface ObjectSchemaWithOptions extends ObjectSchemaType {
options: {
shopifyDomain: string;
};
}
type PossibleFileTypes = 'file' | 'image' | 'video';
-interface AssetPreviewImage {
+export interface AssetPreviewImage {
height: number;
url: string;
width: number;
}
-interface AssetMeta {
+export interface AssetMeta {
alt?: string;
duration?: number;
fileSize?: number;
height?: number;
width?: number;
}
-interface ShopifyFile {
+export interface ShopifyFile {
meta: AssetMeta;
preview: AssetPreviewImage;
id: string;
type: PossibleFileTypes;
url: string;
}
-interface Asset extends ShopifyFile {
+export interface Asset extends ShopifyFile {
_type?: string;
_key?: string;
filename?: string;
}
-interface PageInfo {
+export interface PageInfo {
hasNextPage: boolean;
cursor: string;
}
-interface ShopifyAPIResponse {
+export interface ShopifyAPIResponse {
pageInfo: PageInfo;
assets: ShopifyFile[];
}
declare module 'sanity' {
@@ -56,7 +56,7 @@
'shopify.asset': ShopifyAssetTypeDef;
}
}
}
-declare const shopifyAssets: import("sanity").Plugin<PluginConfig>;
-export { Asset, AssetMeta, AssetPreviewImage, ObjectSchemaWithOptions, PageInfo, PluginConfig, ShopifyAPIResponse, ShopifyFile, shopifyAssets };
+export declare const shopifyAssets: import("sanity").Plugin<PluginConfig>;
+export {};
//# sourceMappingURL=index.d.ts.map
\ No newline at end of file