@bluepic/embed 0.7.0-layouts.3 → 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 +99 -99
- package/dist/bluepic-embed.umd.js +99 -99
- package/dist/components/TemplateEditor/BxTemplateEditor.vue.d.ts +14 -0
- package/dist/components/TemplateEditor/ExportPopoup.vue.d.ts +7 -0
- package/dist/embed/embed.d.ts +34 -4
- package/dist/main.cjs +59 -59
- package/dist/main.mjs +1859 -1809
- 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
|
|
@@ -3355,20 +3361,28 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
3355
3361
|
}) | undefined>;
|
|
3356
3362
|
isMultiFrame: import("vue").ComputedRef<boolean>;
|
|
3357
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>;
|
|
3358
3368
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3359
3369
|
"update:data": (args_0: {
|
|
3360
3370
|
[k: string]: unknown;
|
|
3361
3371
|
}) => any;
|
|
3362
3372
|
back: () => any;
|
|
3373
|
+
"review-fields": () => any;
|
|
3363
3374
|
"update:batchRows": (args_0: BatchRow[]) => any;
|
|
3364
3375
|
"switch-canvas": (canvasId: string, snapshotUrl: string | undefined) => any;
|
|
3376
|
+
"export-view": (render: () => VNode) => any;
|
|
3365
3377
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
3366
3378
|
"onUpdate:data"?: ((args_0: {
|
|
3367
3379
|
[k: string]: unknown;
|
|
3368
3380
|
}) => any) | undefined;
|
|
3369
3381
|
onBack?: (() => any) | undefined;
|
|
3382
|
+
"onReview-fields"?: (() => any) | undefined;
|
|
3370
3383
|
"onUpdate:batchRows"?: ((args_0: BatchRow[]) => any) | undefined;
|
|
3371
3384
|
"onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
3385
|
+
"onExport-view"?: ((render: () => VNode) => any) | undefined;
|
|
3372
3386
|
}>, {
|
|
3373
3387
|
zoomAndPan: boolean;
|
|
3374
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,6 +6640,8 @@ 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: {
|
|
@@ -6705,14 +6720,17 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6705
6720
|
readonly fieldStatus?: boolean | undefined;
|
|
6706
6721
|
readonly prefilledKeys?: string[] | undefined;
|
|
6707
6722
|
readonly chrome?: import("../main").BxTemplateEditorChrome | undefined;
|
|
6723
|
+
readonly exportPresentation?: "popup" | "inline" | undefined;
|
|
6708
6724
|
readonly fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement | undefined;
|
|
6709
6725
|
readonly fieldLimit?: number | undefined;
|
|
6710
6726
|
readonly "onUpdate:data"?: ((args_0: {
|
|
6711
6727
|
[k: string]: unknown;
|
|
6712
6728
|
}) => any) | undefined;
|
|
6713
6729
|
readonly onBack?: (() => any) | undefined;
|
|
6730
|
+
readonly "onReview-fields"?: (() => any) | undefined;
|
|
6714
6731
|
readonly "onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
|
|
6715
6732
|
readonly "onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
6733
|
+
readonly "onExport-view"?: ((render: () => import("vue").VNode) => any) | undefined;
|
|
6716
6734
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
6717
6735
|
$attrs: {
|
|
6718
6736
|
[x: string]: unknown;
|
|
@@ -6728,7 +6746,7 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6728
6746
|
$host: Element | null;
|
|
6729
6747
|
$emit: ((event: "update:data", args_0: {
|
|
6730
6748
|
[k: string]: unknown;
|
|
6731
|
-
}) => 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);
|
|
6732
6750
|
$el: any;
|
|
6733
6751
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
6734
6752
|
bxCoreVersion?: string;
|
|
@@ -6795,6 +6813,7 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6795
6813
|
fieldStatus?: boolean;
|
|
6796
6814
|
prefilledKeys?: string[];
|
|
6797
6815
|
chrome?: import("../main").BxTemplateEditorChrome;
|
|
6816
|
+
exportPresentation?: "popup" | "inline";
|
|
6798
6817
|
fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
|
|
6799
6818
|
fieldLimit?: number;
|
|
6800
6819
|
}> & Readonly<{
|
|
@@ -6802,8 +6821,10 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6802
6821
|
[k: string]: unknown;
|
|
6803
6822
|
}) => any) | undefined;
|
|
6804
6823
|
onBack?: (() => any) | undefined;
|
|
6824
|
+
"onReview-fields"?: (() => any) | undefined;
|
|
6805
6825
|
"onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
|
|
6806
6826
|
"onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
6827
|
+
"onExport-view"?: ((render: () => import("vue").VNode) => any) | undefined;
|
|
6807
6828
|
}>, {
|
|
6808
6829
|
templateViewRef: Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6809
6830
|
bxCoreVersion?: string;
|
|
@@ -9960,13 +9981,17 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
9960
9981
|
}) | undefined>;
|
|
9961
9982
|
isMultiFrame: import("vue").ComputedRef<boolean>;
|
|
9962
9983
|
}, {}, {}, {}, {}> | undefined>;
|
|
9984
|
+
triggerExport: () => Promise<void>;
|
|
9985
|
+
rendering: Ref<boolean, boolean>;
|
|
9963
9986
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9964
9987
|
"update:data": (args_0: {
|
|
9965
9988
|
[k: string]: unknown;
|
|
9966
9989
|
}) => any;
|
|
9967
9990
|
back: () => any;
|
|
9991
|
+
"review-fields": () => any;
|
|
9968
9992
|
"update:batchRows": (args_0: import("../util/batch/useBatchRows").BatchRow[]) => any;
|
|
9969
9993
|
"switch-canvas": (canvasId: string, snapshotUrl: string | undefined) => any;
|
|
9994
|
+
"export-view": (render: () => import("vue").VNode) => any;
|
|
9970
9995
|
}, string, {
|
|
9971
9996
|
zoomAndPan: boolean;
|
|
9972
9997
|
editMode: "single" | "batch" | "all";
|
|
@@ -10090,6 +10115,7 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
10090
10115
|
fieldStatus?: boolean;
|
|
10091
10116
|
prefilledKeys?: string[];
|
|
10092
10117
|
chrome?: import("../main").BxTemplateEditorChrome;
|
|
10118
|
+
exportPresentation?: "popup" | "inline";
|
|
10093
10119
|
fieldsPlacement?: import("../main").BxTemplateEditorFieldsPlacement;
|
|
10094
10120
|
fieldLimit?: number;
|
|
10095
10121
|
}> & Readonly<{
|
|
@@ -10097,9 +10123,11 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
10097
10123
|
[k: string]: unknown;
|
|
10098
10124
|
}) => any) | undefined;
|
|
10099
10125
|
onBack?: (() => any) | undefined;
|
|
10126
|
+
"onReview-fields"?: (() => any) | undefined;
|
|
10100
10127
|
"onUpdate:batchRows"?: ((args_0: import("../util/batch/useBatchRows").BatchRow[]) => any) | undefined;
|
|
10101
10128
|
"onSwitch-canvas"?: ((canvasId: string, snapshotUrl: string | undefined) => any) | undefined;
|
|
10102
|
-
|
|
10129
|
+
"onExport-view"?: ((render: () => import("vue").VNode) => any) | undefined;
|
|
10130
|
+
}>, "rendering" | "triggerExport" | "templateViewRef" | ("zoomAndPan" | "editMode" | "videoBatchMaxSize" | "preCacheLocalRendering" | "liveViewOffsetDesktop" | "liveViewOffsetMobile" | "chrome" | "fieldsPlacement")> & import("vue").ShallowUnwrapRef<{
|
|
10103
10131
|
templateViewRef: Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
10104
10132
|
bxCoreVersion?: string;
|
|
10105
10133
|
cloudflarePagesHostname?: string;
|
|
@@ -13255,6 +13283,8 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
13255
13283
|
}) | undefined>;
|
|
13256
13284
|
isMultiFrame: import("vue").ComputedRef<boolean>;
|
|
13257
13285
|
}, {}, {}, {}, {}> | undefined>;
|
|
13286
|
+
triggerExport: () => Promise<void>;
|
|
13287
|
+
rendering: Ref<boolean, boolean>;
|
|
13258
13288
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
13259
13289
|
$slots: {
|
|
13260
13290
|
legal: (props: {
|