@makeswift/runtime 0.21.3 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/dist/cjs/api/react.js +45 -0
  2. package/dist/cjs/api/react.js.map +1 -1
  3. package/dist/cjs/components/shared/Link/index.js +14 -69
  4. package/dist/cjs/components/shared/Link/index.js.map +1 -1
  5. package/dist/cjs/components/utils/responsive-style.js +2 -1
  6. package/dist/cjs/components/utils/responsive-style.js.map +1 -1
  7. package/dist/cjs/controls/link.js +46 -2
  8. package/dist/cjs/controls/link.js.map +1 -1
  9. package/dist/cjs/controls/rich-text/rich-text.js +12 -0
  10. package/dist/cjs/controls/rich-text/rich-text.js.map +1 -1
  11. package/dist/cjs/controls/rich-text-v2/rich-text-v2.js +12 -0
  12. package/dist/cjs/controls/rich-text-v2/rich-text-v2.js.map +1 -1
  13. package/dist/cjs/controls/slot.js +12 -0
  14. package/dist/cjs/controls/slot.js.map +1 -1
  15. package/dist/cjs/next/api-handler/handlers/manifest.js +1 -1
  16. package/dist/cjs/next/components/tests/controls/fixtures/rich-text-v2.js +203 -0
  17. package/dist/cjs/next/components/tests/controls/fixtures/rich-text-v2.js.map +1 -0
  18. package/dist/cjs/runtimes/react/components/ElementData.js +1 -1
  19. package/dist/cjs/runtimes/react/components/ElementData.js.map +1 -1
  20. package/dist/cjs/runtimes/react/controls/control.js +11 -156
  21. package/dist/cjs/runtimes/react/controls/control.js.map +1 -1
  22. package/dist/cjs/runtimes/react/controls/rich-text/EditableText/editable-text.js +1 -0
  23. package/dist/cjs/runtimes/react/controls/rich-text/EditableText/editable-text.js.map +1 -1
  24. package/dist/cjs/runtimes/react/controls/rich-text/rich-text.js +9 -3
  25. package/dist/cjs/runtimes/react/controls/rich-text/rich-text.js.map +1 -1
  26. package/dist/cjs/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.js +1 -0
  27. package/dist/cjs/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.js.map +1 -1
  28. package/dist/cjs/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.js +2 -2
  29. package/dist/cjs/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.js.map +1 -1
  30. package/dist/cjs/runtimes/react/controls/rich-text-v2/rich-text-v2.js +12 -9
  31. package/dist/cjs/runtimes/react/controls/rich-text-v2/rich-text-v2.js.map +1 -1
  32. package/dist/cjs/runtimes/react/controls/slot.js +5 -4
  33. package/dist/cjs/runtimes/react/controls/slot.js.map +1 -1
  34. package/dist/cjs/runtimes/react/controls/style.js +6 -47
  35. package/dist/cjs/runtimes/react/controls/style.js.map +1 -1
  36. package/dist/cjs/runtimes/react/controls/typography.js +49 -51
  37. package/dist/cjs/runtimes/react/controls/typography.js.map +1 -1
  38. package/dist/cjs/runtimes/react/controls.js +15 -111
  39. package/dist/cjs/runtimes/react/controls.js.map +1 -1
  40. package/dist/cjs/{utils/coalesce.js → runtimes/react/hooks/use-css-id.js} +13 -14
  41. package/dist/cjs/runtimes/react/hooks/use-css-id.js.map +1 -0
  42. package/dist/cjs/runtimes/react/hooks/use-resolved-props.js +85 -0
  43. package/dist/cjs/runtimes/react/hooks/use-resolved-props.js.map +1 -0
  44. package/dist/cjs/runtimes/react/hooks/use-resolved-value.js +9 -2
  45. package/dist/cjs/runtimes/react/hooks/use-resolved-value.js.map +1 -1
  46. package/dist/cjs/runtimes/react/hooks/use-resource-resolver.js +68 -0
  47. package/dist/cjs/runtimes/react/hooks/use-resource-resolver.js.map +1 -0
  48. package/dist/cjs/runtimes/react/hooks/use-stylesheet-factory.js +115 -0
  49. package/dist/cjs/runtimes/react/hooks/use-stylesheet-factory.js.map +1 -0
  50. package/dist/cjs/runtimes/react/resolvable-record.js +67 -0
  51. package/dist/cjs/runtimes/react/resolvable-record.js.map +1 -0
  52. package/dist/cjs/runtimes/react/use-style.js +20 -4
  53. package/dist/cjs/runtimes/react/use-style.js.map +1 -1
  54. package/dist/cjs/slate/TypographyPlugin/index.js +2 -1
  55. package/dist/cjs/slate/TypographyPlugin/index.js.map +1 -1
  56. package/dist/cjs/slate/TypographyPlugin/normalizeTypographyDown.js +2 -12
  57. package/dist/cjs/slate/TypographyPlugin/normalizeTypographyDown.js.map +1 -1
  58. package/dist/cjs/slate/index.js.map +1 -1
  59. package/dist/cjs/state/modules/breakpoints.js +7 -87
  60. package/dist/cjs/state/modules/breakpoints.js.map +1 -1
  61. package/dist/esm/api/react.js +45 -0
  62. package/dist/esm/api/react.js.map +1 -1
  63. package/dist/esm/components/shared/Link/index.js +14 -69
  64. package/dist/esm/components/shared/Link/index.js.map +1 -1
  65. package/dist/esm/components/utils/responsive-style.js +2 -3
  66. package/dist/esm/components/utils/responsive-style.js.map +1 -1
  67. package/dist/esm/controls/link.js +37 -2
  68. package/dist/esm/controls/link.js.map +1 -1
  69. package/dist/esm/controls/rich-text/rich-text.js +16 -1
  70. package/dist/esm/controls/rich-text/rich-text.js.map +1 -1
  71. package/dist/esm/controls/rich-text-v2/rich-text-v2.js +14 -1
  72. package/dist/esm/controls/rich-text-v2/rich-text-v2.js.map +1 -1
  73. package/dist/esm/controls/slot.js +14 -1
  74. package/dist/esm/controls/slot.js.map +1 -1
  75. package/dist/esm/next/api-handler/handlers/manifest.js +1 -1
  76. package/dist/esm/next/components/tests/controls/fixtures/rich-text-v2.js +179 -0
  77. package/dist/esm/next/components/tests/controls/fixtures/rich-text-v2.js.map +1 -0
  78. package/dist/esm/runtimes/react/components/ElementData.js +2 -2
  79. package/dist/esm/runtimes/react/components/ElementData.js.map +1 -1
  80. package/dist/esm/runtimes/react/controls/control.js +11 -175
  81. package/dist/esm/runtimes/react/controls/control.js.map +1 -1
  82. package/dist/esm/runtimes/react/controls/rich-text/EditableText/editable-text.js +1 -0
  83. package/dist/esm/runtimes/react/controls/rich-text/EditableText/editable-text.js.map +1 -1
  84. package/dist/esm/runtimes/react/controls/rich-text/rich-text.js +8 -2
  85. package/dist/esm/runtimes/react/controls/rich-text/rich-text.js.map +1 -1
  86. package/dist/esm/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.js +1 -0
  87. package/dist/esm/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.js.map +1 -1
  88. package/dist/esm/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.js +1 -1
  89. package/dist/esm/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.js.map +1 -1
  90. package/dist/esm/runtimes/react/controls/rich-text-v2/rich-text-v2.js +14 -9
  91. package/dist/esm/runtimes/react/controls/rich-text-v2/rich-text-v2.js.map +1 -1
  92. package/dist/esm/runtimes/react/controls/slot.js +4 -3
  93. package/dist/esm/runtimes/react/controls/slot.js.map +1 -1
  94. package/dist/esm/runtimes/react/controls/style.js +6 -37
  95. package/dist/esm/runtimes/react/controls/style.js.map +1 -1
  96. package/dist/esm/runtimes/react/controls/typography.js +49 -48
  97. package/dist/esm/runtimes/react/controls/typography.js.map +1 -1
  98. package/dist/esm/runtimes/react/controls.js +14 -129
  99. package/dist/esm/runtimes/react/controls.js.map +1 -1
  100. package/dist/esm/runtimes/react/hooks/use-css-id.js +8 -0
  101. package/dist/esm/runtimes/react/hooks/use-css-id.js.map +1 -0
  102. package/dist/esm/runtimes/react/hooks/use-resolved-props.js +53 -0
  103. package/dist/esm/runtimes/react/hooks/use-resolved-props.js.map +1 -0
  104. package/dist/esm/runtimes/react/hooks/use-resolved-value.js +9 -2
  105. package/dist/esm/runtimes/react/hooks/use-resolved-value.js.map +1 -1
  106. package/dist/esm/runtimes/react/hooks/use-resource-resolver.js +34 -0
  107. package/dist/esm/runtimes/react/hooks/use-resource-resolver.js.map +1 -0
  108. package/dist/esm/runtimes/react/hooks/use-stylesheet-factory.js +94 -0
  109. package/dist/esm/runtimes/react/hooks/use-stylesheet-factory.js.map +1 -0
  110. package/dist/esm/runtimes/react/resolvable-record.js +43 -0
  111. package/dist/esm/runtimes/react/resolvable-record.js.map +1 -0
  112. package/dist/esm/runtimes/react/use-style.js +17 -3
  113. package/dist/esm/runtimes/react/use-style.js.map +1 -1
  114. package/dist/esm/slate/TypographyPlugin/index.js +2 -1
  115. package/dist/esm/slate/TypographyPlugin/index.js.map +1 -1
  116. package/dist/esm/slate/TypographyPlugin/normalizeTypographyDown.js +1 -1
  117. package/dist/esm/slate/TypographyPlugin/normalizeTypographyDown.js.map +1 -1
  118. package/dist/esm/slate/index.js.map +1 -1
  119. package/dist/esm/state/modules/breakpoints.js +9 -70
  120. package/dist/esm/state/modules/breakpoints.js.map +1 -1
  121. package/dist/types/api/react.d.ts +11 -1
  122. package/dist/types/api/react.d.ts.map +1 -1
  123. package/dist/types/components/builtin/Button/Button.d.ts +2 -2
  124. package/dist/types/components/shared/Link/index.d.ts.map +1 -1
  125. package/dist/types/components/utils/responsive-style.d.ts +1 -1
  126. package/dist/types/components/utils/responsive-style.d.ts.map +1 -1
  127. package/dist/types/controls/link.d.ts +16 -2
  128. package/dist/types/controls/link.d.ts.map +1 -1
  129. package/dist/types/controls/rich-text/rich-text.d.ts +2 -1
  130. package/dist/types/controls/rich-text/rich-text.d.ts.map +1 -1
  131. package/dist/types/controls/rich-text-v2/rich-text-v2.d.ts +2 -1
  132. package/dist/types/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -1
  133. package/dist/types/controls/slot.d.ts +2 -1
  134. package/dist/types/controls/slot.d.ts.map +1 -1
  135. package/dist/types/locale.d.ts +1 -1
  136. package/dist/types/next/components/tests/controls/fixtures/rich-text-v2.d.ts +40 -0
  137. package/dist/types/next/components/tests/controls/fixtures/rich-text-v2.d.ts.map +1 -0
  138. package/dist/types/next/components/tests/controls/rich-text-v2-control.test.d.ts +2 -0
  139. package/dist/types/next/components/tests/controls/rich-text-v2-control.test.d.ts.map +1 -0
  140. package/dist/types/runtimes/react/controls/control.d.ts +1 -1
  141. package/dist/types/runtimes/react/controls/control.d.ts.map +1 -1
  142. package/dist/types/runtimes/react/controls/rich-text/EditableText/editable-text.d.ts.map +1 -1
  143. package/dist/types/runtimes/react/controls/rich-text/rich-text.d.ts +1 -1
  144. package/dist/types/runtimes/react/controls/rich-text/rich-text.d.ts.map +1 -1
  145. package/dist/types/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.d.ts.map +1 -1
  146. package/dist/types/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.d.ts +3 -3
  147. package/dist/types/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.d.ts.map +1 -1
  148. package/dist/types/runtimes/react/controls/rich-text-v2/rich-text-v2.d.ts +1 -1
  149. package/dist/types/runtimes/react/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -1
  150. package/dist/types/runtimes/react/controls/slot.d.ts +4 -1
  151. package/dist/types/runtimes/react/controls/slot.d.ts.map +1 -1
  152. package/dist/types/runtimes/react/controls/style.d.ts +4 -3
  153. package/dist/types/runtimes/react/controls/style.d.ts.map +1 -1
  154. package/dist/types/runtimes/react/controls/typography.d.ts +5 -6
  155. package/dist/types/runtimes/react/controls/typography.d.ts.map +1 -1
  156. package/dist/types/runtimes/react/controls.d.ts +1 -1
  157. package/dist/types/runtimes/react/controls.d.ts.map +1 -1
  158. package/dist/types/runtimes/react/hooks/use-css-id.d.ts +2 -0
  159. package/dist/types/runtimes/react/hooks/use-css-id.d.ts.map +1 -0
  160. package/dist/types/runtimes/react/hooks/use-resolved-props.d.ts +3 -0
  161. package/dist/types/runtimes/react/hooks/use-resolved-props.d.ts.map +1 -0
  162. package/dist/types/runtimes/react/hooks/use-resolved-value.d.ts +2 -2
  163. package/dist/types/runtimes/react/hooks/use-resolved-value.d.ts.map +1 -1
  164. package/dist/types/runtimes/react/hooks/use-resource-resolver.d.ts +3 -0
  165. package/dist/types/runtimes/react/hooks/use-resource-resolver.d.ts.map +1 -0
  166. package/dist/types/runtimes/react/hooks/use-stylesheet-factory.d.ts +7 -0
  167. package/dist/types/runtimes/react/hooks/use-stylesheet-factory.d.ts.map +1 -0
  168. package/dist/types/runtimes/react/resolvable-record.d.ts +3 -0
  169. package/dist/types/runtimes/react/resolvable-record.d.ts.map +1 -0
  170. package/dist/types/runtimes/react/use-style.d.ts +4 -0
  171. package/dist/types/runtimes/react/use-style.d.ts.map +1 -1
  172. package/dist/types/slate/BlockPlugin/index.d.ts +5 -5
  173. package/dist/types/slate/LinkPlugin/getValue.d.ts +1 -1
  174. package/dist/types/slate/LinkPlugin/index.d.ts +1 -1
  175. package/dist/types/slate/TypographyPlugin/index.d.ts.map +1 -1
  176. package/dist/types/slate/TypographyPlugin/normalizeTypographyDown.d.ts.map +1 -1
  177. package/dist/types/slate/index.d.ts +1 -0
  178. package/dist/types/slate/index.d.ts.map +1 -1
  179. package/dist/types/slate/test-helpers/slate-test-helper.d.ts +4 -4
  180. package/dist/types/slate/test-helpers/test-elements.d.ts +1 -1
  181. package/dist/types/state/modules/breakpoints.d.ts +2 -21
  182. package/dist/types/state/modules/breakpoints.d.ts.map +1 -1
  183. package/package.json +4 -4
  184. package/dist/cjs/runtimes/react/controls/color.js +0 -58
  185. package/dist/cjs/runtimes/react/controls/color.js.map +0 -1
  186. package/dist/cjs/runtimes/react/controls/image.js +0 -53
  187. package/dist/cjs/runtimes/react/controls/image.js.map +0 -1
  188. package/dist/cjs/runtimes/react/controls/link.js +0 -110
  189. package/dist/cjs/runtimes/react/controls/link.js.map +0 -1
  190. package/dist/cjs/runtimes/react/controls/list.js +0 -58
  191. package/dist/cjs/runtimes/react/controls/list.js.map +0 -1
  192. package/dist/cjs/runtimes/react/controls/shape.js +0 -44
  193. package/dist/cjs/runtimes/react/controls/shape.js.map +0 -1
  194. package/dist/cjs/runtimes/react/controls/style-v2.js +0 -92
  195. package/dist/cjs/runtimes/react/controls/style-v2.js.map +0 -1
  196. package/dist/cjs/utils/coalesce.js.map +0 -1
  197. package/dist/cjs/utils/shallowMerge.js +0 -44
  198. package/dist/cjs/utils/shallowMerge.js.map +0 -1
  199. package/dist/esm/runtimes/react/controls/color.js +0 -24
  200. package/dist/esm/runtimes/react/controls/color.js.map +0 -1
  201. package/dist/esm/runtimes/react/controls/image.js +0 -29
  202. package/dist/esm/runtimes/react/controls/image.js.map +0 -1
  203. package/dist/esm/runtimes/react/controls/link.js +0 -76
  204. package/dist/esm/runtimes/react/controls/link.js.map +0 -1
  205. package/dist/esm/runtimes/react/controls/list.js +0 -34
  206. package/dist/esm/runtimes/react/controls/list.js.map +0 -1
  207. package/dist/esm/runtimes/react/controls/shape.js +0 -20
  208. package/dist/esm/runtimes/react/controls/shape.js.map +0 -1
  209. package/dist/esm/runtimes/react/controls/style-v2.js +0 -72
  210. package/dist/esm/runtimes/react/controls/style-v2.js.map +0 -1
  211. package/dist/esm/utils/coalesce.js +0 -13
  212. package/dist/esm/utils/coalesce.js.map +0 -1
  213. package/dist/esm/utils/shallowMerge.js +0 -14
  214. package/dist/esm/utils/shallowMerge.js.map +0 -1
  215. package/dist/types/runtimes/react/controls/color.d.ts +0 -4
  216. package/dist/types/runtimes/react/controls/color.d.ts.map +0 -1
  217. package/dist/types/runtimes/react/controls/image.d.ts +0 -4
  218. package/dist/types/runtimes/react/controls/image.d.ts.map +0 -1
  219. package/dist/types/runtimes/react/controls/link.d.ts +0 -4
  220. package/dist/types/runtimes/react/controls/link.d.ts.map +0 -1
  221. package/dist/types/runtimes/react/controls/list.d.ts +0 -12
  222. package/dist/types/runtimes/react/controls/list.d.ts.map +0 -1
  223. package/dist/types/runtimes/react/controls/shape.d.ts +0 -12
  224. package/dist/types/runtimes/react/controls/shape.d.ts.map +0 -1
  225. package/dist/types/runtimes/react/controls/style-v2.d.ts +0 -13
  226. package/dist/types/runtimes/react/controls/style-v2.d.ts.map +0 -1
  227. package/dist/types/utils/coalesce.d.ts +0 -3
  228. package/dist/types/utils/coalesce.d.ts.map +0 -1
  229. package/dist/types/utils/shallowMerge.d.ts +0 -2
  230. package/dist/types/utils/shallowMerge.d.ts.map +0 -1
