@fragmentsx/render-react 1.5.2 → 1.6.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.
Files changed (27) hide show
  1. package/dist/hooks/fragment/useFragmentManager.d.ts.map +1 -1
  2. package/dist/hooks/layer/useLayerValue.d.ts.map +1 -1
  3. package/dist/hooks/layer/useLayerVariableValue.d.ts.map +1 -1
  4. package/dist/hooks/layer/useLayersValue.d.ts.map +1 -1
  5. package/dist/hooks/layer/useReadVariable.d.ts +8 -11
  6. package/dist/hooks/layer/useReadVariable.d.ts.map +1 -1
  7. package/dist/hooks/layer/useReadVariables.d.ts +3 -3
  8. package/dist/hooks/layer/useReadVariables.d.ts.map +1 -1
  9. package/dist/hooks/layer/useResolvedLayerVariables.d.ts +1 -1
  10. package/dist/hooks/layer/useResolvedLayerVariables.d.ts.map +1 -1
  11. package/dist/hooks/layer-styles/useLayerStyles/calcImagePaint.test.d.ts +2 -0
  12. package/dist/hooks/layer-styles/useLayerStyles/calcImagePaint.test.d.ts.map +1 -0
  13. package/dist/hooks/utils/useExtractProps.d.ts.map +1 -1
  14. package/dist/hooks/utils/useLayerInteractions.d.ts.map +1 -1
  15. package/dist/index.cjs.js +402 -438
  16. package/dist/index.es.js +403 -439
  17. package/dist/nodes/Area/hooks/useAsyncLoadArea.d.ts.map +1 -1
  18. package/dist/nodes/Instance/Instance.d.ts.map +1 -1
  19. package/dist/nodes/Instance/hooks/useInstanceProps.d.ts.map +1 -1
  20. package/dist/nodes/Instance/test/project-props.browser.test.d.ts +2 -0
  21. package/dist/nodes/Instance/test/project-props.browser.test.d.ts.map +1 -0
  22. package/dist/nodes/Text/hooks/useTextContent.d.ts.map +1 -1
  23. package/dist/providers/InstanceContext.d.ts +1 -0
  24. package/dist/providers/InstanceContext.d.ts.map +1 -1
  25. package/dist/utils/common/transformCssValue.test.d.ts +2 -0
  26. package/dist/utils/common/transformCssValue.test.d.ts.map +1 -0
  27. package/package.json +4 -2
