@instructure/platform-block-content-editor 2.0.0 → 2.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.
Files changed (29) hide show
  1. package/dist/components/blocks/Banner/Banner.d.ts +5 -2
  2. package/dist/components/blocks/Banner/Banner.d.ts.map +1 -1
  3. package/dist/components/blocks/Banner/bannerPropsSchema.d.ts +41 -4
  4. package/dist/components/blocks/Banner/bannerPropsSchema.d.ts.map +1 -1
  5. package/dist/components/blocks/Banner/bannerTranslations.d.ts +4 -0
  6. package/dist/components/blocks/Banner/bannerTranslations.d.ts.map +1 -1
  7. package/dist/components/blocks/Banner/createBannerBlock.d.ts +8 -1
  8. package/dist/components/blocks/Banner/createBannerBlock.d.ts.map +1 -1
  9. package/dist/components/blocks/Banner/getBannerViewProps.d.ts +48 -2
  10. package/dist/components/blocks/Banner/getBannerViewProps.d.ts.map +1 -1
  11. package/dist/components/blocks/KnowledgeCheck/createKnowledgeCheckBlock.d.ts +1 -1
  12. package/dist/components/blocks/KnowledgeCheck/knowledgeCheckPropsSchema.d.ts +3 -3
  13. package/dist/components/blocks/Text/getTextViewProps.d.ts.map +1 -1
  14. package/dist/components/blocks/commonViewProps.d.ts +12 -0
  15. package/dist/components/blocks/commonViewProps.d.ts.map +1 -1
  16. package/dist/editor/BlockContentEditor.d.ts.map +1 -1
  17. package/dist/editor/sidebar/panel/DesignerSideBar.d.ts +2 -0
  18. package/dist/editor/sidebar/panel/DesignerSideBar.d.ts.map +1 -1
  19. package/dist/index.js +4717 -4539
  20. package/dist/schema/index.d.ts +1 -0
  21. package/dist/schema/index.d.ts.map +1 -1
  22. package/dist/schema/schemaRegistry.d.ts +173 -0
  23. package/dist/schema/schemaRegistry.d.ts.map +1 -0
  24. package/dist/schema/schemaRegistry.test.d.ts +2 -0
  25. package/dist/schema/schemaRegistry.test.d.ts.map +1 -0
  26. package/dist/schema/zodUtils.d.ts +2 -1
  27. package/dist/schema/zodUtils.d.ts.map +1 -1
  28. package/locales/en.json +2 -0
  29. package/package.json +3 -2
@@ -1,4 +1,7 @@
1
1
  import { BannerProps } from './bannerPropsSchema';
2
- /** Presentational banner: optional eyebrow, a semantic h2-h4 heading, optional supporting text. */
3
- export declare function Banner({ title, variant, subtitle, content, headerStyle, cornerStyle, }: BannerProps): import("react/jsx-runtime").JSX.Element;
2
+ /**
3
+ * Presentational banner: optional eyebrow, a semantic h2-h4 heading, optional supporting text,
4
+ * and — for the `image` style — a host-resolved image behind or stacked with the text.
5
+ */
6
+ export declare function Banner({ title, variant, subtitle, content, color, cornerStyle, align, eyebrowStyle, style, imagePlacement, asset_id, isDecorative, alt, }: BannerProps): import("react/jsx-runtime").JSX.Element;
4
7
  //# sourceMappingURL=Banner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Banner/Banner.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGtD,mGAAmG;AACnG,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,WAAoB,EACpB,WAAuB,GACxB,EAAE,WAAW,2CA0Cb"}
