@makeswift/runtime 0.0.0-e7e30fa → 0.0.0-f94dde1

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 (263) hide show
  1. package/api.js +1 -0
  2. package/box-model.js +1 -0
  3. package/builder.js +1 -0
  4. package/components.js +1 -0
  5. package/dist/actions.cjs.js +101 -17
  6. package/dist/actions.cjs.js.map +1 -1
  7. package/dist/actions.es.js +90 -16
  8. package/dist/actions.es.js.map +1 -1
  9. package/dist/api.cjs.js +5 -0
  10. package/dist/api.cjs.js.map +1 -0
  11. package/dist/api.es.js +2 -0
  12. package/dist/api.es.js.map +1 -0
  13. package/dist/box-model.cjs.js +2 -2
  14. package/dist/box-model.es.js +1 -0
  15. package/dist/box-model.es.js.map +1 -1
  16. package/dist/box-models.cjs.js +27 -157
  17. package/dist/box-models.cjs.js.map +1 -1
  18. package/dist/box-models.es.js +30 -160
  19. package/dist/box-models.es.js.map +1 -1
  20. package/dist/builder.cjs.js +9 -0
  21. package/dist/builder.cjs.js.map +1 -0
  22. package/dist/builder.es.js +3 -0
  23. package/dist/builder.es.js.map +1 -0
  24. package/dist/components.cjs.js +55 -6900
  25. package/dist/components.cjs.js.map +1 -1
  26. package/dist/components.es.js +26 -6866
  27. package/dist/components.es.js.map +1 -1
  28. package/dist/constants.cjs.js +146 -0
  29. package/dist/constants.cjs.js.map +1 -0
  30. package/dist/constants.es.js +145 -0
  31. package/dist/constants.es.js.map +1 -0
  32. package/dist/control-serialization.cjs.js +91 -0
  33. package/dist/control-serialization.cjs.js.map +1 -0
  34. package/dist/control-serialization.es.js +87 -0
  35. package/dist/control-serialization.es.js.map +1 -0
  36. package/dist/descriptors.cjs.js +215 -0
  37. package/dist/descriptors.cjs.js.map +1 -0
  38. package/dist/descriptors.es.js +183 -0
  39. package/dist/descriptors.es.js.map +1 -0
  40. package/dist/instances.cjs.js +89 -0
  41. package/dist/instances.cjs.js.map +1 -0
  42. package/dist/instances.es.js +87 -0
  43. package/dist/instances.es.js.map +1 -0
  44. package/dist/main.cjs.js +5 -2
  45. package/dist/main.cjs.js.map +1 -1
  46. package/dist/main.es.js +1 -1
  47. package/dist/next.cjs.js +169 -0
  48. package/dist/next.cjs.js.map +1 -0
  49. package/dist/next.es.js +159 -0
  50. package/dist/next.es.js.map +1 -0
  51. package/dist/prop-controllers.cjs.js +5 -175
  52. package/dist/prop-controllers.cjs.js.map +1 -1
  53. package/dist/prop-controllers.es.js +2 -173
  54. package/dist/prop-controllers.es.js.map +1 -1
  55. package/dist/react-builder-preview.cjs.js +274 -4118
  56. package/dist/react-builder-preview.cjs.js.map +1 -1
  57. package/dist/react-builder-preview.es.js +273 -4121
  58. package/dist/react-builder-preview.es.js.map +1 -1
  59. package/dist/react.cjs.js +26 -2
  60. package/dist/react.cjs.js.map +1 -1
  61. package/dist/react.cjs2.js +5848 -624
  62. package/dist/react.cjs2.js.map +1 -1
  63. package/dist/react.es.js +25 -1
  64. package/dist/react.es.js.map +1 -1
  65. package/dist/react.es2.js +5795 -625
  66. package/dist/react.es2.js.map +1 -1
  67. package/dist/types/api/constants.d.ts +4 -0
  68. package/dist/types/api/constants.d.ts.map +1 -0
  69. package/dist/types/api/generated/graphql.d.ts +61 -0
  70. package/dist/types/api/generated/graphql.d.ts.map +1 -0
  71. package/dist/types/api/index.d.ts +3 -0
  72. package/dist/types/api/index.d.ts.map +1 -0
  73. package/dist/types/api/react.d.ts +6 -0
  74. package/dist/types/api/react.d.ts.map +1 -0
  75. package/dist/types/api/types.d.ts +4 -0
  76. package/dist/types/api/types.d.ts.map +1 -0
  77. package/dist/types/builder/index.d.ts +2 -0
  78. package/dist/types/builder/index.d.ts.map +1 -0
  79. package/dist/types/builder/serialization/control-serialization.d.ts +30 -0
  80. package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -0
  81. package/dist/types/builder/serialization/function-serialization.d.ts +11 -0
  82. package/dist/types/builder/serialization/function-serialization.d.ts.map +1 -0
  83. package/dist/types/builder/serialization/index.d.ts +3 -0
  84. package/dist/types/builder/serialization/index.d.ts.map +1 -0
  85. package/dist/types/components/{Box → builtin/Box}/Box.d.ts +10 -4
  86. package/dist/types/components/builtin/Box/Box.d.ts.map +1 -0
  87. package/dist/types/components/{Box → builtin/Box}/animations.d.ts +2 -2
  88. package/dist/types/components/builtin/Box/animations.d.ts.map +1 -0
  89. package/dist/types/components/{Box → builtin/Box}/components/Placeholder/index.d.ts +0 -0
  90. package/dist/types/components/builtin/Box/components/Placeholder/index.d.ts.map +1 -0
  91. package/dist/types/components/{Box → builtin/Box}/index.d.ts +1 -1
  92. package/dist/types/components/builtin/Box/index.d.ts.map +1 -0
  93. package/dist/types/components/builtin/Button/Button.d.ts +118 -0
  94. package/dist/types/components/builtin/Button/Button.d.ts.map +1 -0
  95. package/dist/types/components/builtin/Button/index.d.ts +2 -0
  96. package/dist/types/components/builtin/Button/index.d.ts.map +1 -0
  97. package/dist/types/components/builtin/Carousel/Carousel.d.ts +28 -0
  98. package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -0
  99. package/dist/types/components/builtin/Carousel/index.d.ts +2 -0
  100. package/dist/types/components/builtin/Carousel/index.d.ts.map +1 -0
  101. package/dist/types/components/builtin/Countdown/Countdown.d.ts +27 -0
  102. package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -0
  103. package/dist/types/components/builtin/Countdown/index.d.ts +2 -0
  104. package/dist/types/components/builtin/Countdown/index.d.ts.map +1 -0
  105. package/dist/types/components/builtin/Divider/Divider.d.ts +17 -0
  106. package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -0
  107. package/dist/types/components/builtin/Divider/index.d.ts +2 -0
  108. package/dist/types/components/builtin/Divider/index.d.ts.map +1 -0
  109. package/dist/types/components/builtin/Embed/Embed.d.ts +14 -0
  110. package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -0
  111. package/dist/types/components/builtin/Embed/index.d.ts +2 -0
  112. package/dist/types/components/builtin/Embed/index.d.ts.map +1 -0
  113. package/dist/types/components/builtin/Image/Image.d.ts +29 -0
  114. package/dist/types/components/builtin/Image/Image.d.ts.map +1 -0
  115. package/dist/types/components/builtin/Image/index.d.ts +2 -0
  116. package/dist/types/components/builtin/Image/index.d.ts.map +1 -0
  117. package/dist/types/components/builtin/Navigation/Navigation.d.ts +26 -0
  118. package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -0
  119. package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts +100 -0
  120. package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -0
  121. package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts +8 -0
  122. package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts.map +1 -0
  123. package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts +101 -0
  124. package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts.map +1 -0
  125. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts +13 -0
  126. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -0
  127. package/dist/types/components/builtin/Navigation/index.d.ts +2 -0
  128. package/dist/types/components/builtin/Navigation/index.d.ts.map +1 -0
  129. package/dist/types/components/builtin/Root/Root.d.ts +14 -0
  130. package/dist/types/components/builtin/Root/Root.d.ts.map +1 -0
  131. package/dist/types/components/{Root → builtin/Root}/components/Placeholder/index.d.ts +0 -0
  132. package/dist/types/components/builtin/Root/components/Placeholder/index.d.ts.map +1 -0
  133. package/dist/types/components/builtin/Root/index.d.ts +2 -0
  134. package/dist/types/components/builtin/Root/index.d.ts.map +1 -0
  135. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +21 -0
  136. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -0
  137. package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts +8 -0
  138. package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts.map +1 -0
  139. package/dist/types/components/builtin/SocialLinks/index.d.ts +2 -0
  140. package/dist/types/components/builtin/SocialLinks/index.d.ts.map +1 -0
  141. package/dist/types/components/builtin/SocialLinks/options.d.ts +113 -0
  142. package/dist/types/components/builtin/SocialLinks/options.d.ts.map +1 -0
  143. package/dist/types/components/builtin/Text/Text.d.ts +19 -0
  144. package/dist/types/components/builtin/Text/Text.d.ts.map +1 -0
  145. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts +24 -0
  146. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts.map +1 -0
  147. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts +25 -0
  148. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts.map +1 -0
  149. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts +13 -0
  150. package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts.map +1 -0
  151. package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts +5 -0
  152. package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts.map +1 -0
  153. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts +3 -0
  154. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts.map +1 -0
  155. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts +3 -0
  156. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts.map +1 -0
  157. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts +3 -0
  158. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts.map +1 -0
  159. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts +3 -0
  160. package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts.map +1 -0
  161. package/dist/types/components/builtin/Text/index.d.ts +2 -0
  162. package/dist/types/components/builtin/Text/index.d.ts.map +1 -0
  163. package/dist/types/components/builtin/index.d.ts +15 -0
  164. package/dist/types/components/builtin/index.d.ts.map +1 -0
  165. package/dist/types/components/hooks/index.d.ts +6 -0
  166. package/dist/types/components/hooks/index.d.ts.map +1 -1
  167. package/dist/types/components/hooks/useBackgrounds.d.ts +59 -0
  168. package/dist/types/components/hooks/useBackgrounds.d.ts.map +1 -0
  169. package/dist/types/components/hooks/useBorder.d.ts +19 -0
  170. package/dist/types/components/hooks/useBorder.d.ts.map +1 -0
  171. package/dist/types/components/hooks/useBoxShadow.d.ts +19 -0
  172. package/dist/types/components/hooks/useBoxShadow.d.ts.map +1 -0
  173. package/dist/types/components/hooks/useColor.d.ts +7 -0
  174. package/dist/types/components/hooks/useColor.d.ts.map +1 -0
  175. package/dist/types/components/hooks/useFile.d.ts +13 -0
  176. package/dist/types/components/hooks/useFile.d.ts.map +1 -0
  177. package/dist/types/components/hooks/usePage.d.ts +7 -0
  178. package/dist/types/components/hooks/usePage.d.ts.map +1 -0
  179. package/dist/types/components/hooks/useTypography.d.ts +24 -0
  180. package/dist/types/components/hooks/useTypography.d.ts.map +1 -0
  181. package/dist/types/components/index.d.ts +2 -3
  182. package/dist/types/components/index.d.ts.map +1 -1
  183. package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts +11 -0
  184. package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -0
  185. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts +8 -0
  186. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -0
  187. package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts +11 -0
  188. package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -0
  189. package/dist/types/components/shared/BackgroundsContainer/index.d.ts +11 -0
  190. package/dist/types/components/shared/BackgroundsContainer/index.d.ts.map +1 -0
  191. package/dist/types/components/shared/GutterContainer/index.d.ts +8 -0
  192. package/dist/types/components/shared/GutterContainer/index.d.ts.map +1 -0
  193. package/dist/types/components/shared/Link/index.d.ts +9 -0
  194. package/dist/types/components/shared/Link/index.d.ts.map +1 -0
  195. package/dist/types/components/utils/colorToString.d.ts +3 -0
  196. package/dist/types/components/utils/colorToString.d.ts.map +1 -0
  197. package/dist/types/components/utils/cssMediaRules.d.ts +23 -1
  198. package/dist/types/components/utils/cssMediaRules.d.ts.map +1 -1
  199. package/dist/types/components/utils/devices.d.ts +1 -0
  200. package/dist/types/components/utils/devices.d.ts.map +1 -1
  201. package/dist/types/components/utils/isNonNullable.d.ts +2 -0
  202. package/dist/types/components/utils/isNonNullable.d.ts.map +1 -0
  203. package/dist/types/components/utils/placeholders.d.ts +10 -0
  204. package/dist/types/components/utils/placeholders.d.ts.map +1 -0
  205. package/dist/types/components/utils/queries.d.ts +7 -0
  206. package/dist/types/components/utils/queries.d.ts.map +1 -0
  207. package/dist/types/components/utils/types.d.ts +11 -0
  208. package/dist/types/components/utils/types.d.ts.map +1 -0
  209. package/dist/types/index.d.ts +2 -1
  210. package/dist/types/index.d.ts.map +1 -1
  211. package/dist/types/next.d.ts +21 -0
  212. package/dist/types/next.d.ts.map +1 -0
  213. package/dist/types/prop-controllers/descriptors.d.ts +40 -3
  214. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  215. package/dist/types/prop-controllers/index.d.ts +3 -1
  216. package/dist/types/prop-controllers/index.d.ts.map +1 -1
  217. package/dist/types/prop-controllers/instances.d.ts +69 -0
  218. package/dist/types/prop-controllers/instances.d.ts.map +1 -0
  219. package/dist/types/prop-controllers/introspection.d.ts +5 -0
  220. package/dist/types/prop-controllers/introspection.d.ts.map +1 -0
  221. package/dist/types/react.d.ts +1 -1
  222. package/dist/types/react.d.ts.map +1 -1
  223. package/dist/types/runtimes/react.d.ts +15 -7
  224. package/dist/types/runtimes/react.d.ts.map +1 -1
  225. package/dist/types/state/actions.d.ts +126 -13
  226. package/dist/types/state/actions.d.ts.map +1 -1
  227. package/dist/types/state/modules/box-models.d.ts +5 -5
  228. package/dist/types/state/modules/box-models.d.ts.map +1 -1
  229. package/dist/types/state/modules/prop-controller-handles.d.ts +16 -0
  230. package/dist/types/state/modules/prop-controller-handles.d.ts.map +1 -0
  231. package/dist/types/state/modules/prop-controllers.d.ts +1 -0
  232. package/dist/types/state/modules/prop-controllers.d.ts.map +1 -1
  233. package/dist/types/state/react-builder-preview.d.ts +16 -11
  234. package/dist/types/state/react-builder-preview.d.ts.map +1 -1
  235. package/dist/types/state/react-page.d.ts +5 -0
  236. package/dist/types/state/react-page.d.ts.map +1 -1
  237. package/dist/types/utils/clamp.d.ts +3 -0
  238. package/dist/types/utils/clamp.d.ts.map +1 -0
  239. package/dist/types/utils/coalesce.d.ts +3 -0
  240. package/dist/types/utils/coalesce.d.ts.map +1 -0
  241. package/dist/types/utils/constants.d.ts +6 -0
  242. package/dist/types/utils/constants.d.ts.map +1 -0
  243. package/dist/types/utils/deepEqual.d.ts.map +1 -1
  244. package/dist/types/utils/intersection.d.ts +4 -0
  245. package/dist/types/utils/intersection.d.ts.map +1 -0
  246. package/dist/types/utils/keys.d.ts +5 -0
  247. package/dist/types/utils/keys.d.ts.map +1 -0
  248. package/dist/types/utils/shallowEqual.d.ts.map +1 -1
  249. package/dist/types/utils/shallowMerge.d.ts +2 -0
  250. package/dist/types/utils/shallowMerge.d.ts.map +1 -0
  251. package/next.js +1 -0
  252. package/package.json +71 -15
  253. package/prop-controllers.js +1 -0
  254. package/react.js +1 -0
  255. package/dist/types/components/Box/Box.d.ts.map +0 -1
  256. package/dist/types/components/Box/animations.d.ts.map +0 -1
  257. package/dist/types/components/Box/components/Placeholder/index.d.ts.map +0 -1
  258. package/dist/types/components/Box/index.d.ts.map +0 -1
  259. package/dist/types/components/Root/Root.d.ts +0 -11
  260. package/dist/types/components/Root/Root.d.ts.map +0 -1
  261. package/dist/types/components/Root/components/Placeholder/index.d.ts.map +0 -1
  262. package/dist/types/components/Root/index.d.ts +0 -2
  263. package/dist/types/components/Root/index.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/builtin/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAa1C,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,YAAY,cA0B9D"}
