@sanity/sfcc 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,9 +1,5 @@
1
- import * as _$sanity from "sanity";
2
1
  import { DecorationMember, ObjectMember } from "sanity";
3
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
- import * as _$sanity_structure0 from "sanity/structure";
5
2
  import { ListItemBuilder } from "sanity/structure";
6
- import * as _$react from "react";
7
3
  /**
8
4
  * SFCC category store field — contains all read-only data synced from
9
5
  * Salesforce Commerce Cloud. Add this to a `category` document type's
@@ -15,9 +11,9 @@ import * as _$react from "react";
15
11
  declare const sfccCategoryStoreField: {
16
12
  type: "object";
17
13
  name: "store";
18
- } & Omit<_$sanity.ObjectDefinition, "preview"> & {
19
- preview?: _$sanity.PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
20
- } & _$sanity.FieldDefinitionBase & _$sanity.WidenValidation & _$sanity.WidenInitialValue;
14
+ } & Omit<import("sanity").ObjectDefinition, "preview"> & {
15
+ preview?: import("sanity").PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
16
+ } & import("sanity").FieldDefinitionBase & import("sanity").WidenValidation & import("sanity").WidenInitialValue;
21
17
  /**
22
18
  * Default preview configuration for the `category` document type.
23
19
  * Shows Category Name with parent category as subtitle.
@@ -61,7 +57,7 @@ declare const sfccCategoryPreview: {
61
57
  }): {
62
58
  title: string;
63
59
  subtitle: string;
64
- media: _$react_jsx_runtime0.JSX.Element;
60
+ media: import("react/jsx-runtime").JSX.Element;
65
61
  };
66
62
  };
67
63
  /**
@@ -75,9 +71,9 @@ declare const sfccCategoryPreview: {
75
71
  declare const sfccProductStoreField: {
76
72
  type: "object";
77
73
  name: "store";
78
- } & Omit<_$sanity.ObjectDefinition, "preview"> & {
79
- preview?: _$sanity.PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
80
- } & _$sanity.FieldDefinitionBase & _$sanity.WidenValidation & _$sanity.WidenInitialValue;
74
+ } & Omit<import("sanity").ObjectDefinition, "preview"> & {
75
+ preview?: import("sanity").PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
76
+ } & import("sanity").FieldDefinitionBase & import("sanity").WidenValidation & import("sanity").WidenInitialValue;
81
77
  /**
82
78
  * Default preview configuration for the `product` document type.
83
79
  * Shows product type for Master/Simple, and the relevant variation
@@ -112,17 +108,17 @@ declare const sfccProductPreview: {
112
108
  }): {
113
109
  title: string;
114
110
  subtitle: string;
115
- media: _$react_jsx_runtime0.JSX.Element;
111
+ media: import("react/jsx-runtime").JSX.Element;
116
112
  };
117
113
  };
118
- declare const categoryStructure: (S: _$sanity_structure0.StructureBuilder, context: _$sanity.ConfigContext) => ListItemBuilder;
119
- declare const productStructure: (S: _$sanity_structure0.StructureBuilder, context: _$sanity.ConfigContext) => ListItemBuilder;
114
+ declare const categoryStructure: (S: import("sanity/structure").StructureBuilder, context: import("sanity").ConfigContext) => ListItemBuilder;
115
+ declare const productStructure: (S: import("sanity/structure").StructureBuilder, context: import("sanity").ConfigContext) => ListItemBuilder;
120
116
  type Props = {
121
117
  isDeleted: boolean;
122
118
  imageUrl: string;
123
119
  title: string;
124
120
  };
125
- declare const SfccDocumentStatus: _$react.ForwardRefExoticComponent<Props & _$react.RefAttributes<HTMLDivElement>>;
121
+ declare const SfccDocumentStatus: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
126
122
  /**
127
123
  * Decorative banner injected via `renderMembers` that warns editors when a
128
124
  * product or category is offline in SFCC.
@@ -130,7 +126,7 @@ declare const SfccDocumentStatus: _$react.ForwardRefExoticComponent<Props & _$re
130
126
  * Reads `store.onlineFlag` (products) and `store.online` (categories) via
131
127
  * `useFormValue` so it works without props.
132
128
  */
133
- declare function SfccOfflineBanner(): _$react_jsx_runtime0.JSX.Element | null;
129
+ declare function SfccOfflineBanner(): import("react/jsx-runtime").JSX.Element | null;
134
130
  /**
135
131
  * `renderMembers` callback that injects a caution banner at the top of the
136
132
  * document form when the SFCC document is offline or deleted.
@@ -147,6 +143,6 @@ declare const sfccRenderMembers: (members: ObjectMember[]) => (ObjectMember | De
147
143
  * - Hides product / category from the "Create new document" menu
148
144
  * (new documents are only created by the sync process).
149
145
  */
150
- declare const sfccPlugin: _$sanity.Plugin<void>;
146
+ declare const sfccPlugin: import("sanity").Plugin<void>;
151
147
  export { SfccDocumentStatus, SfccOfflineBanner, categoryStructure, productStructure, sfccCategoryPreview, sfccCategoryStoreField, sfccPlugin, sfccProductPreview, sfccProductStoreField, sfccRenderMembers };
152
148
  //# sourceMappingURL=index.d.ts.map
