@makeswift/runtime 0.0.0-a0e5297 → 0.0.0-a49c3c6

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 (167) hide show
  1. package/dist/Page.cjs.js +215 -0
  2. package/dist/Page.cjs.js.map +1 -0
  3. package/dist/Page.es.js +209 -0
  4. package/dist/Page.es.js.map +1 -0
  5. package/dist/actions.cjs.js +5 -0
  6. package/dist/actions.cjs.js.map +1 -1
  7. package/dist/actions.es.js +5 -1
  8. package/dist/actions.es.js.map +1 -1
  9. package/dist/components.cjs.js +16 -1
  10. package/dist/components.cjs.js.map +1 -1
  11. package/dist/components.es.js +7 -2
  12. package/dist/components.es.js.map +1 -1
  13. package/dist/constants.cjs.js +77 -1
  14. package/dist/constants.cjs.js.map +1 -1
  15. package/dist/constants.es.js +77 -1
  16. package/dist/constants.es.js.map +1 -1
  17. package/dist/control-serialization.cjs.js +61 -5
  18. package/dist/control-serialization.cjs.js.map +1 -1
  19. package/dist/control-serialization.es.js +61 -5
  20. package/dist/control-serialization.es.js.map +1 -1
  21. package/dist/descriptors.cjs.js +8 -0
  22. package/dist/descriptors.cjs.js.map +1 -1
  23. package/dist/descriptors.es.js +6 -1
  24. package/dist/descriptors.es.js.map +1 -1
  25. package/dist/instances.cjs.js +17 -0
  26. package/dist/instances.cjs.js.map +1 -1
  27. package/dist/instances.es.js +17 -1
  28. package/dist/instances.es.js.map +1 -1
  29. package/dist/main.cjs.js +1 -0
  30. package/dist/main.cjs.js.map +1 -1
  31. package/dist/main.es.js +1 -1
  32. package/dist/next.cjs.js +37 -17
  33. package/dist/next.cjs.js.map +1 -1
  34. package/dist/next.es.js +38 -18
  35. package/dist/next.es.js.map +1 -1
  36. package/dist/prop-controllers.cjs.js +1 -0
  37. package/dist/prop-controllers.cjs.js.map +1 -1
  38. package/dist/prop-controllers.es.js +1 -1
  39. package/dist/react-builder-preview.cjs.js +3 -0
  40. package/dist/react-builder-preview.cjs.js.map +1 -1
  41. package/dist/react-builder-preview.es.js +4 -1
  42. package/dist/react-builder-preview.es.js.map +1 -1
  43. package/dist/react-page.cjs.js +1 -1
  44. package/dist/react-page.cjs.js.map +1 -1
  45. package/dist/react-page.es.js +2 -2
  46. package/dist/react-page.es.js.map +1 -1
  47. package/dist/react.cjs.js +6 -1
  48. package/dist/react.cjs.js.map +1 -1
  49. package/dist/react.cjs2.js +2371 -319
  50. package/dist/react.cjs2.js.map +1 -1
  51. package/dist/react.es.js +6 -2
  52. package/dist/react.es.js.map +1 -1
  53. package/dist/react.es2.js +2369 -327
  54. package/dist/react.es2.js.map +1 -1
  55. package/dist/types/api/constants.d.ts.map +1 -1
  56. package/dist/types/api/generated/graphql.d.ts +53 -0
  57. package/dist/types/api/generated/graphql.d.ts.map +1 -1
  58. package/dist/types/api/react.d.ts +25 -4
  59. package/dist/types/api/react.d.ts.map +1 -1
  60. package/dist/types/api/types.d.ts +2 -2
  61. package/dist/types/api/types.d.ts.map +1 -1
  62. package/dist/types/builder/serialization/control-serialization.d.ts +55 -7
  63. package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -1
  64. package/dist/types/components/builtin/Form/Form.d.ts +41 -0
  65. package/dist/types/components/builtin/Form/Form.d.ts.map +1 -0
  66. package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts +15 -0
  67. package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -0
  68. package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts +15 -0
  69. package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts.map +1 -0
  70. package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts +11 -0
  71. package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts.map +1 -0
  72. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts +14 -0
  73. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -0
  74. package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts +16 -0
  75. package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -0
  76. package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts +10 -0
  77. package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts.map +1 -0
  78. package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts +23 -0
  79. package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts.map +1 -0
  80. package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts +11 -0
  81. package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts.map +1 -0
  82. package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts +11 -0
  83. package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts.map +1 -0
  84. package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts +3 -0
  85. package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts.map +1 -0
  86. package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts +17 -0
  87. package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -0
  88. package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts +11 -0
  89. package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts.map +1 -0
  90. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts +23 -0
  91. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts.map +1 -0
  92. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts +19 -0
  93. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -0
  94. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts +24 -0
  95. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts.map +1 -0
  96. package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts +13 -0
  97. package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -0
  98. package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts +11 -0
  99. package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts.map +1 -0
  100. package/dist/types/components/builtin/Form/components/Field/index.d.ts +19 -0
  101. package/dist/types/components/builtin/Form/components/Field/index.d.ts.map +1 -0
  102. package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts +11 -0
  103. package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts.map +1 -0
  104. package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts +9 -0
  105. package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -0
  106. package/dist/types/components/builtin/Form/components/Spinner/index.d.ts +3 -0
  107. package/dist/types/components/builtin/Form/components/Spinner/index.d.ts.map +1 -0
  108. package/dist/types/components/builtin/Form/context/FormContext.d.ts +32 -0
  109. package/dist/types/components/builtin/Form/context/FormContext.d.ts.map +1 -0
  110. package/dist/types/components/builtin/Form/index.d.ts +2 -0
  111. package/dist/types/components/builtin/Form/index.d.ts.map +1 -0
  112. package/dist/types/components/builtin/Image/Image.d.ts.map +1 -1
  113. package/dist/types/components/builtin/Video/Video.d.ts +15 -0
  114. package/dist/types/components/builtin/Video/Video.d.ts.map +1 -0
  115. package/dist/types/components/builtin/Video/index.d.ts +2 -0
  116. package/dist/types/components/builtin/Video/index.d.ts.map +1 -0
  117. package/dist/types/components/builtin/index.d.ts +1 -0
  118. package/dist/types/components/builtin/index.d.ts.map +1 -1
  119. package/dist/types/components/hooks/index.d.ts +1 -0
  120. package/dist/types/components/hooks/index.d.ts.map +1 -1
  121. package/dist/types/components/hooks/useTable.d.ts +66 -0
  122. package/dist/types/components/hooks/useTable.d.ts.map +1 -0
  123. package/dist/types/components/hooks/useTableFormFieldRefs.d.ts +8 -0
  124. package/dist/types/components/hooks/useTableFormFieldRefs.d.ts.map +1 -0
  125. package/dist/types/components/index.d.ts +2 -0
  126. package/dist/types/components/index.d.ts.map +1 -1
  127. package/dist/types/components/page/BodySnippet.d.ts +7 -0
  128. package/dist/types/components/page/BodySnippet.d.ts.map +1 -0
  129. package/dist/types/components/page/Page.d.ts +45 -0
  130. package/dist/types/components/page/Page.d.ts.map +1 -0
  131. package/dist/types/components/page/index.d.ts +2 -0
  132. package/dist/types/components/page/index.d.ts.map +1 -0
  133. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -1
  134. package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts +7 -0
  135. package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts.map +1 -0
  136. package/dist/types/components/shared/FallbackComponent/index.d.ts +2 -0
  137. package/dist/types/components/shared/FallbackComponent/index.d.ts.map +1 -0
  138. package/dist/types/components/utils/placeholders.d.ts +7 -0
  139. package/dist/types/components/utils/placeholders.d.ts.map +1 -1
  140. package/dist/types/components/utils/queries.d.ts +1 -0
  141. package/dist/types/components/utils/queries.d.ts.map +1 -1
  142. package/dist/types/components/utils/types.d.ts +1 -2
  143. package/dist/types/components/utils/types.d.ts.map +1 -1
  144. package/dist/types/controls.d.ts +4 -0
  145. package/dist/types/controls.d.ts.map +1 -0
  146. package/dist/types/index.d.ts +1 -1
  147. package/dist/types/index.d.ts.map +1 -1
  148. package/dist/types/next.d.ts +5 -4
  149. package/dist/types/next.d.ts.map +1 -1
  150. package/dist/types/prop-controllers/descriptors.d.ts +24 -6
  151. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  152. package/dist/types/prop-controllers/index.d.ts +3 -3
  153. package/dist/types/prop-controllers/index.d.ts.map +1 -1
  154. package/dist/types/prop-controllers/instances.d.ts +36 -4
  155. package/dist/types/prop-controllers/instances.d.ts.map +1 -1
  156. package/dist/types/react.d.ts +1 -1
  157. package/dist/types/react.d.ts.map +1 -1
  158. package/dist/types/runtimes/react.d.ts +3 -3
  159. package/dist/types/runtimes/react.d.ts.map +1 -1
  160. package/dist/types/state/actions.d.ts +9 -1
  161. package/dist/types/state/actions.d.ts.map +1 -1
  162. package/dist/types/state/react-builder-preview.d.ts.map +1 -1
  163. package/package.json +3 -1
  164. package/dist/graphql.cjs.js +0 -162
  165. package/dist/graphql.cjs.js.map +0 -1
  166. package/dist/graphql.es.js +0 -157
  167. package/dist/graphql.es.js.map +0 -1
