@fragmentsx/render-react 1.6.2 → 1.7.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/dist/hooks/layer/useReadVariables.d.ts.map +1 -1
- package/dist/hooks/layer/useReadVariables.test.d.ts +2 -0
- package/dist/hooks/layer/useReadVariables.test.d.ts.map +1 -0
- package/dist/hooks/layer/useResolvedLayerVariables.d.ts +1 -0
- package/dist/hooks/layer/useResolvedLayerVariables.d.ts.map +1 -1
- package/dist/hooks/layer-styles/useLayerStyles/index.d.ts +5 -1
- package/dist/hooks/layer-styles/useLayerStyles/index.d.ts.map +1 -1
- package/dist/hooks/layer-styles/useLayerStyles/useImagePaint.d.ts +1 -1
- package/dist/hooks/layer-styles/useLayerStyles/useImagePaint.d.ts.map +1 -1
- package/dist/hooks/layer-styles/useStyleRegistrar.d.ts +8 -0
- package/dist/hooks/layer-styles/useStyleRegistrar.d.ts.map +1 -0
- package/dist/hooks/utils/useClassnames.d.ts.map +1 -1
- package/dist/index.cjs.js +218 -121
- package/dist/index.es.js +219 -122
- package/dist/nodes/Area/Area.d.ts.map +1 -1
- package/dist/nodes/Area/hooks/useArea.types.d.ts +1 -0
- package/dist/nodes/Area/hooks/useArea.types.d.ts.map +1 -1
- package/dist/nodes/Collection/Collection.d.ts.map +1 -1
- package/dist/nodes/Collection/hooks/useCollection.d.ts +0 -1
- package/dist/nodes/Collection/hooks/useCollection.d.ts.map +1 -1
- package/dist/nodes/CollectionItem/CollectionItem.d.ts.map +1 -1
- package/dist/nodes/CollectionItem/hooks/useCollection.d.ts +0 -1
- package/dist/nodes/CollectionItem/hooks/useCollection.d.ts.map +1 -1
- package/dist/nodes/Frame/Frame.d.ts.map +1 -1
- package/dist/nodes/Frame/hooks/useFrame.d.ts +0 -1
- package/dist/nodes/Frame/hooks/useFrame.d.ts.map +1 -1
- package/dist/nodes/Instance/Instance.d.ts.map +1 -1
- package/dist/nodes/Instance/hooks/useInstance.d.ts +1 -1
- package/dist/nodes/Instance/hooks/useInstanceProps.d.ts.map +1 -1
- package/dist/nodes/Instance/test/collection-isolation.browser.test.d.ts +2 -0
- package/dist/nodes/Instance/test/collection-isolation.browser.test.d.ts.map +1 -0
- package/dist/nodes/Instance/test/mutate-event.test.d.ts +2 -0
- package/dist/nodes/Instance/test/mutate-event.test.d.ts.map +1 -0
- package/dist/nodes/Text/Text.d.ts +1 -0
- package/dist/nodes/Text/Text.d.ts.map +1 -1
- package/dist/nodes/Text/hooks/useTextAttributes.d.ts +0 -1
- package/dist/nodes/Text/hooks/useTextAttributes.d.ts.map +1 -1
- package/dist/providers/CampaignManager.d.ts +3 -0
- package/dist/providers/CampaignManager.d.ts.map +1 -0
- package/dist/providers/InstanceContext.d.ts +1 -0
- package/dist/providers/InstanceContext.d.ts.map +1 -1
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReadVariables.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useReadVariables.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"useReadVariables.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useReadVariables.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAyBrE,eAAO,MAAM,gBAAgB,iBACb,OAAO,EAAE,kBACP,UAAU,GAAG,IAAI;;;GA+IlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReadVariables.test.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useReadVariables.test.ts"],"names":[],"mappings":""}
|
|
@@ -2,6 +2,7 @@ export interface ResolvedVariables {
|
|
|
2
2
|
values: Record<string, any>;
|
|
3
3
|
cssVariableValues: Record<string, any>;
|
|
4
4
|
rawValues: Record<string, any>;
|
|
5
|
+
isVariable: Record<string, boolean>;
|
|
5
6
|
}
|
|
6
7
|
export declare const useResolvedLayerVariables: (layer: any, rawLayer: any, _customScopes?: unknown[]) => ResolvedVariables;
|
|
7
8
|
//# sourceMappingURL=useResolvedLayerVariables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResolvedLayerVariables.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useResolvedLayerVariables.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useResolvedLayerVariables.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useResolvedLayerVariables.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AA+BD,eAAO,MAAM,yBAAyB,UAC7B,GAAG,YACA,GAAG,kBACG,OAAO,EAAE,KACxB,iBA6DF,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { LinkKey } from '@graph-state/core';
|
|
2
|
-
|
|
2
|
+
interface UseLayerStylesOptions {
|
|
3
|
+
collectStyle?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const useLayerStyles: (layerKey: LinkKey, options?: UseLayerStylesOptions) => void;
|
|
6
|
+
export {};
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAyB5C,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,cAAc,aACf,OAAO,YACP,qBAAqB,SAuMhC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LinkKey } from '@graph-state/core';
|
|
2
2
|
import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
|
|
3
3
|
export declare const calcImagePaint: (imageVars: ResolvedVariables) => {
|
|
4
|
-
background:
|
|
4
|
+
background: unknown;
|
|
5
5
|
backgroundRepeat: string;
|
|
6
6
|
backgroundSize: any;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useImagePaint.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useImagePaint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"useImagePaint.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useImagePaint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAM5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,eAAO,MAAM,cAAc,cAAe,iBAAiB;;;;CAM1D,CAAC;AAEF,eAAO,MAAM,aAAa,iBAAkB,OAAO;;;;CAUlD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LinkKey } from '@graph-state/core';
|
|
2
|
+
export declare const useStyleRegistrar: (layerKey: LinkKey) => {
|
|
3
|
+
add(prop: string, value: any, isDynamic: boolean): void;
|
|
4
|
+
addAll(styles: Record<string, any>, isDynamic: boolean): void;
|
|
5
|
+
flush(): void;
|
|
6
|
+
getStyles(): Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useStyleRegistrar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStyleRegistrar.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer-styles/useStyleRegistrar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI5C,eAAO,MAAM,iBAAiB,aAAc,OAAO;cAWrC,MAAM,SAAS,GAAG,aAAa,OAAO;mBAIjC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,aAAa,OAAO;;iBAkBzC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAInC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClassnames.d.ts","sourceRoot":"","sources":["../../../src/hooks/utils/useClassnames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"useClassnames.d.ts","sourceRoot":"","sources":["../../../src/hooks/utils/useClassnames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAQxD,eAAO,MAAM,aAAa,aAAc,OAAO,WAAW,UAAU,kBAyBnE,CAAC"}
|