@makeswift/runtime 0.26.0 → 0.26.1-canary.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.
Files changed (126) hide show
  1. package/dist/cjs/api-handler/handlers/manifest.js +1 -1
  2. package/dist/cjs/builder/index.js +22 -18
  3. package/dist/cjs/builder/index.js.map +1 -1
  4. package/dist/cjs/builder/serialization/control-serialization.js +7 -3
  5. package/dist/cjs/builder/serialization/control-serialization.js.map +1 -1
  6. package/dist/cjs/controls/rich-text-v2/rich-text-v2.js +0 -21
  7. package/dist/cjs/controls/rich-text-v2/rich-text-v2.js.map +1 -1
  8. package/dist/cjs/controls/visitors/message-port-serializer/client-message-port-serialization-visitor.js +72 -0
  9. package/dist/cjs/controls/visitors/message-port-serializer/client-message-port-serialization-visitor.js.map +1 -0
  10. package/dist/cjs/controls/visitors/message-port-serializer/function-serialization.js +79 -0
  11. package/dist/cjs/controls/visitors/message-port-serializer/function-serialization.js.map +1 -0
  12. package/dist/cjs/controls/visitors/message-port-serializer/index.js +36 -0
  13. package/dist/cjs/controls/visitors/message-port-serializer/index.js.map +1 -0
  14. package/dist/cjs/next/hooks/use-router-locale-sync.js +2 -2
  15. package/dist/cjs/next/hooks/use-router-locale-sync.js.map +1 -1
  16. package/dist/cjs/runtimes/react/components/ElementRegistration.js +4 -3
  17. package/dist/cjs/runtimes/react/components/ElementRegistration.js.map +1 -1
  18. package/dist/cjs/runtimes/react/components/hooks/use-builder-connection-ping.js +5 -10
  19. package/dist/cjs/runtimes/react/components/hooks/use-builder-connection-ping.js.map +1 -1
  20. package/dist/cjs/runtimes/react/hooks/use-cache-data.js +2 -2
  21. package/dist/cjs/runtimes/react/hooks/use-cache-data.js.map +1 -1
  22. package/dist/cjs/runtimes/react/hooks/use-register-document.js +5 -4
  23. package/dist/cjs/runtimes/react/hooks/use-register-document.js.map +1 -1
  24. package/dist/cjs/runtimes/react/react-runtime-core.js +4 -3
  25. package/dist/cjs/runtimes/react/react-runtime-core.js.map +1 -1
  26. package/dist/cjs/state/actions/index.js +42 -0
  27. package/dist/cjs/state/actions/index.js.map +1 -0
  28. package/dist/cjs/state/actions/internal.js +174 -0
  29. package/dist/cjs/state/actions/internal.js.map +1 -0
  30. package/dist/cjs/state/builder-api.js +150 -0
  31. package/dist/cjs/state/builder-api.js.map +1 -0
  32. package/dist/cjs/state/host-api.js +103 -0
  33. package/dist/cjs/state/host-api.js.map +1 -0
  34. package/dist/cjs/state/makeswift-api-client.js +4 -2
  35. package/dist/cjs/state/makeswift-api-client.js.map +1 -1
  36. package/dist/cjs/state/react-builder-preview.js +21 -18
  37. package/dist/cjs/state/react-builder-preview.js.map +1 -1
  38. package/dist/cjs/state/react-page.js +5 -4
  39. package/dist/cjs/state/react-page.js.map +1 -1
  40. package/dist/cjs/state/shared-api.js +117 -0
  41. package/dist/cjs/state/shared-api.js.map +1 -0
  42. package/dist/esm/api-handler/handlers/manifest.js +1 -1
  43. package/dist/esm/builder/index.js +13 -9
  44. package/dist/esm/builder/index.js.map +1 -1
  45. package/dist/esm/builder/serialization/control-serialization.js +10 -3
  46. package/dist/esm/builder/serialization/control-serialization.js.map +1 -1
  47. package/dist/esm/controls/rich-text-v2/rich-text-v2.js +0 -22
  48. package/dist/esm/controls/rich-text-v2/rich-text-v2.js.map +1 -1
  49. package/dist/esm/controls/visitors/message-port-serializer/client-message-port-serialization-visitor.js +53 -0
  50. package/dist/esm/controls/visitors/message-port-serializer/client-message-port-serialization-visitor.js.map +1 -0
  51. package/dist/esm/controls/visitors/message-port-serializer/function-serialization.js +52 -0
  52. package/dist/esm/controls/visitors/message-port-serializer/function-serialization.js.map +1 -0
  53. package/dist/esm/controls/visitors/message-port-serializer/index.js +13 -0
  54. package/dist/esm/controls/visitors/message-port-serializer/index.js.map +1 -0
  55. package/dist/esm/next/hooks/use-router-locale-sync.js +1 -1
  56. package/dist/esm/next/hooks/use-router-locale-sync.js.map +1 -1
  57. package/dist/esm/runtimes/react/components/ElementRegistration.js +2 -1
  58. package/dist/esm/runtimes/react/components/ElementRegistration.js.map +1 -1
  59. package/dist/esm/runtimes/react/components/hooks/use-builder-connection-ping.js +5 -10
  60. package/dist/esm/runtimes/react/components/hooks/use-builder-connection-ping.js.map +1 -1
  61. package/dist/esm/runtimes/react/hooks/use-cache-data.js +1 -1
  62. package/dist/esm/runtimes/react/hooks/use-cache-data.js.map +1 -1
  63. package/dist/esm/runtimes/react/hooks/use-register-document.js +2 -5
  64. package/dist/esm/runtimes/react/hooks/use-register-document.js.map +1 -1
  65. package/dist/esm/runtimes/react/react-runtime-core.js +2 -1
  66. package/dist/esm/runtimes/react/react-runtime-core.js.map +1 -1
  67. package/dist/esm/state/actions/index.js +17 -0
  68. package/dist/esm/state/actions/index.js.map +1 -0
  69. package/dist/esm/state/actions/internal.js +135 -0
  70. package/dist/esm/state/actions/internal.js.map +1 -0
  71. package/dist/esm/state/builder-api.js +110 -0
  72. package/dist/esm/state/builder-api.js.map +1 -0
  73. package/dist/esm/state/host-api.js +68 -0
  74. package/dist/esm/state/host-api.js.map +1 -0
  75. package/dist/esm/state/makeswift-api-client.js +3 -1
  76. package/dist/esm/state/makeswift-api-client.js.map +1 -1
  77. package/dist/esm/state/react-builder-preview.js +10 -8
  78. package/dist/esm/state/react-builder-preview.js.map +1 -1
  79. package/dist/esm/state/react-page.js +3 -7
  80. package/dist/esm/state/react-page.js.map +1 -1
  81. package/dist/esm/state/shared-api.js +83 -0
  82. package/dist/esm/state/shared-api.js.map +1 -0
  83. package/dist/types/builder/index.d.ts +3 -2
  84. package/dist/types/builder/index.d.ts.map +1 -1
  85. package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -1
  86. package/dist/types/client/index.d.ts +16 -16
  87. package/dist/types/controls/rich-text-v2/rich-text-v2.d.ts +1 -2
  88. package/dist/types/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -1
  89. package/dist/types/controls/visitors/message-port-serializer/client-message-port-serialization-visitor.d.ts +9 -0
  90. package/dist/types/controls/visitors/message-port-serializer/client-message-port-serialization-visitor.d.ts.map +1 -0
  91. package/dist/types/controls/visitors/message-port-serializer/function-serialization.d.ts +16 -0
  92. package/dist/types/controls/visitors/message-port-serializer/function-serialization.d.ts.map +1 -0
  93. package/dist/types/controls/visitors/message-port-serializer/function-serialization.test.d.ts +2 -0
  94. package/dist/types/controls/visitors/message-port-serializer/function-serialization.test.d.ts.map +1 -0
  95. package/dist/types/controls/visitors/message-port-serializer/index.d.ts +3 -0
  96. package/dist/types/controls/visitors/message-port-serializer/index.d.ts.map +1 -0
  97. package/dist/types/locale.d.ts +1 -1
  98. package/dist/types/runtimes/react/components/ElementRegistration.d.ts.map +1 -1
  99. package/dist/types/runtimes/react/components/hooks/use-builder-connection-ping.d.ts.map +1 -1
  100. package/dist/types/runtimes/react/hooks/use-register-document.d.ts.map +1 -1
  101. package/dist/types/runtimes/react/hooks/use-store.d.ts +1 -1
  102. package/dist/types/runtimes/react/react-runtime-core.d.ts.map +1 -1
  103. package/dist/types/slate/LinkPlugin/getValue.d.ts.map +1 -1
  104. package/dist/types/slate/LinkPlugin/index.d.ts.map +1 -1
  105. package/dist/types/slate/TypographyPlugin/getValue.d.ts.map +1 -1
  106. package/dist/types/slate/TypographyPlugin/index.d.ts.map +1 -1
  107. package/dist/types/state/actions/index.d.ts +58 -0
  108. package/dist/types/state/actions/index.d.ts.map +1 -0
  109. package/dist/types/state/actions/internal.d.ts +154 -0
  110. package/dist/types/state/actions/internal.d.ts.map +1 -0
  111. package/dist/types/state/builder-api.d.ts +163 -0
  112. package/dist/types/state/builder-api.d.ts.map +1 -0
  113. package/dist/types/state/host-api.d.ts +109 -0
  114. package/dist/types/state/host-api.d.ts.map +1 -0
  115. package/dist/types/state/makeswift-api-client.d.ts.map +1 -1
  116. package/dist/types/state/react-builder-preview.d.ts.map +1 -1
  117. package/dist/types/state/react-page.d.ts.map +1 -1
  118. package/dist/types/state/shared-api.d.ts +104 -0
  119. package/dist/types/state/shared-api.d.ts.map +1 -0
  120. package/package.json +3 -3
  121. package/dist/cjs/state/actions.js +0 -423
  122. package/dist/cjs/state/actions.js.map +0 -1
  123. package/dist/esm/state/actions.js +0 -349
  124. package/dist/esm/state/actions.js.map +0 -1
  125. package/dist/types/state/actions.d.ts +0 -461
  126. package/dist/types/state/actions.d.ts.map +0 -1
