@g1cloud/page-builder-editor 1.0.0-alpha.6 → 1.0.0-alpha.8
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/css/page-builder-editor.scss +71 -12
- package/css/property-editor-color.scss +5 -0
- package/css/property-editor-html.scss +16 -0
- package/css/property-group-editor-background.scss +0 -12
- package/css/property-group-editor-border.scss +6 -12
- package/css/property-group-editor-margin.scss +0 -11
- package/css/property-group-editor-padding.scss +0 -11
- package/css/property-group-editor-position.scss +0 -11
- package/css/property-group-editor-size.scss +0 -11
- package/css/property-localpart.scss +2 -2
- package/dist/HtmlEditorModal-DDoVYM6n.js +94 -0
- package/dist/PbPropertyEditorColor-BonGhf7Z.js +57 -0
- package/dist/PbPropertyEditorHtml-DfOWZr6S.js +65 -0
- package/dist/{PbPropertyEditorImage-D85hteOg.js → PbPropertyEditorImage-Du9R6CBU.js} +2 -2
- package/dist/{PbPropertyEditorMultilineText-BFzT7dlG.js → PbPropertyEditorMultilineText-bEBZmvFa.js} +2 -2
- package/dist/{PbPropertyEditorProduct-CUSpnV8o.js → PbPropertyEditorProduct-gzGulWGg.js} +2 -2
- package/dist/{PbPropertyEditorReadonlyText-Bk0WJxA0.js → PbPropertyEditorReadonlyText-Dgp_AVOD.js} +1 -1
- package/dist/{PbPropertyEditorSelect-BJovN1su.js → PbPropertyEditorSelect-CWedbXJI.js} +1 -1
- package/dist/{PbPropertyEditorText-DNdXl-Tr.js → PbPropertyEditorText-BWOKvwD9.js} +1 -1
- package/dist/components/modal/HtmlEditorModal.vue.d.ts +23 -0
- package/dist/components/sidebar/property/PbPropertyEditorColor.vue.d.ts +23 -0
- package/dist/components/sidebar/property/PbPropertyEditorHtml.vue.d.ts +23 -0
- package/dist/components/ui/PbColorPicker.vue.d.ts +2 -2
- package/dist/{index-DQLcq5fP.js → index-CFgXLaTI.js} +625 -381
- package/dist/model/context.d.ts +3 -3
- package/dist/model/model.d.ts +3 -3
- package/dist/model/page-builder-editor.d.ts +2 -2
- package/dist/model/part-definintion.d.ts +1 -0
- package/dist/page-builder-editor.js +23 -22
- package/dist/page-builder-editor.umd.cjs +1059 -605
- package/package.json +4 -3
package/dist/model/context.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare class PageBuilderContextImpl implements PageBuilderContext {
|
|
|
35
35
|
partType: string;
|
|
36
36
|
partName: string;
|
|
37
37
|
partId: string;
|
|
38
|
-
properties?: Record<string,
|
|
38
|
+
properties?: Record<string, unknown> | undefined;
|
|
39
39
|
children?: any[] | undefined;
|
|
40
40
|
parent?: any | undefined;
|
|
41
41
|
isRoot: () => boolean;
|
|
@@ -57,7 +57,7 @@ export declare class PageBuilderContextImpl implements PageBuilderContext {
|
|
|
57
57
|
partType: string;
|
|
58
58
|
partName: string;
|
|
59
59
|
partId: string;
|
|
60
|
-
properties?: Record<string,
|
|
60
|
+
properties?: Record<string, unknown> | undefined;
|
|
61
61
|
children?: any[] | undefined;
|
|
62
62
|
parent?: any | undefined;
|
|
63
63
|
isRoot: () => boolean;
|
|
@@ -79,7 +79,7 @@ export declare class PageBuilderContextImpl implements PageBuilderContext {
|
|
|
79
79
|
partType: string;
|
|
80
80
|
partName: string;
|
|
81
81
|
partId: string;
|
|
82
|
-
properties?: Record<string,
|
|
82
|
+
properties?: Record<string, unknown> | undefined;
|
|
83
83
|
children?: any[] | undefined;
|
|
84
84
|
parent?: any | undefined;
|
|
85
85
|
isRoot: () => boolean;
|
package/dist/model/model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPart
|
|
1
|
+
import { IPart } from '@g1cloud/page-builder-viewer';
|
|
2
2
|
import * as Y from 'yjs';
|
|
3
3
|
export declare const ROOT_TYPE = "Root";
|
|
4
4
|
export declare const PAGE_TYPE = "Page";
|
|
@@ -21,7 +21,7 @@ export declare class Model {
|
|
|
21
21
|
findPartsByIds(partIds: string[]): IPart[];
|
|
22
22
|
serializePageModel: (partIds: string[]) => string;
|
|
23
23
|
parsePageModel(json: string, keepPartId?: boolean): IPart[] | undefined;
|
|
24
|
-
moveElements(partId: string, destPartId: string, destIndex: number, update?: PartUpdateParam[]): void;
|
|
24
|
+
moveElements(partId: string, destPartId: string, destIndex: number, update?: PartUpdateParam[], doNotChangeIndex?: boolean): void;
|
|
25
25
|
isMobilePart(part: IPart): boolean;
|
|
26
26
|
isPcPart(part: IPart): boolean;
|
|
27
27
|
private insertParts;
|
|
@@ -49,7 +49,7 @@ export type PartInsertResult = {
|
|
|
49
49
|
};
|
|
50
50
|
export type PartUpdateResult = {
|
|
51
51
|
element: Y.XmlElement;
|
|
52
|
-
properties: Record<string,
|
|
52
|
+
properties: Record<string, unknown>;
|
|
53
53
|
removeOtherProperties?: boolean;
|
|
54
54
|
};
|
|
55
55
|
export type PartDeleteResult = {
|
|
@@ -30,7 +30,6 @@ export interface PageBuilderEditor extends PageBuilder {
|
|
|
30
30
|
undo(): void;
|
|
31
31
|
redo(): void;
|
|
32
32
|
zoom(scale: number): void;
|
|
33
|
-
setLanguage(language: string): void;
|
|
34
33
|
}
|
|
35
34
|
export declare class PageBuilderEditorImpl implements PageBuilderEditor {
|
|
36
35
|
instanceId?: string;
|
|
@@ -46,12 +45,13 @@ export declare class PageBuilderEditorImpl implements PageBuilderEditor {
|
|
|
46
45
|
scale: Ref<number>;
|
|
47
46
|
language: Ref<string>;
|
|
48
47
|
constructor();
|
|
48
|
+
getLanguage(): string;
|
|
49
|
+
setLanguage(language?: string): void;
|
|
49
50
|
registerPlugin(plugin: PageBuilderPlugin): void;
|
|
50
51
|
initData(content?: any[]): void;
|
|
51
52
|
undo(): void;
|
|
52
53
|
redo(): void;
|
|
53
54
|
zoom(scale: number): void;
|
|
54
|
-
setLanguage(language: string): void;
|
|
55
55
|
private getEmptyPageContent;
|
|
56
56
|
private initPlugins;
|
|
57
57
|
}
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { B,
|
|
1
|
+
import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, R, m, S, n, W, o, p, q, r, s, t, v, w } from "./index-CFgXLaTI.js";
|
|
2
2
|
export {
|
|
3
3
|
B as BLOCK_TYPE,
|
|
4
|
-
|
|
4
|
+
b as Block,
|
|
5
5
|
M as Model,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
c as PAGE_BUILDER_KEY,
|
|
7
|
+
d as PAGE_TYPE,
|
|
8
|
+
e as Page,
|
|
9
9
|
_ as PageBuilderEditor,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
a as PageBuilderEditorEvent,
|
|
11
|
+
f as PageBuilderViewer,
|
|
12
|
+
g as PageBuilderViewerEvent,
|
|
13
|
+
h as Part,
|
|
14
|
+
i as PbHtmlWidget,
|
|
15
|
+
j as PbImageWidget,
|
|
16
|
+
k as PbProductListWidget,
|
|
17
|
+
l as PbTextWidget,
|
|
17
18
|
R as ROOT_TYPE,
|
|
18
|
-
|
|
19
|
+
m as RootPart,
|
|
19
20
|
S as SECTION_TYPE,
|
|
20
|
-
|
|
21
|
+
n as Section,
|
|
21
22
|
W as WIDGET_TYPE,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
o as Widget,
|
|
24
|
+
p as createPageBuilderViewer,
|
|
25
|
+
q as createPartComponent,
|
|
26
|
+
r as createPartComponents,
|
|
27
|
+
s as providePageBuilder,
|
|
28
|
+
t as providePageBuilderViewer,
|
|
29
|
+
v as usePageBuilder,
|
|
30
|
+
w as usePageBuilderViewer
|
|
30
31
|
};
|