1
+ {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Banner/Banner.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAItD;;;GAGG;AACH,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,KAAiB,EACjB,WAAuB,EACvB,KAAc,EACd,YAAyB,EACzB,KAAc,EACd,cAA6B,EAC7B,QAAQ,EACR,YAAoB,EACpB,GAAG,GACJ,EAAE,WAAW,2CAsJb"}
@@ -1,34 +1,71 @@
1
1
  import { z } from 'zod';
2
+ /** Letter casing applied to the eyebrow text. */
3
+ export declare const BannerEyebrowStyleSchema: z.ZodEnum<["all-caps", "sentence-case", "capitalized"]>;
4
+ /** How the banner surface is decorated. `image` is the only value that reveals the image fields. */
5
+ export declare const BannerStyleSchema: z.ZodEnum<["none", "outline", "solid", "image"]>;
6
+ /** Where the image sits relative to the banner text. */
7
+ export declare const BannerImagePlacementSchema: z.ZodEnum<["background", "above", "below"]>;
2
8
  export declare const BannerPropsSchema: z.ZodObject<{
3
9
  title: z.ZodString;
4
10
  variant: z.ZodDefault<z.ZodEnum<["h2", "h3", "h4"]>>;
5
11
  subtitle: z.ZodOptional<z.ZodString>;
12
+ eyebrowStyle: z.ZodOptional<z.ZodDefault<z.ZodEnum<["all-caps", "sentence-case", "capitalized"]>>>;
6
13
  content: z.ZodOptional<z.ZodString>;
7
- headerStyle: z.ZodOptional<z.ZodDefault<z.ZodEnum<["none", "light", "dark"]>>>;
14
+ align: z.ZodOptional<z.ZodDefault<z.ZodEnum<["left", "center", "right"]>>>;
8
15
  cornerStyle: z.ZodOptional<z.ZodDefault<z.ZodEnum<["rounded", "square"]>>>;
16
+ style: z.ZodOptional<z.ZodDefault<z.ZodEnum<["none", "outline", "solid", "image"]>>>;
17
+ color: z.ZodOptional<z.ZodDefault<z.ZodEnum<["light", "dark", "neutral"]>>>;
18
+ imagePlacement: z.ZodOptional<z.ZodDefault<z.ZodEnum<["background", "above", "below"]>>>;
19
+ asset_id: z.ZodOptional<z.ZodString>;
20
+ isDecorative: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
21
+ alt: z.ZodOptional<z.ZodString>;
9
22
  }, "strip", z.ZodTypeAny, {
10
23
  title: string;
11
24
  variant: "h2" | "h3" | "h4";
12
25
  content?: string | undefined;
13
26
  cornerStyle?: "rounded" | "square" | undefined;
27
+ alt?: string | undefined;
28
+ style?: "image" | "none" | "outline" | "solid" | undefined;
29
+ color?: "light" | "dark" | "neutral" | undefined;
30
+ align?: "left" | "center" | "right" | undefined;
14
31
  subtitle?: string | undefined;
15
- headerStyle?: "light" | "dark" | "none" | undefined;
32
+ eyebrowStyle?: "all-caps" | "sentence-case" | "capitalized" | undefined;
33
+ imagePlacement?: "background" | "above" | "below" | undefined;
34
+ asset_id?: string | undefined;
35
+ isDecorative?: boolean | undefined;
16
36
  }, {
17
37
  title: string;
18
38
  content?: string | undefined;
19
39
  variant?: "h2" | "h3" | "h4" | undefined;
20
40
  cornerStyle?: "rounded" | "square" | undefined;
41
+ alt?: string | undefined;
42
+ style?: "image" | "none" | "outline" | "solid" | undefined;
43
+ color?: "light" | "dark" | "neutral" | undefined;
44
+ align?: "left" | "center" | "right" | undefined;
21
45
  subtitle?: string | undefined;
22
- headerStyle?: "light" | "dark" | "none" | undefined;
46
+ eyebrowStyle?: "all-caps" | "sentence-case" | "capitalized" | undefined;
47
+ imagePlacement?: "background" | "above" | "below" | undefined;
48
+ asset_id?: string | undefined;
49
+ isDecorative?: boolean | undefined;
23
50
  }>;
24
51
  export type BannerProps = z.infer<typeof BannerPropsSchema>;
52
+ export type BannerStyle = z.infer<typeof BannerStyleSchema>;
53
+ export type BannerEyebrowStyle = z.infer<typeof BannerEyebrowStyleSchema>;
54
+ export type BannerImagePlacement = z.infer<typeof BannerImagePlacementSchema>;
25
55
  export declare const BannerDefaultProps: BannerProps;
26
56
  export declare const RegisteredBannerPropsSchema: import('../../..').RegisteredComponentSchema<{
27
57
  title: string;
28
58
  variant: "h2" | "h3" | "h4";
29
59
  content?: string | undefined;
30
60
  cornerStyle?: "rounded" | "square" | undefined;
61
+ alt?: string | undefined;
62
+ style?: "image" | "none" | "outline" | "solid" | undefined;
63
+ color?: "light" | "dark" | "neutral" | undefined;
64
+ align?: "left" | "center" | "right" | undefined;
31
65
  subtitle?: string | undefined;
32
- headerStyle?: "light" | "dark" | "none" | undefined;
66
+ eyebrowStyle?: "all-caps" | "sentence-case" | "capitalized" | undefined;
67
+ imagePlacement?: "background" | "above" | "below" | undefined;
68
+ asset_id?: string | undefined;
69
+ isDecorative?: boolean | undefined;
33
70
  }>;
34
71
  //# sourceMappingURL=bannerPropsSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bannerPropsSchema.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Banner/bannerPropsSchema.ts"],"names":[],"mappings":"AAmBA,OAAO,+BAA+B,CAAA;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AASvB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAyC5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,eAAO,MAAM,kBAAkB,EAAE,WAKhC,CAAA;AAED,eAAO,MAAM,2BAA2B;;;;;;;EAAuD,CAAA"}
1
+ {"version":3,"file":"bannerPropsSchema.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Banner/bannerPropsSchema.ts"],"names":[],"mappings":"AAmBA,OAAO,+BAA+B,CAAA;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AASvB,iDAAiD;AACjD,eAAO,MAAM,wBAAwB,yDAAuD,CAAA;AAE5F,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,kDAAgD,CAAA;AAE9E,wDAAwD;AACxD,eAAO,MAAM,0BAA0B,6CAA2C,CAAA;AAWlF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkF5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC3D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC3D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AACzE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E,eAAO,MAAM,kBAAkB,EAAE,WAYhC,CAAA;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;EAAuD,CAAA"}
@@ -7,6 +7,10 @@ export interface BannerTranslations {
7
7
  bannerPlaceholderTitle: string;
8
8
  /** Placeholder eyebrow shown in the designer when a Banner block is empty. */
9
9
  bannerPlaceholderSubtitle: string;
10
+ /** Announced while a Banner's image is loading. */
11
+ bannerImageLoading: string;
12
+ /** Shown when a Banner's image fails to load. */
13
+ bannerImageError: string;
10
14
  }
