@makeswift/runtime 0.0.0-0dee97b → 0.0.0-237e855

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 (295) hide show
  1. package/box-model.js +1 -0
  2. package/components.js +1 -0
  3. package/dist/actions.cjs.js +73 -16
  4. package/dist/actions.cjs.js.map +1 -1
  5. package/dist/actions.es.js +67 -16
  6. package/dist/actions.es.js.map +1 -1
  7. package/dist/box-models.cjs.js +24 -14
  8. package/dist/box-models.cjs.js.map +1 -1
  9. package/dist/box-models.es.js +24 -14
  10. package/dist/box-models.es.js.map +1 -1
  11. package/dist/components.cjs.js +39 -6898
  12. package/dist/components.cjs.js.map +1 -1
  13. package/dist/components.es.js +11 -6866
  14. package/dist/components.es.js.map +1 -1
  15. package/dist/deepEqual.cjs.js +40 -0
  16. package/dist/deepEqual.cjs.js.map +1 -0
  17. package/dist/deepEqual.es.js +39 -0
  18. package/dist/deepEqual.es.js.map +1 -0
  19. package/dist/descriptors.cjs.js +216 -0
  20. package/dist/descriptors.cjs.js.map +1 -0
  21. package/dist/descriptors.es.js +184 -0
  22. package/dist/descriptors.es.js.map +1 -0
  23. package/dist/immutable.es.cjs.js +4459 -0
  24. package/dist/immutable.es.cjs.js.map +1 -0
  25. package/dist/immutable.es.es.js +4450 -0
  26. package/dist/immutable.es.es.js.map +1 -0
  27. package/dist/instances.cjs.js +89 -0
  28. package/dist/instances.cjs.js.map +1 -0
  29. package/dist/instances.es.js +87 -0
  30. package/dist/instances.es.js.map +1 -0
  31. package/dist/main.cjs.js +1 -0
  32. package/dist/main.cjs.js.map +1 -1
  33. package/dist/main.es.js +1 -1
  34. package/dist/prop-controllers.cjs.js +4 -173
  35. package/dist/prop-controllers.cjs.js.map +1 -1
  36. package/dist/prop-controllers.es.js +2 -173
  37. package/dist/prop-controllers.es.js.map +1 -1
  38. package/dist/react-builder-preview.cjs.js +179 -33
  39. package/dist/react-builder-preview.cjs.js.map +1 -1
  40. package/dist/react-builder-preview.es.js +186 -40
  41. package/dist/react-builder-preview.es.js.map +1 -1
  42. package/dist/react.cjs.js +10 -0
  43. package/dist/react.cjs.js.map +1 -1
  44. package/dist/react.cjs2.js +23451 -331
  45. package/dist/react.cjs2.js.map +1 -1
  46. package/dist/react.es.js +10 -1
  47. package/dist/react.es.js.map +1 -1
  48. package/dist/react.es2.js +23367 -298
  49. package/dist/react.es2.js.map +1 -1
  50. package/dist/shallowEqual.cjs.js +24 -0
  51. package/dist/shallowEqual.cjs.js.map +1 -0
  52. package/dist/shallowEqual.es.js +23 -0
  53. package/dist/shallowEqual.es.js.map +1 -0
  54. package/dist/types/codegen-loader.d.ts +2 -0
  55. package/dist/types/codegen-loader.d.ts.map +1 -0
  56. package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts +11 -0
  57. package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -0
  58. package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts +8 -0
  59. package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -0
  60. package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts +11 -0
  61. package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -0
  62. package/dist/types/components/BackgroundsContainer/index.d.ts +11 -0
  63. package/dist/types/components/BackgroundsContainer/index.d.ts.map +1 -0
  64. package/dist/types/components/Box/Box.d.ts +4 -1
  65. package/dist/types/components/Box/Box.d.ts.map +1 -1
  66. package/dist/types/components/Carousel/Carousel.d.ts +25 -0
  67. package/dist/types/components/Carousel/Carousel.d.ts.map +1 -0
  68. package/dist/types/components/Carousel/index.d.ts +2 -0
  69. package/dist/types/components/Carousel/index.d.ts.map +1 -0
  70. package/dist/types/components/Countdown/Countdown.d.ts +24 -0
  71. package/dist/types/components/Countdown/Countdown.d.ts.map +1 -0
  72. package/dist/types/components/Countdown/index.d.ts +2 -0
  73. package/dist/types/components/Countdown/index.d.ts.map +1 -0
  74. package/dist/types/components/Divider/Divider.d.ts +14 -0
  75. package/dist/types/components/Divider/Divider.d.ts.map +1 -0
  76. package/dist/types/components/Divider/index.d.ts +2 -0
  77. package/dist/types/components/Divider/index.d.ts.map +1 -0
  78. package/dist/types/components/Embed/Embed.d.ts +11 -0
  79. package/dist/types/components/Embed/Embed.d.ts.map +1 -0
  80. package/dist/types/components/Embed/index.d.ts +2 -0
  81. package/dist/types/components/Embed/index.d.ts.map +1 -0
  82. package/dist/types/components/Image/Image.d.ts +26 -0
  83. package/dist/types/components/Image/Image.d.ts.map +1 -0
  84. package/dist/types/components/Image/index.d.ts +2 -0
  85. package/dist/types/components/Image/index.d.ts.map +1 -0
  86. package/dist/types/components/Link/index.d.ts +9 -0
  87. package/dist/types/components/Link/index.d.ts.map +1 -0
  88. package/dist/types/components/RichText/index.d.ts +5 -0
  89. package/dist/types/components/RichText/index.d.ts.map +1 -0
  90. package/dist/types/components/Root/Root.d.ts.map +1 -1
  91. package/dist/types/components/builtin/Box/Box.d.ts +33 -0
  92. package/dist/types/components/builtin/Box/Box.d.ts.map +1 -0
  93. package/dist/types/components/builtin/Box/animations.d.ts +69 -0
  94. package/dist/types/components/builtin/Box/animations.d.ts.map +1 -0
  95. package/dist/types/components/builtin/Box/components/Placeholder/index.d.ts +7 -0
  96. package/dist/types/components/builtin/Box/components/Placeholder/index.d.ts.map +1 -0
  97. package/dist/types/components/builtin/Box/index.d.ts +3 -0
  98. package/dist/types/components/builtin/Box/index.d.ts.map +1 -0
  99. package/dist/types/components/builtin/Button/Button.d.ts +118 -0
  100. package/dist/types/components/builtin/Button/Button.d.ts.map +1 -0
  101. package/dist/types/components/builtin/Button/index.d.ts +2 -0
  102. package/dist/types/components/builtin/Button/index.d.ts.map +1 -0
  103. package/dist/types/components/builtin/Carousel/Carousel.d.ts +28 -0
  104. package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -0
  105. package/dist/types/components/builtin/Carousel/index.d.ts +2 -0
  106. package/dist/types/components/builtin/Carousel/index.d.ts.map +1 -0
  107. package/dist/types/components/builtin/Countdown/Countdown.d.ts +27 -0
  108. package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -0
  109. package/dist/types/components/builtin/Countdown/index.d.ts +2 -0
  110. package/dist/types/components/builtin/Countdown/index.d.ts.map +1 -0
  111. package/dist/types/components/builtin/Divider/Divider.d.ts +17 -0
  112. package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -0
  113. package/dist/types/components/builtin/Divider/index.d.ts +2 -0
  114. package/dist/types/components/builtin/Divider/index.d.ts.map +1 -0
  115. package/dist/types/components/builtin/Embed/Embed.d.ts +14 -0
  116. package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -0
  117. package/dist/types/components/builtin/Embed/index.d.ts +2 -0
  118. package/dist/types/components/builtin/Embed/index.d.ts.map +1 -0
  119. package/dist/types/components/builtin/Image/Image.d.ts +29 -0
  120. package/dist/types/components/builtin/Image/Image.d.ts.map +1 -0
  121. package/dist/types/components/builtin/Image/index.d.ts +2 -0
  122. package/dist/types/components/builtin/Image/index.d.ts.map +1 -0
  123. package/dist/types/components/builtin/Navigation/Navigation.d.ts +26 -0
  124. package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -0
  125. package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts +100 -0
  126. package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -0
  127. package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts +8 -0
  128. package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts.map +1 -0
  129. package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts +101 -0
  130. package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts.map +1 -0
  131. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts +13 -0
  132. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -0
  133. package/dist/types/components/builtin/Navigation/index.d.ts +2 -0
  134. package/dist/types/components/builtin/Navigation/index.d.ts.map +1 -0
  135. package/dist/types/components/builtin/Root/Root.d.ts +14 -0
  136. package/dist/types/components/builtin/Root/Root.d.ts.map +1 -0
  137. package/dist/types/components/builtin/Root/components/Placeholder/index.d.ts +5 -0
  138. package/dist/types/components/builtin/Root/components/Placeholder/index.d.ts.map +1 -0
  139. package/dist/types/components/builtin/Root/index.d.ts +2 -0
  140. package/dist/types/components/builtin/Root/index.d.ts.map +1 -0
  141. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +21 -0
  142. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -0
  143. package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts +8 -0
  144. package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts.map +1 -0
  145. package/dist/types/components/builtin/SocialLinks/index.d.ts +2 -0
  146. package/dist/types/components/builtin/SocialLinks/index.d.ts.map +1 -0
  147. package/dist/types/components/builtin/SocialLinks/options.d.ts +113 -0
  148. package/dist/types/components/builtin/SocialLinks/options.d.ts.map +1 -0
  149. package/dist/types/components/builtin/Text/Text.d.ts +19 -0
  150. package/dist/types/components/builtin/Text/Text.d.ts.map +1 -0
  151. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts +24 -0
  152. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts.map +1 -0
  153. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Link/index.d.ts +9 -0
  154. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Link/index.d.ts.map +1 -0
  155. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts +25 -0
  156. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts.map +1 -0
  157. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts +13 -0
  158. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts.map +1 -0
  159. package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts +5 -0
  160. package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts.map +1 -0
  161. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts +3 -0
  162. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts.map +1 -0
  163. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts +3 -0
  164. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts.map +1 -0
  165. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts +3 -0
  166. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts.map +1 -0
  167. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts +3 -0
  168. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts.map +1 -0
  169. package/dist/types/components/builtin/Text/hooks/useRichText.d.ts +1 -0
  170. package/dist/types/components/builtin/Text/hooks/useRichText.d.ts.map +1 -0
  171. package/dist/types/components/builtin/Text/index.d.ts +2 -0
  172. package/dist/types/components/builtin/Text/index.d.ts.map +1 -0
  173. package/dist/types/components/builtin/Text/prop-controllers.d.ts +286 -0
  174. package/dist/types/components/builtin/Text/prop-controllers.d.ts.map +1 -0
  175. package/dist/types/components/builtin/index.d.ts +15 -0
  176. package/dist/types/components/builtin/index.d.ts.map +1 -0
  177. package/dist/types/components/hooks/index.d.ts +6 -0
  178. package/dist/types/components/hooks/index.d.ts.map +1 -1
  179. package/dist/types/components/hooks/useBackgrounds.d.ts +59 -0
  180. package/dist/types/components/hooks/useBackgrounds.d.ts.map +1 -0
  181. package/dist/types/components/hooks/useBorder.d.ts +19 -0
  182. package/dist/types/components/hooks/useBorder.d.ts.map +1 -0
  183. package/dist/types/components/hooks/useBoxShadow.d.ts +19 -0
  184. package/dist/types/components/hooks/useBoxShadow.d.ts.map +1 -0
  185. package/dist/types/components/hooks/useColor.d.ts +7 -0
  186. package/dist/types/components/hooks/useColor.d.ts.map +1 -0
  187. package/dist/types/components/hooks/useFile.d.ts +13 -0
  188. package/dist/types/components/hooks/useFile.d.ts.map +1 -0
  189. package/dist/types/components/hooks/usePage.d.ts +7 -0
  190. package/dist/types/components/hooks/usePage.d.ts.map +1 -0
  191. package/dist/types/components/hooks/useRichText.d.ts +18 -0
  192. package/dist/types/components/hooks/useRichText.d.ts.map +1 -0
  193. package/dist/types/components/hooks/useTypography.d.ts +24 -0
  194. package/dist/types/components/hooks/useTypography.d.ts.map +1 -0
  195. package/dist/types/components/index.d.ts +2 -3
  196. package/dist/types/components/index.d.ts.map +1 -1
  197. package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts +11 -0
  198. package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -0
  199. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts +8 -0
  200. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -0
  201. package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts +11 -0
  202. package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -0
  203. package/dist/types/components/shared/BackgroundsContainer/index.d.ts +11 -0
  204. package/dist/types/components/shared/BackgroundsContainer/index.d.ts.map +1 -0
  205. package/dist/types/components/shared/GutterContainer/index.d.ts +8 -0
  206. package/dist/types/components/shared/GutterContainer/index.d.ts.map +1 -0
  207. package/dist/types/components/shared/Link/index.d.ts +9 -0
  208. package/dist/types/components/shared/Link/index.d.ts.map +1 -0
  209. package/dist/types/components/shared/RichTextEditor/components/Block/index.d.ts +24 -0
  210. package/dist/types/components/shared/RichTextEditor/components/Block/index.d.ts.map +1 -0
  211. package/dist/types/components/shared/RichTextEditor/components/Link/index.d.ts +9 -0
  212. package/dist/types/components/shared/RichTextEditor/components/Link/index.d.ts.map +1 -0
  213. package/dist/types/components/shared/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts +23 -0
  214. package/dist/types/components/shared/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts.map +1 -0
  215. package/dist/types/components/shared/RichTextEditor/components/Mark/index.d.ts +13 -0
  216. package/dist/types/components/shared/RichTextEditor/components/Mark/index.d.ts.map +1 -0
  217. package/dist/types/components/shared/RichTextEditor/index.d.ts +5 -0
  218. package/dist/types/components/shared/RichTextEditor/index.d.ts.map +1 -0
  219. package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts +3 -0
  220. package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts.map +1 -0
  221. package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesMarks.d.ts +3 -0
  222. package/dist/types/components/shared/RichTextEditor/plugins/DeviceOverridesMarks.d.ts.map +1 -0
  223. package/dist/types/components/shared/RichTextEditor/plugins/Inlines.d.ts +3 -0
  224. package/dist/types/components/shared/RichTextEditor/plugins/Inlines.d.ts.map +1 -0
  225. package/dist/types/components/shared/RichTextEditor/plugins/Link.d.ts +3 -0
  226. package/dist/types/components/shared/RichTextEditor/plugins/Link.d.ts.map +1 -0
  227. package/dist/types/components/utils/colorToString.d.ts +3 -0
  228. package/dist/types/components/utils/colorToString.d.ts.map +1 -0
  229. package/dist/types/components/utils/contants.d.ts +5 -0
  230. package/dist/types/components/utils/contants.d.ts.map +1 -0
  231. package/dist/types/components/utils/cssMediaRules.d.ts +23 -1
  232. package/dist/types/components/utils/cssMediaRules.d.ts.map +1 -1
  233. package/dist/types/components/utils/devices.d.ts +1 -0
  234. package/dist/types/components/utils/devices.d.ts.map +1 -1
  235. package/dist/types/components/utils/intersection.d.ts +4 -0
  236. package/dist/types/components/utils/intersection.d.ts.map +1 -0
  237. package/dist/types/components/utils/isNonNullable.d.ts +2 -0
  238. package/dist/types/components/utils/isNonNullable.d.ts.map +1 -0
  239. package/dist/types/components/utils/keys.d.ts +5 -0
  240. package/dist/types/components/utils/keys.d.ts.map +1 -0
  241. package/dist/types/components/utils/placeholders.d.ts +10 -0
  242. package/dist/types/components/utils/placeholders.d.ts.map +1 -0
  243. package/dist/types/components/utils/queries.d.ts +7 -0
  244. package/dist/types/components/utils/queries.d.ts.map +1 -0
  245. package/dist/types/components/utils/types.d.ts +11 -0
  246. package/dist/types/components/utils/types.d.ts.map +1 -0
  247. package/dist/types/generated/graphql.d.ts +756 -0
  248. package/dist/types/generated/graphql.d.ts.map +1 -0
  249. package/dist/types/index.d.ts +2 -1
  250. package/dist/types/index.d.ts.map +1 -1
  251. package/dist/types/prop-controllers/descriptors.d.ts +38 -2
  252. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  253. package/dist/types/prop-controllers/index.d.ts +3 -1
  254. package/dist/types/prop-controllers/index.d.ts.map +1 -1
  255. package/dist/types/prop-controllers/instances.d.ts +69 -0
  256. package/dist/types/prop-controllers/instances.d.ts.map +1 -0
  257. package/dist/types/prop-controllers/introspection.d.ts +5 -0
  258. package/dist/types/prop-controllers/introspection.d.ts.map +1 -0
  259. package/dist/types/react.d.ts +1 -1
  260. package/dist/types/react.d.ts.map +1 -1
  261. package/dist/types/runtimes/react.d.ts +14 -7
  262. package/dist/types/runtimes/react.d.ts.map +1 -1
  263. package/dist/types/state/actions.d.ts +88 -13
  264. package/dist/types/state/actions.d.ts.map +1 -1
  265. package/dist/types/state/modules/box-models.d.ts +5 -5
  266. package/dist/types/state/modules/box-models.d.ts.map +1 -1
  267. package/dist/types/state/modules/makeswift-api-client.d.ts +17 -0
  268. package/dist/types/state/modules/makeswift-api-client.d.ts.map +1 -0
  269. package/dist/types/state/modules/prop-controller-handles.d.ts +16 -0
  270. package/dist/types/state/modules/prop-controller-handles.d.ts.map +1 -0
  271. package/dist/types/state/modules/prop-controllers.d.ts +1 -0
  272. package/dist/types/state/modules/prop-controllers.d.ts.map +1 -1
  273. package/dist/types/state/react-builder-preview.d.ts +13 -10
  274. package/dist/types/state/react-builder-preview.d.ts.map +1 -1
  275. package/dist/types/state/react-page.d.ts +5 -0
  276. package/dist/types/state/react-page.d.ts.map +1 -1
  277. package/dist/types/types.d.ts +2 -0
  278. package/dist/types/types.d.ts.map +1 -0
  279. package/dist/types/utils/clamp.d.ts +3 -0
  280. package/dist/types/utils/clamp.d.ts.map +1 -0
  281. package/dist/types/utils/coalesce.d.ts +3 -0
  282. package/dist/types/utils/coalesce.d.ts.map +1 -0
  283. package/dist/types/utils/constants.d.ts +6 -0
  284. package/dist/types/utils/constants.d.ts.map +1 -0
  285. package/dist/types/utils/deepEqual.d.ts.map +1 -1
  286. package/dist/types/utils/intersection.d.ts +4 -0
  287. package/dist/types/utils/intersection.d.ts.map +1 -0
  288. package/dist/types/utils/keys.d.ts +5 -0
  289. package/dist/types/utils/keys.d.ts.map +1 -0
  290. package/dist/types/utils/shallowEqual.d.ts.map +1 -1
  291. package/dist/types/utils/shallowMerge.d.ts +2 -0
  292. package/dist/types/utils/shallowMerge.d.ts.map +1 -0
  293. package/package.json +62 -27
  294. package/prop-controllers.js +1 -0
  295. package/react.js +1 -0
