ablok-photobooth 0.2.39 → 0.2.41
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/ablok-photobooth.js +12 -0
- package/dist/chunks/color-booth.vue_vue_type_style_index_0_lang-Cxo8ZMRt.js +98 -0
- package/dist/chunks/creative-booth.vue_vue_type_style_index_0_lang-BHKoShl5.js +248 -0
- package/dist/chunks/fabric-canvas.vue_vue_type_style_index_0_lang-B-D65X2t.js +318 -0
- package/dist/chunks/face-swap.vue_vue_type_style_index_0_lang-B0EJ4Q3T.js +229 -0
- package/dist/chunks/media-api-DcCOqndv.js +164 -0
- package/dist/chunks/photo-app.vue_vue_type_style_index_0_lang-CQsO0T0U.js +569 -0
- package/dist/color-booth.js +4 -0
- package/dist/creative-booth.js +6 -0
- package/dist/fabric-canvas.js +4 -0
- package/dist/face-swap.js +6 -0
- package/dist/photo-app.js +4 -0
- package/dist/{components → types/components}/creative-booth.vue.d.ts +39 -89
- package/dist/{components → types/components}/photo-app.vue.d.ts +2 -2
- package/package.json +49 -10
- package/dist/App.vue.d.ts +0 -2
- package/dist/ablok-photobooth.es.js +0 -1545
- package/dist/ablok-photobooth.umd.js +0 -1
- package/dist/histoire.setup.d.ts +0 -1
- package/dist/i18n.d.ts +0 -77
- package/dist/main.d.ts +0 -0
- /package/dist/{api → types/api}/media-api.d.ts +0 -0
- /package/dist/{components → types/components}/color-booth.vue.d.ts +0 -0
- /package/dist/{components → types/components}/fabric-canvas.vue.d.ts +0 -0
- /package/dist/{components → types/components}/face-swap.vue.d.ts +0 -0
- /package/dist/{components → types/components}/svg-canvas.vue.d.ts +0 -0
- /package/dist/{index.d.ts → types/index.d.ts} +0 -0
- /package/dist/{locales → types/locales}/en.d.ts +0 -0
- /package/dist/{utilities → types/utilities}/idb-keyval.d.ts +0 -0
- /package/dist/{utilities → types/utilities}/indexed-db-api.d.ts +0 -0
- /package/dist/{utilities → types/utilities}/media-helpers.d.ts +0 -0
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export interface AssetItem {
|
|
3
|
+
type: 'background' | 'overlay' | 'object';
|
|
4
4
|
src: string;
|
|
5
|
-
mediaType:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
thumbnail?:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
filters?: undefined;
|
|
19
|
-
})[];
|
|
5
|
+
mediaType: 'image' | 'svg';
|
|
6
|
+
thumbnail?: string;
|
|
7
|
+
filters?: string[];
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PresetAsset {
|
|
11
|
+
type: 'preset';
|
|
12
|
+
thumbnail?: string;
|
|
13
|
+
filters?: string[];
|
|
14
|
+
items: Record<string, AssetItem>;
|
|
15
|
+
}
|
|
16
|
+
export type CreativeAsset = AssetItem | PresetAsset;
|
|
17
|
+
export declare const DEFAULT_ASSETS: CreativeAsset[];
|
|
20
18
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
21
19
|
modelValue: {
|
|
22
20
|
default: null;
|
|
@@ -46,41 +44,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
46
44
|
default: {};
|
|
47
45
|
};
|
|
48
46
|
assets: {
|
|
49
|
-
type:
|
|
50
|
-
|
|
51
|
-
(...items: any[]): any[];
|
|
52
|
-
new (arrayLength: number): any[];
|
|
53
|
-
new (...items: any[]): any[];
|
|
54
|
-
isArray(arg: any): arg is any[];
|
|
55
|
-
readonly prototype: any[];
|
|
56
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
57
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
58
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
59
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
60
|
-
of<T>(...items: T[]): T[];
|
|
61
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
62
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
63
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
64
|
-
};
|
|
65
|
-
default: () => ({
|
|
66
|
-
type: string;
|
|
67
|
-
thumbnail: string;
|
|
68
|
-
src: string;
|
|
69
|
-
mediaType: string;
|
|
70
|
-
filters: string[];
|
|
71
|
-
} | {
|
|
72
|
-
type: string;
|
|
73
|
-
src: string;
|
|
74
|
-
mediaType: string;
|
|
75
|
-
filters: string[];
|
|
76
|
-
thumbnail?: undefined;
|
|
77
|
-
} | {
|
|
78
|
-
type: string;
|
|
79
|
-
src: string;
|
|
80
|
-
mediaType: string;
|
|
81
|
-
thumbnail?: undefined;
|
|
82
|
-
filters?: undefined;
|
|
83
|
-
})[];
|
|
47
|
+
type: PropType<CreativeAsset[]>;
|
|
48
|
+
default: () => CreativeAsset[];
|
|
84
49
|
};
|
|
85
50
|
assetFilters: {
|
|
86
51
|
type: ArrayConstructor;
|
|
@@ -119,6 +84,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
119
84
|
type: NumberConstructor;
|
|
120
85
|
default: number;
|
|
121
86
|
};
|
|
87
|
+
stackedThumbnails: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
showThumbnailCount: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
122
95
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
123
96
|
"update:modelValue": (...args: any[]) => void;
|
|
124
97
|
"update:jsonModel": (...args: any[]) => void;
|
|
@@ -153,41 +126,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
153
126
|
default: {};
|
|
154
127
|
};
|
|
155
128
|
assets: {
|
|
156
|
-
type:
|
|
157
|
-
|
|
158
|
-
(...items: any[]): any[];
|
|
159
|
-
new (arrayLength: number): any[];
|
|
160
|
-
new (...items: any[]): any[];
|
|
161
|
-
isArray(arg: any): arg is any[];
|
|
162
|
-
readonly prototype: any[];
|
|
163
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
164
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
165
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
166
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
167
|
-
of<T>(...items: T[]): T[];
|
|
168
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
169
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
170
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
171
|
-
};
|
|
172
|
-
default: () => ({
|
|
173
|
-
type: string;
|
|
174
|
-
thumbnail: string;
|
|
175
|
-
src: string;
|
|
176
|
-
mediaType: string;
|
|
177
|
-
filters: string[];
|
|
178
|
-
} | {
|
|
179
|
-
type: string;
|
|
180
|
-
src: string;
|
|
181
|
-
mediaType: string;
|
|
182
|
-
filters: string[];
|
|
183
|
-
thumbnail?: undefined;
|
|
184
|
-
} | {
|
|
185
|
-
type: string;
|
|
186
|
-
src: string;
|
|
187
|
-
mediaType: string;
|
|
188
|
-
thumbnail?: undefined;
|
|
189
|
-
filters?: undefined;
|
|
190
|
-
})[];
|
|
129
|
+
type: PropType<CreativeAsset[]>;
|
|
130
|
+
default: () => CreativeAsset[];
|
|
191
131
|
};
|
|
192
132
|
assetFilters: {
|
|
193
133
|
type: ArrayConstructor;
|
|
@@ -226,6 +166,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
226
166
|
type: NumberConstructor;
|
|
227
167
|
default: number;
|
|
228
168
|
};
|
|
169
|
+
stackedThumbnails: {
|
|
170
|
+
type: BooleanConstructor;
|
|
171
|
+
default: boolean;
|
|
172
|
+
};
|
|
173
|
+
showThumbnailCount: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: boolean;
|
|
176
|
+
};
|
|
229
177
|
}>> & Readonly<{
|
|
230
178
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
231
179
|
"onUpdate:jsonModel"?: ((...args: any[]) => any) | undefined;
|
|
@@ -246,9 +194,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
246
194
|
animationDuration: number;
|
|
247
195
|
themeData: Record<string, any>;
|
|
248
196
|
config: Record<string, any>;
|
|
249
|
-
assets:
|
|
197
|
+
assets: CreativeAsset[];
|
|
250
198
|
assetFilters: unknown[];
|
|
251
199
|
ready: boolean;
|
|
200
|
+
stackedThumbnails: boolean;
|
|
201
|
+
showThumbnailCount: boolean;
|
|
252
202
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
253
203
|
canvas: ({
|
|
254
204
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -340,9 +340,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
340
340
|
enableProcessImage: boolean;
|
|
341
341
|
enableZoomSlider: boolean;
|
|
342
342
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
343
|
-
camera:
|
|
343
|
+
camera: any;
|
|
344
344
|
dropArea: HTMLDivElement;
|
|
345
|
-
upload:
|
|
345
|
+
upload: any;
|
|
346
346
|
hiddenInput: HTMLInputElement;
|
|
347
347
|
}, HTMLDivElement>, {
|
|
348
348
|
headline?(_: {}): any;
|
package/package.json
CHANGED
|
@@ -1,21 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ablok-photobooth",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
5
|
-
"
|
|
4
|
+
"version": "0.2.41",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"peerDependencies": {
|
|
6
7
|
"@popperjs/core": "^2.11.6",
|
|
7
|
-
"ablok-components": "^0.3.
|
|
8
|
+
"ablok-components": "^0.3.68",
|
|
8
9
|
"bootstrap": "^5.3.8",
|
|
9
10
|
"fabric": "^7.1.0",
|
|
10
11
|
"lodash": "^4.17.23",
|
|
11
12
|
"vue": "^3.5.27",
|
|
12
13
|
"vue-i18n": "^11.2.8"
|
|
13
14
|
},
|
|
15
|
+
"peerDependenciesMeta": {
|
|
16
|
+
"@popperjs/core": {
|
|
17
|
+
"optional": true
|
|
18
|
+
},
|
|
19
|
+
"bootstrap": {
|
|
20
|
+
"optional": true
|
|
21
|
+
},
|
|
22
|
+
"fabric": {
|
|
23
|
+
"optional": true
|
|
24
|
+
},
|
|
25
|
+
"lodash": {
|
|
26
|
+
"optional": true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
14
29
|
"devDependencies": {
|
|
15
30
|
"@histoire/plugin-vue": "^1.0.0-beta.1",
|
|
16
31
|
"@types/lodash": "^4.17.23",
|
|
17
32
|
"@types/node": "^25.1.0",
|
|
18
33
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
34
|
+
"@vue/test-utils": "^2.4.10",
|
|
19
35
|
"histoire": "^1.0.0-beta.1",
|
|
20
36
|
"path": "^0.12.7",
|
|
21
37
|
"sass": "^1.97.3",
|
|
@@ -23,17 +39,38 @@
|
|
|
23
39
|
"vite": "^7.3.1",
|
|
24
40
|
"vite-plugin-dts": "^4.5.4",
|
|
25
41
|
"vite-plugin-mkcert": "^1.17.9",
|
|
42
|
+
"vitest": "^4.1.5",
|
|
26
43
|
"vue-tsc": "^3.2.4"
|
|
27
44
|
},
|
|
28
45
|
"files": [
|
|
29
46
|
"dist"
|
|
30
47
|
],
|
|
31
|
-
"main": "./dist/ablok-photobooth.
|
|
32
|
-
"module": "./dist/ablok-photobooth.
|
|
48
|
+
"main": "./dist/ablok-photobooth.js",
|
|
49
|
+
"module": "./dist/ablok-photobooth.js",
|
|
33
50
|
"exports": {
|
|
34
51
|
".": {
|
|
35
|
-
"import": "./dist/ablok-photobooth.
|
|
36
|
-
"
|
|
52
|
+
"import": "./dist/ablok-photobooth.js",
|
|
53
|
+
"types": "./dist/types/index.d.ts"
|
|
54
|
+
},
|
|
55
|
+
"./photo-app": {
|
|
56
|
+
"import": "./dist/photo-app.js",
|
|
57
|
+
"types": "./dist/types/components/photo-app.vue.d.ts"
|
|
58
|
+
},
|
|
59
|
+
"./fabric-canvas": {
|
|
60
|
+
"import": "./dist/fabric-canvas.js",
|
|
61
|
+
"types": "./dist/types/components/fabric-canvas.vue.d.ts"
|
|
62
|
+
},
|
|
63
|
+
"./creative-booth": {
|
|
64
|
+
"import": "./dist/creative-booth.js",
|
|
65
|
+
"types": "./dist/types/components/creative-booth.vue.d.ts"
|
|
66
|
+
},
|
|
67
|
+
"./face-swap": {
|
|
68
|
+
"import": "./dist/face-swap.js",
|
|
69
|
+
"types": "./dist/types/components/face-swap.vue.d.ts"
|
|
70
|
+
},
|
|
71
|
+
"./color-booth": {
|
|
72
|
+
"import": "./dist/color-booth.js",
|
|
73
|
+
"types": "./dist/types/components/color-booth.vue.d.ts"
|
|
37
74
|
}
|
|
38
75
|
},
|
|
39
76
|
"types": "./dist/types/index.d.ts",
|
|
@@ -42,12 +79,14 @@
|
|
|
42
79
|
"build": "vue-tsc --noEmit && vite build",
|
|
43
80
|
"build:watch": "vue-tsc --noEmit --watch & vite build --watch",
|
|
44
81
|
"preview": "vite preview",
|
|
45
|
-
"build-lib
|
|
46
|
-
"build-lib": "vite build && vue-tsc --emitDeclarationOnly",
|
|
82
|
+
"build-lib": "vite build",
|
|
47
83
|
"release": "bash ./scripts/release.sh",
|
|
48
84
|
"postrelease": "bash ./scripts/publish.sh",
|
|
49
85
|
"story:dev": "histoire dev",
|
|
50
86
|
"story:build": "histoire build",
|
|
51
|
-
"story:preview": "histoire preview"
|
|
87
|
+
"story:preview": "histoire preview",
|
|
88
|
+
"test": "vitest run",
|
|
89
|
+
"test:watch": "vitest watch",
|
|
90
|
+
"test:ui": "vitest --ui"
|
|
52
91
|
}
|
|
53
92
|
}
|
package/dist/App.vue.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|