@bluepic/embed 0.7.0-layouts.3 → 0.7.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.
@@ -1,14 +1,4 @@
1
- /**
2
- * Side drawer on the global popup stack. Focus trap, Escape and focus return
3
- * come from the popup provider (`useFocusTrap`).
4
- *
5
- * `sheet` (opt-in, default off) turns it into a modal editor sheet:
6
- * `role="dialog"` + `aria-modal`, named by its heading; focus moves to the
7
- * heading on open; full screen below `fullscreenBelow` px viewport width
8
- * (default 600); safe-area insets; the page behind does not scroll
9
- * (`lockScroll`); a sticky `footer` slot. Without `sheet` nothing changes.
10
- */
11
- import { type VNode } from 'vue';
1
+ import { VNode } from 'vue';
12
2
  export type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
13
3
  type __VLS_Props = {
14
4
  trigger?: 'manual' | 'click';
@@ -21,14 +11,6 @@ type __VLS_Props = {
21
11
  customClasses?: string[];
22
12
  wrapperCustomClasses?: string[];
23
13
  disableBackgroundEffect?: boolean;
24
- /** Modal editor sheet (see above). Default false: today's drawer. */
25
- sheet?: boolean;
26
- /** Sheet only: below this viewport width (px) the sheet covers the screen. 0 = never. Default 600. */
27
- fullscreenBelow?: number;
28
- /** Sheet only: lock the page scroll while open. `true` locks the document; an element locks that scroll container. Default true. */
29
- lockScroll?: boolean | HTMLElement | null;
30
- /** Sheet only: accessible name when there is no heading. */
31
- ariaLabel?: string;
32
14
  };
33
15
  type __VLS_Slots = {
34
16
  default: (scope: {
@@ -44,17 +26,12 @@ type __VLS_Slots = {
44
26
  ['close-btn']?: (scope: {
45
27
  close: () => void;
46
28
  }) => VNode[];
47
- /** Sheet only: sticky bar at the bottom (actions). */
48
- footer?: (scope: {
49
- close: () => void;
50
- }) => VNode[];
51
29
  };
52
30
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
31
  "update:show": (args_0: boolean) => any;
54
32
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
55
33
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
56
34
  }>, {
57
- ariaLabel: string;
58
35
  width: string;
59
36
  disableBackgroundEffect: boolean;
60
37
  wrapperCustomClasses: string[];
@@ -64,9 +41,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
64
41
  closeable: boolean;
65
42
  customClasses: string[];
66
43
  height: string;
67
- sheet: boolean;
68
- fullscreenBelow: number;
69
- lockScroll: boolean | HTMLElement | null;
70
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
71
45
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
72
46
  export default _default;
@@ -16,7 +16,7 @@ type __VLS_Props = {
16
16
  maxLines?: number;
17
17
  showWordCount?: boolean;
18
18
  type?: 'text' | 'password' | 'number' | 'email' | 'tel' | 'textarea';
19
- state?: 'default' | 'active' | 'success' | 'error' | 'warning';
19
+ state?: 'default' | 'active' | 'success' | 'error' | 'warning' | 'animated';
20
20
  ghost?: boolean;
21
21
  ring?: boolean;
22
22
  clearable?: boolean;
@@ -70,7 +70,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
70
70
  round: boolean;
71
71
  disabled: boolean;
72
72
  loading: boolean;
73
- state: "default" | "active" | "success" | "error" | "warning";
73
+ state: "default" | "active" | "success" | "error" | "warning" | "animated";
74
74
  maxLength: number;
75
75
  maxLines: number;
76
76
  bordered: boolean;
@@ -6,7 +6,7 @@ type __VLS_Props = {
6
6
  disabled?: boolean;
7
7
  readonly?: boolean;
8
8
  placeholder?: string;
9
- state?: 'default' | 'active' | 'success' | 'error' | 'warning';
9
+ state?: 'default' | 'active' | 'success' | 'error' | 'warning' | 'animated';
10
10
  ring?: boolean;
11
11
  round?: boolean;
12
12
  bordered?: boolean;
@@ -34,7 +34,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
34
34
  size: "small" | "medium" | "large";
35
35
  round: boolean;
36
36
  disabled: boolean;
37
- state: "default" | "active" | "success" | "error" | "warning";
37
+ state: "default" | "active" | "success" | "error" | "warning" | "animated";
38
38
  bordered: boolean;
39
39
  ring: boolean;
40
40
  readonly: boolean;
@@ -9,15 +9,10 @@
9
9
  * A tab is a plain string (id = label, the old API) or `{ id, label }`, so two
10
10
  * entries may share a label. Many tabs scroll horizontally; soft fades mark the
11
11
  * hidden ones and the active tab is scrolled into view.
12
- *
13
- * `variant`: `boxed` (default, bordered buttons), `underline` (a bar with an
14
- * indicator under the active tab), `pill` (rounded, the active one filled).
15
- * An object tab may carry a `count`, shown after the label.
16
12
  */
17
13
  type TabEntry = string | {
18
14
  id: string;
19
15
  label: string;
20
- count?: number | null;
21
16
  };
22
17
  type __VLS_Props = {
23
18
  tabs: TabEntry[];
@@ -27,9 +22,6 @@ type __VLS_Props = {
27
22
  panelId?: string;
28
23
  /** Prefix of every tab button's DOM id (`<prefix>-<tab id>`). */
29
24
  idPrefix?: string;
30
- variant?: 'boxed' | 'underline' | 'pill';
31
- /** `start`: tabs start at the left edge instead of centring. */
32
- align?: 'center' | 'start';
33
25
  };
34
26
  declare function tabElementId(id: string): string;
35
27
  type __VLS_PublicProps = __VLS_Props & {
@@ -46,8 +38,6 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
46
38
  }>, {
47
39
  ariaLabel: string;
48
40
  mode: "anchors" | "tabs";
49
- variant: "boxed" | "underline" | "pill";
50
- align: "center" | "start";
51
41
  panelId: string;
52
42
  idPrefix: string;
53
43
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -10,7 +10,6 @@ import 'swiper/css/scrollbar';
10
10
  import type { EditorCanvas } from '../../util/canvases';
11
11
  import type { ExportAnalyticsSink } from '../../util/analytics';
12
12
  import { nextTick } from 'vue';
13
- import { type BxTemplateEditorChrome, type BxTemplateEditorFieldsPlacement } from './editorArrangement';
14
13
  type __VLS_Props = {
15
14
  bxCoreVersion?: string;
16
15
  /** Override the sandbox host (defaults to sandbox.bluepic.io). e.g. sandbox.bluepic.eu */
@@ -167,24 +166,6 @@ type __VLS_Props = {
167
166
  * …). With `fieldStatus` they count as done whatever their value.
168
167
  */
169
168
  prefilledKeys?: string[];
170
- /**
171
- * Header arrangement. `full` (default): back, branding, legal, mode switch, batch nav,
172
- * export, format switcher. `actions`: only Export, the format switcher and
173
- * `navbar-right`, right-aligned, without the bar background (the host page owns the rest).
174
- */
175
- chrome?: BxTemplateEditorChrome;
176
- /**
177
- * Desktop list arrangement. `side` (default): fields beside the preview. `below`: fields
178
- * under a width-fitted preview; the editor then sizes to its content instead of filling
179
- * its parent. Phones (`layout: 'mobile'`) and batch mode keep their arrangement.
180
- */
181
- fieldsPlacement?: BxTemplateEditorFieldsPlacement;
182
- /**
183
- * Desktop list only: show the first `fieldLimit - 1` fields and fold the rest into a
184
- * "More fields (n)" button that expands in place. Exactly `fieldLimit` fields: all show.
185
- * Unset (default): no limit.
186
- */
187
- fieldLimit?: number;
188
169
  };
189
170
  type __VLS_Slots = {
190
171
  /**
@@ -196,8 +177,6 @@ type __VLS_Slots = {
196
177
  onBranding: boolean;
197
178
  }) => VNode[] | VNode;
198
179
  'navbar-right': () => VNode[] | VNode;
199
- /** Start of the header bar, before everything else (e.g. the title of a host sheet). */
200
- 'navbar-left': () => VNode[] | VNode;
201
180
  };
202
181
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
203
182
  templateViewRef: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
@@ -3386,8 +3365,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
3386
3365
  bottom: number;
3387
3366
  left: number;
3388
3367
  };
3389
- chrome: BxTemplateEditorChrome;
3390
- fieldsPlacement: BxTemplateEditorFieldsPlacement;
3391
3368
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3392
3369
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
3393
3370
  export default _default;
@@ -76,9 +76,6 @@ export declare class BluepicEmbed extends EventTarget {
76
76
  readonly batchRows?: import("../util/batch/useBatchRows").BatchRow[] | undefined;
77
77
  readonly fieldStatus?: boolean | undefined;
78
78
  readonly prefilledKeys?: string[] | undefined;
79
- readonly chrome?: import("../main").BxTemplateEditorChrome | undefined;
80
- readonly fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement | undefined;
81
- readonly fieldLimit?: number | undefined;
82
79
  readonly "onUpdate:data"?: ((args_0: {
83
80
  [k: string]: unknown;
84
81
  }) => any) | undefined;
@@ -166,9 +163,6 @@ export declare class BluepicEmbed extends EventTarget {
166
163
  batchRows?: import("../util/batch/useBatchRows").BatchRow[];
167
164
  fieldStatus?: boolean;
168
165
  prefilledKeys?: string[];
169
- chrome?: import("../main").BxTemplateEditorChrome;
170
- fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
171
- fieldLimit?: number;
172
166
  }> & Readonly<{
173
167
  "onUpdate:data"?: ((args_0: {
174
168
  [k: string]: unknown;
@@ -3356,8 +3350,6 @@ export declare class BluepicEmbed extends EventTarget {
3356
3350
  bottom: number;
3357
3351
  left: number;
3358
3352
  };
3359
- chrome: import("../main").BxTemplateEditorChrome;
3360
- fieldsPlacement: import("../main").BxTemplateEditorFieldsPlacement;
3361
3353
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
3362
3354
  beforeCreate?: (() => void) | (() => void)[];
3363
3355
  created?: (() => void) | (() => void)[];
@@ -3395,8 +3387,6 @@ export declare class BluepicEmbed extends EventTarget {
3395
3387
  bottom: number;
3396
3388
  left: number;
3397
3389
  };
3398
- chrome: import("../main").BxTemplateEditorChrome;
3399
- fieldsPlacement: import("../main").BxTemplateEditorFieldsPlacement;
3400
3390
  }> & Omit<Readonly<{
3401
3391
  bxCoreVersion?: string;
3402
3392
  cloudflarePagesHostname?: string;
@@ -3461,9 +3451,6 @@ export declare class BluepicEmbed extends EventTarget {
3461
3451
  batchRows?: import("../util/batch/useBatchRows").BatchRow[];
3462
3452
  fieldStatus?: boolean;
3463
3453
  prefilledKeys?: string[];
3464
- chrome?: import("../main").BxTemplateEditorChrome;
3465
- fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
3466
- fieldLimit?: number;
3467
3454
  }> & Readonly<{
3468
3455
  "onUpdate:data"?: ((args_0: {
3469
3456
  [k: string]: unknown;
@@ -3471,7 +3458,7 @@ export declare class BluepicEmbed extends EventTarget {
3471
3458
  onBack?: (() => any) | undefined;
3472
3459
  "onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
3473
3460
  "onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
3474
- }>, "templateViewRef" | ("zoomAndPan" | "editMode" | "videoBatchMaxSize" | "preCacheLocalRendering" | "liveViewOffsetDesktop" | "liveViewOffsetMobile" | "chrome" | "fieldsPlacement")> & import("vue").ShallowUnwrapRef<{
3461
+ }>, "templateViewRef" | ("zoomAndPan" | "editMode" | "videoBatchMaxSize" | "preCacheLocalRendering" | "liveViewOffsetDesktop" | "liveViewOffsetMobile")> & import("vue").ShallowUnwrapRef<{
3475
3462
  templateViewRef: Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
3476
3463
  bxCoreVersion?: string;
3477
3464
  cloudflarePagesHostname?: string;
@@ -6633,7 +6620,6 @@ export declare class BluepicEmbed extends EventTarget {
6633
6620
  onBranding: boolean;
6634
6621
  }) => import("vue").VNode[] | import("vue").VNode;
6635
6622
  'navbar-right': () => import("vue").VNode[] | import("vue").VNode;
6636
- 'navbar-left': () => import("vue").VNode[] | import("vue").VNode;
6637
6623
  };
6638
6624
  }) | undefined, ({
6639
6625
  $: import("vue").ComponentInternalInstance;
@@ -6704,9 +6690,6 @@ export declare class BluepicEmbed extends EventTarget {
6704
6690
  readonly batchRows?: import("../util/batch/useBatchRows").BatchRow[] | undefined;
6705
6691
  readonly fieldStatus?: boolean | undefined;
6706
6692
  readonly prefilledKeys?: string[] | undefined;
6707
- readonly chrome?: import("../main").BxTemplateEditorChrome | undefined;
6708
- readonly fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement | undefined;
6709
- readonly fieldLimit?: number | undefined;
6710
6693
  readonly "onUpdate:data"?: ((args_0: {
6711
6694
  [k: string]: unknown;
6712
6695
  }) => any) | undefined;
@@ -6794,9 +6777,6 @@ export declare class BluepicEmbed extends EventTarget {
6794
6777
  batchRows?: import("../util/batch/useBatchRows").BatchRow[];
6795
6778
  fieldStatus?: boolean;
6796
6779
  prefilledKeys?: string[];
6797
- chrome?: import("../main").BxTemplateEditorChrome;
6798
- fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
6799
- fieldLimit?: number;
6800
6780
  }> & Readonly<{
6801
6781
  "onUpdate:data"?: ((args_0: {
6802
6782
  [k: string]: unknown;
@@ -9984,8 +9964,6 @@ export declare class BluepicEmbed extends EventTarget {
9984
9964
  bottom: number;
9985
9965
  left: number;
9986
9966
  };
9987
- chrome: import("../main").BxTemplateEditorChrome;
9988
- fieldsPlacement: import("../main").BxTemplateEditorFieldsPlacement;
9989
9967
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
9990
9968
  beforeCreate?: (() => void) | (() => void)[];
9991
9969
  created?: (() => void) | (() => void)[];
@@ -10023,8 +10001,6 @@ export declare class BluepicEmbed extends EventTarget {
10023
10001
  bottom: number;
10024
10002
  left: number;
10025
10003
  };
10026
- chrome: import("../main").BxTemplateEditorChrome;
10027
- fieldsPlacement: import("../main").BxTemplateEditorFieldsPlacement;
10028
10004
  }> & Omit<Readonly<{
10029
10005
  bxCoreVersion?: string;
10030
10006
  cloudflarePagesHostname?: string;
@@ -10089,9 +10065,6 @@ export declare class BluepicEmbed extends EventTarget {
10089
10065
  batchRows?: import("../util/batch/useBatchRows").BatchRow[];
10090
10066
  fieldStatus?: boolean;
10091
10067
  prefilledKeys?: string[];
10092
- chrome?: import("../main").BxTemplateEditorChrome;
10093
- fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
10094
- fieldLimit?: number;
10095
10068
  }> & Readonly<{
10096
10069
  "onUpdate:data"?: ((args_0: {
10097
10070
  [k: string]: unknown;
@@ -10099,7 +10072,7 @@ export declare class BluepicEmbed extends EventTarget {
10099
10072
  onBack?: (() => any) | undefined;
10100
10073
  "onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
10101
10074
  "onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
10102
- }>, "templateViewRef" | ("zoomAndPan" | "editMode" | "videoBatchMaxSize" | "preCacheLocalRendering" | "liveViewOffsetDesktop" | "liveViewOffsetMobile" | "chrome" | "fieldsPlacement")> & import("vue").ShallowUnwrapRef<{
10075
+ }>, "templateViewRef" | ("zoomAndPan" | "editMode" | "videoBatchMaxSize" | "preCacheLocalRendering" | "liveViewOffsetDesktop" | "liveViewOffsetMobile")> & import("vue").ShallowUnwrapRef<{
10103
10076
  templateViewRef: Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
10104
10077
  bxCoreVersion?: string;
10105
10078
  cloudflarePagesHostname?: string;
@@ -13261,7 +13234,6 @@ export declare class BluepicEmbed extends EventTarget {
13261
13234
  onBranding: boolean;
13262
13235
  }) => import("vue").VNode[] | import("vue").VNode;
13263
13236
  'navbar-right': () => import("vue").VNode[] | import("vue").VNode;
13264
- 'navbar-left': () => import("vue").VNode[] | import("vue").VNode;
13265
13237
  };
13266
13238
  }) | undefined>;
13267
13239
  campaignId: Ref<number | undefined>;