@shoplix-ai/block-kit 3.7.0 → 4.1.0

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/README.md CHANGED
@@ -12,9 +12,11 @@ written against this package and nothing else from the runtime. It holds:
12
12
  product, a collection, search, the account), `cart` (how many items the
13
13
  cart holds for a badge, and whether a change is on its way so every block
14
14
  goes quiet together; never the cart itself, which a cart Binding resolves),
15
- and a capability object holding only the capabilities the Block Type
16
- declared. A Block Type may also declare `rows` beside `render` and hand its
17
- items to the host instead of drawing them itself.
15
+ `account` (whether a shopper is signed in, the name to greet them by and its
16
+ own pending flag; never the Account Session), and a capability object holding
17
+ only the capabilities the Block Type declared. A Block Type may also declare
18
+ `rows` beside `render` and hand its items to the host instead of drawing them
19
+ itself.
18
20
  - **The registry.** `createBlockRegistry()` keyed by Block Type, one owner per
19
21
  type. A second owner is refused; the same owner may register again. Packages
20
22
  outside the app register through it. `defineBlock()` is the typed authoring
@@ -25,15 +27,22 @@ written against this package and nothing else from the runtime. It holds:
25
27
  `setLineAttributes`, and `notificationInvitation`, the shopper's own
26
28
  notification decision as one host state: whether the invitation is still
27
29
  offered, the tap that opens the phone's prompt and the tap that hides it
