@omnia/velcron 8.0.162-dev → 8.0.164-dev
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/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -3
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +6 -4
- package/models/Enums.d.ts +3 -16
- package/models/Enums.js +2 -20
- package/models/VelcronDefinitions.d.ts +8 -9
- package/models/VelcronPropertyEditorDefinitions.d.ts +27 -211
- package/models/VelcronPropertyEditorDefinitions.js +0 -87
- package/models/VelcronState.d.ts +186 -0
- package/models/VelcronState.js +102 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/package.json +1 -1
- package/parser/VelcronData.d.ts +8 -7
- package/parser/VelcronData.js +32 -13
- package/parser/VelcronStyles.js +5 -5
- package/rules/IsEditMode.js +1 -1
- package/stores/VelcronColorSchema.d.ts +1 -1
- package/templatebuilder/VelcronEditorBuilder.d.ts +18 -0
- package/templatebuilder/{editor/VelcronEditorBuilder2.js → VelcronEditorBuilder.js} +46 -10
- package/templatebuilder/{editor → old/editor}/VelcronColorSchemaEditor.d.ts +2 -2
- package/templatebuilder/{editor → old/editor}/VelcronContentEditor.d.ts +2 -2
- package/templatebuilder/{editor → old/editor}/VelcronContentEditor.js +12 -12
- package/templatebuilder/{editor → old/editor}/VelcronEditorBuilder.d.ts +2 -2
- package/templatebuilder/{editor → old/editor}/VelcronEditorBuilderBase.d.ts +3 -3
- package/templatebuilder/{editor → old/editor}/VelcronImageEditor.d.ts +2 -2
- package/templatebuilder/{editor → old/editor}/VelcronImageEditor.js +1 -1
- package/templatebuilder/{editor → old/editor}/VelcronPropertyMappingEditorBuilder.d.ts +2 -2
- package/templatebuilder/{editor → old/editor}/VelcronPropertyMappingEditorBuilder.js +1 -1
- package/templatebuilder/useVelcronEditorBuilder.d.ts +2 -2
- package/templatebuilder/useVelcronEditorBuilder.js +2 -2
- package/templatebuilder/useVelcronTemplateBuilder.d.ts +3 -3
- package/templatebuilder/useVelcronTemplateBuilder.js +5 -5
- package/templatebuilder/editor/VelcronEditorBuilder2.d.ts +0 -15
- /package/templatebuilder/{editor → old/editor}/VelcronColorSchemaEditor.js +0 -0
- /package/templatebuilder/{editor → old/editor}/VelcronEditorBuilder.js +0 -0
- /package/templatebuilder/{editor → old/editor}/VelcronEditorBuilderBase.js +0 -0
- /package/templatebuilder/{state → old/state}/VelcronBlockHeaderStateBuilder.d.ts +0 -0
- /package/templatebuilder/{state → old/state}/VelcronBlockHeaderStateBuilder.js +0 -0
- /package/templatebuilder/{state → old/state}/VelcronColorSchemaBuilder.d.ts +0 -0
- /package/templatebuilder/{state → old/state}/VelcronColorSchemaBuilder.js +0 -0
- /package/templatebuilder/{state → old/state}/VelcronContentStateBuilder.d.ts +0 -0
- /package/templatebuilder/{state → old/state}/VelcronContentStateBuilder.js +0 -0
- /package/templatebuilder/{state → old/state}/VelcronImageStateBuilder.d.ts +0 -0
- /package/templatebuilder/{state → old/state}/VelcronImageStateBuilder.js +0 -0
- /package/templatebuilder/{state → old/state}/VelcronPropertyMappingStateBuilder.d.ts +0 -0
- /package/templatebuilder/{state → old/state}/VelcronPropertyMappingStateBuilder.js +0 -0
- /package/templatebuilder/{state → old/state}/VelcronStateBuilder.d.ts +0 -0
- /package/templatebuilder/{state → old/state}/VelcronStateBuilder.js +0 -0
- /package/templatebuilder/{state → old/state}/VelcronStateBuilderBase.d.ts +0 -0
- /package/templatebuilder/{state → old/state}/VelcronStateBuilderBase.js +0 -0
- /package/templatebuilder/{state → old/state}/VelcronTextContentBuilder.d.ts +0 -0
- /package/templatebuilder/{state → old/state}/VelcronTextContentBuilder.js +0 -0
|
@@ -23,7 +23,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
23
23
|
this.mainEditor = {
|
|
24
24
|
name: "Body",
|
|
25
25
|
type: "markdown",
|
|
26
|
-
|
|
26
|
+
state: "content.main.text"
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
return this;
|
|
@@ -33,7 +33,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
33
33
|
this.mainPropertyEditor = {
|
|
34
34
|
name: title ? title : "Main",
|
|
35
35
|
type: "text",
|
|
36
|
-
|
|
36
|
+
state: "content.main.text",
|
|
37
37
|
propertyMapping: true
|
|
38
38
|
};
|
|
39
39
|
}
|
|
@@ -44,7 +44,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
44
44
|
this.mainTypographyEditor = {
|
|
45
45
|
name: title ? title : "Main formatting",
|
|
46
46
|
type: "typography",
|
|
47
|
-
|
|
47
|
+
state: "content.main.text",
|
|
48
48
|
settings: {
|
|
49
49
|
type: type ? type : "text"
|
|
50
50
|
}
|
|
@@ -59,7 +59,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
59
59
|
this.captionEditor = {
|
|
60
60
|
name: "Caption",
|
|
61
61
|
type: "text",
|
|
62
|
-
|
|
62
|
+
state: "content.caption.text"
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
return this;
|
|
@@ -69,7 +69,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
69
69
|
this.captionPropertyEditor = {
|
|
70
70
|
name: title ? title : "Caption",
|
|
71
71
|
type: "text",
|
|
72
|
-
|
|
72
|
+
state: "content.caption.text",
|
|
73
73
|
propertyMapping: true
|
|
74
74
|
};
|
|
75
75
|
}
|
|
@@ -80,7 +80,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
80
80
|
this.captionTypographyEditor = {
|
|
81
81
|
name: title ? title : "Caption formatting",
|
|
82
82
|
type: "typography",
|
|
83
|
-
|
|
83
|
+
state: "content.caption.text",
|
|
84
84
|
settings: {
|
|
85
85
|
type: type ? type : "text"
|
|
86
86
|
}
|
|
@@ -95,7 +95,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
95
95
|
this.titleEditor = {
|
|
96
96
|
name: "Title",
|
|
97
97
|
type: "text",
|
|
98
|
-
|
|
98
|
+
state: "content.title.text"
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
return this;
|
|
@@ -105,7 +105,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
105
105
|
this.titlePropertyEditor = {
|
|
106
106
|
name: title ? title : "Title",
|
|
107
107
|
type: "text",
|
|
108
|
-
|
|
108
|
+
state: "content.title.text",
|
|
109
109
|
propertyMapping: true
|
|
110
110
|
};
|
|
111
111
|
}
|
|
@@ -116,7 +116,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
116
116
|
this.titleTypographyEditor = {
|
|
117
117
|
name: title ? title : "Title formatting",
|
|
118
118
|
type: "typography",
|
|
119
|
-
|
|
119
|
+
state: "content.title.text",
|
|
120
120
|
settings: {
|
|
121
121
|
type: type ? type : "title"
|
|
122
122
|
}
|
|
@@ -131,7 +131,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
131
131
|
this.summaryEditor = {
|
|
132
132
|
name: "Summary",
|
|
133
133
|
type: "text",
|
|
134
|
-
|
|
134
|
+
state: "content.summary.text"
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
return this;
|
|
@@ -141,7 +141,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
141
141
|
this.summaryPropertyEditor = {
|
|
142
142
|
name: title ? title : "Summary",
|
|
143
143
|
type: "text",
|
|
144
|
-
|
|
144
|
+
state: "content.summary.text",
|
|
145
145
|
propertyMapping: true
|
|
146
146
|
};
|
|
147
147
|
}
|
|
@@ -152,7 +152,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
|
|
|
152
152
|
this.summaryTypographyEditor = {
|
|
153
153
|
name: title ? title : "Summary formatting",
|
|
154
154
|
type: "typography",
|
|
155
|
-
|
|
155
|
+
state: "content.summary.text",
|
|
156
156
|
settings: {
|
|
157
157
|
type: type ? type : "text"
|
|
158
158
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VelcronEditor } from "@omnia/fx-models";
|
|
2
2
|
import { VelcronContentEditorBuilder } from "./VelcronContentEditor";
|
|
3
3
|
import { VelcronColorSchemaEditorBuilder } from "./VelcronColorSchemaEditor";
|
|
4
4
|
import { VelcronImageEditorBuilder } from "./VelcronImageEditor";
|
|
@@ -12,5 +12,5 @@ export declare class VelcronEditorBuilder {
|
|
|
12
12
|
colorSchemaType(): VelcronColorSchemaEditorBuilder;
|
|
13
13
|
image(): VelcronImageEditorBuilder;
|
|
14
14
|
properties(): VelcronPropertyMappingEditorBuilder;
|
|
15
|
-
build():
|
|
15
|
+
build(): VelcronEditor<any>[];
|
|
16
16
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VelcronEditor } from "@omnia/fx-models";
|
|
2
2
|
import { VelcronEditorBuilder } from "./VelcronEditorBuilder";
|
|
3
3
|
export declare abstract class VelcronEditorBuilderBase {
|
|
4
4
|
protected builder: VelcronEditorBuilder;
|
|
5
5
|
constructor(builder: VelcronEditorBuilder);
|
|
6
6
|
done(): VelcronEditorBuilder;
|
|
7
|
-
build():
|
|
8
|
-
protected abstract internalBuild(): Array<
|
|
7
|
+
build(): VelcronEditor<any>[];
|
|
8
|
+
protected abstract internalBuild(): Array<VelcronEditor>;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VelcronEditor } from "@omnia/fx-models";
|
|
2
2
|
import { VelcronEditorBuilder } from "./VelcronEditorBuilder";
|
|
3
3
|
import { VelcronEditorBuilderBase } from "./VelcronEditorBuilderBase";
|
|
4
4
|
export declare class VelcronImageEditorBuilder extends VelcronEditorBuilderBase {
|
|
@@ -7,5 +7,5 @@ export declare class VelcronImageEditorBuilder extends VelcronEditorBuilderBase
|
|
|
7
7
|
main: {
|
|
8
8
|
add: () => VelcronEditorBuilder;
|
|
9
9
|
};
|
|
10
|
-
protected internalBuild():
|
|
10
|
+
protected internalBuild(): VelcronEditor<any>[];
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VelcronEditor } from "@omnia/fx-models";
|
|
2
2
|
import { VelcronEditorBuilder } from "./VelcronEditorBuilder";
|
|
3
3
|
import { VelcronEditorBuilderBase } from "./VelcronEditorBuilderBase";
|
|
4
4
|
export declare class VelcronPropertyMappingEditorBuilder extends VelcronEditorBuilderBase {
|
|
5
5
|
private editor;
|
|
6
6
|
constructor(builder: any);
|
|
7
7
|
add(): VelcronEditorBuilder;
|
|
8
|
-
protected internalBuild():
|
|
8
|
+
protected internalBuild(): VelcronEditor<any>[];
|
|
9
9
|
}
|
|
@@ -12,7 +12,7 @@ class VelcronPropertyMappingEditorBuilder extends VelcronEditorBuilderBase_1.Vel
|
|
|
12
12
|
this.editor = {
|
|
13
13
|
name: "Properties",
|
|
14
14
|
type: "enterprise-property",
|
|
15
|
-
|
|
15
|
+
state: "properties.mappings",
|
|
16
16
|
propertyMapping: true,
|
|
17
17
|
multiple: true,
|
|
18
18
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function useVelcronEditorBuilder():
|
|
1
|
+
import { VelcronEditorBuilder } from "./VelcronEditorBuilder";
|
|
2
|
+
export declare function useVelcronEditorBuilder(): VelcronEditorBuilder;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// import { VelcronContentState, VelcronImagePropertyEditor, VelcronImageRatios, VelcronImageState, VelcronMarkdownPropertyEditor, VelcronTextPropertyEditor} from "@omnia/fx-models";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.useVelcronEditorBuilder = void 0;
|
|
5
|
-
const
|
|
5
|
+
const VelcronEditorBuilder_1 = require("./VelcronEditorBuilder");
|
|
6
6
|
function useVelcronEditorBuilder() {
|
|
7
|
-
return new
|
|
7
|
+
return new VelcronEditorBuilder_1.VelcronEditorBuilder();
|
|
8
8
|
}
|
|
9
9
|
exports.useVelcronEditorBuilder = useVelcronEditorBuilder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VelcronEditorBuilder } from "./editor/VelcronEditorBuilder";
|
|
2
|
-
import { VelcronStateBuilder } from "./state/VelcronStateBuilder";
|
|
3
|
-
export declare function
|
|
1
|
+
import { VelcronEditorBuilder } from "./old/editor/VelcronEditorBuilder";
|
|
2
|
+
import { VelcronStateBuilder } from "./old/state/VelcronStateBuilder";
|
|
3
|
+
export declare function useOldVelcronTemplateBuilder(): {
|
|
4
4
|
state: VelcronStateBuilder;
|
|
5
5
|
editor: VelcronEditorBuilder;
|
|
6
6
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// import { VelcronContentState, VelcronImagePropertyEditor, VelcronImageRatios, VelcronImageState, VelcronMarkdownPropertyEditor, VelcronTextPropertyEditor} from "@omnia/fx-models";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
const VelcronEditorBuilder_1 = require("./editor/VelcronEditorBuilder");
|
|
6
|
-
const VelcronStateBuilder_1 = require("./state/VelcronStateBuilder");
|
|
7
|
-
function
|
|
4
|
+
exports.useOldVelcronTemplateBuilder = void 0;
|
|
5
|
+
const VelcronEditorBuilder_1 = require("./old/editor/VelcronEditorBuilder");
|
|
6
|
+
const VelcronStateBuilder_1 = require("./old/state/VelcronStateBuilder");
|
|
7
|
+
function useOldVelcronTemplateBuilder() {
|
|
8
8
|
return {
|
|
9
9
|
state: new VelcronStateBuilder_1.VelcronStateBuilder(),
|
|
10
10
|
editor: new VelcronEditorBuilder_1.VelcronEditorBuilder()
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
exports.
|
|
13
|
+
exports.useOldVelcronTemplateBuilder = useOldVelcronTemplateBuilder;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TypographyType, VelcronStateEditor, VelcronTypographyEditorSettings } from "@omnia/fx-models";
|
|
2
|
-
export declare class VelcronEditorBuilder2 {
|
|
3
|
-
private editors;
|
|
4
|
-
private formatStateMapping;
|
|
5
|
-
add(): {
|
|
6
|
-
spacingEditor: (name: string, stateMapping: string, individualSelection?: boolean) => VelcronEditorBuilder2;
|
|
7
|
-
imageEditor: (name: string, stateMapping: string) => VelcronEditorBuilder2;
|
|
8
|
-
colorSchemaEditor: (name: string, stateMapping: string) => VelcronEditorBuilder2;
|
|
9
|
-
markdownEditor: (name: string, stateMapping: string, placeholder?: string) => VelcronEditorBuilder2;
|
|
10
|
-
textEditor: (name: string, stateMapping: string, typographyType: TypographyType, placeholder?: string) => VelcronEditorBuilder2;
|
|
11
|
-
blockHeaderEditor: () => VelcronEditorBuilder2;
|
|
12
|
-
typographyEditor: (stateMapping: string, settings: VelcronTypographyEditorSettings) => VelcronEditorBuilder2;
|
|
13
|
-
};
|
|
14
|
-
build(): VelcronStateEditor<any>[];
|
|
15
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|