@makeswift/runtime 0.0.0-646104a → 0.0.0-76a2297

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 (96) 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 +14 -1
  10. package/dist/components.cjs.js.map +1 -1
  11. package/dist/components.es.js +6 -2
  12. package/dist/components.es.js.map +1 -1
  13. package/dist/control-serialization.cjs.js +61 -5
  14. package/dist/control-serialization.cjs.js.map +1 -1
  15. package/dist/control-serialization.es.js +61 -5
  16. package/dist/control-serialization.es.js.map +1 -1
  17. package/dist/descriptors.cjs.js +6 -0
  18. package/dist/descriptors.cjs.js.map +1 -1
  19. package/dist/descriptors.es.js +6 -1
  20. package/dist/descriptors.es.js.map +1 -1
  21. package/dist/main.cjs.js +1 -0
  22. package/dist/main.cjs.js.map +1 -1
  23. package/dist/main.es.js +1 -1
  24. package/dist/next.cjs.js +36 -17
  25. package/dist/next.cjs.js.map +1 -1
  26. package/dist/next.es.js +37 -18
  27. package/dist/next.es.js.map +1 -1
  28. package/dist/react-builder-preview.cjs.js +3 -0
  29. package/dist/react-builder-preview.cjs.js.map +1 -1
  30. package/dist/react-builder-preview.es.js +4 -1
  31. package/dist/react-builder-preview.es.js.map +1 -1
  32. package/dist/react-page.cjs.js +1 -1
  33. package/dist/react-page.cjs.js.map +1 -1
  34. package/dist/react-page.es.js +2 -2
  35. package/dist/react-page.es.js.map +1 -1
  36. package/dist/react.cjs.js +4 -1
  37. package/dist/react.cjs.js.map +1 -1
  38. package/dist/react.cjs2.js +278 -83
  39. package/dist/react.cjs2.js.map +1 -1
  40. package/dist/react.es.js +4 -1
  41. package/dist/react.es.js.map +1 -1
  42. package/dist/react.es2.js +268 -82
  43. package/dist/react.es2.js.map +1 -1
  44. package/dist/types/api/react.d.ts +22 -4
  45. package/dist/types/api/react.d.ts.map +1 -1
  46. package/dist/types/builder/serialization/control-serialization.d.ts +55 -7
  47. package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -1
  48. package/dist/types/components/builtin/Form/prop-controllers.d.ts +1 -0
  49. package/dist/types/components/builtin/Form/prop-controllers.d.ts.map +1 -0
  50. package/dist/types/components/builtin/Video/Video.d.ts +15 -0
  51. package/dist/types/components/builtin/Video/Video.d.ts.map +1 -0
  52. package/dist/types/components/builtin/Video/index.d.ts +2 -0
  53. package/dist/types/components/builtin/Video/index.d.ts.map +1 -0
  54. package/dist/types/components/builtin/Video/prop-controllers.d.ts +50 -0
  55. package/dist/types/components/builtin/Video/prop-controllers.d.ts.map +1 -0
  56. package/dist/types/components/builtin/index.d.ts.map +1 -1
  57. package/dist/types/components/hooks/useTableWorkspace.d.ts +14 -0
  58. package/dist/types/components/hooks/useTableWorkspace.d.ts.map +1 -0
  59. package/dist/types/components/index.d.ts +2 -0
  60. package/dist/types/components/index.d.ts.map +1 -1
  61. package/dist/types/components/page/BodySnippet.d.ts +7 -0
  62. package/dist/types/components/page/BodySnippet.d.ts.map +1 -0
  63. package/dist/types/components/page/Page.d.ts +45 -0
  64. package/dist/types/components/page/Page.d.ts.map +1 -0
  65. package/dist/types/components/page/index.d.ts +2 -0
  66. package/dist/types/components/page/index.d.ts.map +1 -0
  67. package/dist/types/components/utils/layout.d.ts +16 -0
  68. package/dist/types/components/utils/layout.d.ts.map +1 -0
  69. package/dist/types/components/utils/placeholders.d.ts +7 -0
  70. package/dist/types/components/utils/placeholders.d.ts.map +1 -1
  71. package/dist/types/components/utils/pollAnimationFrame.d.ts +2 -0
  72. package/dist/types/components/utils/pollAnimationFrame.d.ts.map +1 -0
  73. package/dist/types/components/utils/pollElementLayout.d.ts +8 -0
  74. package/dist/types/components/utils/pollElementLayout.d.ts.map +1 -0
  75. package/dist/types/components/utils/requestBatchedAnimationFrame.d.ts +4 -0
  76. package/dist/types/components/utils/requestBatchedAnimationFrame.d.ts.map +1 -0
  77. package/dist/types/index.d.ts +1 -1
  78. package/dist/types/index.d.ts.map +1 -1
  79. package/dist/types/next.d.ts +5 -4
  80. package/dist/types/next.d.ts.map +1 -1
  81. package/dist/types/prop-controllers/descriptors.d.ts +23 -5
  82. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  83. package/dist/types/prop-controllers/index.d.ts +1 -1
  84. package/dist/types/prop-controllers/index.d.ts.map +1 -1
  85. package/dist/types/runtimes/page.d.ts +9 -0
  86. package/dist/types/runtimes/page.d.ts.map +1 -0
  87. package/dist/types/runtimes/react.d.ts +3 -3
  88. package/dist/types/runtimes/react.d.ts.map +1 -1
  89. package/dist/types/state/actions.d.ts +9 -1
  90. package/dist/types/state/actions.d.ts.map +1 -1
  91. package/dist/types/state/react-builder-preview.d.ts.map +1 -1
  92. package/dist/types/utils/get-redirect-match.d.ts +10 -0
  93. package/dist/types/utils/get-redirect-match.d.ts.map +1 -0
  94. package/dist/types/utils/get-redirect-match.test.d.ts +1 -0
  95. package/dist/types/utils/get-redirect-match.test.d.ts.map +1 -0
  96. package/package.json +2 -1
