@chili-publish/studio-sdk 1.33.0 → 1.34.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.
@@ -6,6 +6,18 @@ export declare enum WellKnownConfigurationKeys {
6
6
  GraFxStudioAuthToken = "GRAFX_AUTH_TOKEN",
7
7
  QueryCallCacheEnabled = "ENABLE_QUERY_CALL_CACHE"
8
8
  }
9
+ export declare enum FrameEditingMode {
10
+ /**
11
+ * Default (Designer) mode
12
+ * No constraints
13
+ */
14
+ full = 0,
15
+ /**
16
+ * End user mode
17
+ * Limits the existing tools to the given constraints
18
+ */
19
+ followConstraints = 1
20
+ }
9
21
  export type StudioStyling = {
10
22
  uiBackgroundColorHex?: string;
11
23
  };
@@ -15,6 +27,11 @@ export type StudioStyling = {
15
27
  export type StudioOptionsDeltaUpdate = {
16
28
  /** Options for the different studio engine shortcuts */
17
29
  shortcutOptions?: ShortcutOptionsDeltaUpdate;
30
+ /**
31
+ * Determines which editing mode should be allowed
32
+ * @defaultValue `FrameEditingMode.full`
33
+ */
34
+ frameEditingMode?: FrameEditingMode;
18
35
  };
19
36
  /**
20
37
  * Shortcut Options that can be updated.
@@ -7,6 +7,19 @@ export var WellKnownConfigurationKeys;
7
7
  WellKnownConfigurationKeys["GraFxStudioAuthToken"] = "GRAFX_AUTH_TOKEN";
8
8
  WellKnownConfigurationKeys["QueryCallCacheEnabled"] = "ENABLE_QUERY_CALL_CACHE";
9
9
  })(WellKnownConfigurationKeys || (WellKnownConfigurationKeys = {}));
10
+ export var FrameEditingMode;
11
+ (function (FrameEditingMode) {
12
+ /**
13
+ * Default (Designer) mode
14
+ * No constraints
15
+ */
16
+ FrameEditingMode[FrameEditingMode["full"] = 0] = "full";
17
+ /**
18
+ * End user mode
19
+ * Limits the existing tools to the given constraints
20
+ */
21
+ FrameEditingMode[FrameEditingMode["followConstraints"] = 1] = "followConstraints";
22
+ })(FrameEditingMode || (FrameEditingMode = {}));
10
23
  /**
11
24
  * Default studio options with all shortcuts disabled.
12
25
  */
@@ -24,5 +37,6 @@ export const defaultStudioOptions = {
24
37
  copyPaste: { enabled: false },
25
38
  viewMode: { enabled: false },
26
39
  },
40
+ frameEditingMode: FrameEditingMode.full,
27
41
  };
28
42
  //# sourceMappingURL=ConfigurationTypes.js.map
@@ -1 +1 @@
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
+ {"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;AAED,MAAM,CAAN,IAAY,gBAYX;AAZD,WAAY,gBAAgB;IACxB;;;OAGG;IACH,uDAAI,CAAA;IAEJ;;;OAGG;IACH,iFAAiB,CAAA;AACrB,CAAC,EAZW,gBAAgB,KAAhB,gBAAgB,QAY3B;AAiED;;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;IACD,gBAAgB,EAAE,gBAAgB,CAAC,IAAI;CAC1C,CAAC"}
@@ -354,3 +354,35 @@ export declare enum CropType {
354
354
  frameCrop = "frameCrop",
355
355
  assetCrop = "assetCrop"
356
356
  }