@@ -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;A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AE,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"}
@@ -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,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AAE,MAAM,EAAE,MAAM,SAiDvE"}
@@ -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"}
@@ -5,6 +5,7 @@ export declare type State = Map<string, Record<string, PropControllerDescriptor>
5
5
  export declare function getInitialState({ propControllerDescriptors, }?: {
6
6
  propControllerDescriptors?: Map<string, Record<string, PropControllerDescriptor>>;
7
7
  }): State;
8
+ export declare function getPropControllerDescriptors(state: State): Map<string, Record<string, PropControllerDescriptor>>;
8
9
  export declare function getComponentPropControllerDescriptors(state: State, componentType: string): Record<string, PropControllerDescriptor> | null;
9
10
  export declare function reducer(state: State | undefined, action: Action): State;
10
11
  //# sourceMappingURL=prop-controllers.d.ts.map
@@ -1 +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,GA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middleware, PreloadedState, Store as ReduxStore } from "redux";
2
- import { ThunkAction, ThunkDispatch } from "redux-thunk";
3
- import * as ReactComponents from "./modules/react-components";
4
- import * as BoxModels from "./modules/box-models";
5
- import * as ComponentsMeta from "./modules/components-meta";
6
- import * as PropControllers from "./modules/prop-controllers";
7
- import { Action } from "./actions";
8
- export type { Operation } from "./modules/read-write-documents";
9
- export type { BoxModelHandle } from "./modules/box-models";
10
- export { createBox, getBox, parse } from "./modules/box-models";
1
+ import { Middleware, PreloadedState, Store as ReduxStore } from 'redux';
2
+ import { ThunkAction, ThunkDispatch } from 'redux-thunk';
3
+ import * as ReactComponents from './modules/react-components';
4
+ import * as BoxModels from './modules/box-models';
5
+ import * as ComponentsMeta from './modules/components-meta';
6
+ import * as PropControllers from './modules/prop-controllers';
7
+ import * as PropControllerHandles from './modules/prop-controller-handles';
8
+ import { Action } from './actions';
9
+ export type { Operation } from './modules/read-write-documents';
10
+ export type { BoxModelHandle } from './modules/box-models';
11
+ export { createBox, getBox, parse } from './modules/box-models';
11
12
  declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
