@chili-publish/studio-sdk 0.123.0 → 0.133.2

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.
Files changed (170) hide show
  1. package/README.md +1 -1
  2. package/_bundles/main.js +1 -1
  3. package/_bundles/main.js.map +1 -1
  4. package/_bundles/report.html +2 -2
  5. package/lib/editor-engine.json +1 -1
  6. package/lib/package.json +1 -1
  7. package/lib/src/controllers/ActionController.d.ts +33 -25
  8. package/lib/src/controllers/ActionController.js +42 -31
  9. package/lib/src/controllers/ActionController.js.map +1 -1
  10. package/lib/src/controllers/AnimationController.d.ts +24 -24
  11. package/lib/src/controllers/AnimationController.js +28 -28
  12. package/lib/src/controllers/AnimationController.js.map +1 -1
  13. package/lib/src/controllers/CanvasController.d.ts +3 -2
  14. package/lib/src/controllers/CanvasController.js +4 -3
  15. package/lib/src/controllers/CanvasController.js.map +1 -1
  16. package/lib/src/controllers/CharacterStyleController.d.ts +23 -23
  17. package/lib/src/controllers/CharacterStyleController.js +26 -26
  18. package/lib/src/controllers/CharacterStyleController.js.map +1 -1
  19. package/lib/src/controllers/ColorStyleController.d.ts +22 -22
  20. package/lib/src/controllers/ColorStyleController.js +27 -27
  21. package/lib/src/controllers/ColorStyleController.js.map +1 -1
  22. package/lib/src/controllers/ConfigurationController.d.ts +1 -1
  23. package/lib/src/controllers/ConfigurationController.js +1 -1
  24. package/lib/src/controllers/ConnectorController.d.ts +21 -12
  25. package/lib/src/controllers/ConnectorController.js +28 -19
  26. package/lib/src/controllers/ConnectorController.js.map +1 -1
  27. package/lib/src/controllers/DebugController.d.ts +2 -2
  28. package/lib/src/controllers/DebugController.js +2 -2
  29. package/lib/src/controllers/DebugController.js.map +1 -1
  30. package/lib/src/controllers/DocumentController.d.ts +6 -6
  31. package/lib/src/controllers/DocumentController.js +7 -7
  32. package/lib/src/controllers/DocumentController.js.map +1 -1
  33. package/lib/src/controllers/ExperimentController.d.ts +32 -7
  34. package/lib/src/controllers/ExperimentController.js +42 -9
  35. package/lib/src/controllers/ExperimentController.js.map +1 -1
  36. package/lib/src/controllers/FontConnectorController.d.ts +36 -28
  37. package/lib/src/controllers/FontConnectorController.js +45 -37
  38. package/lib/src/controllers/FontConnectorController.js.map +1 -1
  39. package/lib/src/controllers/FontController.d.ts +15 -15
  40. package/lib/src/controllers/FontController.js +18 -18
  41. package/lib/src/controllers/FontController.js.map +1 -1
  42. package/lib/src/controllers/FrameController.d.ts +127 -127
  43. package/lib/src/controllers/FrameController.js +173 -173
  44. package/lib/src/controllers/FrameController.js.map +1 -1
  45. package/lib/src/controllers/LayoutController.d.ts +37 -37
  46. package/lib/src/controllers/LayoutController.js +48 -48
  47. package/lib/src/controllers/LayoutController.js.map +1 -1
  48. package/lib/src/controllers/MediaConnectorController.d.ts +33 -23
  49. package/lib/src/controllers/MediaConnectorController.js +41 -31
  50. package/lib/src/controllers/MediaConnectorController.js.map +1 -1
  51. package/lib/src/controllers/PageController.d.ts +11 -11
  52. package/lib/src/controllers/PageController.js +16 -16
  53. package/lib/src/controllers/PageController.js.map +1 -1
  54. package/lib/src/controllers/ParagraphStyleController.d.ts +20 -20
  55. package/lib/src/controllers/ParagraphStyleController.js +23 -23
  56. package/lib/src/controllers/ParagraphStyleController.js.map +1 -1
  57. package/lib/src/controllers/ShapeController.d.ts +28 -28
  58. package/lib/src/controllers/ShapeController.js +43 -43
  59. package/lib/src/controllers/ShapeController.js.map +1 -1
  60. package/lib/src/controllers/SubscriberController.d.ts +18 -18
  61. package/lib/src/controllers/SubscriberController.js +24 -24
  62. package/lib/src/controllers/SubscriberController.js.map +1 -1
  63. package/lib/src/controllers/TextStyleController.d.ts +7 -7
  64. package/lib/src/controllers/TextStyleController.js +7 -7
  65. package/lib/src/controllers/TextStyleController.js.map +1 -1
  66. package/lib/src/controllers/ToolController.d.ts +10 -10
  67. package/lib/src/controllers/ToolController.js +9 -9
  68. package/lib/src/controllers/ToolController.js.map +1 -1
  69. package/lib/src/controllers/UtilsController.d.ts +10 -4
  70. package/lib/src/controllers/UtilsController.js +10 -4
  71. package/lib/src/controllers/UtilsController.js.map +1 -1
  72. package/lib/src/controllers/VariableController.d.ts +78 -34
  73. package/lib/src/controllers/VariableController.js +106 -53
  74. package/lib/src/controllers/VariableController.js.map +1 -1
  75. package/lib/src/index.d.ts +4 -3
  76. package/lib/src/index.js +5 -4
  77. package/lib/src/index.js.map +1 -1
  78. package/lib/src/interactions/connector.d.ts +4 -3
  79. package/lib/src/interactions/connector.js +7 -3
  80. package/lib/src/interactions/connector.js.map +1 -1
  81. package/lib/src/tests/__mocks__/FrameProperties.d.ts +2 -2
  82. package/lib/src/tests/__mocks__/FrameProperties.js +2 -2
  83. package/lib/src/tests/__mocks__/FrameProperties.js.map +1 -1
  84. package/lib/src/tests/__mocks__/MockImageFrameSource.js +5 -5
  85. package/lib/src/tests/__mocks__/MockImageFrameSource.js.map +1 -1
  86. package/lib/src/tests/__mocks__/animations.js +1 -1
  87. package/lib/src/tests/__mocks__/animations.js.map +1 -1
  88. package/lib/src/tests/__mocks__/mockDocument.d.ts +1 -1
  89. package/lib/src/tests/__mocks__/mockDocument.js +1 -1
  90. package/lib/src/tests/__mocks__/mockDocument.js.map +1 -1
  91. package/lib/src/tests/controllers/ActionController.test.js +18 -9
  92. package/lib/src/tests/controllers/ActionController.test.js.map +1 -1
  93. package/lib/src/tests/controllers/AnimationController.test.js +14 -14
  94. package/lib/src/tests/controllers/AnimationController.test.js.map +1 -1
  95. package/lib/src/tests/controllers/CharacterStyleController.test.js +11 -11
  96. package/lib/src/tests/controllers/CharacterStyleController.test.js.map +1 -1
  97. package/lib/src/tests/controllers/ColorStyleController.test.js +17 -17
  98. package/lib/src/tests/controllers/ColorStyleController.test.js.map +1 -1
  99. package/lib/src/tests/controllers/ConnectorController.test.js +6 -6
  100. package/lib/src/tests/controllers/ConnectorController.test.js.map +1 -1
  101. package/lib/src/tests/controllers/DebugController.test.js +1 -1
  102. package/lib/src/tests/controllers/DebugController.test.js.map +1 -1
  103. package/lib/src/tests/controllers/DocumentController.test.js +6 -6
  104. package/lib/src/tests/controllers/DocumentController.test.js.map +1 -1
  105. package/lib/src/tests/controllers/ExperimentController.test.js +29 -1
  106. package/lib/src/tests/controllers/ExperimentController.test.js.map +1 -1
  107. package/lib/src/tests/controllers/FontConnectorController.test.js +11 -11
  108. package/lib/src/tests/controllers/FontController.test.js +11 -11
  109. package/lib/src/tests/controllers/FontController.test.js.map +1 -1
  110. package/lib/src/tests/controllers/FrameController.test.js +113 -113
  111. package/lib/src/tests/controllers/FrameController.test.js.map +1 -1
  112. package/lib/src/tests/controllers/LayoutController.test.js +25 -27
  113. package/lib/src/tests/controllers/LayoutController.test.js.map +1 -1
  114. package/lib/src/tests/controllers/MediaConnectorController.test.js +1 -1
  115. package/lib/src/tests/controllers/PageController.test.js +11 -11
  116. package/lib/src/tests/controllers/PageController.test.js.map +1 -1
  117. package/lib/src/tests/controllers/ParagraphStyleController.test.js +12 -12
  118. package/lib/src/tests/controllers/ParagraphStyleController.test.js.map +1 -1
  119. package/lib/src/tests/controllers/ShapeController.test.js +26 -26
  120. package/lib/src/tests/controllers/ShapeController.test.js.map +1 -1
  121. package/lib/src/tests/controllers/SubscriberContoller.test.js +7 -7
  122. package/lib/src/tests/controllers/SubscriberContoller.test.js.map +1 -1
  123. package/lib/src/tests/controllers/TextStyleController.test.js +6 -6
  124. package/lib/src/tests/controllers/TextStyleController.test.js.map +1 -1
  125. package/lib/src/tests/controllers/ToolController.test.js +9 -9
  126. package/lib/src/tests/controllers/ToolController.test.js.map +1 -1
  127. package/lib/src/tests/controllers/UtilsController.test.js +20 -0
  128. package/lib/src/tests/controllers/UtilsController.test.js.map +1 -1
  129. package/lib/src/tests/controllers/VariableController.test.js +62 -31
  130. package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
  131. package/lib/src/tests/interactions/connector.test.js +14 -0
  132. package/lib/src/tests/interactions/connector.test.js.map +1 -1
  133. package/lib/src/tests/utils/getClaculatedValue.test.js +2 -2
  134. package/lib/src/tests/utils/getClaculatedValue.test.js.map +1 -1
  135. package/lib/src/types/ActionTypes.d.ts +3 -3
  136. package/lib/src/types/AnimationTypes.d.ts +3 -3
  137. package/lib/src/types/CharacterStyleTypes.d.ts +2 -1
  138. package/lib/src/types/ColorStyleTypes.d.ts +8 -7
  139. package/lib/src/types/ColorStyleTypes.js +1 -1
  140. package/lib/src/types/ColorStyleTypes.js.map +1 -1
  141. package/lib/src/types/CommonTypes.d.ts +7 -5
  142. package/lib/src/types/ConfigurationTypes.d.ts +3 -0
  143. package/lib/src/types/ConnectorTypes.d.ts +5 -4
  144. package/lib/src/types/ConnectorTypes.js.map +1 -1
  145. package/lib/src/types/DocumentTypes.d.ts +23 -25
  146. package/lib/src/types/DocumentTypes.js.map +1 -1
  147. package/lib/src/types/FontConnectorTypes.d.ts +2 -1
  148. package/lib/src/types/FontConnectorTypes.js.map +1 -1
  149. package/lib/src/types/FontTypes.d.ts +5 -4
  150. package/lib/src/types/FrameTypes.d.ts +20 -20
  151. package/lib/src/types/LayoutTypes.d.ts +14 -14
  152. package/lib/src/types/LayoutTypes.js.map +1 -1
  153. package/lib/src/types/MediaConnectorTypes.d.ts +2 -1
  154. package/lib/src/types/MediaConnectorTypes.js.map +1 -1
  155. package/lib/src/types/PageTypes.d.ts +3 -3
  156. package/lib/src/types/ParagraphStyleTypes.d.ts +6 -5
  157. package/lib/src/types/TextStyleTypes.d.ts +5 -5
  158. package/lib/src/types/TextStyleTypes.js +1 -1
  159. package/lib/src/types/TextStyleTypes.js.map +1 -1
  160. package/lib/src/types/TextTypes.d.ts +4 -0
  161. package/lib/src/types/TextTypes.js +6 -0
  162. package/lib/src/types/TextTypes.js.map +1 -0
  163. package/lib/src/types/VariableTypes.d.ts +12 -11
  164. package/lib/src/types/VariableTypes.js +3 -2
  165. package/lib/src/types/VariableTypes.js.map +1 -1
  166. package/lib/src/utils/enums.d.ts +8 -3
  167. package/lib/src/utils/enums.js +19 -13
  168. package/lib/src/utils/enums.js.map +1 -1
  169. package/lib/src/utils/getCalculatedValue.js +2 -2
  170. package/package.json +1 -1