@@ -0,0 +1,13 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { Value } from '../../../../context/FormContext';
3
+ declare const Base: import("styled-components").StyledComponent<"textarea", any, Value & {
4
+ error?: boolean | undefined;
5
+ }, never>;
6
+ declare type BaseProps = {
7
+ error?: boolean;
8
+ form?: unknown;
9
+ };
10
+ declare type Props = BaseProps & Omit<ComponentPropsWithoutRef<typeof Base>, keyof BaseProps>;
11
+ declare const _default: import("react").ForwardRefExoticComponent<Pick<Props, string | number | symbol> & import("react").RefAttributes<HTMLTextAreaElement>>;
12
+ export default _default;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/builtin/Form/components/Field/components/TextArea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAI5D,OAAO,EAAE,KAAK,EAAkB,MAAM,iCAAiC,CAAA;AAEvE,QAAA,MAAM,IAAI;;SAGT,CAAA;AAED,aAAK,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAEpD,aAAK,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,wBAAwB,CAAC,OAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,CAAA;;AAErF,wBAkBE"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ declare type Props = {
3
+ id: string;
4
+ label?: string;
5
+ name: string;
6
+ error?: string;
7
+ hideLabel?: boolean;
8
+ };
9
+ declare const _default: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLInputElement>>;
10
+ export default _default;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/builtin/Form/components/Field/components/URLTableField/index.tsx"],"names":[],"mappings":";AAKA,aAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;;AAED,wBAkBE"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { TableColumn } from '../../../../hooks';
3
+ declare type TableFormField = {
4
+ id: string;
5
+ tableColumnId: string;
6
+ label?: string;
7
+ placeholder?: string;
8
+ required?: boolean;
9
+ hidden?: boolean;
10
+ type?: 'select' | 'radio';
11
+ hideLabel?: boolean;
12
+ };
13
+ declare type Props = {
14
+ tableColumn: TableColumn | null | undefined;
15
+ tableFormField: TableFormField;
16
+ };
17
+ export default function Field({ tableColumn, tableFormField: { id, label, placeholder, required, hidden, type, hideLabel, }, }: Props): JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/builtin/Form/components/Field/index.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AA0D/C,aAAK,cAAc,GAAG;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,aAAK,KAAK,GAAG;IACX,WAAW,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;IAC3C,cAAc,EAAE,cAAc,CAAA;CAC/B,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,WAAW,EACX,cAAc,EAAE,EACd,EAAE,EACF,KAAU,EACV,WAAW,EACX,QAAgB,EAChB,MAAc,EACd,IAAc,EACd,SAAiB,GAClB,GACF,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAoDrB"}
@@ -0,0 +1,11 @@
1
+ import { Size, Shape, Contrast, Value } from '../../../context/FormContext';
2
+ export declare function getSizeHeight(size: Size): number;
3
+ export declare function getSizeHorizontalPadding(size: Size): number;
4
+ export declare function getShapeBorderRadius(shape: Shape): number;
5
+ export declare function getContrastBorderColor(contrast: Contrast, error?: boolean): string;
6
+ export declare function getContrastBackgroundColor(contrast: Contrast): string;
7
+ export declare function getContrastColor(contrast: Contrast): string;
8
+ export default function cssField(): import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<Value, "size" | "shape" | "contrast" | "brandColor"> & {
9
+ error?: boolean | undefined;
10
+ }, any>>;
11
+ //# sourceMappingURL=cssField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/builtin/Form/components/Field/services/cssField.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,IAAI,EACJ,KAAK,EACL,QAAQ,EAIR,KAAK,EACN,MAAM,8BAA8B,CAAA;AAErC,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAchD;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAc3D;AAkBD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAczD;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAWlF;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAWrE;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAW3D;AAeD,MAAM,CAAC,OAAO,UAAU,QAAQ;;SAkC/B"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { MarginValue, WidthValue } from '../../../../../prop-controllers/descriptors';
3
+ declare type Props = {
4
+ width?: WidthValue;
5
+ margin?: MarginValue;
6
+ };
7
+ declare const _default: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
8
+ export default _default;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/builtin/Form/components/Placeholder/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAA;AAyCrF,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,CAAA;;AAED,wBAmBE"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export default function Spinner(): JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/builtin/Form/components/Spinner/index.tsx"],"names":[],"mappings":";AAmBA,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,GAAG,CAAC,OAAO,CAE7C"}
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import { ResponsiveValue, ResponsiveColorValue, TextStyleValue } from '../../../../prop-controllers/descriptors';
3
+ import { ColorValue } from '../../../utils/types';
4
+ export declare const Shapes: Readonly<{
5
+ readonly SQUARE: "square";
6
+ readonly ROUNDED: "rounded";
7
+ readonly PILL: "pill";
8
+ }>;
9
+ export declare type Shape = typeof Shapes[keyof typeof Shapes];
10
+ export declare const Sizes: Readonly<{
11
+ readonly SMALL: "small";
12
+ readonly MEDIUM: "medium";
13
+ readonly LARGE: "large";
14
+ }>;
15
+ export declare type Size = typeof Sizes[keyof typeof Sizes];
16
+ export declare const Contrasts: Readonly<{
17
+ readonly LIGHT: "light";
18
+ readonly DARK: "dark";
19
+ }>;
20
+ export declare type Contrast = typeof Contrasts[keyof typeof Contrasts];
21
+ export declare type Value = {
22
+ shape: ResponsiveValue<Shape> | null | undefined;
23
+ size: ResponsiveValue<Size> | null | undefined;
24
+ contrast: ResponsiveValue<Contrast> | null | undefined;
25
+ brandColor: ResponsiveValue<ColorValue> | null | undefined;
26
+ labelTextStyle?: TextStyleValue;
27
+ labelTextColor?: ResponsiveColorValue;
28
+ };
29
+ export declare function useFormContext(): Value;
30
+ declare const Provider: import("react").Provider<Value>;
31
+ export { Provider };
32
+ //# sourceMappingURL=FormContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormContext.d.ts","sourceRoot":"","sources":["../../../../../../src/components/builtin/Form/context/FormContext.ts"],"names":[],"mappings":";AAEA,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,cAAc,EACf,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,eAAO,MAAM,MAAM;;;;EAIR,CAAA;AAEX,oBAAY,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAA;AAEtD,eAAO,MAAM,KAAK;;;;EAIP,CAAA;AAEX,oBAAY,IAAI,GAAG,OAAO,KAAK,CAAC,MAAM,OAAO,KAAK,CAAC,CAAA;AAEnD,eAAO,MAAM,SAAS;;;EAGX,CAAA;AAEX,oBAAY,QAAQ,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA;AAE/D,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA;IAChD,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA;IAC9C,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA;IACtD,UAAU,EAAE,eAAe,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA;IAC1D,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,cAAc,CAAC,EAAE,oBAAoB,CAAA;CACtC,CAAA;AAID,wBAAgB,cAAc,IAAI,KAAK,CAEtC;AAED,QAAA,MAAQ,QAAQ,iCAAY,CAAA;AAE5B,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default, registerComponent } from './Form';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Image/Image.tsx"],"names":[],"mappings":";AAIA,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,UAAU,EACX,MAAM,uCAAuC,CAAA;AAmB9C,OAA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X,EAAE,CAAC,EAAE,cAAc,CAAA;IACnB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,SAAS,CAAC,EAAE,YAAY,CAAA;IACxB,OAAO,CAAC,EAAE,sBAAsB,CAAA;IAChC,WAAW,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAkED,QAAA,MAAM,cAAc,oGAiFlB,CAAA;AAEF,eAAe,cAAc,CAAA;AAE7B,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,cAkBtD"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { BorderRadiusValue, ElementIDValue, MarginValue, VideoValue, WidthValue } from '../../../prop-controllers/descriptors';
3
+ import { ReactRuntime } from '../../../react';
4
+ import { Props } from '../../../prop-controllers';
5
+ declare type Props = {
6
+ id?: ElementIDValue;
7
+ video?: VideoValue;
8
+ width?: WidthValue;
9
+ margin?: MarginValue;
10
+ borderRadius?: BorderRadiusValue;
11
+ };
12
+ declare const Video: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
13
+ export default Video;
14
+ export declare function registerComponent(runtime: ReactRuntime): () => void;
15
+ //# sourceMappingURL=Video.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Video.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Video/Video.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EACX,MAAM,uCAAuC,CAAA;AAG9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAEjD,aAAK,KAAK,GAAG;IACX,EAAE,CAAC,EAAE,cAAc,CAAA;IACnB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,YAAY,CAAC,EAAE,iBAAiB,CAAA;CACjC,CAAA;AAiBD,QAAA,MAAM,KAAK,kGA+BT,CAAA;AAEF,eAAe,KAAK,CAAA;AAEpB,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,cAatD"}
@@ -0,0 +1,2 @@
1
+ export * from './Video';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Video/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
@@ -5,6 +5,7 @@ export { default as Carousel } from './Carousel';
5
5
  export { default as Countdown } from './Countdown';
