@webx-ui/module-blocks 0.5.3 → 0.6.0
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/BlocksField.d.ts +9 -19
- package/dist/BlocksPreview.d.ts +12 -10
- package/dist/index.js +1482 -1336
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/BlocksField.d.ts
CHANGED
|
@@ -18,16 +18,6 @@ type __VLS_Props = {
|
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
/** Where the section lives, for the picker's "make one" link. */
|
|
20
20
|
blocksPath?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Be as tall as what the field is drawn in, and let each of the three panels scroll inside
|
|
23
|
-
* itself.
|
|
24
|
-
*
|
|
25
|
-
* Off by default, because the ordinary case is a field on a form that scrolls: there the
|
|
26
|
-
* constructor is as tall as it needs to be and the preview sticks. A screen that has given
|
|
27
|
-
* the constructor the whole area below its head says so — otherwise the field grows, the
|
|
28
|
-
* page scrolls, and the tree, the form and the preview all leave the screen together.
|
|
29
|
-
*/
|
|
30
|
-
fill?: boolean;
|
|
31
21
|
};
|
|
32
22
|
type __VLS_PublicProps = {
|
|
33
23
|
modelValue?: BlockNode[];
|
|
@@ -37,7 +27,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
37
27
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
38
28
|
"onUpdate:modelValue"?: ((value: BlockNode[]) => any) | undefined;
|
|
39
29
|
}>, {
|
|
40
|
-
fill: boolean;
|
|
41
30
|
name: string;
|
|
42
31
|
disabled: boolean;
|
|
43
32
|
node: ScreenNode;
|
|
@@ -48,26 +37,28 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
48
37
|
catalog: BlockType[] | null;
|
|
49
38
|
blocksPath: string;
|
|
50
39
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
40
|
+
host: HTMLDivElement;
|
|
51
41
|
previewEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
52
42
|
url: string | null;
|
|
53
43
|
selected?: string | null;
|
|
54
|
-
mode?: "wide" | "phone";
|
|
55
44
|
reload?: number;
|
|
56
|
-
|
|
45
|
+
compact?: boolean;
|
|
57
46
|
}> & Readonly<{
|
|
58
47
|
onSelect?: ((key: string | null) => any) | undefined;
|
|
48
|
+
onEdit?: (() => any) | undefined;
|
|
59
49
|
}>, {
|
|
60
50
|
replace: (key: string, html: string) => boolean;
|
|
61
51
|
refresh: () => void;
|
|
62
52
|
open: () => boolean;
|
|
63
53
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
54
|
select: (key: string | null) => any;
|
|
55
|
+
edit: () => any;
|
|
65
56
|
}, import('vue').PublicProps, {
|
|
66
|
-
|
|
67
|
-
mode: "wide" | "phone";
|
|
57
|
+
compact: boolean;
|
|
68
58
|
selected: string | null;
|
|
69
59
|
reload: number;
|
|
70
60
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
61
|
+
bar: HTMLDivElement;
|
|
71
62
|
box: HTMLDivElement;
|
|
72
63
|
frame: HTMLIFrameElement;
|
|
73
64
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -80,18 +71,17 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
80
71
|
}, Readonly<{
|
|
81
72
|
url: string | null;
|
|
82
73
|
selected?: string | null;
|
|
83
|
-
mode?: "wide" | "phone";
|
|
84
74
|
reload?: number;
|
|
85
|
-
|
|
75
|
+
compact?: boolean;
|
|
86
76
|
}> & Readonly<{
|
|
87
77
|
onSelect?: ((key: string | null) => any) | undefined;
|
|
78
|
+
onEdit?: (() => any) | undefined;
|
|
88
79
|
}>, {
|
|
89
80
|
replace: (key: string, html: string) => boolean;
|
|
90
81
|
refresh: () => void;
|
|
91
82
|
open: () => boolean;
|
|
92
83
|
}, {}, {}, {}, {
|
|
93
|
-
|
|
94
|
-
mode: "wide" | "phone";
|
|
84
|
+
compact: boolean;
|
|
95
85
|
selected: string | null;
|
|
96
86
|
reload: number;
|
|
97
87
|
}> | null;
|
package/dist/BlocksPreview.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The page in an iframe, the way it will be: the same handler, the same view, the draft
|
|
3
|
-
* laid over the columns.
|
|
4
|
-
*
|
|
5
|
-
* at the desktop and the tablet, because a desktop in a 420 px column is a picture nobody
|
|
6
|
-
* can read.
|
|
3
|
+
* laid over the columns. The whole page at desktop width, unless the bar is asked for a
|
|
4
|
+
* tablet or a phone; full screen is for the panel too narrow to read a desktop in.
|
|
7
5
|
*
|
|
8
6
|
* The panel and the site are one application on one domain, so the frame's document is
|
|
9
7
|
* reachable: selection is a class, a change is a swap between the marker comments.
|
|
@@ -11,12 +9,14 @@
|
|
|
11
9
|
type __VLS_Props = {
|
|
12
10
|
url: string | null;
|
|
13
11
|
selected?: string | null;
|
|
14
|
-
/** `wide` when the page is being looked at, `phone` while a block is being edited. */
|
|
15
|
-
mode?: 'wide' | 'phone';
|
|
16
12
|
/** Bumped by the host to reload the page. */
|
|
17
13
|
reload?: number;
|
|
18
|
-
/**
|
|
19
|
-
|
|
14
|
+
/**
|
|
15
|
+
* The preview is the screen rather than a column beside one — the shape the panel takes
|
|
16
|
+
* on a phone. It starts as a phone, and its bar carries the way into the blocks, because
|
|
17
|
+
* there is no tree standing next to it to click.
|
|
18
|
+
*/
|
|
19
|
+
compact?: boolean;
|
|
20
20
|
};
|
|
21
21
|
/** Swap one block's markup in place; false when the page has to be reloaded instead. */
|
|
22
22
|
declare function replace(key: string, html: string): boolean;
|
|
@@ -27,14 +27,16 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
27
27
|
open: () => boolean;
|
|
28
28
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
29
|
select: (key: string | null) => any;
|
|
30
|
+
edit: () => any;
|
|
30
31
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
32
|
onSelect?: ((key: string | null) => any) | undefined;
|
|
33
|
+
onEdit?: (() => any) | undefined;
|
|
32
34
|
}>, {
|
|
33
|
-
|
|
34
|
-
mode: "wide" | "phone";
|
|
35
|
+
compact: boolean;
|
|
35
36
|
selected: string | null;
|
|
36
37
|
reload: number;
|
|
37
38
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
39
|
+
bar: HTMLDivElement;
|
|
38
40
|
box: HTMLDivElement;
|
|
39
41
|
frame: HTMLIFrameElement;
|
|
40
42
|
}, HTMLDivElement>;
|