@sanity/sfcc

1.0.361.0.37
~

Modified (3 files)

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@sanity/sfcc",
-  "version": "1.0.36",
+  "version": "1.0.37",
   "description": "Sanity plugin for Salesforce Commerce Cloud (SFCC) integration — synced product and category data with editorial enrichment.",
   "keywords": [
     "salesforce-commerce-cloud",
     "sanity",
@@ -29,22 +29,22 @@
     "./package.json": "./package.json"
   },
   "dependencies": {
     "@sanity/icons": "^5.2.3",
-    "@sanity/ui": "^4.4.0"
+    "@sanity/ui": "^4.4.4"
   },
   "devDependencies": {
     "@sanity/tsconfig": "^2.2.1",
-    "@sanity/tsdown-config": "^0.27.1",
+    "@sanity/tsdown-config": "^0.28.8",
     "@types/node": "^24.13.3",
     "@types/react": "^19.3.0",
     "@types/react-dom": "^19.3.0",
     "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/schemas/category.tsx","../src/schemas/product.tsx","../src/structure/categoryStructure.ts","../src/structure/productStructure.ts","../src/components/SfccDocumentStatus.tsx","../src/components/SfccOfflineBanner.tsx","../src/index.ts"],"mappings":";;;;;;;;;;;;cAYa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CA;EACX;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF,UAAO,UAAA,aAAA,OAAA,MAAA,YAAA,mBAAA,YAAA,UAAA;IAWL;IACA;MAAe;;IACf;IACA;IACA;IACA;MAAqB;;IACrB;IACA;IACA;;IASE;IACA;IACA,uBAAK,IAAA;;;;;;;;;;;cCtFE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+IA;;IAET;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEiB,QAAA;IACjB;MAAQ;;IACR;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;;;;;cChLS,oBAAiB,8BAAA,kBAAA,0BAAA,6CAAA;cCCjB,mBAAgB,8BAAA,kBAAA,0BAAA,6CAAA;KCCxB;EACH;EACA;EACA;EACA,MAAM,IAAI;;cAGN,qBAAkB,OAAW,0BAAK,IAAA;;;;;;;;iBCAxB,qCAAiB,IAAA;;;;;;;cCYpB,oBAAiB,SAAa,oBAAkB,eAAe;;;;;;;;;;cAoB/D,6BAAU"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","names":[],"sources":["../src/schemas/category.tsx","../src/schemas/product.tsx","../src/structure/categoryStructure.ts","../src/structure/productStructure.ts","../src/components/SfccDocumentStatus.tsx","../src/components/SfccOfflineBanner.tsx","../src/index.ts"],"mappings":";;;;;;;;;;;;qBAYa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4CA;EACX;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF,UAAO,UAAA,aAAA,OAAA,MAAA,YAAA,mBAAA,YAAA,UAAA;IAWL;IACA;MAAe;;IACf;IACA;IACA;IACA;MAAqB;;IACrB;IACA;IACA;;IASE;IACA;IACA,uBAAK,IAAA;;;;;;;;;;;qBCtFE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+IA;;IAET;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEiB,QAAA;IACjB;MAAQ;;IACR;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;;;;;qBChLS,oBAAiB,8BAAA,kBAAA,0BAAA,6CAAA;qBCCjB,mBAAgB,8BAAA,kBAAA,0BAAA,6CAAA;KCCxB;EACH;EACA;EACA;EACA,MAAM,IAAI;;cAGN,qBAAkB,OAAW,0BAAK,IAAA;;;;;;;;wBCAxB,qCAAiB,IAAA;;;;;;;qBCYpB,oBAAiB,SAAa,oBAAkB,eAAe;;;;;;;;;;qBAoB/D,6BAAU"}
\ No newline at end of file
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -9,9 +9,9 @@
  *
  * The field is placed in the `sfcc` group; make sure the document type
  * declares that group.
  */
-declare const sfccCategoryStoreField: {
+export declare const sfccCategoryStoreField: {
   readOnly: true;
   name: "store";
   title: string;
   type: "object";
@@ -73,9 +73,9 @@
 /**
  * Default preview configuration for the `category` document type.
  * Shows Category Name with parent category as subtitle.
  */
-declare const sfccCategoryPreview: {
+export declare const sfccCategoryPreview: {
   select: {
     imageUrl: string;
     isActive: string;
     displayName: string;
@@ -113,9 +113,9 @@
  *
  * The field is placed in the `sfcc` group; make sure the document type
  * declares that group.
  */
-declare const sfccProductStoreField: {
+export declare const sfccProductStoreField: {
   readOnly: true;
   name: "store";
   title: string;
   type: "object";
@@ -303,9 +303,9 @@
  * Default preview configuration for the `product` document type.
  * Shows product type for Master/Simple, and the relevant variation
  * attributes (driven by `store.variationAttributes`) for all products.
  */
-declare const sfccProductPreview: {
+export declare const sfccProductPreview: {
   select: {
     name: string;
     id: string;
     productType: string;
@@ -335,10 +335,10 @@
     subtitle: string;
     media: import("react").JSX.Element;
   };
 };
-declare const categoryStructure: (S: import("sanity/structure").StructureBuilder, context: import("sanity").ConfigContext) => import("sanity/structure").ListItemBuilder;
-declare const productStructure: (S: import("sanity/structure").StructureBuilder, context: import("sanity").ConfigContext) => import("sanity/structure").ListItemBuilder;
+export declare const categoryStructure: (S: import("sanity/structure").StructureBuilder, context: import("sanity").ConfigContext) => import("sanity/structure").ListItemBuilder;
+export declare const productStructure: (S: import("sanity/structure").StructureBuilder, context: import("sanity").ConfigContext) => import("sanity/structure").ListItemBuilder;
 type Props = {
   isDeleted: boolean;
   imageUrl: string;
   title: string;
@@ -351,16 +351,16 @@
  *
  * Reads `store.onlineFlag` (products) and `store.online` (categories) via
  * `useFormValue` so it works without props.
  */
-declare function SfccOfflineBanner(): import("react").JSX.Element | null;
+export declare function SfccOfflineBanner(): import("react").JSX.Element | null;
 /**
  * `renderMembers` callback that injects a caution banner at the top of the
  * document form when the SFCC document is offline or deleted.
  *
  * Usage: add `renderMembers: sfccRenderMembers` to your `defineType` call.
  */
-declare const sfccRenderMembers: (members: ObjectMember[]) => (ObjectMember | DecorationMember)[];
+export declare const sfccRenderMembers: (members: ObjectMember[]) => (ObjectMember | DecorationMember)[];
 /**
  * SFCC plugin — enforces document-level guardrails for synced commerce data:
  *
  * - Replaces the built-in `delete` action with a custom one that also cleans
@@ -368,7 +368,7 @@
  * - Removes the `duplicate` action (documents are managed by SFCC sync).
  * - Hides product / category from the "Create new document" menu
  *   (new documents are only created by the sync process).
  */
-declare const sfccPlugin: import("sanity").Plugin<void>;
-export { SfccDocumentStatus, SfccOfflineBanner, categoryStructure, productStructure, sfccCategoryPreview, sfccCategoryStoreField, sfccPlugin, sfccProductPreview, sfccProductStoreField, sfccRenderMembers };
+export declare const sfccPlugin: import("sanity").Plugin<void>;
+export { SfccDocumentStatus };
 //# sourceMappingURL=index.d.ts.map
\ No newline at end of file