@@ -0,0 +1,40 @@
1
+ export declare const data: {
2
+ type: "makeswift::controls::rich-text-v2";
3
+ version: 2;
4
+ descendants: {
5
+ children: ({
6
+ text: string;
7
+ children?: undefined;
8
+ link?: undefined;
9
+ type?: undefined;
10
+ } | {
11
+ children: {
12
+ text: string;
13
+ typography: {
14
+ id: string;
15
+ style: {
16
+ deviceId: string;
17
+ value: {
18
+ color: {
19
+ alpha: number;
20
+ swatchId: string;
21
+ };
22
+ };
23
+ }[];
24
+ };
25
+ }[];
26
+ link: {
27
+ payload: {
28
+ openInNewTab: true;
29
+ url: string;
30
+ };
31
+ type: "OPEN_URL";
32
+ };
33
+ type: "link";
34
+ text?: undefined;
35
+ })[];
36
+ type: "paragraph";
37
+ }[];
38
+ key: string;
39
+ };
40
+ //# sourceMappingURL=rich-text-v2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-v2.d.ts","sourceRoot":"","sources":["../../../../../../../src/next/components/tests/controls/fixtures/rich-text-v2.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8KS,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=rich-text-v2-control.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-v2-control.test.d.ts","sourceRoot":"","sources":["../../../../../../src/next/components/tests/controls/rich-text-v2-control.test.tsx"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ControlDefinition, type DataType, type ResolvedValueType, type InstanceType } from '@makeswift/controls';
2
+ import { ControlDefinition, type InstanceType, type DataType, type ResolvedValueType } from '@makeswift/controls';
3
3
  type ControlValueProps = {
4
4
  definition: ControlDefinition;
5
5
  data: DataType<ControlDefinition> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/controls/control.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAA;AAqC5B,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,iBAAiB,CAAA;IAC7B,IAAI,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAA;IAC7C,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,GAAG,CAAC,OAAO,CAAA;IAClE,OAAO,CAAC,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,OAAO,GACR,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CA2JjC"}
1
+ {"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/controls/control.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAA;AAM5B,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,iBAAiB,CAAA;IAC7B,IAAI,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAA;IAC7C,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,GAAG,CAAC,OAAO,CAAA;IAClE,OAAO,CAAC,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,OAAO,GACR,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAWjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"editable-text.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtimes/react/controls/rich-text/EditableText/editable-text.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAA2B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAMjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAA;AAG5F,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI1C,KAAK,KAAK,GAAG;IACX,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAMD,eAAO,MAAM,YAAY,sHAmFvB,CAAA;AAEF,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"editable-text.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtimes/react/controls/rich-text/EditableText/editable-text.tsx"],"names":[],"mappings":";AAoBA,OAAO,EAA2B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAMjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAA;AAG5F,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI1C,KAAK,KAAK,GAAG;IACX,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAMD,eAAO,MAAM,YAAY,sHAmFvB,CAAA;AAEF,eAAe,YAAY,CAAA"}
@@ -5,5 +5,5 @@ export type RichTextControlValue = ReactNode;
5
5
  export type Descriptors = {
6
6
  text?: RichTextV1Definition;
7
7
  };