6
6
  export { default as Divider } from './Divider';
7
7
  export { default as Embed } from './Embed';
8
+ export { default as Form } from './Form';
8
9
  export { default as Image } from './Image';
9
10
  export { default as Navigation } from './Navigation';
10
11
  export { default as Root } from './Root';
@@ -1 +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,MAA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,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;AAe1C,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,YAAY,cA+B9D"}
@@ -5,4 +5,5 @@ export * from './useColor';
5
5
  export * from './useFile';
6
6
  export * from './useMediaQuery';
7
7
  export * from './usePage';
8
+ export * from './useTable';
8
9
  //# 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,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"}
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;AACzB,cAAc,YAAY,CAAA"}
@@ -0,0 +1,66 @@
1
+ export declare type SingleLineTextTableColumn = {
2
+ id: string;
3
+ name: string;
4
+ __typename: 'SingleLineTextTableColumn';
5
+ };
6
+ export declare type LongTextTableColumn = {
7
+ id: string;
8
+ name: string;
9
+ __typename: 'LongTextTableColumn';
10
+ };
11
+ export declare type CheckboxTableColumn = {
12
+ id: string;
13
+ name: string;
14
+ __typename: 'CheckboxTableColumn';
15
+ };
16
+ export declare type MultipleSelectTableColumnOption = {
17
+ id: string;
18
+ name: string;
19
+ };
20
+ export declare type MultipleSelectTableColumn = {
21
+ id: string;
22
+ name: string;
23
+ options: Array<MultipleSelectTableColumnOption>;
24
+ __typename: 'MultipleSelectTableColumn';
25
+ };
26
+ export declare type SingleSelectTableColumnOption = {
27
+ id: string;
28
+ name: string;
29
+ };
30
+ export declare type SingleSelectTableColumn = {
31
+ id: string;
32
+ name: string;
33
+ options: Array<SingleSelectTableColumnOption>;
34
+ __typename: 'SingleSelectTableColumn';
35
+ };
36
+ export declare type PhoneNumberTableColumn = {
37
+ id: string;
38
+ name: string;
39
+ __typename: 'PhoneNumberTableColumn';
40
+ };
41
+ export declare type EmailTableColumn = {
42
+ id: string;
43
+ name: string;
44
+ __typename: 'EmailTableColumn';
45
+ };
46
+ export declare type URLTableColumn = {
47
+ id: string;
48
+ name: string;
49
+ __typename: 'URLTableColumn';
50
+ };
51
+ export declare type NumberTableColumn = {
52
+ id: string;
53
+ name: string;
54
+ __typename: 'NumberTableColumn';
55
+ };
56
+ export declare type TableColumn = SingleLineTextTableColumn | LongTextTableColumn | CheckboxTableColumn | MultipleSelectTableColumn | SingleSelectTableColumn | PhoneNumberTableColumn | EmailTableColumn | URLTableColumn | NumberTableColumn;
57
+ declare type Table = {
58
+ id: string;
59
+ name: string;
60
+ columns: Array<TableColumn>;
61
+ };
62
+ export declare function useTable(tableId: string | null | undefined): import("@apollo/client").QueryResult<{
63
+ table: Table | null;
64
+ }, import("@apollo/client").OperationVariables>;
65
+ export {};
66
+ //# sourceMappingURL=useTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useTable.ts"],"names":[],"mappings":"AAGA,oBAAY,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,2BAA2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AED,oBAAY,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,mBAAmB,CAAA;CAChC,CAAA;AAED,oBAAY,WAAW,GACnB,yBAAyB,GACzB,mBAAmB,GACnB,mBAAmB,GACnB,yBAAyB,GACzB,uBAAuB,GACvB,sBAAsB,GACtB,gBAAgB,GAChB,cAAc,GACd,iBAAiB,CAAA;AAErB,aAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;CAC5B,CAAA;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;WAChC,KAAK,GAAG,IAAI;gDAItC"}
@@ -0,0 +1,8 @@
1
+ import { TableFormFieldsPropController } from '../../prop-controllers/instances';
2
+ export declare function useTableFormFieldRefs(propController: TableFormFieldsPropController | null | undefined, { fieldsCount }: {
3
+ fieldsCount: number;
4
+ }): {
5
+ container: (arg0: HTMLElement | null | undefined) => void;
6
+ items: Array<(arg0: HTMLElement | null | undefined) => void>;
7
+ };
8
+ //# sourceMappingURL=useTableFormFieldRefs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableFormFieldRefs.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useTableFormFieldRefs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAA;AAGhF,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,EAChE,EAAE,WAAW,EAAE,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GACvC;IACD,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;IACzD,KAAK,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC,CAAA;CAC7D,CA2CA"}
@@ -1,3 +1,5 @@
1
1
  export * from './builtin';
