@bluepic/embed 0.7.0-layouts.2 → 0.7.0-layouts.4
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/dist/bluepic-embed.iife.js +110 -110
- package/dist/bluepic-embed.umd.js +110 -110
- package/dist/components/TemplateEditor/BxTemplateEditor.vue.d.ts +16 -0
- package/dist/components/TemplateEditor/ExportPopoup.vue.d.ts +7 -0
- package/dist/embed/embed.d.ts +36 -4
- package/dist/main.cjs +59 -59
- package/dist/main.mjs +1932 -1875
- package/dist/style.css +1 -1
- package/dist/util/export.d.ts +11 -1
- package/package.json +1 -1
|
@@ -173,6 +173,12 @@ type __VLS_Props = {
|
|
|
173
173
|
* `navbar-right`, right-aligned, without the bar background (the host page owns the rest).
|
|
174
174
|
*/
|
|
175
175
|
chrome?: BxTemplateEditorChrome;
|
|
176
|
+
/**
|
|
177
|
+
* `popup` (default): Export opens the export dialog. `inline`: the host owns
|
|
178
|
+
* Export (call the exposed `triggerExport`) and gets the export view through
|
|
179
|
+
* `export-view` to show in its own page; the editor's Export button is gone.
|
|
180
|
+
*/
|
|
181
|
+
exportPresentation?: 'popup' | 'inline';
|
|
176
182
|
/**
|
|
177
183
|
* Desktop list arrangement. `side` (default): fields beside the preview. `below`: fields
|
|
178
184
|
* under a width-fitted preview; the editor then sizes to its content instead of filling
|
|
@@ -196,6 +202,8 @@ type __VLS_Slots = {
|
|
|
196
202
|
onBranding: boolean;
|
|
197
203
|
}) => VNode[] | VNode;
|
|
198
204
|
'navbar-right': () => VNode[] | VNode;
|
|
205
|
+
/** Start of the header bar, before everything else (e.g. the title of a host sheet). */
|
|
206
|
+
'navbar-left': () => VNode[] | VNode;
|
|
199
207
|
};
|
|
200
208
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
201
209
|
templateViewRef: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -3353,20 +3361,28 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
3353
3361
|
}) | undefined>;
|
|
3354
3362
|
isMultiFrame: import("vue").ComputedRef<boolean>;
|
|
3355
3363
|
}, {}, {}, {}, {}> | undefined>;
|
|
3364
|
+
/** Render and present an export (the Export button's action). */
|
|
3365
|
+
triggerExport: () => Promise<void>;
|
|
3366
|
+
/** An export render is running. */
|
|
3367
|
+
rendering: import("vue").Ref<boolean, boolean>;
|
|
3356
3368
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3357
3369
|
"update:data": (args_0: {
|
|
3358
3370
|
[k: string]: unknown;
|
|
3359
3371
|
}) => any;
|
|
3360
3372
|
back: () => any;
|
|
3373
|
+
"review-fields": () => any;
|
|
3361
3374
|
"update:batchRows": (args_0: BatchRow[]) => any;
|
|
3362
3375
|
"switch-canvas": (canvasId: string, snapshotUrl: string | undefined) => any;
|
|
3376
|
+
"export-view": (render: () => VNode) => any;
|
|
3363
3377
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
3364
3378
|
"onUpdate:data"?: ((args_0: {
|
|
3365
3379
|
[k: string]: unknown;
|
|
3366
3380
|
}) => any) | undefined;
|
|
3367
3381
|
onBack?: (() => any) | undefined;
|
|
3382
|
+
"onReview-fields"?: (() => any) | undefined;
|
|
3368
3383
|
"onUpdate:batchRows"?: ((args_0: BatchRow[]) => any) | undefined;
|
|
3369
3384
|
"onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
3385
|
+
"onExport-view"?: ((render: () => VNode) => any) | undefined;
|
|
3370
3386
|
}>, {
|
|
3371
3387
|
zoomAndPan: boolean;
|
|
3372
3388
|
editMode: "single" | "batch" | "all";
|
|
@@ -57,12 +57,19 @@ type __VLS_Props = {
|
|
|
57
57
|
demandSnapshots?: () => () => void;
|
|
58
58
|
/** Text and picture fields still on the template's value (see useFieldStatus). */
|
|
59
59
|
pendingFieldCount?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Rendered in the host page (the editor's `exportPresentation="inline"`):
|
|
62
|
+
* no dialog title, larger previews, previews and actions side by side
|
|
63
|
+
* where the page is wide enough.
|
|
64
|
+
*/
|
|
65
|
+
inline?: boolean;
|
|
60
66
|
};
|
|
61
67
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
68
|
"review-fields": () => any;
|
|
63
69
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
64
70
|
"onReview-fields"?: (() => any) | undefined;
|
|
65
71
|
}>, {
|
|
72
|
+
inline: boolean;
|
|
66
73
|
mediaType: "image" | "video";
|
|
67
74
|
pendingFieldCount: number;
|
|
68
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
package/dist/embed/embed.d.ts
CHANGED
|
@@ -77,14 +77,17 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
77
77
|
readonly fieldStatus?: boolean | undefined;
|
|
78
78
|
readonly prefilledKeys?: string[] | undefined;
|
|
79
79
|
readonly chrome?: import("../main").BxTemplateEditorChrome | undefined;
|
|
80
|
+
readonly exportPresentation?: "popup" | "inline" | undefined;
|
|
80
81
|
readonly fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement | undefined;
|
|
81
82
|
readonly fieldLimit?: number | undefined;
|
|
82
83
|
readonly "onUpdate:data"?: ((args_0: {
|
|
83
84
|
[k: string]: unknown;
|
|
84
85
|
}) => any) | undefined;
|
|
85
86
|
readonly onBack?: (() => any) | undefined;
|
|
87
|
+
readonly "onReview-fields"?: (() => any) | undefined;
|
|
86
88
|
readonly "onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
|
|
87
89
|
readonly "onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
90
|
+
readonly "onExport-view"?: ((render: () => import("vue").VNode) => any) | undefined;
|
|
88
91
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
89
92
|
$attrs: {
|
|
90
93
|
[x: string]: unknown;
|
|
@@ -100,7 +103,7 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
100
103
|
$host: Element | null;
|
|
101
104
|
$emit: ((event: "update:data", args_0: {
|
|
102
105
|
[k: string]: unknown;
|
|
103
|
-
}) => void) & ((event: "back") => void) & ((event: "update:batchRows", args_0: import("../util/batch/useBatchRows").BatchRow[]) => void) & ((event: "switch-canvas", canvasId: string, snapshotUrl: string | undefined) => void);
|
|
106
|
+
}) => void) & ((event: "back") => void) & ((event: "review-fields") => void) & ((event: "update:batchRows", args_0: import("../util/batch/useBatchRows").BatchRow[]) => void) & ((event: "switch-canvas", canvasId: string, snapshotUrl: string | undefined) => void) & ((event: "export-view", render: () => import("vue").VNode) => void);
|
|
104
107
|
$el: any;
|
|
105
108
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
106
109
|
bxCoreVersion?: string;
|
|
@@ -167,6 +170,7 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
167
170
|
fieldStatus?: boolean;
|
|
168
171
|
prefilledKeys?: string[];
|
|
169
172
|
chrome?: import("../main").BxTemplateEditorChrome;
|
|
173
|
+
exportPresentation?: "popup" | "inline";
|
|
170
174
|
fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
|
|
171
175
|
fieldLimit?: number;
|
|
172
176
|
}> & Readonly<{
|
|
@@ -174,8 +178,10 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
174
178
|
[k: string]: unknown;
|
|
175
179
|
}) => any) | undefined;
|
|
176
180
|
onBack?: (() => any) | undefined;
|
|
181
|
+
"onReview-fields"?: (() => any) | undefined;
|
|
177
182
|
"onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
|
|
178
183
|
"onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
184
|
+
"onExport-view"?: ((render: () => import("vue").VNode) => any) | undefined;
|
|
179
185
|
}>, {
|
|
180
186
|
templateViewRef: Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
181
187
|
bxCoreVersion?: string;
|
|
@@ -3332,13 +3338,17 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
3332
3338
|
}) | undefined>;
|
|
3333
3339
|
isMultiFrame: import("vue").ComputedRef<boolean>;
|
|
3334
3340
|
}, {}, {}, {}, {}> | undefined>;
|
|
3341
|
+
triggerExport: () => Promise<void>;
|
|
3342
|
+
rendering: Ref<boolean, boolean>;
|
|
3335
3343
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3336
3344
|
"update:data": (args_0: {
|
|
3337
3345
|
[k: string]: unknown;
|
|
3338
3346
|
}) => any;
|
|
3339
3347
|
back: () => any;
|
|
3348
|
+
"review-fields": () => any;
|
|
3340
3349
|
"update:batchRows": (args_0: import("../util/batch/useBatchRows").BatchRow[]) => any;
|
|
3341
3350
|
"switch-canvas": (canvasId: string, snapshotUrl: string | undefined) => any;
|
|
3351
|
+
"export-view": (render: () => import("vue").VNode) => any;
|
|
3342
3352
|
}, string, {
|
|
3343
3353
|
zoomAndPan: boolean;
|
|
3344
3354
|
editMode: "single" | "batch" | "all";
|
|
@@ -3462,6 +3472,7 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
3462
3472
|
fieldStatus?: boolean;
|
|
3463
3473
|
prefilledKeys?: string[];
|
|
3464
3474
|
chrome?: import("../main").BxTemplateEditorChrome;
|
|
3475
|
+
exportPresentation?: "popup" | "inline";
|
|
3465
3476
|
fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
|
|
3466
3477
|
fieldLimit?: number;
|
|
3467
3478
|
}> & Readonly<{
|
|
@@ -3469,9 +3480,11 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
3469
3480
|
[k: string]: unknown;
|
|
3470
3481
|
}) => any) | undefined;
|
|
3471
3482
|
onBack?: (() => any) | undefined;
|
|
3483
|
+
"onReview-fields"?: (() => any) | undefined;
|
|
3472
3484
|
"onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
|
|
3473
3485
|
"onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
3474
|
-
|
|
3486
|
+
"onExport-view"?: ((render: () => import("vue").VNode) => any) | undefined;
|
|
3487
|
+
}>, "rendering" | "triggerExport" | "templateViewRef" | ("zoomAndPan" | "editMode" | "videoBatchMaxSize" | "preCacheLocalRendering" | "liveViewOffsetDesktop" | "liveViewOffsetMobile" | "chrome" | "fieldsPlacement")> & import("vue").ShallowUnwrapRef<{
|
|
3475
3488
|
templateViewRef: Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3476
3489
|
bxCoreVersion?: string;
|
|
3477
3490
|
cloudflarePagesHostname?: string;
|
|
@@ -6627,12 +6640,15 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6627
6640
|
}) | undefined>;
|
|
6628
6641
|
isMultiFrame: import("vue").ComputedRef<boolean>;
|
|
6629
6642
|
}, {}, {}, {}, {}> | undefined>;
|
|
6643
|
+
triggerExport: () => Promise<void>;
|
|
6644
|
+
rendering: Ref<boolean, boolean>;
|
|
6630
6645
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
6631
6646
|
$slots: {
|
|
6632
6647
|
legal: (props: {
|
|
6633
6648
|
onBranding: boolean;
|
|
6634
6649
|
}) => import("vue").VNode[] | import("vue").VNode;
|
|
6635
6650
|
'navbar-right': () => import("vue").VNode[] | import("vue").VNode;
|
|
6651
|
+
'navbar-left': () => import("vue").VNode[] | import("vue").VNode;
|
|
6636
6652
|
};
|
|
6637
6653
|
}) | undefined, ({
|
|
6638
6654
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -6704,14 +6720,17 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6704
6720
|
readonly fieldStatus?: boolean | undefined;
|
|
6705
6721
|
readonly prefilledKeys?: string[] | undefined;
|
|
6706
6722
|
readonly chrome?: import("../main").BxTemplateEditorChrome | undefined;
|
|
6723
|
+
readonly exportPresentation?: "popup" | "inline" | undefined;
|
|
6707
6724
|
readonly fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement | undefined;
|
|
6708
6725
|
readonly fieldLimit?: number | undefined;
|
|
6709
6726
|
readonly "onUpdate:data"?: ((args_0: {
|
|
6710
6727
|
[k: string]: unknown;
|
|
6711
6728
|
}) => any) | undefined;
|
|
6712
6729
|
readonly onBack?: (() => any) | undefined;
|
|
6730
|
+
readonly "onReview-fields"?: (() => any) | undefined;
|
|
6713
6731
|
readonly "onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
|
|
6714
6732
|
readonly "onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
6733
|
+
readonly "onExport-view"?: ((render: () => import("vue").VNode) => any) | undefined;
|
|
6715
6734
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
6716
6735
|
$attrs: {
|
|
6717
6736
|
[x: string]: unknown;
|
|
@@ -6727,7 +6746,7 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6727
6746
|
$host: Element | null;
|
|
6728
6747
|
$emit: ((event: "update:data", args_0: {
|
|
6729
6748
|
[k: string]: unknown;
|
|
6730
|
-
}) => void) & ((event: "back") => void) & ((event: "update:batchRows", args_0: import("../util/batch/useBatchRows").BatchRow[]) => void) & ((event: "switch-canvas", canvasId: string, snapshotUrl: string | undefined) => void);
|
|
6749
|
+
}) => void) & ((event: "back") => void) & ((event: "review-fields") => void) & ((event: "update:batchRows", args_0: import("../util/batch/useBatchRows").BatchRow[]) => void) & ((event: "switch-canvas", canvasId: string, snapshotUrl: string | undefined) => void) & ((event: "export-view", render: () => import("vue").VNode) => void);
|
|
6731
6750
|
$el: any;
|
|
6732
6751
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
6733
6752
|
bxCoreVersion?: string;
|
|
@@ -6794,6 +6813,7 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6794
6813
|
fieldStatus?: boolean;
|
|
6795
6814
|
prefilledKeys?: string[];
|
|
6796
6815
|
chrome?: import("../main").BxTemplateEditorChrome;
|
|
6816
|
+
exportPresentation?: "popup" | "inline";
|
|
6797
6817
|
fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
|
|
6798
6818
|
fieldLimit?: number;
|
|
6799
6819
|
}> & Readonly<{
|
|
@@ -6801,8 +6821,10 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6801
6821
|
[k: string]: unknown;
|
|
6802
6822
|
}) => any) | undefined;
|
|
6803
6823
|
onBack?: (() => any) | undefined;
|
|
6824
|
+
"onReview-fields"?: (() => any) | undefined;
|
|
6804
6825
|
"onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
|
|
6805
6826
|
"onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
6827
|
+
"onExport-view"?: ((render: () => import("vue").VNode) => any) | undefined;
|
|
6806
6828
|
}>, {
|
|
6807
6829
|
templateViewRef: Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6808
6830
|
bxCoreVersion?: string;
|
|
@@ -9959,13 +9981,17 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
9959
9981
|
}) | undefined>;
|
|
9960
9982
|
isMultiFrame: import("vue").ComputedRef<boolean>;
|
|
9961
9983
|
}, {}, {}, {}, {}> | undefined>;
|
|
9984
|
+
triggerExport: () => Promise<void>;
|
|
9985
|
+
rendering: Ref<boolean, boolean>;
|
|
9962
9986
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9963
9987
|
"update:data": (args_0: {
|
|
9964
9988
|
[k: string]: unknown;
|
|
9965
9989
|
}) => any;
|
|
9966
9990
|
back: () => any;
|
|
9991
|
+
"review-fields": () => any;
|
|
9967
9992
|
"update:batchRows": (args_0: import("../util/batch/useBatchRows").BatchRow[]) => any;
|
|
9968
9993
|
"switch-canvas": (canvasId: string, snapshotUrl: string | undefined) => any;
|
|
9994
|
+
"export-view": (render: () => import("vue").VNode) => any;
|
|
9969
9995
|
}, string, {
|
|
9970
9996
|
zoomAndPan: boolean;
|
|
9971
9997
|
editMode: "single" | "batch" | "all";
|
|
@@ -10089,6 +10115,7 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
10089
10115
|
fieldStatus?: boolean;
|
|
10090
10116
|
prefilledKeys?: string[];
|
|
10091
10117
|
chrome?: import("../main").BxTemplateEditorChrome;
|
|
10118
|
+
exportPresentation?: "popup" | "inline";
|
|
10092
10119
|
fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
|
|
10093
10120
|
fieldLimit?: number;
|
|
10094
10121
|
}> & Readonly<{
|
|
@@ -10096,9 +10123,11 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
10096
10123
|
[k: string]: unknown;
|
|
10097
10124
|
}) => any) | undefined;
|
|
10098
10125
|
onBack?: (() => any) | undefined;
|
|
10126
|
+
"onReview-fields"?: (() => any) | undefined;
|
|
10099
10127
|
"onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
|
|
10100
10128
|
"onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
10101
|
-
|
|
10129
|
+
"onExport-view"?: ((render: () => import("vue").VNode) => any) | undefined;
|
|
10130
|
+
}>, "rendering" | "triggerExport" | "templateViewRef" | ("zoomAndPan" | "editMode" | "videoBatchMaxSize" | "preCacheLocalRendering" | "liveViewOffsetDesktop" | "liveViewOffsetMobile" | "chrome" | "fieldsPlacement")> & import("vue").ShallowUnwrapRef<{
|
|
10102
10131
|
templateViewRef: Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
10103
10132
|
bxCoreVersion?: string;
|
|
10104
10133
|
cloudflarePagesHostname?: string;
|
|
@@ -13254,12 +13283,15 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
13254
13283
|
}) | undefined>;
|
|
13255
13284
|
isMultiFrame: import("vue").ComputedRef<boolean>;
|
|
13256
13285
|
}, {}, {}, {}, {}> | undefined>;
|
|
13286
|
+
triggerExport: () => Promise<void>;
|
|
13287
|
+
rendering: Ref<boolean, boolean>;
|
|
13257
13288
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
13258
13289
|
$slots: {
|
|
13259
13290
|
legal: (props: {
|
|
13260
13291
|
onBranding: boolean;
|
|
13261
13292
|
}) => import("vue").VNode[] | import("vue").VNode;
|
|
13262
13293
|
'navbar-right': () => import("vue").VNode[] | import("vue").VNode;
|
|
13294
|
+
'navbar-left': () => import("vue").VNode[] | import("vue").VNode;
|
|
13263
13295
|
};
|
|
13264
13296
|
}) | undefined>;
|
|
13265
13297
|
campaignId: Ref<number | undefined>;
|