8
- export declare function useRichText(data: DataType<RichTextV1Definition>, control: RichTextV1Control | null): import("react/jsx-runtime").JSX.Element;
8
+ export declare function renderRichText(data: DataType<RichTextV1Definition> | undefined, control: RichTextV1Control | null): import("react/jsx-runtime").JSX.Element;
9
9
  //# sourceMappingURL=rich-text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/controls/rich-text/rich-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AAYxF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAA;AAE5C,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAEzD,wBAAgB,WAAW,CACzB,IAAI,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACpC,OAAO,EAAE,iBAAiB,GAAG,IAAI,2CAiBlC"}
1
+ {"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/controls/rich-text/rich-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AAYxF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAA;AAE5C,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAEzD,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,SAAS,EAChD,OAAO,EAAE,iBAAiB,GAAG,IAAI,2CAGlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"editable-text-v2.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAMV,MAAM,OAAO,CAAA;AAYd,OAAO,EACL,oBAAoB,EAEpB,iBAAiB,EACjB,KAAK,cAAc,EACpB,MAAM,sCAAsC,CAAA;AAY7C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAE9C,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAEzD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,UAAU,EAAE,oBAAoB,CAAA;IAChC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAClC,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,KAAK,2CAsJlE;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"editable-text-v2.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtimes/react/controls/rich-text-v2/EditableTextV2/editable-text-v2.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAMV,MAAM,OAAO,CAAA;AAYd,OAAO,EACL,oBAAoB,EAEpB,iBAAiB,EACjB,KAAK,cAAc,EACpB,MAAM,sCAAsC,CAAA;AAY7C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAE9C,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAEzD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,UAAU,EAAE,oBAAoB,CAAA;IAChC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAClC,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,KAAK,2CAsJlE;AAED,eAAe,cAAc,CAAA"}
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { RichTextV2Definition } from '../../../../controls';
2
+ import { RichTextV2Definition } from '../../../../controls/rich-text-v2';
3
3
  import { Text } from 'slate';
