@sanity/sfcc 1.0.0 → 1.0.1

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,9 @@
1
- import * as sanity from "sanity";
1
+ import * as _$sanity from "sanity";
2
2
  import { DecorationMember, ObjectMember } from "sanity";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
- import * as sanity_structure0 from "sanity/structure";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+ import * as _$sanity_structure0 from "sanity/structure";
5
5
  import { ListItemBuilder } from "sanity/structure";
6
- import * as react from "react";
6
+ import * as _$react from "react";
7
7
  /**
8
8
  * SFCC category store field — contains all read-only data synced from
9
9
  * Salesforce Commerce Cloud. Add this to a `category` document type's
@@ -15,9 +15,9 @@ import * as react from "react";
15
15
  declare const sfccCategoryStoreField: {
16
16
  type: "object";
17
17
  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;
18
+ } & Omit<_$sanity.ObjectDefinition, "preview"> & {
19
+ preview?: _$sanity.PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
20
+ } & _$sanity.FieldDefinitionBase & _$sanity.WidenValidation & _$sanity.WidenInitialValue;
21
21
  /**
22
22
  * Default preview configuration for the `category` document type.
23
23
  * Shows Category Name with parent category as subtitle.
@@ -61,7 +61,7 @@ declare const sfccCategoryPreview: {
61
61
  }): {
62
62
  title: string;
63
63
  subtitle: string;
64
- media: react_jsx_runtime0.JSX.Element;
64
+ media: _$react_jsx_runtime0.JSX.Element;
65
65
  };
66
66
  };
67
67
  /**
@@ -75,9 +75,9 @@ declare const sfccCategoryPreview: {
75
75
  declare const sfccProductStoreField: {
76
76
  type: "object";
77
77
  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;
78
+ } & Omit<_$sanity.ObjectDefinition, "preview"> & {
79
+ preview?: _$sanity.PreviewConfig<Record<string, string>, Record<never, any>> | undefined;
80
+ } & _$sanity.FieldDefinitionBase & _$sanity.WidenValidation & _$sanity.WidenInitialValue;
81
81
  /**
82
82
  * Default preview configuration for the `product` document type.
83
83
  * Shows product type for Master/Simple, and the relevant variation
@@ -112,17 +112,17 @@ declare const sfccProductPreview: {
112
112
  }): {
113
113
  title: string;
114
114
  subtitle: string;
115
- media: react_jsx_runtime0.JSX.Element;
115
+ media: _$react_jsx_runtime0.JSX.Element;
116
116
  };
117
117
  };
118
- declare const categoryStructure: (S: sanity_structure0.StructureBuilder, context: sanity.ConfigContext) => ListItemBuilder;
119
- declare const productStructure: (S: sanity_structure0.StructureBuilder, context: sanity.ConfigContext) => ListItemBuilder;
118
+ declare const categoryStructure: (S: _$sanity_structure0.StructureBuilder, context: _$sanity.ConfigContext) => ListItemBuilder;
119
+ declare const productStructure: (S: _$sanity_structure0.StructureBuilder, context: _$sanity.ConfigContext) => ListItemBuilder;
120
120
  type Props = {
121
121
  isDeleted: boolean;
122
122
  imageUrl: string;
123
123
  title: string;
124
124
  };
125
- declare const SfccDocumentStatus: react.ForwardRefExoticComponent<Props & react.RefAttributes<HTMLDivElement>>;
125
+ declare const SfccDocumentStatus: _$react.ForwardRefExoticComponent<Props & _$react.RefAttributes<HTMLDivElement>>;
126
126
  /**
127
127
  * Decorative banner injected via `renderMembers` that warns editors when a
128
128
  * product or category is offline in SFCC.
@@ -130,7 +130,7 @@ declare const SfccDocumentStatus: react.ForwardRefExoticComponent<Props & react.
130
130
  * Reads `store.onlineFlag` (products) and `store.online` (categories) via
131
131
  * `useFormValue` so it works without props.
132
132
  */
133
- declare function SfccOfflineBanner(): react_jsx_runtime0.JSX.Element | null;
133
+ declare function SfccOfflineBanner(): _$react_jsx_runtime0.JSX.Element | null;
134
134
  /**
135
135
  * `renderMembers` callback that injects a caution banner at the top of the
136
136
  * document form when the SFCC document is offline or deleted.
@@ -147,6 +147,6 @@ declare const sfccRenderMembers: (members: ObjectMember[]) => (ObjectMember | De
147
147
  * - Hides product / category from the "Create new document" menu
148
148
  * (new documents are only created by the sync process).
149
149
  */
150
- declare const sfccPlugin: sanity.Plugin<void>;
150
+ declare const sfccPlugin: _$sanity.Plugin<void>;
151
151
  export { SfccDocumentStatus, SfccOfflineBanner, categoryStructure, productStructure, sfccCategoryPreview, sfccCategoryStoreField, sfccPlugin, sfccProductPreview, sfccProductStoreField, sfccRenderMembers };
152
152
  //# 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,MAAA,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,MAAA,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,kBAAA,CAAA,GAAA,CAAA,OAAA;EAAA;AAAA;AAAA,cC5MY,iBAAA,GAAiB,CAAA,EAE7B,iBAAA,CAF6B,gBAAA,EAAA,OAAA,EAAA,MAAA,CAAA,aAAA,KAAA,eAAA;AAAA,cCCjB,gBAAA,GAAgB,CAAA,EA+B3B,iBAAA,CA/B2B,gBAAA,EAAA,OAAA,EAAA,MAAA,CAAA,aAAA,KAAA,eAAA;AAAA,KCFxB,KAAA;EACH,SAAA;EACA,QAAA;EACA,KAAA;AAAA;AAAA,cAGI,kBAAA,EAAkB,KAAA,CAAA,yBAAA,CAAA,KAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;;;;;;iBCER,iBAAA,CAAA,GAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;ALCjC;;;;;cMUa,iBAAA,GAAqB,OAAA,EAAS,YAAA,QAAkB,YAAA,GAAe,gBAAA;;;;;;;;;;cAoB/D,UAAA,EAeV,MAAA,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;;;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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/sfcc",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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,16 @@
33
33
  "@sanity/ui": "^3.1.14"
34
34
  },
35
35
  "devDependencies": {
36
- "@sanity/pkg-utils": "^10.4.11",
36
+ "@sanity/pkg-utils": "^10.4.17",
37
+ "@types/node": "^24.12.2",
37
38
  "@types/react": "^19.2.14",
38
39
  "@types/react-dom": "^19.2.3",
39
40
  "babel-plugin-react-compiler": "^1.0.0",
40
41
  "babel-plugin-styled-components": "^2.1.4",
41
- "react": "^19.2.4",
42
- "react-dom": "^19.2.4",
43
- "sanity": "^5.17.1",
44
- "styled-components": "^6.3.11",
42
+ "react": "^19.2.5",
43
+ "react-dom": "^19.2.5",
44
+ "sanity": "^5.21.0",
45
+ "styled-components": "^6.4.1",
45
46
  "@repo/package.config": "0.0.0",
46
47
  "@repo/tsconfig": "0.0.0"
47
48
  },