12
13
  documents: import("./modules/read-only-documents").State;
13
14
  reactComponents: ReactComponents.State;
14
15
  boxModels: BoxModels.State;
15
16
  componentsMeta: ComponentsMeta.State;
16
17
  propControllers: PropControllers.State;
18
+ propControllerHandles: PropControllerHandles.State;
19
+ isInBuilder: boolean;
17
20
  }>, Action>;
18
21
  export declare type State = ReturnType<typeof reducer>;
19
22
  export declare function startMeasuringElements(): ThunkAction<() => void, State, unknown, Action>;
@@ -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,CAAC;AACf,OAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAIhE,OAAO,KAAK,eAAe,MAAM,4BAA4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pB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAsCD,wBAAgB,UAAU,IAAI,WAAW,CAAC,MAAM,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAU5E;AAED,oBAAY,QAAQ,GAAG,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;AA+B5D,wBAAgB,wBAAwB,IAAI,UAAU,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CA6ChF;AAyGD,oBAAY,KAAK,GAAG,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtE,wBAAgB,cAAc,CAAC,EAC7B,cAAc,GACf,GAAE;IAAE,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAA;CAAO,GAAG,KAAK,CAWzD"}
@@ -13,10 +13,15 @@ declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
13
13
  reactComponents: ReactComponents.State;