4
4
  import { RichTextV2Plugin } from '../../../../controls/rich-text-v2/plugin';
5
5
  import { RichTextDataV2 } from '../../../../controls/rich-text-v2';
6
6
  type Props = {
7
- text: RichTextDataV2 | null;
8
- definition: RichTextV2Definition | null;
7
+ text: RichTextDataV2 | undefined;
8
+ definition: RichTextV2Definition | undefined;
9
9
  };
10
10
  declare const ReadOnlyTextV2: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
11
11
  export default ReadOnlyTextV2;
@@ -1 +1 @@
1
- {"version":3,"file":"ReadOnlyTextV2.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAY,MAAM,sBAAsB,CAAA;AAErE,OAAO,EAAuB,IAAI,EAAE,MAAM,OAAO,CAAA;AAIjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAElE,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,cAAc,GAAG,IAAI,CAAA;IAC3B,UAAU,EAAE,oBAAoB,GAAG,IAAI,CAAA;CACxC,CAAA;AAED,QAAA,MAAM,cAAc,kGAiClB,CAAA;AAEF,eAAe,cAAc,CAAA;AAmB7B,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,IAAI,CAAA;IACV,OAAO,EAAE,gBAAgB,EAAE,CAAA;CAC5B,CAAA;AAED,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAuB7D"}
1
+ {"version":3,"file":"ReadOnlyTextV2.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAY,MAAM,mCAAmC,CAAA;AAElF,OAAO,EAAuB,IAAI,EAAE,MAAM,OAAO,CAAA;AAIjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAElE,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,cAAc,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,oBAAoB,GAAG,SAAS,CAAA;CAC7C,CAAA;AAED,QAAA,MAAM,cAAc,kGAiClB,CAAA;AAEF,eAAe,cAAc,CAAA;AAmB7B,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,IAAI,CAAA;IACV,OAAO,EAAE,gBAAgB,EAAE,CAAA;CAC5B,CAAA;AAED,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAuB7D"}
@@ -5,5 +5,5 @@ export type RichTextV2ControlValue = ReactNode;
5
5
  export type Descriptors = {
6
6
  text?: RichTextV2Definition;
7
7
  };
8
- export declare function useRichTextV2(data: DataType<RichTextV2Definition>, definition: RichTextV2Definition, control: RichTextV2Control | null): import("react/jsx-runtime").JSX.Element;
8
+ export declare function renderRichTextV2(data: DataType<RichTextV2Definition> | undefined, definition: RichTextV2Definition, control: RichTextV2Control | null): ReactNode;
9
9
  //# sourceMappingURL=rich-text-v2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rich-text-v2.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/controls/rich-text-v2/rich-text-v2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AAG3F,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAE9C,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAOzD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACpC,UAAU,EAAE,oBAAoB,EAChC,OAAO,EAAE,iBAAiB,GAAG,IAAI,2CAalC"}
