@bluepic/embed 0.4.0-next.196 → 0.4.0-next.198
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 +62 -62
- package/dist/bluepic-embed.umd.js +62 -62
- package/dist/components/User/UserInfo.vue.d.ts +12 -1
- package/dist/components/fields/Image.vue.d.ts +19 -4
- package/dist/main.cjs +22 -22
- package/dist/main.mjs +610 -591
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { z } from '@hono/zod-openapi';
|
|
2
2
|
import { Studio } from '@bluepic/types';
|
|
3
3
|
import type { User } from '@auth0/auth0-vue';
|
|
4
|
+
import type { VNode } from 'vue';
|
|
4
5
|
type __VLS_Props = {
|
|
5
6
|
user: z.infer<typeof Studio.auth0UserViaManagementAPISchema> | User;
|
|
6
7
|
showSettings?: boolean;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
type __VLS_Slots = {
|
|
10
|
+
/** Host content between the identity block and the Settings / Logout actions. */
|
|
11
|
+
default?: () => VNode[] | VNode;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
14
|
logout: () => any;
|
|
10
15
|
settings: () => any;
|
|
11
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -14,4 +19,10 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
14
19
|
}>, {
|
|
15
20
|
showSettings: boolean;
|
|
16
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
23
|
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BluepicField, FieldsBridge, ImageLibrary, ImageMime } from '@bluepic/types';
|
|
1
|
+
import { BluepicField, FieldsBridge, ImageLibrary, ImageMime, Template } from '@bluepic/types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
layout: 'compact' | 'normal';
|
|
4
4
|
allowUploadFromDevice: boolean;
|
|
@@ -16,12 +16,27 @@ type __VLS_Props = {
|
|
|
16
16
|
field?: BluepicField;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_PublicProps = __VLS_Props & {
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* The bound value.
|
|
21
|
+
*
|
|
22
|
+
* Typed as `ImageValue | string` because BOTH shapes occur in the wild: a
|
|
23
|
+
* template whose image element is bound straight to a src holds a plain string,
|
|
24
|
+
* while one where the element's image value carries settings of its own (crop,
|
|
25
|
+
* mirror flags, `removeBackground`) holds the whole object — `setPropertyValue`
|
|
26
|
+
* in bx-studio writes the object INTO the binding whenever the element's
|
|
27
|
+
* property expression is a simple binding key.
|
|
28
|
+
*
|
|
29
|
+
* Reading is via `imageSource`; writing MUST go through `handleImageSelection`,
|
|
30
|
+
* which preserves the object. Assigning a bare string here would silently drop
|
|
31
|
+
* every other key on the value — that is exactly how background removal was
|
|
32
|
+
* lost on the first upload.
|
|
33
|
+
*/
|
|
34
|
+
'modelValue': Template.ImageValue | string;
|
|
20
35
|
};
|
|
21
36
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
-
"update:modelValue": (value: string) => any;
|
|
37
|
+
"update:modelValue": (value: string | Template.ImageValue) => any;
|
|
23
38
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((value: string | Template.ImageValue) => any) | undefined;
|
|
25
40
|
}>, {
|
|
26
41
|
maxSize: number;
|
|
27
42
|
uploadLabel: string;
|