@@ -1,2 +1,8 @@
1
+ export * from './useBackgrounds';
2
+ export * from './useBorder';
3
+ export * from './useBoxShadow';
4
+ export * from './useColor';
5
+ export * from './useFile';
1
6
  export * from './useMediaQuery';
7
+ export * from './usePage';
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,59 @@
1
+ import { ColorValue as Color } from '../utils/types';
2
+ import { ResponsiveValue } from '../../prop-controllers';
3
+ import { BackgroundsValue as ResponsiveBackgroundsValue } from '../../prop-controllers/descriptors';
4
+ declare type BackgroundColorData = Color;
5
+ declare type BackgroundGradientStopData = {
6
+ id: string;
7
+ location: number;
8
+ color: Color | null | undefined;
9
+ };
10
+ declare type BackgroundGradientData = {
11
+ angle: number;
12
+ isRadial: boolean;
13
+ stops: Array<BackgroundGradientStopData>;
14
+ };
15
+ declare type BackgroundImageData = {
16
+ publicUrl?: string;
17
+ dimensions: {
18
+ width: number;
19
+ height: number;
20
+ } | null;
21
+ position: {
22
+ x: number;
23
+ y: number;
24
+ };
25
+ size: 'cover' | 'contain' | 'auto';
26
+ repeat: 'no-repeat' | 'repeat-x' | 'repeat-y' | 'repeat';
27
+ opacity?: number;
28
+ parallax?: number;
29
+ };
30
+ declare type BackgroundVideoData = {
31
+ url: string;
32
+ maskColor: Color | null | undefined;
33
+ aspectRatio: 'wide' | 'standard';
34
+ opacity: number;
35
+ zoom: number;
36
+ parallax: number;
37
+ };
38
+ declare type BackgroundData = {
39
+ id: string;
40
+ type: 'color';
41
+ payload: BackgroundColorData | null | undefined;
42
+ } | {
43
+ id: string;
44
+ type: 'image';
45
+ payload: BackgroundImageData | null | undefined;
46
+ } | {
47
+ id: string;
48
+ type: 'gradient';
49
+ payload: BackgroundGradientData | null | undefined;
50
+ } | {
51
+ id: string;
52
+ type: 'video';
53
+ payload: BackgroundVideoData | null | undefined;
54
+ };
55
+ declare type BackgroundsData = Array<BackgroundData>;
56
+ export declare type BackgroundsPropControllerData = ResponsiveValue<BackgroundsData>;
57
+ export declare function useBackgrounds(value: ResponsiveBackgroundsValue | null | undefined): BackgroundsPropControllerData | null | undefined;
58
+ export {};
59
+ //# sourceMappingURL=useBackgrounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBackgrounds.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useBackgrounds.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,EAAE,gBAAgB,IAAI,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAGnG,aAAK,mBAAmB,GAAG,KAAK,CAAA;AAEhC,aAAK,0BAA0B,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;CAChC,CAAA;AAED,aAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAA;CACzC,CAAA;AAED,aAAK,mBAAmB,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IACpD,QAAQ,EAAE;QACR,CAAC,EAAE,MAAM,CAAA;QACT,CAAC,EAAE,MAAM,CAAA;KACV,CAAA;IACD,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;IAClC,MAAM,EAAE,WAAW,GAAG,U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import { ResponsiveValue } from '../../prop-controllers';
4
+ import { BorderValue as ResponsiveBorderValue } from '../../prop-controllers/descriptors';
5
+ export declare type BorderSide = {
6
+ width: number | null | undefined;
7
+ style: BorderStyleProperty;
8
+ color: Color | null | undefined;
9
+ };
10
+ declare type BorderData = {
11
+ borderTop: BorderSide | null | undefined;
12
+ borderRight: BorderSide | null | undefined;
13
+ borderBottom: BorderSide | null | undefined;
14
+ borderLeft: BorderSide | null | undefined;
15
+ };
16
+ export declare type BorderPropControllerData = ResponsiveValue<BorderData>;
17
+ export declare function useBorder(value: ResponsiveBorderValue | null | undefined): BorderPropControllerData | null | undefined;
18
+ export {};
19
+ //# sourceMappingURL=useBorder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBorder.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useBorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAI7C,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,WAAW,IAAI,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAazF,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,mBAAmB,CAAA;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;CAChC,CAAA;AAED,aAAK,UAAU,GAAG;IAChB,SAAS,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAA;IACxC,WAAW,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAA;IAC1C,YAAY,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAA;IAC3C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAA;CAC1C,CAAA;AAED,oBAAY,wBAAwB,GAAG,eAAe,CAAC,UAAU,CAAC,CAAA;AAElE,wBAAgB,SAAS,CACvB,KAAK,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,GAC9C,wBAAwB,GAAG,IAAI,GAAG,SAAS,CAmC7C"}
@@ -0,0 +1,19 @@
1
+ import type { ColorValue as Color } from '../utils/types';
2
+ import type { ResponsiveValue } from '../../prop-controllers';
3
+ import type { ShadowsValue as ResponsiveShadowsValue } from '../../prop-controllers/descriptors';
4
+ declare type ShadowData = {
5
+ id: string;
6
+ payload: {
7
+ inset: boolean;
8
+ offsetX: number;
9
+ offsetY: number;
10
+ blurRadius: number;
11
+ spreadRadius: number;
12
+ color: Color | null | undefined;
13
+ };
14
+ };
15
+ export declare type BoxShadowData = Array<ShadowData>;
16
+ export declare type BoxShadowPropControllerData = ResponsiveValue<BoxShadowData>;
17
+ export declare function useBoxShadow(value: ResponsiveShadowsValue | null | undefined): BoxShadowPropControllerData | null | undefined;
18
+ export {};
19
+ //# sourceMappingURL=useBoxShadow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBoxShadow.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useBoxShadow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,IAAI,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAGhG,aAAK,UAAU,GAAG;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE;QACP,KAAK,EAAE,OAAO,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,MAAM,CAAA;QACpB,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;KAChC,CAAA;CACF,CAAA;AAWD,oBAAY,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,CAAA;AAE7C,oBAAY,2BAA2B,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;AAExE,wBAAgB,YAAY,CAC1B,KAAK,EAAE,sBAAsB,GAAG,IAAI,GAAG,SAAS,GAC/C,2BAA2B,GAAG,IAAI,GAAG,SAAS,CAiDhD"}
@@ -0,0 +1,7 @@
1
+ import type { ResponsiveValue } from '../../prop-controllers';
2
+ import type { ColorValue as Color } from '../utils/types';
3
+ export declare function useColor(color: ResponsiveValue<{
4
+ swatchId: string;
5
+ alpha: number;
6
+ }> | null | undefined): ResponsiveValue<Color> | null | undefined;
7
+ //# sourceMappingURL=useColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useColor.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAGzD,wBAAgB,QAAQ,CACtB,KAAK,EACD,eAAe,CAAC;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC,GACF,IAAI,GACJ,SAAS,GACZ,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,CAoB3C"}
@@ -0,0 +1,13 @@
1
+ declare type File = {
2
+ id: string;
3
+ name: string;
4
+ publicUrl: string;
5
+ extension: string;
6
+ dimensions: {
7
+ width: number;
8
+ height: number;
9
+ } | null;
10
+ };
11
+ export declare function useFile(fileId: string | null | undefined): File | null | undefined;
12
+ export {};
13
+ //# sourceMappingURL=useFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFile.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useFile.ts"],"names":[],"mappings":"AAGA,aAAK,IAAI,GAAG;IACV,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACrD,CAAA;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CASlF"}
@@ -0,0 +1,7 @@
1
+ declare type Page = {
2
+ id: string;
3
+ pathname: string;
4
+ };
5
+ export declare function usePage(pageId: string | null | undefined): Page | null | undefined;
6
+ export {};
7
+ //# sourceMappingURL=usePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePage.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/usePage.ts"],"names":[],"mappings":"AAGA,aAAK,IAAI,GAAG;IACV,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAWlF"}
@@ -0,0 +1,24 @@
1
+ import type { ColorValue } from '../utils/types';
2
+ import type { Length as LengthValue } from '../../prop-controllers';
3
+ import { DeviceOverride } from '../../prop-controllers';
4
+ export declare type TypographyStyleValue = {
5
+ fontFamily?: string;
6
+ fontWeight?: number;
7
+ fontSize?: LengthValue;
8
+ color?: ColorValue;
9
+ textAlign?: string;
10
+ lineHeight?: number;
11
+ letterSpacing?: number;
12
+ uppercase?: boolean;
13
+ underline?: boolean;
14
+ strikethrough?: boolean;
15
+ italic?: boolean;
16
+ };
17
+ export declare type TypographyStyle = Array<DeviceOverride<TypographyStyleValue>>;
18
+ export declare type Typography = {
19
+ id: string;
20
+ name: string;
21
+ style: TypographyStyle;
22
+ };
23
+ export declare function useTypography(typographyId: string | null | undefined): Typography | null | undefined;
24
+ //# sourceMappingURL=useTypography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTypography.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useTypography.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAIvD,oBAAY,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,WAAW,CAAA;IACtB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,oBAAY,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAA;AAEzE,oBAAY,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,eAAe,CAAA;CACvB,CAAA;AAED,wBAAgB,aAAa,CAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACtC,UAAU,GAAG,IAAI,GAAG,SAAS,CAS/B"}
@@ -1,4 +1,3 @@
1
- export { default as Root } from './Root';
2
- export { default as Box } from './Box';
3
- export * from './Box';
1
+ export * from './builtin';
2
+ export * from './utils/cssMediaRules';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAA;AACtC,cAAc,OAAO,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ declare type Props = {
3
+ url?: string;
4
+ aspectRatio?: number;
5
+ zoom?: number;
6
+ opacity?: number;
7
+ maskColor?: string;
8
+ };
9
+ export default function BackgroundVideo({ url, aspectRatio, zoom, maskColor, opacity, }: Props): JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/shared/BackgroundsContainer/components/BackgroundVideo/index.tsx"],"names":[],"mappings":";AAgCA,aAAK,KAAK,GAAG;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,GAAQ,EACR,WAAoB,EACpB,IAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA8DrB"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { BackgroundsPropControllerData } from '../../../../hooks';
3
+ declare type Props = {
4
+ backgrounds: BackgroundsPropControllerData | null | undefined;
5
+ };
6
+ export default function Backgrounds({ backgrounds }: Props): JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/shared/BackgroundsContainer/components/Backgrounds/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AA0DjE,aAAK,KAAK,GAAG;IAAE,WAAW,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,CAAA;AAE9E,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAmHvE"}
@@ -0,0 +1,11 @@
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ declare type Props = {
3
+ strength: number | null | undefined;
4
+ children: (getParallaxProps: <P extends {
5
+ style?: CSSProperties;
6
+ [key: string]: unknown;
7
+ }>(props: P) => P) => ReactNode;
8
+ };
9
+ export default function Parallax({ strength, children, ...rest }: Props): JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/shared/BackgroundsContainer/components/Parallax/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAoBhG,aAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,QAAQ,EAAE,CACR,gBAAgB,EAAE,CAAC,CAAC,SAAS;QAAE,KAAK,CAAC,EAAE,aAAa,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,KAC3F,SAAS,CAAA;CACf,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA4FpF"}
@@ -0,0 +1,11 @@
1
+ import { ReactElement, ElementType, ComponentPropsWithoutRef } from 'react';
2
+ import { BackgroundsValue as BackgroundsPropControllerValue } from '../../../prop-controllers/descriptors';
3
+ declare const OuterContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
4
+ declare type BaseProps = {
5
+ backgrounds: BackgroundsPropControllerValue | null | undefined;
6
+ children: ReactElement<ElementType>;
7
+ };
8
+ declare type Props = BaseProps & Omit<ComponentPropsWithoutRef<typeof OuterContainer>, keyof BaseProps>;
9
+ declare const _default: import("react").ForwardRefExoticComponent<Pick<Props, string | number | symbol> & import("react").RefAttributes<HTMLDivElement | null>>;
10
+ export default _default;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/BackgroundsContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EAGX,wBAAwB,EAGzB,MAAM,OAAO,CAAA;AAKd,OAAO,EAAE,gBAAgB,IAAI,8BAA8B,EAAE,MAAM,uCAAuC,CAAA;AAI1G,QAAA,MAAM,cAAc,0KAanB,CAAA;AAED,aAAK,SAAS,GAAG;IACf,WAAW,EAAE,8BAA8B,GAAG,IAAI,GAAG,SAAS,CAAA;IAC9D,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;CACpC,CAAA;AAED,aAAK,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,EAAE,MAAM,SAAS,CAAC,CAAA;;AAE/F,wBAcE"}
@@ -0,0 +1,8 @@
1
+ import { ResponsiveValue, Length } from '../../../prop-controllers/descriptors';
2
+ declare const GutterContainer: import("styled-components").StyledComponent<"div", any, {
3
+ gutter?: ResponsiveValue<Length> | undefined;
4
+ first: boolean;
5
+ last: boolean;
6
+ }, never>;
7
+ export default GutterContainer;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/GutterContainer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAA;AAG/E,QAAA,MAAM,eAAe;;WAEZ,OAAO;UACR,OAAO;SAUd,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { MouseEvent } from 'react';
2
+ import { LinkValue as LinkPropControllerValue } from '../../../prop-controllers/descriptors';
3
+ declare type BaseProps = {
4
+ link?: LinkPropControllerValue;
5
+ onClick?: (event: MouseEvent<HTMLAnchorElement>) => unknown;
6
+ };
7
+ export declare const Link: import("react").ForwardRefExoticComponent<BaseProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>>, keyof BaseProps> & import("react").RefAttributes<HTMLAnchorElement>>;
8
+ export {};
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,UAAU,EAAE,MAAM,OAAO,CAAA;AAIxE,OAAO,EAAE,SAAS,IAAI,uBAAuB,EAAE,MAAM,uCAAuC,CAAA;AAI5F,aAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,uBAAuB,CAAA;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,OAAO,CAAA;CAC5D,CAAA;AAID,eAAO,MAAM,IAAI,6TAkGf,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ColorValue as Color } from './types';
2
+ export declare function colorToString(color?: Color): string;
3
+ //# sourceMappingURL=colorToString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorToString.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/colorToString.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAElD,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAInD"}
@@ -2,7 +2,8 @@ import { css, CSSObject } from 'styled-components';
2
2
  import { WidthProperty, MarginTopProperty, MarginRightProperty, MarginBottomProperty, MarginLeftProperty, PaddingTopProperty, PaddingRightProperty, PaddingBottomProperty, PaddingLeftProperty, BorderTopLeftRadiusProperty, BorderTopRightRadiusProperty, BorderBottomLeftRadiusProperty, BorderBottomRightRadiusProperty } from 'csstype';