@@ -1 +1 @@
1
- {"version":3,"file":"useFragmentManager.d.ts","sourceRoot":"","sources":["../../../src/hooks/fragment/useFragmentManager.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,gBAChB,OAAO,GAAG,IAAI;;;;;CAiC5B,CAAC"}
1
+ {"version":3,"file":"useFragmentManager.d.ts","sourceRoot":"","sources":["../../../src/hooks/fragment/useFragmentManager.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,gBAChB,OAAO,GAAG,IAAI;;;;;CAwC5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerValue.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useLayerValue.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,UAAU,EAGV,OAAO,EAER,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAI/D,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,aACd,OAAO,YACP,MAAM,YACN,oBAAoB,UA+E/B,CAAC"}
1
+ {"version":3,"file":"useLayerValue.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useLayerValue.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,UAAU,EAGV,OAAO,EAER,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAI/D,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,aACd,OAAO,YACP,MAAM,YACN,oBAAoB,UAkF/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerVariableValue.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useLayerVariableValue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIxD,eAAO,MAAM,qBAAqB,aACtB,OAAO,YACP,MAAM,YACN,UAAU,UA4BrB,CAAC"}
1
+ {"version":3,"file":"useLayerVariableValue.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useLayerVariableValue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAKxD,eAAO,MAAM,qBAAqB,aACtB,OAAO,YACP,MAAM,YACN,UAAU,UA8BrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLayersValue.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useLayersValue.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,UAAU,EAGV,OAAO,EAER,MAAM,mBAAmB,CAAC;AAW3B,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAI/D,UAAU,OAAQ,SAAQ,eAAe;IACvC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,cACd,OAAO,EAAE,YACV,MAAM,YACN,OAAO,YAqFlB,CAAC"}
1
+ {"version":3,"file":"useLayersValue.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useLayersValue.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,UAAU,EAGV,OAAO,EAER,MAAM,mBAAmB,CAAC;AAW3B,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAI/D,UAAU,OAAQ,SAAQ,eAAe;IACvC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,cACd,OAAO,EAAE,YACV,MAAM,YACN,OAAO,YAqGlB,CAAC"}
@@ -1,15 +1,12 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
- export declare const useReadVariable: (variableKey?: LinkKey | null, customScopes?: unknown[]) => {
3
- readVariable: (variableKey?: LinkKey) => {
4
- value: any;
5
- layer: {
6
- [k: string]: any;
7
- } | null;
8
- };
9
- _dep: unknown;
2
+ /**
3
+ * Обёртка над useReadVariables для единичной переменной.
4
+ * Для множественного резолва используй useReadVariables напрямую.
5
+ */
6
+ export declare const useReadVariable: (variableKey?: LinkKey | null, _customScopes?: unknown[]) => {
7
+ readVariable: () => never;
8
+ _dep: number;
10
9
  value: any;
11
- layer: {
12
- [k: string]: any;
13
- } | null;
10
+ layer: any;
14
11
  };
15
12
  //# sourceMappingURL=useReadVariable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useReadVariable.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useReadVariable.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAkDrE,eAAO,MAAM,eAAe,iBACZ,OAAO,GAAG,IAAI,iBACb,OAAO,EAAE;iCA2FY,OAAO;;;;;;;;;;;CAuJ5C,CAAC"}
1
+ {"version":3,"file":"useReadVariable.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useReadVariable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI5C;;;GAGG;AACH,eAAO,MAAM,eAAe,iBACZ,OAAO,GAAG,IAAI,kBACZ,OAAO,EAAE;;;;;CAgB1B,CAAC"}
@@ -1,6 +1,6 @@
1
- import { LinkKey } from '@graph-state/core';
2
- export declare const useReadVariables: (variableKeys: LinkKey[]) => {
1
+ import { GraphState, LinkKey } from '@graph-state/core';
2
+ export declare const useReadVariables: (variableKeys: LinkKey[], customManager?: GraphState | null) => {
3
3
  value: any;
4
- layer: unknown;
4
+ layer: any;
5
5
  }[];
6
6
  //# sourceMappingURL=useReadVariables.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useReadVariables.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useReadVariables.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAM5C,eAAO,MAAM,gBAAgB,iBAAkB,OAAO,EAAE;;;GA4BvD,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;AAuBrE,eAAO,MAAM,gBAAgB,iBACb,OAAO,EAAE,kBACP,UAAU,GAAG,IAAI;;;GA2GlC,CAAC"}
@@ -3,5 +3,5 @@ export interface ResolvedVariables {
3
3
  cssVariableValues: Record<string, any>;
4
4
  rawValues: Record<string, any>;
5
5
  }
6
- export declare const useResolvedLayerVariables: (layer: any, rawLayer: any, customScopes?: unknown[]) => ResolvedVariables;
6
+ export declare const useResolvedLayerVariables: (layer: any, rawLayer: any, _customScopes?: unknown[]) => ResolvedVariables;
7
7
  //# sourceMappingURL=useResolvedLayerVariables.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useResolvedLayerVariables.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useResolvedLayerVariables.ts"],"names":[],"mappings":"AASA,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;CAChC;AAwCD,eAAO,MAAM,yBAAyB,UAC7B,GAAG,YACA,GAAG,iBACE,OAAO,EAAE,KACvB,iBAuMF,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;CAChC;AA8BD,eAAO,MAAM,yBAAyB,UAC7B,GAAG,YACA,GAAG,kBACG,OAAO,EAAE,KACxB,iBAiDF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=calcImagePaint.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calcImagePaint.test.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/calcImagePaint.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"useExtractProps.d.ts","sourceRoot":"","sources":["../../../src/hooks/utils/useExtractProps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAoMrE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,UACnB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACpB,UAAU,kBACJ,UAAU,gBACZ,OAAO,EAAE,KACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CA0MxB,CAAC"}
1
+ {"version":3,"file":"useExtractProps.d.ts","sourceRoot":"","sources":["../../../src/hooks/utils/useExtractProps.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAoMrE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,UACnB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACpB,UAAU,kBACJ,UAAU,gBACZ,OAAO,EAAE,KACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CA8NxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerInteractions.d.ts","sourceRoot":"","sources":["../../../src/hooks/utils/useLayerInteractions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AASzD,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,oBAAoB,aACrB,OAAO,YACP,2BAA2B;;;;CA0FtC,CAAC"}
1
+ {"version":3,"file":"useLayerInteractions.d.ts","sourceRoot":"","sources":["../../../src/hooks/utils/useLayerInteractions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AASzD,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,oBAAoB,aACrB,OAAO,YACP,2BAA2B;;;;CAwFtC,CAAC"}