1
+ {"version":3,"file":"rich-text-v2.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/controls/rich-text-v2/rich-text-v2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EAErB,MAAM,mCAAmC,CAAA;AAG1C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAE9C,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAOzD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,SAAS,EAChD,UAAU,EAAE,oBAAoB,EAChC,OAAO,EAAE,iBAAiB,GAAG,IAAI,GAChC,SAAS,CAMX"}
@@ -1,6 +1,9 @@
1
1
  import { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
2
2
  import { SlotDefinition, SlotControl, type DataType } from '@makeswift/controls';
3
- export declare function useSlot(data: DataType<SlotDefinition<ReactNode>> | undefined, control: SlotControl | null): import("react/jsx-runtime").JSX.Element;
3
+ export declare function renderSlot(props: {
4
+ data: DataType<SlotDefinition<ReactNode>> | undefined;
5
+ control: SlotControl | null;
6
+ }): ReactNode;
4
7
  type SlotProps<T extends ElementType> = {
5
8
  as?: T;
6
9
  control: SlotControl | null;
@@ -1 +1 @@
1
- {"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/controls/slot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAA;AAGnG,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,QAAQ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;;;;AAmCpB,KAAK,aAAa,CAAC,CAAC,SAAS,WAAW,IAAI;IAC1C,EAAE,CAAC,EAAE,CAAC,CAAA;IACN,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;IAE3B,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,SAAS,SAAS,GACvD,SAAS,GACT,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC/D,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,iBAAS,QAAQ,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EAC/C,EAAE,EACF,OAAO,EACP,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,SAAS,EACT,GAAG,WAAW,EACf,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CA4B5F;AAED,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;CAC5B,CAAA;AAED,iBAAS,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CA0CvE"}
@@ -1,4 +1,5 @@
1
- import { StyleDefinition, StyleControl, type DataType } from '@makeswift/controls';
2
- export type StyleControlFormattedValue = string;
3
- export declare function useFormattedStyle(styleControlData: DataType<StyleDefinition> | undefined, controlDefinition: StyleDefinition, control: StyleControl | null): StyleControlFormattedValue;
1
+ import { CSSObject } from '@emotion/css';
2
+ import { type StyleProperty, type ResolvedStyleData } from '@makeswift/controls';
3
+ import { Breakpoints } from '../../../state/modules/breakpoints';
4
+ export declare function styleV1Css(breakpoints: Breakpoints, style: ResolvedStyleData | undefined, properties: StyleProperty[]): CSSObject;
4
5
  //# sourceMappingURL=style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/controls/style.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,YAAY,EACZ,KAAK,QAAQ,EAGd,MAAM,qBAAqB,CAAA;AA2G5B,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAA;AAE/C,wBAAgB,iBAAiB,CAC/B,gBAAgB,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,SAAS,EACvD,iBAAiB,EAAE,eAAe,EAClC,OAAO,EAAE,YAAY,GAAG,IAAI,GAC3B,0BAA0B,CAqC5B"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/controls/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAEL,KAAK,aAAa,EAIlB,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAA;AAS5B,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAgBhE,wBAAgB,UAAU,CACxB,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,iBAAiB,GAAG,SAAS,EACpC,UAAU,EAAE,aAAa,EAAE,GAC1B,SAAS,CA2EX"}
@@ -1,8 +1,8 @@
1
- import { unstable_TypographyDefinition, type DataType } from '@makeswift/controls';
1
+ import { CSSObject } from '@emotion/serialize';
2
+ import { unstable_TypographyDefinition, type DataType, type Breakpoints, type DeviceOverride } from '@makeswift/controls';
2
3
  import { Typography } from '../../../api';
3
4
  import { ColorValue } from '../../../components/utils/types';
4
- import { DeviceOverride } from '../../../prop-controllers';
5
- export declare function typographyFragementToTypographyControlData(typography: Typography | null): DataType<unstable_TypographyDefinition> | undefined;
5
+ export declare function typographyFragementToTypographyControlData(fragment: Typography | null): DataType<unstable_TypographyDefinition> | undefined;
6
6
  type EnhancedColor = {
7
7
  color?: ColorValue;
8
8
  };
@@ -13,9 +13,8 @@ export declare function getTypographyStyleSwatchIds(style: Exclude<DataType<unst
13
13
  /**
14
14
  * `enhanced` here just means typography ids have been replaced with the related entity.
15
15
  */
16
- export default function useEnhancedTypography(value?: DataType<unstable_TypographyDefinition> | null): EnhancedTypography;
16
+ export default function useEnhancedTypography(data?: DataType<unstable_TypographyDefinition> | null): EnhancedTypography;
17
+ export declare function typographyCss(breakpoints: Breakpoints, style: EnhancedTypography): CSSObject;
17
18
  export declare function useTypographyClassName(value: EnhancedTypography): string;
18
- export type TypographyControlValue = string;
19
- export declare function useTypographyValue(data: DataType<unstable_TypographyDefinition> | undefined): TypographyControlValue;
20
19
  export {};
21
20
  //# sourceMappingURL=typography.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/controls/typography.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAGlF,OAAO,EAAE,UAAU,EAAU,MAAM,cAAc,CAAA;AAGjD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAmB,MAAM,2BAA2B,CAAA;AAM3E,wBAAgB,0CAA0C,CACxD,UAAU,EAAE,UAAU,GAAG,IAAI,GAC5B,QAAQ,CAAC,6BAA6B,CAAC,GAAG,SAAS,CAqBrD;AAED,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,UAAU,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAC9C,QAAQ,CAAC,6BAA6B,CAAC,EACvC,SAAS,CACV,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE3B,KAAK,uBAAuB,GAAG,IAAI,CAAC,0BAA0B,EAAE,MAAM,aAAa,CAAC,GAAG,aAAa,CA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BAA6B,CAAC,EACvC,SAAS,CACV,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE3B,KAAK,uBAAuB,GAAG,IAAI,CAAC,0BAA0B,EAAE,MAAM,aAAa,CAAC,GAAG,aAAa,CAAA;AAEpG,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAAC,CAAA;AAE/E,wBAAgB,2BAA2B,CACzC,KAAK,EACD,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAC,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,GACpE,UAAU,CAAC,OAAO,CAAC,GACnB,IAAI,GACJ,SAAS,GACZ,MAAM,EAAE,CAOV;AA8BD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,IAAI,CAAC,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,IAAI,GACpD,kBAAkB,CAgDpB;AAyBD,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAU5F;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAGxE"}
@@ -4,6 +4,6 @@ type PropsValueProps = {
4
4
  element: ReactPage.ElementData;
5
5
  children(props: Record<string, unknown>): JSX.Element;
6
6
  };
7
- export declare function PropsValue({ element, children }: PropsValueProps): JSX.Element;
7
+ export declare function ResolveProps({ element, children: renderComponent }: PropsValueProps): JSX.Element;
8
8
  export {};
9
9
  //# sourceMappingURL=controls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/react/controls.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AA0CnD,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,SAAS,CAAC,WAAW,CAAA;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,CAAA;CACtD,CAAA;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAkH9E"}
1
+ {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/react/controls.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AAQnD,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,SAAS,CAAC,WAAW,CAAA;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,CAAA;CACtD,CAAA;AAUD,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAajG"}
@@ -0,0 +1,2 @@
1
+ export declare function useCssId(): string;
2
+ //# sourceMappingURL=use-css-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-css-id.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/hooks/use-css-id.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,IAAI,MAAM,CAEjC"}
@@ -0,0 +1,3 @@
1
+ import { ControlDefinition, type Data } from '@makeswift/controls';
2
+ export declare function useResolvedProps(propDefs: Record<string, ControlDefinition>, elementData: Record<string, Data>, elementKey: string): Record<string, unknown>;
3
+ //# sourceMappingURL=use-resolved-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-resolved-props.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/hooks/use-resolved-props.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAGjB,KAAK,IAAI,EAEV,MAAM,qBAAqB,CAAA;AA2B5B,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAC3C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACjC,UAAU,EAAE,MAAM,GACjB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0CzB"}
@@ -1,3 +1,3 @@
1
- import { ControlDefinition, type DataType, type ResolvedValueType } from '@makeswift/controls';
2
- export declare function useResolvedValue(data: DataType<ControlDefinition> | undefined, definition: ControlDefinition): ResolvedValueType<ControlDefinition>;
1
+ import { Resolvable, ResourceResolver } from '@makeswift/controls';
2
+ export declare function useResolvedValue<D, T>(data: D, resolver: (data: D, resourceResolver: ResourceResolver) => Resolvable<T>): T;
3
3
  //# sourceMappingURL=use-resolved-value.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-resolved-value.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/hooks/use-resolved-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,QAAQ,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE9F,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,SAAS,EAC7C,UAAU,EAAE,iBAAiB,GAC5B,iBAAiB,CAAC,iBAAiB,CAAC,CAEtC"}
1
+ {"version":3,"file":"use-resolved-value.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/hooks/use-resolved-value.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAIlE,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EACnC,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,gBAAgB,EAAE,gBAAgB,KAAK,UAAU,CAAC,CAAC,CAAC,GACvE,CAAC,CASH"}
@@ -0,0 +1,3 @@
1
+ import { type ResourceResolver } from '@makeswift/controls';
2
+ export declare function useResourceResolver(): ResourceResolver;
3
+ //# sourceMappingURL=use-resource-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-resource-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/hooks/use-resource-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAO3D,wBAAgB,mBAAmB,IAAI,gBAAgB,CA6BtD"}
@@ -0,0 +1,7 @@
1
+ import { type Stylesheet } from '@makeswift/controls';
2
+ export type StylesheetFactory = {
3
+ get(propName: string): Stylesheet;
4
+ useDefinedStyles(): void;
5
+ };
6
+ export declare function useStylesheetFactory(): StylesheetFactory;
7
+ //# sourceMappingURL=use-stylesheet-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-stylesheet-factory.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/hooks/use-stylesheet-factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,UAAU,EAMhB,MAAM,qBAAqB,CAAA;AAa5B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAA;IACjC,gBAAgB,IAAI,IAAI,CAAA;CACzB,CAAA;AAED,wBAAgB,oBAAoB,IAAI,iBAAiB,CA2DxD"}
@@ -0,0 +1,3 @@
1
+ import { type Resolvable } from '@makeswift/controls';
2
+ export declare function resolvableRecord(resolvables: Record<string, Resolvable<unknown>>): Resolvable<Record<string, unknown>>;
3
+ //# sourceMappingURL=resolvable-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolvable-record.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/react/resolvable-record.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,GAC/C,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA2CrC"}
@@ -1,3 +1,7 @@
1
1
  import { CSSObject } from '@emotion/css';
2
+ import { EmotionCache } from '@emotion/cache';
3
+ import { type SerializedStyles } from '@emotion/utils';
2
4
  export declare function useStyle(style: CSSObject): string;
5
+ export declare function useStyles(cache: EmotionCache, styles: SerializedStyles[]): void;
6
+ export declare function serializedStyleClassName(cache: EmotionCache, serialized: SerializedStyles): string;
3
7
  //# sourceMappingURL=use-style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-style.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/react/use-style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AASxC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAajD"}
1
+ {"version":3,"file":"use-style.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/react/use-style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAQpF,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAWjD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAMxE;AAOD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,gBAAgB,GAC3B,MAAM,CAGR"}
@@ -29,18 +29,18 @@ export declare function withBlock(editor: Editor): import("../../slate/types").M
29
29
  export declare function BlockPlugin(): {
30
30
  control: import("@makeswift/controls").RichTextPluginControl<import("@makeswift/controls").SelectDefinition<{
31
31
  readonly options: readonly [{
32
- readonly value: "paragraph" | "blockquote" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list";
32
+ readonly value: "blockquote" | "paragraph" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list";
33
33
  readonly label: string;
34
34
  }, ...{
35
- readonly value: "paragraph" | "blockquote" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list";
35
+ readonly value: "blockquote" | "paragraph" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list";
36
36
  readonly label: string;
37
37
  }[]];
38
- readonly defaultValue?: "paragraph" | "blockquote" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list" | undefined;
38
+ readonly defaultValue?: "blockquote" | "paragraph" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list" | undefined;
39
39
  readonly label?: string | undefined;
40
40
  readonly labelOrientation?: "horizontal" | "vertical" | undefined;
41
41
  } & {
42
- readonly defaultValue: "paragraph" | "blockquote" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list";
43
- }>, "paragraph" | "blockquote" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list"> | undefined;
42
+ readonly defaultValue: "blockquote" | "paragraph" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list";
43
+ }>, "blockquote" | "paragraph" | "heading-one" | "heading-two" | "heading-three" | "heading-four" | "heading-five" | "heading-six" | "ordered-list" | "unordered-list"> | undefined;
44
44
  withPlugin: ((editor: import("../../slate/types").MakeswiftEditor) => import("../../slate/types").MakeswiftEditor) | undefined;
45
45
  onKeyDown: ((event: KeyboardEvent<Element>, editor: import("../../slate/types").MakeswiftEditor) => void) | undefined;
46
46
  renderElement: ((renderElement: RenderElement, value: any) => (props: RenderElementProps) => JSX.Element) | undefined;
@@ -32,7 +32,7 @@ export declare const getValue: (editor: Editor) => {
32
32
  elementKey: string;
33
33
  propName: string;
34
34
  } | null | undefined;
35
- block: "center" | "start" | "end";
35
+ block: "center" | "start" | "end" | "nearest";
36
36
  };
37
37
  } | null | undefined;
38
38
  //# sourceMappingURL=getValue.d.ts.map
@@ -35,7 +35,7 @@ export declare function LinkPlugin(): {
35
35
  elementKey: string;
36
36
  propName: string;
37
37
  } | null | undefined;
38
- block: "center" | "start" | "end";
38
+ block: "center" | "start" | "end" | "nearest";
39
39
  };
40
40
  } | null> | undefined;
