@sanity/sfcc
1.0.361.0.37
dist/index.d.ts~
dist/index.d.tsModified+10−10
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