@chili-publish/studio-sdk 1.25.1 → 1.27.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/_bundles/main.es.js +2403 -0
- package/_bundles/main.es.js.map +1 -0
- package/_bundles/main.js +21 -2
- package/_bundles/main.js.map +1 -1
- package/connector-types/src/Connector.Shared.d.ts +30 -0
- package/connector-types/src/Connector.Shared.js +2 -0
- package/connector-types/src/Connector.Shared.js.map +1 -0
- package/connector-types/src/DataConnector.d.ts +34 -0
- package/connector-types/src/DataConnector.js +2 -0
- package/connector-types/src/DataConnector.js.map +1 -0
- package/connector-types/src/FontConnector.d.ts +20 -0
- package/connector-types/src/FontConnector.js +2 -0
- package/connector-types/src/FontConnector.js.map +1 -0
- package/connector-types/src/MediaConnector.d.ts +20 -0
- package/connector-types/src/MediaConnector.js +2 -0
- package/connector-types/src/MediaConnector.js.map +1 -0
- package/connector-types/src/index.d.ts +4 -0
- package/connector-types/src/index.js +5 -0
- package/connector-types/src/index.js.map +1 -0
- package/lib/editor-engine.json +1 -1
- package/lib/package.json +10 -18
- package/lib/src/controllers/ActionController.d.ts +13 -13
- package/lib/src/controllers/ActionController.js.map +1 -1
- package/lib/src/controllers/AnimationController.d.ts +10 -10
- package/lib/src/controllers/AnimationController.js.map +1 -1
- package/lib/src/controllers/BarcodeController.d.ts +15 -15
- package/lib/src/controllers/BarcodeController.js.map +1 -1
- package/lib/src/controllers/BrandKitController.d.ts +103 -0
- package/lib/src/controllers/BrandKitController.js +357 -0
- package/lib/src/controllers/BrandKitController.js.map +1 -0
- package/lib/src/controllers/CanvasController.d.ts +4 -4
- package/lib/src/controllers/CanvasController.js.map +1 -1
- package/lib/src/controllers/CharacterStyleController.d.ts +8 -8
- package/lib/src/controllers/CharacterStyleController.js.map +1 -1
- package/lib/src/controllers/ClipboardController.d.ts +4 -4
- package/lib/src/controllers/ClipboardController.js.map +1 -1
- package/lib/src/controllers/ColorConversionController.d.ts +1 -1
- package/lib/src/controllers/ColorConversionController.js.map +1 -1
- package/lib/src/controllers/ColorStyleController.d.ts +8 -8
- package/lib/src/controllers/ColorStyleController.js.map +1 -1
- package/lib/src/controllers/ConfigurationController.d.ts +4 -4
- package/lib/src/controllers/ConfigurationController.js.map +1 -1
- package/lib/src/controllers/ConnectorController.d.ts +3 -3
- package/lib/src/controllers/ConnectorController.js +1 -1
- package/lib/src/controllers/ConnectorController.js.map +1 -1
- package/lib/src/controllers/DataConnectorController.d.ts +4 -3
- package/lib/src/controllers/DataConnectorController.js.map +1 -1
- package/lib/src/controllers/DataSourceController.d.ts +4 -4
- package/lib/src/controllers/DataSourceController.js.map +1 -1
- package/lib/src/controllers/DebugController.d.ts +4 -4
- package/lib/src/controllers/DebugController.js.map +1 -1
- package/lib/src/controllers/DocumentController.d.ts +4 -4
- package/lib/src/controllers/DocumentController.js.map +1 -1
- package/lib/src/controllers/ExperimentController.d.ts +8 -8
- package/lib/src/controllers/ExperimentController.js.map +1 -1
- package/lib/src/controllers/FontConnectorController.d.ts +2 -2
- package/lib/src/controllers/FontConnectorController.js +1 -1
- package/lib/src/controllers/FontConnectorController.js.map +1 -1
- package/lib/src/controllers/FontController.d.ts +13 -13
- package/lib/src/controllers/FontController.js.map +1 -1
- package/lib/src/controllers/FrameController.d.ts +1 -1
- package/lib/src/controllers/FrameController.js.map +1 -1
- package/lib/src/controllers/InfoController.js.map +1 -1
- package/lib/src/controllers/LayoutController.d.ts +1 -1
- package/lib/src/controllers/LayoutController.js.map +1 -1
- package/lib/src/controllers/MediaConnectorController.d.ts +9 -9
- package/lib/src/controllers/MediaConnectorController.js +8 -8
- package/lib/src/controllers/MediaConnectorController.js.map +1 -1
- package/lib/src/controllers/PageController.d.ts +4 -4
- package/lib/src/controllers/PageController.js +2 -2
- package/lib/src/controllers/PageController.js.map +1 -1
- package/lib/src/controllers/ParagraphStyleController.d.ts +8 -8
- package/lib/src/controllers/ParagraphStyleController.js.map +1 -1
- package/lib/src/controllers/ShapeController.d.ts +11 -11
- package/lib/src/controllers/ShapeController.js.map +1 -1
- package/lib/src/controllers/SubscriberController.d.ts +8 -2
- package/lib/src/controllers/SubscriberController.js +11 -3
- package/lib/src/controllers/SubscriberController.js.map +1 -1
- package/lib/src/controllers/TextStyleController.d.ts +3 -3
- package/lib/src/controllers/TextStyleController.js.map +1 -1
- package/lib/src/controllers/ToolController.d.ts +11 -11
- package/lib/src/controllers/ToolController.js.map +1 -1
- package/lib/src/controllers/UndoManagerController.d.ts +16 -10
- package/lib/src/controllers/UndoManagerController.js +11 -3
- package/lib/src/controllers/UndoManagerController.js.map +1 -1
- package/lib/src/controllers/UtilsController.d.ts +3 -3
- package/lib/src/controllers/UtilsController.js.map +1 -1
- package/lib/src/controllers/VariableController.d.ts +50 -50
- package/lib/src/controllers/VariableController.js +3 -1
- package/lib/src/controllers/VariableController.js.map +1 -1
- package/lib/src/index.d.ts +5 -3
- package/lib/src/index.js +3 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/interactions/Connector.d.ts +5 -1
- package/lib/src/interactions/Connector.js +2 -2
- package/lib/src/interactions/Connector.js.map +1 -1
- package/lib/src/next/NextInitiator.js.map +1 -1
- package/lib/src/next/controllers/CanvasController.d.ts +1 -1
- package/lib/src/next/controllers/CanvasController.js.map +1 -1
- package/lib/src/next/controllers/ConnectorController.d.ts +3 -3
- package/lib/src/next/controllers/ConnectorController.js.map +1 -1
- package/lib/src/next/controllers/PageController.d.ts +2 -2
- package/lib/src/next/controllers/PageController.js.map +1 -1
- package/lib/src/next/controllers/SubscriberController.d.ts +5 -0
- package/lib/src/next/controllers/SubscriberController.js +7 -0
- package/lib/src/next/controllers/SubscriberController.js.map +1 -1
- package/lib/src/next/controllers/VariableController.d.ts +8 -8
- package/lib/src/next/controllers/VariableController.js +3 -1
- package/lib/src/next/controllers/VariableController.js.map +1 -1
- package/lib/src/next/index.d.ts +2 -2
- package/lib/src/next/index.js.map +1 -1
- package/lib/src/next/tests/controllers/CanvasController.test.js.map +1 -1
- package/lib/src/next/tests/controllers/ConnectorController.test.js.map +1 -1
- package/lib/src/next/tests/controllers/PageController.test.js.map +1 -1
- package/lib/src/next/tests/controllers/SubscriberContoller.test.js +1 -0
- package/lib/src/next/tests/controllers/SubscriberContoller.test.js.map +1 -1
- package/lib/src/next/tests/controllers/VariableController.test.js.map +1 -1
- package/lib/src/next/types/ConnectorTypes.js.map +1 -1
- package/lib/src/next/types/NextSubscribers.js.map +1 -1
- package/lib/src/next/types/PageTypes.js.map +1 -1
- package/lib/src/next/types/VariableTypes.js.map +1 -1
- package/lib/src/sdk.d.ts +3 -1
- package/lib/src/sdk.js +4 -0
- package/lib/src/sdk.js.map +1 -1
- package/lib/src/setupTests.js.map +1 -1
- package/lib/src/tests/__mocks__/Animations.js.map +1 -1
- package/lib/src/tests/__mocks__/Brandkit.js +389 -0
- package/lib/src/tests/__mocks__/Brandkit.js.map +1 -0
- package/lib/src/tests/__mocks__/Config.js.map +1 -1
- package/lib/src/tests/__mocks__/FrameProperties.js.map +1 -1
- package/lib/src/tests/__mocks__/MockImageFrameSource.js.map +1 -1
- package/lib/src/tests/__mocks__/localConfig.js.map +1 -1
- package/lib/src/tests/__mocks__/mockDocument.js.map +1 -1
- package/lib/src/tests/controllers/ActionController.test.js.map +1 -1
- package/lib/src/tests/controllers/AnimationController.test.js.map +1 -1
- package/lib/src/tests/controllers/BarcodeController.test.js.map +1 -1
- package/lib/src/tests/controllers/BrandKitController.test.js +276 -0
- package/lib/src/tests/controllers/BrandKitController.test.js.map +1 -0
- package/lib/src/tests/controllers/CanvasController.test.js.map +1 -1
- package/lib/src/tests/controllers/CharacterStyleController.test.js +22 -0
- package/lib/src/tests/controllers/CharacterStyleController.test.js.map +1 -1
- package/lib/src/tests/controllers/ClipboardController.test.js.map +1 -1
- package/lib/src/tests/controllers/ColorConversionController.test.js.map +1 -1
- package/lib/src/tests/controllers/ColorStyleController.test.js.map +1 -1
- package/lib/src/tests/controllers/ConnectorController.test.js.map +1 -1
- package/lib/src/tests/controllers/DataConnectorController.test.js +1 -1
- package/lib/src/tests/controllers/DataConnectorController.test.js.map +1 -1
- package/lib/src/tests/controllers/DataSourceController.test.js.map +1 -1
- package/lib/src/tests/controllers/DebugController.test.js.map +1 -1
- package/lib/src/tests/controllers/DocumentController.test.js.map +1 -1
- package/lib/src/tests/controllers/ExperimentController.test.js.map +1 -1
- package/lib/src/tests/controllers/FontConnectorController.test.js.map +1 -1
- package/lib/src/tests/controllers/FontController.test.js.map +1 -1
- package/lib/src/tests/controllers/FrameController.test.js.map +1 -1
- package/lib/src/tests/controllers/InfoController.test.js.map +1 -1
- package/lib/src/tests/controllers/LayoutController.test.js.map +1 -1
- package/lib/src/tests/controllers/MediaConnectorController.test.js.map +1 -1
- package/lib/src/tests/controllers/PageController.test.js.map +1 -1
- package/lib/src/tests/controllers/ParagraphStyleController.test.js +25 -0
- package/lib/src/tests/controllers/ParagraphStyleController.test.js.map +1 -1
- package/lib/src/tests/controllers/ShapeController.test.js.map +1 -1
- package/lib/src/tests/controllers/SubscriberContoller.test.js +9 -3
- package/lib/src/tests/controllers/SubscriberContoller.test.js.map +1 -1
- package/lib/src/tests/controllers/TextStyleController.test.js.map +1 -1
- package/lib/src/tests/controllers/ToolController.test.js.map +1 -1
- package/lib/src/tests/controllers/UndoManagerController.test.js +2 -2
- package/lib/src/tests/controllers/UndoManagerController.test.js.map +1 -1
- package/lib/src/tests/controllers/UtilsController.test.js.map +1 -1
- package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
- package/lib/src/tests/index.test.js.map +1 -1
- package/lib/src/tests/interactions/Connector.test.js.map +1 -1
- package/lib/src/tests/utils/ConnectorCompatibilityTools.test.js.map +1 -1
- package/lib/src/tests/utils/EditorResponseData.test.js.map +1 -1
- package/lib/src/tests/utils/EventSubscription.test.js.map +1 -1
- package/lib/src/tests/utils/LocalConfigurationDecorator.test.js.map +1 -1
- package/lib/src/tests/utils/Logging.test.js.map +1 -1
- package/lib/src/tests/utils/Round.test.js.map +1 -1
- package/lib/src/types/ActionTypes.js.map +1 -1
- package/lib/src/types/AnimationTypes.js.map +1 -1
- package/lib/src/types/BarcodeTypes.js.map +1 -1
- package/lib/src/types/BrandKitTypes.d.ts +129 -0
- package/lib/src/types/BrandKitTypes.js +2 -0
- package/lib/src/types/BrandKitTypes.js.map +1 -0
- package/lib/src/types/CharacterStyleTypes.d.ts +29 -14
- package/lib/src/types/CharacterStyleTypes.js.map +1 -1
- package/lib/src/types/ClipboardTypes.js.map +1 -1
- package/lib/src/types/ColorStyleTypes.d.ts +20 -5
- package/lib/src/types/ColorStyleTypes.js +18 -2
- package/lib/src/types/ColorStyleTypes.js.map +1 -1
- package/lib/src/types/CommonTypes.d.ts +9 -30
- package/lib/src/types/CommonTypes.js +0 -10
- package/lib/src/types/CommonTypes.js.map +1 -1
- package/lib/src/types/ConfigurationTypes.js.map +1 -1
- package/lib/src/types/ConnectorTypes.d.ts +16 -13
- package/lib/src/types/ConnectorTypes.js +10 -0
- package/lib/src/types/ConnectorTypes.js.map +1 -1
- package/lib/src/types/DataConnectorTypes.d.ts +2 -32
- package/lib/src/types/DataConnectorTypes.js.map +1 -1
- package/lib/src/types/DebugTypes.js.map +1 -1
- package/lib/src/types/DocumentTypes.d.ts +83 -4
- package/lib/src/types/DocumentTypes.js +6 -0
- package/lib/src/types/DocumentTypes.js.map +1 -1
- package/lib/src/types/EngineEditModeTypes.js.map +1 -1
- package/lib/src/types/FontConnectorTypes.d.ts +1 -19
- package/lib/src/types/FontConnectorTypes.js.map +1 -1
- package/lib/src/types/FontTypes.js.map +1 -1
- package/lib/src/types/FrameTypes.d.ts +8 -3
- package/lib/src/types/FrameTypes.js +1 -1
- package/lib/src/types/FrameTypes.js.map +1 -1
- package/lib/src/types/LayoutTypes.d.ts +18 -17
- package/lib/src/types/LayoutTypes.js.map +1 -1
- package/lib/src/types/MediaConnectorTypes.d.ts +7 -23
- package/lib/src/types/MediaConnectorTypes.js +2 -0
- package/lib/src/types/MediaConnectorTypes.js.map +1 -1
- package/lib/src/types/PageTypes.js.map +1 -1
- package/lib/src/types/ParagraphStyleTypes.d.ts +35 -17
- package/lib/src/types/ParagraphStyleTypes.js.map +1 -1
- package/lib/src/types/ShapeTypes.js.map +1 -1
- package/lib/src/types/TextStyleTypes.d.ts +8 -2
- package/lib/src/types/TextStyleTypes.js +2 -0
- package/lib/src/types/TextStyleTypes.js.map +1 -1
- package/lib/src/types/TextTypes.js.map +1 -1
- package/lib/src/types/VariableTypes.js.map +1 -1
- package/lib/src/types/ViewModeTypes.js.map +1 -1
- package/lib/src/types/ViewportTypes.js.map +1 -1
- package/lib/src/utils/BrandKitHelper.d.ts +9 -0
- package/lib/src/utils/BrandKitHelper.js +72 -0
- package/lib/src/utils/BrandKitHelper.js.map +1 -0
- package/lib/src/utils/ConfigHelper.js +1 -0
- package/lib/src/utils/ConfigHelper.js.map +1 -1
- package/lib/src/utils/ConnectorCompatibilityTools.js.map +1 -1
- package/lib/src/utils/DataItemMappingTools.js.map +1 -1
- package/lib/src/utils/EditorResponseData.d.ts +1 -1
- package/lib/src/utils/EditorResponseData.js.map +1 -1
- package/lib/src/utils/EngineCallbackHandler.js.map +1 -1
- package/lib/src/utils/EngineEvent.js.map +1 -1
- package/lib/src/utils/EngineEventTrigger.js.map +1 -1
- package/lib/src/utils/Enums.js.map +1 -1
- package/lib/src/utils/LocalConfigurationDecorator.d.ts +2 -2
- package/lib/src/utils/LocalConfigurationDecorator.js.map +1 -1
- package/lib/src/utils/MathUtils.js.map +1 -1
- package/package.json +10 -18
- package/_bundles/report.html +0 -38
- package/lib/src/next/tests/controllers/CanvasController.test.d.ts +0 -1
- package/lib/src/next/tests/controllers/ConnectorController.test.d.ts +0 -1
- package/lib/src/next/tests/controllers/PageController.test.d.ts +0 -1
- package/lib/src/next/tests/controllers/SubscriberContoller.test.d.ts +0 -1
- package/lib/src/next/tests/controllers/VariableController.test.d.ts +0 -1
- package/lib/src/setupTests.d.ts +0 -1
- package/lib/src/tests/__mocks__/Animations.d.ts +0 -2
- package/lib/src/tests/__mocks__/Config.d.ts +0 -4
- package/lib/src/tests/__mocks__/FrameProperties.d.ts +0 -52
- package/lib/src/tests/__mocks__/MockImageFrameSource.d.ts +0 -4
- package/lib/src/tests/__mocks__/localConfig.d.ts +0 -2
- package/lib/src/tests/__mocks__/mockDocument.d.ts +0 -1
- package/lib/src/tests/controllers/ActionController.test.d.ts +0 -1
- package/lib/src/tests/controllers/AnimationController.test.d.ts +0 -1
- package/lib/src/tests/controllers/BarcodeController.test.d.ts +0 -1
- package/lib/src/tests/controllers/CanvasController.test.d.ts +0 -1
- package/lib/src/tests/controllers/CharacterStyleController.test.d.ts +0 -1
- package/lib/src/tests/controllers/ClipboardController.test.d.ts +0 -1
- package/lib/src/tests/controllers/ColorConversionController.test.d.ts +0 -1
- package/lib/src/tests/controllers/ColorStyleController.test.d.ts +0 -1
- package/lib/src/tests/controllers/ConnectorController.test.d.ts +0 -1
- package/lib/src/tests/controllers/DataConnectorController.test.d.ts +0 -1
- package/lib/src/tests/controllers/DataSourceController.test.d.ts +0 -1
- package/lib/src/tests/controllers/DebugController.test.d.ts +0 -1
- package/lib/src/tests/controllers/DocumentController.test.d.ts +0 -1
- package/lib/src/tests/controllers/ExperimentController.test.d.ts +0 -1
- package/lib/src/tests/controllers/FontConnectorController.test.d.ts +0 -1
- package/lib/src/tests/controllers/FontController.test.d.ts +0 -1
- package/lib/src/tests/controllers/FrameController.test.d.ts +0 -1
- package/lib/src/tests/controllers/InfoController.test.d.ts +0 -1
- package/lib/src/tests/controllers/LayoutController.test.d.ts +0 -1
- package/lib/src/tests/controllers/MediaConnectorController.test.d.ts +0 -1
- package/lib/src/tests/controllers/PageController.test.d.ts +0 -1
- package/lib/src/tests/controllers/ParagraphStyleController.test.d.ts +0 -1
- package/lib/src/tests/controllers/ShapeController.test.d.ts +0 -1
- package/lib/src/tests/controllers/SubscriberContoller.test.d.ts +0 -1
- package/lib/src/tests/controllers/TextStyleController.test.d.ts +0 -1
- package/lib/src/tests/controllers/ToolController.test.d.ts +0 -1
- package/lib/src/tests/controllers/UndoManagerController.test.d.ts +0 -1
- package/lib/src/tests/controllers/UtilsController.test.d.ts +0 -1
- package/lib/src/tests/controllers/VariableController.test.d.ts +0 -1
- package/lib/src/tests/index.test.d.ts +0 -1
- package/lib/src/tests/interactions/Connector.test.d.ts +0 -1
- package/lib/src/tests/utils/ConnectorCompatibilityTools.test.d.ts +0 -1
- package/lib/src/tests/utils/EditorResponseData.test.d.ts +0 -1
- package/lib/src/tests/utils/EventSubscription.test.d.ts +0 -1
- package/lib/src/tests/utils/LocalConfigurationDecorator.test.d.ts +0 -1
- package/lib/src/tests/utils/Logging.test.d.ts +0 -1
- package/lib/src/tests/utils/Round.test.d.ts +0 -1
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { Id } from './CommonTypes';
|
|
2
|
+
export declare enum APIColorType {
|
|
3
|
+
rgb = "rgb",
|
|
4
|
+
hex = "hex",
|
|
5
|
+
cmyk = "cmyk",
|
|
6
|
+
spotCmyk = "spotCmyk",
|
|
7
|
+
spotRgb = "spotRgb",
|
|
8
|
+
spotHex = "spotHex"
|
|
9
|
+
}
|
|
2
10
|
export declare enum ColorType {
|
|
3
11
|
rgb = "rgb",
|
|
4
12
|
hex = "hex",
|
|
@@ -10,7 +18,8 @@ export declare enum ColorType {
|
|
|
10
18
|
*/
|
|
11
19
|
spot = "spot",
|
|
12
20
|
spotCMYK = "spotCMYK",
|
|
13
|
-
spotRGB = "spotRGB"
|
|
21
|
+
spotRGB = "spotRGB",
|
|
22
|
+
spotHEX = "spotHEX"
|
|
14
23
|
}
|
|
15
24
|
export type RGBColor = {
|
|
16
25
|
r: number;
|
|
@@ -79,7 +88,7 @@ export type DocumentColor = {
|
|
|
79
88
|
};
|
|
80
89
|
export type ColorUsageUpdate = {
|
|
81
90
|
/**
|
|
82
|
-
* Reference to the
|
|
91
|
+
* Reference to the brand kit color, can only be used if it is a brand kit color.
|
|
83
92
|
*/
|
|
84
93
|
id?: Id;
|
|
85
94
|
/**
|
|
@@ -98,7 +107,7 @@ export type ColorUsageUpdate = {
|
|
|
98
107
|
};
|
|
99
108
|
export type ColorUsage = {
|
|
100
109
|
/**
|
|
101
|
-
* Reference to the
|
|
110
|
+
* Reference to the brand kit color, can only be used if it is a brand kit color.
|
|
102
111
|
*/
|
|
103
112
|
id?: Id;
|
|
104
113
|
/**
|
|
@@ -117,7 +126,13 @@ export declare enum ColorUsageType {
|
|
|
117
126
|
*/
|
|
118
127
|
local = "local",
|
|
119
128
|
/**
|
|
120
|
-
*
|
|
129
|
+
* The color is referencing a document color
|
|
130
|
+
*/
|
|
131
|
+
brandKit = "brandKit",
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated use brandKit instead
|
|
134
|
+
*
|
|
135
|
+
* The color is referencing a brand kit color
|
|
121
136
|
*/
|
|
122
|
-
stylekit = "
|
|
137
|
+
stylekit = "brandKit"
|
|
123
138
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export var APIColorType;
|
|
2
|
+
(function (APIColorType) {
|
|
3
|
+
APIColorType["rgb"] = "rgb";
|
|
4
|
+
APIColorType["hex"] = "hex";
|
|
5
|
+
APIColorType["cmyk"] = "cmyk";
|
|
6
|
+
APIColorType["spotCmyk"] = "spotCmyk";
|
|
7
|
+
APIColorType["spotRgb"] = "spotRgb";
|
|
8
|
+
APIColorType["spotHex"] = "spotHex";
|
|
9
|
+
})(APIColorType || (APIColorType = {}));
|
|
1
10
|
export var ColorType;
|
|
2
11
|
(function (ColorType) {
|
|
3
12
|
ColorType["rgb"] = "rgb";
|
|
@@ -11,6 +20,7 @@ export var ColorType;
|
|
|
11
20
|
ColorType["spot"] = "spot";
|
|
12
21
|
ColorType["spotCMYK"] = "spotCMYK";
|
|
13
22
|
ColorType["spotRGB"] = "spotRGB";
|
|
23
|
+
ColorType["spotHEX"] = "spotHEX";
|
|
14
24
|
})(ColorType || (ColorType = {}));
|
|
15
25
|
export var ColorUsageType;
|
|
16
26
|
(function (ColorUsageType) {
|
|
@@ -19,8 +29,14 @@ export var ColorUsageType;
|
|
|
19
29
|
*/
|
|
20
30
|
ColorUsageType["local"] = "local";
|
|
21
31
|
/**
|
|
22
|
-
*
|
|
32
|
+
* The color is referencing a document color
|
|
23
33
|
*/
|
|
24
|
-
ColorUsageType["
|
|
34
|
+
ColorUsageType["brandKit"] = "brandKit";
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated use brandKit instead
|
|
37
|
+
*
|
|
38
|
+
* The color is referencing a brand kit color
|
|
39
|
+
*/
|
|
40
|
+
ColorUsageType["stylekit"] = "brandKit";
|
|
25
41
|
})(ColorUsageType || (ColorUsageType = {}));
|
|
26
42
|
//# sourceMappingURL=ColorStyleTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorStyleTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"ColorStyleTypes.js","sourceRoot":"","sources":["../../../../src/types/ColorStyleTypes.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,YAOX;AAPD,WAAY,YAAY;IACpB,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACvB,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB;AACD,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IACjB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,wBAAW,CAAA;IACX;;OAEG;IACH,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;AACvB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;AA4HD,MAAM,CAAN,IAAY,cAeX;AAfD,WAAY,cAAc;IACtB;;OAEG;IACH,iCAAe,CAAA;IACf;;OAEG;IACH,uCAAqB,CAAA;IACrB;;;;OAIG;IACH,uCAAqB,CAAA;AACzB,CAAC,EAfW,cAAc,KAAd,cAAc,QAezB"}
|
|
@@ -10,8 +10,7 @@ import { StudioOptionsDeltaUpdate, StudioStyling } from './ConfigurationTypes';
|
|
|
10
10
|
import { AuthCredentials, AuthRefreshRequest, ConnectorEvent } from './ConnectorTypes';
|
|
11
11
|
import { DocumentIssue, DocumentType, UndoState } from './DocumentTypes';
|
|
12
12
|
import { EngineEditMode } from './EngineEditModeTypes';
|
|
13
|
-
import
|
|
14
|
-
import { Frame, FrameLayoutType, FrameTypeEnum } from './FrameTypes';
|
|
13
|
+
import { FrameType, Frame, FrameLayoutType, FrameTypeEnum } from './FrameTypes';
|
|
15
14
|
import { LayoutListItemType, LayoutPropertiesType, LayoutWithFrameProperties, MeasurementUnit } from './LayoutTypes';
|
|
16
15
|
import { Page, PageSize } from './PageTypes';
|
|
17
16
|
import { ParagraphStyle } from './ParagraphStyleTypes';
|
|
@@ -19,6 +18,7 @@ import { CornerRadiusUpdateModel } from './ShapeTypes';
|
|
|
19
18
|
import { SelectedTextStyle } from './TextStyleTypes';
|
|
20
19
|
import { Variable } from './VariableTypes';
|
|
21
20
|
import { Viewport } from './ViewportTypes';
|
|
21
|
+
import { BrandKitMedia } from './BrandKitTypes';
|
|
22
22
|
export type Id = string;
|
|
23
23
|
export type BaseConfigType = {
|
|
24
24
|
editorLink?: string;
|
|
@@ -110,6 +110,7 @@ export type ManagedCallbacksConfigType = {
|
|
|
110
110
|
onDocumentIssueListChanged: EngineEvent<(documentIssues: DocumentIssue[]) => MaybePromise<void>>;
|
|
111
111
|
onCustomUndoDataChanged: EngineEvent<(customData: Record<string, string>) => MaybePromise<void>>;
|
|
112
112
|
onEngineEditModeChanged: EngineEvent<(engineEditMode: EngineEditMode) => MaybePromise<void>>;
|
|
113
|
+
onBrandKitMediaChanged: EngineEvent<(brandKitMedia: BrandKitMedia[]) => MaybePromise<void>>;
|
|
113
114
|
};
|
|
114
115
|
};
|
|
115
116
|
export type InitialCallbacksConfigType = {
|
|
@@ -155,7 +156,7 @@ export type InitialCallbacksConfigType = {
|
|
|
155
156
|
*/
|
|
156
157
|
onSelectedFramesContentChanged?: (state: Frame[]) => void;
|
|
157
158
|
/**
|
|
158
|
-
* @deprecated use `
|
|
159
|
+
* @deprecated use `onSelectedPageIdChanged` instead
|
|
159
160
|
*/
|
|
160
161
|
onPageSelectionChanged?: (id: Id) => void;
|
|
161
162
|
/**
|
|
@@ -244,7 +245,7 @@ export type InitialCallbacksConfigType = {
|
|
|
244
245
|
*
|
|
245
246
|
* @deprecated use `events.onPageSnapshotInvalidated` instead
|
|
246
247
|
*/
|
|
247
|
-
onPageSnapshotInvalidated?: (
|
|
248
|
+
onPageSnapshotInvalidated?: (pageId: Id) => void;
|
|
248
249
|
/**
|
|
249
250
|
* @deprecated use `events.onPageSizeChanged` instead
|
|
250
251
|
*/
|
|
@@ -285,6 +286,10 @@ export type InitialCallbacksConfigType = {
|
|
|
285
286
|
* @deprecated use `events.onEngineEditModeChanged` instead
|
|
286
287
|
*/
|
|
287
288
|
onEngineEditModeChanged?: (engineEditMode: EngineEditMode) => void;
|
|
289
|
+
/**
|
|
290
|
+
* @deprecated use `events.onBrandKitMediaChanged` instead
|
|
291
|
+
*/
|
|
292
|
+
onBrandKitMediaChanged?: (brandKitMedia: BrandKitMedia[]) => void;
|
|
288
293
|
};
|
|
289
294
|
export type ConfigType = InitialCallbacksConfigType & BaseConfigType;
|
|
290
295
|
export type RuntimeConfigType = ConfigType & ManagedCallbacksConfigType;
|
|
@@ -330,27 +335,6 @@ export interface SelectedLayoutFrame {
|
|
|
330
335
|
type: FrameTypeEnum;
|
|
331
336
|
isVisible: boolean;
|
|
332
337
|
}
|
|
333
|
-
export interface MetaData {
|
|
334
|
-
[key: string]: string | boolean;
|
|
335
|
-
}
|
|
336
|
-
export interface ConnectorOptions {
|
|
337
|
-
[key: string]: string | boolean;
|
|
338
|
-
}
|
|
339
|
-
export declare enum ConnectorConfigValueType {
|
|
340
|
-
text = "text",
|
|
341
|
-
boolean = "boolean"
|
|
342
|
-
}
|
|
343
|
-
export declare enum ConnectorConfigContextType {
|
|
344
|
-
query = "query",
|
|
345
|
-
upload = "upload"
|
|
346
|
-
}
|
|
347
|
-
export interface ConnectorConfigValue {
|
|
348
|
-
readonly name: string;
|
|
349
|
-
readonly displayName: string;
|
|
350
|
-
readonly type: ConnectorConfigValueType;
|
|
351
|
-
readonly context?: ConnectorConfigContextType[];
|
|
352
|
-
}
|
|
353
|
-
export type ConnectorConfigOptions = ConnectorConfigValue[];
|
|
354
338
|
export interface ActionEventErrorData {
|
|
355
339
|
event: ActionEditorEvent;
|
|
356
340
|
actionIds: Id[];
|
|
@@ -389,9 +373,4 @@ export interface EditorExceptionDto {
|
|
|
389
373
|
}
|
|
390
374
|
export type AsyncError = ActionAsyncError | DataRowAsyncError;
|
|
391
375
|
export type PrivateData = Record<string, string>;
|
|
392
|
-
export interface FilePointer {
|
|
393
|
-
id: string;
|
|
394
|
-
url: string;
|
|
395
|
-
name: string;
|
|
396
|
-
}
|
|
397
376
|
export {};
|
|
@@ -25,16 +25,6 @@ export var CallbackErrorBehavior;
|
|
|
25
25
|
*/
|
|
26
26
|
CallbackErrorBehavior["log"] = "log";
|
|
27
27
|
})(CallbackErrorBehavior || (CallbackErrorBehavior = {}));
|
|
28
|
-
export var ConnectorConfigValueType;
|
|
29
|
-
(function (ConnectorConfigValueType) {
|
|
30
|
-
ConnectorConfigValueType["text"] = "text";
|
|
31
|
-
ConnectorConfigValueType["boolean"] = "boolean";
|
|
32
|
-
})(ConnectorConfigValueType || (ConnectorConfigValueType = {}));
|
|
33
|
-
export var ConnectorConfigContextType;
|
|
34
|
-
(function (ConnectorConfigContextType) {
|
|
35
|
-
ConnectorConfigContextType["query"] = "query";
|
|
36
|
-
ConnectorConfigContextType["upload"] = "upload";
|
|
37
|
-
})(ConnectorConfigContextType || (ConnectorConfigContextType = {}));
|
|
38
28
|
export class ActionAsyncError {
|
|
39
29
|
constructor(message, id, event, eventChain) {
|
|
40
30
|
this.type = AsyncErrorType.action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"CommonTypes.js","sourceRoot":"","sources":["../../../../src/types/CommonTypes.ts"],"names":[],"mappings":"AA+CA,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAChB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,2BAAe,CAAA;AACnB,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB;AAED,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;IACvB,8BAAe,CAAA;IACf,gCAAiB,CAAA;AACrB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC7B;;OAEG;IACH,wCAAe,CAAA;IAEf;;OAEG;IACH,oCAAW,CAAA;AACf,CAAC,EAVW,qBAAqB,KAArB,qBAAqB,QAUhC;AAoVD,MAAM,OAAO,gBAAgB;IAOzB,YAAY,OAAe,EAAE,EAAW,EAAE,KAAyB,EAAE,UAAmC;QACpG,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,MAAM,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;CACJ;AAED,MAAM,OAAO,iBAAiB;IAM1B,YAAY,KAAa,EAAE,OAAe,EAAE,UAAgC;QACxE,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;CACJ;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACvB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"ConfigurationTypes.js","sourceRoot":"","sources":["../../../../src/types/ConfigurationTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,0BAOX;AAPD,WAAY,0BAA0B;IAClC,8EAAgD,CAAA;IAChD,mEAAqC,CAAA;IACrC,uEAAyC,CAAA;IACzC,mEAAqC,CAAA;IACrC,uEAAyC,CAAA;IACzC,+EAAiD,CAAA;AACrD,CAAC,EAPW,0BAA0B,KAA1B,0BAA0B,QAOrC;AA4DD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA6B;IAC1D,eAAe,EAAE;QACb,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QAC9B,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QACxB,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QACzB,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QAC7B,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QAC1B,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QACxB,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QACxB,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;QAC7B,QAAQ,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;KAC/B;CACJ,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { Dictionary as ContextDictionary, ConnectorConfigOptions as GenericConnectorConfigOptions, ConnectorConfigValue as GenericConnectorConfigValue, QueryPage as QueryResult } from '../../../connector-types/src';
|
|
1
2
|
import { Id } from './CommonTypes';
|
|
3
|
+
export type { FilePointer, QueryOptions } from '../../../connector-types/src';
|
|
2
4
|
export declare enum DeprecatedMediaType {
|
|
3
5
|
file = 0,
|
|
4
6
|
collection = 1
|
|
@@ -25,14 +27,16 @@ export declare enum SortOrder {
|
|
|
25
27
|
ascending = "asc",
|
|
26
28
|
descending = "desc"
|
|
27
29
|
}
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
30
|
+
export declare enum ConnectorConfigValueType {
|
|
31
|
+
text = "text",
|
|
32
|
+
boolean = "boolean"
|
|
33
|
+
}
|
|
34
|
+
export declare enum ConnectorConfigContextType {
|
|
35
|
+
query = "query",
|
|
36
|
+
upload = "upload"
|
|
37
|
+
}
|
|
38
|
+
export type ConnectorConfigValue = GenericConnectorConfigValue<ConnectorConfigValueType, ConnectorConfigContextType>;
|
|
39
|
+
export type ConnectorConfigOptions = GenericConnectorConfigOptions<ConnectorConfigValueType, ConnectorConfigContextType>;
|
|
36
40
|
interface ConnectorRegistrationBase {
|
|
37
41
|
/**
|
|
38
42
|
* Url to the connector.
|
|
@@ -80,7 +84,7 @@ export declare enum ConnectorRegistrationSource {
|
|
|
80
84
|
}
|
|
81
85
|
export interface EngineToConnectorMapping {
|
|
82
86
|
name: string;
|
|
83
|
-
value:
|
|
87
|
+
value: ContextDictionary[keyof ContextDictionary];
|
|
84
88
|
direction: ConnectorMappingDirection.engineToConnector;
|
|
85
89
|
}
|
|
86
90
|
export interface ConnectorToEngineMapping {
|
|
@@ -105,10 +109,8 @@ export type ConnectorEvent = {
|
|
|
105
109
|
id: Id;
|
|
106
110
|
type: ConnectorEventType;
|
|
107
111
|
};
|
|
108
|
-
export type QueryPage<T> = {
|
|
109
|
-
pageSize: number;
|
|
112
|
+
export type QueryPage<T> = Omit<QueryResult<T>, 'links'> & {
|
|
110
113
|
nextPageToken?: string;
|
|
111
|
-
data: T[];
|
|
112
114
|
};
|
|
113
115
|
export declare enum ConnectorMappingSource {
|
|
114
116
|
variable = "var",
|
|
@@ -224,6 +226,8 @@ export type AuthRefreshRequest = {
|
|
|
224
226
|
type: AuthRefreshTypeEnum;
|
|
225
227
|
headerValue: string | null;
|
|
226
228
|
};
|
|
229
|
+
export type ConnectorOptions = ContextDictionary;
|
|
230
|
+
export type MetaData = ContextDictionary;
|
|
227
231
|
export type UploadValidationConfiguration = {
|
|
228
232
|
minWidthPixels?: number | null;
|
|
229
233
|
maxWidthPixels?: number | null;
|
|
@@ -238,4 +242,3 @@ export declare class UploadAssetValidationError extends Error {
|
|
|
238
242
|
type: UploadAssetValidationErrorType;
|
|
239
243
|
constructor(message: string, type: UploadAssetValidationErrorType);
|
|
240
244
|
}
|
|
241
|
-
export {};
|
|
@@ -30,6 +30,16 @@ export var SortOrder;
|
|
|
30
30
|
SortOrder["ascending"] = "asc";
|
|
31
31
|
SortOrder["descending"] = "desc";
|
|
32
32
|
})(SortOrder || (SortOrder = {}));
|
|
33
|
+
export var ConnectorConfigValueType;
|
|
34
|
+
(function (ConnectorConfigValueType) {
|
|
35
|
+
ConnectorConfigValueType["text"] = "text";
|
|
36
|
+
ConnectorConfigValueType["boolean"] = "boolean";
|
|
37
|
+
})(ConnectorConfigValueType || (ConnectorConfigValueType = {}));
|
|
38
|
+
export var ConnectorConfigContextType;
|
|
39
|
+
(function (ConnectorConfigContextType) {
|
|
40
|
+
ConnectorConfigContextType["query"] = "query";
|
|
41
|
+
ConnectorConfigContextType["upload"] = "upload";
|
|
42
|
+
})(ConnectorConfigContextType || (ConnectorConfigContextType = {}));
|
|
33
43
|
export var ConnectorRegistrationSource;
|
|
34
44
|
(function (ConnectorRegistrationSource) {
|
|
35
45
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"ConnectorTypes.js","sourceRoot":"","sources":["../../../../src/types/ConnectorTypes.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,35 +1,5 @@
|
|
|
1
|
-
export type
|
|
2
|
-
filtering: boolean;
|
|
3
|
-
sorting: boolean;
|
|
4
|
-
model: boolean;
|
|
5
|
-
};
|
|
6
|
-
export type PageConfig = {
|
|
7
|
-
filters?: DataFilter[] | null;
|
|
8
|
-
sorting?: DataSorting[] | null;
|
|
9
|
-
continuationToken?: string | null;
|
|
10
|
-
limit: number;
|
|
11
|
-
};
|
|
12
|
-
export type DataSorting = {
|
|
13
|
-
property: string;
|
|
14
|
-
direction: 'asc' | 'desc';
|
|
15
|
-
};
|
|
16
|
-
export type DataFilter = {
|
|
17
|
-
property: string;
|
|
18
|
-
value: string;
|
|
19
|
-
type: 'contains' | 'exact';
|
|
20
|
-
};
|
|
21
|
-
export type DataPage<Item> = {
|
|
1
|
+
export type EditorDataPage<Item> = {
|
|
22
2
|
data: Item[];
|
|
23
3
|
continuationToken?: string | null;
|
|
24
4
|
};
|
|
25
|
-
export type DataItem
|
|
26
|
-
[key: string]: string | number | boolean | Date | null;
|
|
27
|
-
};
|
|
28
|
-
export type DataModel = {
|
|
29
|
-
properties: DataModelProperty[];
|
|
30
|
-
};
|
|
31
|
-
type DataModelProperty = {
|
|
32
|
-
name: string;
|
|
33
|
-
type: 'number' | 'boolean' | 'singleLine' | 'multiLine' | 'date';
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
5
|
+
export type { DataConnectorCapabilities, DataItem, DataModel, DataPage, PageConfig, } from '../../../connector-types/src';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataConnectorTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"DataConnectorTypes.js","sourceRoot":"","sources":["../../../../src/types/DataConnectorTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"DebugTypes.js","sourceRoot":"","sources":["../../../../src/types/DebugTypes.ts"],"names":[],"mappings":"AAAA,IAAK,UAIJ;AAJD,WAAK,UAAU;IACX,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,6BAAe,CAAA;AACnB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { DocumentAction } from './ActionTypes';
|
|
1
2
|
import { BasicAnimationsEmphasisType, BasicAnimationsIntroType, BasicAnimationsOutroType } from './AnimationTypes';
|
|
3
|
+
import { CharacterStyle } from './CharacterStyleTypes';
|
|
2
4
|
import { DocumentColor } from './ColorStyleTypes';
|
|
3
5
|
import { ActionEventErrorData, Id } from './CommonTypes';
|
|
4
6
|
import { BlendMode, FrameTypeEnum } from './FrameTypes';
|
|
5
7
|
import { LayoutIntent, LayoutType } from './LayoutTypes';
|
|
6
8
|
import { ParagraphStyle } from './ParagraphStyleTypes';
|
|
7
|
-
import { Variable } from './VariableTypes';
|
|
8
|
-
import { CharacterStyle } from './CharacterStyleTypes';
|
|
9
|
-
import { DocumentAction } from './ActionTypes';
|
|
10
9
|
import { ShapeProperties } from './ShapeTypes';
|
|
10
|
+
import { Variable } from './VariableTypes';
|
|
11
11
|
export type DocumentError = {
|
|
12
12
|
error: Record<string, unknown>;
|
|
13
13
|
code: number;
|
|
@@ -52,6 +52,8 @@ export type OperationName = {
|
|
|
52
52
|
name: string;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
56
|
+
*
|
|
55
57
|
* This type should give a clear indication of how the JSON document is structured. This could help you with building a test document yourself.
|
|
56
58
|
*/
|
|
57
59
|
export interface ChiliDocument {
|
|
@@ -63,23 +65,38 @@ export interface ChiliDocument {
|
|
|
63
65
|
variables: Variable[];
|
|
64
66
|
actions: DocumentAction[];
|
|
65
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
70
|
+
*/
|
|
66
71
|
export interface DocumentPage {
|
|
67
72
|
id: string;
|
|
68
73
|
number: number;
|
|
69
74
|
frames: (ImageFrame | TextFrame | ShapeFrame)[];
|
|
70
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
78
|
+
*/
|
|
71
79
|
export interface DocumentFrame {
|
|
72
80
|
id: string;
|
|
73
81
|
name: string;
|
|
74
82
|
type: FrameTypeEnum;
|
|
75
83
|
blendMode: BlendMode;
|
|
76
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
87
|
+
*/
|
|
77
88
|
export interface ImageFrame extends DocumentFrame {
|
|
78
89
|
src: ImageFrameUrlSource | ImageFrameConnectorSource | ImageFrameVariableSource;
|
|
79
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
93
|
+
*/
|
|
80
94
|
export interface ShapeFrame extends DocumentFrame {
|
|
81
95
|
shapeProperties: ShapeProperties;
|
|
82
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
99
|
+
*/
|
|
83
100
|
export interface TextFrame extends DocumentFrame {
|
|
84
101
|
textContent: string;
|
|
85
102
|
paddingLeft: number;
|
|
@@ -96,24 +113,41 @@ export interface TextFrame extends DocumentFrame {
|
|
|
96
113
|
textStrokeColor: number;
|
|
97
114
|
hasClippingPath: boolean;
|
|
98
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
118
|
+
*/
|
|
99
119
|
export declare enum ImageFrameSourceType {
|
|
100
120
|
url = "url",
|
|
101
121
|
assetProvider = "assetProvider",
|
|
102
122
|
variable = "variable"
|
|
103
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
126
|
+
*/
|
|
104
127
|
export interface ImageFrameSource {
|
|
105
128
|
type: ImageFrameSourceType;
|
|
106
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
132
|
+
*/
|
|
107
133
|
export interface ImageFrameUrlSource extends ImageFrameSource {
|
|
108
134
|
url: string;
|
|
109
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
138
|
+
*/
|
|
110
139
|
export interface ImageFrameConnectorSource extends ImageFrameSource {
|
|
111
140
|
id: string;
|
|
112
141
|
assetId: string;
|
|
113
142
|
}
|
|
114
|
-
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
145
|
+
*/ export interface ImageFrameVariableSource extends ImageFrameSource {
|
|
115
146
|
id: string;
|
|
116
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
150
|
+
*/
|
|
117
151
|
export interface Layout {
|
|
118
152
|
id: string;
|
|
119
153
|
name: string;
|
|
@@ -127,6 +161,9 @@ export interface Layout {
|
|
|
127
161
|
animated?: boolean;
|
|
128
162
|
intent?: LayoutIntent;
|
|
129
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
166
|
+
*/
|
|
130
167
|
export interface TopLayout extends Layout {
|
|
131
168
|
frameAnimations: FrameAnimation[];
|
|
132
169
|
timelineLengthMs: number;
|
|
@@ -135,13 +172,22 @@ export interface TopLayout extends Layout {
|
|
|
135
172
|
width: number;
|
|
136
173
|
height: number;
|
|
137
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
177
|
+
*/
|
|
138
178
|
export interface ChildLayout extends Layout {
|
|
139
179
|
parentId: Id;
|
|
140
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
183
|
+
*/
|
|
141
184
|
export declare enum FramePropertiesType {
|
|
142
185
|
top = "top",
|
|
143
186
|
child = "child"
|
|
144
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
190
|
+
*/
|
|
145
191
|
export interface FrameProperty {
|
|
146
192
|
id: Id;
|
|
147
193
|
x?: number;
|
|
@@ -155,7 +201,13 @@ export interface FrameProperty {
|
|
|
155
201
|
isVisible?: boolean;
|
|
156
202
|
type: FramePropertiesType;
|
|
157
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
206
|
+
*/
|
|
158
207
|
export type ChildFrameProperty = FrameProperty;
|
|
208
|
+
/**
|
|
209
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
210
|
+
*/
|
|
159
211
|
export interface TopFrameProperty extends FrameProperty {
|
|
160
212
|
x: number;
|
|
161
213
|
y: number;
|
|
@@ -167,24 +219,42 @@ export interface TopFrameProperty extends FrameProperty {
|
|
|
167
219
|
scaleY: number;
|
|
168
220
|
isVisible: boolean;
|
|
169
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
224
|
+
*/
|
|
170
225
|
export interface FrameAnimation {
|
|
171
226
|
id: Id;
|
|
172
227
|
from: number;
|
|
173
228
|
to: number;
|
|
174
229
|
basicAnimations: BasicAnimations;
|
|
175
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
233
|
+
*/
|
|
176
234
|
export interface BasicAnimations {
|
|
177
235
|
intro?: BasicAnimationsIntroType;
|
|
178
236
|
emphasis?: BasicAnimationsEmphasisType;
|
|
179
237
|
outro?: BasicAnimationsOutroType;
|
|
180
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
241
|
+
*/
|
|
181
242
|
export interface DocumentStylekit {
|
|
182
243
|
colors: DocumentColor[];
|
|
183
244
|
characterStyles: DocumentCharacterStyle[];
|
|
184
245
|
paragraphStyles: DocumentParagraphStyle[];
|
|
185
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
249
|
+
*/
|
|
186
250
|
export type DocumentCharacterStyle = CharacterStyle;
|
|
251
|
+
/**
|
|
252
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
253
|
+
*/
|
|
187
254
|
export type DocumentParagraphStyle = ParagraphStyle;
|
|
255
|
+
/**
|
|
256
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
257
|
+
*/
|
|
188
258
|
export interface DocumentVariable extends Variable {
|
|
189
259
|
parentId: Id;
|
|
190
260
|
name: string;
|
|
@@ -198,10 +268,19 @@ export declare enum DocumentType {
|
|
|
198
268
|
project = "project",
|
|
199
269
|
template = "template"
|
|
200
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
273
|
+
*/
|
|
201
274
|
export interface DocumentProperties {
|
|
202
275
|
type: DocumentType;
|
|
203
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
279
|
+
*/
|
|
204
280
|
export type TemplateDocumentProperties = DocumentProperties;
|
|
281
|
+
/**
|
|
282
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
283
|
+
*/
|
|
205
284
|
export interface ProjectDocumentProperties extends DocumentProperties {
|
|
206
285
|
templateId: string;
|
|
207
286
|
}
|
|
@@ -6,12 +6,18 @@ export var DocumentIssueTypeEnum;
|
|
|
6
6
|
DocumentIssueTypeEnum["actionExecution"] = "actionExecution";
|
|
7
7
|
DocumentIssueTypeEnum["actionCircular"] = "actionCircular";
|
|
8
8
|
})(DocumentIssueTypeEnum || (DocumentIssueTypeEnum = {}));
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
11
|
+
*/
|
|
9
12
|
export var ImageFrameSourceType;
|
|
10
13
|
(function (ImageFrameSourceType) {
|
|
11
14
|
ImageFrameSourceType["url"] = "url";
|
|
12
15
|
ImageFrameSourceType["assetProvider"] = "assetProvider";
|
|
13
16
|
ImageFrameSourceType["variable"] = "variable";
|
|
14
17
|
})(ImageFrameSourceType || (ImageFrameSourceType = {}));
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated This is no longer kept up to date and will be removed in the future.
|
|
20
|
+
*/
|
|
15
21
|
export var FramePropertiesType;
|
|
16
22
|
(function (FramePropertiesType) {
|
|
17
23
|
FramePropertiesType["top"] = "top";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"DocumentTypes.js","sourceRoot":"","sources":["../../../../src/types/DocumentTypes.ts"],"names":[],"mappings":"AAaA,MAAM,CAAN,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,oDAA2B,CAAA;IAC3B,0DAAiC,CAAA;IACjC,4DAAmC,CAAA;IACnC,0DAAiC,CAAA;AACrC,CAAC,EANW,qBAAqB,KAArB,qBAAqB,QAMhC;AAgHD;;GAEG;AACH,MAAM,CAAN,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,mCAAW,CAAA;IACX,uDAA+B,CAAA;IAC/B,6CAAqB,CAAA;AACzB,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,QAI/B;AAkED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,kCAAW,CAAA;IACX,sCAAe,CAAA;AACnB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAyFD,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;AACzB,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EngineEditModeTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"EngineEditModeTypes.js","sourceRoot":"","sources":["../../../../src/types/EngineEditModeTypes.ts"],"names":[],"mappings":"AAOA,MAAM,CAAN,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC1B,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;IACrB,+CAAyB,CAAA;IACzB,2DAAqC,CAAA;IACrC,mDAA6B,CAAA;AACjC,CAAC,EANW,kBAAkB,KAAlB,kBAAkB,QAM7B"}
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export type FontConnectorCapabilities = {
|
|
3
|
-
query: boolean;
|
|
4
|
-
detail: boolean;
|
|
5
|
-
preview: boolean;
|
|
6
|
-
filtering: boolean;
|
|
7
|
-
};
|
|
1
|
+
export type { FontConnectorCapabilities, FontFamily, FontStyle } from '../../../connector-types/src';
|
|
8
2
|
export declare enum FontPreviewFormat {
|
|
9
3
|
Square = "square",
|
|
10
4
|
Line = "line"
|
|
11
5
|
}
|
|
12
|
-
export type FontFamily = {
|
|
13
|
-
id: Id;
|
|
14
|
-
name: string;
|
|
15
|
-
fontStylesCount: number;
|
|
16
|
-
extensions: string[];
|
|
17
|
-
};
|
|
18
|
-
export type FontStyle = {
|
|
19
|
-
id: Id;
|
|
20
|
-
name: string;
|
|
21
|
-
familyId: string;
|
|
22
|
-
familyName: string;
|
|
23
|
-
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontConnectorTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"FontConnectorTypes.js","sourceRoot":"","sources":["../../../../src/types/FontConnectorTypes.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,sCAAiB,CAAA;IACjB,kCAAa,CAAA;AACjB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontTypes.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"FontTypes.js","sourceRoot":"","sources":["../../../../src/types/FontTypes.ts"],"names":[],"mappings":""}
|