@chili-publish/studio-sdk 1.20.1 → 1.22.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.js +1 -1
- package/_bundles/main.js.map +1 -1
- package/_bundles/report.html +2 -2
- package/lib/editor-engine.json +1 -1
- package/lib/package.json +6 -6
- package/lib/src/controllers/BarcodeController.js.map +1 -1
- package/lib/src/controllers/CanvasController.d.ts +2 -2
- package/lib/src/controllers/CanvasController.js +6 -3
- package/lib/src/controllers/CanvasController.js.map +1 -1
- package/lib/src/controllers/ClipboardController.js.map +1 -1
- package/lib/src/controllers/ColorStyleController.js.map +1 -1
- package/lib/src/controllers/ConnectorController.js +1 -1
- package/lib/src/controllers/ConnectorController.js.map +1 -1
- package/lib/src/controllers/DataConnectorController.js +2 -2
- package/lib/src/controllers/DataConnectorController.js.map +1 -1
- package/lib/src/controllers/DocumentController.js +1 -1
- package/lib/src/controllers/DocumentController.js.map +1 -1
- package/lib/src/controllers/FontConnectorController.js +4 -4
- package/lib/src/controllers/FontConnectorController.js.map +1 -1
- package/lib/src/controllers/FrameController.d.ts +5 -0
- package/lib/src/controllers/FrameController.js +8 -0
- package/lib/src/controllers/FrameController.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.js +3 -3
- package/lib/src/controllers/MediaConnectorController.js.map +1 -1
- package/lib/src/controllers/PageController.d.ts +5 -5
- package/lib/src/controllers/PageController.js +12 -6
- package/lib/src/controllers/PageController.js.map +1 -1
- package/lib/src/controllers/SubscriberController.d.ts +5 -0
- package/lib/src/controllers/SubscriberController.js +21 -1
- package/lib/src/controllers/SubscriberController.js.map +1 -1
- package/lib/src/controllers/TextStyleController.js.map +1 -1
- package/lib/src/controllers/UndoManagerController.js.map +1 -1
- package/lib/src/controllers/VariableController.d.ts +2 -2
- package/lib/src/controllers/VariableController.js.map +1 -1
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/interactions/Connector.d.ts +1 -0
- package/lib/src/interactions/Connector.js +1 -0
- package/lib/src/interactions/Connector.js.map +1 -1
- package/lib/src/next/NextInitiator.d.ts +4 -0
- package/lib/src/next/NextInitiator.js +4 -0
- package/lib/src/next/NextInitiator.js.map +1 -1
- package/lib/src/next/controllers/CanvasController.d.ts +23 -0
- package/lib/src/next/controllers/CanvasController.js +54 -0
- package/lib/src/next/controllers/CanvasController.js.map +1 -0
- package/lib/src/next/controllers/PageController.d.ts +26 -0
- package/lib/src/next/controllers/PageController.js +65 -0
- package/lib/src/next/controllers/PageController.js.map +1 -0
- package/lib/src/next/controllers/SubscriberController.d.ts +6 -0
- package/lib/src/next/controllers/SubscriberController.js +8 -0
- package/lib/src/next/controllers/SubscriberController.js.map +1 -1
- package/lib/src/next/index.d.ts +1 -0
- package/lib/src/next/tests/controllers/CanvasController.test.d.ts +1 -0
- package/lib/src/next/tests/controllers/CanvasController.test.js +37 -0
- package/lib/src/next/tests/controllers/CanvasController.test.js.map +1 -0
- package/lib/src/next/tests/controllers/PageController.test.d.ts +1 -0
- package/lib/src/next/tests/controllers/PageController.test.js +37 -0
- package/lib/src/next/tests/controllers/PageController.test.js.map +1 -0
- package/lib/src/next/tests/controllers/SubscriberContoller.test.js +11 -3
- package/lib/src/next/tests/controllers/SubscriberContoller.test.js.map +1 -1
- package/lib/src/next/types/ConnectorTypes.d.ts +1 -1
- package/lib/src/next/types/NextSubscribers.d.ts +1 -0
- package/lib/src/next/types/PageTypes.d.ts +4 -0
- package/lib/src/next/types/PageTypes.js +2 -0
- package/lib/src/next/types/PageTypes.js.map +1 -0
- package/lib/src/sdk.js +10 -1
- package/lib/src/sdk.js.map +1 -1
- package/lib/src/tests/__mocks__/Config.d.ts +0 -1
- package/lib/src/tests/__mocks__/Config.js +1 -0
- package/lib/src/tests/__mocks__/Config.js.map +1 -1
- package/lib/src/tests/controllers/CanvasController.test.js +3 -3
- package/lib/src/tests/controllers/CanvasController.test.js.map +1 -1
- package/lib/src/tests/controllers/ConnectorController.test.js +2 -2
- package/lib/src/tests/controllers/FrameController.test.js +6 -0
- package/lib/src/tests/controllers/FrameController.test.js.map +1 -1
- package/lib/src/tests/controllers/PageController.test.js +12 -4
- package/lib/src/tests/controllers/PageController.test.js.map +1 -1
- package/lib/src/tests/controllers/ShapeController.test.js +8 -8
- package/lib/src/tests/controllers/SubscriberContoller.test.js +12 -0
- package/lib/src/tests/controllers/SubscriberContoller.test.js.map +1 -1
- package/lib/src/tests/interactions/Connector.test.js.map +1 -1
- package/lib/src/tests/utils/EditorResponseData.test.js +1 -1
- package/lib/src/tests/utils/EditorResponseData.test.js.map +1 -1
- package/lib/src/tests/utils/Logging.test.js.map +1 -1
- package/lib/src/types/ActionTypes.d.ts +2 -2
- package/lib/src/types/AnimationTypes.d.ts +9 -9
- package/lib/src/types/BarcodeTypes.d.ts +3 -3
- package/lib/src/types/CharacterStyleTypes.d.ts +2 -2
- package/lib/src/types/ColorStyleTypes.d.ts +14 -14
- package/lib/src/types/CommonTypes.d.ts +48 -15
- package/lib/src/types/CommonTypes.js +22 -0
- package/lib/src/types/CommonTypes.js.map +1 -1
- package/lib/src/types/ConfigurationTypes.d.ts +4 -4
- package/lib/src/types/ConnectorTypes.d.ts +9 -9
- package/lib/src/types/ConnectorTypes.js.map +1 -1
- package/lib/src/types/DataConnectorTypes.d.ts +8 -8
- package/lib/src/types/DebugTypes.d.ts +3 -3
- package/lib/src/types/DocumentTypes.d.ts +14 -14
- package/lib/src/types/EngineEditModeTypes.d.ts +1 -1
- package/lib/src/types/FontConnectorTypes.d.ts +3 -3
- package/lib/src/types/FontTypes.d.ts +4 -4
- package/lib/src/types/FrameTypes.d.ts +31 -31
- package/lib/src/types/LayoutTypes.d.ts +12 -10
- package/lib/src/types/LayoutTypes.js.map +1 -1
- package/lib/src/types/MediaConnectorTypes.d.ts +2 -2
- package/lib/src/types/PageTypes.d.ts +6 -5
- package/lib/src/types/ParagraphStyleTypes.d.ts +2 -2
- package/lib/src/types/TextStyleTypes.d.ts +2 -2
- package/lib/src/types/VariableTypes.d.ts +5 -5
- package/lib/src/types/ViewportTypes.d.ts +1 -1
- package/lib/src/utils/ConfigHelper.js +28 -27
- package/lib/src/utils/ConfigHelper.js.map +1 -1
- package/lib/src/utils/ConnectorCompatibilityTools.js.map +1 -1
- package/lib/src/utils/DataItemMappingTools.d.ts +2 -2
- 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/LocalConfigurationDecorator.js.map +1 -1
- package/package.json +6 -6
|
@@ -12,33 +12,33 @@ export declare enum ColorType {
|
|
|
12
12
|
spotCMYK = "spotCMYK",
|
|
13
13
|
spotRGB = "spotRGB"
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type RGBColor = {
|
|
16
16
|
r: number;
|
|
17
17
|
g: number;
|
|
18
18
|
b: number;
|
|
19
19
|
type: ColorType;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type CMYKColor = {
|
|
22
22
|
c: number;
|
|
23
23
|
m: number;
|
|
24
24
|
y: number;
|
|
25
25
|
k: number;
|
|
26
26
|
type: ColorType;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type HSLColor = {
|
|
29
29
|
h: number;
|
|
30
30
|
s: number;
|
|
31
31
|
l: number;
|
|
32
32
|
type: ColorType;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type GrayColor = {
|
|
35
35
|
g: number;
|
|
36
36
|
type: ColorType;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
39
|
* @deprecated Use SpotColorCMYK or SpotColorRGB instead
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
41
|
+
export type SpotColor = {
|
|
42
42
|
spotName: string;
|
|
43
43
|
c: number;
|
|
44
44
|
m: number;
|
|
@@ -46,7 +46,7 @@ export declare type SpotColor = {
|
|
|
46
46
|
k: number;
|
|
47
47
|
type: ColorType;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export type SpotColorCMYK = {
|
|
50
50
|
spotName: string;
|
|
51
51
|
c: number;
|
|
52
52
|
m: number;
|
|
@@ -54,30 +54,30 @@ export declare type SpotColorCMYK = {
|
|
|
54
54
|
k: number;
|
|
55
55
|
type: ColorType;
|
|
56
56
|
};
|
|
57
|
-
export
|
|
57
|
+
export type SpotColorRGB = {
|
|
58
58
|
spotName: string;
|
|
59
59
|
r: number;
|
|
60
60
|
g: number;
|
|
61
61
|
b: number;
|
|
62
62
|
type: ColorType;
|
|
63
63
|
};
|
|
64
|
-
export
|
|
64
|
+
export type SpotColorHEX = {
|
|
65
65
|
spotName: string;
|
|
66
66
|
value: string;
|
|
67
67
|
type: ColorType;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type HexColor = {
|
|
70
70
|
value: string;
|
|
71
71
|
type: ColorType;
|
|
72
72
|
};
|
|
73
|
-
export
|
|
74
|
-
export
|
|
75
|
-
export
|
|
73
|
+
export type Color = RGBColor | CMYKColor | HSLColor | GrayColor | SpotColor | HexColor | SpotColorCMYK | SpotColorRGB | SpotColorHEX;
|
|
74
|
+
export type ColorUpdate = Color;
|
|
75
|
+
export type DocumentColor = {
|
|
76
76
|
id: string;
|
|
77
77
|
name: string;
|
|
78
78
|
color: Color;
|
|
79
79
|
};
|
|
80
|
-
export
|
|
80
|
+
export type ColorUsageUpdate = {
|
|
81
81
|
/**
|
|
82
82
|
* Reference to the stylekit color, can only be used if it is a stylekit color.
|
|
83
83
|
*/
|
|
@@ -96,7 +96,7 @@ export declare type ColorUsageUpdate = {
|
|
|
96
96
|
*/
|
|
97
97
|
isApplied?: boolean;
|
|
98
98
|
};
|
|
99
|
-
export
|
|
99
|
+
export type ColorUsage = {
|
|
100
100
|
/**
|
|
101
101
|
* Reference to the stylekit color, can only be used if it is a stylekit color.
|
|
102
102
|
*/
|
|
@@ -19,8 +19,8 @@ import { SelectedTextStyle } from './TextStyleTypes';
|
|
|
19
19
|
import { Variable } from './VariableTypes';
|
|
20
20
|
import { Viewport } from './ViewportTypes';
|
|
21
21
|
import { EngineEditMode } from './EngineEditModeTypes';
|
|
22
|
-
export
|
|
23
|
-
export
|
|
22
|
+
export type Id = string;
|
|
23
|
+
export type BaseConfigType = {
|
|
24
24
|
editorLink?: string;
|
|
25
25
|
editorId?: string;
|
|
26
26
|
chiliEnvironmentUrl?: string;
|
|
@@ -35,7 +35,7 @@ export declare type BaseConfigType = {
|
|
|
35
35
|
logger?: LoggerFunction;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type LoggerFunction = (logLevel: LogLevel, category: LogCategory, message: string) => void;
|
|
39
39
|
export declare enum LogLevel {
|
|
40
40
|
info = "info",
|
|
41
41
|
warn = "warn",
|
|
@@ -60,8 +60,8 @@ export declare enum CallbackErrorBehavior {
|
|
|
60
60
|
*/
|
|
61
61
|
log = "log"
|
|
62
62
|
}
|
|
63
|
-
export
|
|
64
|
-
export
|
|
63
|
+
export type MaybePromise<T> = T | Promise<T>;
|
|
64
|
+
export type ManagedCallbacksConfigType = {
|
|
65
65
|
handlers: {
|
|
66
66
|
onAuthExpired: EngineCallbackHandler<(authRefreshRequest: AuthRefreshRequest) => Promise<AuthCredentials | null>>;
|
|
67
67
|
onViewportRequested: EngineCallbackHandler<() => Viewport | null>;
|
|
@@ -71,6 +71,7 @@ export declare type ManagedCallbacksConfigType = {
|
|
|
71
71
|
onStateChanged: EngineEvent<() => MaybePromise<void>>;
|
|
72
72
|
onDocumentLoaded: EngineEvent<() => MaybePromise<void>>;
|
|
73
73
|
onSelectedFramesLayoutChanged: EngineEvent<(states: FrameLayoutType[]) => MaybePromise<void>>;
|
|
74
|
+
onFramesLayoutChanged: EngineEvent<(states: FrameLayoutType[]) => MaybePromise<void>>;
|
|
74
75
|
onSelectedFramesContentChanged: EngineEvent<(state: Frame[]) => MaybePromise<void>>;
|
|
75
76
|
onPageSelectionChanged: EngineEvent<(id: Id) => MaybePromise<void>>;
|
|
76
77
|
onSelectedLayoutPropertiesChanged: EngineEvent<(state: LayoutPropertiesType) => MaybePromise<void>>;
|
|
@@ -106,7 +107,7 @@ export declare type ManagedCallbacksConfigType = {
|
|
|
106
107
|
onEngineEditModeChanged: EngineEvent<(engineEditMode: EngineEditMode) => MaybePromise<void>>;
|
|
107
108
|
};
|
|
108
109
|
};
|
|
109
|
-
export
|
|
110
|
+
export type InitialCallbacksConfigType = {
|
|
110
111
|
/**
|
|
111
112
|
* @deprecated use `events.onActionsChanged` instead
|
|
112
113
|
*/
|
|
@@ -136,6 +137,10 @@ export declare type InitialCallbacksConfigType = {
|
|
|
136
137
|
* @deprecated use `events.onSelectedFramesLayoutChanged` instead
|
|
137
138
|
*/
|
|
138
139
|
onSelectedFramesLayoutChanged?: (states: FrameLayoutType[]) => void;
|
|
140
|
+
/**
|
|
141
|
+
* @deprecated use `events.onFramesLayoutChanged` instead
|
|
142
|
+
*/
|
|
143
|
+
onFramesLayoutChanged?: (states: FrameLayoutType[]) => void;
|
|
139
144
|
/**
|
|
140
145
|
* @deprecated use `onSelectedFramesContentChanged` instead
|
|
141
146
|
*/
|
|
@@ -276,9 +281,9 @@ export declare type InitialCallbacksConfigType = {
|
|
|
276
281
|
*/
|
|
277
282
|
onEngineEditModeChanged?: (engineEditMode: EngineEditMode) => void;
|
|
278
283
|
};
|
|
279
|
-
export
|
|
280
|
-
export
|
|
281
|
-
export
|
|
284
|
+
export type ConfigType = InitialCallbacksConfigType & BaseConfigType;
|
|
285
|
+
export type RuntimeConfigType = ConfigType & ManagedCallbacksConfigType;
|
|
286
|
+
export type EditorResponseError = string;
|
|
282
287
|
export interface EditorResponse<T> {
|
|
283
288
|
success: boolean;
|
|
284
289
|
status: number;
|
|
@@ -292,14 +297,14 @@ export interface EditorRawAPI extends CallSender {
|
|
|
292
297
|
export interface EditorAPI extends CallSender {
|
|
293
298
|
[index: string]: <T>(...args: unknown[]) => Promise<EditorResponse<T>>;
|
|
294
299
|
}
|
|
295
|
-
export
|
|
300
|
+
export type PageType = {
|
|
296
301
|
id: Id;
|
|
297
302
|
number: number;
|
|
298
303
|
width: number | null;
|
|
299
304
|
height: number | null;
|
|
300
305
|
frames: FrameType[];
|
|
301
306
|
};
|
|
302
|
-
export
|
|
307
|
+
export type InitialStateType = {
|
|
303
308
|
layouts: LayoutWithFrameProperties[];
|
|
304
309
|
selectedLayoutId: Id;
|
|
305
310
|
pages: PageType[];
|
|
@@ -310,6 +315,10 @@ export interface PropertyState<T> {
|
|
|
310
315
|
isOverride: boolean;
|
|
311
316
|
isReadOnly: boolean;
|
|
312
317
|
}
|
|
318
|
+
export interface HasOverrideState {
|
|
319
|
+
isOverride: boolean;
|
|
320
|
+
isReadOnly: boolean;
|
|
321
|
+
}
|
|
313
322
|
export interface SelectedLayoutFrame {
|
|
314
323
|
id: Id;
|
|
315
324
|
name: string;
|
|
@@ -331,19 +340,43 @@ export interface ConnectorConfigValue {
|
|
|
331
340
|
readonly displayName: string;
|
|
332
341
|
readonly type: ConnectorConfigValueType;
|
|
333
342
|
}
|
|
334
|
-
export
|
|
343
|
+
export type ConnectorConfigOptions = ConnectorConfigValue[];
|
|
335
344
|
export interface ActionEventErrorData {
|
|
336
345
|
event: ActionEditorEvent;
|
|
337
346
|
actionIds: Id[];
|
|
338
347
|
}
|
|
339
348
|
interface AsyncErrorBase {
|
|
349
|
+
type: AsyncErrorType;
|
|
340
350
|
message: string;
|
|
341
351
|
}
|
|
342
|
-
export
|
|
352
|
+
export declare class ActionAsyncError implements AsyncErrorBase {
|
|
353
|
+
type: AsyncErrorType;
|
|
343
354
|
id?: string;
|
|
344
355
|
event?: ActionEditorEvent;
|
|
345
356
|
eventChain?: ActionEventErrorData[];
|
|
357
|
+
message: string;
|
|
358
|
+
constructor(message: string, id?: string, event?: ActionEditorEvent, eventChain?: ActionEventErrorData[]);
|
|
359
|
+
}
|
|
360
|
+
export declare class DataRowAsyncError implements AsyncErrorBase {
|
|
361
|
+
type: AsyncErrorType;
|
|
362
|
+
count: number;
|
|
363
|
+
exceptions: EditorExceptionDto[];
|
|
364
|
+
message: string;
|
|
365
|
+
constructor(count: number, message: string, exceptions: EditorExceptionDto[]);
|
|
366
|
+
}
|
|
367
|
+
export declare enum AsyncErrorType {
|
|
368
|
+
action = "action",
|
|
369
|
+
dataRow = "dataRow"
|
|
370
|
+
}
|
|
371
|
+
export interface ExceptionContext {
|
|
372
|
+
variableId?: Id;
|
|
373
|
+
}
|
|
374
|
+
export interface EditorExceptionDto {
|
|
375
|
+
type: string;
|
|
376
|
+
code: number;
|
|
377
|
+
message: string;
|
|
378
|
+
context?: ExceptionContext;
|
|
346
379
|
}
|
|
347
|
-
export
|
|
348
|
-
export
|
|
380
|
+
export type AsyncError = ActionAsyncError | DataRowAsyncError;
|
|
381
|
+
export type PrivateData = Record<string, string>;
|
|
349
382
|
export {};
|
|
@@ -30,4 +30,26 @@ export var ConnectorConfigValueType;
|
|
|
30
30
|
ConnectorConfigValueType["text"] = "text";
|
|
31
31
|
ConnectorConfigValueType["boolean"] = "boolean";
|
|
32
32
|
})(ConnectorConfigValueType || (ConnectorConfigValueType = {}));
|
|
33
|
+
export class ActionAsyncError {
|
|
34
|
+
constructor(message, id, event, eventChain) {
|
|
35
|
+
this.type = AsyncErrorType.action;
|
|
36
|
+
this.message = message;
|
|
37
|
+
this.id = id;
|
|
38
|
+
this.event = event;
|
|
39
|
+
this.eventChain = eventChain;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export class DataRowAsyncError {
|
|
43
|
+
constructor(count, message, exceptions) {
|
|
44
|
+
this.type = AsyncErrorType.dataRow;
|
|
45
|
+
this.count = count;
|
|
46
|
+
this.message = message;
|
|
47
|
+
this.exceptions = exceptions;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export var AsyncErrorType;
|
|
51
|
+
(function (AsyncErrorType) {
|
|
52
|
+
AsyncErrorType["action"] = "action";
|
|
53
|
+
AsyncErrorType["dataRow"] = "dataRow";
|
|
54
|
+
})(AsyncErrorType || (AsyncErrorType = {}));
|
|
33
55
|
//# sourceMappingURL=CommonTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonTypes.js","sourceRoot":"","sources":["../../../src/types/CommonTypes.ts"],"names":[],"mappings":"AAyCA,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;
|
|
1
|
+
{"version":3,"file":"CommonTypes.js","sourceRoot":"","sources":["../../../src/types/CommonTypes.ts"],"names":[],"mappings":"AAyCA,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;A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yling = {
|
|
9
9
|
uiBackgroundColorHex?: string;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Studio Options that can be updated.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type StudioOptionsDeltaUpdate = {
|
|
15
15
|
/** Options for the different studio engine shortcuts */
|
|
16
16
|
shortcutOptions?: ShortcutOptionsDeltaUpdate;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* Shortcut Options that can be updated.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export type ShortcutOptionsDeltaUpdate = {
|
|
22
22
|
/** The debug panel shortcut. */
|
|
23
23
|
debugPanel?: ShortcutOption;
|
|
24
24
|
/** The ellipse shape shortcut. */
|
|
@@ -45,7 +45,7 @@ export declare type ShortcutOptionsDeltaUpdate = {
|
|
|
45
45
|
/**
|
|
46
46
|
* Specific shortcut options
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export type ShortcutOption = {
|
|
49
49
|
/** Whether the shortcut is enabled. */
|
|
50
50
|
enabled: boolean;
|
|
51
51
|
};
|
|
@@ -25,7 +25,7 @@ export declare enum SortOrder {
|
|
|
25
25
|
ascending = "asc",
|
|
26
26
|
descending = "desc"
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export type QueryOptions = {
|
|
29
29
|
filter?: string[] | null;
|
|
30
30
|
collection?: string | null;
|
|
31
31
|
pageToken?: string | null;
|
|
@@ -56,8 +56,8 @@ export interface ConnectorGrafxRegistration extends ConnectorRegistrationBase {
|
|
|
56
56
|
export interface ConnectorLocalRegistration extends ConnectorRegistrationBase {
|
|
57
57
|
source: ConnectorRegistrationSource.local;
|
|
58
58
|
}
|
|
59
|
-
export
|
|
60
|
-
export
|
|
59
|
+
export type ConnectorRegistration = ConnectorUrlRegistration | ConnectorGrafxRegistration | ConnectorLocalRegistration;
|
|
60
|
+
export type ConnectorInstance = {
|
|
61
61
|
id: Id;
|
|
62
62
|
name: string;
|
|
63
63
|
iconUrl: string;
|
|
@@ -88,7 +88,7 @@ export interface ConnectorToEngineMapping {
|
|
|
88
88
|
value: string;
|
|
89
89
|
direction: ConnectorMappingDirection.connectorToEngine;
|
|
90
90
|
}
|
|
91
|
-
export
|
|
91
|
+
export type ConnectorMappingType = EngineToConnectorMapping | ConnectorToEngineMapping;
|
|
92
92
|
export declare class ConnectorMapping implements EngineToConnectorMapping, ConnectorToEngineMapping {
|
|
93
93
|
name: string;
|
|
94
94
|
value: any;
|
|
@@ -97,15 +97,15 @@ export declare class ConnectorMapping implements EngineToConnectorMapping, Conne
|
|
|
97
97
|
constructor(contextProperty: string, mapFrom: ConnectorMappingSource, sourceValue: string | boolean, direction?: ConnectorMappingDirection.engineToConnector);
|
|
98
98
|
constructor(contextProperty: string, mapFrom: ConnectorMappingSource, sourceValue: string | boolean);
|
|
99
99
|
}
|
|
100
|
-
export
|
|
100
|
+
export type ConnectorState = {
|
|
101
101
|
id: Id;
|
|
102
102
|
type: ConnectorStateType;
|
|
103
103
|
};
|
|
104
|
-
export
|
|
104
|
+
export type ConnectorEvent = {
|
|
105
105
|
id: Id;
|
|
106
106
|
type: ConnectorEventType;
|
|
107
107
|
};
|
|
108
|
-
export
|
|
108
|
+
export type QueryPage<T> = {
|
|
109
109
|
pageSize: number;
|
|
110
110
|
nextPageToken?: string;
|
|
111
111
|
data: T[];
|
|
@@ -203,7 +203,7 @@ export declare enum AuthCredentialsTypeEnum {
|
|
|
203
203
|
grafxToken = "grafxToken",
|
|
204
204
|
refreshed = "refreshed"
|
|
205
205
|
}
|
|
206
|
-
export
|
|
206
|
+
export type AuthCredentials = GrafxTokenAuthCredentials | RefreshedAuthCredendentials;
|
|
207
207
|
export declare enum AuthRefreshTypeEnum {
|
|
208
208
|
grafxToken = "grafxToken",
|
|
209
209
|
any = "any"
|
|
@@ -218,7 +218,7 @@ export declare enum AuthRefreshTypeEnum {
|
|
|
218
218
|
* Example: "Static, 1234", "OAuthClientCredentials, 5678"
|
|
219
219
|
* If the http request did not go through the proxy, headerValue is null.
|
|
220
220
|
*/
|
|
221
|
-
export
|
|
221
|
+
export type AuthRefreshRequest = {
|
|
222
222
|
connectorId: Id;
|
|
223
223
|
remoteConnectorId: Id;
|
|
224
224
|
type: AuthRefreshTypeEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorTypes.js","sourceRoot":"","sources":["../../../src/types/ConnectorTypes.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,6DAAQ,CAAA;IACR,yEAAc,CAAA;AAClB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAED,MAAM,CAAN,IAAY,oCAGX;AAHD,WAAY,oCAAoC;IAC5C,sEAA8B,CAAA;IAC9B,wEAAgC,CAAA;AACpC,CAAC,EAHW,oCAAoC,KAApC,oCAAoC,QAG/C;AAED,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,0BAAa,CAAA;IACb,sCAAyB,CAAA;AAC7B,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,8BAAa,CAAA;AACjB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,CAAN,IAAY,MAIX;AAJD,WAAY,MAAM;IACd,uBAAa,CAAA;IACb,+BAAqB,CAAA;IACrB,mBAAS,CAAA;AACb,CAAC,EAJW,MAAM,KAAN,MAAM,QAIjB;AAED,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;AACvB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAgDD,MAAM,CAAN,IAAY,2BAgBX;AAhBD,WAAY,2BAA2B;IACnC;;OAEG;IACH,0CAAW,CAAA;IAEX;;OAEG;IACH,8CAAe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4
4
|
model: boolean;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type PageConfig = {
|
|
7
7
|
filters?: DataFilter[] | null;
|
|
8
8
|
sorting?: DataSorting[] | null;
|
|
9
9
|
continuationToken?: string | null;
|
|
10
10
|
limit: number;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type DataSorting = {
|
|
13
13
|
property: string;
|
|
14
14
|
direction: 'asc' | 'desc';
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type DataFilter = {
|
|
17
17
|
property: string;
|
|
18
18
|
value: string;
|
|
19
19
|
type: 'contains' | 'exact';
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type DataPage<Item> = {
|
|
22
22
|
data: Item[];
|
|
23
23
|
continuationToken?: string | null;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type DataItem = {
|
|
26
26
|
[key: string]: string | number | boolean | Date | null;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type DataModel = {
|
|
29
29
|
properties: DataModelProperty[];
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
type DataModelProperty = {
|
|
32
32
|
name: string;
|
|
33
33
|
type: 'number' | 'boolean' | 'singleLine' | 'multiLine' | 'date';
|
|
34
34
|
};
|
|
@@ -3,17 +3,17 @@ declare enum CallStatus {
|
|
|
3
3
|
success = "success",
|
|
4
4
|
error = "error"
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type DebugVar = {
|
|
7
7
|
name: string;
|
|
8
8
|
type: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type ApiResponse = {
|
|
11
11
|
status: number;
|
|
12
12
|
error: string;
|
|
13
13
|
data: string;
|
|
14
14
|
type: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type DebugData = {
|
|
17
17
|
title: string;
|
|
18
18
|
vars: DebugVar[];
|
|
19
19
|
response: ApiResponse;
|
|
@@ -8,7 +8,7 @@ import { Variable } from './VariableTypes';
|
|
|
8
8
|
import { CharacterStyle } from './CharacterStyleTypes';
|
|
9
9
|
import { DocumentAction } from './ActionTypes';
|
|
10
10
|
import { ShapeProperties } from './ShapeTypes';
|
|
11
|
-
export
|
|
11
|
+
export type DocumentError = {
|
|
12
12
|
error: Record<string, unknown>;
|
|
13
13
|
code: number;
|
|
14
14
|
};
|
|
@@ -19,35 +19,35 @@ export declare enum DocumentIssueTypeEnum {
|
|
|
19
19
|
actionExecution = "actionExecution",
|
|
20
20
|
actionCircular = "actionCircular"
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type OverflowDocumentIssue = {
|
|
23
23
|
frameId: Id;
|
|
24
24
|
type: DocumentIssueTypeEnum.overflow;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type FontLoadingDocumentIssue = {
|
|
27
27
|
fontId: string;
|
|
28
28
|
name: string;
|
|
29
29
|
type: DocumentIssueTypeEnum.fontLoading;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type ActionExecutionDocumentIssue = {
|
|
32
32
|
actionId: string;
|
|
33
33
|
type: DocumentIssueTypeEnum.actionExecution;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type ActionRegisterDocumentIssue = {
|
|
36
36
|
actionId: string;
|
|
37
37
|
type: DocumentIssueTypeEnum.actionRegister;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type ActionCircularDocumentIssue = {
|
|
40
40
|
eventChain: ActionEventErrorData[];
|
|
41
41
|
type: DocumentIssueTypeEnum.actionCircular;
|
|
42
42
|
};
|
|
43
|
-
export
|
|
44
|
-
export
|
|
43
|
+
export type DocumentIssue = OverflowDocumentIssue | FontLoadingDocumentIssue | ActionExecutionDocumentIssue | ActionRegisterDocumentIssue | ActionCircularDocumentIssue;
|
|
44
|
+
export type UndoState = {
|
|
45
45
|
canUndo: boolean;
|
|
46
46
|
canRedo: boolean;
|
|
47
47
|
undoItemName: OperationName;
|
|
48
48
|
redoItemName: OperationName;
|
|
49
49
|
};
|
|
50
|
-
export
|
|
50
|
+
export type OperationName = {
|
|
51
51
|
translationKey: number;
|
|
52
52
|
name: string;
|
|
53
53
|
};
|
|
@@ -155,7 +155,7 @@ export interface FrameProperty {
|
|
|
155
155
|
isVisible?: boolean;
|
|
156
156
|
type: FramePropertiesType;
|
|
157
157
|
}
|
|
158
|
-
export
|
|
158
|
+
export type ChildFrameProperty = FrameProperty;
|
|
159
159
|
export interface TopFrameProperty extends FrameProperty {
|
|
160
160
|
x: number;
|
|
161
161
|
y: number;
|
|
@@ -183,8 +183,8 @@ export interface DocumentStylekit {
|
|
|
183
183
|
characterStyles: DocumentCharacterStyle[];
|
|
184
184
|
paragraphStyles: DocumentParagraphStyle[];
|
|
185
185
|
}
|
|
186
|
-
export
|
|
187
|
-
export
|
|
186
|
+
export type DocumentCharacterStyle = CharacterStyle;
|
|
187
|
+
export type DocumentParagraphStyle = ParagraphStyle;
|
|
188
188
|
export interface DocumentVariable extends Variable {
|
|
189
189
|
parentId: Id;
|
|
190
190
|
name: string;
|
|
@@ -201,10 +201,10 @@ export declare enum DocumentType {
|
|
|
201
201
|
export interface DocumentProperties {
|
|
202
202
|
type: DocumentType;
|
|
203
203
|
}
|
|
204
|
-
export
|
|
204
|
+
export type TemplateDocumentProperties = DocumentProperties;
|
|
205
205
|
export interface ProjectDocumentProperties extends DocumentProperties {
|
|
206
206
|
templateId: string;
|
|
207
207
|
}
|
|
208
|
-
export
|
|
208
|
+
export type DocumentLoadOptions = {
|
|
209
209
|
keepConnectors: boolean;
|
|
210
210
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Id } from './CommonTypes';
|
|
2
|
-
export
|
|
2
|
+
export type FontConnectorCapabilities = {
|
|
3
3
|
query: boolean;
|
|
4
4
|
detail: boolean;
|
|
5
5
|
preview: boolean;
|
|
@@ -9,13 +9,13 @@ export declare enum FontPreviewFormat {
|
|
|
9
9
|
Square = "square",
|
|
10
10
|
Line = "line"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type FontFamily = {
|
|
13
13
|
id: Id;
|
|
14
14
|
name: string;
|
|
15
15
|
fontStylesCount: number;
|
|
16
16
|
extensions: string[];
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type FontStyle = {
|
|
19
19
|
id: Id;
|
|
20
20
|
name: string;
|
|
21
21
|
familyId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Id } from './CommonTypes';
|
|
2
|
-
export
|
|
2
|
+
export type DocumentFontStyle = {
|
|
3
3
|
id: Id;
|
|
4
4
|
fontStyleId: string;
|
|
5
5
|
fontFamilyId: string;
|
|
@@ -7,19 +7,19 @@ export declare type DocumentFontStyle = {
|
|
|
7
7
|
name: string;
|
|
8
8
|
isDefault: boolean;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type DocumentFontFamily = {
|
|
11
11
|
id: Id;
|
|
12
12
|
name: string;
|
|
13
13
|
connectorId: Id;
|
|
14
14
|
fontFamilyId: string;
|
|
15
15
|
fontStyles: DocumentFontStyle[];
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type AddDocumentFontStyle = {
|
|
18
18
|
name: string;
|
|
19
19
|
fontStyleId: Id;
|
|
20
20
|
fontFamilyId: Id;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type AddDocumentFontFamily = {
|
|
23
23
|
name: string;
|
|
24
24
|
fontFamilyId: Id;
|
|
25
25
|
};
|