41
41
  withPlugin: ((editor: import("..").MakeswiftEditor) => import("..").MakeswiftEditor) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slate/TypographyPlugin/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAc,MAAM,EAA+B,MAAM,OAAO,CAAA;AAGnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAQrE,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAA;AAED,eAAO,MAAM,cAAc,eAAe,CAAA;AAE1C,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,gCAAgC,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAAA;CAC7D;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,gCAmC5C;AAED,wBAAgB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmE/B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slate/TypographyPlugin/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAc,MAAM,EAA+B,MAAM,OAAO,CAAA;AAInF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAQrE,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAA;AAED,eAAO,MAAM,cAAc,eAAe,CAAA;AAE1C,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,gCAAgC,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAAA;CAC7D;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,gCAmC5C;AAED,wBAAgB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmE/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeTypographyDown.d.ts","sourceRoot":"","sources":["../../../../src/slate/TypographyPlugin/normalizeTypographyDown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAc,MAAM,OAAO,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI1C,wBAAgB,wBAAwB,CACtC,gBAAgB,CAAC,EAAE,kBAAkB,EACrC,UAAU,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;EAsBhC;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CA0B1F"}
1
+ {"version":3,"file":"normalizeTypographyDown.d.ts","sourceRoot":"","sources":["../../../../src/slate/TypographyPlugin/normalizeTypographyDown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAc,MAAM,OAAO,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAgB,MAAM,qBAAqB,CAAA;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1C,wBAAgB,wBAAwB,CACtC,gBAAgB,CAAC,EAAE,kBAAkB,EACrC,UAAU,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;EAsBhC;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CA0B1F"}
@@ -1,3 +1,4 @@
1
+ export { type NodeJSON, type ValueJSON, type InlineJSON, type MarkJSON } from '@makeswift/controls';
1
2
  export * from './BlockPlugin';
2
3
  export * from './BuilderPlugin';
3
4
  export * from './InlineModePlugin';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/slate/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/slate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnG,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Editor } from 'slate';