@@ -19,337 +19,337 @@ export declare class FrameController {
19
19
  private shapeController;
20
20
  /**
21
21
  * This method returns the list of frames
22
- * @returns
22
+ * @returns list of all frames
23
23
  */
24
- getFrames: () => Promise<import("../types/CommonTypes").EditorResponse<FrameType[]>>;
24
+ getAll: () => Promise<import("../types/CommonTypes").EditorResponse<FrameType[]>>;
25
25
  /**
26
26
  * This method returns the list of selected frames
27
- * @returns
27
+ * @returns list of all selected frames
28
28
  */
29
- getSelectedFrames: () => Promise<import("../types/CommonTypes").EditorResponse<FrameType[]>>;
29
+ getSelected: () => Promise<import("../types/CommonTypes").EditorResponse<FrameType[]>>;
30
30
  /**
31
- * This method returns the list of frames by pageId
32
- * @param pageId The ID of a specific page
33
- * @returns
31
+ * This method returns the list of frames by id
32
+ * @param id the id of a specific page
33
+ * @returns list of all frames by id
34
34
  */
35
- getFramesByPageId: (pageId: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameType[]>>;
35
+ getAllByPageId: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameType[]>>;
36
36
  /**
37
37
  * This method returns a frame by its name
38
- * @param name The name of a specific frame
39
- * @returns
38
+ * @param name the name of a specific frame
39
+ * @returns frame properties
40
40
  */
41
- getFrameByName: (name: string) => Promise<import("../types/CommonTypes").EditorResponse<FrameType>>;
41
+ getByName: (name: string) => Promise<import("../types/CommonTypes").EditorResponse<FrameType>>;
42
42
  /**
43
43
  * This method returns a frame by its id
44
- * @param id The ID of a specific frame
45
- * @returns
44
+ * @param id the id of a specific frame
45
+ * @returns frame properties
46
46
  */
47
- getFrameById: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameType>>;
47
+ getById: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameType>>;
48
48
  /**
49
49
  * This method returns all frame properties on current layout
50
- * @returns
50
+ * @returns all frame properties on current layout
51
51
  */
52
- getFramePropertiesOnSelectedLayout: () => Promise<import("../types/CommonTypes").EditorResponse<FrameLayoutType[]>>;
52
+ getPropertiesOnSelectedLayout: () => Promise<import("../types/CommonTypes").EditorResponse<FrameLayoutType[]>>;
53
53
  /**
54
- * This method returns frame properties for a given frame and layout
55
- * @param frameId The ID of a specific frame
56
- * @param layoutId The ID of a specific layout
57
- * @returns
54
+ * This method returns frame layout properties for a given frame and layout
55
+ * @param id the id of a specific frame
56
+ * @param layoutId the id of a specific layout
57
+ * @returns frame layout properties
58
58
  */
59
- getFramePropertiesByFrameId: (frameId: Id, layoutId?: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameLayoutType>>;
59
+ getLayoutProperties: (id: Id, layoutId?: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameLayoutType>>;
60
60
  /**
61
- * This method returns frame properties for a given layout
62
- * @param layoutId The ID of a specific layout
63
- * @returns
61
+ * This method returns a list of frame properties for a given layout
62
+ * @param id the id of a specific layout
63
+ * @returns list of frame layout properties
64
64
  */
65
- getFramesProperties: (layoutId: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameLayoutType[]>>;
65
+ getAllLayoutProperties: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameLayoutType[]>>;
66
66
  /**
67
67
  * This method will reset the frame size (width and height) to the frame's original value
68
- * @param frameId The ID of a specific frame
68
+ * @param id the id of a specific frame
69
69
  * @returns
70
70
  */
71
- resetFrameSize: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
71
+ resetSize: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
72
72
  /**
73
73
  * This method will select a specific frame
74
- * @param frameId The ID of a specific frame
74
+ * @param id the id of a specific frame
75
75
  * @returns
76
76
  */
77
- selectFrame: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
77
+ select: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
78
78
  /**
79
79
  * This method will select multipleFrames
80
- * @param frameIds An array of all IDs you want to select
80
+ * @param ids An array of all ids you want to select
81
81
  * @returns
82
82
  */
83
- selectMultipleFrames: (frameIds: Id[]) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
83
+ selectMultiple: (ids: Id[]) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
84
84
  /**
85
85
  * This method changes the order of frames in the z-index list.
86
- * @param orderIndex The index in the list to move to
87
- * @param frameIdsToMove An array of all IDs you want to move to the given index
86
+ * @param order the index in the list to move to
87
+ * @param ids An array of all IDs you want to move to the given index
88
88
  * @returns
89
89
  */
90
- reorderFrames: (orderIndex: number, frameIdsToMove: Id[]) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
90
+ reorderFrames: (order: number, ids: Id[]) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
91
91
  /**
92
92
  * This method will update the z-index of a frame.
93
- * @param frameId The ID of the frame you want to change the z-index of
94
- * @param method The z-index update method to perform
93
+ * @param id the id of the frame you want to change the z-index of
94
+ * @param method the z-index update method to perform
95
95
  * @returns
96
96
  */
97
- setFrameZIndex: (frameId: Id, method: UpdateZIndexMethod) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
97
+ setZIndex: (id: Id, method: UpdateZIndexMethod) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
98
98
  /**
99
99
  * This method will set the height of a specific frame
100
- * @param frameId The ID of a specific frame
101
- * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
100
+ * @param id the id of a specific frame
101
+ * @param height the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
102
102
  * @returns
103
103
  */
104
- setFrameHeight: (frameId: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
104
+ setHeight: (id: Id, height: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
105
105
  /**
106
106
  * This method will set the rotation angle of a specific frame
107
- * @param frameId The ID of a specific frame
108
- * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
107
+ * @param id the id of a specific frame
108
+ * @param rotation the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
109
109
  * @returns
110
110
  */
111
- setFrameRotation: (frameId: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
111
+ setRotation: (id: Id, rotation: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
112
112
  /**
113
113
  * This method will set the width of a specific frame
114
- * @param frameId The ID of a specific frame
115
- * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
114
+ * @param id the id of a specific frame
115
+ * @param width the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
116
116
  * @returns
117
117
  */
118
- setFrameWidth: (frameId: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
118
+ setWidth: (id: Id, width: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
119
119
  /**
120
120
  * This method will set the x value of a specific frame
121
- * @param frameId The ID of a specific frame
122
- * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
121
+ * @param id the id of a specific frame
122
+ * @param XValue the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
123
123
  * @returns
124
124
  */
125
- setFrameX: (frameId: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
125
+ setX: (id: Id, XValue: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
126
126
  /**
127
127
  * This method will set the y value of a specific frame
128
- * @param frameId The ID of a specific frame
129
- * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
128
+ * @param id the id of a specific frame
129
+ * @param YValue the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
130
130
  * @returns
131
131
  */
132
- setFrameY: (frameId: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
132
+ setY: (id: Id, YValue: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
133
133
  /**
134
134
  * This method will update the name of a specific frame
135
- * @param frameId The ID of a specific frame
136
- * @param frameName The new name that the frame should receive
135
+ * @param id the id of a specific frame
136
+ * @param name the new name that the frame should receive
137
137
  * @returns
138
138
  */
139
- setFrameName: (frameId: Id, frameName: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
139
+ rename: (id: Id, name: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
140
140
  /**
141
141
  * This method will reset properties of a specific frame to their original values
142
- * @param frameId The ID of the frame that needs to get reset
142
+ * @param id the id of the frame that needs to get reset
143
143
  * @returns
144
144
  */
145
- resetFrame: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
145
+ reset: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
146
146
  /**
147
147
  * This method will reset the x value of a specific frame to its original value
148
- * @param frameId The ID of the frame that needs to get reset
148
+ * @param id the id of the frame that needs to get reset
149
149
  * @returns
150
150
  */
151
- resetFrameX: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
151
+ resetX: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
152
152
  /**
153
153
  * This method will reset the y value of a specific frame to its original value
154
- * @param frameId The ID of the frame that needs to get reset
154
+ * @param id the id of the frame that needs to get reset
155
155
  * @returns
156
156
  */
157
- resetFrameY: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
157
+ resetY: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
158
158
  /**
159
159
  * This method will reset the rotation value of a specific frame to its original value
160
- * @param frameId The ID of the frame that needs to get reset
160
+ * @param id the id of the frame that needs to get reset
161
161
  * @returns
162
162
  */
163
- resetFrameRotation: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
163
+ resetRotation: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
164
164
  /**
165
165
  * This method will reset the width of a specific frame to its original value
166
- * @param frameId The ID of the frame that needs to get reset
166
+ * @param id the id of the frame that needs to get reset
167
167
  * @returns
168
168
  */
169
- resetFrameWidth: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
169
+ resetWidth: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
170
170
  /**
171
171
  * This method will reset the height of a specific frame to its original value
172
- * @param frameId The ID of the frame that needs to get reset
172
+ * @param id the id of the frame that needs to get reset
173
173
  * @returns
174
174
  */
175
- resetFrameHeight: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
175
+ resetHeight: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
176
176
  /**
177
177
  * This method will reset the fitMode property of a specific frame to its original value
178
- * @param frameId The ID of the frame that needs to get reset
178
+ * @param id the id of the frame that needs to get reset
179
179
  * @returns
180
180
  */
181
- resetImageFrameFitMode: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
181
+ resetImageFrameFitMode: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
182
182
  /**
183
183
  * This method will set the visibility property of a specified frame. If set to false the frame will be invisible and vice versa.
184
- * @param frameId The ID of the frame that needs to get updated
184
+ * @param id the id of the frame that needs to get updated
185
185
  * @param value True means the frame gets visible, false means the frame gets invisible
186
186
  * @returns
187
187
  */
188
- setFrameVisibility: (frameId: Id, value: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
188
+ setVisibility: (id: Id, value: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
189
189
  /**
190
190
  * This method will remove a specific frame using the Id.
191
- * @param frameId The ID of the frame that needs to be deleted
191
+ * @param id the id of the frame that needs to be deleted
192
192
  * @returns
193
193
  */
194
- removeFrame: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
194
+ remove: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
195
195
  /**
196
- * This method will add a new frame of 'frameType' to the template positioned on the requested
196
+ * This method will create a new frame of 'type' to the template positioned on the requested
197
197
  * coordinates.
198
- * @param frameType The type of frame to create
198
+ * @param type the type of frame to create
199
199
  * @param x X coordinate of the new frame within the template
200
200
  * @param y Y coordinate of the new frame within the template
201
201
  * @param width Width of the new frame within the template
202
202
  * @param height Height of the new frame within the template
203
- * @returns The newly created frame's ID
203
+ * @returns the newly created frame's id
204
204
  */
205
- addFrame: (frameType: FrameTypeEnum, x: number, y: number, width: number, height: number) => Promise<import("../types/CommonTypes").EditorResponse<string>>;
205
+ create: (type: FrameTypeEnum, x: number, y: number, width: number, height: number) => Promise<import("../types/CommonTypes").EditorResponse<string>>;
206
206
  /**
207
- * This method will add a new frame of 'shapeType' type to the template positioned on the requested
207
+ * This method will create a new frame of 'type' type to the template positioned on the requested
208
208
  * coordinates.
209
- * @param shapeType The type of frame to create
209
+ * @param type the type of frame to create
210
210
  * @param x X coordinate of the new frame within the template
211
211
  * @param y Y coordinate of the new frame within the template
212
212
  * @param width Width of the new frame within the template
213
213
  * @param height Height of the new frame within the template
214
- * @returns The newly created frame's ID
214
+ * @returns the newly created shape frame's id
215
215
  */
216
- addShapeFrame: (shapeType: ShapeType, x: number, y: number, width: number, height: number) => Promise<import("../types/CommonTypes").EditorResponse<string>>;
216
+ createShapeFrame: (type: ShapeType, x: number, y: number, width: number, height: number) => Promise<import("../types/CommonTypes").EditorResponse<string>>;
217
217
  /**
218
218
  * This method sets or removes the image source to the ImageFrame
219
- * @param imageFrameId The ID of the imageFrame where an image needs to be assigned to
220
- * @param src A new image source
219
+ * @param imageFrameId the id of the imageFrame where an image needs to be assigned to
220
+ * @param newImageSource A new image source
221
221
  * @returns
222
222
  */
223
223
  private updateImageSource;
224
224
  /**
225
225
  * This method removes the image source from the ImageFrame
226
- * @param imageFrameId The ID of the imageFrame where an image needs to be removed from
226
+ * @param imageFrameId the id of the imageFrame where an image needs to be removed from
227
227
  */
228
228
  removeImageSource: (imageFrameId: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
229
229
  /**
230
230
  * This method will assign an image from a mediaConnector to the correct ImageFrame
231
- * @param imageFrameId The ID of the imageFrame where an image needs to be assigned to
232
- * @param connectorId Unique Id of the media connector
233
- * @param resourceId Unique Id of the asset that you want to assign to the imageFrame
231
+ * @param id Unique Id of the media connector
232
+ * @param imageFrameId the id of the imageFrame where an image needs to be assigned to
233
+ * @param assetId Unique id of the asset that you want to assign to the imageFrame
234
234
  * @returns
235
235
  */
236
- setImageFromConnector: (imageFrameId: Id, connectorId: string, resourceId: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
236
+ setImageFromConnector: (imageFrameId: Id, connectorId: Id, assetId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
237
237
  /**
238
238
  * This method will assign an image from url to the correct ImageFrame
239
239
  * Make sure the url can be accessed by the editor.
240
- * @param imageFrameId The ID of the imageFrame where an image needs to be assigned to
240
+ * @param imageFrameId the id of the imageFrame where an image needs to be assigned to
241
241
  * @param url A valid image uri
242
242
  * @returns
243
243
  */
244
244
  setImageFromUrl: (imageFrameId: Id, url: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
245
245
  /**
246
246
  * This method will set the fitMode property of a specified image frame.
247
- * @param imageFrameId The ID of the imageFrame that needs to get updated.
248
- * @param fitMode The new fitMode that you want to set to the imageFrame.
247
+ * @param imageFrameId the id of the imageFrame that needs to get updated.
248
+ * @param fitMode the new fitMode that you want to set to the imageFrame.
249
249
  * @returns
250
250
  */
251
251
  setImageFrameFitMode: (imageFrameId: Id, fitMode: FitMode) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
252
252
  /**
253
253
  * This method will set the constrainProportions property of a specified frame.
254
- * @param frameId The ID of the frame that needs to get updated.
254
+ * @param id the id of the frame that needs to get updated.
255
255
  * @param constrainProportions The new constraint that you want to set to the frame.
256
256
  * @returns
257
257
  */
258
- setFrameConstrainProportions: (frameId: Id, constrainProportions: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
258
+ setFrameConstrainProportions: (id: Id, constrainProportions: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
259
259
  /**
260
260
  * This method will set the vertical alignment property of a specified frame.
261
- * @param frameId The ID of the frame that needs to get updated
262
- * @param verticalAlign The new vertical alignment to be set to the frame.
261
+ * @param id the id of the frame that needs to get updated
262
+ * @param verticalAlign the new vertical alignment to be set to the frame.
263
263
  * @returns
264
264
  */
265
- setVerticalAlignment: (frameId: Id, verticalAlign: VerticalAlign) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
265
+ setVerticalAlign: (id: Id, verticalAlign: VerticalAlign) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
266
266
  /**
267
267
  * This method will set the min copyFitting property of a specified frame.
268
- * @param frameId The ID of the frame that needs to get updated
269
- * @param value The new min copyFitting value to be set to the frame.
268
+ * @param id the id of the frame that needs to get updated
269
+ * @param value the new min copyFitting value to be set to the frame.
270
270
  * @returns
271
271
  */
272
- setMinCopyfitting: (frameId: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
272
+ setMinCopyfitting: (id: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
273
273
  /**
274
274
  * This method will set the max copyFitting property of a specified frame.
275
- * @param frameId The ID of the frame that needs to get updated
276
- * @param value The new max copyFitting value to be set to the frame.
275
+ * @param id the id of the frame that needs to get updated
276
+ * @param value the new max copyFitting value to be set to the frame.
277
277
  * @returns
278
278
  */
279
- setMaxCopyfitting: (frameId: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
279
+ setMaxCopyfitting: (id: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
280
280
  /**
281
281
  * This method will enable copyFitting on a specified frame.
282
- * @param frameId The ID of the frame that needs to get updated
283
- * @param value The new value to be set to the frame.
282
+ * @param id the id of the frame that needs to get updated
283
+ * @param value the new value to be set to the frame.
284
284
  * @returns
285
285
  */
286
- setEnableCopyfitting: (frameId: Id, value: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
286
+ setEnableCopyfitting: (id: Id, value: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
287
287
  /**
288
288
  * This method will reset the frame minCopyfitting to the frame's original value
289
- * @param frameId The ID of a specific frame
289
+ * @param id the id of a specific frame
290
290
  * @returns
291
291
  */
292
- resetMinCopyfitting: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
292
+ resetMinCopyfitting: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
293
293
  /**
294
294
  * This method will reset the frame maxCopyfitting to the frame's original value
295
- * @param frameId The ID of a specific frame
295
+ * @param id the id of a specific frame
296
296
  * @returns
297
297
  */
298
- resetMaxCopyfitting: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
298
+ resetMaxCopyfitting: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
299
299
  /**
300
300
  * This method will reset the frame enableCopyfitting to the frame's original value
301
- * @param frameId The ID of a specific frame
301
+ * @param id the id of a specific frame
302
302
  * @returns
303
303
  */
304
- resetEnableCopyfitting: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
304
+ resetEnableCopyfitting: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
305
305
  /**
306
306
  * This method will set the visibility of the shape fill.
307
- * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
307
+ * @param shapeFrameId the id of the shapeFrame that needs to get updated.
308
308
  * @param enableFill Whether the shape fill is visible.
309
309
  * @returns
310
310
  */
311
311
  setShapeFrameEnableFill: (shapeFrameId: Id, enableFill: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
312
312
  /**
313
313
  * This method will set the shape fill color of a specified shape frame.
314
- * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
315
- * @param fillColor The new shape fill color that you want to set to the shapeFrame.
314
+ * @param shapeFrameId the id of the shapeFrame that needs to get updated.
315
+ * @param fillColor the new shape fill color that you want to set to the shapeFrame.
316
316
  * @returns
317
317
  */
318
318
  setShapeFrameFillColor: (shapeFrameId: Id, fillColor: ColorUsage) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
319
319
  /**
320
320
  * This method will set the visibility of the shape stroke.
321
- * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
321
+ * @param shapeFrameId the id of the shapeFrame that needs to get updated.
322
322
  * @param enableStroke Whether the shape stroke is visible.
323
323
  * @returns
324
324
  */
325
325
  setShapeFrameEnableStroke: (shapeFrameId: Id, enableStroke: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
326
326
  /**
327
327
  * This method will set the shape stroke color of a specified shape frame.
328
- * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
329
- * @param strokeColor The new shape stroke color that you want to set to the shapeFrame.
328
+ * @param shapeFrameId the id of the shapeFrame that needs to get updated.
329
+ * @param strokeColor the new shape stroke color that you want to set to the shapeFrame.
330
330
  * @returns
331
331
  */
332
332
  setShapeFrameStrokeColor: (shapeFrameId: Id, strokeColor: ColorUsage) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
333
333
  /**
334
334
  * This method will set the shape stroke weight of a specified shape frame.
335
- * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
336
- * @param strokeWeight The new shape stroke weight that you want to set to the shapeFrame.
335
+ * @param shapeFrameId the id of the shapeFrame that needs to get updated.
336
+ * @param strokeWeight the new shape stroke weight that you want to set to the shapeFrame.
337
337
  * @returns
338
338
  */
339
339
  setShapeFrameStrokeWeight: (shapeFrameId: Id, strokeWeight: number) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
340
340
  /**
341
341
  * This method will set the blend mode of a specified shape frame
342
- * @param frameId The ID of a specific frame
343
- * @param blendMode The blend mode
342
+ * @param id the id of a specific frame
343
+ * @param blendMode the blend mode
344
344
  * @returns
345
345
  */
346
- setFrameBlendMode: (frameId: Id, blendMode: BlendMode) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
346
+ setBlendMode: (id: Id, blendMode: BlendMode) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
347
347
  /**
348
348
  * This method will make the specified image frame go into cropping mode.
349
- * @param frameId The ID of a specific image frame
349
+ * @param id the id of a specific image frame
350
350
  * @returns
351
351
  */
352
- enterCropMode: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
352
+ enterCropMode: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
353
353
  /**
354
354
  * This method will exit cropping mode while saving the applied crop.
355
355
  * @returns
@@ -357,13 +357,13 @@ export declare class FrameController {
357
357
  applyCropMode: () => Promise<import("../types/CommonTypes").EditorResponse<null>>;
358
358
  /**
359
359
  * This method will reset the currently applied crop mode and apply the last selected fit mode again.
360
- * @param frameId The ID of a specific image frame
360
+ * @param id the id of a specific image frame
361
361
  * @returns
362
362
  */
363
- resetCropMode: (frameId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
363
+ resetCropMode: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
364
364
  /**
365
365
  * This method will exit cropping mode without saving the applied crop.
366
366
  * @returns
367
367
  */
368
- cancelCropMode: () => Promise<import("../types/CommonTypes").EditorResponse<null>>;
368
+ exitCropMode: () => Promise<import("../types/CommonTypes").EditorResponse<null>>;
369
369
  }