@makeswift/runtime 0.0.0-e89d176 → 0.0.0-ef05bba

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 (226) hide show
  1. package/api.js +1 -0
  2. package/box-model.js +1 -0
  3. package/components.js +1 -0
  4. package/dist/actions.cjs.js +88 -16
  5. package/dist/actions.cjs.js.map +1 -1
  6. package/dist/actions.es.js +79 -16
  7. package/dist/actions.es.js.map +1 -1
  8. package/dist/api.cjs.js +6 -0
  9. package/dist/api.cjs.js.map +1 -0
  10. package/dist/api.es.js +2 -0
  11. package/dist/api.es.js.map +1 -0
  12. package/dist/box-model.cjs.js +1 -0
  13. package/dist/box-model.cjs.js.map +1 -1
  14. package/dist/box-model.es.js +1 -0
  15. package/dist/box-model.es.js.map +1 -1
  16. package/dist/box-models.cjs.js +27 -157
  17. package/dist/box-models.cjs.js.map +1 -1
  18. package/dist/box-models.es.js +30 -160
  19. package/dist/box-models.es.js.map +1 -1
  20. package/dist/components.cjs.js +53 -19946
  21. package/dist/components.cjs.js.map +1 -1
  22. package/dist/components.es.js +25 -19911
  23. package/dist/components.es.js.map +1 -1
  24. package/dist/constants.cjs.js +146 -0
  25. package/dist/constants.cjs.js.map +1 -0
  26. package/dist/constants.es.js +145 -0
  27. package/dist/constants.es.js.map +1 -0
  28. package/dist/descriptors.cjs.js +30 -0
  29. package/dist/descriptors.cjs.js.map +1 -1
  30. package/dist/descriptors.es.js +1 -1
  31. package/dist/descriptors.es.js.map +1 -1
  32. package/dist/instances.cjs.js +89 -0
  33. package/dist/instances.cjs.js.map +1 -0
  34. package/dist/instances.es.js +87 -0
  35. package/dist/instances.es.js.map +1 -0
  36. package/dist/main.cjs.js +4 -0
  37. package/dist/main.cjs.js.map +1 -1
  38. package/dist/main.es.js +1 -1
  39. package/dist/next.cjs.js +168 -0
  40. package/dist/next.cjs.js.map +1 -0
  41. package/dist/next.es.js +157 -0
  42. package/dist/next.es.js.map +1 -0
  43. package/dist/prop-controllers.cjs.js +2 -0
  44. package/dist/prop-controllers.cjs.js.map +1 -1
  45. package/dist/prop-controllers.es.js +1 -0
  46. package/dist/prop-controllers.es.js.map +1 -1
  47. package/dist/react-builder-preview.cjs.js +257 -4111
  48. package/dist/react-builder-preview.cjs.js.map +1 -1
  49. package/dist/react-builder-preview.es.js +258 -4116
  50. package/dist/react-builder-preview.es.js.map +1 -1
  51. package/dist/react.cjs.js +22 -0
  52. package/dist/react.cjs.js.map +1 -1
  53. package/dist/react.cjs2.js +5777 -539
  54. package/dist/react.cjs2.js.map +1 -1
  55. package/dist/react.es.js +22 -0
  56. package/dist/react.es.js.map +1 -1
  57. package/dist/react.es2.js +5723 -540
  58. package/dist/react.es2.js.map +1 -1
  59. package/dist/types/api/constants.d.ts +4 -0
  60. package/dist/types/api/constants.d.ts.map +1 -0
  61. package/dist/types/api/generated/graphql.d.ts +61 -0
  62. package/dist/types/api/generated/graphql.d.ts.map +1 -0
  63. package/dist/types/api/index.d.ts +3 -0
  64. package/dist/types/api/index.d.ts.map +1 -0
  65. package/dist/types/api/react.d.ts +6 -0
  66. package/dist/types/api/react.d.ts.map +1 -0
  67. package/dist/types/api/types.d.ts +4 -0
  68. package/dist/types/api/types.d.ts.map +1 -0
  69. package/dist/types/components/builtin/Box/Box.d.ts +5 -2
  70. package/dist/types/components/builtin/Box/Box.d.ts.map +1 -1
  71. package/dist/types/components/builtin/Box/index.d.ts +1 -1
  72. package/dist/types/components/builtin/Box/index.d.ts.map +1 -1
  73. package/dist/types/components/builtin/Button/Button.d.ts +5 -2
  74. package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
  75. package/dist/types/components/builtin/Button/index.d.ts +1 -1
  76. package/dist/types/components/builtin/Button/index.d.ts.map +1 -1
  77. package/dist/types/components/builtin/Carousel/Carousel.d.ts +5 -2
  78. package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
  79. package/dist/types/components/builtin/Carousel/index.d.ts +1 -1
  80. package/dist/types/components/builtin/Carousel/index.d.ts.map +1 -1
  81. package/dist/types/components/builtin/Countdown/Countdown.d.ts +5 -2
  82. package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -1
  83. package/dist/types/components/builtin/Countdown/index.d.ts +1 -1
  84. package/dist/types/components/builtin/Countdown/index.d.ts.map +1 -1
  85. package/dist/types/components/builtin/Divider/Divider.d.ts +5 -2
  86. package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -1
  87. package/dist/types/components/builtin/Divider/index.d.ts +1 -1
  88. package/dist/types/components/builtin/Divider/index.d.ts.map +1 -1
  89. package/dist/types/components/builtin/Embed/Embed.d.ts +5 -2
  90. package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -1
  91. package/dist/types/components/builtin/Embed/index.d.ts +1 -1
  92. package/dist/types/components/builtin/Embed/index.d.ts.map +1 -1
  93. package/dist/types/components/builtin/Image/Image.d.ts +5 -2
  94. package/dist/types/components/builtin/Image/Image.d.ts.map +1 -1
  95. package/dist/types/components/builtin/Image/index.d.ts +1 -1
  96. package/dist/types/components/builtin/Image/index.d.ts.map +1 -1
  97. package/dist/types/components/builtin/Navigation/Navigation.d.ts +5 -2
  98. package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -1
  99. package/dist/types/components/builtin/Navigation/index.d.ts +1 -1
  100. package/dist/types/components/builtin/Navigation/index.d.ts.map +1 -1
  101. package/dist/types/components/builtin/Root/Root.d.ts +5 -2
  102. package/dist/types/components/builtin/Root/Root.d.ts.map +1 -1
  103. package/dist/types/components/builtin/Root/index.d.ts +1 -1
  104. package/dist/types/components/builtin/Root/index.d.ts.map +1 -1
  105. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +5 -2
  106. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
  107. package/dist/types/components/builtin/SocialLinks/index.d.ts +1 -1
  108. package/dist/types/components/builtin/SocialLinks/index.d.ts.map +1 -1
  109. package/dist/types/components/builtin/Text/Text.d.ts +19 -0
  110. package/dist/types/components/builtin/Text/Text.d.ts.map +1 -0
  111. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts +24 -0
  112. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts.map +1 -0
  113. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts +25 -0
  114. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts.map +1 -0
  115. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts +13 -0
  116. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts.map +1 -0
  117. package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts +5 -0
  118. package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts.map +1 -0
  119. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts +3 -0
  120. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts.map +1 -0
  121. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts +3 -0
  122. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts.map +1 -0
  123. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts +3 -0
  124. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts.map +1 -0
  125. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts +3 -0
  126. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts.map +1 -0
  127. package/dist/types/components/builtin/Text/index.d.ts +2 -0
  128. package/dist/types/components/builtin/Text/index.d.ts.map +1 -0
  129. package/dist/types/components/builtin/index.d.ts +5 -1
  130. package/dist/types/components/builtin/index.d.ts.map +1 -1
  131. package/dist/types/components/hooks/useBackgrounds.d.ts.map +1 -1
  132. package/dist/types/components/hooks/useBorder.d.ts.map +1 -1
  133. package/dist/types/components/hooks/useBoxShadow.d.ts.map +1 -1
  134. package/dist/types/components/hooks/useColor.d.ts.map +1 -1
  135. package/dist/types/components/hooks/useFile.d.ts.map +1 -1
  136. package/dist/types/components/hooks/usePage.d.ts.map +1 -1
  137. package/dist/types/components/hooks/useTypography.d.ts +24 -0
  138. package/dist/types/components/hooks/useTypography.d.ts.map +1 -0
  139. package/dist/types/components/index.d.ts +1 -0
  140. package/dist/types/components/index.d.ts.map +1 -1
  141. package/dist/types/components/utils/devices.d.ts +1 -0
  142. package/dist/types/components/utils/devices.d.ts.map +1 -1
  143. package/dist/types/components/utils/queries.d.ts +6 -4
  144. package/dist/types/components/utils/queries.d.ts.map +1 -1
  145. package/dist/types/index.d.ts +1 -1
  146. package/dist/types/index.d.ts.map +1 -1
  147. package/dist/types/next.d.ts +20 -0
  148. package/dist/types/next.d.ts.map +1 -0
  149. package/dist/types/prop-controllers/descriptors.d.ts +1 -1
  150. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  151. package/dist/types/prop-controllers/index.d.ts +2 -0
  152. package/dist/types/prop-controllers/index.d.ts.map +1 -1
  153. package/dist/types/prop-controllers/instances.d.ts +63 -4
  154. package/dist/types/prop-controllers/instances.d.ts.map +1 -1
  155. package/dist/types/runtimes/react.d.ts +13 -7
  156. package/dist/types/runtimes/react.d.ts.map +1 -1
  157. package/dist/types/state/actions.d.ts +107 -13
  158. package/dist/types/state/actions.d.ts.map +1 -1
  159. package/dist/types/state/modules/box-models.d.ts +5 -5
  160. package/dist/types/state/modules/box-models.d.ts.map +1 -1
  161. package/dist/types/state/modules/prop-controller-handles.d.ts +4 -8
  162. package/dist/types/state/modules/prop-controller-handles.d.ts.map +1 -1
  163. package/dist/types/state/react-builder-preview.d.ts +5 -1
  164. package/dist/types/state/react-builder-preview.d.ts.map +1 -1
  165. package/dist/types/state/react-page.d.ts +1 -0
  166. package/dist/types/state/react-page.d.ts.map +1 -1
  167. package/dist/types/utils/coalesce.d.ts +3 -0
  168. package/dist/types/utils/coalesce.d.ts.map +1 -0
  169. package/dist/types/utils/constants.d.ts +6 -0
  170. package/dist/types/utils/constants.d.ts.map +1 -0
  171. package/dist/types/utils/intersection.d.ts +4 -0
  172. package/dist/types/utils/intersection.d.ts.map +1 -0
  173. package/dist/types/utils/keys.d.ts +5 -0
  174. package/dist/types/utils/keys.d.ts.map +1 -0
  175. package/dist/types/utils/shallowMerge.d.ts +2 -0
  176. package/dist/types/utils/shallowMerge.d.ts.map +1 -0
  177. package/next.js +1 -0
  178. package/package.json +48 -23
  179. package/prop-controllers.js +1 -0
  180. package/react.js +1 -0
  181. package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts +0 -11
  182. package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +0 -1
  183. package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts +0 -8
  184. package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts.map +0 -1
  185. package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts +0 -11
  186. package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts.map +0 -1
  187. package/dist/types/components/BackgroundsContainer/index.d.ts +0 -11
  188. package/dist/types/components/BackgroundsContainer/index.d.ts.map +0 -1
  189. package/dist/types/components/Box/Box.d.ts +0 -30
  190. package/dist/types/components/Box/Box.d.ts.map +0 -1
  191. package/dist/types/components/Box/animations.d.ts +0 -69
  192. package/dist/types/components/Box/animations.d.ts.map +0 -1
  193. package/dist/types/components/Box/components/Placeholder/index.d.ts +0 -7
  194. package/dist/types/components/Box/components/Placeholder/index.d.ts.map +0 -1
  195. package/dist/types/components/Box/index.d.ts +0 -3
  196. package/dist/types/components/Box/index.d.ts.map +0 -1
  197. package/dist/types/components/Carousel/Carousel.d.ts +0 -25
  198. package/dist/types/components/Carousel/Carousel.d.ts.map +0 -1
  199. package/dist/types/components/Carousel/index.d.ts +0 -2
  200. package/dist/types/components/Carousel/index.d.ts.map +0 -1
  201. package/dist/types/components/Countdown/Countdown.d.ts +0 -24
  202. package/dist/types/components/Countdown/Countdown.d.ts.map +0 -1
  203. package/dist/types/components/Countdown/index.d.ts +0 -2
  204. package/dist/types/components/Countdown/index.d.ts.map +0 -1
  205. package/dist/types/components/Divider/Divider.d.ts +0 -14
  206. package/dist/types/components/Divider/Divider.d.ts.map +0 -1
  207. package/dist/types/components/Divider/index.d.ts +0 -2
  208. package/dist/types/components/Divider/index.d.ts.map +0 -1
  209. package/dist/types/components/Embed/Embed.d.ts +0 -11
  210. package/dist/types/components/Embed/Embed.d.ts.map +0 -1
  211. package/dist/types/components/Embed/index.d.ts +0 -2
  212. package/dist/types/components/Embed/index.d.ts.map +0 -1
  213. package/dist/types/components/Image/Image.d.ts +0 -26
  214. package/dist/types/components/Image/Image.d.ts.map +0 -1
  215. package/dist/types/components/Image/index.d.ts +0 -2
  216. package/dist/types/components/Image/index.d.ts.map +0 -1
  217. package/dist/types/components/Link/index.d.ts +0 -9
  218. package/dist/types/components/Link/index.d.ts.map +0 -1
  219. package/dist/types/components/RichText/index.d.ts +0 -5
  220. package/dist/types/components/RichText/index.d.ts.map +0 -1
  221. package/dist/types/components/Root/Root.d.ts +0 -11
  222. package/dist/types/components/Root/Root.d.ts.map +0 -1
  223. package/dist/types/components/Root/components/Placeholder/index.d.ts +0 -5
  224. package/dist/types/components/Root/components/Placeholder/index.d.ts.map +0 -1
  225. package/dist/types/components/Root/index.d.ts +0 -2
  226. package/dist/types/components/Root/index.d.ts.map +0 -1