3
3
  import { ResponsiveValue, ResponsiveValueType as ExtractResponsiveValue, Length as LengthValue } from '../../prop-controllers';
4
4
  import { FallbackStrategy } from './devices';
5
- import { BorderRadiusValue, MarginValue, PaddingValue, WidthValue } from '../../prop-controllers/descriptors';
5
+ import { BorderRadiusValue, MarginValue, PaddingValue, TextStyleValue, WidthValue } from '../../prop-controllers/descriptors';
6
+ import { BorderSide, BorderPropControllerData, BoxShadowData, BoxShadowPropControllerData } from '../hooks';
6
7
  declare type CSSRules = ReturnType<typeof css>;
7
8
  export declare function cssMediaRules<V, A extends ReadonlyArray<ResponsiveValue<V> | null | undefined>, P>(responsiveValues: A | ((props: P) => A), join: (values: {
8
9
  [K in keyof A]: ExtractResponsiveValue<A[K]> | undefined;
@@ -26,6 +27,14 @@ export declare function cssPadding(defaultValue?: {
26
27
  }): (props: {
27
28
  padding?: PaddingValue;
28
29
  }) => CSSRules;
30
+ export declare function cssBorder(defaultValue?: {
31
+ borderTop?: BorderSide;
32
+ borderRight?: BorderSide;
33
+ borderBottom?: BorderSide;
34
+ borderLeft?: BorderSide;
35
+ }): (props: {
36
+ border?: BorderPropControllerData | null | undefined;
37
+ }) => CSSRules;
29
38
  export declare function cssBorderRadius(defaultValue?: {
30
39
  borderTopLeftRadius?: LengthValue | BorderTopLeftRadiusProperty<string | number>;
31
40
  borderTopRightRadius?: LengthValue | BorderTopRightRadiusProperty<string | number>;
@@ -34,6 +43,9 @@ export declare function cssBorderRadius(defaultValue?: {
34
43
  }): (props: {
35
44
  borderRadius?: BorderRadiusValue;
36
45
  }) => CSSRules;
46
+ export declare function cssBoxShadow(defaultValue?: BoxShadowData): (props: {
47
+ boxShadow?: BoxShadowPropControllerData | null | undefined;
48
+ }) => CSSRules;
37
49
  export declare function cssGridItem(): (props: {
38
50
  grid: ResponsiveValue<{
39
51
  spans: Array<Array<number>>;
@@ -43,5 +55,15 @@ export declare function cssGridItem(): (props: {
43
55
  columnGap?: ResponsiveValue<LengthValue>;
44
56
  rowGap?: ResponsiveValue<LengthValue>;
45
57
  }) => CSSRules;
58
+ export declare function cssTextStyle(defaultValue?: {
59
+ fontFamily?: string | null | undefined;
60
+ letterSpacing: number | null | undefined;
61
+ fontSize: LengthValue | null | undefined;
62
+ fontWeight: number | null | undefined;
63
+ textTransform: Array<'uppercase'>;
64
+ fontStyle: Array<'italic'>;
65
+ }): (arg0: {
66
+ textStyle?: TextStyleValue | null | undefined;
67
+ }) => CSSRules;
46
68
  export {};
47
69
  //# sourceMappingURL=cssMediaRules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cssMediaRules.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/cssMediaRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EACL,aAAa,EAEb,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAElB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EAEnB,2BAA2B,EAC3B,4BAA4B,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AAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACrE,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;IACxC,MAAM,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;CACtC,KAAK,QAAQ,CA0Cb;AAED,wBAAgB,YAAY,CAC1B,YAAY,GAAE;IACZ,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACtC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACxC,QAAQ,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACrC,aAAa,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;IACjC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;CAQ3B,GACA,CAAC,IAAI,EAAE;IAAE,SAAS,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,KAAK,QAAQ,CA8CvE"}
@@ -7,6 +7,7 @@ export declare type Device = {
7
7
  export declare const DEVICES: Array<Device>;
8
8
  export declare const getDevice: (deviceId: DeviceID) => Device;
9
9
  export declare type FallbackStrategy<V> = (arg0: DeviceOverride<V> | undefined, arg1: ResponsiveValue<V>) => DeviceOverride<V> | undefined;
10
+ export declare function shallowMergeFallbacks<V extends Record<string, unknown>>(value: DeviceOverride<V> | undefined, fallbacks: ResponsiveValue<V>): DeviceOverride<V> | undefined;
10
11
  export declare function findDeviceOverride<S>(values: ResponsiveValue<S> | undefined, deviceId: string, strategy?: FallbackStrategy<S>): DeviceOverride<S> | undefined;
11
12
  export declare type ExtractResponsiveValue<T> = T extends ResponsiveValue<infer V> ? V : never;
12
13
  export declare function join<V, A extends ReadonlyArray<ResponsiveValue<V> | null | undefined>, R>(responsiveValues: A, joinFn: (values: {
@@ -1 +1 @@
1
- {"version":3,"file":"devices.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;AAEtF,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC,EACvF,gBAAgB,EAAE,CAAC,EACnB,MAAM,EAAE,CAAC,MAAM,EAAE;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS;CAAE,KAAK,CAAC,EACnF,QAAQ,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAC7B,eAAe,CAAC,CAAC,CAAC,CAiBpB;AAED,eAAO,MAAM,mBAAmB,WAAY,MAAM,KAAG,MAYpD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function isNonNullable<T>(value: T): value is NonNullable<T>;
2
+ //# sourceMappingURL=isNonNullable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNonNullable.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/isNonNullable.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CAElE"}
@@ -0,0 +1,10 @@
1
+ export declare const placeholders: {
2
+ image: {
3
+ src: string;
4
+ dimensions: {
5
+ width: number;
6
+ height: number;
7
+ };
8
+ };
9
+ };
10
+ //# sourceMappingURL=placeholders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placeholders.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/placeholders.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;CAKxB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export declare const SWATCHES_BY_ID: import("@apollo/client").DocumentNode;
2
+ export declare const FILE_BY_ID: import("@apollo/client").DocumentNode;
3
+ export declare const FILES_BY_ID: import("@apollo/client").DocumentNode;
4
+ export declare const PAGE_PATHNAMES_BY_ID: import("@apollo/client").DocumentNode;
5
+ export declare const TYPOGRAPHY_FRAGMENT: import("@apollo/client").DocumentNode;
6
+ export declare const TYPOGRAPHIES_BY_ID: import("@apollo/client").DocumentNode;
7
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/queries.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,uCAS1B,CAAA;AAED,eAAO,MAAM,UAAU,uCAatB,CAAA;AAED,eAAO,MAAM,WAAW,uCAavB,CAAA;AAED,eAAO,MAAM,oBAAoB,uCAOhC,CAAA;AAED,eAAO,MAAM,mBAAmB,uCA2B/B,CAAA;AAED,eAAO,MAAM,kBAAkB,uCAQ9B,CAAA"}
@@ -0,0 +1,11 @@
1
+ declare type SwatchValue = {
2
+ hue: number;
3
+ saturation: number;
4
+ lightness: number;
5
+ };
6
+ export declare type ColorValue = {
7
+ swatch?: SwatchValue;
8
+ alpha: number;
9
+ };
10
+ export {};
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/types.ts"],"names":[],"mappings":"AAAA,aAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,oBAAY,UAAU,GAAG;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA"}
@@ -1,6 +1,7 @@
1
1
  export type { Action } from './state/actions';
2
- export { ActionTypes, changeDocument, changeDocumentElementScrollTop } from './state/actions';
2
+ export { ActionTypes, changeDocument, changeDocumentElementScrollTop, cleanUp, init, messageHostPropController, changeApiResource, } from './state/actions';
3
3
  export type { Operation } from './state/modules/read-write-documents';
4
4
  export type { ComponentMeta } from './state/modules/components-meta';
5
5
  export type { PropControllerDescriptor, PropControllerDescriptorValueType, } from './prop-controllers';
6
+ export type { Element } from './state/react-page';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAC7F,YAAY,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,YAAY,EACV,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EACL,WAAW,EACX,cAAc,EACd,8BAA8B,EAC9B,OAAO,EACP,IAAI,EACJ,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,YAAY,EACV,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { GetServerSidePropsContext, GetServerSidePropsResult, GetStaticPathsResult, GetStaticPropsContext, GetStaticPropsResult } from 'next';
3
+ import NextDocument, { DocumentContext, DocumentInitialProps } from 'next/document';
4
+ import { ReactRuntime } from './runtimes/react';
5
+ import { Element } from './state/react-page';
6
+ export declare class Document extends NextDocument {
7
+ static getInitialProps(ctx: DocumentContext): Promise<DocumentInitialProps>;
8
+ }
9
+ export declare type PageProps = {
10
+ pageId: string;
11
+ rootElement: Element;
12
+ makeswiftApiEndpoint: string;
13
+ registerComponents?(runtime: ReactRuntime): () => void;
14
+ };
15
+ export declare function getServerSideProps({ query: { pageId }, }: GetServerSidePropsContext): Promise<GetServerSidePropsResult<PageProps>>;
16
+ export declare function getStaticProps({ params, }: GetStaticPropsContext<{
17
+ path: string[];
18
+ }>): Promise<GetStaticPropsResult<PageProps>>;
19
+ export declare function getStaticPaths(): Promise<GetStaticPathsResult>;
20
+ export declare function Page({ pageId, rootElement, makeswiftApiEndpoint, registerComponents }: PageProps): JSX.Element;
21
+ //# sourceMappingURL=next.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../src/next.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,MAAM,CAAA;AACb,OAAO,YAAY,EAAE,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAGnF,OAAO,EAAkD,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/F,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,qBAAa,QAAS,SAAQ,YAAY;WAC3B,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAyBlF;AAID,oBAAY,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,OAAO,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,kBAAkB,CAAC,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,IAAI,CAAA;CACvD,CAAA;AAED,wBAAsB,kBAAkB,CAAC,EACvC,KAAK,EAAE,EAAE,MAAM,EAAE,GAClB,EAAE,yBAAyB,GAAG,OAAO,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CAuB1E;AAED,wBAAsB,cAAc,CAAC,EACnC,MAAM,GACP,EAAE,qBAAqB,CAAC;IAAE,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,CA2BtF;AAED,wBAAsB,cAAc,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAEpE;AAED,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,EAAE,SAAS,eAUhG"}
@@ -1,5 +1,6 @@
1
1
  import type * as Slate from 'slate';
2
2
  import type { Element, Data } from '../state/react-page';
3
+ export type { Data };
3
4
  export declare type IndexSignatureHack<T> = T extends Record<string, any> ? {
4
5
  [K in keyof T]: IndexSignatureHack<T[K]>;
5
6
  } : T;
@@ -87,6 +88,7 @@ export declare const Types: {
87
88
  readonly Image: "Image";
88
89
  readonly Images: "Images";
89
90
  readonly Link: "Link";
91
+ readonly List: "List";
90
92
  readonly Margin: "Margin";
91
93
  readonly NavigationLinks: "NavigationLinks";
92
94
  readonly Number: "Number";
@@ -99,6 +101,7 @@ export declare const Types: {
99
101
  readonly ResponsiveSelect: "ResponsiveSelect";
100
102
  readonly RichText: "RichText";
101
103
  readonly Shadows: "Shadows";
104
+ readonly Shape: "Shape";
102
105
  readonly SocialLinks: "SocialLinks";
103
106
  readonly Table: "Table";
104
107
  readonly TableFormFields: "TableFormFields";
@@ -319,6 +322,23 @@ declare type LinkDescriptor<_T = LinkValue> = {
319
322
  options: LinkOptions;
320
323
  };
321
324
  export declare function Link(options?: LinkOptions): LinkDescriptor;
325
+ declare type ListValueItem<T extends Data> = {
326
+ id: string;
327
+ value?: T;
328
+ };
329
+ export declare type ListValue<T extends Data = Data> = ListValueItem<T>[];
330
+ export declare type ListOptions<T extends Data> = {
331
+ type: PanelDescriptor<T>;
332
+ label?: string;
333
+ getItemLabel?: ((value: T | undefined) => string) | ((value: T | undefined) => Promise<string>);
334
+ preset?: ListValue<T>;
335
+ defaultValue?: ListValue<T>;
336
+ };
337
+ export declare type ListDescriptor<T extends ListValue = ListValue> = {
338
+ type: typeof Types.List;
339
+ options: ListOptions<T extends ListValue<infer U> ? U : never>;
340
+ };
341
+ export declare function List<T extends Data>(options: ListOptions<T>): ListDescriptor<ListValue<T>>;
322
342
  declare type MarginSide = {
323
343
  value: number;
324
344
  unit: 'px';
@@ -509,7 +529,7 @@ export declare type RichTextValue = IndexSignatureHack<Slate.ValueJSON>;
509
529
  declare type RichTextOptions = Options<{
510
530
  preset?: RichTextValue;
511
531
  }>;
512
- declare type RichTextDescriptor<_T extends Data = RichTextValue> = {
532
+ export declare type RichTextDescriptor<_T extends Data = RichTextValue> = {
513
533
  type: typeof Types.RichText;
514
534
  options: RichTextOptions;
515
535
  };
@@ -533,6 +553,20 @@ declare type ShadowsDescriptor<_T = ShadowsValue> = {
533
553
  options: ShadowsOptions;
534
554
  };
535
555
  export declare function Shadows(options?: ShadowsOptions): ShadowsDescriptor;
556
+ export declare type ShapeValue<T extends Data = Data> = Record<string, T>;
557
+ declare type ShapeOptions<T extends Record<string, Descriptor>> = {
558
+ type: T;
559
+ preset?: {
560
+ [K in keyof T]?: DescriptorValueType<T[K]>;
561
+ };
562
+ };
563
+ declare type ShapeDescriptor<_T extends Record<string, Data>, U extends Record<string, Descriptor>> = {
564
+ type: typeof Types.Shape;
565
+ options: ShapeOptions<U>;
566
+ };
567
+ export declare function Shape<T extends Record<string, Descriptor>>(options: ShapeOptions<T>): ShapeDescriptor<{
568
+ [K in keyof T]?: DescriptorValueType<T[K]>;
569
+ }, T>;
536
570
  declare type SocialLinkType = 'angellist' | 'codepen' | 'dribbble' | 'facebook' | 'github' | 'instagram' | 'linkedin' | 'medium' | 'pinterest' | 'reddit' | 'rss' | 'snapchat' | 'soundcloud' | 'spotify' | 'telegram' | 'tumblr' | 'twitch' | 'twitter' | 'vimeo' | 'whatsapp' | 'yelp' | 'youtube';
537
571
  declare type SocialLink = {
538
572
  type: SocialLinkType;
@@ -650,7 +684,10 @@ declare type WidthDescriptor<_T = WidthValue> = {
650
684
  options: WidthOptions;
651
685
  };
652
686
  export declare function Width(options?: WidthOptions): WidthDescriptor;
653
- export declare type Descriptor<T extends Data = Data> = BackgroundsDescriptor<T> | BorderDescriptor<T> | BorderRadiusDescriptor<T> | CheckboxDescriptor<T> | DateDescriptor<T> | ElementIDDescriptor<T> | FontDescriptor<T> | GapXDescriptor<T> | GapYDescriptor<T> | GridDescriptor<T> | ImageDescriptor<T> | ImagesDescriptor<T> | LinkDescriptor<T> | MarginDescriptor<T> | NavigationLinksDescriptor<T> | NumberDescriptor<T> | PaddingDescriptor<T> | ResponsiveColorDescriptor<T> | ResponsiveIconRadioGroupDescriptor<T extends ResponsiveIconRadioGroupValue<string> ? T : ResponsiveIconRadioGroupValue<string>> | ResponsiveLengthDescriptor<T> | ResponsiveNumberDescriptor<T> | ResponsiveOpacityDescriptor<T> | ResponsiveSelectDescriptor<T extends ResponsiveSelectValue<string> ? T : ResponsiveSelectValue<string>> | RichTextDescriptor<T> | ShadowsDescriptor<T> | SocialLinksDescriptor<T> | TableDescriptor<T> | TableFormFieldsDescriptor<T> | TextAreaDescriptor<T> | TextInputDescriptor<T> | TextStyleDescriptor<T> | VideoDescriptor<T> | WidthDescriptor<T>;
687
+ export declare type Descriptor<T extends Data = Data> = BackgroundsDescriptor<T> | BorderDescriptor<T> | BorderRadiusDescriptor<T> | CheckboxDescriptor<T> | DateDescriptor<T> | ElementIDDescriptor<T> | FontDescriptor<T> | GapXDescriptor<T> | GapYDescriptor<T> | GridDescriptor<T> | ImageDescriptor<T> | ImagesDescriptor<T> | LinkDescriptor<T> | ListDescriptor<T extends ListValue ? T : ListValue> | MarginDescriptor<T> | NavigationLinksDescriptor<T> | NumberDescriptor<T> | PaddingDescriptor<T> | ResponsiveColorDescriptor<T> | ResponsiveIconRadioGroupDescriptor<T extends ResponsiveIconRadioGroupValue<string> ? T : ResponsiveIconRadioGroupValue<string>> | ResponsiveLengthDescriptor<T> | ResponsiveNumberDescriptor<T> | ResponsiveOpacityDescriptor<T> | ResponsiveSelectDescriptor<T extends ResponsiveSelectValue<string> ? T : ResponsiveSelectValue<string>> | RichTextDescriptor<T> | ShadowsDescriptor<T> | ShapeDescriptor<T extends ShapeValue ? T : ShapeValue, any> | SocialLinksDescriptor<T> | TableDescriptor<T> | TableFormFieldsDescriptor<T> | TextAreaDescriptor<T> | TextInputDescriptor<T> | TextStyleDescriptor<T> | VideoDescriptor<T> | WidthDescriptor<T>;
688
+ declare type PanelDescriptorType = typeof Types.Backgrounds | typeof Types.ResponsiveIconRadioGroup | typeof Types.Margin | typeof Types.Padding | typeof Types.Border | typeof Types.Shadows | typeof Types.GapY | typeof Types.GapX | typeof Types.BorderRadius | typeof Types.Checkbox | typeof Types.TextInput | typeof Types.Link | typeof Types.List | typeof Types.Shape | typeof Types.ResponsiveSelect | typeof Types.ResponsiveColor | typeof Types.TextStyle | typeof Types.Images | typeof Types.ResponsiveNumber | typeof Types.Number | typeof Types.Date | typeof Types.Font | typeof Types.TextArea | typeof Types.Table | typeof Types.RichText | typeof Types.Image | typeof Types.ResponsiveOpacity | typeof Types.SocialLinks | typeof Types.Video | typeof Types.NavigationLinks;
689
+ export declare type PanelDescriptor<T extends Data = Data> = Extract<Descriptor<T>, {
690
+ type: PanelDescriptorType;
691
+ }>;
654
692
  export declare type DescriptorValueType<T extends Descriptor> = T extends Descriptor<infer U> ? U : never;
655
- export {};
656
693
  //# sourceMappingURL=descriptors.d.ts.map