@shoplix-ai/block-kit 5.39.0 → 5.40.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.
@@ -33,16 +33,18 @@ export interface SectionHeaderLink extends SectionHeaderTypeface {
33
33
  readonly words: string;
34
34
  readonly chevron: boolean;
35
35
  }
36
- /** The plain heading as it draws: its title and the link opposite it. */
36
+ /** The plain heading as it draws: its title, the link opposite it, and the side space both stand in. */
37
37
  export interface SectionHeaderLook {
38
38
  readonly title: SectionHeaderTypeface;
39
39
  readonly link: SectionHeaderLink;
40
+ readonly gutter: number;
40
41
  }
41
42
  /**
42
43
  * The plain heading as the merchant set it, and the heading it always drew for
43
44
  * every part they left out: the catalog's "Show all" where they wrote no word
44
- * the buyer reads. Tracking and line height are written in percent of the
45
- * size, Figma's unit, and drawn in points: -5 on an 18 point title is -0.9.
45
+ * the buyer reads, and the theme's side gutter where they set no side space.
46
+ * Tracking and line height are written in percent of the size, Figma's unit,
47
+ * and drawn in points: -5 on an 18 point title is -0.9.
46
48
  */
47
49
  export declare function sectionHeaderLook(theme: ThemeStyle, settings: SectionHeaderLookSettings, language: LocaleCode, defaultLanguage: LocaleCode): SectionHeaderLook;
48
50
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"section-header.d.ts","sourceRoot":"","sources":["../src/section-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,yBAAyB,EAC9B,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAKjC;;;;GAIG;AACH,QAAA,MAAM,oBAAoB;;;CAGqC,CAAC;AAEhE,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAElE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9E;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,UAAU,EACjB,QA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,EAAE,UAAU,EACjB,QAAQ,GAAE,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAM,GACxD,mBAAmB,CAGrB;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,0EAA0E;AAC1E,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,wGAAwG;AACxG,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAoBD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,yBAAyB,EACnC,QAAQ,EAAE,UAAU,EACpB,eAAe,EAAE,UAAU,GAC1B,iBAAiB,CAyBnB"}
@@ -1,4 +1,4 @@
1
- import { SECTION_HEADER_DEFAULTS, } from '@shoplix-ai/sdui-schema';
1
+ import { SECTION_HEADER_DEFAULTS, sideGutter, } from '@shoplix-ai/sdui-schema';
2
2
  import { chosenRole, partColors } from './part-colors.js';
3
3
  import { pointsOfPercent } from './percent.js';
4
4
  import { platformWords } from './words.js';
@@ -34,8 +34,9 @@ function typefaceOf(face) {
34
34
  /**
35
35
  * The plain heading as the merchant set it, and the heading it always drew for
36
36
  * every part they left out: the catalog's "Show all" where they wrote no word
37
- * the buyer reads. Tracking and line height are written in percent of the
38
- * size, Figma's unit, and drawn in points: -5 on an 18 point title is -0.9.
37
+ * the buyer reads, and the theme's side gutter where they set no side space.
38
+ * Tracking and line height are written in percent of the size, Figma's unit,
39
+ * and drawn in points: -5 on an 18 point title is -0.9.
39
40
  */
40
41
  export function sectionHeaderLook(theme, settings, language, defaultLanguage) {
41
42
  const colors = sectionHeaderColors(theme, settings);
@@ -57,6 +58,7 @@ export function sectionHeaderLook(theme, settings, language, defaultLanguage) {
57
58
  }),
58
59
  chevron: settings.linkChevron ?? SECTION_HEADER_DEFAULTS.linkChevron,
59
60
  },
61
+ gutter: settings.gutter ?? sideGutter(theme),
60
62
  };
61
63
  }
62
64
  //# sourceMappingURL=section-header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"section-header.js","sourceRoot":"","sources":["../src/section-header.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GAIxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;GAIG;AACH,MAAM,oBAAoB,GAAG;IAC3B,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,QAAQ;CAC+C,CAAC;AAMhE;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAAiB,EACjB,WAAuD,EAAE;IAEzD,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,CAAC,CAAC;IACxE,OAAO,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;AAC7E,CAAC;AA2BD,SAAS,UAAU,CAAC,IAMnB;IACC,MAAM,aAAa,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,I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
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 = "5.39.0";
7
+ export declare const CONTRACT_VERSION = "5.40.0";
8
8
  export declare const CONTRACT_MAJOR = 5;
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 = '5.39.0';
7
+ export const CONTRACT_VERSION = '5.40.0';
8
8
  export const CONTRACT_MAJOR = 5;
9
9
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplix-ai/block-kit",
3
- "version": "5.39.0",
3
+ "version": "5.40.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.93.0"
29
+ "@shoplix-ai/sdui-schema": "1.94.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": ">=19.0.0"