@bluepic/embed 0.6.43 → 0.6.45
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 +108 -108
- package/dist/bluepic-embed.umd.js +108 -108
- package/dist/components/BxStepper.vue.d.ts +7 -1
- package/dist/components/FieldStatusMark.vue.d.ts +6 -0
- package/dist/components/TemplateEditor/BxTemplateEditor.vue.d.ts +11 -0
- package/dist/components/TemplateEditor/ExportPopoup.vue.d.ts +8 -1
- package/dist/components/fields/Group.vue.d.ts +2 -0
- package/dist/embed/embed.d.ts +12 -0
- package/dist/main.cjs +49 -49
- package/dist/main.d.ts +2 -0
- package/dist/main.mjs +4717 -4485
- package/dist/style.css +1 -1
- package/dist/util/export.d.ts +10 -1
- package/dist/util/fieldStatus.d.ts +84 -0
- package/package.json +3 -2
|
@@ -12,6 +12,11 @@ type __VLS_Props = {
|
|
|
12
12
|
checkmark?: boolean;
|
|
13
13
|
showPrevBtn?: boolean;
|
|
14
14
|
showNextBtn?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* `numbered`: compact wizard steps (number in a circle, a check mark once
|
|
17
|
+
* done, short connectors), for headers. `default`: the full-width line.
|
|
18
|
+
*/
|
|
19
|
+
variant?: 'default' | 'numbered';
|
|
15
20
|
};
|
|
16
21
|
type __VLS_PublicProps = __VLS_Props & {
|
|
17
22
|
'modelValue': StepKey;
|
|
@@ -21,8 +26,9 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
21
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
27
|
"onUpdate:modelValue"?: ((value: StepKey) => any) | undefined;
|
|
23
28
|
}>, {
|
|
24
|
-
|
|
29
|
+
variant: "default" | "numbered";
|
|
25
30
|
checkmark: boolean;
|
|
31
|
+
showIndices: boolean;
|
|
26
32
|
showPrevBtn: boolean;
|
|
27
33
|
showNextBtn: boolean;
|
|
28
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FieldStatus } from '../util/fieldStatus';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
status: FieldStatus;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -155,6 +155,17 @@ type __VLS_Props = {
|
|
|
155
155
|
urlRenderBaseUrl?: string;
|
|
156
156
|
/** Host-owned batch rows (`v-model:batchRows`). Absent = session storage only. */
|
|
157
157
|
batchRows?: BatchRow[];
|
|
158
|
+
/**
|
|
159
|
+
* Mark every field card as done or not edited yet, and say so on export
|
|
160
|
+
* when a text or picture field still shows the template's value.
|
|
161
|
+
* Off by default.
|
|
162
|
+
*/
|
|
163
|
+
fieldStatus?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Data keys the host filled in (query string, pre-populated row, LinkedIn,
|
|
166
|
+
* …). With `fieldStatus` they count as done whatever their value.
|
|
167
|
+
*/
|
|
168
|
+
prefilledKeys?: string[];
|
|
158
169
|
};
|
|
159
170
|
type __VLS_Slots = {
|
|
160
171
|
/**
|
|
@@ -55,8 +55,15 @@ type __VLS_Props = {
|
|
|
55
55
|
snapshotFailed?: Record<string, boolean>;
|
|
56
56
|
/** Keeps `snapshots` fresh while the popup is open; returns the release. */
|
|
57
57
|
demandSnapshots?: () => () => void;
|
|
58
|
+
/** Text and picture fields still on the template's value (see useFieldStatus). */
|
|
59
|
+
pendingFieldCount?: number;
|
|
58
60
|
};
|
|
59
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
|
+
"review-fields": () => any;
|
|
63
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
64
|
+
"onReview-fields"?: (() => any) | undefined;
|
|
65
|
+
}>, {
|
|
60
66
|
mediaType: "image" | "video";
|
|
67
|
+
pendingFieldCount: number;
|
|
61
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
62
69
|
export default _default;
|
|
@@ -8,6 +8,8 @@ type __VLS_Props = {
|
|
|
8
8
|
description?: string;
|
|
9
9
|
detailedDescription?: string;
|
|
10
10
|
bridge: FieldsBridge;
|
|
11
|
+
/** The group field itself (passed by FieldsList). */
|
|
12
|
+
field?: BluepicField;
|
|
11
13
|
};
|
|
12
14
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
15
|
index: number;
|
package/dist/embed/embed.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
74
74
|
readonly templateAlias?: string | null | undefined;
|
|
75
75
|
readonly urlRenderBaseUrl?: string | undefined;
|
|
76
76
|
readonly batchRows?: import("../util/batch/useBatchRows").BatchRow[] | undefined;
|
|
77
|
+
readonly fieldStatus?: boolean | undefined;
|
|
78
|
+
readonly prefilledKeys?: string[] | undefined;
|
|
77
79
|
readonly "onUpdate:data"?: ((args_0: {
|
|
78
80
|
[k: string]: unknown;
|
|
79
81
|
}) => any) | undefined;
|
|
@@ -159,6 +161,8 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
159
161
|
templateAlias?: string | null;
|
|
160
162
|
urlRenderBaseUrl?: string;
|
|
161
163
|
batchRows?: import("../util/batch/useBatchRows").BatchRow[];
|
|
164
|
+
fieldStatus?: boolean;
|
|
165
|
+
prefilledKeys?: string[];
|
|
162
166
|
}> & Readonly<{
|
|
163
167
|
"onUpdate:data"?: ((args_0: {
|
|
164
168
|
[k: string]: unknown;
|
|
@@ -3445,6 +3449,8 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
3445
3449
|
templateAlias?: string | null;
|
|
3446
3450
|
urlRenderBaseUrl?: string;
|
|
3447
3451
|
batchRows?: import("../util/batch/useBatchRows").BatchRow[];
|
|
3452
|
+
fieldStatus?: boolean;
|
|
3453
|
+
prefilledKeys?: string[];
|
|
3448
3454
|
}> & Readonly<{
|
|
3449
3455
|
"onUpdate:data"?: ((args_0: {
|
|
3450
3456
|
[k: string]: unknown;
|
|
@@ -6682,6 +6688,8 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6682
6688
|
readonly templateAlias?: string | null | undefined;
|
|
6683
6689
|
readonly urlRenderBaseUrl?: string | undefined;
|
|
6684
6690
|
readonly batchRows?: import("../util/batch/useBatchRows").BatchRow[] | undefined;
|
|
6691
|
+
readonly fieldStatus?: boolean | undefined;
|
|
6692
|
+
readonly prefilledKeys?: string[] | undefined;
|
|
6685
6693
|
readonly "onUpdate:data"?: ((args_0: {
|
|
6686
6694
|
[k: string]: unknown;
|
|
6687
6695
|
}) => any) | undefined;
|
|
@@ -6767,6 +6775,8 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
6767
6775
|
templateAlias?: string | null;
|
|
6768
6776
|
urlRenderBaseUrl?: string;
|
|
6769
6777
|
batchRows?: import("../util/batch/useBatchRows").BatchRow[];
|
|
6778
|
+
fieldStatus?: boolean;
|
|
6779
|
+
prefilledKeys?: string[];
|
|
6770
6780
|
}> & Readonly<{
|
|
6771
6781
|
"onUpdate:data"?: ((args_0: {
|
|
6772
6782
|
[k: string]: unknown;
|
|
@@ -10053,6 +10063,8 @@ export declare class BluepicEmbed extends EventTarget {
|
|
|
10053
10063
|
templateAlias?: string | null;
|
|
10054
10064
|
urlRenderBaseUrl?: string;
|
|
10055
10065
|
batchRows?: import("../util/batch/useBatchRows").BatchRow[];
|
|
10066
|
+
fieldStatus?: boolean;
|
|
10067
|
+
prefilledKeys?: string[];
|
|
10056
10068
|
}> & Readonly<{
|
|
10057
10069
|
"onUpdate:data"?: ((args_0: {
|
|
10058
10070
|
[k: string]: unknown;
|