357
+ export type FrameConstraints = {
358
+ selectable: PropertyState<boolean>;
359
+ horizontal: PropertyState<{
360
+ allowed: boolean;
361
+ }>;
362
+ vertical: PropertyState<{
363
+ allowed: boolean;
364
+ }>;
365
+ rotation: PropertyState<{
366
+ allowed: boolean;
367
+ }>;
368
+ resize: PropertyState<{
369
+ allowed: boolean;
370
+ }>;
371
+ };
372
+ export interface FrameConstraintsDeltaUpdate {
373
+ selectable?: {
374
+ value: boolean | null;
375
+ };
376
+ horizontalMovementAllowed?: {
377
+ value: boolean | null;
378
+ };
379
+ verticalMovementAllowed?: {
380
+ value: boolean | null;
381
+ };
382
+ rotationAllowed?: {
383
+ value: boolean | null;
384
+ };
385
+ resizeAllowed?: {
386
+ value: boolean | null;
387
+ };
388
+ }
@@ -127,6 +127,30 @@ export type ParagraphStyleUpdate = {
127
127
  bulletListCharacterStyleId?: {
128
128
  value?: string;
129
129
  };
130
+ /**
131
+ * @experimental This property is experimental and may be changed in the future.
132
+ */
133
+ numericListNumberingStyle?: {
134
+ value: NumericListNumberingStyle[];
135
+ };
136
+ /**
137
+ * @experimental This property is experimental and may be changed in the future.
138
+ */
139
+ numericListLeftIndent?: {
140
+ value: string;
141
+ };
142
+ /**
143
+ * @experimental This property is experimental and may be changed in the future.
144
+ */
145
+ numericListTextIndent?: {
146
+ value: string;
147
+ };
148
+ /**
149
+ * @experimental This property is experimental and may be changed in the future.
150
+ */
151
+ numericListCharacterStyleId?: {
152
+ value?: string;
153
+ };
130
154
  };
131
155
  export type BulletListStyle = {
132
156
  /**
@@ -142,5 +166,24 @@ export type BulletListStyle = {
142
166
  export type NumericListStyle = {
143
167
  leftIndent: number;
144
168
  textIndent: number;
169
+ numberingStyle: NumericListNumberingStyle[];
145
170
  characterStyleId?: string;
146
171
  };
172
+ export type NumericListNumberingStyle = {
173
+ format: NumberListFormat;
174
+ symbol: NumberListSeparatorSymbol;
175
+ };
176
+ export declare enum NumberListFormat {
177
+ arabic = "arabic",
178
+ romanUpperCase = "romanUpperCase",
179
+ romanLowerCase = "romanLowerCase",
180
+ latinUpperCase = "latinUpperCase",
181
+ latinLowerCase = "latinLowerCase"
182
+ }
183
+ export declare enum NumberListSeparatorSymbol {
184
+ none = "none",
185
+ dash = "dash",
186
+ dot = "dot",
187
+ colon = "colon",
188
+ roundBracket = "roundBracket"
189
+ }
@@ -1,2 +1,17 @@
1
- export {};
1
+ export var NumberListFormat;
2
+ (function (NumberListFormat) {
3
+ NumberListFormat["arabic"] = "arabic";
4
+ NumberListFormat["romanUpperCase"] = "romanUpperCase";
5
+ NumberListFormat["romanLowerCase"] = "romanLowerCase";
6
+ NumberListFormat["latinUpperCase"] = "latinUpperCase";
7
+ NumberListFormat["latinLowerCase"] = "latinLowerCase";
8
+ })(NumberListFormat || (NumberListFormat = {}));
9
+ export var NumberListSeparatorSymbol;
10
+ (function (NumberListSeparatorSymbol) {
11
+ NumberListSeparatorSymbol["none"] = "none";
12
+ NumberListSeparatorSymbol["dash"] = "dash";
13
+ NumberListSeparatorSymbol["dot"] = "dot";
14
+ NumberListSeparatorSymbol["colon"] = "colon";
15
+ NumberListSeparatorSymbol["roundBracket"] = "roundBracket";
16
+ })(NumberListSeparatorSymbol || (NumberListSeparatorSymbol = {}));
2
17
  //# sourceMappingURL=ParagraphStyleTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ParagraphStyleTypes.js","sourceRoot":"","sources":["../../../../src/types/ParagraphStyleTypes.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"ParagraphStyleTypes.js","sourceRoot":"","sources":["../../../../src/types/ParagraphStyleTypes.ts"],"names":[],"mappings":"AAuLA,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,qDAAiC,CAAA;IACjC,qDAAiC,CAAA;IACjC,qDAAiC,CAAA;IACjC,qDAAiC,CAAA;AACrC,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAED,MAAM,CAAN,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACjC,0CAAa,CAAA;IACb,0CAAa,CAAA;IACb,wCAAW,CAAA;IACX,4CAAe,CAAA;IACf,0DAA6B,CAAA;AACjC,CAAC,EANW,yBAAyB,KAAzB,yBAAyB,QAMpC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chili-publish/studio-sdk",
3
3
  "private": false,
4
- "version": "1.33.0",
4
+ "version": "1.34.0",
5
5
  "description": "The sdk for the chili editor",
6
6
  "repository": {
7
7
  "type": "git",