@@ -1,8 +1,26 @@
1
- /// <reference types="react" />
2
- import { DocumentNode, NormalizedCacheObject, OperationVariables, QueryHookOptions, QueryResult, TypedDocumentNode, DefaultContext, ApolloCache, MutationHookOptions, MutationTuple } from '@apollo/client';
1
+ import { ApolloClient, DocumentNode, NormalizedCacheObject, OperationVariables, QueryHookOptions, QueryResult, TypedDocumentNode, DefaultContext, ApolloCache, MutationHookOptions, MutationTuple } from '@apollo/client';
3
2
  export { gql } from '@apollo/client';
4
- import { ApolloProviderProps } from '@apollo/client/react/context';
3
+ import { ReactNode } from 'react';
4
+ import { Element } from '../state/react-page';
5
+ declare type CreateApolloClientParams = {
6
+ uri?: string;
7
+ cacheData?: NormalizedCacheObject;
8
+ };
9
+ export declare function createApolloClient({ uri, cacheData }: CreateApolloClientParams): ApolloClient<NormalizedCacheObject>;
10
+ export declare type MakeswiftClientOptions = {
11
+ uri?: string;
12
+ cacheData?: NormalizedCacheObject;
13
+ };
14
+ export declare class MakeswiftClient {
15
+ apolloClient: ApolloClient<NormalizedCacheObject>;
16
+ constructor({ uri, cacheData }: MakeswiftClientOptions);
17
+ prefetch(element: Element): Promise<NormalizedCacheObject>;
18
+ }
5
19
  export declare function useQuery<TData = any, TVariables = OperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: QueryHookOptions<TData, TVariables>): QueryResult<TData, TVariables>;