11
15
  /** English bundled with this package — also the source for `locales/en.json`. */
12
16
  export declare const BannerEnglish: BannerTranslations;
@@ -1 +1 @@
1
- {"version":3,"file":"bannerTranslations.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Banner/bannerTranslations.ts"],"names":[],"mappings":"AAkBA;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,8EAA8E;IAC9E,sBAAsB,EAAE,MAAM,CAAA;IAC9B,8EAA8E;IAC9E,yBAAyB,EAAE,MAAM,CAAA;CAClC;AAED,iFAAiF;AACjF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAA"}
1
+ {"version":3,"file":"bannerTranslations.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Banner/bannerTranslations.ts"],"names":[],"mappings":"AAkBA;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,8EAA8E;IAC9E,sBAAsB,EAAE,MAAM,CAAA;IAC9B,8EAA8E;IAC9E,yBAAyB,EAAE,MAAM,CAAA;IACjC,mDAAmD;IACnD,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iDAAiD;IACjD,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,iFAAiF;AACjF,eAAO,MAAM,aAAa,EAAE,kBAK3B,CAAA"}
@@ -8,7 +8,14 @@ export declare const createBannerBlock: (options: import('../../..').BlockFactor
8
8
  variant: "h2" | "h3" | "h4";
9
9
  content?: string | undefined;
10
10
  cornerStyle?: "rounded" | "square" | undefined;
11
+ alt?: string | undefined;
12
+ style?: "image" | "none" | "outline" | "solid" | undefined;
13
+ color?: "light" | "dark" | "neutral" | undefined;
14
+ align?: "left" | "center" | "right" | undefined;
11
15
  subtitle?: string | undefined;
12
- headerStyle?: "light" | "dark" | "none" | undefined;
16
+ eyebrowStyle?: "all-caps" | "sentence-case" | "capitalized" | undefined;
17
+ imagePlacement?: "background" | "above" | "below" | undefined;
18
+ asset_id?: string | undefined;
19
+ isDecorative?: boolean | undefined;
13
20
  }>;