14
14
  componentsMeta: ComponentsMeta.State;
15
15
  propControllers: PropControllers.State;
16
+ isInBuilder: boolean;
16
17
  }>, Action>;
17
18
  export declare type State = ReturnType<typeof reducer>;
18
19
  export declare function getDocumentRootElement(state: State, documentKey: string): Documents.Element | null;
19
20
  export declare function getReactComponent(state: State, type: string): ReactComponents.ComponentType | null;
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;
23
+ export declare function getElementId(state: State, documentKey: string, elementKey: string): string | null;
24
+ export declare function getIsInBuilder(state: State): boolean;
20
25
  export declare type Dispatch = ThunkDispatch<State, unknown, Action>;
21
26
  export declare type Store = ReduxStore<State, Action> & {
22
27
  dispatch: Dispatch;
@@ -1 +1 @@
1
- {"version":3,"file":"react-page.d.ts","sourceRoot":"","s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AAE,KAAK,EACZ,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAMjE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAgBjG;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAEpD;AAED,oBAAY,QAAQ,GAAG,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;AAE5D,oBAAY,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,2 @@
1
+ export declare type Foo = unknown;
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,oBAAY,GAAG,GAAG,OAAO,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const clamp: (min: number, val: number, max: number) => number;
2
+ export default clamp;
3
+ //# sourceMappingURL=clamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clamp.d.ts","sourceRoot":"","sources":["../../../src/utils/clamp.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK,QAAS,MAAM,OAAO,MAAM,OAAO,MAAM,KAAG,MAA2C,CAAA;AAElG,eAAe,KAAK,CAAA"}
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"deepEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/deepEqual.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,SAAS,MAAO,OAAO,KAAK,OAAO,KAAG,OA0B3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"deepEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/deepEqual.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,SAAS,MAAO,OAAO,KAAK,OAAO,KAAG,OAoB3C,CAAA;AAED,eAAe,SAAS,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"shallowEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/shallowEqual.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,YAAY,MAAO,OAAO,KAAK,OAAO,KAAG,OAuB9C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"shallowEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/shallowEqual.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,YAAY,MAAO,OAAO,KAAK,OAAO,KAAG,OAgB9C,CAAA;AAED,eAAe,YAAY,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/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@makeswift/runtime",
3
- "version": "0.0.0-0dee97b",
3
+ "version": "0.0.0-237e855",
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"
9
13
  ],
10
14
  "exports": {
11
15
  ".": {
@@ -32,73 +36,104 @@
32
36
  "typesVersions": {
33
37
  "*": {
34
38
  "prop-controllers": [
35
- "src/prop-controllers/index.ts"
39
+ "dist/types/prop-controllers/index.d.ts"
36
40
  ],
37
41
  "react": [
38
- "src/react.ts"
42
+ "dist/types/react.d.ts"
39
43
  ],
40
44
  "box-model": [
41
- "src/box-model.ts"
45
+ "dist/types/box-model.d.ts"
42
46
  ],
43
47
  "components": [
44
- "src/components/index.ts"
48
+ "dist/types/components/index.d.ts"
45
49
  ]
46
50
  }
47
51
  },
48
- "publishConfig": {
49
- "typesVersions": {
50
- "*": {
51
- "prop-controllers": [
52
- "dist/types/prop-controllers/index.d.ts"
53
- ],
54
- "react": [
55
- "dist/types/react.d.ts"
56
- ],
57
- "box-model": [
58
- "dist/types/box-model.d.ts"
59
- ],
60
- "components": [
61
- "dist/types/components/index.d.ts"
62
- ]
63
- }
64
- }
65
- },
66
52
  "scripts": {
67
53
  "dev": "concurrently -k 'tsc --watch --preserveWatchOutput' 'vite build --watch'",
68
54
  "build": "tsc && vite build",
69
- "preview": "vite preview"
55
+ "preview": "vite preview",
56
+ "deploy": "yarn publish . --new-version 0.0.0-$(git rev-parse --short HEAD) --access public && git push origin main",
57
+ "prepare": "yarn build"
70
58
  },
71
59
  "peerDependenciesMeta": {
60
+ "@apollo/client": {
61
+ "optional": true
62
+ },
63
+ "graphql": {
64
+ "optional": true
65
+ },
66
+ "next": {
67
+ "optional": true
68
+ },
72
69
  "react": {
73
70
  "optional": true
74
71
  },
72
+ "react-dom": {
73
+ "optional": true
74
+ },
75
+ "slate": {
76
+ "optional": true
77
+ },
78
+ "slate-react": {
79
+ "optional": true
80
+ },
75
81
  "styled-components": {
76
82
  "optional": true
77
83
  }
78
84
  },
79
85
  "peerDependencies": {
86
+ "@apollo/client": "^3.3.5",
87
+ "graphql": "^15.4.0",
88
+ "next": "12.0.2",
80
89
  "react": "^17.0.1",
90
+ "react-dom": "^17.0.1",
91
+ "slate": "^0.47.8",
92
+ "slate-react": "^0.22.9",
81
93
  "styled-components": "5.2.0"
82
94
  },
83
95
  "dependencies": {
84
- "@types/slate": "^0.47.8",
96
+ "@convertkit/slate-lists": "^0.2.4",
97
+ "@popmotion/popcorn": "^0.4.4",
98
+ "@types/react": "^17.0.3",
99
+ "@types/react-dom": "^17.0.2",
100
+ "@types/slate": "0.47.11",
101
+ "@types/slate-react": "^0.22.9",
85
102
  "@types/styled-components": "^5.1.5",
86
103
  "@types/use-sync-external-store": "^0.0.3",
104
+ "@types/uuid": "^7.0.3",
105
+ "corporate-ipsum": "^1.0.1",
87
106
  "css-box-model": "^1.2.1",
88
107
  "csstype": "^2.6.5",
89
108
  "framer-motion": "^6.0.0",
90
109
  "immutable": "^4.0.0-rc.12",
91
110
  "ot-json0": "^1.1.0",
92
111
  "polished": "3.0.3",
112
+ "react-player": "^1.12.0",
113
+ "react-use-gesture": "^9.1.3",
93
114
  "redux": "^4.0.5",
94
115
  "redux-thunk": "^2.3.0",
95
- "use-sync-external-store": "^1.0.0-rc.0"
116
+ "scroll-into-view-if-needed": "^2.2.20",
117
+ "slate-hotkeys": "^0.2.9",
118
+ "use-sync-external-store": "^1.0.0-rc.0",
119
+ "uuid": "^3.3.3"
96
120
  },
97
121
  "devDependencies": {
122
+ "@apollo/client": "^3.3.5",
123
+ "@svgr/rollup": "^6.2.1",
124
+ "@types/color": "^3.0.2",
98
125
  "@types/node": "^17.0.21",
99
126
  "@vitejs/plugin-react": "^1.1.4",
127
+ "color": "^3.1.3",
100
128
  "concurrently": "^5.3.0",
129
+ "graphql": "^15.4.0",
130
+ "next": "12.0.2",
131
+ "prettier": "^2.5.1",
101
132
  "react": "^17.0.1",
133
+ "react-dom": "^17.0.1",
134
+ "slate": "^0.47.8",
135
+ "slate-react": "^0.22.9",
136
+ "styled-components": "5.2.0",
102
137
  "typescript": "^4.5.5",
103
138
  "vite": "^2.7.2"
104
139
  }
@@ -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')