28
- until the next completed checkout. Closed, and the same list the schema
29
- package lets a Block Definition declare. A cart capability resolves once Shopify accepted
30
- the change it asked for and rejects with a `CapabilityRefusal`: the outcome
31
- (`refused`, `not_found`, `failed`) and the messages that came with it,
32
- Shopify's own or the host's where Shopify sent none — a quantity over the
33
- stock is clamped by Shopify and not refused, and the host names what is left;
34
- `isCapabilityRefusal` tells it apart from any other rejection. Nothing
35
- repaints before Shopify's answer, and the block decides how to show a
36
- refusal.
30
+ until the next completed checkout. Then the nine of the shopper's own
31
+ account: `signIn`, `signOut`, `updateProfile` (the names, the email marketing
32
+ choice and the Profile Fields), `addAddress`, `updateAddress`,
33
+ `deleteAddress`, `setDefaultAddress` (each address by its id, the fields the
34
+ Address Sheet sends), `buyAgain` (an order's own lines back into the cart)
35
+ and `deleteAccount`. Closed, and the same list the schema package lets a
36
+ Block Definition declare. A cart or account capability resolves once Shopify
37
+ accepted the change it asked for and rejects with a `CapabilityRefusal`: the
38
+ outcome (`refused`, `not_found`, `failed`) and the messages that came with
39
+ it, Shopify's own or the host's where Shopify sent none. A quantity over the
40
+ stock is clamped by Shopify and not refused, and the host names what is
41
+ left; a shopper who holds no Account Session gets the refusal too, so a
42
+ block never has to ask whether a capability is reachable before it calls
43
+ one. `isCapabilityRefusal` tells a refusal apart from any other rejection.
44
+ Nothing repaints before Shopify's answer, and the block decides how to show
45
+ a refusal.
37
46
  - **The authoring shape of a Code Block.** `defineSettings()` and
38
47
  `defineBinding()` type a block's settings and binding files; `SettingsValues`
39
48
  derives the renderer's settings type from the settings file;
@@ -58,7 +67,8 @@ written against this package and nothing else from the runtime. It holds:
58
67
  `productCardColors`, `collectionTileColors`, `heroBannerColors` beside
59
68
  `heroBannerRadius`, `promoBannerColors` beside `promoBannerRadius`,
60
69
  `sectionHeaderColors`, `featureStripColors`,
61
- `announcementBarColors` and `shippingProgressColors`, the colour tables the
70
+ `announcementBarColors`, `shippingProgressColors`, `productGalleryColors`,
71
+ `productSummaryColors`, `productSpecsColors` and `reviewsSlotColors`, the colour tables the
62
72
  promoted blocks read on the phone and on the web alike: a theme role per part
63
73
  of the block, with a component token at `<block>.<part>` over it.
64
74
  `readableInk` is the one rule for words on a colour the merchant chose, so a
@@ -1,13 +1,14 @@
1
- import { type BlockCapabilityName, type CartAttribute } from '@shoplix-ai/sdui-schema';
1
+ import { type AddressDisplay, type BlockCapabilityName, type CartAttribute, type CustomerDisplay } from '@shoplix-ai/sdui-schema';
2
2
  /**
3
- * The closed capability set. A renderer reaches commerce only through these
4
- * nine, and the shopper's notification decision only through the tenth; the
5
- * Storefront token, the cart id and navigation never cross the contract. The
6
- * set is code, never document content, and it does not grow without a new
7
- * contract major. The schema package names the same list, so a Block
8
- * Definition can declare only what a renderer can be handed.
3
+ * The closed capability set. A renderer reaches commerce only through the
4
+ * first nine, the shopper's notification decision through the tenth, and
5
+ * their own account through the last nine; the Storefront token, the Account
6
+ * Session, the cart id and navigation never cross the contract. The set is
7
+ * code, never document content, and it does not grow without a new contract
8
+ * major. The schema package names the same list, so a Block Definition can
9
+ * declare only what a renderer can be handed.
9
10
  */
10
- export declare const CAPABILITY_NAMES: readonly ["addToCart", "openCart", "beginCheckout", "setLineQuantity", "removeLines", "applyDiscountCode", "removeDiscountCode", "setCartNote", "setLineAttributes", "notificationInvitation"];
11
+ export declare const CAPABILITY_NAMES: readonly ["addToCart", "openCart", "beginCheckout", "setLineQuantity", "removeLines", "applyDiscountCode", "removeDiscountCode", "setCartNote", "setLineAttributes", "notificationInvitation", "signIn", "signOut", "updateProfile", "addAddress", "updateAddress", "deleteAddress", "setDefaultAddress", "buyAgain", "deleteAccount"];
11
12
  export type CapabilityName = BlockCapabilityName;
12
13
  export interface CartLineInput {
13
14
  readonly variantId: string;
@@ -22,6 +23,23 @@ export interface CartLineAttributesInput {
22
23
  readonly lineId: string;
23
24
  readonly attributes: readonly CartAttribute[];
24
25
  }
26
+ /**
27
+ * What a profile update writes: the names on the customer record, the email
28
+ * marketing choice, and the Profile Fields by their catalog keys. A part left
29
+ * out stands as it is, so a block that edits one field sends one field.
30
+ */
31
+ export type ProfileUpdateInput = Partial<Pick<CustomerDisplay, 'firstName' | 'lastName' | 'acceptsEmailMarketing' | 'profileFields'>>;
32
+ /**
33
+ * One address as the Address Sheet sends it: the fields the Customer Account
34
+ * API takes, which are the address display's own without the id, the
35
+ * formatted lines Shopify wrote and the default flag.
36
+ */
37
+ export type AddressInput = Omit<AddressDisplay, 'id' | 'formatted' | 'isDefault'>;
38
+ /** Which saved address a write lands on, and what it becomes. */
39
+ export interface AddressUpdateInput {
40
+ readonly addressId: string;
41
+ readonly address: AddressInput;
42
+ }
25
43
  /**
26
44
  * The Notification Invitation as a renderer sees it: whether there is still
27
45
  * anything to ask, the tap that opens the phone's own prompt, and the tap
@@ -34,10 +52,13 @@ export interface NotificationInvitation {
34
52
  readonly dismiss: () => void;
35
53
  }
36
54
  /**
37
- * Every cart capability answers through the host's one serialized queue and
38
- * resolves once Shopify accepted the change it was asked for; it rejects with
39
- * a CapabilityRefusal, and the held cart repaints only on Shopify's answer,
40
- * never before.
55
+ * Every cart and account capability answers through the host's one serialized
56
+ * queue and resolves once Shopify accepted the change it was asked for; it
57
+ * rejects with a CapabilityRefusal, and the held cart and the account summary
58
+ * repaint only on Shopify's answer, never before. A sign-in resolves once the
59
+ * shopper holds an Account Session, and each account write once Shopify wrote
60
+ * it; a shopper who is not signed in gets the refusal, so a block never has to
61
+ * ask whether a capability is reachable before it calls one.
41
62
  */
42
63
  export interface Capabilities {
43
64
  readonly addToCart: (line: CartLineInput) => Promise<void>;
@@ -50,6 +71,15 @@ export interface Capabilities {
50
71
  readonly setCartNote: (note: string) => Promise<void>;
51
72
  readonly setLineAttributes: (input: CartLineAttributesInput) => Promise<void>;
52
73
  readonly notificationInvitation: NotificationInvitation;
74
+ readonly signIn: () => Promise<void>;
75
+ readonly signOut: () => Promise<void>;
76
+ readonly updateProfile: (input: ProfileUpdateInput) => Promise<void>;
77
+ readonly addAddress: (input: AddressInput) => Promise<void>;
78
+ readonly updateAddress: (input: AddressUpdateInput) => Promise<void>;
79
+ readonly deleteAddress: (addressId: string) => Promise<void>;
80
+ readonly setDefaultAddress: (addressId: string) => Promise<void>;
81
+ readonly buyAgain: (orderId: string) => Promise<void>;
82
+ readonly deleteAccount: () => Promise<void>;
53
83
  }
54
84
  /** What a renderer sees: exactly the capabilities its Block Type declared. */
55
85
  export type CapabilityObject<K extends CapabilityName = never> = Pick<Capabilities, K>;
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;GAOG;AACH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I,CAAC,CAAC;IACjE,QAAQ,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,QAAQ,CAAC,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C;AAED,8EAA8E;AAC9E,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,cAAc,GAAG,KAAK,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;AAEvF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAQnE;;;;;;GAMG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAIxC,QAAQ,CAAC,OAAO,EAAE,iBAAiB;IACnC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE;IAJtC,SAAkB,IAAI,uBAAuB;gBAGlC,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,SAAS,MAAM,EAAE;CAIvC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAU9E"}
@@ -1,11 +1,12 @@
1
1
  import { BLOCK_CAPABILITY_NAMES, } from '@shoplix-ai/sdui-schema';
2
2
  /**
3
- * The closed capability set. A renderer reaches commerce only through these
4
- * nine, and the shopper's notification decision only through the tenth; the
5
- * Storefront token, the cart id and navigation never cross the contract. The
6
- * set is code, never document content, and it does not grow without a new
7
- * contract major. The schema package names the same list, so a Block
8
- * Definition can declare only what a renderer can be handed.
3
+ * The closed capability set. A renderer reaches commerce only through the
4
+ * first nine, the shopper's notification decision through the tenth, and
5
+ * their own account through the last nine; the Storefront token, the Account
6
+ * Session, the cart id and navigation never cross the contract. The set is
7
+ * code, never document content, and it does not grow without a new contract
8
+ * major. The schema package names the same list, so a Block Definition can
9
+ * declare only what a renderer can be handed.
9
10
  */
10
11
  export const CAPABILITY_NAMES = B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+ {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,GAKvB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AA+FvD,MAAM,QAAQ,GAAwB,IAAI,GAAG,CAAoB;IAC/D,SAAS;IACT,WAAW;IACX,QAAQ;CACT,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAI/B;IACA;IAJO,IAAI,GAAG,mBAAmB,CAAC;IAE7C,YACW,OAA0B,EAC1B,QAA2B;QAEpC,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAHjD,YAAO,GAAP,OAAO,CAAmB;QAC1B,aAAQ,GAAR,QAAQ,CAAmB;IAGtC,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC9D,MAAM,GAAG,GAAG,KAAkE,CAAC;IAC/E,OAAO,CACL,GAAG,CAAC,IAAI,KAAK,mBAAmB;QAChC,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;QAC/B,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC;QACzB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC3B,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,OAAO,KAAK,QAAQ,CAAC,CAC7D,CAAC;AACJ,CAAC"}
@@ -13,6 +13,20 @@ export interface CartSummary {
13
13
  readonly totalQuantity: number;
14
14
  readonly pending: boolean;
15
15
  }
16
+ /**
17
+ * What every renderer may know of the shopper without holding their Account
18
+ * Session: whether one is held, the name a greeting draws, and whether a
19
+ * change is on its way. The host's serialized queue sets pending, so every
20
+ * block on the screen goes quiet together. Signed in is the only answer to
21
+ * whether a capability will land, and the name is a separate one: a host whose
22
+ * silent renewal found Shopify's session gone marks the shopper signed out and
23
+ * may still hand a greeting their name.
24
+ */
25
+ export interface AccountSummary {
26
+ readonly signedIn: boolean;
27
+ readonly displayName: string | null;
28
+ readonly pending: boolean;
29
+ }
16
30
  /**
17
31
  * Everything a renderer receives, and all it may know. Settings are the
18
32
  * block's props from the document; data is its Binding resolved into display
@@ -21,8 +35,10 @@ export interface CartSummary {
21
35
  * are the Shop's; language and direction are the buyer's, with the Shop's default
22
36
  * language as the fallback every locale object resolves through; navigate is the
23
37
  * closed way to move the buyer; cart is the count a badge draws and the pending
24
- * flag, never the cart itself, which a cart Binding resolves; capabilities hold
25
- * only what the Block Type declared.
38
+ * flag, never the cart itself, which a cart Binding resolves; account is
39
+ * whether a shopper is signed in, the name to greet them by and its own
40
+ * pending flag, never the Account Session; capabilities hold only what the
41
+ * Block Type declared.
26
42
  */
27
43
  export interface BlockRenderProps<TSettings extends BlockSettings = BlockSettings, K extends CapabilityName = never> {
28
44
  readonly blockId: string;
@@ -36,6 +52,7 @@ export interface BlockRenderProps<TSettings extends BlockSettings = BlockSetting
36
52
  readonly direction: TextDirection;
37
53
  readonly navigate: BlockNavigation;
38
54
  readonly cart: CartSummary;
55
+ readonly account: AccountSummary;
39
56
  readonly capabilities: CapabilityObject<K>;
40
57
  }
41
58
  export type BlockRenderer<TSettings extends BlockSettings = BlockSettings, K extends CapabilityName = never> = ComponentType<BlockRenderProps<TSettings, K>>;
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAA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AC;AACJ,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AA8IA;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAGzB,UAAyC;IACzC,OAAO;QACL,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,YAAY,EAAE,UAAU,CAAC,YAAY,IAAI,EAAE;QAC3C,MAAM,EAAE,UAAU,CAAC,MAAkC;QACrD,IAAI,EAAE,UAAU,CAAC,IAAwC;KAC1D,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { CAPABILITY_NAMES, CapabilityRefusal, isCapabilityRefusal } from './capabilities.js';
2
- export type { Capabilities, CapabilityName, CapabilityObject, CapabilityOutcome, CartLineAttributesInput, CartLineInput, CartLineQuantityInput, NotificationInvitation, } from './capabilities.js';
2
+ export type { AddressInput, AddressUpdateInput, Capabilities, CapabilityName, CapabilityObject, CapabilityOutcome, CartLineAttributesInput, CartLineInput, CartLineQuantityInput, NotificationInvitation, ProfileUpdateInput, } from './capabilities.js';
3
3
  export { defineBlock } from './contract.js';
4
- export type { BlockDefinition, BlockItemRenderProps, BlockOwner, BlockRegistration, BlockRenderProps, BlockRenderer, BlockRows, BlockSettings, CartSummary, TextDirection, } from './contract.js';
4
+ export type { AccountSummary, BlockDefinition, BlockItemRenderProps, BlockOwner, BlockRegistration, BlockRenderProps, BlockRenderer, BlockRows, BlockSettings, CartSummary, TextDirection, } from './contract.js';
5
5
  export type { BlockNavigation } from './navigation.js';
6
6
  export { createBlockRegistry } from './registry.js';
7
7
  export type { BlockRegistry } from './registry.js';
@@ -13,6 +13,14 @@ export { CONTRACT_MAJOR, CONTRACT_VERSION } from './version.js';
13
13
  export { resolveToken } from './tokens.js';
14
14
  export { productCardColors } from './product-card.js';
15
15
  export type { ProductCardColors, ProductCardPart } from './product-card.js';
16
+ export { productGalleryColors } from './product-gallery.js';
17
+ export type { ProductGalleryColors, ProductGalleryPart } from './product-gallery.js';
18
+ export { productSpecsColors } from './product-specs.js';
19
+ export type { ProductSpecsColors, ProductSpecsPart } from './product-specs.js';
20
+ export { productSummaryColors } from './product-summary.js';
21
+ export type { ProductSummaryColors, ProductSummaryPart } from './product-summary.js';
22
+ export { reviewsSlotColors } from './reviews-slot.js';
23
+ export type { ReviewsSlotColors, ReviewsSlotPart } from './reviews-slot.js';
16
24
  export { collectionTileColors } from './collection-tile.js';
17
25
  export type { CollectionTileColors, CollectionTilePart } from './collection-tile.js';
18
26
  export { heroBannerColors, heroBannerRadius } from './hero-banner.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,YAAY,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,aAAa,EACb,WAAW,EACX,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC/D,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAE,eAAe,EAAE,UA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E,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -6,6 +6,10 @@ export { defineCodeBlock, shopBlocks } from './code-block.js';
6
6
  export { CONTRACT_MAJOR, CONTRACT_VERSION } from './version.js';
7
7
  export { resolveToken } from './tokens.js';
8
8
  export { productCardColors } from './product-card.js';
9
+ export { productGalleryColors } from './product-gallery.js';
10
+ export { productSpecsColors } from './product-specs.js';
11
+ export { productSummaryColors } from './product-summary.js';
12
+ export { reviewsSlotColors } from './reviews-slot.js';
9
13
  export { collectionTileColors } from './collection-tile.js';
10
14
  export { heroBannerColors, heroBannerRadius } from './hero-banner.js';
11
15
  export { promoBannerColors, promoBannerRadius } from './promo-banner.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAY7F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAgB5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG/D,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG9D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,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AAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAS5C,OAAO,EACL,YAAY,EACZ,eAAe,EACf,WAAW,EACX,WAAW,EACX,UAAU,EACV,SAAS,GACV,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { ThemeStyle } from '@shoplix-ai/sdui-schema';
2
+ /** The parts of the product gallery, each with the theme role it draws unless a component token names another. */
3
+ declare const PRODUCT_GALLERY_ROLES: {
4
+ readonly well: "sunken";
5
+ readonly picture: "elevated";
6
+ readonly badge: "action";
7
+ readonly thumb: "elevated";
8
+ readonly thumb_border: "border";
9
+ readonly thumb_active: "action";
10
+ readonly sold_out_chip: "text";
11
+ };
12
+ export type ProductGalleryPart = keyof typeof PRODUCT_GALLERY_ROLES;
13
+ export type ProductGalleryColors = Readonly<Record<ProductGalleryPart, string>>;
14
+ /**
15
+ * Every colour the gallery draws, one per part, with `product_gallery.<part>`
16
+ * as the escape hatch over each theme role. The ink on the discount badge and
17
+ * on the sold out chip is not here: it is whichever of ink and paper stays
18
+ * legible on the colour behind it.
19
+ */
20
+ export declare function productGalleryColors(theme: ThemeStyle): ProductGalleryColors;
21
+ export {};
22
+ //# sourceMappingURL=product-gallery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-gallery.d.ts","sourceRoot":"","sources":["../src/product-gallery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG1D,kHAAkH;AAClH,QAAA,MAAM,qBAAqB;;;;;;;;CAQoC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,oBAAoB,CAE5E"}
@@ -0,0 +1,21 @@
1
+ import { partColors } from './part-colors.js';
2
+ /** The parts of the product gallery, each with the theme role it draws unless a component token names another. */
3
+ const PRODUCT_GALLERY_ROLES = {
4
+ well: 'sunken',
5
+ picture: 'elevated',
6
+ badge: 'action',
7
+ thumb: 'elevated',
8
+ thumb_border: 'border',
9
+ thumb_active: 'action',
10
+ sold_out_chip: 'text',
11
+ };
12
+ /**
13
+ * Every colour the gallery draws, one per part, with `product_gallery.<part>`
14
+ * as the escape hatch over each theme role. The ink on the discount badge and
15
+ * on the sold out chip is not here: it is whichever of ink and paper stays
16
+ * legible on the colour behind it.
17
+ */
18
+ export function productGalleryColors(theme) {
19
+ return partColors(theme, 'product_gallery', PRODUCT_GALLERY_ROLES);
20
+ }
21
+ //# sourceMappingURL=product-gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-gallery.js","sourceRoot":"","sources":["../src/product-gallery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,kHAAkH;AAClH,MAAM,qBAAqB,GAAG;IAC5B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,UAAU;IACjB,YAAY,EAAE,QAAQ;IACtB,YAAY,EAAE,QAAQ;IACtB,aAAa,EAAE,MAAM;CACwC,CAAC;AAMhE;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAiB;IACpD,OAAO,UAAU,CAAC,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,CAAC;AACrE,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { ThemeStyle } from '@shoplix-ai/sdui-schema';
2
+ /** The parts of the product specs, each with the theme role it draws unless a component token names another. */
3
+ declare const PRODUCT_SPECS_ROLES: {
4
+ readonly surface: "elevated";
5
+ readonly title: "text";
6
+ readonly body: "text";
7
+ readonly rule: "border";
8
+ readonly label_surface: "sunken";
9
+ readonly label_ink: "text";
10
+ readonly value_ink: "text";
11
+ readonly card: "elevated";
12
+ readonly glyph_surface: "sunken";
13
+ readonly glyph: "text";
14
+ readonly note: "muted";
15
+ };
16
+ export type ProductSpecsPart = keyof typeof PRODUCT_SPECS_ROLES;
17
+ export type ProductSpecsColors = Readonly<Record<ProductSpecsPart, string>>;
18
+ /**
19
+ * Every colour the specs draw, one per part, with `product_specs.<part>` as
20
+ * the escape hatch over each theme role. The body and the table's values take
21
+ * the text role rather than the muted one: a size chart is read, not skimmed.
22
+ */
23
+ export declare function productSpecsColors(theme: ThemeStyle): ProductSpecsColors;
24
+ export {};
25
+ //# sourceMappingURL=product-specs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-specs.d.ts","sourceRoot":"","sources":["../src/product-specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG1D,gHAAgH;AAChH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;CAYsC,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,kBAAkB,CAExE"}
@@ -0,0 +1,24 @@
1
+ import { partColors } from './part-colors.js';
2
+ /** The parts of the product specs, each with the theme role it draws unless a component token names another. */
3
+ const PRODUCT_SPECS_ROLES = {
4
+ surface: 'elevated',
5
+ title: 'text',
6
+ body: 'text',
7
+ rule: 'border',
8
+ label_surface: 'sunken',
9
+ label_ink: 'text',
10
+ value_ink: 'text',
11
+ card: 'elevated',
12
+ glyph_surface: 'sunken',
13
+ glyph: 'text',
14
+ note: 'muted',
15
+ };
16
+ /**
17
+ * Every colour the specs draw, one per part, with `product_specs.<part>` as
18
+ * the escape hatch over each theme role. The body and the table's values take
19
+ * the text role rather than the muted one: a size chart is read, not skimmed.
20
+ */
21
+ export function productSpecsColors(theme) {
22
+ return partColors(theme, 'product_specs', PRODUCT_SPECS_ROLES);
23
+ }
24
+ //# sourceMappingURL=product-specs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-specs.js","sourceRoot":"","sources":["../src/product-specs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,gHAAgH;AAChH,MAAM,mBAAmB,GAAG;IAC1B,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,QAAQ;IACd,aAAa,EAAE,QAAQ;IACvB,SAAS,EAAE,MAAM;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,UAAU;IAChB,aAAa,EAAE,QAAQ;IACvB,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,OAAO;CACgD,CAAC;AAMhE;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAiB;IAClD,OAAO,UAAU,CAAC,KAAK,EAAE,eAAe,EAAE,mBAAmB,CAAC,CAAC;AACjE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { ThemeStyle } from '@shoplix-ai/sdui-schema';
2
+ /** The parts of the product summary, each with the theme role it draws unless a component token names another. */
3
+ declare const PRODUCT_SUMMARY_ROLES: {
4
+ readonly sheet: "elevated";
5
+ readonly title: "text";
6
+ readonly brand: "action";
7
+ readonly price: "action";
8
+ readonly was: "subtle";
9
+ readonly rating_surface: "sunken";
10
+ readonly rating: "text";
11
+ readonly rating_count: "subtle";
12
+ readonly star: "warning";
13
+ readonly stock_surface: "border";
14
+ readonly stock_dot: "subtle";
15
+ readonly stock_ink: "text";
16
+ readonly saving_surface: "sunken";
17
+ readonly saving_ink: "success";
18
+ };
19
+ export type ProductSummaryPart = keyof typeof PRODUCT_SUMMARY_ROLES;
20
+ export type ProductSummaryColors = Readonly<Record<ProductSummaryPart, string>>;
21
+ /**
22
+ * Every colour the summary draws, one per part, with `product_summary.<part>`
23
+ * as the escape hatch over each theme role. The price and the vendor line read
24
+ * the action role, so a merchant who changes one button colour changes the
25
+ * whole product screen with it.
26
+ */
27
+ export declare function productSummaryColors(theme: ThemeStyle): ProductSummaryColors;
28
+ export {};
29
+ //# sourceMappingURL=product-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-summary.d.ts","sourceRoot":"","sources":["../src/product-summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG1D,kHAAkH;AAClH,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;CAeoC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,oBAAoB,CAE5E"}
@@ -0,0 +1,28 @@
1
+ import { partColors } from './part-colors.js';
2
+ /** The parts of the product summary, each with the theme role it draws unless a component token names another. */
3
+ const PRODUCT_SUMMARY_ROLES = {
4
+ sheet: 'elevated',
5
+ title: 'text',
6
+ brand: 'action',
7
+ price: 'action',
8
+ was: 'subtle',
9
+ rating_surface: 'sunken',
10
+ rating: 'text',
11
+ rating_count: 'subtle',
12
+ star: 'warning',
13
+ stock_surface: 'border',
14
+ stock_dot: 'subtle',
15
+ stock_ink: 'text',
16
+ saving_surface: 'sunken',
17
+ saving_ink: 'success',
18
+ };
19
+ /**
20
+ * Every colour the summary draws, one per part, with `product_summary.<part>`
21
+ * as the escape hatch over each theme role. The price and the vendor line read
22
+ * the action role, so a merchant who changes one button colour changes the
23
+ * whole product screen with it.
24
+ */
25
+ export function productSummaryColors(theme) {
26
+ return partColors(theme, 'product_summary', PRODUCT_SUMMARY_ROLES);
27
+ }
28
+ //# sourceMappingURL=product-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-summary.js","sourceRoot":"","sources":["../src/product-summary.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,kHAAkH;AAClH,MAAM,qBAAqB,GAAG;IAC5B,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,GAAG,EAAE,QAAQ;IACb,cAAc,EAAE,QAAQ;IACxB,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,QAAQ;IACtB,IAAI,EAAE,SAAS;IACf,aAAa,EAAE,QAAQ;IACvB,SAAS,EAAE,QAAQ;IACnB,SAAS,EAAE,MAAM;IACjB,cAAc,EAAE,QAAQ;IACxB,UAAU,EAAE,SAAS;CACwC,CAAC;AAMhE;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAiB;IACpD,OAAO,UAAU,CAAC,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,CAAC;AACrE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { ThemeStyle } from '@shoplix-ai/sdui-schema';
2
+ /** The parts of the reviews slot, each with the theme role it draws unless a component token names another. */
3
+ declare const REVIEWS_SLOT_ROLES: {
4
+ readonly surface: "elevated";
5
+ readonly title: "text";
6
+ readonly score: "text";
7
+ readonly star: "warning";
8
+ readonly star_idle: "border";
9
+ readonly count: "muted";
10
+ readonly bar: "border";
11
+ readonly bar_fill: "warning";
12
+ readonly card: "elevated";
13
+ readonly card_border: "border";
14
+ readonly avatar: "sunken";
15
+ readonly avatar_ink: "action";
16
+ readonly reviewer: "text";
17
+ readonly when: "muted";
18
+ readonly body: "text";
19
+ };
20
+ export type ReviewsSlotPart = keyof typeof REVIEWS_SLOT_ROLES;
21
+ export type ReviewsSlotColors = Readonly<Record<ReviewsSlotPart, string>>;
22
+ /**
23
+ * Every colour the reviews slot draws, one per part, with
24
+ * `reviews_slot.<part>` as the escape hatch over each theme role. A filled
25
+ * star and a filled bar read the warning role, which is the one role in the
26
+ * set that is neither the brand nor an ink.
27
+ */
28
+ export declare function reviewsSlotColors(theme: ThemeStyle): ReviewsSlotColors;
29
+ export {};
30
+ //# sourceMappingURL=reviews-slot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reviews-slot.d.ts","sourceRoot":"","sources":["../src/reviews-slot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAG1D,+GAA+G;AAC/G,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAgBuC,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,iBAAiB,CAEtE"}
@@ -0,0 +1,29 @@
1
+ import { partColors } from './part-colors.js';
2
+ /** The parts of the reviews slot, each with the theme role it draws unless a component token names another. */
3
+ const REVIEWS_SLOT_ROLES = {
4
+ surface: 'elevated',
5
+ title: 'text',
6
+ score: 'text',
7
+ star: 'warning',
8
+ star_idle: 'border',
9
+ count: 'muted',
10
+ bar: 'border',
11
+ bar_fill: 'warning',
12
+ card: 'elevated',
13
+ card_border: 'border',
14
+ avatar: 'sunken',
15
+ avatar_ink: 'action',
16
+ reviewer: 'text',
17
+ when: 'muted',
18
+ body: 'text',
19
+ };
20
+ /**
21
+ * Every colour the reviews slot draws, one per part, with
22
+ * `reviews_slot.<part>` as the escape hatch over each theme role. A filled
23
+ * star and a filled bar read the warning role, which is the one role in the
24
+ * set that is neither the brand nor an ink.
25
+ */
26
+ export function reviewsSlotColors(theme) {
27
+ return partColors(theme, 'reviews_slot', REVIEWS_SLOT_ROLES);
28
+ }
29
+ //# sourceMappingURL=reviews-slot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reviews-slot.js","sourceRoot":"","sources":["../src/reviews-slot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,+GAA+G;AAC/G,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,QAAQ;IACnB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,QAAQ;IACb,QAAQ,EAAE,SAAS;IACnB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,MAAM;CACiD,CAAC;AAMhE;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAiB;IACjD,OAAO,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC;AAC/D,CAAC"}
package/dist/version.d.ts CHANGED
@@ -4,6 +4,6 @@
4
4
  * The major is the compatibility line: a Shop package built against another
5
5
  * major never meets this runtime, and a major bump is an announced event.
6
6
  */
7
- export declare const CONTRACT_VERSION = "3.7.0";
8
- export declare const CONTRACT_MAJOR = 3;
7
+ export declare const CONTRACT_VERSION = "4.1.0";
8
+ export declare const CONTRACT_MAJOR = 4;
9
9
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -4,6 +4,6 @@
4
4
  * The major is the compatibility line: a Shop package built against another
5
5
  * major never meets this runtime, and a major bump is an announced event.
6
6
  */
7
- export const CONTRACT_VERSION = '3.7.0';
8
- export const CONTRACT_MAJOR = 3;
7
+ export const CONTRACT_VERSION = '4.1.0';
8
+ export const CONTRACT_MAJOR = 4;
9
9
  //# sourceMappingURL=version.js.map
package/dist/words.d.ts CHANGED
@@ -45,6 +45,12 @@ declare const ENGLISH_WORDS: {
45
45
  readonly 'product.in_stock': "In stock";
46
46
  readonly 'product.out_of_stock': "Out of stock";
47
47
  readonly 'product.only_left': "Only {count} left";
48
+ readonly 'product.save': "Save";
49
+ readonly 'product.details': "Product details";
50
+ readonly 'product.specifications': "Specifications";
51
+ readonly 'product.shipping_returns': "Shipping & returns";
52
+ readonly 'reviews.title': "Ratings & reviews";
53
+ readonly 'reviews.count': "{count} reviews";
48
54
  readonly 'product.brand': "Brand";
49
55
  readonly 'product.type': "Type";
50
56
  readonly 'section.show_all': "Show all";
@@ -1 +1 @@
1
- {"version":3,"file":"words.d.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UAAU,EAAyB,CAAC;AAE7E,MAAM,WAAW,aAAa;IAC5B,qEAAqE;IACrE,GAAG,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC;CACnE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,GAAG,aAAa,CAO9F"}
package/dist/words.js CHANGED
@@ -45,6 +45,12 @@ const ENGLISH_WORDS = {
45
45
  'product.in_stock': 'In stock',
46
46
  'product.out_of_stock': 'Out of stock',
47
47
  'product.only_left': 'Only {count} left',
48
+ 'product.save': 'Save',
49
+ 'product.details': 'Product details',
50
+ 'product.specifications': 'Specifications',
51
+ 'product.shipping_returns': 'Shipping & returns',
52
+ 'reviews.title': 'Ratings & reviews',
53
+ 'reviews.count': '{count} reviews',
48
54
  'product.brand': 'Brand',
49
55
  'product.type': 'Type',
50
56
  'section.show_all': 'Show all',
@@ -117,6 +123,12 @@ const ARABIC_WORDS = {
117
123
  'product.in_stock': 'متوفر',
118
124
  'product.out_of_stock': 'نفدت الكمية',
119
125
  'product.only_left': 'المتبقي {count} فقط',
126
+ 'product.save': 'وفّر',
127
+ 'product.details': 'نبذة عن المنتج',
128
+ 'product.specifications': 'المواصفات',
129
+ 'product.shipping_returns': 'الشحن والإرجاع',
130
+ 'reviews.title': 'التقييمات والمراجعات',
131
+ 'reviews.count': '{count} تقييم',
120
132
  'product.brand': 'العلامة',
121
133
  'product.type': 'النوع',
122
134
  'section.show_all': 'عرض الكل',
@@ -189,6 +201,12 @@ const TURKISH_WORDS = {
189
201
  'product.in_stock': 'Stokta var',
190
202
  'product.out_of_stock': 'Stokta yok',
191
203
  'product.only_left': 'Yalnızca {count} adet kaldı',
204
+ 'product.save': 'Kazanç',
205
+ 'product.details': 'Ürün hakkında',
206
+ 'product.specifications': 'Özellikler',
207
+ 'product.shipping_returns': 'Kargo ve iade',
208
+ 'reviews.title': 'Puanlar ve yorumlar',
209
+ 'reviews.count': '{count} yorum',
192
210
  'product.brand': 'Marka',
193
211
  'product.type': 'Tür',
194
212
  'section.show_all': 'Tümünü gör',
package/dist/words.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"words.js","sourceRoot":"","sources":["../src/words.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,MAAM,aAAa,GAAG;IACpB,YAAY,EAAE,MAAM;IACpB,YAAY,EAAE,OAAO;IACrB,YAAY,EAAE,oBAAoB;IAClC,wBAAwB,EAAE,mBAAmB;IAC7C,oBAAoB,EAAE,mBAAmB;IACzC,eAAe,EAAE,UAAU;IAC3B,eAAe,EAAE,UAAU;IAC3B,oBAAoB,EAAE,UAAU;IAChC,YAAY,EAAE,OAAO;IACrB,gBAAgB,EAAE,WAAW;IAC7B,eAAe,EAAE,UAAU;IAC3B,2BAA2B,EAAE,sDAAsD;IACnF,aAAa,EAAE,QAAQ;IACvB,eAAe,EAAE,mBAAmB;IACpC,eAAe,EAAE,mBAAmB;IACpC,oBAAoB,EAAE,eAAe;IACrC,uBAAuB,EAAE,cAAc;IACvC,YAAY,EAAE,OAAO;IACrB,0BAA0B,EAAE,sCAAsC;IAClE,iBAAiB,EAAE,YAAY;IAC/B,uBAAuB,EAAE,0BAA0B;IACnD,oBAAoB,EAAE,2BAA2B;IACjD,qBAAqB,EAAE,aAAa;IACpC,eAAe,EAAE,eAAe;IAChC,oBAAoB,EAAE,eAAe;IACrC,6BAA6B,EAAE,aAAa;IAC5C,uBAAuB,EAAE,SAAS;IAClC,mBAAmB,EAAE,WAAW;IAChC,wBAAwB,EAAE,oBAAoB;IAC9C,kBAAkB,EAAE,UAAU;IAC9B,kBAAkB,EAAE,UAAU;IAC9B,sBAAsB,E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AM,CAAC,MAAM,SAAS,GAAuB,MAAM,CAAC,IAAI,CAAC,aAAa,CAAc,CAAC;AAErF,0DAA0D;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAA0B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAY7E;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,QAAoB,EAAE,eAA2B;IAC7E,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,OAAO,CAAC,OAAO,CAAE,CAAC;IAClF,OAAO;QACL,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC;QACxB,UAAU,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CACxB,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;KAC7F,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplix-ai/block-kit",
3
- "version": "3.7.0",
3
+ "version": "4.1.0",
4
4
  "description": "The renderer contract every Block Type renderer is written against: what a renderer receives, how a Block Type is registered with its owner, the closed capability set, and the small helpers renderers share. Contract only, no renderers.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@shoplix-ai/sdui-schema": "1.13.0"
29
+ "@shoplix-ai/sdui-schema": "1.16.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": ">=19.0.0"