14
21
  //# sourceMappingURL=createBannerBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createBannerBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Banner/createBannerBlock.ts"],"names":[],"mappings":"AAuBA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;EAM5B,CAAA"}
1
+ {"version":3,"file":"createBannerBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Banner/createBannerBlock.ts"],"names":[],"mappings":"AAuBA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;EAM5B,CAAA"}
@@ -1,4 +1,50 @@
1
+ import { Text as UIText } from '@instructure/ui-text';
2
+ import { View } from '@instructure/ui-view';
3
+ import { ComponentProps } from 'react';
1
4
  import { BlockRenderProps } from '../brandTheming';
2
- import { CornerStyle, HeaderStyle } from '../commonSchemas';
3
- export declare function getBannerViewProps(headerStyle: HeaderStyle, cornerStyle: CornerStyle, brandColor?: string): BlockRenderProps;
5
+ import { Align, ColorTheme, CornerStyle } from '../commonSchemas';
6
+ import { BannerEyebrowStyle, BannerImagePlacement, BannerStyle } from './bannerPropsSchema';
7
+ type ViewProps = ComponentProps<typeof View>;
8
+ type UITextProps = ComponentProps<typeof UIText>;
9
+ /** The eyebrow line's casing and tracking. */
10
+ export interface BannerEyebrowTypography {
11
+ transform: NonNullable<UITextProps['transform']>;
12
+ letterSpacing: NonNullable<UITextProps['letterSpacing']>;
13
+ }
14
+ /**
15
+ * The filled box drawn around the text for the `image` style. `display` decides whether it
16
+ * hugs its text (over a background image) or spans the banner (stacked above/below one).
17
+ */
18
+ export type BannerPanelViewProps = BlockRenderProps['view'] & {
19
+ display: Extract<NonNullable<ViewProps['display']>, 'block' | 'inline-block'>;
20
+ };
21
+ /** The shared container/text pair, plus the alignment and eyebrow tokens Banner adds. */
22
+ export interface BannerViewProps {
23
+ view: BlockRenderProps['view'] & {
24
+ textAlign: NonNullable<ViewProps['textAlign']>;
25
+ };
26
+ text: BlockRenderProps['text'];
27
+ eyebrow: BannerEyebrowTypography;
28
+ /** Set only for the `image` style, whose fill moves off the container onto this box. */
29
+ panel?: BannerPanelViewProps;
30
+ /** Set only for a stacked image; a background one is sized by the banner, not itself. */
31
+ image?: {
32
+ height: string;
33
+ borderRadius: NonNullable<ViewProps['borderRadius']>;
34
+ };
35
+ }
36
+ /** Named options rather than positionals, as in TabsBlock — the list keeps growing. */
37
+ export interface BannerStyleOptions {
38
+ style: BannerStyle;
39
+ color: ColorTheme;
40
+ cornerStyle: CornerStyle;
41
+ align: Align;
42
+ eyebrowStyle: BannerEyebrowStyle;
43
+ imagePlacement: BannerImagePlacement;
44
+ /** Whether a file is chosen — the `image` style only takes effect once one is. */
45
+ hasImage: boolean;
46
+ brandColor?: string;
47
+ }
48
+ export declare function getBannerViewProps(options: BannerStyleOptions): BannerViewProps;
49
+ export {};
4
50
  //# sourceMappingURL=getBannerViewProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBannerViewProps.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Banner/getBannerViewProps.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,gBAAgB,EAAiB,MAAM,iBAAiB,CAAA;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAKhE,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,UAAU,CAAC,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,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC9B,OAAO,EAAE,uBAAuB,CAAA;IAChC,wFAAwF;IACxF,KAAK,CAAC,EAAE,oBAAoB,CAAA;IAC5B,yFAAyF;IACzF,KAAK,CAAC,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,YAAY,EAAE,WAAW,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAA;KACrD,CAAA;CACF;AAED,uFAAuF;AACvF,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,WAAW,CAAA;IAClB,KAAK,EAAE,UAAU,CAAA;IACjB,WAAW,EAAE,WAAW,CAAA;IACxB,KAAK,EAAE,KAAK,CAAA;IACZ,YAAY,EAAE,kBAAkB,CAAA;IAChC,cAAc,EAAE,oBAAoB,CAAA;IACpC,kFAAkF;IAClF,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAoCD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,eAAe,CAuC/E"}