2
- export declare const createJsx: (createEditor: () => Editor) => <S extends "text" | "anchor" | "selection" | "focus" | "cursor" | "element" | "editor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
2
+ export declare const createJsx: (createEditor: () => Editor) => <S extends "text" | "selection" | "anchor" | "focus" | "cursor" | "element" | "editor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
3
3
  anchor: typeof import("slate-hyperscript/dist/creators").createAnchor;
4
4
  cursor: typeof import("slate-hyperscript/dist/creators").createCursor;
5
5
  editor: (tagName: string, attributes: {
@@ -23,7 +23,7 @@ export declare const createJsx: (createEditor: () => Editor) => <S extends "text
23
23
  text: typeof import("slate-hyperscript").createText;
24
24
  })[S]>;
25
25
  export declare const testEditorWithAllPlugins: () => import("..").MakeswiftEditor;
26
- export declare const jsx: <S extends "text" | "anchor" | "selection" | "focus" | "cursor" | "element" | "editor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
26
+ export declare const jsx: <S extends "text" | "selection" | "anchor" | "focus" | "cursor" | "element" | "editor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
27
27
  anchor: typeof import("slate-hyperscript/dist/creators").createAnchor;
28
28
  cursor: typeof import("slate-hyperscript/dist/creators").createCursor;
29
29
  editor: (tagName: string, attributes: {
@@ -46,7 +46,7 @@ export declare const jsx: <S extends "text" | "anchor" | "selection" | "focus" |
46
46
  selection: typeof import("slate-hyperscript/dist/creators").createSelection;
47
47
  text: typeof import("slate-hyperscript").createText;
48
48
  })[S]>;
49
- export declare const jsxWithV2Editor: <S extends "text" | "anchor" | "selection" | "focus" | "cursor" | "element" | "editor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
49
+ export declare const jsxWithV2Editor: <S extends "text" | "selection" | "anchor" | "focus" | "cursor" | "element" | "editor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
50
50
  anchor: typeof import("slate-hyperscript/dist/creators").createAnchor;
51
51
  cursor: typeof import("slate-hyperscript/dist/creators").createCursor;
52
52
  editor: (tagName: string, attributes: {
@@ -69,7 +69,7 @@ export declare const jsxWithV2Editor: <S extends "text" | "anchor" | "selection"
69
69
  selection: typeof import("slate-hyperscript/dist/creators").createSelection;
70
70
  text: typeof import("slate-hyperscript").createText;
71
71
  })[S]>;
72
- export declare const jsxWithV2InlineEditor: <S extends "text" | "anchor" | "selection" | "focus" | "cursor" | "element" | "editor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
72
+ export declare const jsxWithV2InlineEditor: <S extends "text" | "selection" | "anchor" | "focus" | "cursor" | "element" | "editor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
73
73
  anchor: typeof import("slate-hyperscript/dist/creators").createAnchor;
74
74
  cursor: typeof import("slate-hyperscript/dist/creators").createCursor;
75
75
  editor: (tagName: string, attributes: {
@@ -94,7 +94,7 @@ export declare const Link: ComponentType<{
94
94
  elementKey: string;
95
95
  propName: string;
96
96
  } | null | undefined;
97
- block: "center" | "start" | "end";
97
+ block: "center" | "start" | "end" | "nearest";
98
98
  };
99
99
  } | null | undefined;
100
100
  }>;
@@ -1,16 +1,7 @@
1
1
  import { Viewport } from 'csstype';
2
- import { type Data, type ResponsiveValue, type DeviceOverride, type Device as DeviceId } from '@makeswift/controls';
2
+ import { type ResponsiveValue, type BreakpointId, type Breakpoint, type Breakpoints, type FallbackStrategy } from '@makeswift/controls';
3
3
  import { Action } from '../actions';
4
- export { type ResponsiveValue, type DeviceOverride } from '@makeswift/controls';
5
- export type BreakpointId = DeviceId;
6
- export type Breakpoint = {
7
- id: BreakpointId;
8
- label?: string;
9
- viewportWidth?: number;
10
- minWidth?: number;
11
- maxWidth?: number;
12
- };
13
- export type Breakpoints = Breakpoint[];
4
+ export { findBreakpointOverride, getBaseBreakpoint, type ResponsiveValue, type DeviceOverride, type Breakpoint, type BreakpointId, type Breakpoints, type FallbackStrategy, } from '@makeswift/controls';
14
5
  export type State = Breakpoints;