@@ -1,461 +0,0 @@
1
- import { type ThunkAction } from '@reduxjs/toolkit';
2
- import type { Operation } from 'ot-json0';
3
- import { ControlInstance } from '@makeswift/controls';
4
- import { type Element, type Document, EMBEDDED_DOCUMENT_TYPE } from './modules/read-only-documents';
5
- import type { DescriptorsByComponentType } from './modules/prop-controllers';
6
- import type { ComponentType } from './modules/react-components';
7
- import type { Measurable, BoxModel } from './modules/box-models';
8
- import { ComponentMeta } from './modules/components-meta';
9
- import { Descriptor as PropControllerDescriptor } from '../prop-controllers/descriptors';
10
- import type { Size } from './react-builder-preview';
11
- import type { PropControllersHandle } from './modules/prop-controller-handles';
12
- import type { PropControllerMessage } from '../prop-controllers/instances';
13
- import type { APIResource, APIResourceType, APIResourceLocale } from '../api/types';
14
- import type { SerializedControl } from '../builder';
15
- import { ElementImperativeHandle } from '../runtimes/react/element-imperative-handle';
16
- import { BuilderEditMode } from './modules/builder-edit-mode';
17
- import type { Point } from './modules/pointer';
18
- import { Breakpoints } from './modules/breakpoints';
19
- import { type SerializedState as APIClientCache } from './makeswift-api-client';
20
- import { LocaleString } from '../locale';
21
- export { type UnknownAction } from '@reduxjs/toolkit';
22
- export declare const ActionTypes: {
23
- readonly INIT: "INIT";
24
- readonly CLEAN_UP: "CLEAN_UP";
25
- readonly REGISTER_DOCUMENT: "REGISTER_DOCUMENT";
26
- readonly UNREGISTER_DOCUMENT: "UNREGISTER_DOCUMENT";
27
- readonly CHANGE_DOCUMENT: "CHANGE_DOCUMENT";
28
- readonly CREATE_ELEMENT_TREE: "CREATE_ELEMENT_TREE";
29
- readonly DELETE_ELEMENT_TREE: "DELETE_ELEMENT_TREE";
30
- readonly CHANGE_ELEMENT_TREE: "CHANGE_ELEMENT_TREE";
31
- readonly REGISTER_BUILDER_DOCUMENT: "REGISTER_BUILDER_DOCUMENT";
32
- readonly UNREGISTER_BUILDER_DOCUMENT: "UNREGISTER_BUILDER_DOCUMENT";
33
- readonly REGISTER_COMPONENT: "REGISTER_COMPONENT";
34
- readonly UNREGISTER_COMPONENT: "UNREGISTER_COMPONENT";
35
- readonly REGISTER_BUILDER_COMPONENT: "REGISTER_BUILDER_COMPONENT";
36
- readonly UNREGISTER_BUILDER_COMPONENT: "UNREGISTER_BUILDER_COMPONENT";
37
- readonly REGISTER_REACT_COMPONENT: "REGISTER_REACT_COMPONENT";
38
- readonly UNREGISTER_REACT_COMPONENT: "UNREGISTER_REACT_COMPONENT";
39
- readonly MOUNT_COMPONENT: "MOUNT_COMPONENT";
40
- readonly UNMOUNT_COMPONENT: "UNMOUNT_COMPONENT";
41
- readonly REGISTER_COMPONENT_HANDLE: "REGISTER_COMPONENT_HANDLE";
42
- readonly UNREGISTER_COMPONENT_HANDLE: "UNREGISTER_COMPONENT_HANDLE";
43
- readonly REGISTER_MEASURABLE: "REGISTER_MEASURABLE";
44
- readonly UNREGISTER_MEASURABLE: "UNREGISTER_MEASURABLE";
45
- readonly CHANGE_ELEMENT_BOX_MODELS: "CHANGE_ELEMENT_BOX_MODELS";
46
- readonly CHANGE_DOCUMENT_ELEMENT_SIZE: "CHANGE_DOCUMENT_ELEMENT_SIZE";
47
- readonly CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP: "CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP";
48
- readonly SCROLL_DOCUMENT_ELEMENT: "SCROLL_DOCUMENT_ELEMENT";
49
- readonly REGISTER_PROP_CONTROLLERS_HANDLE: "REGISTER_PROP_CONTROLLERS_HANDLE";
50
- readonly UNREGISTER_PROP_CONTROLLERS_HANDLE: "UNREGISTER_PROP_CONTROLLERS_HANDLE";
51
- readonly REGISTER_PROP_CONTROLLERS: "REGISTER_PROP_CONTROLLERS";
52
- readonly UNREGISTER_PROP_CONTROLLERS: "UNREGISTER_PROP_CONTROLLERS";
53
- readonly MESSAGE_HOST_PROP_CONTROLLER: "MESSAGE_HOST_PROP_CONTROLLER";
54
- readonly MESSAGE_BUILDER_PROP_CONTROLLER: "MESSAGE_BUILDER_PROP_CONTROLLER";
55
- readonly CHANGE_API_RESOURCE: "CHANGE_API_RESOURCE";
56
- readonly EVICT_API_RESOURCE: "EVICT_API_RESOURCE";
57
- readonly SET_IS_IN_BUILDER: "SET_IS_IN_BUILDER";
58
- readonly HANDLE_WHEEL: "HANDLE_WHEEL";
59
- readonly HANDLE_POINTER_MOVE: "HANDLE_POINTER_MOVE";
60
- readonly API_RESOURCE_FULFILLED: "API_RESOURCE_FULFILLED";
61
- readonly SET_BUILDER_EDIT_MODE: "SET_BUILDER_EDIT_MODE";
62
- readonly MAKESWIFT_CONNECTION_INIT: "MAKESWIFT_CONNECTION_INIT";
63
- readonly MAKESWIFT_CONNECTION_CHECK: "MAKESWIFT_CONNECTION_CHECK";
64
- readonly BUILDER_POINTER_MOVE: "BUILDER_POINTER_MOVE";
65
- readonly ELEMENT_FROM_POINT_CHANGE: "ELEMENT_FROM_POINT_CHANGE";
66
- readonly SET_BREAKPOINTS: "SET_BREAKPOINTS";
67
- readonly SET_LOCALE: "SET_LOCALE";
68
- readonly SET_LOCALIZED_RESOURCE_ID: "SET_LOCALIZED_RESOURCE_ID";
69
- readonly UPDATE_API_CLIENT_CACHE: "UPDATE_API_CLIENT_CACHE";
70
- };
71
- type InitAction = {
72
- type: typeof ActionTypes.INIT;
73
- };
74
- type CleanUpAction = {
75
- type: typeof ActionTypes.CLEAN_UP;
76
- };
77
- type DocumentPayloadBaseDocument = {
78
- key: string;
79
- rootElement: Element;
80
- locale?: string | null;
81
- };
82
- type DocumentPayloadEmbeddedDocument = {
83
- key: string;
84
- locale: string | null;
85
- id: string;
86
- type: string;
87
- name: string;
88
- rootElement: Element;
89
- meta: {
90
- allowLocaleFallback: boolean;
91
- requestedLocale: string | null;
92
- description?: string;
93
- };
94
- __type: typeof EMBEDDED_DOCUMENT_TYPE;
95
- };
96
- export type DocumentPayload = DocumentPayloadBaseDocument | DocumentPayloadEmbeddedDocument;
97
- type RegisterDocumentAction = {
98
- type: typeof ActionTypes.REGISTER_DOCUMENT;
99
- payload: {
100
- documentKey: string;
101
- document: DocumentPayload;
102
- };
103
- };
104
- type UnregisterDocumentAction = {
105
- type: typeof ActionTypes.UNREGISTER_DOCUMENT;
106
- payload: {
107
- documentKey: string;
108
- };
109
- };
110
- type ChangeDocumentAction = {
111
- type: typeof ActionTypes.CHANGE_DOCUMENT;
112
- payload: {
113
- documentKey: string;
114
- operation: Operation;
115
- };
116
- };
117
- type CreateElementTreeAction = {
118
- type: typeof ActionTypes.CREATE_ELEMENT_TREE;
119
- payload: {
120
- document: DocumentPayload;
121
- descriptors: DescriptorsByComponentType;
122
- };
123
- };
124
- type DeleteElementTreeAction = {
125
- type: typeof ActionTypes.DELETE_ELEMENT_TREE;
126
- payload: {
127
- documentKey: string;
128
- };
129
- };
130
- type ChangeElementTreeAction = {
131
- type: typeof ActionTypes.CHANGE_ELEMENT_TREE;
132
- payload: {
133
- oldDocument: DocumentPayload;
134
- newDocument: DocumentPayload;
135
- descriptors: DescriptorsByComponentType;
136
- operation: Operation;
137
- };
138
- };
139
- type RegisterBuilderDocumentAction = {
140
- type: typeof ActionTypes.REGISTER_BUILDER_DOCUMENT;
141
- payload: {
142
- documentKey: string;
143
- document: DocumentPayload;
144
- };
145
- };
146
- type UnregisterBuilderDocumentAction = {
147
- type: typeof ActionTypes.UNREGISTER_BUILDER_DOCUMENT;
148
- payload: {
149
- documentKey: string;
150
- };
151
- };
152
- type RegisterComponentAction = {
153
- type: typeof ActionTypes.REGISTER_COMPONENT;
154
- payload: {
155
- type: string;
156
- meta: ComponentMeta;
157
- propControllerDescriptors: Record<string, PropControllerDescriptor>;
158
- };
159
- };
160
- type UnregisterComponentAction = {
161
- type: typeof ActionTypes.UNREGISTER_COMPONENT;
162
- payload: {
163
- type: string;
164
- };
165
- };
166
- type RegisterBuilderComponentAction = {
167
- type: typeof ActionTypes.REGISTER_BUILDER_COMPONENT;
168
- payload: {
169
- type: string;
170
- meta: ComponentMeta;
171
- serializedControls: Record<string, SerializedControl>;
172
- };
173
- transferables?: Transferable[];
174
- };
175
- type UnregisterBuilderComponentAction = {
176
- type: typeof ActionTypes.UNREGISTER_BUILDER_COMPONENT;
177
- payload: {
178
- type: string;
179
- };
180
- };
181
- type RegisterReactComponentAction = {
182
- type: typeof ActionTypes.REGISTER_REACT_COMPONENT;
183
- payload: {
184
- type: string;
185
- component: ComponentType;
186
- };
187
- };
188
- type UnregisterReactComponentAction = {
189
- type: typeof ActionTypes.UNREGISTER_REACT_COMPONENT;
190
- payload: {
191
- type: string;
192
- };
193
- };
194
- type MountComponentAction = {
195
- type: typeof ActionTypes.MOUNT_COMPONENT;
196
- payload: {
197
- documentKey: string;
198
- elementKey: string;
199
- };
200
- };
201
- type UnmountComponentAction = {
202
- type: typeof ActionTypes.UNMOUNT_COMPONENT;
203
- payload: {
204
- documentKey: string;
205
- elementKey: string;
206
- };
207
- };
208
- type RegisterComponentHandleAction = {
209
- type: typeof ActionTypes.REGISTER_COMPONENT_HANDLE;
210
- payload: {
211
- documentKey: string;
212
- elementKey: string;
213
- componentHandle: ElementImperativeHandle;
214
- };
215
- };
216
- type UnregisterComponentHandleAction = {
217
- type: typeof ActionTypes.UNREGISTER_COMPONENT_HANDLE;
218
- payload: {
219
- documentKey: string;
220
- elementKey: string;
221
- };
222
- };
223
- type RegisterMeasurableAction = {
224
- type: typeof ActionTypes.REGISTER_MEASURABLE;
225
- payload: {
226
- documentKey: string;
227
- elementKey: string;
228
- measurable: Measurable;
229
- };
230
- };
231
- type UnregisterMeasurableAction = {
232
- type: typeof ActionTypes.UNREGISTER_MEASURABLE;
233
- payload: {
234
- documentKey: string;
235
- elementKey: string;
236
- };
237
- };
238
- type ChangeElementBoxModelsAction = {
239
- type: typeof ActionTypes.CHANGE_ELEMENT_BOX_MODELS;
240
- payload: {
241
- changedElementBoxModels: Map<string, Map<string, BoxModel | null>>;
242
- };
243
- };
244
- type ChangeDocumentElementSizeAction = {
245
- type: typeof ActionTypes.CHANGE_DOCUMENT_ELEMENT_SIZE;
246
- payload: {
247
- size: Size;
248
- };
249
- };
250
- type ChangeDocumentElementScrollTopAction = {
251
- type: typeof ActionTypes.CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP;
252
- payload: {
253
- scrollTop: number;
254
- };
255
- };
256
- type ScrollDocumentElementAction = {
257
- type: typeof ActionTypes.SCROLL_DOCUMENT_ELEMENT;
258
- payload: {
259
- scrollTopDelta: number;
260
- };
261
- };
262
- type RegisterPropControllersHandleAction = {
263
- type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS_HANDLE;
264
- payload: {
265
- documentKey: string;
266
- elementKey: string;
267
- handle: PropControllersHandle;
268
- };
269
- };
270
- type UnregisterPropControllersHandleAction = {
271
- type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS_HANDLE;
272
- payload: {
273
- documentKey: string;
274
- elementKey: string;
275
- };
276
- };
277
- type RegisterPropControllersAction = {
278
- type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS;
279
- payload: {
280
- documentKey: string;
281
- elementKey: string;
282
- propControllers: Record<string, ControlInstance>;
283
- };
284
- };
285
- type UnregisterPropControllersAction = {
286
- type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS;
287
- payload: {
288
- documentKey: string;
289
- elementKey: string;
290
- };
291
- };
292
- type MessageHostPropControllerAction<T = PropControllerMessage> = {
293
- type: typeof ActionTypes.MESSAGE_HOST_PROP_CONTROLLER;
294
- payload: {
295
- documentKey: string;
296
- elementKey: string;
297
- propName: string;
298
- message: T;
299
- };
300
- };
301
- type MessageBuilderPropControllerAction<T = PropControllerMessage> = {
302
- type: typeof ActionTypes.MESSAGE_BUILDER_PROP_CONTROLLER;
303
- payload: {
304
- documentKey: string;
305
- elementKey: string;
306
- propName: string;
307
- message: T;
308
- };
309
- };
310
- type ChangeAPIResourceAction = {
311
- type: typeof ActionTypes.CHANGE_API_RESOURCE;
312
- payload: {
313
- resource: APIResource;
314
- locale?: string | null;
315
- };
316
- };
317
- type EvictAPIResourceAction = {
318
- type: typeof ActionTypes.EVICT_API_RESOURCE;
319
- payload: {
320
- id: string;
321
- locale?: string | null;
322
- };
323
- };
324
- type SetIsInBuilderAction = {
325
- type: typeof ActionTypes.SET_IS_IN_BUILDER;
326
- payload: boolean;
327
- };
328
- type HandleWheelAction = {
329
- type: typeof ActionTypes.HANDLE_WHEEL;
330
- payload: {
331
- deltaX: number;
332
- deltaY: number;
333
- };
334
- };
335
- type HandlePointerMoveAction = {
336
- type: typeof ActionTypes.HANDLE_POINTER_MOVE;
337
- payload: {
338
- clientX: number;
339
- clientY: number;
340
- };
341
- };
342
- type APIResourceFulfilledAction = {
343
- type: typeof ActionTypes.API_RESOURCE_FULFILLED;
344
- payload: {
345
- resourceType: APIResourceType;
346
- resourceId: string;
347
- resource: APIResource | null;
348
- locale?: string | null;
349
- };
350
- };
351
- type SetBuilderEditModeAction = {
352
- type: typeof ActionTypes.SET_BUILDER_EDIT_MODE;
353
- payload: {
354
- editMode: BuilderEditMode;
355
- };
356
- };
357
- type BuilderPointerMoveAction = {
358
- type: typeof ActionTypes.BUILDER_POINTER_MOVE;
359
- payload: {
360
- pointer: Point | null;
361
- };
362
- };
363
- type ElementFromPointChangeAction = {
364
- type: typeof ActionTypes.ELEMENT_FROM_POINT_CHANGE;
365
- payload: {
366
- keys: {
367
- documentKey: string;
368
- elementKey: string;
369
- } | null;
370
- };
371
- };
372
- export type SetBreakpointsAction = {
373
- type: typeof ActionTypes.SET_BREAKPOINTS;
374
- payload: {
375
- breakpoints: Breakpoints;
376
- };
377
- };
378
- type SetLocaleAction = {
379
- type: typeof ActionTypes.SET_LOCALE;
380
- payload: {
381
- locale: LocaleString;
382
- pathname?: string;
383
- };
384
- };
385
- type SetLocalizedResourceIdAction = {
386
- type: typeof ActionTypes.SET_LOCALIZED_RESOURCE_ID;
387
- payload: {
388
- locale?: string;
389
- resourceId: string;
390
- localizedResourceId: string | null;
391
- };
392
- };
393
- type UpdateAPIClientCache = {
394
- type: typeof ActionTypes.UPDATE_API_CLIENT_CACHE;
395
- payload: APIClientCache;
396
- };
397
- export type Action = InitAction | CleanUpAction | RegisterDocumentAction | UnregisterDocumentAction | ChangeDocumentAction | CreateElementTreeAction | DeleteElementTreeAction | ChangeElementTreeAction | RegisterBuilderDocumentAction | UnregisterBuilderDocumentAction | RegisterComponentAction | UnregisterComponentAction | RegisterBuilderComponentAction | UnregisterBuilderComponentAction | RegisterReactComponentAction | UnregisterReactComponentAction | MountComponentAction | UnmountComponentAction | RegisterComponentHandleAction | UnregisterComponentHandleAction | RegisterMeasurableAction | UnregisterMeasurableAction | ChangeElementBoxModelsAction | ChangeDocumentElementSizeAction | ChangeDocumentElementScrollTopAction | ScrollDocumentElementAction | RegisterPropControllersHandleAction | UnregisterPropControllersHandleAction | RegisterPropControllersAction | UnregisterPropControllersAction | MessageHostPropControllerAction | MessageBuilderPropControllerAction | ChangeAPIResourceAction | EvictAPIResourceAction | SetIsInBuilderAction | HandleWheelAction | HandlePointerMoveAction | APIResourceFulfilledAction | SetBuilderEditModeAction | BuilderPointerMoveAction | ElementFromPointChangeAction | SetBreakpointsAction | SetLocaleAction | SetLocalizedResourceIdAction | UpdateAPIClientCache;
398
- export declare function init(): InitAction;
399
- export declare function cleanUp(): CleanUpAction;
400
- export declare function registerDocument(document: Document): RegisterDocumentAction;
401
- export declare function unregisterDocument(documentKey: string): UnregisterDocumentAction;
402
- export declare function createElementTree(payload: CreateElementTreeAction['payload']): CreateElementTreeAction;
403
- export declare function deleteElementTree(payload: DeleteElementTreeAction['payload']): DeleteElementTreeAction;
404
- export declare function changeElementTree(payload: ChangeElementTreeAction['payload']): ChangeElementTreeAction;
405
- export declare function registerBuilderDocument(document: Document): RegisterBuilderDocumentAction;
406
- export declare function unregisterBuilderDocument(documentKey: string): UnregisterBuilderDocumentAction;
407
- export declare function registerDocumentsEffect(documents: Document[]): ThunkAction<() => void, unknown, unknown, Action>;
408
- export declare function registerBuilderDocumentsEffect(documents: Document[]): ThunkAction<() => void, unknown, unknown, Action>;
409
- export declare function changeDocument(documentKey: string, operation: Operation): ChangeDocumentAction;
410
- export declare function registerComponent(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): RegisterComponentAction;
411
- export declare function unregisterComponent(type: string): UnregisterComponentAction;
412
- export declare function registerComponentEffect(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): ThunkAction<() => void, unknown, unknown, Action>;
413
- export declare function registerBuilderComponent(payload: RegisterBuilderComponentAction['payload'], transferables?: Transferable[]): RegisterBuilderComponentAction;
414
- export declare function unregisterBuilderComponent(payload: UnregisterBuilderComponentAction['payload']): UnregisterBuilderComponentAction;
415
- export declare function registerReactComponentEffect(type: string, component: ComponentType): ThunkAction<() => void, unknown, unknown, Action>;
416
- export declare function mountComponent(documentKey: string, elementKey: string): MountComponentAction;
417
- export declare function unmountComponent(documentKey: string, elementKey: string): UnmountComponentAction;
418
- export declare function mountComponentEffect(documentKey: string, elementKey: string): ThunkAction<() => void, unknown, unknown, Action>;
419
- export declare function registerComponentHandle(documentKey: string, elementKey: string, componentHandle: ElementImperativeHandle): RegisterComponentHandleAction;
420
- export declare function registerComponentHandleEffect(documentKey: string, elementKey: string, componentHandle: ElementImperativeHandle): ThunkAction<() => void, unknown, unknown, Action>;
421
- export declare function registerMeasurable(documentKey: string, elementKey: string, measurable: Measurable): RegisterMeasurableAction;
422
- export declare function unregisterMeasurable(documentKey: string, elementKey: string): UnregisterMeasurableAction;
423
- export declare function registerMeasurableEffect(documentKey: string, elementKey: string, measurable: Measurable): ThunkAction<() => void, unknown, unknown, Action>;
424
- export declare function changeElementBoxModels(changedElementBoxModels: Map<string, Map<string, BoxModel | null>>): ChangeElementBoxModelsAction;
425
- export declare function changeDocumentElementSize(size: Size): ChangeDocumentElementSizeAction;
426
- export declare function changeDocumentElementScrollTop(scrollTop: number): ChangeDocumentElementScrollTopAction;
427
- export declare function scrollDocumentElement(scrollTopDelta: number): ScrollDocumentElementAction;
428
- export declare function registerPropControllersHandle(documentKey: string, elementKey: string, handle: PropControllersHandle): RegisterPropControllersHandleAction;
429
- export declare function unregisterPropControllersHandle(documentKey: string, elementKey: string): UnregisterPropControllersHandleAction;
430
- export declare function registerPropControllers(documentKey: string, elementKey: string, propControllers: Record<string, ControlInstance>): RegisterPropControllersAction;
431
- export declare function unregisterPropControllers(documentKey: string, elementKey: string): UnregisterPropControllersAction;
432
- export declare function messageHostPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageHostPropControllerAction<T>;
433
- export declare function messageBuilderPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageBuilderPropControllerAction<T>;
434
- export declare function changeApiResource<R extends APIResource>(resource: R, locale?: APIResourceLocale<R>): ChangeAPIResourceAction;
435
- export declare function evictApiResource(id: string, locale?: string | null): EvictAPIResourceAction;
436
- export declare function setIsInBuilder(isInBuilder: boolean): SetIsInBuilderAction;
437
- export declare function handleWheel(payload: {
438
- deltaX: number;
439
- deltaY: number;
440
- }): HandleWheelAction;
441
- export declare function handlePointerMove(payload: {
442
- clientX: number;
443
- clientY: number;
444
- }): HandlePointerMoveAction;
445
- export declare function apiResourceFulfilled<T extends APIResourceType>(resourceType: T, resourceId: string, resource: APIResource | null, locale?: APIResourceLocale<T>): APIResourceFulfilledAction;
446
- export declare function setBuilderEditMode(editMode: BuilderEditMode): SetBuilderEditModeAction;
447
- export declare function builderPointerMove(pointer: Point | null): BuilderPointerMoveAction;
448
- export declare function elementFromPointChange(keys: {
449
- documentKey: string;
450
- elementKey: string;
451
- } | null): ElementFromPointChangeAction;
452
- export declare function setBreakpoints(breakpoints: Breakpoints): SetBreakpointsAction;
453
- export declare function setLocale(locale: Intl.Locale, pathname?: string): SetLocaleAction;
454
- export declare function setLocalizedResourceId({ resourceId, localizedResourceId, locale, }: {
455
- resourceId: string;
456
- localizedResourceId: string | null;
457
- locale?: string;
458
- }): SetLocalizedResourceIdAction;
459
- export declare function updateAPIClientCache(payload: APIClientCache): UpdateAPIClientCache;
460
- export declare function isKnownAction(action: unknown): action is Action;
461
- //# sourceMappingURL=actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/state/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,kBAAkB,CAAA;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AACnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,UAAU,IAAI,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AACxF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,EAAE,uBAAuB,EA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