6
20
  export declare function useMutation<TData = any, TVariables = OperationVariables, TContext = DefaultContext, TCache extends ApolloCache<any> = ApolloCache<any>>(mutation: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: MutationHookOptions<TData, TVariables, TContext>): MutationTuple<TData, TVariables, TContext, TCache>;
7
- export declare function ApolloProvider({ client, children }: ApolloProviderProps<NormalizedCacheObject>): JSX.Element;
21
+ declare type MakeswiftProviderProps = {
22
+ client: MakeswiftClient;
23
+ children: ReactNode;
24
+ };
25
+ export declare function MakeswiftProvider({ client, children }: MakeswiftProviderProps): JSX.Element;
8
26
  //# sourceMappingURL=react.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/api/react.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EAGjB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,aAAa,EACd,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAKlE,wBAAgB,QAAQ,CAAC,KAAK,GAAG,GAAG,EAAE,UAAU,GAAG,kBAAkB,EACnE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Config, ListValue as ListControlValue, PanelDescriptor, PropControllerDescriptor as Control, Props as Controls } from '../../prop-controllers';
1
+ import { Data, ListDescriptor as ListControl, ListOptions as ListControlConfig, ListValue as ListControlValue, ShapeDescriptor as ShapeControl, ShapeValue as ShapeControlValue, TypeaheadDescriptor as TypeaheadControl, TypeaheadOptions as TypeaheadControlConfig, TypeaheadValue as TypeaheadControlValue, PanelDescriptorType as PanelControlType, PropControllerDescriptor as Control, Props as Controls } from '../../prop-controllers';
2
2
  import { DeserializedFunction, SerializedFunction } from './function-serialization';
