@makeswift/runtime 0.28.10-canary.4 → 0.28.10-canary.6
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.
- package/dist/cjs/api/graphql-api-client.js +1 -1
- package/dist/cjs/api/rest-api-client.js +1 -1
- package/dist/cjs/api-handler/handlers/manifest.js +1 -1
- package/dist/cjs/next/components/tests/controls/page-control-prop-rendering.js +3 -18
- package/dist/cjs/next/components/tests/controls/page-control-prop-rendering.js.map +1 -1
- package/dist/cjs/react/server/index.js +2 -0
- package/dist/cjs/react/server/index.js.map +1 -1
- package/dist/cjs/runtimes/react/react-runtime-core.js +14 -3
- package/dist/cjs/runtimes/react/react-runtime-core.js.map +1 -1
- package/dist/cjs/runtimes/react/server/components/element-data.js +6 -2
- package/dist/cjs/runtimes/react/server/components/element-data.js.map +1 -1
- package/dist/cjs/runtimes/react/server/components/element.js +20 -2
- package/dist/cjs/runtimes/react/server/components/element.js.map +1 -1
- package/dist/cjs/runtimes/react/server/components/renderer.js +1 -2
- package/dist/cjs/runtimes/react/server/components/renderer.js.map +1 -1
- package/dist/cjs/runtimes/react/server/components/server-elements-cache.js +7 -0
- package/dist/cjs/runtimes/react/server/components/server-elements-cache.js.map +1 -1
- package/dist/cjs/runtimes/react/server/index.js +3 -0
- package/dist/cjs/runtimes/react/server/index.js.map +1 -1
- package/dist/cjs/runtimes/react/server/injectable-props.js +17 -0
- package/dist/cjs/runtimes/react/server/injectable-props.js.map +1 -0
- package/dist/cjs/runtimes/react/testing/react-runtime.js +3 -4
- package/dist/cjs/runtimes/react/testing/react-runtime.js.map +1 -1
- package/dist/cjs/runtimes/react/testing/render-to-string.js +44 -0
- package/dist/cjs/runtimes/react/testing/render-to-string.js.map +1 -0
- package/dist/cjs/state/modules/components-meta.js.map +1 -1
- package/dist/cjs/unstable-framework-support/index.js +3 -0
- package/dist/cjs/unstable-framework-support/index.js.map +1 -1
- package/dist/esm/api/graphql-api-client.js +1 -1
- package/dist/esm/api/rest-api-client.js +1 -1
- package/dist/esm/api-handler/handlers/manifest.js +1 -1
- package/dist/esm/next/components/tests/controls/page-control-prop-rendering.js +1 -16
- package/dist/esm/next/components/tests/controls/page-control-prop-rendering.js.map +1 -1
- package/dist/esm/react/server/index.js +2 -0
- package/dist/esm/react/server/index.js.map +1 -1
- package/dist/esm/runtimes/react/react-runtime-core.js +14 -3
- package/dist/esm/runtimes/react/react-runtime-core.js.map +1 -1
- package/dist/esm/runtimes/react/server/components/element-data.js +6 -2
- package/dist/esm/runtimes/react/server/components/element-data.js.map +1 -1
- package/dist/esm/runtimes/react/server/components/element.js +20 -2
- package/dist/esm/runtimes/react/server/components/element.js.map +1 -1
- package/dist/esm/runtimes/react/server/components/renderer.js +2 -3
- package/dist/esm/runtimes/react/server/components/renderer.js.map +1 -1
- package/dist/esm/runtimes/react/server/components/server-elements-cache.js +6 -0
- package/dist/esm/runtimes/react/server/components/server-elements-cache.js.map +1 -1
- package/dist/esm/runtimes/react/server/index.js +2 -0
- package/dist/esm/runtimes/react/server/index.js.map +1 -1
- package/dist/esm/runtimes/react/server/injectable-props.js +1 -0
- package/dist/esm/runtimes/react/server/injectable-props.js.map +1 -0
- package/dist/esm/runtimes/react/testing/react-runtime.js +3 -4
- package/dist/esm/runtimes/react/testing/react-runtime.js.map +1 -1
- package/dist/esm/runtimes/react/testing/render-to-string.js +20 -0
- package/dist/esm/runtimes/react/testing/render-to-string.js.map +1 -0
- package/dist/esm/state/modules/components-meta.js.map +1 -1
- package/dist/esm/unstable-framework-support/index.js +2 -0
- package/dist/esm/unstable-framework-support/index.js.map +1 -1
- package/dist/types/next/components/tests/controls/page-control-prop-rendering.d.ts.map +1 -1
- package/dist/types/react/server/index.d.ts +1 -1
- package/dist/types/react/server/index.d.ts.map +1 -1
- package/dist/types/runtimes/react/react-runtime-core.d.ts +18 -5
- package/dist/types/runtimes/react/react-runtime-core.d.ts.map +1 -1
- package/dist/types/runtimes/react/server/components/__tests__/element.test.d.ts +2 -0
- package/dist/types/runtimes/react/server/components/__tests__/element.test.d.ts.map +1 -0
- package/dist/types/runtimes/react/server/components/element-data.d.ts +2 -1
- package/dist/types/runtimes/react/server/components/element-data.d.ts.map +1 -1
- package/dist/types/runtimes/react/server/components/element.d.ts.map +1 -1
- package/dist/types/runtimes/react/server/components/renderer.d.ts.map +1 -1
- package/dist/types/runtimes/react/server/components/server-elements-cache.d.ts +4 -0
- package/dist/types/runtimes/react/server/components/server-elements-cache.d.ts.map +1 -1
- package/dist/types/runtimes/react/server/index.d.ts +1 -0
- package/dist/types/runtimes/react/server/index.d.ts.map +1 -1
- package/dist/types/runtimes/react/server/injectable-props.d.ts +5 -0
- package/dist/types/runtimes/react/server/injectable-props.d.ts.map +1 -0
- package/dist/types/runtimes/react/testing/react-runtime.d.ts +5 -4
- package/dist/types/runtimes/react/testing/react-runtime.d.ts.map +1 -1
- package/dist/types/runtimes/react/testing/render-to-string.d.ts +3 -0
- package/dist/types/runtimes/react/testing/render-to-string.d.ts.map +1 -0
- package/dist/types/state/modules/components-meta.d.ts +2 -0
- package/dist/types/state/modules/components-meta.d.ts.map +1 -1
- package/dist/types/unstable-framework-support/index.d.ts +1 -0
- package/dist/types/unstable-framework-support/index.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,24 @@
|
|
|
1
|
+
import { type Component, type PropsWithoutRef, type ReactNode, type RefAttributes } from 'react';
|
|
1
2
|
import { ControlDefinition as UnifiedControlDefinition } from '@makeswift/controls';
|
|
2
3
|
import { type LegacyDescriptor, type DescriptorValueType } from '../../prop-controllers/descriptors';
|
|
3
4
|
import { ComponentIcon } from '../../state/modules/components-meta';
|
|
4
|
-
import type
|
|
5
|
+
import { type InjectableProps } from './server/injectable-props';
|
|
5
6
|
import { RuntimeCore } from './runtime-core';
|
|
7
|
+
type InjectedPropsConfig = Record<string, keyof InjectableProps>;
|
|
8
|
+
type ServerComponentConfig<I extends InjectedPropsConfig> = boolean | {
|
|
9
|
+
unstable_injectedProps: I;
|
|
10
|
+
};
|
|
11
|
+
type InjectedProps<I extends InjectedPropsConfig> = {
|
|
12
|
+
[K in keyof I]: InjectableProps[I[K]];
|
|
13
|
+
};
|
|
14
|
+
type ResolvedProps<P extends Record<string, LegacyDescriptor | UnifiedControlDefinition>> = {
|
|
15
|
+
[K in keyof P]: DescriptorValueType<P[K]>;
|
|
16
|
+
};
|
|
17
|
+
type RegisteredComponentType<P extends Record<string, LegacyDescriptor | UnifiedControlDefinition>, I extends InjectedPropsConfig, T = any> = {
|
|
18
|
+
new (props: PropsWithoutRef<ResolvedProps<P>> & InjectedProps<I> & RefAttributes<T>, context?: any): Component<ResolvedProps<P> & InjectedProps<I>>;
|
|
19
|
+
} | ((props: PropsWithoutRef<ResolvedProps<P>> & InjectedProps<I> & RefAttributes<T>, context?: any) => ReactNode);
|
|
6
20
|
export declare class ReactRuntimeCore extends RuntimeCore {
|
|
7
|
-
registerComponent<ControlDef extends UnifiedControlDefinition, P extends Record<string, LegacyDescriptor | ControlDef>, C extends
|
|
8
|
-
[K in keyof P]: DescriptorValueType<P[K]>;
|
|
9
|
-
}>>(component: C, { type, label, icon, hidden, description, builtinSuspense, unstable_migration, server, props, }: {
|
|
21
|
+
registerComponent<ControlDef extends UnifiedControlDefinition, P extends Record<string, LegacyDescriptor | ControlDef>, const I extends InjectedPropsConfig = {}, C extends RegisteredComponentType<P, I> = RegisteredComponentType<P, I>>(component: C, { type, label, icon, hidden, description, builtinSuspense, unstable_migration, server, props, }: {
|
|
10
22
|
type: string;
|
|
11
23
|
label: string;
|
|
12
24
|
icon?: ComponentIcon;
|
|
@@ -26,9 +38,10 @@ export declare class ReactRuntimeCore extends RuntimeCore {
|
|
|
26
38
|
unstable_migration?: {
|
|
27
39
|
replacementType: string;
|
|
28
40
|
};
|
|
29
|
-
server?:
|
|
41
|
+
server?: ServerComponentConfig<I>;
|
|
30
42
|
props?: P;
|
|
31
43
|
}): () => void;
|
|
32
44
|
protected isRSCEnv(): boolean;
|
|
33
45
|
}
|
|
46
|
+
export {};
|
|
34
47
|
//# sourceMappingURL=react-runtime-core.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-runtime-core.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/react/react-runtime-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAEnF,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AASpG,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"react-runtime-core.d.ts","sourceRoot":"","sources":["../../../../src/runtimes/react/react-runtime-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAEhG,OAAO,EAAE,iBAAiB,IAAI,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAEnF,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AASpG,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AAGnE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAgB5C,KAAK,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,eAAe,CAAC,CAAA;AAEhE,KAAK,qBAAqB,CAAC,CAAC,SAAS,mBAAmB,IACpD,OAAO,GACP;IACE,sBAAsB,EAAE,CAAC,CAAA;CAC1B,CAAA;AAEL,KAAK,aAAa,CAAC,CAAC,SAAS,mBAAmB,IAAI;KACjD,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,CAAA;A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M,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE,aAAa,CAAA;QACpB,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB;;;;WAIG;QACH,eAAe,CAAC,EAAE,OAAO,CAAA;QACzB;;;;WAIG;QACH,kBAAkB,CAAC,EAAE;YAAE,eAAe,EAAE,MAAM,CAAA;SAAE,CAAA;QAChD,MAAM,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAA;QACjC,KAAK,CAAC,EAAE,CAAC,CAAA;KACV,GACA,MAAM,IAAI;IA0Db,SAAS,CAAC,QAAQ;CAGnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtimes/react/server/components/__tests__/element.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type ElementData } from '../../../../state/read-only-state';
|
|
3
3
|
import { type ServerRenderContext } from '../render-context';
|
|
4
|
-
export declare function ServerElementData({ documentKey, context, elementData, }: {
|
|
4
|
+
export declare function ServerElementData({ documentKey, context, elementData, injectedProps, }: {
|
|
5
5
|
documentKey: string;
|
|
6
6
|
context: ServerRenderContext;
|
|
7
7
|
elementData: ElementData;
|
|
8
|
+
injectedProps: Record<string, unknown>;
|
|
8
9
|
}): Promise<ReactNode>;
|
|
9
10
|
//# sourceMappingURL=element-data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-data.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/server/components/element-data.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,EAEL,KAAK,WAAW,EAIjB,MAAM,mCAAmC,CAAA;AAU1C,OAAO,EAAE,KAAK,mBAAmB,EAAY,MAAM,mBAAmB,CAAA;AAGtE,wBAAsB,iBAAiB,CAAC,EACtC,WAAW,EACX,OAAO,EACP,WAAW,
|
|
1
|
+
{"version":3,"file":"element-data.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/server/components/element-data.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,EAEL,KAAK,WAAW,EAIjB,MAAM,mCAAmC,CAAA;AAU1C,OAAO,EAAE,KAAK,mBAAmB,EAAY,MAAM,mBAAmB,CAAA;AAGtE,wBAAsB,iBAAiB,CAAC,EACtC,WAAW,EACX,OAAO,EACP,WAAW,EACX,aAAa,GACd,EAAE;IACD,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,mBAAmB,CAAA;IAC5B,WAAW,EAAE,WAAW,CAAA;IACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC,GAAG,OAAO,CAAC,SAAS,CAAC,CA0CrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/server/components/element.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/server/components/element.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAGL,KAAK,OAAO,IAAI,gBAAgB,EACjC,MAAM,mCAAmC,CAAA;AAM1C,OAAO,EAAE,KAAK,mBAAmB,EAAY,MAAM,mBAAmB,CAAA;AAKtE,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,OAAO,EACP,WAAW,GACZ,EAAE;IACD,OAAO,EAAE,mBAAmB,CAAA;IAC5B,OAAO,EAAE,gBAAgB,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;CACpB,GAAG,SAAS,CAyCZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/server/components/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,+CAA+C,CAAA;
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/server/components/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,+CAA+C,CAAA;AAE7E,OAAO,EAAE,KAAK,mBAAmB,EAAY,MAAM,mBAAmB,CAAA;AAMtE;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,QAAQ,EACR,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,CAAC;IAAE,OAAO,EAAE,mBAAmB,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC,2CAI/F;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,CAAC;IAAE,OAAO,EAAE,mBAAmB,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC,2CAK3E"}
|
|
@@ -17,6 +17,10 @@ export declare const ServerElementsCache: ({ children, value, }: {
|
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
value: ElementsMap;
|
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const ServerElementsProvider: ({ children, elements, }: {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
elements: ElementsMap;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
24
|
export declare const useServerElementsCache: () => ContextValue;
|
|
21
25
|
export {};
|
|
22
26
|
//# sourceMappingURL=server-elements-cache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-elements-cache.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/server/components/server-elements-cache.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,SAAS,EAA8C,MAAM,OAAO,CAAA;AAE5F,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"server-elements-cache.d.ts","sourceRoot":"","sources":["../../../../../../src/runtimes/react/server/components/server-elements-cache.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,SAAS,EAA8C,MAAM,OAAO,CAAA;AAE5F,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAG7D,KAAK,YAAY,GAAG;IAClB,UAAU,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,SAAS,CAAA;IAC7C,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAA;IAC5D,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C,CAAA;AAQD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,sBAGjC;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,WAAW,CAAA;CACnB,4CAoCA,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,yBAGpC;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,QAAQ,EAAE,WAAW,CAAA;CACtB,4CAIA,CAAA;AAED,eAAO,MAAM,sBAAsB,oBAA4B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EACL,KAAK,mBAAmB,EACxB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EACL,KAAK,mBAAmB,EACxB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injectable-props.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/server/injectable-props.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { type BreakpointsInput } from '../../../state/modules/breakpoints';
|
|
2
1
|
import { ReactRuntime } from '../react-runtime';
|
|
3
2
|
type RuntimeEnv = 'client' | 'ssr' | 'rsc';
|
|
3
|
+
type RuntimeArgs = ConstructorParameters<typeof ReactRuntime>[0];
|
|
4
4
|
declare class TestReactRuntime extends ReactRuntime {
|
|
5
5
|
readonly env: RuntimeEnv;
|
|
6
|
-
constructor({ env, ...args }:
|
|
6
|
+
constructor({ env, ...args }: RuntimeArgs & {
|
|
7
7
|
env?: RuntimeEnv;
|
|
8
8
|
});
|
|
9
9
|
protected isRSCEnv(): boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare function createReactRuntime({ breakpoints, env, }?: {
|
|
12
|
-
breakpoints?:
|
|
11
|
+
export declare function createReactRuntime({ breakpoints, requestKey, env, }?: {
|
|
12
|
+
breakpoints?: RuntimeArgs['breakpoints'];
|
|
13
|
+
requestKey?: RuntimeArgs['requestKey'];
|
|
13
14
|
env?: RuntimeEnv;
|
|
14
15
|
}): TestReactRuntime;
|
|
15
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-runtime.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/testing/react-runtime.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-runtime.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/testing/react-runtime.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,KAAK,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,CAAA;AAC1C,KAAK,WAAW,GAAG,qBAAqB,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;AAEhE,cAAM,gBAAiB,SAAQ,YAAY;IACzC,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAA;gBAEZ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,GAAG;QAAE,GAAG,CAAC,EAAE,UAAU,CAAA;KAAE;IAKhE,SAAS,CAAC,QAAQ;CAGnB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,WAAW,EACX,UAAU,EACV,GAAG,GACJ,GAAE;IACD,WAAW,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;IACxC,UAAU,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IACtC,GAAG,CAAC,EAAE,UAAU,CAAA;CACZ,oBAUL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-to-string.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/testing/render-to-string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAkBtC,wBAAsB,cAAc,CAAC,OAAO,EAAE,SAAS,mBAEtD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InjectableProps } from '../../runtimes/react/server/injectable-props';
|
|
1
2
|
import { type Action, type UnknownAction } from '../actions';
|
|
2
3
|
export declare const ComponentIcon: {
|
|
3
4
|
readonly Accordion: "accordion";
|
|
@@ -43,6 +44,7 @@ export type ComponentMeta = {
|
|
|
43
44
|
replacementType: string;
|
|
44
45
|
};
|
|
45
46
|
server?: boolean;
|
|
47
|
+
injectedProps?: Record<string, keyof InjectableProps>;
|
|
46
48
|
};
|
|
47
49
|
export type State = Map<string, ComponentMeta>;
|
|
48
50
|
export declare function getInitialState({ componentsMeta, }?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-meta.d.ts","sourceRoot":"","sources":["../../../../src/state/modules/components-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAiB,MAAM,YAAY,CAAA;AAG3E,eAAO,MAAM,a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GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;AAE9C,wBAAgB,eAAe,CAAC,EAC9B,cAA0B,GAC3B,GAAE;IAAE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;CAAO,GAAG,KAAK,CAE9D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAE1E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAEjF;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,YAAoB,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,KAAK,CAkB/F"}
|
|
@@ -12,6 +12,7 @@ export { Page } from '../runtimes/react/components/page';
|
|
|
12
12
|
export { RuntimeProvider } from '../runtimes/react/components/RuntimeProvider';
|
|
13
13
|
export { Slot } from '../runtimes/react/components/Slot';
|
|
14
14
|
export { RenderElementPayload } from '../runtimes/react/server/render-element-payload';
|
|
15
|
+
export { ServerElementsProvider } from '../runtimes/react/server/components/server-elements-cache';
|
|
15
16
|
export { GoogleFontLink } from '../runtimes/react/components/GoogleFontLink';
|
|
16
17
|
export { MakeswiftFonts } from '../runtimes/react/components/MakeswiftFonts';
|
|
17
18
|
export { createRootStyleCache, RootStyleRegistry, DefaultRootStyleRegistry, styleTagHtml, StyleTagSSR, type RootStyleProps, } from '../runtimes/react/root-style-registry';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unstable-framework-support/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,+BAA+B,GACrC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,6BAA6B,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAEpF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,OAAO,EAAE,KAAK,gBAAgB,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEnF,OAAO,EACL,KAAK,gBAAgB,EACrB,wBAAwB,GACzB,MAAM,gDAAgD,CAAA;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAA;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAA;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAA;AAElG,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACX,KAAK,cAAc,GACpB,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,iCAAiC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makeswift/runtime",
|
|
3
|
-
"version": "0.28.10-canary.
|
|
3
|
+
"version": "0.28.10-canary.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "makeswift/makeswift",
|
|
@@ -244,8 +244,8 @@
|
|
|
244
244
|
"use-sync-external-store": "^1.5.0",
|
|
245
245
|
"uuid": "^9.0.0",
|
|
246
246
|
"zod": "^3.21.4",
|
|
247
|
-
"@makeswift/controls": "0.1.22-canary.0",
|
|
248
247
|
"@makeswift/next-plugin": "0.6.1",
|
|
248
|
+
"@makeswift/controls": "0.1.22-canary.0",
|
|
249
249
|
"@makeswift/prop-controllers": "0.4.16-canary.0"
|
|
250
250
|
},
|
|
251
251
|
"devDependencies": {
|