@makeswift/runtime 0.0.0-a500663 → 0.0.0-d8554fe

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 (377) hide show
  1. package/api.js +1 -0
  2. package/dist/actions.cjs.js +153 -0
  3. package/dist/actions.cjs.js.map +1 -0
  4. package/dist/actions.es.js +135 -0
  5. package/dist/actions.es.js.map +1 -0
  6. package/dist/api.cjs.js +6 -0
  7. package/dist/api.cjs.js.map +1 -0
  8. package/dist/api.es.js +2 -0
  9. package/dist/api.es.js.map +1 -0
  10. package/dist/box-model.cjs.js +9 -0
  11. package/dist/box-model.cjs.js.map +1 -0
  12. package/dist/box-model.es.js +3 -0
  13. package/dist/box-model.es.js.map +1 -0
  14. package/dist/box-models.cjs.js +246 -0
  15. package/dist/box-models.cjs.js.map +1 -0
  16. package/dist/box-models.es.js +237 -0
  17. package/dist/box-models.es.js.map +1 -0
  18. package/dist/components.cjs.js +44 -0
  19. package/dist/components.cjs.js.map +1 -0
  20. package/dist/components.es.js +12 -0
  21. package/dist/components.es.js.map +1 -0
  22. package/dist/constants.cjs.js +146 -0
  23. package/dist/constants.cjs.js.map +1 -0
  24. package/dist/constants.es.js +145 -0
  25. package/dist/constants.es.js.map +1 -0
  26. package/dist/deepEqual.cjs.js +40 -0
  27. package/dist/deepEqual.cjs.js.map +1 -0
  28. package/dist/deepEqual.es.js +39 -0
  29. package/dist/deepEqual.es.js.map +1 -0
  30. package/dist/descriptors.cjs.js +216 -0
  31. package/dist/descriptors.cjs.js.map +1 -0
  32. package/dist/descriptors.es.js +184 -0
  33. package/dist/descriptors.es.js.map +1 -0
  34. package/dist/immutable.es.cjs.js +4459 -0
  35. package/dist/immutable.es.cjs.js.map +1 -0
  36. package/dist/immutable.es.es.js +4450 -0
  37. package/dist/immutable.es.es.js.map +1 -0
  38. package/dist/instances.cjs.js +89 -0
  39. package/dist/instances.cjs.js.map +1 -0
  40. package/dist/instances.es.js +87 -0
  41. package/dist/instances.es.js.map +1 -0
  42. package/dist/main.cjs.js +10 -0
  43. package/dist/main.cjs.js.map +1 -0
  44. package/dist/main.es.js +2 -0
  45. package/dist/main.es.js.map +1 -0
  46. package/dist/prop-controllers.cjs.js +8 -0
  47. package/dist/prop-controllers.cjs.js.map +1 -0
  48. package/dist/prop-controllers.es.js +3 -0
  49. package/dist/prop-controllers.es.js.map +1 -0
  50. package/dist/react-builder-preview.cjs.js +4468 -0
  51. package/dist/react-builder-preview.cjs.js.map +1 -0
  52. package/dist/react-builder-preview.es.js +4461 -0
  53. package/dist/react-builder-preview.es.js.map +1 -0
  54. package/dist/react.cjs.js +22 -0
  55. package/dist/react.cjs.js.map +1 -0
  56. package/dist/react.cjs2.js +33898 -0
  57. package/dist/react.cjs2.js.map +1 -0
  58. package/dist/react.es.js +12 -0
  59. package/dist/react.es.js.map +1 -0
  60. package/dist/react.es2.js +33822 -0
  61. package/dist/react.es2.js.map +1 -0
  62. package/dist/shallowEqual.cjs.js +24 -0
  63. package/dist/shallowEqual.cjs.js.map +1 -0
  64. package/dist/shallowEqual.es.js +23 -0
  65. package/dist/shallowEqual.es.js.map +1 -0
  66. package/dist/types/api/constants.d.ts +4 -0
  67. package/dist/types/api/constants.d.ts.map +1 -0
  68. package/dist/types/api/generated/graphql.d.ts +61 -0
  69. package/dist/types/api/generated/graphql.d.ts.map +1 -0
  70. package/dist/types/api/getFragment.d.ts +4 -0
  71. package/dist/types/api/getFragment.d.ts.map +1 -0
  72. package/dist/types/api/index.d.ts +3 -0
  73. package/dist/types/api/index.d.ts.map +1 -0
  74. package/dist/types/api/react.d.ts +6 -0
  75. package/dist/types/api/react.d.ts.map +1 -0
  76. package/dist/types/api/types.d.ts +4 -0
  77. package/dist/types/api/types.d.ts.map +1 -0
  78. package/{src/box-model.ts → dist/types/box-model.d.ts} +3 -2
  79. package/dist/types/box-model.d.ts.map +1 -0
  80. package/dist/types/codegen-loader.d.ts +2 -0
  81. package/dist/types/codegen-loader.d.ts.map +1 -0
  82. package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts +11 -0
  83. package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -0
  84. package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts +8 -0
  85. package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -0
  86. package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts +11 -0
  87. package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -0
  88. package/dist/types/components/BackgroundsContainer/index.d.ts +11 -0
  89. package/dist/types/components/BackgroundsContainer/index.d.ts.map +1 -0
  90. package/dist/types/components/Box/Box.d.ts +30 -0
  91. package/dist/types/components/Box/Box.d.ts.map +1 -0
  92. package/dist/types/components/Box/animations.d.ts +69 -0
  93. package/dist/types/components/Box/animations.d.ts.map +1 -0
  94. package/dist/types/components/Box/components/Placeholder/index.d.ts +7 -0
  95. package/dist/types/components/Box/components/Placeholder/index.d.ts.map +1 -0
  96. package/dist/types/components/Box/index.d.ts +3 -0
  97. package/dist/types/components/Box/index.d.ts.map +1 -0
  98. package/dist/types/components/Carousel/Carousel.d.ts +25 -0
  99. package/dist/types/components/Carousel/Carousel.d.ts.map +1 -0
  100. package/dist/types/components/Carousel/index.d.ts +2 -0
  101. package/dist/types/components/Carousel/index.d.ts.map +1 -0
  102. package/dist/types/components/Countdown/Countdown.d.ts +24 -0
  103. package/dist/types/components/Countdown/Countdown.d.ts.map +1 -0
  104. package/dist/types/components/Countdown/index.d.ts +2 -0
  105. package/dist/types/components/Countdown/index.d.ts.map +1 -0
  106. package/dist/types/components/Divider/Divider.d.ts +14 -0
  107. package/dist/types/components/Divider/Divider.d.ts.map +1 -0
  108. package/dist/types/components/Divider/index.d.ts +2 -0
  109. package/dist/types/components/Divider/index.d.ts.map +1 -0
  110. package/dist/types/components/Embed/Embed.d.ts +11 -0
  111. package/dist/types/components/Embed/Embed.d.ts.map +1 -0
  112. package/dist/types/components/Embed/index.d.ts +2 -0
  113. package/dist/types/components/Embed/index.d.ts.map +1 -0
  114. package/dist/types/components/Image/Image.d.ts +26 -0
  115. package/dist/types/components/Image/Image.d.ts.map +1 -0
  116. package/dist/types/components/Image/index.d.ts +2 -0
  117. package/dist/types/components/Image/index.d.ts.map +1 -0
  118. package/dist/types/components/Link/index.d.ts +9 -0
  119. package/dist/types/components/Link/index.d.ts.map +1 -0
  120. package/dist/types/components/RichText/index.d.ts +5 -0
  121. package/dist/types/components/RichText/index.d.ts.map +1 -0
  122. package/dist/types/components/Root/Root.d.ts +11 -0
  123. package/dist/types/components/Root/Root.d.ts.map +1 -0
  124. package/dist/types/components/Root/components/Placeholder/index.d.ts +5 -0
  125. package/dist/types/components/Root/components/Placeholder/index.d.ts.map +1 -0
  126. package/dist/types/components/Root/index.d.ts +2 -0
  127. package/dist/types/components/Root/index.d.ts.map +1 -0
  128. package/dist/types/components/builtin/Box/Box.d.ts +33 -0
  129. package/dist/types/components/builtin/Box/Box.d.ts.map +1 -0
  130. package/dist/types/components/builtin/Box/animations.d.ts +69 -0
  131. package/dist/types/components/builtin/Box/animations.d.ts.map +1 -0
  132. package/dist/types/components/builtin/Box/components/Placeholder/index.d.ts +7 -0
  133. package/dist/types/components/builtin/Box/components/Placeholder/index.d.ts.map +1 -0
  134. package/dist/types/components/builtin/Box/index.d.ts +3 -0
  135. package/dist/types/components/builtin/Box/index.d.ts.map +1 -0
  136. package/dist/types/components/builtin/Button/Button.d.ts +118 -0
  137. package/dist/types/components/builtin/Button/Button.d.ts.map +1 -0
  138. package/dist/types/components/builtin/Button/index.d.ts +2 -0
  139. package/dist/types/components/builtin/Button/index.d.ts.map +1 -0
  140. package/dist/types/components/builtin/Carousel/Carousel.d.ts +28 -0
  141. package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -0
  142. package/dist/types/components/builtin/Carousel/index.d.ts +2 -0
  143. package/dist/types/components/builtin/Carousel/index.d.ts.map +1 -0
  144. package/dist/types/components/builtin/Countdown/Countdown.d.ts +27 -0
  145. package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -0
  146. package/dist/types/components/builtin/Countdown/index.d.ts +2 -0
  147. package/dist/types/components/builtin/Countdown/index.d.ts.map +1 -0
  148. package/dist/types/components/builtin/Divider/Divider.d.ts +17 -0
  149. package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -0
  150. package/dist/types/components/builtin/Divider/index.d.ts +2 -0
  151. package/dist/types/components/builtin/Divider/index.d.ts.map +1 -0
  152. package/dist/types/components/builtin/Embed/Embed.d.ts +14 -0
  153. package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -0
  154. package/dist/types/components/builtin/Embed/index.d.ts +2 -0
  155. package/dist/types/components/builtin/Embed/index.d.ts.map +1 -0
  156. package/dist/types/components/builtin/Image/Image.d.ts +29 -0
  157. package/dist/types/components/builtin/Image/Image.d.ts.map +1 -0
  158. package/dist/types/components/builtin/Image/index.d.ts +2 -0
  159. package/dist/types/components/builtin/Image/index.d.ts.map +1 -0
  160. package/dist/types/components/builtin/Navigation/Navigation.d.ts +26 -0
  161. package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -0
  162. package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts +100 -0
  163. package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -0
  164. package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts +8 -0
  165. package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts.map +1 -0
  166. package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts +101 -0
  167. package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts.map +1 -0
  168. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts +13 -0
  169. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -0
  170. package/dist/types/components/builtin/Navigation/index.d.ts +2 -0
  171. package/dist/types/components/builtin/Navigation/index.d.ts.map +1 -0
  172. package/dist/types/components/builtin/Root/Root.d.ts +14 -0
  173. package/dist/types/components/builtin/Root/Root.d.ts.map +1 -0
  174. package/dist/types/components/builtin/Root/components/Placeholder/index.d.ts +5 -0
  175. package/dist/types/components/builtin/Root/components/Placeholder/index.d.ts.map +1 -0
  176. package/dist/types/components/builtin/Root/index.d.ts +2 -0
  177. package/dist/types/components/builtin/Root/index.d.ts.map +1 -0
  178. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +21 -0
  179. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -0
  180. package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts +8 -0
  181. package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts.map +1 -0
  182. package/dist/types/components/builtin/SocialLinks/index.d.ts +2 -0
  183. package/dist/types/components/builtin/SocialLinks/index.d.ts.map +1 -0
  184. package/dist/types/components/builtin/SocialLinks/options.d.ts +113 -0
  185. package/dist/types/components/builtin/SocialLinks/options.d.ts.map +1 -0
  186. package/dist/types/components/builtin/Text/Text.d.ts +19 -0
  187. package/dist/types/components/builtin/Text/Text.d.ts.map +1 -0
  188. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts +24 -0
  189. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts.map +1 -0
  190. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Link/index.d.ts +9 -0
  191. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Link/index.d.ts.map +1 -0
  192. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts +25 -0
  193. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts.map +1 -0
  194. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts +13 -0
  195. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts.map +1 -0
  196. package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts +5 -0
  197. package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts.map +1 -0
  198. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts +3 -0
  199. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts.map +1 -0
  200. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts +3 -0
  201. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts.map +1 -0
  202. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts +3 -0
  203. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts.map +1 -0
  204. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts +3 -0
  205. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts.map +1 -0
  206. package/dist/types/components/builtin/Text/hooks/useRichText.d.ts +1 -0
  207. package/dist/types/components/builtin/Text/hooks/useRichText.d.ts.map +1 -0
  208. package/dist/types/components/builtin/Text/index.d.ts +2 -0
  209. package/dist/types/components/builtin/Text/index.d.ts.map +1 -0
  210. package/dist/types/components/builtin/Text/prop-controllers.d.ts +286 -0
  211. package/dist/types/components/builtin/Text/prop-controllers.d.ts.map +1 -0
  212. package/dist/types/components/builtin/index.d.ts +15 -0
  213. package/dist/types/components/builtin/index.d.ts.map +1 -0
  214. package/dist/types/components/hooks/index.d.ts +8 -0
  215. package/dist/types/components/hooks/index.d.ts.map +1 -0
  216. package/dist/types/components/hooks/useBackgrounds.d.ts +59 -0
  217. package/dist/types/components/hooks/useBackgrounds.d.ts.map +1 -0
  218. package/dist/types/components/hooks/useBorder.d.ts +19 -0
  219. package/dist/types/components/hooks/useBorder.d.ts.map +1 -0
  220. package/dist/types/components/hooks/useBoxShadow.d.ts +19 -0
  221. package/dist/types/components/hooks/useBoxShadow.d.ts.map +1 -0
  222. package/dist/types/components/hooks/useColor.d.ts +7 -0
  223. package/dist/types/components/hooks/useColor.d.ts.map +1 -0
  224. package/dist/types/components/hooks/useFile.d.ts +13 -0
  225. package/dist/types/components/hooks/useFile.d.ts.map +1 -0
  226. package/dist/types/components/hooks/useMediaQuery.d.ts +3 -0
  227. package/dist/types/components/hooks/useMediaQuery.d.ts.map +1 -0
  228. package/dist/types/components/hooks/usePage.d.ts +7 -0
  229. package/dist/types/components/hooks/usePage.d.ts.map +1 -0
  230. package/dist/types/components/hooks/useRichText.d.ts +18 -0
  231. package/dist/types/components/hooks/useRichText.d.ts.map +1 -0
  232. package/dist/types/components/hooks/useTypography.d.ts +24 -0
  233. package/dist/types/components/hooks/useTypography.d.ts.map +1 -0
  234. package/dist/types/components/index.d.ts +3 -0
  235. package/dist/types/components/index.d.ts.map +1 -0
  236. package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts +11 -0
  237. package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -0
  238. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts +8 -0
  239. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -0
  240. package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts +11 -0
  241. package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -0
  242. package/dist/types/components/shared/BackgroundsContainer/index.d.ts +11 -0
  243. package/dist/types/components/shared/BackgroundsContainer/index.d.ts.map +1 -0
  244. package/dist/types/components/shared/GutterContainer/index.d.ts +8 -0
  245. package/dist/types/components/shared/GutterContainer/index.d.ts.map +1 -0
  246. package/dist/types/components/shared/Link/index.d.ts +9 -0
  247. package/dist/types/components/shared/Link/index.d.ts.map +1 -0
  248. package/dist/types/components/shared/RichTextEditor/components/Block/index.d.ts +24 -0
  249. package/dist/types/components/shared/RichTextEditor/components/Block/index.d.ts.map +1 -0
  250. package/dist/types/components/shared/RichTextEditor/components/Link/index.d.ts +9 -0
  251. package/dist/types/components/shared/RichTextEditor/components/Link/index.d.ts.map +1 -0
  252. package/dist/types/components/shared/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts +23 -0
  253. package/dist/types/components/shared/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts.map +1 -0
  254. package/dist/types/components/shared/RichTextEditor/components/Mark/index.d.ts +13 -0
  255. package/dist/types/components/shared/RichTextEditor/components/Mark/index.d.ts.map +1 -0
  256. package/dist/types/components/shared/RichTextEditor/index.d.ts +5 -0
  257. package/dist/types/components/shared/RichTextEditor/index.d.ts.map +1 -0
  258. package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts +3 -0
  259. package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts.map +1 -0
  260. package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesMarks.d.ts +3 -0
  261. package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesMarks.d.ts.map +1 -0
  262. package/dist/types/components/shared/RichTextEditor/plugins/Inlines.d.ts +3 -0
  263. package/dist/types/components/shared/RichTextEditor/plugins/Inlines.d.ts.map +1 -0
  264. package/dist/types/components/shared/RichTextEditor/plugins/Link.d.ts +3 -0
  265. package/dist/types/components/shared/RichTextEditor/plugins/Link.d.ts.map +1 -0
  266. package/dist/types/components/utils/colorToString.d.ts +3 -0
  267. package/dist/types/components/utils/colorToString.d.ts.map +1 -0
  268. package/dist/types/components/utils/columns.d.ts +2 -0
  269. package/dist/types/components/utils/columns.d.ts.map +1 -0
  270. package/dist/types/components/utils/contants.d.ts +5 -0
  271. package/dist/types/components/utils/contants.d.ts.map +1 -0
  272. package/dist/types/components/utils/cssMediaRules.d.ts +69 -0
  273. package/dist/types/components/utils/cssMediaRules.d.ts.map +1 -0
  274. package/dist/types/components/utils/devices.d.ts +17 -0
  275. package/dist/types/components/utils/devices.d.ts.map +1 -0
  276. package/dist/types/components/utils/intersection.d.ts +4 -0
  277. package/dist/types/components/utils/intersection.d.ts.map +1 -0
  278. package/dist/types/components/utils/isNonNullable.d.ts +2 -0
  279. package/dist/types/components/utils/isNonNullable.d.ts.map +1 -0
  280. package/dist/types/components/utils/keys.d.ts +5 -0
  281. package/dist/types/components/utils/keys.d.ts.map +1 -0
  282. package/dist/types/components/utils/placeholders.d.ts +10 -0
  283. package/dist/types/components/utils/placeholders.d.ts.map +1 -0
  284. package/dist/types/components/utils/queries.d.ts +7 -0
  285. package/dist/types/components/utils/queries.d.ts.map +1 -0
  286. package/dist/types/components/utils/types.d.ts +11 -0
  287. package/dist/types/components/utils/types.d.ts.map +1 -0
  288. package/dist/types/generated/graphql.d.ts +20 -0
  289. package/dist/types/generated/graphql.d.ts.map +1 -0
  290. package/dist/types/index.d.ts +7 -0
  291. package/dist/types/index.d.ts.map +1 -0
  292. package/dist/types/prop-controllers/descriptors.d.ts +692 -0
  293. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -0
  294. package/dist/types/prop-controllers/index.d.ts +5 -0
  295. package/dist/types/prop-controllers/index.d.ts.map +1 -0
  296. package/dist/types/prop-controllers/instances.d.ts +69 -0
  297. package/dist/types/prop-controllers/instances.d.ts.map +1 -0
  298. package/dist/types/prop-controllers/introspection.d.ts +5 -0
  299. package/dist/types/prop-controllers/introspection.d.ts.map +1 -0
  300. package/dist/types/react.d.ts +4 -0
  301. package/dist/types/react.d.ts.map +1 -0
  302. package/dist/types/runtimes/react.d.ts +36 -0
  303. package/dist/types/runtimes/react.d.ts.map +1 -0
  304. package/dist/types/state/actions.d.ts +208 -0
  305. package/dist/types/state/actions.d.ts.map +1 -0
  306. package/dist/types/state/modules/box-models.d.ts +22 -0
  307. package/dist/types/state/modules/box-models.d.ts.map +1 -0
  308. package/dist/types/state/modules/components-meta.d.ts +14 -0
  309. package/dist/types/state/modules/components-meta.d.ts.map +1 -0
  310. package/dist/types/state/modules/makeswift-api-client.d.ts +17 -0
  311. package/dist/types/state/modules/makeswift-api-client.d.ts.map +1 -0
  312. package/dist/types/state/modules/prop-controller-handles.d.ts +16 -0
  313. package/dist/types/state/modules/prop-controller-handles.d.ts.map +1 -0
  314. package/dist/types/state/modules/prop-controllers.d.ts +11 -0
  315. package/dist/types/state/modules/prop-controllers.d.ts.map +1 -0
  316. package/dist/types/state/modules/react-components.d.ts +10 -0
  317. package/dist/types/state/modules/react-components.d.ts.map +1 -0
  318. package/dist/types/state/modules/read-only-documents.d.ts +28 -0
  319. package/dist/types/state/modules/read-only-documents.d.ts.map +1 -0
  320. package/dist/types/state/modules/read-write-documents.d.ts +13 -0
  321. package/dist/types/state/modules/read-write-documents.d.ts.map +1 -0
  322. package/dist/types/state/react-builder-preview.d.ts +44 -0
  323. package/dist/types/state/react-builder-preview.d.ts.map +1 -0
  324. package/dist/types/state/react-page.d.ts +33 -0
  325. package/dist/types/state/react-page.d.ts.map +1 -0
  326. package/dist/types/types.d.ts +2 -0
  327. package/dist/types/types.d.ts.map +1 -0
  328. package/dist/types/utils/clamp.d.ts +3 -0
  329. package/dist/types/utils/clamp.d.ts.map +1 -0
  330. package/dist/types/utils/coalesce.d.ts +3 -0
  331. package/dist/types/utils/coalesce.d.ts.map +1 -0
  332. package/dist/types/utils/constants.d.ts +6 -0
  333. package/dist/types/utils/constants.d.ts.map +1 -0
  334. package/dist/types/utils/deepEqual.d.ts +3 -0
  335. package/dist/types/utils/deepEqual.d.ts.map +1 -0
  336. package/dist/types/utils/intersection.d.ts +4 -0
  337. package/dist/types/utils/intersection.d.ts.map +1 -0
  338. package/dist/types/utils/is.d.ts +2 -0
  339. package/dist/types/utils/is.d.ts.map +1 -0
  340. package/dist/types/utils/keys.d.ts +5 -0
  341. package/dist/types/utils/keys.d.ts.map +1 -0
  342. package/dist/types/utils/shallowEqual.d.ts +3 -0
  343. package/dist/types/utils/shallowEqual.d.ts.map +1 -0
  344. package/dist/types/utils/shallowMerge.d.ts +2 -0
  345. package/dist/types/utils/shallowMerge.d.ts.map +1 -0
  346. package/package.json +71 -27
  347. package/favicon.svg +0 -15
  348. package/index.html +0 -13
  349. package/src/components/Root/Root.tsx +0 -72
  350. package/src/components/Root/components/Placeholder/index.tsx +0 -37
  351. package/src/components/Root/index.tsx +0 -1
  352. package/src/components/index.ts +0 -1
  353. package/src/components/utils/columns.ts +0 -15
  354. package/src/components/utils/cssMediaRules.ts +0 -91
  355. package/src/components/utils/devices.ts +0 -86
  356. package/src/index.ts +0 -8
  357. package/src/prop-controllers/descriptors.ts +0 -821
  358. package/src/prop-controllers/index.ts +0 -10
  359. package/src/react.ts +0 -3
  360. package/src/runtimes/react.tsx +0 -223
  361. package/src/state/actions.ts +0 -239
  362. package/src/state/modules/box-models.ts +0 -112
  363. package/src/state/modules/components-meta.ts +0 -44
  364. package/src/state/modules/prop-controllers.ts +0 -45
  365. package/src/state/modules/react-components.tsx +0 -47
  366. package/src/state/modules/read-only-documents.ts +0 -51
  367. package/src/state/modules/read-write-documents.ts +0 -75
  368. package/src/state/react-builder-preview.ts +0 -271
  369. package/src/state/react-page.ts +0 -73
  370. package/src/style.css +0 -8
  371. package/src/utils/deepEqual.ts +0 -33
  372. package/src/utils/is.ts +0 -5
  373. package/src/utils/shallowEqual.ts +0 -30
  374. package/src/vite-env.d.ts +0 -1
  375. package/tsconfig.json +0 -23
  376. package/types/ot-json0.d.ts +0 -35
  377. package/vite.config.ts +0 -28
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptors.d.ts","sourceRoot":"","sources":["../../../src/prop-controllers/descriptors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AACnC,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAGxD,oBAAY,kBAAkB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7D;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,kBAAkB,CAAC,CA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,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA"}
@@ -0,0 +1,5 @@
1
+ export type { Descriptor as PropControllerDescriptor, DescriptorValueType as PropControllerDescriptorValueType, PanelDescriptor, Device, DeviceOverride, ResponsiveValue, ResponsiveValueType, Length, } from './descriptors';
2
+ export * as Props from './descriptors';
3
+ export type { PropControllerMessage, RichTextPropControllerMessage } from './instances';
4
+ export { RichTextPropControllerMessageType } from './instances';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prop-controllers/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,IAAI,wBAAwB,EACtC,mBAAmB,IAAI,iCAAiC,EACxD,eAAe,EACf,MAAM,EACN,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,MAAM,GACP,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AACtC,YAAY,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,69 @@
1
+ import { Editor } from 'slate-react';
2
+ import { ValueJSON } from 'slate';
3
+ import { OnChangeParam } from 'slate-react';
4
+ import { Descriptor, RichTextDescriptor, Types } from './descriptors';
5
+ import { BuilderEditMode } from '../utils/constants';
6
+ export declare const RichTextPropControllerMessageType: {
7
+ readonly CHANGE_BUILDER_EDIT_MODE: "CHANGE_BUILDER_EDIT_MODE";
8
+ readonly INITIALIZE_EDITOR: "INITIALIZE_EDITOR";
9
+ readonly CHANGE_EDITOR_VALUE: "CHANGE_EDITOR_VALUE";
10
+ readonly FOCUS: "FOCUS";
11
+ readonly BLUR: "BLUR";
12
+ readonly UNDO: "UNDO";
13
+ readonly REDO: "REDO";
14
+ };
15
+ declare type ChangeBuilderEditModeRichTextPropControllerMessage = {
16
+ type: typeof RichTextPropControllerMessageType.CHANGE_BUILDER_EDIT_MODE;
17
+ editMode: BuilderEditMode;
18
+ };
19
+ declare type InitializeEditorRichTextPropControllerMessage = {
20
+ type: typeof RichTextPropControllerMessageType.INITIALIZE_EDITOR;
21
+ value: ValueJSON;
22
+ };
23
+ declare type ChangeEditorValueRichTextPropControllerMessage = {
24
+ type: typeof RichTextPropControllerMessageType.CHANGE_EDITOR_VALUE;
25
+ value: ValueJSON;
26
+ };
27
+ declare type FocusRichTextPropControllerMessage = {
28
+ type: typeof RichTextPropControllerMessageType.FOCUS;
29
+ };
30
+ declare type BlurRichTextPropControllerMessage = {
31
+ type: typeof RichTextPropControllerMessageType.BLUR;
32
+ };
33
+ declare type UndoRichTextPropControllerMessage = {
34
+ type: typeof RichTextPropControllerMessageType.UNDO;
35
+ };
36
+ declare type RedoRichTextPropControllerMessage = {
37
+ type: typeof RichTextPropControllerMessageType.REDO;
38
+ };
39
+ export declare type RichTextPropControllerMessage = ChangeBuilderEditModeRichTextPropControllerMessage | InitializeEditorRichTextPropControllerMessage | ChangeEditorValueRichTextPropControllerMessage | FocusRichTextPropControllerMessage | BlurRichTextPropControllerMessage | UndoRichTextPropControllerMessage | RedoRichTextPropControllerMessage;
40
+ export declare type PropControllerMessage = RichTextPropControllerMessage;
41
+ declare type Send<T = PropControllerMessage> = (message: T) => void;
42
+ export declare abstract class PropController<T = PropControllerMessage> {
43
+ protected send: Send<T>;
44
+ constructor(send: Send<T>);
45
+ abstract recv(message: T): void;
46
+ }
47
+ declare class DefaultPropController extends PropController {
48
+ recv(_message: PropControllerMessage): void;
49
+ }
50
+ declare class RichTextPropController extends PropController<RichTextPropControllerMessage> {
51
+ private editor;
52
+ recv(message: RichTextPropControllerMessage): void;
53
+ setSlateEditor(editor: Editor): void;
54
+ onChange(change: OnChangeParam): void;
55
+ focus(): void;
56
+ blur(): void;
57
+ undo(): void;
58
+ redo(): void;
59
+ }
60
+ declare type DescriptorPropController<T extends Descriptor> = T extends {
61
+ type: typeof Types.RichText;
62
+ } ? RichTextPropController : DefaultPropController;
63
+ export declare type DescriptorsPropControllers<T extends Record<string, Descriptor>> = {
64
+ [K in keyof T]: undefined extends T[K] ? DescriptorPropController<Exclude<T[K], undefined>> : DescriptorPropController<T[K]>;
65
+ };
66
+ export declare function createPropController(descriptor: RichTextDescriptor, send: Send<RichTextPropControllerMessage>): RichTextPropController;
67
+ export declare function createPropController(descriptor: Descriptor, send: Send): PropController;
68
+ export {};
69
+ //# sourceMappingURL=instances.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instances.d.ts","sourceRoot":"","sources":["../../../src/prop-controllers/instances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD,eAAO,MAAM,iCAAiC;;;;;;;;CAQpC,CAAA;AAEV,aAAK,kDAAkD,GAAG;IACxD,IAAI,EAAE,OAAO,iCAAiC,CAAC,wBAAwB,CAAA;IACvE,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAA;AAED,aAAK,6CAA6C,GAAG;IACnD,IAAI,EAAE,OAAO,iCAAiC,CAAC,iBAAiB,CAAA;IAChE,KAAK,EAAE,SAAS,CAAA;CACjB,CAAA;AAED,aAAK,8CAA8C,GAAG;IACpD,IAAI,EAAE,OAAO,iCAAiC,CAAC,mBAAmB,CAAA;IAClE,KAAK,EAAE,SAAS,CAAA;CACjB,CAAA;AAED,aAAK,kCAAkC,GAAG;IAAE,IAAI,EAAE,OAAO,iCAAiC,CAAC,KAAK,CAAA;CAAE,CAAA;AAElG,aAAK,iCAAiC,GAAG;IAAE,IAAI,EAAE,OAAO,iCAAiC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BAA0B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI;KAC5E,CAAC,IAAI,MAAM,CAAC,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,CAAC,GAClC,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,GAClD,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,CAAA;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,kBAAkB,EAC9B,IAAI,EAAE,IAAI,CAAC,6BAA6B,CAAC,GACxC,sBAAsB,CAAA;AACzB,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAAG,cAAc,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { Descriptor } from './descriptors';
2
+ import { Data, Element } from '../state/react-page';
3
+ export declare function getElementChildren<T extends Data>(descriptor: Descriptor<T>, prop: T | undefined): Element[];
4
+ export declare function getElementId<T extends Data>(descriptor: Descriptor<T>, prop: T | undefined): string | null;
5
+ //# sourceMappingURL=introspection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"introspection.d.ts","sourceRoot":"","sources":["../../../src/prop-controllers/introspection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAoC,MAAM,eAAe,CAAA;AAC5E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAEnD,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,IAAI,EAC/C,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,EACzB,IAAI,EAAE,CAAC,GAAG,SAAS,GAClB,OAAO,EAAE,CAUX;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,IAAI,EACzC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,EACzB,IAAI,EAAE,CAAC,GAAG,SAAS,GAClB,MAAM,GAAG,IAAI,CAUf"}
@@ -0,0 +1,4 @@
1
+ export type { Action } from './state/actions';
2
+ export { ActionTypes, changeDocument } from './state/actions';
3
+ export { Document, Element, RuntimeProvider, ReactRuntime, useIsInBuilder } from './runtimes/react';
4
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { ReactNode } from 'react';
2
+ import * as ReactPage from '../state/react-page';
3
+ import type { PropControllerDescriptor, PropControllerDescriptorValueType } from '../prop-controllers';
4
+ import { ComponentIcon } from '../state/modules/components-meta';
5
+ export interface ReactRuntime {
6
+ registerComponent<P extends Record<string, PropControllerDescriptor>, C extends ReactPage.ComponentType<{
7
+ [K in keyof P]?: PropControllerDescriptorValueType<P[K]>;
8
+ }>>(component: C, meta: {
9
+ type: string;
10
+ label: string;
11
+ icon?: ComponentIcon;
12
+ hidden?: boolean;
13
+ props?: P;
14
+ }): () => void;
15
+ }
16
+ export declare function createReactRuntime(store: ReactPage.Store): ReactRuntime;
17
+ export declare const ReactRuntime: ReactRuntime;
18
+ declare type RuntimeProviderProps = {
19
+ defaultRootElements?: Map<string, ReactPage.Element>;
20
+ children?: ReactNode;
21
+ registerComponents?: (runtime: ReactRuntime) => () => void;
22
+ makeswiftApiEndpoint?: string;
23
+ };
24
+ export declare function RuntimeProvider({ children, defaultRootElements, registerComponents, makeswiftApiEndpoint, }: RuntimeProviderProps): JSX.Element;
25
+ export declare function useElementId(elementKey: string | null | undefined): string | null;
26
+ export declare function useIsInBuilder(): boolean;
27
+ declare type ElementProps = {
28
+ element: ReactPage.Element;
29
+ };
30
+ export declare const Element: import("react").NamedExoticComponent<ElementProps>;
31
+ declare type DocumentProps = {
32
+ documentKey: string;
33
+ };
34
+ export declare const Document: import("react").NamedExoticComponent<DocumentProps>;
35
+ export {};
36
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/runtimes/react.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAKV,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAA;AAQhD,OAAO,KAAK,EACV,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAMhE,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CACf,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,EAClD,CAAC,SAAS,SAAS,CAAC,aAAa,CAAC;SAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,iCAAiC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAC,EAE/F,SAAS,EAAE,CAAC,EACZ,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,CAAC,CAAA;KAAE,GACvF,MAAM,IAAI,CAAA;CACd;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,GAAG,YAAY,CAiBvE;AAED,eAAO,MAAM,YAAY,cAA0C,CAAA;AAInE,aAAK,oBAAoB,GAAG;IAC1B,mBAAmB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,IAAI,CAAA;IAC1D,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,GACrB,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CA4FpC;AAoBD,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAQjF;AAMD,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAwDD,aAAK,YAAY,GAAG;IAClB,OAAO,EAAE,SAAS,CAAC,OAAO,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,OAAO,oDAuBlB,CAAA;AAEF,aAAK,aAAa,GAAG;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,QAAQ,qDAmBnB,CAAA"}
@@ -0,0 +1,208 @@
1
+ import type { Operation } from 'ot-json0';
2
+ import type { ComponentType } from './modules/react-components';
3
+ import type { Measurable, BoxModel } from './modules/box-models';
4
+ import type { ThunkAction } from 'redux-thunk';
5
+ import { ComponentMeta } from './modules/components-meta';
6
+ import { PropControllerDescriptor } from '../prop-controllers';
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';
11
+ export declare const ActionTypes: {
12
+ readonly CHANGE_DOCUMENT: "CHANGE_DOCUMENT";
13
+ readonly REGISTER_COMPONENT: "REGISTER_COMPONENT";
14
+ readonly UNREGISTER_COMPONENT: "UNREGISTER_COMPONENT";
15
+ readonly REGISTER_REACT_COMPONENT: "REGISTER_REACT_COMPONENT";
16
+ readonly UNREGISTER_REACT_COMPONENT: "UNREGISTER_REACT_COMPONENT";
17
+ readonly MOUNT_COMPONENT: "MOUNT_COMPONENT";
18
+ readonly UNMOUNT_COMPONENT: "UNMOUNT_COMPONENT";
19
+ readonly REGISTER_COMPONENT_HANDLE: "REGISTER_COMPONENT_HANDLE";
20
+ readonly UNREGISTER_COMPONENT_HANDLE: "UNREGISTER_COMPONENT_HANDLE";
21
+ readonly REGISTER_MEASURABLE: "REGISTER_MEASURABLE";
22
+ readonly UNREGISTER_MEASURABLE: "UNREGISTER_MEASURABLE";
23
+ readonly CHANGE_ELEMENT_BOX_MODELS: "CHANGE_ELEMENT_BOX_MODELS";
24
+ readonly CHANGE_DOCUMENT_ELEMENT_SIZE: "CHANGE_DOCUMENT_ELEMENT_SIZE";
25
+ readonly CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP: "CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP";
26
+ readonly REGISTER_PROP_CONTROLLERS_HANDLE: "REGISTER_PROP_CONTROLLERS_HANDLE";
27
+ readonly UNREGISTER_PROP_CONTROLLERS_HANDLE: "UNREGISTER_PROP_CONTROLLERS_HANDLE";
28
+ readonly REGISTER_PROP_CONTROLLERS: "REGISTER_PROP_CONTROLLERS";
29
+ readonly UNREGISTER_PROP_CONTROLLERS: "UNREGISTER_PROP_CONTROLLERS";
30
+ readonly MESSAGE_HOST_PROP_CONTROLLER: "MESSAGE_HOST_PROP_CONTROLLER";
31
+ readonly MESSAGE_BUILDER_PROP_CONTROLLER: "MESSAGE_BUILDER_PROP_CONTROLLER";
32
+ readonly CHANGE_API_RESOURCE: "CHANGE_API_RESOURCE";
33
+ };
34
+ declare type ChangeDocumentAction = {
35
+ type: typeof ActionTypes.CHANGE_DOCUMENT;
36
+ payload: {
37
+ documentKey: string;
38
+ operation: Operation;
39
+ };
40
+ };
41
+ declare type RegisterComponentAction = {
42
+ type: typeof ActionTypes.REGISTER_COMPONENT;
43
+ payload: {
44
+ type: string;
45
+ meta: ComponentMeta;
46
+ propControllerDescriptors: Record<string, PropControllerDescriptor>;
47
+ };
48
+ };
49
+ declare type UnregisterComponentAction = {
50
+ type: typeof ActionTypes.UNREGISTER_COMPONENT;
51
+ payload: {
52
+ type: string;
53
+ };
54
+ };
55
+ declare type RegisterReactComponentAction = {
56
+ type: typeof ActionTypes.REGISTER_REACT_COMPONENT;
57
+ payload: {
58
+ type: string;
59
+ component: ComponentType;
60
+ };
61
+ };
62
+ declare type UnregisterReactComponentAction = {
63
+ type: typeof ActionTypes.UNREGISTER_REACT_COMPONENT;
64
+ payload: {
65
+ type: string;
66
+ };
67
+ };
68
+ declare type MountComponentAction = {
69
+ type: typeof ActionTypes.MOUNT_COMPONENT;
70
+ payload: {
71
+ documentKey: string;
72
+ elementKey: string;
73
+ };
74
+ };
75
+ declare type UnmountComponentAction = {
76
+ type: typeof ActionTypes.UNMOUNT_COMPONENT;
77
+ payload: {
78
+ documentKey: string;
79
+ elementKey: string;
80
+ };
81
+ };
82
+ declare type RegisterComponentHandleAction = {
83
+ type: typeof ActionTypes.REGISTER_COMPONENT_HANDLE;
84
+ payload: {
85
+ documentKey: string;
86
+ elementKey: string;
87
+ componentHandle: unknown;
88
+ };
89
+ };
90
+ declare type UnregisterComponentHandleAction = {
91
+ type: typeof ActionTypes.UNREGISTER_COMPONENT_HANDLE;
92
+ payload: {
93
+ documentKey: string;
94
+ elementKey: string;
95
+ };
96
+ };
97
+ declare type RegisterMeasurableAction = {
98
+ type: typeof ActionTypes.REGISTER_MEASURABLE;
99
+ payload: {
100
+ documentKey: string;
101
+ elementKey: string;
102
+ measurable: Measurable;
103
+ };
104
+ };
105
+ declare type UnregisterMeasurableAction = {
106
+ type: typeof ActionTypes.UNREGISTER_MEASURABLE;
107
+ payload: {
108
+ documentKey: string;
109
+ elementKey: string;
110
+ };
111
+ };
112
+ declare type ChangeElementBoxModelsAction = {
113
+ type: typeof ActionTypes.CHANGE_ELEMENT_BOX_MODELS;
114
+ payload: {
115
+ changedElementBoxModels: Map<string, Map<string, BoxModel | null>>;
116
+ };
117
+ };
118
+ declare type ChangeDocumentElementSizeAction = {
119
+ type: typeof ActionTypes.CHANGE_DOCUMENT_ELEMENT_SIZE;
120
+ payload: {
121
+ size: Size;
122
+ };
123
+ };
124
+ declare type ChangeDocumentElementScrollTopAction = {
125
+ type: typeof ActionTypes.CHANGE_DOCUMENT_ELEMENT_SCROLL_TOP;
126
+ payload: {
127
+ scrollTop: number;
128
+ };
129
+ };
130
+ declare type RegisterPropControllersHandleAction = {
131
+ type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS_HANDLE;
132
+ payload: {
133
+ documentKey: string;
134
+ elementKey: string;
135
+ handle: PropControllersHandle;
136
+ };
137
+ };
138
+ declare type UnregisterPropControllersHandleAction = {
139
+ type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS_HANDLE;
140
+ payload: {
141
+ documentKey: string;
142
+ elementKey: string;
143
+ };
144
+ };
145
+ declare type RegisterPropControllersAction = {
146
+ type: typeof ActionTypes.REGISTER_PROP_CONTROLLERS;
147
+ payload: {
148
+ documentKey: string;
149
+ elementKey: string;
150
+ propControllers: Record<string, PropController>;
151
+ };
152
+ };
153
+ declare type UnregisterPropControllersAction = {
154
+ type: typeof ActionTypes.UNREGISTER_PROP_CONTROLLERS;
155
+ payload: {
156
+ documentKey: string;
157
+ elementKey: string;
158
+ };
159
+ };
160
+ declare type MessageHostPropControllerAction<T = PropControllerMessage> = {
161
+ type: typeof ActionTypes.MESSAGE_HOST_PROP_CONTROLLER;
162
+ payload: {
163
+ documentKey: string;
164
+ elementKey: string;
165
+ propName: string;
166
+ message: T;
167
+ };
168
+ };
169
+ declare type MessageBuilderPropControllerAction<T = PropControllerMessage> = {
170
+ type: typeof ActionTypes.MESSAGE_BUILDER_PROP_CONTROLLER;
171
+ payload: {
172
+ documentKey: string;
173
+ elementKey: string;
174
+ propName: string;
175
+ message: T;
176
+ };
177
+ };
178
+ declare type ChangeAPIResourceAction = {
179
+ type: typeof ActionTypes.CHANGE_API_RESOURCE;
180
+ payload: {
181
+ resource: APIResource;
182
+ };
183
+ };
184
+ export declare type Action = ChangeDocumentAction | RegisterComponentAction | UnregisterComponentAction | RegisterReactComponentAction | UnregisterReactComponentAction | MountComponentAction | UnmountComponentAction | RegisterComponentHandleAction | UnregisterComponentHandleAction | RegisterMeasurableAction | UnregisterMeasurableAction | ChangeElementBoxModelsAction | ChangeDocumentElementSizeAction | ChangeDocumentElementScrollTopAction | RegisterPropControllersHandleAction | UnregisterPropControllersHandleAction | RegisterPropControllersAction | UnregisterPropControllersAction | MessageHostPropControllerAction | MessageBuilderPropControllerAction | ChangeAPIResourceAction;
185
+ export declare function changeDocument(documentKey: string, operation: Operation): ChangeDocumentAction;
186
+ export declare function registerComponent(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): RegisterComponentAction;
187
+ export declare function unregisterComponent(type: string): UnregisterComponentAction;
188
+ export declare function registerComponentEffect(type: string, meta: ComponentMeta, propControllerDescriptors: Record<string, PropControllerDescriptor>): ThunkAction<() => void, unknown, unknown, Action>;
189
+ export declare function registerReactComponentEffect(type: string, component: ComponentType): ThunkAction<() => void, unknown, unknown, Action>;
190
+ export declare function mountComponent(documentKey: string, elementKey: string): MountComponentAction;
191
+ export declare function unmountComponent(documentKey: string, elementKey: string): UnmountComponentAction;
192
+ export declare function mountComponentEffect(documentKey: string, elementKey: string): ThunkAction<() => void, unknown, unknown, Action>;
193
+ export declare function registerComponentHandleEffect(documentKey: string, elementKey: string, componentHandle: unknown): ThunkAction<() => void, unknown, unknown, Action>;
194
+ export declare function registerMeasurable(documentKey: string, elementKey: string, measurable: Measurable): RegisterMeasurableAction;
195
+ export declare function unregisterMeasurable(documentKey: string, elementKey: string): UnregisterMeasurableAction;
196
+ export declare function registerMeasurableEffect(documentKey: string, elementKey: string, measurable: Measurable): ThunkAction<() => void, unknown, unknown, Action>;
197
+ export declare function changeElementBoxModels(changedElementBoxModels: Map<string, Map<string, BoxModel | null>>): ChangeElementBoxModelsAction;
198
+ export declare function changeDocumentElementSize(size: Size): ChangeDocumentElementSizeAction;
199
+ export declare function changeDocumentElementScrollTop(scrollTop: number): ChangeDocumentElementScrollTopAction;
200
+ export declare function registerPropControllersHandle(documentKey: string, elementKey: string, handle: PropControllersHandle): RegisterPropControllersHandleAction;
201
+ export declare function unregisterPropControllersHandle(documentKey: string, elementKey: string): UnregisterPropControllersHandleAction;
202
+ export declare function registerPropControllers(documentKey: string, elementKey: string, propControllers: Record<string, PropController>): RegisterPropControllersAction;
203
+ export declare function unregisterPropControllers(documentKey: string, elementKey: string): UnregisterPropControllersAction;
204
+ export declare function messageHostPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageHostPropControllerAction<T>;
205
+ export declare function messageBuilderPropController<T>(documentKey: string, elementKey: string, propName: string, message: T): MessageBuilderPropControllerAction<T>;
206
+ export declare function changeApiResource(resource: APIResource): ChangeAPIResourceAction;
207
+ export {};
208
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +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;AACnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC1F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,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B;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,GAAG,+BAA+B,CAErF;AAED,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,MAAM,GAChB,oCAAoC,CAEtC;AAED,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,qBAAqB,GAC5B,mCAAmC,CAKrC;AAED,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,qCAAqC,CAKvC;AAED,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAC9C,6BAA6B,CAK/B;AAED,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,+BAA+B,CAEjC;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EACzC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,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"}
@@ -0,0 +1,22 @@
1
+ import { BoxModel, CreateBoxArgs } from 'css-box-model';
2
+ import { Action } from '../actions';
3
+ export type { BoxModel };
4
+ export declare function parse(rawString: string): number;
5
+ export declare function createBox(boxArgs: CreateBoxArgs): BoxModel;
6
+ export declare function getBox(element: Element): BoxModel;
7
+ export interface BoxModelHandle {
8
+ getBoxModel(): BoxModel | null;
9
+ }
10
+ export declare type Measurable = Element | BoxModelHandle;
11
+ export declare function isMeasurable(value: unknown): value is Measurable;
12
+ export declare function measure(measurable: Measurable): BoxModel | null;
13
+ export declare type State = {
14
+ measurables: Map<string, Map<string, Measurable>>;
15
+ boxModels: Map<string, Map<string, BoxModel>>;
16
+ };
17
+ export declare function getInitialState(): State;
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
+ export declare function reducer(state: State | undefined, action: Action): State;
22
+ //# sourceMappingURL=box-models.d.ts.map
@@ -0,0 +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/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"}
@@ -0,0 +1,14 @@
1
+ import { Action } from '../actions';
2
+ export declare type ComponentIcon = 'Carousel40' | 'Code40' | 'Countdown40' | 'Cube40' | 'Divider40' | 'Form40' | 'Navigation40' | 'SocialLinks40' | 'Video40';
3
+ export declare type ComponentMeta = {
4
+ label: string;
5
+ icon: ComponentIcon;
6
+ hidden: boolean;
7
+ };
8
+ export declare type State = Map<string, ComponentMeta>;
9
+ export declare function getInitialState({ componentsMeta, }?: {
10
+ componentsMeta?: Map<string, ComponentMeta>;
11
+ }): State;
12
+ export declare function getComponentsMeta(state: State): Map<string, ComponentMeta>;
13
+ export declare function reducer(state: State | undefined, action: Action): State;
14
+ //# sourceMappingURL=components-meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-meta.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/components-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAEhD,oBAAY,aAAa,GACrB,YAAY,GACZ,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,cAAc,GACd,eAAe,GACf,SAAS,CAAA;AAEb,oBAAY,aAAa,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAA;AAEnF,oBAAY,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;AAE9C,wBAAgB,eAAe,CAAC,EAC9B,cAA0B,GAC3B,GAAE;IAAE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;CAAO,GAAG,KAAK,CAE9D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAE1E;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAgB/E"}
@@ -0,0 +1,17 @@
1
+ import { Action } from '../actions';
2
+ export declare type MakeswiftAPIClient = {
3
+ request<T, U>(query: string, variables?: U): Promise<T>;
4
+ };
5
+ export declare type MakeswiftSwatch = {
6
+ __typename: 'Swatch';
7
+ id: string;
8
+ hue: number;
9
+ saturation: number;
10
+ lightness: number;
11
+ };
12
+ export declare type MakeswiftAPIResource = MakeswiftSwatch;
13
+ declare type State = Map<string, MakeswiftAPIResource>;
14
+ export declare function getInitialState(): State;
15
+ export declare function reducer(state: State | undefined, action: Action): State;
16
+ export {};
17
+ //# sourceMappingURL=makeswift-api-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"makeswift-api-client.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/makeswift-api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAEnC,oBAAY,kBAAkB,GAAG;IAC/B,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;CACxD,CAAA;AAED,oBAAY,eAAe,GAAG;IAC5B,UAAU,EAAE,QAAQ,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,oBAAY,oBAAoB,GAAG,eAAe,CAAA;AAElD,aAAK,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;AAE9C,wBAAgB,eAAe,IAAI,KAAK,CAEvC;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAK/E"}
@@ -0,0 +1,16 @@
1
+ import { Action } from '../actions';
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;
6
+ }
7
+ export declare function isPropControllersHandle(value: unknown): value is PropControllersHandle;
8
+ export declare type State = {
9
+ handles: Map<string, Map<string, PropControllersHandle>>;
10
+ instances: Map<string, Map<string, Record<string, PropController>>>;
11
+ };
12
+ export declare function getInitialState(): State;
13
+ export declare function getPropControllersHandle(state: State, documentKey: string, elementKey: string): PropControllersHandle | null;
14
+ export declare function getPropController(state: State, documentKey: string, elementKey: string, propName: string): PropController | null;
15
+ export declare function reducer(state: State | undefined, action: Action): State;
16
+ //# sourceMappingURL=prop-controller-handles.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,11 @@
1
+ import { Action } from '../actions';
2
+ import { PropControllerDescriptor } from '../../prop-controllers';
3
+ export type { PropControllerDescriptor };
4
+ export declare type State = Map<string, Record<string, PropControllerDescriptor>>;
5
+ export declare function getInitialState({ propControllerDescriptors, }?: {
6
+ propControllerDescriptors?: Map<string, Record<string, PropControllerDescriptor>>;
7
+ }): State;
8
+ export declare function getPropControllerDescriptors(state: State): Map<string, Record<string, PropControllerDescriptor>>;
9
+ export declare function getComponentPropControllerDescriptors(state: State, componentType: string): Record<string, PropControllerDescriptor> | null;
10
+ export declare function reducer(state: State | undefined, action: Action): State;
11
+ //# sourceMappingURL=prop-controllers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-controllers.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/prop-controllers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,YAAY,EAAE,wBAAwB,EAAE,CAAA;AAExC,oBAAY,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAA;AAEzE,wBAAgB,eAAe,CAAC,EAC9B,yBAAqC,GACtC,GAAE;IACD,yBAAyB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAA;CAC7E,GAAG,KAAK,CAEb;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,KAAK,GACX,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAEvD;AAED,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,MAAM,GACpB,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,GAAG,IAAI,CAEjD;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAgB/E"}
@@ -0,0 +1,10 @@
1
+ import type { ClassAttributes, ComponentClass, PropsWithoutRef, RefAttributes, VoidFunctionComponent } from 'react';
2
+ import { Action } from '../actions';
3
+ export declare type ComponentType<P = Record<string, any>, T = any> = ComponentClass<PropsWithoutRef<P> & ClassAttributes<T>> | VoidFunctionComponent<PropsWithoutRef<P> & RefAttributes<T>>;
4
+ export declare type State = Map<string, ComponentType>;
5
+ export declare function getInitialState({ reactComponents, }?: {
6
+ reactComponents?: Map<string, ComponentType>;
7
+ }): State;
8
+ export declare function getReactComponent(state: State, type: string): ComponentType | null;
9
+ export declare function reducer(state: State | undefined, action: Action): State;
10
+ //# sourceMappingURL=react-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-components.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/react-components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,eAAe,EACf,aAAa,EACb,qBAAqB,EACtB,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAEhD,oBAAY,aAAa,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,IACtD,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,GACvD,qBAAqB,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;AAEhE,oBAAY,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;AAE9C,wBAAgB,eAAe,CAAC,EAC9B,eAA2B,GAC5B,GAAE;IAAE,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;CAAO,GAAG,KAAK,CAE/D;AAMD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAElF;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,MAAM,EAAE,MAAM,SAgBvE"}
@@ -0,0 +1,28 @@
1
+ import type { Action } from '../actions';
2
+ export declare type Data = undefined | null | boolean | number | string | Data[] | {
3
+ [key: string]: Data;
4
+ };
5
+ export declare type ElementData = {
6
+ type: string;
7
+ key: string;
8
+ props: Record<string, Data>;
9
+ };
10
+ export declare type ElementReference = {
11
+ type: 'reference';
12
+ key: string;
13
+ value: string;
14
+ };
15
+ export declare type Element = ElementData | ElementReference;
16
+ export declare function isElementReference(element: Element): element is ElementReference;
17
+ export declare type Document = {
18
+ rootElement: Element;
19
+ };
20
+ export declare function createDocument(rootElement: Element): Document;
21
+ export declare type State = Map<string, Document>;
22
+ export declare function getInitialState({ rootElements, }?: {
23
+ rootElements?: Map<string, Element>;
24
+ }): State;
25
+ export declare function getDocument(state: State, documentKey: string): Document | null;
26
+ export declare function getDocumentRootElement(state: State, documentKey: string): Element | null;
27
+ export declare function reducer(state: State | undefined, _action: Action): State;
28
+ //# sourceMappingURL=read-only-documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-only-documents.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/read-only-documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,oBAAY,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAElG,oBAAY,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;CAAE,CAAA;AAEpF,oBAAY,gBAAgB,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhF,oBAAY,OAAO,GAAG,WAAW,GAAG,gBAAgB,CAAA;AAEpD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,gBAAgB,CAEhF;AAED,oBAAY,QAAQ,GAAG;IACrB,WAAW,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,CAE7D;AAED,oBAAY,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AAEzC,wBAAgB,eAAe,CAAC,EAC9B,YAAwB,GACzB,GAAE;IAAE,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAO,GAAG,KAAK,CAQtD;AAMD,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAE9E;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAExF;AAED,wBAAgB,OAAO,CAAC,KAAK,mBAA2B,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAEhF"}
@@ -0,0 +1,13 @@
1
+ import { Operation } from 'ot-json0';
2
+ import * as ReadOnlyDocuments from './read-only-documents';
3
+ import { Action } from '../actions';
4
+ export type { Document, Element, ElementData, ElementReference } from './read-only-documents';
5
+ export { isElementReference } from './read-only-documents';
6
+ export type { Operation };
7
+ export declare type State = ReadOnlyDocuments.State;
8
+ export declare function getInitialState({ rootElements, }?: {
9
+ rootElements?: Map<string, ReadOnlyDocuments.Element>;
10
+ }): State;
11
+ export declare function getDocumentRootElement(state: State, documentKey: string): ReadOnlyDocuments.Element | null;
12
+ export declare function reducer(state: ReadOnlyDocuments.State | undefined, action: Action): State;
13
+ //# sourceMappingURL=read-write-documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-write-documents.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/read-write-documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAGpC,OAAO,KAAK,iBAAiB,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAEhD,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,YAAY,EAAE,SAAS,EAAE,CAAA;AAsBzB,oBAAY,KAAK,GAAG,iBAAiB,CAAC,KAAK,CAAA;AAE3C,wBAAgB,eAAe,CAAC,EAC9B,YAAY,GACb,GAAE;IACD,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAA;CACjD,GAAG,KAAK,CAEb;AAMD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAM,GAClB,iBAAiB,CAAC,OAAO,GAAG,IAAI,CAKlC;AAED,wBAAgB,OAAO,CAAC,KAAK,qCAA2B,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAoB/E"}