2
2
  export * from './utils/cssMediaRules';
3
+ export * from './hooks';
4
+ export * from './page';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,uBAAuB,CAAA;AACrC,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,7 @@
1
+ declare type Props = {
2
+ code: string;
3
+ cleanup: string | null | undefined;
4
+ };
5
+ export declare function BodySnippet({ code, cleanup }: Props): null;
6
+ export {};
7
+ //# sourceMappingURL=BodySnippet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BodySnippet.d.ts","sourceRoot":"","sources":["../../../../src/components/page/BodySnippet.tsx"],"names":[],"mappings":"AAIA,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;CACnC,CAAA;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,GAAG,IAAI,CA8C1D"}
@@ -0,0 +1,45 @@
1
+ /// <reference types="react" />
2
+ declare enum SnippetLocation {
3
+ Body = "BODY",
4
+ Head = "HEAD"
5
+ }
6
+ declare type Snippet = {
7
+ builderEnabled: boolean;
8
+ cleanup?: string | null;
9
+ code: string;
10
+ id: string;
11
+ liveEnabled: boolean;
12
+ location: SnippetLocation;
13
+ name: string;
14
+ shouldAddToNewPages: boolean;
15
+ };
16
+ export declare type PageData = {
17
+ id: string;
18
+ meta: {
19
+ title?: string | null | undefined;
20
+ description?: string | null | undefined;
21
+ keywords?: string | null | undefined;
22
+ socialImage?: {
23
+ id: string;
24
+ publicUrl: any;
25
+ mimetype: any;
26
+ } | null | undefined;
27
+ favicon?: {
28
+ id: string;
29
+ publicUrl: any;
30
+ mimetype: any;
31
+ } | null | undefined;
32
+ };
33
+ snippets: Snippet[];
34
+ fonts: Array<{
35
+ family: string;
36
+ variants: string[];
37
+ }>;
38
+ };
39
+ declare type Props = {
40
+ page: PageData;
41
+ preview?: boolean;
42
+ };
43
+ export declare function Page({ page, preview }: Props): JSX.Element;
44
+ export {};
45
+ //# sourceMappingURL=Page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/components/page/Page.tsx"],"names":[],"mappings":";AAQA,aAAK,eAAe;IAClB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,aAAK,OAAO,GAAG;IACb,cAAc,EAAE,OAAO,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,eAAe,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,mBAAmB,EAAE,OAAO,CAAA;CAC7B,CAAA;AAED,oBAAY,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;QACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;QACvC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;QACpC,WAAW,CAAC,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,GAAG,CAAC;YAAC,QAAQ,EAAE,GAAG,CAAA;SAAE,GAAG,IAAI,GAAG,SAAS,CAAA;QAC9E,OAAO,CAAC,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,GAAG,CAAC;YAAC,QAAQ,EAAE,GAAG,CAAA;SAAE,GAAG,IAAI,GAAG,SAAS,CAAA;KAC3E,CAAA;IACD,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,KAAK,EAAE,KAAK,CAAC;QACX,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,EAAE,CAAA;KACnB,CAAC,CAAA;CACH,CAAA;AAkCD,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,OAAe,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAkHlE"}
@@ -0,0 +1,2 @@
1
+ export * from './Page';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/page/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -1 +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"}
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;AA2DjE,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,CAuHvE"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type Props = {
3
+ text: string;
4
+ };
5
+ export declare const FallbackComponent: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
6
+ export {};
7
+ //# sourceMappingURL=FallbackComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FallbackComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/FallbackComponent/FallbackComponent.tsx"],"names":[],"mappings":";AAmBA,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,iBAAiB,kGAU5B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './FallbackComponent';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/FallbackComponent/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -6,5 +6,12 @@ export declare const placeholders: {
6
6
  height: number;