15
6
  export declare const DefaultBreakpointID: {
16
7
  readonly Desktop: "desktop";
@@ -27,17 +18,7 @@ export type BreakpointsInput = Record<string, {
27
18
  }>;
28
19
  export declare function parseBreakpointsInput(input: BreakpointsInput): Breakpoints;
29
20
  export declare const getBreakpoint: (state: Breakpoints, breakpointId: Breakpoint['id']) => Breakpoint;
30
- export declare const getBaseBreakpoint: (breakpoints: Breakpoints) => Breakpoint;
31
- export declare function findBreakpointOverride<S>(breakpoints: Breakpoints, values: ResponsiveValue<S> | undefined, deviceId: string, strategy?: FallbackStrategy<S>): DeviceOverride<S> | undefined;
32
- export type FallbackStrategy<V> = (arg0: DeviceOverride<V> | undefined, arg1: ResponsiveValue<V>) => DeviceOverride<V> | undefined;
33
- export declare function shallowMergeFallbacks<V extends Record<string, unknown>>(value: DeviceOverride<V> | undefined, fallbacks: ResponsiveValue<V>): DeviceOverride<V> | undefined;
34
- export declare function mergeOrCoalesceFallbacks<V extends Data>(value: DeviceOverride<V> | undefined, fallbacks: ResponsiveValue<V>): DeviceOverride<V> | undefined;
35
- export type ExtractResponsiveValue<T> = T extends ResponsiveValue<infer V> ? V : never;
36
- export declare function join<V, A extends ReadonlyArray<ResponsiveValue<V> | null | undefined>, R>(breakpoints: Breakpoints, responsiveValues: A, joinFn: (values: {
37
- [I in keyof A]: ExtractResponsiveValue<A[I]> | undefined;
38
- }) => R, strategy?: FallbackStrategy<V>): ResponsiveValue<R>;
39
21
  export declare const getBreakpointMediaQuery: (breakpoint: Breakpoint) => string;
40
22
  export declare const getViewportStyle: (state: Breakpoints, deviceId: string) => Viewport<string | number> | null | undefined;
41
23
  export declare function findNextFallback<V>(breakpoints: Breakpoints, value: ResponsiveValue<V>, deviceId: BreakpointId, activeDeviceId: BreakpointId, fallbackStrategy?: FallbackStrategy<V>): Breakpoint | null;
42
- export declare const mergeResponsiveValues: <A>(breakpoints: Breakpoints, source: DeviceOverride<A>[], override: DeviceOverride<A>[]) => DeviceOverride<A>[];
43
24
  //# sourceMappingURL=breakpoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/breakpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,EACL,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,MAAM,IAAI,QAAQ,EACxB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAe,MAAM,YAAY,CAAA;AAKhD,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAE/E,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAA;AAEnC,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,YAAY,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,UAAU,EAAE,CAAA;AAEtC,MAAM,MAAM,KAAK,GAAG,WAAW,CAAA;AAE/B,eAAO,MAAM,mBAAmB;;;;CAItB,CAAA;AAIV,eAAO,MAAM,mBAAmB,EAAE,WAmBjC,CAAA;AAED,wBAAgB,eAAe,CAAC,WAAW,cAAsB,GAAG,KAAK,CAExE;AAED,wBAAgB,OAAO,CAAC,KAAK,yBAA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GED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makeswift/runtime",
3
- "version": "0.21.3",
3
+ "version": "0.22.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist",
@@ -154,9 +154,9 @@
154
154
  "use-sync-external-store": "^1.0.0-rc.0",
155
155
  "uuid": "^9.0.0",
156
156
  "zod": "^3.21.4",
157
- "@makeswift/controls": "0.1.5",
158
- "@makeswift/next-plugin": "0.3.0",
159
- "@makeswift/prop-controllers": "0.3.6"
157
+ "@makeswift/controls": "0.1.6",
158
+ "@makeswift/prop-controllers": "0.3.7",
159
+ "@makeswift/next-plugin": "0.3.0"
160
160
  },
161
161
  "devDependencies": {
162
162
  "@emotion/jest": "^11.11.0",
@@ -1,58 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var color_exports = {};
30
- __export(color_exports, {
31
- useColorValue: () => useColorValue
32
- });
33
- module.exports = __toCommonJS(color_exports);
34
- var import_color = __toESM(require("color"));
35
- var import_makeswift_api = require("../hooks/makeswift-api");
36
- function useColorValue(data, definition) {
37
- const swatchId = data?.swatchId ?? null;
38
- const swatch = (0, import_makeswift_api.useSwatch)(swatchId);
39
- const alpha = data?.alpha ?? 1;
40
- if (swatch == null) {
41
- const { defaultValue } = definition.config;
42
- if (defaultValue === void 0)
43
- return void 0;
44
- let defaultColor;
45
- try {
46
- defaultColor = (0, import_color.default)(definition.config.defaultValue);
47
- } catch {
48
- defaultColor = (0, import_color.default)();
49
- }
50
- return defaultColor.rgb().string();
51
- }
52
- return (0, import_color.default)({ h: swatch.hue, s: swatch.saturation, l: swatch.lightness }).alpha(alpha).rgb().string();
53
- }
54
- // Annotate the CommonJS export names for ESM import in node:
55
- 0 && (module.exports = {
56
- useColorValue
57
- });
58
- //# sourceMappingURL=color.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/runtimes/react/controls/color.ts"],"sourcesContent":["import Color from 'color'\n\nimport { type DataType, type ResolvedValueType } from '@makeswift/controls'\n\nimport { ColorDefinition } from '../../../controls'\n\nimport { useSwatch } from '../hooks/makeswift-api'\n\nexport function useColorValue(\n data: DataType<ColorDefinition> | undefined,\n definition: ColorDefinition,\n): ResolvedValueType<ColorDefinition> {\n const swatchId = data?.swatchId ?? null\n const swatch = useSwatch(swatchId)\n const alpha = data?.alpha ?? 1\n\n if (swatch == null) {\n const { defaultValue } = definition.config\n\n if (defaultValue === undefined) return undefined\n\n let defaultColor\n try {\n defaultColor = Color(definition.config.defaultValue)\n } catch {\n defaultColor = Color()\n }\n\n return defaultColor.rgb().string()\n }\n\n return Color({ h: swatch.hue, s: swatch.saturation, l: swatch.lightness })\n .alpha(alpha)\n .rgb()\n .string()\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAMlB,2BAA0B;AAEnB,SAAS,cACd,MACA,YACoC;AACpC,QAAM,WAAW,MAAM,YAAY;AACnC,QAAM,aAAS,gCAAU,QAAQ;AACjC,QAAM,QAAQ,MAAM,SAAS;AAE7B,MAAI,UAAU,MAAM;AAClB,UAAM,EAAE,aAAa,IAAI,WAAW;AAEpC,QAAI,iBAAiB;AAAW,aAAO;AAEvC,QAAI;AACJ,QAAI;AACF,yBAAe,aAAAA,SAAM,WAAW,OAAO,YAAY;AAAA,IACrD,QAAQ;AACN,yBAAe,aAAAA,SAAM;AAAA,IACvB;AAEA,WAAO,aAAa,IAAI,EAAE,OAAO;AAAA,EACnC;AAEA,aAAO,aAAAA,SAAM,EAAE,GAAG,OAAO,KAAK,GAAG,OAAO,YAAY,GAAG,OAAO,UAAU,CAAC,EACtE,MAAM,KAAK,EACX,IAAI,EACJ,OAAO;AACZ;","names":["Color"]}