@webstudio-is/react-sdk 0.191.4 → 0.192.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1723 -0
- package/lib/runtime.js +61 -0
- package/lib/types/component-generator.d.ts +37 -0
- package/lib/types/component-generator.test.d.ts +1 -0
- package/lib/types/components/component-meta.d.ts +3792 -0
- package/lib/types/components/components-utils.d.ts +8 -0
- package/lib/types/context.d.ts +37 -0
- package/lib/types/core-components.d.ts +748 -0
- package/lib/types/css/css.d.ts +21 -0
- package/lib/types/css/css.test.d.ts +1 -0
- package/lib/types/css/global-rules.d.ts +6 -0
- package/lib/types/css/index.d.ts +2 -0
- package/lib/types/embed-template.d.ts +2587 -0
- package/lib/types/embed-template.test.d.ts +1 -0
- package/lib/types/hook.d.ts +34 -0
- package/lib/types/hook.test.d.ts +1 -0
- package/lib/types/index.d.ts +12 -0
- package/lib/types/instance-utils.d.ts +4 -0
- package/lib/types/instance-utils.test.d.ts +1 -0
- package/lib/types/prop-meta.d.ts +434 -0
- package/lib/types/props.d.ts +104 -0
- package/lib/types/props.test.d.ts +1 -0
- package/lib/types/remix.d.ts +20 -0
- package/lib/types/remix.test.d.ts +1 -0
- package/lib/types/runtime.d.ts +4 -0
- package/lib/types/variable-state.d.ts +2 -0
- package/package.json +6 -6
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type TransformValue } from "@webstudio-is/css-engine";
|
|
2
|
+
import { type Assets, type Breakpoints, type Instances, type Props, type StyleSourceSelections, type Styles } from "@webstudio-is/sdk";
|
|
3
|
+
import type { WsComponentMeta } from "../components/component-meta";
|
|
4
|
+
export type CssConfig = {
|
|
5
|
+
assets: Assets;
|
|
6
|
+
instances: Instances;
|
|
7
|
+
props: Props;
|
|
8
|
+
breakpoints: Breakpoints;
|
|
9
|
+
styles: Styles;
|
|
10
|
+
styleSourceSelections: StyleSourceSelections;
|
|
11
|
+
componentMetas: Map<string, WsComponentMeta>;
|
|
12
|
+
assetBaseUrl: string;
|
|
13
|
+
atomic: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const createImageValueTransformer: (assets: Assets, { assetBaseUrl }: {
|
|
16
|
+
assetBaseUrl: string;
|
|
17
|
+
}) => TransformValue;
|
|
18
|
+
export declare const generateCss: ({ assets, instances, props, breakpoints, styles, styleSourceSelections, componentMetas, assetBaseUrl, atomic, }: CssConfig) => {
|
|
19
|
+
cssText: string;
|
|
20
|
+
classes: Map<string, string[]>;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|