@@ -5,7 +5,12 @@ import type { ThunkAction } from 'redux-thunk';
5
5
  import { ComponentMeta } from './modules/components-meta';
6
6
  import { PropControllerDescriptor } from '../prop-controllers';
7
7
  import type { Size } from './react-builder-preview';
8
+ import type { PropControllersHandle } from './modules/prop-controller-handles';
9
+ import type { PropController, PropControllerMessage } from '../prop-controllers/instances';
10
+ import type { APIResource } from '../api/types';
8
11
  export declare const ActionTypes: {
12
+ readonly INIT: "INIT";
13
+ readonly CLEAN_UP: "CLEAN_UP";
9
14
  readonly CHANGE_DOCUMENT: "CHANGE_DOCUMENT";
10
15
  readonly REGISTER_COMPONENT: "REGISTER_COMPONENT";
11
16
  readonly UNREGISTER_COMPONENT: "UNREGISTER_COMPONENT";
@@ -13,12 +18,26 @@ export declare const ActionTypes: {
13
18
  readonly UNREGISTER_REACT_COMPONENT: "UNREGISTER_REACT_COMPONENT";
14
19
  readonly MOUNT_COMPONENT: "MOUNT_COMPONENT";
15
20
  readonly UNMOUNT_COMPONENT: "UNMOUNT_COMPONENT";
16
- readonly CHANGE_COMPONENT_HANDLE: "CHANGE_COMPONENT_HANDLE";
21
+ readonly REGISTER_COMPONENT_HANDLE: "REGISTER_COMPONENT_HANDLE";
22
+ readonly UNREGISTER_COMPONENT_HANDLE: "UNREGISTER_COMPONENT_HANDLE";
17
23
  readonly REGISTER_MEASURABLE: "REGISTER_MEASURABLE";
18
24
  readonly UNREGISTER_MEASURABLE: "UNREGISTER_MEASURABLE";
19
25
  readonly CHANGE_ELEMENT_BOX_MODELS: "CHANGE_ELEMENT_BOX_MODELS";
20
26
  readonly CHANGE_DOCUMENT_ELEMENT_SIZE: "CHANGE_DOCUMENT_ELEMENT_SIZE";
21
27
  readonly CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP: "CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP";
28
+ readonly REGISTER_PROP_CONTROLLERS_HANDLE: "REGISTER_PROP_CONTROLLERS_HANDLE";
29
+ readonly UNREGISTER_PROP_CONTROLLERS_HANDLE: "UNREGISTER_PROP_CONTROLLERS_HANDLE";
30
+ readonly REGISTER_PROP_CONTROLLERS: "REGISTER_PROP_CONTROLLERS";
31
+ readonly UNREGISTER_PROP_CONTROLLERS: "UNREGISTER_PROP_CONTROLLERS";
32
+ readonly MESSAGE_HOST_PROP_CONTROLLER: "MESSAGE_HOST_PROP_CONTROLLER";
33
+ readonly MESSAGE_BUILDER_PROP_CONTROLLER: "MESSAGE_BUILDER_PROP_CONTROLLER";
34
+ readonly CHANGE_API_RESOURCE: "CHANGE_API_RESOURCE";
35
+ };
36
+ declare type InitAction = {
37
+ type: typeof ActionTypes.INIT;
38
+ };
39
+ declare type CleanUpAction = {
40
+ type: typeof ActionTypes.CLEAN_UP;
22
41
  };
23
42
  declare type ChangeDocumentAction = {
24
43
  type: typeof ActionTypes.CHANGE_DOCUMENT;
@@ -57,25 +76,36 @@ declare type UnregisterReactComponentAction = {
57
76
  declare type MountComponentAction = {
58
77
  type: typeof ActionTypes.MOUNT_COMPONENT;
59
78
  payload: {
79
+ documentKey: string;
60
80
  elementKey: string;
61
81
  };
62
82
  };
63
83
  declare type UnmountComponentAction = {
64
84
  type: typeof ActionTypes.UNMOUNT_COMPONENT;
65
85
  payload: {
86
+ documentKey: string;
66
87
  elementKey: string;
67
88
  };
68
89
  };
69
- declare type ChangeComponentHandleAction = {
70
- type: typeof ActionTypes.CHANGE_COMPONENT_HANDLE;
90
+ declare type RegisterComponentHandleAction = {
91
+ type: typeof ActionTypes.REGISTER_COMPONENT_HANDLE;
71
92
  payload: {
93
+ documentKey: string;
72
94
  elementKey: string;
73
95
  componentHandle: unknown;
74
96
  };
75
97
  };
98
+ declare type UnregisterComponentHandleAction = {
99
+ type: typeof ActionTypes.UNREGISTER_COMPONENT_HANDLE;
100
+ payload: {
101
+ documentKey: string;
102
+ elementKey: string;
103
+ };
104
+ };
76
105
  declare type RegisterMeasurableAction = {
77
106
  type: typeof ActionTypes.REGISTER_MEASURABLE;
78
107
  payload: {
108
+ documentKey: string;
79
109
  elementKey: string;
80
110
  measurable: Measurable;
81
111
  };
@@ -83,13 +113,14 @@ declare type RegisterMeasurableAction = {
83
113
  declare type UnregisterMeasurableAction = {
84
114
  type: typeof ActionTypes.UNREGISTER_MEASURABLE;
85
115
  payload: {
116
+ documentKey: string;
86
117
  elementKey: string;
87
118
  };
88
119
  };
89
120
  declare type ChangeElementBoxModelsAction = {
90
121
  type: typeof ActionTypes.CHANGE_ELEMENT_BOX_MODELS;
91
122
  payload: {
92
- changedElementBoxModels: Map<string, BoxModel | null>;
123
+ changedElementBoxModels: Map<string, Map<string, BoxModel | null>>;
93
124
  };
94
125
  };
95
126
  declare type ChangeDocumentElementSizeAction = {
@@ -104,21 +135,84 @@ declare type ChangeDocumentElementScrollTopAction = {
104
135
  scrollTop: number;
105
136
  };
106
137
  };
107
- export declare type Action = ChangeDocumentAction | RegisterComponentAction | UnregisterComponentAction | RegisterReactComponentAction | UnregisterReactComponentAction | MountComponentAction | UnmountComponentAction | ChangeComponentHandleAction | RegisterMeasurableAction | UnregisterMeasurableAction | ChangeElementBoxModelsAction | ChangeDocumentElementSizeAction | ChangeDocumentElementScrollTopAction;
138
+ declare type RegisterPropControllersHandleAction = {
139
+ type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS_HANDLE;
140
+ payload: {
141
+ documentKey: string;
142
+ elementKey: string;
143
+ handle: PropControllersHandle;
144
+ };
145
+ };
146
+ declare type UnregisterPropControllersHandleAction = {
147
+ type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS_HANDLE;
148
+ payload: {
149
+ documentKey: string;
150
+ elementKey: string;
151
+ };
152
+ };
153
+ declare type RegisterPropControllersAction = {
154
+ type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS;
155
+ payload: {
156
+ documentKey: string;
157
+ elementKey: string;
158
+ propControllers: Record<string, PropController>;
159
+ };
160
+ };
161
+ declare type UnregisterPropControllersAction = {
162
+ type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS;
163
+ payload: {
164
+ documentKey: string;
165
+ elementKey: string;
166
+ };
167
+ };
168
+ declare type MessageHostPropControllerAction<T = PropControllerMessage> = {
169
+ type: typeof ActionTypes.MESSAGE_HOST_PROP_CONTROLLER;
170
+ payload: {
171
+ documentKey: string;
172
+ elementKey: string;
173
+ propName: string;
174
+ message: T;
175
+ };
176
+ };
177
+ declare type MessageBuilderPropControllerAction<T = PropControllerMessage> = {
178
+ type: typeof ActionTypes.MESSAGE_BUILDER_PROP_CONTROLLER;
179
+ payload: {
180
+ documentKey: string;
181
+ elementKey: string;
182
+ propName: string;
183
+ message: T;
184
+ };
185
+ };
186
+ declare type ChangeAPIResourceAction = {
187
+ type: typeof ActionTypes.CHANGE_API_RESOURCE;
188
+ payload: {
189
+ resource: APIResource;
190
+ };
191
+ };
192
+ export declare type Action = InitAction | CleanUpAction | ChangeDocumentAction | RegisterComponentAction | UnregisterComponentAction | RegisterReactComponentAction | UnregisterReactComponentAction | MountComponentAction | UnmountComponentAction | RegisterComponentHandleAction | UnregisterComponentHandleAction | RegisterMeasurableAction | UnregisterMeasurableAction | ChangeElementBoxModelsAction | ChangeDocumentElementSizeAction | ChangeDocumentElementScrollTopAction | RegisterPropControllersHandleAction | UnregisterPropControllersHandleAction | RegisterPropControllersAction | UnregisterPropControllersAction | MessageHostPropControllerAction | MessageBuilderPropControllerAction | ChangeAPIResourceAction;
193
+ export declare function init(): InitAction;
194
+ export declare function cleanUp(): CleanUpAction;
108
195
  export declare function changeDocument(documentKey: string, operation: Operation): ChangeDocumentAction;
109
196
  export declare function registerComponent(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): RegisterComponentAction;
110
197
  export declare function unregisterComponent(type: string): UnregisterComponentAction;
111
198
  export declare function registerComponentEffect(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): ThunkAction<() => void, unknown, unknown, Action>;
112
199
  export declare function registerReactComponentEffect(type: string, component: ComponentType): ThunkAction<() => void, unknown, unknown, Action>;
113
- export declare function mountComponent(elementKey: string): MountComponentAction;
114
- export declare function unmountComponent(elementKey: string): UnmountComponentAction;
115
- export declare function mountComponentEffect(elementKey: string): ThunkAction<() => void, unknown, unknown, Action>;
116
- export declare function changeComponentHandle(elementKey: string, componentHandle: unknown): ChangeComponentHandleAction;
117
- export declare function registerMeasurable(elementKey: string, measurable: Measurable): RegisterMeasurableAction;
118
- export declare function unregisterMeasurable(elementKey: string): UnregisterMeasurableAction;
119
- export declare function registerMeasurableEffect(elementKey: string, measurable: Measurable): ThunkAction<() => void, unknown, unknown, Action>;
120
- export declare function changeElementBoxModels(changedElementBoxModels: Map<string, BoxModel | null>): ChangeElementBoxModelsAction;
200
+ export declare function mountComponent(documentKey: string, elementKey: string): MountComponentAction;
201
+ export declare function unmountComponent(documentKey: string, elementKey: string): UnmountComponentAction;
202
+ export declare function mountComponentEffect(documentKey: string, elementKey: string): ThunkAction<() => void, unknown, unknown, Action>;
203
+ export declare function registerComponentHandleEffect(documentKey: string, elementKey: string, componentHandle: unknown): ThunkAction<() => void, unknown, unknown, Action>;
204
+ export declare function registerMeasurable(documentKey: string, elementKey: string, measurable: Measurable): RegisterMeasurableAction;
205
+ export declare function unregisterMeasurable(documentKey: string, elementKey: string): UnregisterMeasurableAction;
206
+ export declare function registerMeasurableEffect(documentKey: string, elementKey: string, measurable: Measurable): ThunkAction<() => void, unknown, unknown, Action>;
207
+ export declare function changeElementBoxModels(changedElementBoxModels: Map<string, Map<string, BoxModel | null>>): ChangeElementBoxModelsAction;
121
208
  export declare function changeDocumentElementSize(size: Size): ChangeDocumentElementSizeAction;
122
209
  export declare function changeDocumentElementScrollTop(scrollTop: number): ChangeDocumentElementScrollTopAction;
210
+ export declare function registerPropControllersHandle(documentKey: string, elementKey: string, handle: PropControllersHandle): RegisterPropControllersHandleAction;
211
+ export declare function unregisterPropControllersHandle(documentKey: string, elementKey: string): UnregisterPropControllersHandleAction;
212
+ export declare function registerPropControllers(documentKey: string, elementKey: string, propControllers: Record<string, PropController>): RegisterPropControllersAction;
213
+ export declare function unregisterPropControllers(documentKey: string, elementKey: string): UnregisterPropControllersAction;
214
+ export declare function messageHostPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageHostPropControllerAction<T>;
215
+ export declare function messageBuilderPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageBuilderPropControllerAction<T>;
216
+ export declare function changeApiResource(resource: APIResource): ChangeAPIResourceAction;
123
217
  export {};
124
218
  //# sourceMappingURL=actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/state/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAEnD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAqBd,CAAA;AAEV,aAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,OAAO,WAAW,CAAC,eAAe,CAAA;IACxC,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,SAAS,CAAA;KAAE,CAAA;CACvD,CAAA;AAED,aAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,OAAO,WAAW,CAAC,kBAAkB,CAAA;IAC3C,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,aAAa,CAAA;QACnB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAA;KACpE,CAAA;CACF,CAAA;AAED,aAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,OAAO,WAAW,CAAC,oBAAoB,CAAA;IAC7C,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAC1B,CAAA;AAED,aAAK,4BAA4B,GAAG;IAClC,IAAI,EAAE,OAAO,WAAW,CAAC,wBAAwB,CAAA;IAC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M,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,CAAC,GACT,+BAA+B,CAAC,CAAC,CAAC,CAKpC;AAED,wBAAgB,4BAA4B,CAAC,CAAC,EAC5C,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,CAAC,GACT,kCAAkC,CAAC,CAAC,CAAC,CAKvC;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,WAAW,GAAG,uBAAuB,CAEhF"}
@@ -11,12 +11,12 @@ export declare type Measurable = Element | BoxModelHandle;
11
11
  export declare function isMeasurable(value: unknown): value is Measurable;
12
12
  export declare function measure(measurable: Measurable): BoxModel | null;
13
13
  export declare type State = {
14
- measurables: Map<string, Measurable>;
15
- boxModels: Map<string, BoxModel>;
14
+ measurables: Map<string, Map<string, Measurable>>;
15
+ boxModels: Map<string, Map<string, BoxModel>>;
16
16
  };
17
17
  export declare function getInitialState(): State;
18
- export declare function getMeasurables(state: State): Map<string, Measurable>;
19
- export declare function getBoxModels(state: State): Map<string, BoxModel>;
20
- export declare function getBoxModel(state: State, elementKey: string): BoxModel | null;
18
+ export declare function getMeasurables(state: State): Map<string, Map<string, Measurable>>;
19
+ export declare function getBoxModels(state: State): Map<string, Map<string, BoxModel>>;
20
+ export declare function getBoxModel(state: State, documentKey: string, elementKey: string): BoxModel | null;
21
21
  export declare function reducer(state: State | undefined, action: Action): State;
22
22
  //# sourceMappingURL=box-models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"box-models.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/box-models.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,aAAa,EAGd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAEhD,YAAY,EAAE,QAAQ,EAAE,CAAA;AAExB,wBAAgB,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAI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,GAAG,MAAM,CAI/C;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,QAAQ,CAE1D;AAED,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,CAEjD;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,IAAI,QAAQ,GAAG,IAAI,CAAA;CAC/B;AAED,oBAAY,UAAU,GAAG,OAAO,GAAG,cAAc,CAAA;AAEjD,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAahE;AAED,wBAAgB,OAAO,CAAC,UAAU,EAAE,UAAU,GAAG,QAAQ,GAAG,IAAI,CAI/D;AAED,oBAAY,KAAK,GAAG;IAClB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAA;IACjD,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAA;CAC9C,CAAA;AAED,wBAAgB,eAAe,IAAI,KAAK,CAEvC;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAEjF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAE7E;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,QAAQ,GAAG,IAAI,CAEjB;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,SAiDvE"}
@@ -1,12 +1,8 @@
1
- import type { Dispatch as ReactDispatch, SetStateAction } from 'react';
2
1
  import { Action } from '../actions';
3
- import type { Data } from './read-only-documents';
4
- import { PropController } from '../../prop-controllers/instances';
5
- export declare type PropsPropControllers<T extends Record<string, Data> = Record<string, Data>> = {
6
- [K in keyof T]: PropController;
7
- };
8
- export interface PropControllersHandle<T extends Record<string, Data> = Record<string, Data>> {
9
- setPropControllers: ReactDispatch<SetStateAction<PropsPropControllers<T> | null>>;
2
+ import type { DescriptorsPropControllers, PropController } from '../../prop-controllers/instances';
3
+ import type { Descriptor } from '../../prop-controllers/descriptors';
4
+ export interface PropControllersHandle<T extends Record<string, Descriptor> = Record<string, Descriptor>> {
5
+ setPropControllers(propControllers: DescriptorsPropControllers<T> | null): void;
10
6
  }
11
7
  export declare function isPropControllersHandle(value: unknown): value is PropControllersHandle;
12
8
  export declare type State = {
@@ -1 +1 @@
1
- {"version":3,"file":"prop-controller-handles.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/prop-controller-handles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,IAAI,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEtE,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAEjE,oBAAY,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI;KACvF,CAAC,IAAI,MAAM,CAAC,GAAG,cAAc;CAC/B,CAAA;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC;IAC1F,kBAAkB,EAAE,aAAa,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;CAClF;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAWtF;AAED,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAA;IACxD,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CACpE,CAAA;AAED,wBAAgB,eAAe,IAAI,KAAK,CAEvC;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,qBAAqB,GAAG,IAAI,CAE9B;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,cAAc,GAAG,IAAI,CAEvB;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAmD/E"}
1
+ {"version":3,"file":"prop-controller-handles.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/prop-controller-handles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAClG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAA;AAEpE,MAAM,WAAW,qBAAqB,CACpC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAEjE,kBAAkB,CAAC,eAAe,EAAE,0BAA0B,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAA;CAChF;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAWtF;AAED,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAA;IACxD,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CACpE,CAAA;AAED,wBAAgB,eAAe,IAAI,KAAK,CAEvC;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,qBAAqB,GAAG,IAAI,CAE9B;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,cAAc,GAAG,IAAI,CAEvB;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAmD/E"}
@@ -4,7 +4,9 @@ import * as ReactComponents from './modules/react-components';
4
4
  import * as BoxModels from './modules/box-models';
5
5
  import * as ComponentsMeta from './modules/components-meta';
6
6
  import * as PropControllers from './modules/prop-controllers';
7
+ import * as PropControllerHandles from './modules/prop-controller-handles';
7
8
  import { Action } from './actions';
9
+ import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
8
10
  export type { Operation } from './modules/read-write-documents';
9
11
  export type { BoxModelHandle } from './modules/box-models';
10
12
  export { createBox, getBox, parse } from './modules/box-models';
@@ -14,6 +16,7 @@ declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
14
16
  boxModels: BoxModels.State;
15
17
  componentsMeta: ComponentsMeta.State;
16
18
  propControllers: PropControllers.State;
19
+ propControllerHandles: PropControllerHandles.State;
17
20
  isInBuilder: boolean;
18
21
  }>, Action>;
19
22
  export declare type State = ReturnType<typeof reducer>;
@@ -34,7 +37,8 @@ export declare function messageChannelMiddleware(): Middleware<Dispatch, State,
34
37
  export declare type Store = ReduxStore<State, Action> & {
35
38
  dispatch: Dispatch;
36
39
  };
37
- export declare function configureStore({ preloadedState, }?: {
40
+ export declare function configureStore({ preloadedState, client, }: {
38
41
  preloadedState?: PreloadedState<State>;
42
+ client: ApolloClient<NormalizedCacheObject>;
39
43
  }): Store;
40
44
  //# sourceMappingURL=react-builder-preview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-builder-preview.d.ts","sourceRoot":"","sources":["../../../src/state/react-builder-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EAEV,cAAc,EACd,KAAK,IAAI,UAAU,EACpB,MAAM,OAAO,CAAA;AACd,OAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAI/D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EACL,MAAM,EAKP,MAAM,WAAW,CAAA;AAGlB,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAC/D,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE/D,QAAA,MAAM,OAAO;;;;;;;WAOX,CAAA;AAEF,oBAAY,KAAK,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AA4E9C,wBAAgB,sBAAsB,IAAI,WAAW,CAAC,MAAM,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAcxF;AAED,oBAAY,IAAI,GAAG;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IAC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,CAAC,qBAAqB,CAAC,CAAA;CAC5C,GAAG,KAAK,CAYR"}
@@ -19,6 +19,7 @@ export declare type State = ReturnType<typeof reducer>;
19
19
  export declare function getDocumentRootElement(state: State, documentKey: string): Documents.Element | null;
20
20
  export declare function getReactComponent(state: State, type: string): ReactComponents.ComponentType | null;
21
21
  export declare function getElement(state: State, documentKey: string, elementKey: string): Documents.Element | null;
22
+ export declare function getElementPropControllerDescriptors(state: State, documentKey: string, elementKey: string): Record<string, PropControllers.PropControllerDescriptor> | null;
22
23
  export declare function getElementId(state: State, documentKey: string, elementKey: string): string | null;
23
24
  export declare function getIsInBuilder(state: State): boolean;
24
25
  export declare type Dispatch = ThunkDispatch<State, unknown, Action>;
@@ -1 +1 @@
1
- {"version":3,"file":"react-page.d.ts","sourceRoot":"","sources":["../../../src/state/react-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,cAAc,EACd,KAAK,IAAI,UAAU,EACpB,MAAM,OAAO,CAAA;AACd,OAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAA;AAC1D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,WAAW,EACX,gBAAgB,GACjB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,QAAA,MAAM,OAAO;;;;;;WAMX,CAAA;AAEF,oBAAY,KAAK,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAM9C,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,KAA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AAY,KAAK,GAAG,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtE,wBAAgB,cAAc,CAAC,EAC7B,YAAY,EACZ,cAAc,GACf,GAAE;IACD,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IAC7C,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAA;CAClC,GAAG,KAAK,CAMb"}
@@ -0,0 +1,3 @@
1
+ declare const coalesce: <T>(...args: T[]) => T;
2
+ export default coalesce;
3
+ //# sourceMappingURL=coalesce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coalesce.d.ts","sourceRoot":"","sources":["../../../src/utils/coalesce.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ,wBAQb,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const BuilderEditMode: {
2
+ readonly BUILD: "build";
3
+ readonly CONTENT: "content";
4
+ };
5
+ export declare type BuilderEditMode = typeof BuilderEditMode[keyof typeof BuilderEditMode];
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;CAGlB,CAAA;AAEV,oBAAY,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export default function intersection<A extends Record<string, unknown>, B extends A>(a: A, b: B, isEqual?: (a: unknown, b: unknown) => boolean): {
2
+ [K in keyof A]: A[K] | null;
3
+ };
4
+ //# sourceMappingURL=intersection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intersection.d.ts","sourceRoot":"","sources":["../../../src/utils/intersection.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,CAAC,EACjF,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,EACJ,OAAO,GAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,KAAK,OAAmB,GACvD;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;CAAE,CASjC"}
@@ -0,0 +1,5 @@
1
+ declare const keys: <O extends {
2
+ [key: string]: unknown;
3
+ }>(o: O) => (keyof O)[];
4
+ export default keys;
5
+ //# sourceMappingURL=keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/utils/keys.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI;;uBAA8E,CAAA;AAExF,eAAe,IAAI,CAAA"}
@@ -0,0 +1,2 @@
1
+ export default function shallowMerge<A extends Record<string, unknown>, B extends Record<string, unknown>>(a: A, b: B): A & B;
2
+ //# sourceMappingURL=shallowMerge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shallowMerge.d.ts","sourceRoot":"","sources":["../../../src/utils/shallowMerge.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAUnB"}
package/next.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/next.cjs')
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "@makeswift/runtime",
3
- "version": "0.0.0-e89d176",
3
+ "version": "0.0.0-ef05bba",
4
4
  "main": "dist/main.cjs",
5
5
  "module": "dist/main.es",
6
6
  "types": "dist/types",
7
7
  "files": [
8
- "dist"
8
+ "dist",
9
+ "prop-controllers.js",
10
+ "react.js",
11
+ "box-model.js",
12
+ "components.js",
13
+ "api.js",
14
+ "next.js"
9
15
  ],
10
16
  "exports": {
11
17
  ".": {
@@ -27,6 +33,14 @@
27
33
  "./components": {
28
34
  "import": "./dist/components.es.js",
29
35
  "require": "./dist/components.cjs.js"
36
+ },
37
+ "./api": {
38
+ "import": "./dist/api.es.js",
39
+ "require": "./dist/api.cjs.js"
40
+ },
41
+ "./next": {
42
+ "import": "./dist/next.es.js",
43
+ "require": "./dist/next.cjs.js"
30
44
  }
31
45
  },
32
46
  "typesVersions": {
@@ -42,6 +56,12 @@
42
56
  ],
43
57
  "components": [
44
58
  "dist/types/components/index.d.ts"
59
+ ],
60
+ "api": [
61
+ "dist/types/api/index.d.ts"
62
+ ],
63
+ "next": [
64
+ "dist/types/next.d.ts"
45
65
  ]
46
66
  }
47
67
  },
@@ -49,36 +69,32 @@
49
69
  "dev": "concurrently -k 'tsc --watch --preserveWatchOutput' 'vite build --watch'",
50
70
  "build": "tsc && vite build",
51
71
  "preview": "vite preview",
52
- "deploy": "yarn publish . --new-version 0.0.0-$(git rev-parse --short HEAD) --access public"
53
- },
54
- "peerDependenciesMeta": {
55
- "@apollo/client": {
56
- "optional": true
57
- },
58
- "next": {
59
- "optional": true
60
- },
61
- "react": {
62
- "optional": true
63
- },
64
- "styled-components": {
65
- "optional": true
66
- }
72
+ "deploy": "yarn publish . --new-version 0.0.0-$(git rev-parse --short HEAD) --access public && git push origin main",
73
+ "prepare": "yarn build",
74
+ "generate": "graphql-codegen --config codegen.yml"
67
75
  },
68
76
  "peerDependencies": {
69
- "@apollo/client": "^3.3.5",
70
- "next": "12.0.2",
77
+ "next": "^12.0.2",
71
78
  "react": "^17.0.1",
72
- "styled-components": "5.2.0"
79
+ "react-dom": "^17.0.1"
73
80
  },
74
81
  "dependencies": {
82
+ "@apollo/client": "^3.5.10",
83
+ "@convertkit/slate-lists": "^0.2.4",
75
84
  "@popmotion/popcorn": "^0.4.4",
76
- "@types/slate": "^0.47.8",
85
+ "@types/react": "^17.0.3",
86
+ "@types/react-dom": "^17.0.2",
87
+ "@types/slate": "0.47.11",
88
+ "@types/slate-react": "^0.22.9",
77
89
  "@types/styled-components": "^5.1.5",
78
90
  "@types/use-sync-external-store": "^0.0.3",
91
+ "@types/uuid": "^7.0.3",
92
+ "color": "^3.1.3",
93
+ "corporate-ipsum": "^1.0.1",
79
94
  "css-box-model": "^1.2.1",
80
95
  "csstype": "^2.6.5",
81
96
  "framer-motion": "^6.0.0",
97
+ "graphql": "^16.3.0",
82
98
  "immutable": "^4.0.0-rc.12",
83
99
  "ot-json0": "^1.1.0",
84
100
  "polished": "3.0.3",
@@ -87,20 +103,29 @@
87
103
  "redux": "^4.0.5",
88
104
  "redux-thunk": "^2.3.0",
89
105
  "scroll-into-view-if-needed": "^2.2.20",
106
+ "slate": "^0.47.8",
107
+ "slate-hotkeys": "^0.2.9",
108
+ "slate-react": "^0.22.9",
109
+ "styled-components": "5.2.0",
90
110
  "use-sync-external-store": "^1.0.0-rc.0",
91
111
  "uuid": "^3.3.3"
92
112
  },
93
113
  "devDependencies": {
94
- "@apollo/client": "^3.3.5",
114
+ "@graphql-codegen/cli": "2.6.2",
115
+ "@graphql-codegen/typed-document-node": "^2.2.7",
116
+ "@graphql-codegen/typescript-operations": "2.3.4",
95
117
  "@svgr/rollup": "^6.2.1",
96
118
  "@types/color": "^3.0.2",
97
119
  "@types/node": "^17.0.21",
98
120
  "@vitejs/plugin-react": "^1.1.4",
99
- "color": "^3.1.3",
100
121
  "concurrently": "^5.3.0",
101
122
  "next": "12.0.2",
102
123
  "prettier": "^2.5.1",
103
124
  "react": "^17.0.1",
125
+ "react-dom": "^17.0.1",
126
+ "slate": "^0.47.8",
127
+ "slate-react": "^0.22.9",
128
+ "styled-components": "5.2.0",
104
129
  "typescript": "^4.5.5",
105
130
  "vite": "^2.7.2"
106
131
  }
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/prop-controllers.cjs')
package/react.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/react.cjs')
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- declare type Props = {
3
- url?: string;
4
- aspectRatio?: number;
5
- zoom?: number;
6
- opacity?: number;
7
- maskColor?: string;
8
- };
9
- export default function BackgroundVideo({ url, aspectRatio, zoom, maskColor, opacity, }: Props): JSX.Element;
10
- export {};
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/BackgroundsContainer/components/BackgroundVideo/index.tsx"],"names":[],"mappings":";AAgCA,aAAK,KAAK,GAAG;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,GAAQ,EACR,WAAoB,EACpB,IAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA8DrB"}
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { BackgroundsPropControllerData } from '../../../hooks';
3
- declare type Props = {
4
- backgrounds: BackgroundsPropControllerData | null | undefined;
5
- };
6
- export default function Backgrounds({ backgrounds }: Props): JSX.Element;
7
- export {};
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/BackgroundsContainer/components/Backgrounds/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAA;AA0D9D,aAAK,KAAK,GAAG;IAAE,WAAW,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,CAAA;AAE9E,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAmHvE"}
@@ -1,11 +0,0 @@
1
- import { ReactNode, CSSProperties } from 'react';
2
- declare type Props = {
3
- strength: number | null | undefined;
4
- children: (getParallaxProps: <P extends {
5
- style?: CSSProperties;
6
- [key: string]: unknown;
7
- }>(props: P) => P) => ReactNode;
8
- };
9
- export default function Parallax({ strength, children, ...rest }: Props): JSX.Element;
10
- export {};
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/BackgroundsContainer/components/Parallax/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAoBhG,aAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,QAAQ,EAAE,CACR,gBAAgB,EAAE,CAAC,CAAC,SAAS;QAAE,KAAK,CAAC,EAAE,aAAa,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,KAC3F,SAAS,CAAA;CACf,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA4FpF"}
@@ -1,11 +0,0 @@
1
- import { ReactElement, ElementType, ComponentPropsWithoutRef } from 'react';
2
- import { BackgroundsValue as BackgroundsPropControllerValue } from '../../prop-controllers/descriptors';
3
- declare const OuterContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
4
- declare type BaseProps = {
5
- backgrounds: BackgroundsPropControllerValue | null | undefined;
6
- children: ReactElement<ElementType>;
7
- };
8
- declare type Props = BaseProps & Omit<ComponentPropsWithoutRef<typeof OuterContainer>, keyof BaseProps>;
9
- declare const _default: import("react").ForwardRefExoticComponent<Pick<Props, string | number | symbol> & import("react").RefAttributes<HTMLDivElement | null>>;
10
- export default _default;
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/BackgroundsContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EAGX,wBAAwB,EAGzB,MAAM,OAAO,CAAA;AAKd,OAAO,EAAE,gBAAgB,IAAI,8BAA8B,EAAE,MAAM,oCAAoC,CAAA;AAIvG,QAAA,MAAM,cAAc,0KAanB,CAAA;AAED,aAAK,SAAS,GAAG;IACf,WAAW,EAAE,8BAA8B,GAAG,IAAI,GAAG,SAAS,CAAA;IAC9D,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;CACpC,CAAA;AAED,aAAK,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,EAAE,MAAM,SAAS,CAAC,CAAA;;AAE/F,wBAcE"}
@@ -1,30 +0,0 @@
1
- /// <reference types="react" />
2
- import { BoxAnimateIn } from './animations';
3
- import { BorderRadiusValue, ElementIDValue, WidthValue, MarginValue, PaddingValue, ResponsiveIconRadioGroupValue, GridValue, GapYValue, GapXValue, CheckboxValue, ResponsiveSelectValue, ResponsiveNumberValue, BackgroundsValue, BorderValue, ShadowsValue } from '../../prop-controllers/descriptors';
4
- import { BoxModelHandle } from '../../box-model';
5
- declare type Props = {
6
- id?: ElementIDValue;
7
- backgrounds?: BackgroundsValue;
8
- width?: WidthValue;
9
- height?: ResponsiveIconRadioGroupValue<'auto' | 'stretch'>;
10
- verticalAlign?: ResponsiveIconRadioGroupValue<'flex-start' | 'center' | 'flex-end' | 'space-between'>;
11
- margin?: MarginValue;
12
- padding?: PaddingValue;
13
- border?: BorderValue;
14
- borderRadius?: BorderRadiusValue;
15
- boxShadow?: ShadowsValue;
16
- rowGap?: GapYValue;
17
- columnGap?: GapXValue;
18
- boxAnimateType?: ResponsiveSelectValue<BoxAnimateIn>;
19
- boxAnimateDuration?: ResponsiveNumberValue;
20
- boxAnimateDelay?: ResponsiveNumberValue;
21
- itemAnimateType?: ResponsiveSelectValue<BoxAnimateIn>;
22
- itemAnimateDuration?: ResponsiveNumberValue;
23
- itemAnimateDelay?: ResponsiveNumberValue;
24
- itemStaggerDuration?: ResponsiveNumberValue;
25
- hidePlaceholder?: CheckboxValue;
26
- children?: GridValue;
27
- };
28
- declare const _default: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<BoxModelHandle>>;
29
- export default _default;
30
- //# sourceMappingURL=Box.d.ts.map