7
7
  };
8
8
  };
9
+ video: {
10
+ src: string;
11
+ dimensions: {
12
+ width: number;
13
+ height: number;
14
+ };
15
+ };
9
16
  };
10
17
  //# sourceMappingURL=placeholders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"placeholders.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/placeholders.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;CAKxB,CAAA"}
1
+ {"version":3,"file":"placeholders.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/placeholders.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;CASxB,CAAA"}
@@ -4,4 +4,5 @@ export declare const FILES_BY_ID: import("@apollo/client").DocumentNode;
4
4
  export declare const PAGE_PATHNAMES_BY_ID: import("@apollo/client").DocumentNode;
5
5
  export declare const TYPOGRAPHY_FRAGMENT: import("@apollo/client").DocumentNode;
6
6
  export declare const TYPOGRAPHIES_BY_ID: import("@apollo/client").DocumentNode;
7
+ export declare const TABLE_BY_ID: import("@apollo/client").DocumentNode;
7
8
  //# sourceMappingURL=queries.d.ts.map
@@ -1 +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"}
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;AAED,eAAO,MAAM,WAAW,uCAuBvB,CAAA"}
@@ -1,4 +1,4 @@
1
- declare type SwatchValue = {
1
+ export declare type SwatchValue = {
2
2
  hue: number;
3
3
  saturation: number;
4
4
  lightness: number;
@@ -7,5 +7,4 @@ export declare type ColorValue = {
7
7
  swatch?: SwatchValue;
8
8
  alpha: number;
9
9
  };
10
- export {};
11
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +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
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/types.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACxB,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"}
@@ -0,0 +1,4 @@
1
+ declare type Serializable = undefined | null | boolean | number | string | Serializable[] | {
2
+ [key: string]: Serializable;
3
+ } | ((...args: Serializable[]) => Promise<Serializable>);
4
+ //# sourceMappingURL=controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/controls.ts"],"names":[],"mappings":"AAAA,aAAK,YAAY,GACb,SAAS,GACT,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,YAAY,EAAE,GACd;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,GAC/B,CAAC,CAAC,GAAG,IAAI,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export type { Action } from './state/actions';
2
- export { ActionTypes, changeDocument, changeDocumentElementScrollTop, cleanUp, init, messageHostPropController, changeApiResource, evictApiResource, registerDocument, unregisterDocument, } from './state/actions';
2
+ export { ActionTypes, changeDocument, changeDocumentElementScrollTop, cleanUp, init, messageHostPropController, changeApiResource, evictApiResource, registerDocument, scrollDocumentElement, unregisterDocument, } 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';
@@ -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,EACL,WAAW,EACX,cAAc,EACd,8BAA8B,EAC9B,OAAO,EACP,IAAI,EACJ,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,GACnB,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;AACjD,OAAO,EAAE,cAAc,EAAE,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,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,GACnB,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;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,21 +1,22 @@
1
1
  /// <reference types="react" />
2
+ import { NormalizedCacheObject } from '@apollo/client';
2
3
  import { GetServerSidePropsContext, GetServerSidePropsResult, GetStaticPathsResult, GetStaticPropsContext, GetStaticPropsResult } from 'next';
3
4
  import NextDocument, { DocumentContext, DocumentInitialProps } from 'next/document';
4
- import { ReactRuntime } from './runtimes/react';
5
5
  import { Element } from './state/react-page';
6
+ import { PageData } from './components';
6
7
  export declare class Document extends NextDocument {
7
8
  static getInitialProps(ctx: DocumentContext): Promise<DocumentInitialProps>;
8
9
  }
9
10
  export declare type PageProps = {
10
- pageId: string;
11
+ page: PageData;
11
12
  rootElement: Element;
12
13
  makeswiftApiEndpoint: string;
13
- registerComponents?(runtime: ReactRuntime): () => void;
14
+ cacheData: NormalizedCacheObject;
14
15
  };
15
16
  export declare function getServerSideProps({ query: { pageId }, }: GetServerSidePropsContext): Promise<GetServerSidePropsResult<PageProps>>;
16
17
  export declare function getStaticProps({ params, }: GetStaticPropsContext<{
17
18
  path: string[];
18
19
  }>): Promise<GetStaticPropsResult<PageProps>>;
19
20
  export declare function getStaticPaths(): Promise<GetStaticPathsResult>;
20
- export declare function Page({ pageId, rootElement, makeswiftApiEndpoint, registerComponents }: PageProps): JSX.Element;
21
+ export declare function Page({ page, rootElement, makeswiftApiEndpoint, cacheData }: PageProps): JSX.Element;
21
22
  //# sourceMappingURL=next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../src/next.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,qBA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A;AACb,OAAO,YAAY,EAAE,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAKnF,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,OAAO,EAAoB,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEzD,qBAAa,QAAS,SAAQ,YAAY;WAC3B,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAyBlF;AAID,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAA;IACd,WAAW,EAAE,OAAO,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,SAAS,EAAE,qBAAqB,CAAA;CACjC,CAAA;AAMD,wBAAsB,kBAAkB,CAAC,EACvC,KAAK,EAAE,EAAE,MAAM,EAAE,GAClB,EAAE,yBAAyB,GAAG,OAAO,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CA4B1E;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,CAgCtF;AAED,wBAAsB,cAAc,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAEpE;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,SAAS,EAAE,EAAE,SAAS,eAQrF"}
@@ -105,6 +105,7 @@ export declare const Types: {
105
105
  readonly SocialLinks: "SocialLinks";
106
106
  readonly Table: "Table";
107
107
  readonly TableFormFields: "TableFormFields";
108
+ readonly Typeahead: "Typeahead";
108
109
  readonly TextArea: "TextArea";
109
110
  readonly TextInput: "TextInput";
110
111
  readonly TextStyle: "TextStyle";
@@ -554,17 +555,17 @@ declare type ShadowsDescriptor<_T = ShadowsValue> = {
554
555
  };
555
556
  export declare function Shadows(options?: ShadowsOptions): ShadowsDescriptor;
556
557
  export declare type ShapeValue<T extends Data = Data> = Record<string, T>;
557
- declare type ShapeOptions<T extends Record<string, Descriptor>> = {
558
+ declare type ShapeOptions<T extends Record<string, PanelDescriptor>> = {
558
559
  type: T;
559
560
  preset?: {
560
561
  [K in keyof T]?: DescriptorValueType<T[K]>;
561
562
  };
562
563
  };
563
- declare type ShapeDescriptor<_T extends Record<string, Data>, U extends Record<string, Descriptor>> = {
564
+ export declare type ShapeDescriptor<_T extends Record<string, Data>, U extends Record<string, PanelDescriptor>> = {
564
565
  type: typeof Types.Shape;
565
566
  options: ShapeOptions<U>;
566
567
  };
567
- export declare function Shape<T extends Record<string, Descriptor>>(options: ShapeOptions<T>): ShapeDescriptor<{
568
+ export declare function Shape<T extends Record<string, PanelDescriptor>>(options: ShapeOptions<T>): ShapeDescriptor<{
568
569
  [K in keyof T]?: DescriptorValueType<T[K]>;
569
570
  }, T>;
570
571
  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';
@@ -620,11 +621,27 @@ export declare type TableFormFieldsValue = {
620
621
  declare type TableFormFieldsOptions = Options<{
621
622
  preset?: TableFormFieldsValue;
622
623
  }>;
623
- declare type TableFormFieldsDescriptor<_T = TableFormFieldsValue> = {
624
+ export declare type TableFormFieldsDescriptor<_T = TableFormFieldsValue> = {
624
625
  type: typeof Types.TableFormFields;
625
626
  options: TableFormFieldsOptions;
626
627
  };
627
628
  export declare function TableFormFields(options?: TableFormFieldsOptions): TableFormFieldsDescriptor;
629
+ export declare type TypeaheadValue<T extends Data = Data> = {
630
+ id: string;
631
+ label: string;
632
+ value: T;
633
+ };
634
+ export declare type TypeaheadOptions<T extends Data> = {
635
+ getItems: (query: string) => Promise<TypeaheadValue<T>[]>;
636
+ label?: string;
637
+ preset?: TypeaheadValue<T>;
638
+ defaultValue?: TypeaheadValue<T>;
639
+ };
640
+ export declare type TypeaheadDescriptor<T extends TypeaheadValue = TypeaheadValue> = {
641
+ type: typeof Types.Typeahead;
642
+ options: TypeaheadOptions<T extends TypeaheadValue<infer U> ? U : never>;
643
+ };
644
+ export declare function Typeahead<T extends Data>(options: TypeaheadOptions<T>): TypeaheadDescriptor<TypeaheadValue<T>>;
628
645
  export declare type TextAreaValue = string;
629
646
  declare type TextAreaOptions = Options<{
630
647
  preset?: TextAreaValue;
@@ -684,10 +701,11 @@ declare type WidthDescriptor<_T = WidthValue> = {
684
701
  options: WidthOptions;
685
702
  };
686
703
  export declare function Width(options?: WidthOptions): WidthDescriptor;
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;
704
+ 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> | TypeaheadDescriptor<T extends TypeaheadValue ? T : TypeaheadValue> | TextAreaDescriptor<T> | TextInputDescriptor<T> | TextStyleDescriptor<T> | VideoDescriptor<T> | WidthDescriptor<T>;
705
+ export 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.Typeahead | typeof Types.RichText | typeof Types.Image | typeof Types.ResponsiveOpacity | typeof Types.SocialLinks | typeof Types.Video | typeof Types.NavigationLinks;
689
706
  export declare type PanelDescriptor<T extends Data = Data> = Extract<Descriptor<T>, {
690
707
  type: PanelDescriptorType;
691
708
  }>;
692
709
  export declare type DescriptorValueType<T extends Descriptor> = T extends Descriptor<infer U> ? U : never;
710
+ export declare type PanelDescriptorValueType<T extends PanelDescriptor> = T extends PanelDescriptor<infer U> ? U : never;
693
711
  //# sourceMappingURL=descriptors.d.ts.map