@@ -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":";;;;;;;;;;;;;AAYA;cAAa,sBAAA;;;SAsCX,QAAA,CAAA,gBAAA;;;;;;;cAMW,mBAAA;;;;;;;;;;;;;;;;;;;;;;;IAuBT,QAAA;IACA,WAAA;MAAe,KAAA;IAAA;IACf,KAAA;IACA,IAAA;IACA,UAAA;IACA,iBAAA;MAAqB,KAAA;IAAA;IACrB,UAAA;IACA,QAAA;IACA,QAAA;EAAA;;;;;;;;;;;;;AA3EJ;cCAa,qBAAA;;;SA4HX,QAAA,CAAA,gBAAA;;;;;;;;cAmBW,kBAAA;;;;;;;;;;;;;;IAcT,IAAA;MAAQ,KAAA;IAAA;IACR,EAAA;IACA,WAAA;IACA,mBAAA;IACA,KAAA;IACA,IAAA;IACA,UAAA;IACA,MAAA;IACA,YAAA;IACA,QAAA;EAAA;;;WA8BH,oBAAA,CAAA,GAAA,CAAA,OAAA;EAAA;AAAA;AAAA,cC5MY,iBAAA,GAAiB,CAAA,EAE7B,mBAAA,CAF6B,gBAAA,EAAA,OAAA,EAAA,QAAA,CAAA,aAAA,KAAA,eAAA;AAAA,cCCjB,gBAAA,GAAgB,CAAA,EA+B3B,mBAAA,CA/B2B,gBAAA,EAAA,OAAA,EAAA,QAAA,CAAA,aAAA,KAAA,eAAA;AAAA,KCFxB,KAAA;EACH,SAAA;EACA,QAAA;EACA,KAAA;AAAA;AAAA,cAGI,kBAAA,EAAkB,OAAA,CAAA,yBAAA,CAAA,KAAA,GAAA,OAAA,CAAA,aAAA,CAAA,cAAA;;;;;;;;iBCER,iBAAA,CAAA,GAAiB,oBAAA,CAAA,GAAA,CAAA,OAAA;;ALCjC;;;;;cMUa,iBAAA,GAAqB,OAAA,EAAS,YAAA,QAAkB,YAAA,GAAe,gBAAA;;;;;;;;;;cAoB/D,UAAA,EAeV,QAAA,CAfoB,MAAA"}
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":";;;;;AAYA;;;;;cAAa,sBAAA;;;;;;;;;;cA4CA,mBAAA;;;;;;;;;;;;;;;;;;;;;;;IAuBT,QAAA;IACA,WAAA;MAAe,KAAA;IAAA;IACf,KAAA;IACA,IAAA;IACA,UAAA;IACA,iBAAA;MAAqB,KAAA;IAAA;IACrB,UAAA;IACA,QAAA;IACA,QAAA;EAAA;;;;;;;;;AA3EJ;;;;;cCAa,qBAAA;;;;;;;;;;;cA+IA,kBAAA;;;;;;;;;;;;;;IAcT,IAAA;MAAQ,KAAA;IAAA;IACR,EAAA;IACA,WAAA;IACA,mBAAA;IACA,KAAA;IACA,IAAA;IACA,UAAA;IACA,MAAA;IACA,YAAA;IACA,QAAA;EAAA;;;;;;cC9KS,iBAAA,GAAiB,CAAA,6BAAA,gBAAA,EAAA,OAAA,mBAAA,aAAA,KAAA,eAE7B;AAAA,cCDY,gBAAA,GAAgB,CAAA,6BAAA,gBAAA,EAAA,OAAA,mBAAA,aAAA,KAAA,eA+B3B;AAAA,KCjCG,KAAA;EACH,SAAA;EACA,QAAA;EACA,KAAA;AAAA;AAAA,cAGI,kBAAA,kBAAkB,yBAAA,CAAA,KAAA,mBAAA,aAAA,CAAA,cAAA;;;;AJGxB;;;;iBKDgB,iBAAA,gCAAiB,GAAA,CAAA,OAAA;;;;;;;cCWpB,iBAAA,GAAqB,OAAA,EAAS,YAAA,QAAkB,YAAA,GAAe,gBAAA;;;;;;;;;;cAoB/D,UAAA,mBAAU,MAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/sfcc",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Sanity plugin for Salesforce Commerce Cloud (SFCC) integration — synced product and category data with editorial enrichment.",
5
5
  "keywords": [
6
6
  "salesforce-commerce-cloud",
@@ -33,15 +33,15 @@
33
33
  "@sanity/ui": "^3.2.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@sanity/pkg-utils": "^10.5.0",
37
- "@types/node": "^24.13.1",
36
+ "@sanity/pkg-utils": "^10.5.4",
37
+ "@types/node": "^24.13.2",
38
38
  "@types/react": "^19.2.14",
39
39
  "@types/react-dom": "^19.2.3",
40
40
  "babel-plugin-react-compiler": "^1.0.0",
41
41
  "babel-plugin-styled-components": "^2.3.0",
42
42
  "react": "^19.2.5",
43
43
  "react-dom": "^19.2.5",
44
- "sanity": "^5.21.0",
44
+ "sanity": "^6.0.0",
45
45
  "styled-components": "^6.4.2",
46
46
  "@repo/package.config": "0.0.0",
47
47
  "@repo/tsconfig": "0.0.0"