@@ -11,8 +11,8 @@ export declare const createKnowledgeCheckBlock: (options: import('../../..').Blo
11
11
  }[];
12
12
  question: string;
13
13
  cornerStyle?: "rounded" | "square" | undefined;
14
- headerStyle?: "light" | "dark" | "none" | undefined;
15
14
  questionType?: "Multiple choice" | "True or false" | undefined;
16
15
  answerOrder?: "set" | "random" | undefined;
16
+ headerStyle?: "light" | "dark" | "none" | undefined;
17
17
  }>;
18
18
  //# sourceMappingURL=createKnowledgeCheckBlock.d.ts.map
@@ -46,9 +46,9 @@ export declare const KnowledgeCheckPropsSchema: z.ZodObject<{
46
46
  }[];
47
47
  question: string;
48
48
  cornerStyle?: "rounded" | "square" | undefined;
49
- headerStyle?: "light" | "dark" | "none" | undefined;
50
49
  questionType?: "Multiple choice" | "True or false" | undefined;
51
50
  answerOrder?: "set" | "random" | undefined;
51
+ headerStyle?: "light" | "dark" | "none" | undefined;
52
52
  }, {
53
53
  answers: {
54
54
  id: string;
@@ -57,9 +57,9 @@ export declare const KnowledgeCheckPropsSchema: z.ZodObject<{
57
57
  }[];
58
58
  question: string;
59
59
  cornerStyle?: "rounded" | "square" | undefined;
60
- headerStyle?: "light" | "dark" | "none" | undefined;
61
60
  questionType?: "Multiple choice" | "True or false" | undefined;
62
61
  answerOrder?: "set" | "random" | undefined;
62
+ headerStyle?: "light" | "dark" | "none" | undefined;
63
63
  }>;
64
64
  export type KnowledgeCheckProps = z.infer<typeof KnowledgeCheckPropsSchema>;
65
65
  export type KnowledgeCheckAnswer = z.infer<typeof KnowledgeCheckAnswerSchema>;
@@ -80,8 +80,8 @@ export declare const RegisteredKnowledgeCheckPropsSchema: import('../../..').Reg
80
80
  }[];
81
81
  question: string;
82
82
  cornerStyle?: "rounded" | "square" | undefined;
83
- headerStyle?: "light" | "dark" | "none" | undefined;
84
83
  questionType?: "Multiple choice" | "True or false" | undefined;
85
84
  answerOrder?: "set" | "random" | undefined;
85
+ headerStyle?: "light" | "dark" | "none" | undefined;
86
86
  }>;
87
87
  //# sourceMappingURL=knowledgeCheckPropsSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTextViewProps.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Text/getTextViewProps.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,KAAK,gBAAgB,EAMtB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AA6ClD,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,UAAU,CAAC,EAAE,MAAM,GAClB,gBAAgB,CAkBlB"}