3
+ declare type SerializedShapeControlConfig<T extends Record<string, SerializedPanelControl>> = {
4
+ type: T;
5
+ preset?: {
6
+ [K in keyof T]?: SerializedPanelControlValueType<T[K]>;
7
+ };
8
+ };
9
+ declare type SerializedShapeControl<_T extends Record<string, Data>, U extends Record<string, SerializedPanelControl>> = {
10
+ type: typeof Controls.Types.Shape;
11
+ options: SerializedShapeControlConfig<U>;
12
+ };
13
+ declare type DeserializedShapeControlConfig<T extends Record<string, DeserializedPanelControl>> = {
14
+ type: T;
15
+ preset?: {
16
+ [K in keyof T]?: DeserializedPanelControlValueType<T[K]>;
17
+ };
18
+ };
19
+ declare type DeserializedShapeControl<_T extends Record<string, Data>, U extends Record<string, DeserializedPanelControl>> = {
20
+ type: typeof Controls.Types.Shape;
21
+ options: DeserializedShapeControlConfig<U>;
22
+ };
3
23
  declare type SerializedListControlConfig<T extends Data> = {
4
- type: PanelDescriptor<T>;
24
+ type: SerializedPanelControl<T>;
5
25
  label?: string;
6
26
  getItemLabel?: SerializedFunction<Exclude<ListControlConfig<T>['getItemLabel'], undefined>>;
7
27
  preset?: ListControlValue<T>;
@@ -9,10 +29,10 @@ declare type SerializedListControlConfig<T extends Data> = {
9
29
  };
10
30
  declare type SerializedListControl<T extends ListControlValue = ListControlValue> = {
11
31
  type: typeof Controls.Types.List;
12
- options: SerializedListControlConfig<T[number]['value']>;
32
+ options: SerializedListControlConfig<T extends ListControlValue<infer U> ? U : never>;
13
33
  };
14
34
  declare type DeserializedListControlConfig<T extends Data> = {
15
- type: PanelDescriptor<T>;
35
+ type: DeserializedPanelControl<T>;
16
36
  label?: string;
17
37
  getItemLabel?: DeserializedFunction<Exclude<ListControlConfig<T>['getItemLabel'], undefined>>;
18
38
  preset?: ListControlValue<T>;
@@ -20,10 +40,38 @@ declare type DeserializedListControlConfig<T extends Data> = {
20
40
  };
21
41
  declare type DeserializedListControl<T extends ListControlValue = ListControlValue> = {
22
42
  type: typeof Controls.Types.List;
23
- options: DeserializedListControlConfig<T[number]['value']>;
43
+ options: DeserializedListControlConfig<T extends ListControlValue<infer U> ? U : never>;
44
+ };
45
+ declare type SerializedTypeaheadControlConfig<T extends Data> = {
46
+ getItems: SerializedFunction<TypeaheadControlConfig<T>['getItems']>;
47
+ label?: string;
48
+ preset?: TypeaheadControlValue<T>;
49
+ defaultValue?: TypeaheadControlValue<T>;
50
+ };
51
+ declare type SerializedTypeaheadControl<T extends TypeaheadControlValue = TypeaheadControlValue> = {
52
+ type: typeof Controls.Types.Typeahead;
53
+ options: SerializedTypeaheadControlConfig<T['value']>;
54
+ };
55
+ declare type DeserializedTypeaheadControlConfig<T extends Data> = {
56
+ getItems: DeserializedFunction<TypeaheadControlConfig<T>['getItems']>;
57
+ label?: string;
58
+ preset?: TypeaheadControlValue<T>;
59
+ defaultValue?: TypeaheadControlValue<T>;
60
+ };
61
+ declare type DeserializedTypeaheadControl<T extends TypeaheadControlValue = TypeaheadControlValue> = {
62
+ type: typeof Controls.Types.Typeahead;
63
+ options: DeserializedTypeaheadControlConfig<T['value']>;
24
64
  };
25
- export declare type SerializedControl = Exclude<Control, ListControl> | SerializedListControl;
26
- export declare type DeserializedControl = Exclude<Control, ListControl> | DeserializedListControl;
65
+ export declare type SerializedControl<T extends Data = Data> = Exclude<Control<T>, ListControl<T extends ListControlValue ? T : ListControlValue> | ShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | TypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue>> | SerializedListControl<T extends ListControlValue ? T : ListControlValue> | SerializedShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | SerializedTypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue>;
66
+ declare type SerializedPanelControl<T extends Data = Data> = Extract<SerializedControl<T>, {
67
+ type: PanelControlType;
68
+ }>;
69
+ declare type SerializedPanelControlValueType<T extends SerializedPanelControl> = T extends SerializedPanelControl<infer U> ? U : never;
70
+ export declare type DeserializedControl<T extends Data = Data> = Exclude<Control<T>, ListControl<T extends ListControlValue ? T : ListControlValue> | ShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | TypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue>> | DeserializedListControl<T extends ListControlValue ? T : ListControlValue> | DeserializedShapeControl<T extends ShapeControlValue ? T : ShapeControlValue, any> | DeserializedTypeaheadControl<T extends TypeaheadControlValue ? T : TypeaheadControlValue>;
71
+ declare type DeserializedPanelControl<T extends Data = Data> = Extract<DeserializedControl<T>, {
72
+ type: PanelControlType;
73
+ }>;
74
+ declare type DeserializedPanelControlValueType<T extends DeserializedPanelControl> = T extends DeserializedPanelControl<infer U> ? U : never;
27
75
  export declare function serializeControls(controls: Record<string, Control>): [Record<string, SerializedControl>, Transferable[]];
28
76
  export declare function deserializeControls(serializedControls: Record<string, SerializedControl>): Record<string, DeserializedControl>;
29
77
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"control-serialization.d.ts","sourceRoot":"","sources":["../../../../src/builder/serialization/control-serialization.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,cAAc,IAAI,WAAW,EAC7B,WAAW,IAAI,iBAAiB,EAChC,SAAS,IAAI,gBAAgB,EAC7B,eAAe,EACf,wBAAwB,IAAI,OAAO,EACnC,KAAK,IAAI,QAAQ,EAClB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,oBAAoB,EAEpB,kBAAkB,EAEnB,MAAM,0BAA0B,CA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;AAeD,oBAAY,iBAAiB,GAAG,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,qBAAqB,CAAA;AAErF,oBAAY,mBAAmB,GAAG,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,uBAAuB,CAAA;AAsBzF,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAAE,YAAY,EAAE,CAAC,CASrD;AAED,wBAAgB,mBAAmB,CACjC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GACpD,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAOrC"}
1
+ {"version":3,"file":"control-serialization.d.ts","sourceRoot":"","sources":["../../../../src/builder/serialization/control-serialization.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,cAAc,IAAI,WAAW,EAC7B,WAAW,IAAI,iBAAiB,EAChC,SAAS,IAAI,gBAAgB,EAC7B,eAAe,IAAI,YAAY,EAC/B,UAAU,IAAI,iBAAiB,EAC/B,mBAAmB,IAAI,gBAAgB,EACvC,gBAAgB,IAAI,sBAAsB,EAC1C,cAAc,IAAI,qBAAqB,EAEvC,mBAAmB,IAAI,gBAAgB,EAEvC,wBAAwB,IAAI,OAAO,EACnC,KAAK,IAAI,QAAQ,EAClB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,oBAAoB,EAEpB,kBAAkB,EAEnB,MAAM,0BAA0B,CAAA;AAEjC,aAAK,4BAA4B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,IAAI;IACpF,IAAI,EAAE,CAAC,CAAA;IACP,MAAM,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAA;CACpE,CAAA;AAED,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C,EAAE,YAAY,EAAE,CAAC,CASrD;AAED,wBAAgB,mBAAmB,CACjC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GACpD,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAOrC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=prop-controllers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-controllers.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Form/prop-controllers.tsx"],"names":[],"mappings":""}
@@ -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"}
@@ -0,0 +1,50 @@
1
+ import { Props } from '@makeswift/runtime/prop-controllers';
2
+ export declare const PropControllers: {
3
+ id: {
4
+ type: "ElementID";
5
+ options: Record<string, never> | ((props: Record<string, unknown>, decideMode: Props.Device) => Record<string, never>);
6
+ };
7
+ video: {
8
+ type: "Video";
9
+ options: {
10
+ preset?: {
11
+ url?: string | undefined;
12
+ muted?: boolean | undefined;
13
+ playing?: boolean | undefined;
14
+ loop?: boolean | undefined;
15
+ controls?: boolean | undefined;
16
+ } | undefined;
17
+ } | ((props: Record<string, unknown>, decideMode: Props.Device) => {
18
+ preset?: {
19
+ url?: string | undefined;
20
+ muted?: boolean | undefined;
21
+ playing?: boolean | undefined;
22
+ loop?: boolean | undefined;
23
+ controls?: boolean | undefined;
24
+ } | undefined;
25
+ });
26
+ };
27
+ width: {
28
+ type: "Width";
29
+ options: {
30
+ preset?: Props.WidthValue | undefined;
31
+ defaultValue?: Props.Length | undefined;
32
+ } | ((props: Record<string, unknown>, decideMode: Props.Device) => {
33
+ preset?: Props.WidthValue | undefined;
34
+ defaultValue?: Props.Length | undefined;
35
+ });
36
+ };
37
+ margin: {
38
+ type: "Margin";
39
+ options: {
40
+ preset?: Props.MarginValue | undefined;
41
+ } | ((props: Record<string, unknown>, decideMode: Props.Device) => {
42
+ preset?: Props.MarginValue | undefined;
43
+ });
44
+ };
45
+ borderRadius: {
46
+ type: "BorderRadius";
47
+ options: Record<string, never> | ((props: Record<string, unknown>, decideMode: Props.Device) => Record<string, never>);
48
+ };
49
+ };
50
+ //# sourceMappingURL=prop-controllers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-controllers.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Video/prop-controllers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAA;AAE3D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM3B,CAAA"}
@@ -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,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,YAAY,cA4B9D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/builtin/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAe1C,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,YAAY,cA+B9D"}
@@ -0,0 +1,14 @@
1
+ declare type Table = {
2
+ tableFolder: {
3
+ workspace: {
4
+ id: string;
5
+ };
6
+ };
7
+ };
8
+ export declare function useTableWorkspace(tableId: string | null | undefined): import("@apollo/client").QueryResult<{
9
+ table: Table | null | undefined;
10
+ }, {
11
+ id: string;
12
+ }>;
13
+ export {};
14
+ //# sourceMappingURL=useTableWorkspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableWorkspace.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useTableWorkspace.ts"],"names":[],"mappings":"AAIA,aAAK,KAAK,GAAG;IACX,WAAW,EAAE;QACX,SAAS,EAAE;YACT,EAAE,EAAE,MAAM,CAAA;SACX,CAAA;KACF,CAAA;CACF,CAAA;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;WACzC,KAAK,GAAG,IAAI,GAAG,SAAS;;QAAU,MAAM;GAKlE"}
@@ -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"}
@@ -0,0 +1,16 @@
1
+ export declare type Box = {
2
+ top: number;
3
+ right: number;
4
+ bottom: number;
5
+ left: number;
6
+ width: number;
7
+ height: number;
8
+ };
9
+ export declare type Layout = {
10
+ contentBox: Box;
11
+ paddingBox: Box;
12
+ borderBox: Box;
13
+ marginBox: Box;
14
+ };
15
+ export declare function getElementLayout(element: Element): Layout | null;
16
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/layout.ts"],"names":[],"mappings":"AAAA,oBAAY,GAAG,GAAG;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,oBAAY,MAAM,GAAG;IACnB,UAAU,EAAE,GAAG,CAAA;IACf,UAAU,EAAE,GAAG,CAAA;IACf,SAAS,EAAE,GAAG,CAAA;IACd,SAAS,EAAE,GAAG,CAAA;CACf,CAAA;AA2BD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAiEhE"}
@@ -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"}
@@ -0,0 +1,2 @@
1
+ export default function pollAnimationFrame(callback: (timestamp: DOMHighResTimeStamp) => unknown): () => void;
2
+ //# sourceMappingURL=pollAnimationFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollAnimationFrame.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/pollAnimationFrame.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,QAAQ,EAAE,CAAC,SAAS,EAAE,mBAAmB,KAAK,OAAO,GACpD,MAAM,IAAI,CAcZ"}
@@ -0,0 +1,8 @@
1
+ import { Layout } from './layout';
2
+ declare type Options = {
3
+ element: Element;
4
+ onLayout: (arg0: Layout) => unknown;
5
+ };
6
+ export default function pollElementLayout({ element, onLayout }: Options): () => void;
7
+ export {};
8
+ //# sourceMappingURL=pollElementLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollElementLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/pollElementLayout.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,MAAM,EAAE,MAAM,UAAU,CAAA;AAGnD,aAAK,OAAO,GAAG;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;CACpC,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,OAAO,cAsBvE"}
@@ -0,0 +1,4 @@
1
+ declare type Callback = (timestamp: DOMHighResTimeStamp) => unknown;
2
+ export default function requestBatchedAnimationFrame(callback: Callback): () => void;
3
+ export {};
4
+ //# sourceMappingURL=requestBatchedAnimationFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestBatchedAnimationFrame.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/requestBatchedAnimationFrame.ts"],"names":[],"mappings":"AAIA,aAAK,QAAQ,GAAG,CAAC,SAAS,EAAE,mBAAmB,KAAK,OAAO,CAAA;AAgB3D,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,IAAI,CAoBnF"}
@@ -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":[],"mapp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B,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,MAAM,CAAA;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';
@@ -625,6 +626,22 @@ export declare type TableFormFieldsDescriptor<_T = TableFormFieldsValue> = {
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