1
+ {"version":3,"file":"getTextViewProps.d.ts","sourceRoot":"","sources":["../../../../src/components/blocks/Text/getTextViewProps.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,gBAAgB,EAAiB,MAAM,iBAAiB,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAGlD,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,UAAU,CAAC,EAAE,MAAM,GAClB,gBAAgB,CAOlB"}
@@ -22,6 +22,18 @@ export interface MediaBlockViewProps {
22
22
  * text on whatever surface sits behind it.
23
23
  */
24
24
  export declare function getHeaderStyleStyling(headerStyle: HeaderStyle, brandColor?: string): Styling;
25
+ /**
26
+ * How a block decorates its surface. Each block maps its own enum onto this — Text's
27
+ * `fill` and Banner's `solid` are the same treatment.
28
+ */
29
+ export type SurfaceStyle = 'none' | 'outline' | 'fill';
30
+ /**
31
+ * Styling for a surface/color pair, where the surface treatment is an option of its own
32
+ * rather than implied by the color (as `getHeaderStyleStyling` has it). A brand color
33
+ * themes `light` and `dark`; `neutral` is intentionally never branded. Shared by Text and
34
+ * Banner so the two can't drift apart.
35
+ */
36
+ export declare function getSurfaceStyling(surface: SurfaceStyle, color: ColorTheme, brandColor?: string): Styling;
25
37
  export interface ThemedContainer {
26
38
  styling: Styling;
27
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"commonViewProps.d.ts","sourceRoot":"","sources":["../../../src/components/blocks/commonViewProps.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAKL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAErE,KAAK,SAAS,GAA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AqG;IACrG,QAAQ,EAAE,aAAa,CAAA;IACvB;;;;wEAIoE;IACpE,KAAK,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAA;IAC1B;;sCAEkC;IAClC,cAAc,CAAC,EAAE,aAAa,EAAE,CAAA;IAChC;qDACiD;IACjD,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,CAAA;IAC1C,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,SAAS,MAAM,GAAG,KAAK,EAAE,EACpE,MAAM,EACN,QAAQ,EACR,KAAK,EAAE,SAAS,EAChB,cAAuC,EACvC,aAAa,EACb,MAAM,EACN,oBAAoB,GACrB,EAAE,uBAAuB,CAAC,UAAU,CAAC,2CAoPrC"}
@@ -1,5 +1,7 @@
1
1
  import { Ref } from 'react';
2
2
  import { DesignerSideBarProps, ToolPanelHandle } from './types';
3
+ /** True when the viewport is below the medium breakpoint (mobile layout active). */
4
+ export declare function useIsCompactLayout(enabled?: boolean): boolean;
3
5
  /**
4
6
  * The designer sidebar: a collapsible tool panel on desktop (icon rail + resizable content)
5
7
  * and a slide-up overlay + bottom toolbar on mobile. Built-in trays and any host tools are
@@ -1 +1 @@
1
- {"version":3,"file":"DesignerSideBar.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/DesignerSideBar.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAIL,KAAK,GAAG,EAQT,MAAM,OAAO,CAAA;AAYd,OAAO,KAAK,EAAE,oBAAoB,EAAQ,eAAe,EAAE,MAAM,SAAS,CAAA;AA6C1E;;;;;GAKG;AACH,iBAAS,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAC7C,EACE,KAAK,EAAE,aAAa,EACpB,qBAAqB,EACrB,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,oBAA2B,EAC3B,cAAc,EAAE,wBAAwB,EACxC,sBAAsB,EACtB,IAAI,EACJ,YAAY,EACZ,+BAAsC,EACtC,uBAAuB,EACvB,UAAU,EACV,MAAM,GACP,EAAE,oBAAoB,CAAC,EAAE,CAAC,EAC3B,GAAG,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,2CA0W9B;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAuC,CAAC,EAAE,SAAS,MAAM,EACnF,KAAK,EAAE,oBAAoB,CAAC,EAAE,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAA;CAAE,KACjE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
1
+ {"version":3,"file":"DesignerSideBar.d.ts","sourceRoot":"","sources":["../../../../src/editor/sidebar/panel/DesignerSideBar.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAIL,KAAK,GAAG,EAQT,MAAM,OAAO,CAAA;AAYd,OAAO,KAAK,EAAE,oBAAoB,EAAQ,eAAe,EAAE,MAAM,SAAS,CAAA;AAuB1E,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,OAAO,UAAO,GAAG,OAAO,CAmB1D;AAED;;;;;GAKG;AACH,iBAAS,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAC7C,EACE,KAAK,EAAE,aAAa,EACpB,qBAAqB,EACrB,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,oBAA2B,EAC3B,cAAc,EAAE,wBAAwB,EACxC,sBAAsB,EACtB,IAAI,EACJ,YAAY,EACZ,+BAAsC,EACtC,uBAAuB,EACvB,UAAU,EACV,MAAM,GACP,EAAE,oBAAoB,CAAC,EAAE,CAAC,EAC3B,GAAG,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,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