@fragmentsx/render-react 1.3.0 → 1.4.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 (113) hide show
  1. package/dist/hooks/fragment/useFragment.d.ts.map +1 -1
  2. package/dist/hooks/fragment/useFragmentManager.d.ts +1 -1
  3. package/dist/hooks/fragment/useFragmentManager.d.ts.map +1 -1
  4. package/dist/hooks/layer/index.d.ts +2 -0
  5. package/dist/hooks/layer/index.d.ts.map +1 -1
  6. package/dist/hooks/layer/useReadVariable.d.ts +1 -0
  7. package/dist/hooks/layer/useReadVariable.d.ts.map +1 -1
  8. package/dist/hooks/layer/useResolvedLayer.d.ts +14 -0
  9. package/dist/hooks/layer/useResolvedLayer.d.ts.map +1 -0
  10. package/dist/hooks/layer/useResolvedLayerVariables.d.ts +7 -0
  11. package/dist/hooks/layer/useResolvedLayerVariables.d.ts.map +1 -0
  12. package/dist/hooks/layer-styles/useLayerPaint.d.ts +8 -0
  13. package/dist/hooks/layer-styles/useLayerPaint.d.ts.map +1 -1
  14. package/dist/hooks/layer-styles/useLayerStyles/index.d.ts +1 -1
  15. package/dist/hooks/layer-styles/useLayerStyles/index.d.ts.map +1 -1
  16. package/dist/hooks/layer-styles/useLayerStyles/useImagePaint.d.ts +6 -0
  17. package/dist/hooks/layer-styles/useLayerStyles/useImagePaint.d.ts.map +1 -1
  18. package/dist/hooks/layer-styles/useLayerStyles/useLayerBackground.d.ts +4 -2
  19. package/dist/hooks/layer-styles/useLayerStyles/useLayerBackground.d.ts.map +1 -1
  20. package/dist/hooks/layer-styles/useLayerStyles/useLayerBorder.d.ts +16 -0
  21. package/dist/hooks/layer-styles/useLayerStyles/useLayerBorder.d.ts.map +1 -1
  22. package/dist/hooks/layer-styles/useLayerStyles/useLayerDisplay.d.ts +2 -0
  23. package/dist/hooks/layer-styles/useLayerStyles/useLayerDisplay.d.ts.map +1 -1
  24. package/dist/hooks/layer-styles/useLayerStyles/useLayerFlex.d.ts +4 -0
  25. package/dist/hooks/layer-styles/useLayerStyles/useLayerFlex.d.ts.map +1 -1
  26. package/dist/hooks/layer-styles/useLayerStyles/useLayerLayout.d.ts +10 -0
  27. package/dist/hooks/layer-styles/useLayerStyles/useLayerLayout.d.ts.map +1 -1
  28. package/dist/hooks/layer-styles/useLayerStyles/useLayerPosition.d.ts +36 -0
  29. package/dist/hooks/layer-styles/useLayerStyles/useLayerPosition.d.ts.map +1 -1
  30. package/dist/hooks/layer-styles/useLayerStyles/useLayerSize.d.ts +7 -0
  31. package/dist/hooks/layer-styles/useLayerStyles/useLayerSize.d.ts.map +1 -1
  32. package/dist/hooks/layer-styles/useLayerStyles/useLayerSizeValue.d.ts +9 -0
  33. package/dist/hooks/layer-styles/useLayerStyles/useLayerSizeValue.d.ts.map +1 -1
  34. package/dist/hooks/layer-styles/useLayerStyles/useLayerTextStyles.d.ts +4 -0
  35. package/dist/hooks/layer-styles/useLayerStyles/useLayerTextStyles.d.ts.map +1 -1
  36. package/dist/hooks/layer-styles/useLayerStyles/useOptionalSize.d.ts +2 -0
  37. package/dist/hooks/layer-styles/useLayerStyles/useOptionalSize.d.ts.map +1 -1
  38. package/dist/hooks/utils/useExtractProps.d.ts +16 -0
  39. package/dist/hooks/utils/useExtractProps.d.ts.map +1 -0
  40. package/dist/hooks/utils/useLayerInteractions.d.ts.map +1 -1
  41. package/dist/index.cjs.js +1363 -708
  42. package/dist/index.es.js +1366 -711
  43. package/dist/nodes/Area/Area.d.ts.map +1 -1
  44. package/dist/nodes/Collection/hooks/useCollection.d.ts +1 -1
  45. package/dist/nodes/Collection/hooks/useCollection.d.ts.map +1 -1
  46. package/dist/nodes/CollectionItem/CollectionItem.d.ts.map +1 -1
  47. package/dist/nodes/CollectionItem/hooks/useCollection.d.ts +1 -1
  48. package/dist/nodes/CssChunk/hooks/useCssChunk.d.ts.map +1 -1
  49. package/dist/nodes/Fragment/Fragment.d.ts.map +1 -1
  50. package/dist/nodes/Frame/hooks/useFrame.d.ts +1 -1
  51. package/dist/nodes/Instance/Instance.d.ts.map +1 -1
  52. package/dist/nodes/Instance/hooks/useInstance.d.ts +1 -1
  53. package/dist/nodes/Instance/hooks/useInstanceProps.d.ts.map +1 -1
  54. package/dist/nodes/Instance/test/array-linking.browser.test.d.ts +2 -0
  55. package/dist/nodes/Instance/test/array-linking.browser.test.d.ts.map +1 -0
  56. package/dist/nodes/Instance/test/cardDocuments.d.ts +39 -0
  57. package/dist/nodes/Instance/test/cardDocuments.d.ts.map +1 -0
  58. package/dist/nodes/Instance/test/collection-props.browser.test.d.ts +2 -0
  59. package/dist/nodes/Instance/test/collection-props.browser.test.d.ts.map +1 -0
  60. package/dist/nodes/Instance/test/collection-schema.browser.test.d.ts +2 -0
  61. package/dist/nodes/Instance/test/collection-schema.browser.test.d.ts.map +1 -0
  62. package/dist/nodes/Instance/test/props-basic.browser.test.d.ts +2 -0
  63. package/dist/nodes/Instance/test/props-basic.browser.test.d.ts.map +1 -0
  64. package/dist/nodes/Instance/test/props-drilling.browser.test.d.ts +2 -0
  65. package/dist/nodes/Instance/test/props-drilling.browser.test.d.ts.map +1 -0
  66. package/dist/nodes/Instance/test/props-dynamic.browser.test.d.ts +2 -0
  67. package/dist/nodes/Instance/test/props-dynamic.browser.test.d.ts.map +1 -0
  68. package/dist/nodes/Text/hooks/useTextAttributes.d.ts +1 -1
  69. package/dist/providers/AreaManager.d.ts +3 -0
  70. package/dist/providers/AreaManager.d.ts.map +1 -0
  71. package/dist/providers/Scope/index.d.ts.map +1 -1
  72. package/dist/providers/index.d.ts +1 -0
  73. package/dist/providers/index.d.ts.map +1 -1
  74. package/dist/utils/common/index.d.ts +0 -1
  75. package/dist/utils/common/index.d.ts.map +1 -1
  76. package/dist/utils/css/buildCssBlock.d.ts +6 -0
  77. package/dist/utils/css/buildCssBlock.d.ts.map +1 -0
  78. package/dist/utils/css/buildCssBlock.test.d.ts +2 -0
  79. package/dist/utils/css/buildCssBlock.test.d.ts.map +1 -0
  80. package/dist/utils/css/compareRules.d.ts +3 -0
  81. package/dist/utils/css/compareRules.d.ts.map +1 -0
  82. package/dist/utils/css/compareRules.test.d.ts +2 -0
  83. package/dist/utils/css/compareRules.test.d.ts.map +1 -0
  84. package/dist/utils/css/extractStyleSheet.d.ts +6 -0
  85. package/dist/utils/css/extractStyleSheet.d.ts.map +1 -0
  86. package/dist/utils/css/findGroups.d.ts +11 -0
  87. package/dist/utils/css/findGroups.d.ts.map +1 -0
  88. package/dist/utils/css/getAllChildren.d.ts +4 -0
  89. package/dist/utils/css/getAllChildren.d.ts.map +1 -0
  90. package/dist/utils/css/getAllChildren.test.d.ts +2 -0
  91. package/dist/utils/css/getAllChildren.test.d.ts.map +1 -0
  92. package/dist/utils/css/index.d.ts +12 -0
  93. package/dist/utils/css/index.d.ts.map +1 -0
  94. package/dist/utils/css/makeCss.d.ts +5 -0
  95. package/dist/utils/css/makeCss.d.ts.map +1 -0
  96. package/dist/utils/css/toCSS.d.ts +3 -0
  97. package/dist/utils/css/toCSS.d.ts.map +1 -0
  98. package/dist/utils/css/toCSS.test.d.ts +2 -0
  99. package/dist/utils/css/toCSS.test.d.ts.map +1 -0
  100. package/dist/utils/css/types.d.ts +5 -0
  101. package/dist/utils/css/types.d.ts.map +1 -0
  102. package/dist/utils/layer/cloneLayer.d.ts.map +1 -1
  103. package/dist/utils/variables/index.d.ts +0 -1
  104. package/dist/utils/variables/index.d.ts.map +1 -1
  105. package/package.json +5 -5
  106. package/dist/hooks/utils/useExpandedObjectProps.d.ts +0 -12
  107. package/dist/hooks/utils/useExpandedObjectProps.d.ts.map +0 -1
  108. package/dist/utils/common/loadFragmentManager.d.ts +0 -3
  109. package/dist/utils/common/loadFragmentManager.d.ts.map +0 -1
  110. package/dist/utils/variables/expandObjectProps.d.ts +0 -9
  111. package/dist/utils/variables/expandObjectProps.d.ts.map +0 -1
  112. package/dist/utils/variables/expandObjectProps.test.d.ts +0 -2
  113. package/dist/utils/variables/expandObjectProps.test.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useFragment.d.ts","sourceRoot":"","sources":["../../../src/hooks/fragment/useFragment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAU/C,eAAO,MAAM,WAAW,eAAgB,MAAM,kBAAkB,UAAU;;;;;;;;;;;;;;;CA4DzE,CAAC"}
1
+ {"version":3,"file":"useFragment.d.ts","sourceRoot":"","sources":["../../../src/hooks/fragment/useFragment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAU/C,eAAO,MAAM,WAAW,eAAgB,MAAM,kBAAkB,UAAU;;;;;;;;;;;;;;;CAsDzE,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const useFragmentManager: (fragmentId?: unknown | null, inputGlobalManager: any) => {
1
+ export declare const useFragmentManager: (fragmentId?: unknown | null, inputGlobalManager?: any) => {
2
2
  loading: boolean;
3
3
  manager: any;
4
4
  fragmentLayerKey: any;
@@ -1 +1 @@
1
- {"version":3,"file":"useFragmentManager.d.ts","sourceRoot":"","sources":["../../../src/hooks/fragment/useFragmentManager.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,gBAChB,OAAO,GAAG,IAAI;;;;;CA+C5B,CAAC"}
1
+ {"version":3,"file":"useFragmentManager.d.ts","sourceRoot":"","sources":["../../../src/hooks/fragment/useFragmentManager.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,gBAChB,OAAO,GAAG,IAAI;;;;;CAyB5B,CAAC"}
@@ -7,4 +7,6 @@ export { useLayerScopes } from './useLayerScopes';
7
7
  export { useLayerLink } from './useLayerLink';
8
8
  export { useLayerVariableValue } from './useLayerVariableValue';
9
9
  export { useNormalizeLayer, getNormalizeLayer } from './useNormalizeLayer';
10
+ export { useResolvedLayer } from './useResolvedLayer';
11
+ export { useResolvedLayerVariables } from './useResolvedLayerVariables';
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -6,6 +6,7 @@ export declare const useReadVariable: (variableKey?: LinkKey | null, customScope
6
6
  [k: string]: any;
7
7
  } | null;
8
8
  };
9
+ _dep: unknown;
9
10
  value: any;
10
11
  layer: {
11
12
  [k: string]: any;
@@ -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;iCAyFY,OAAO;;;;;;;;;;CAkJ5C,CAAC"}
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"}
@@ -0,0 +1,14 @@
1
+ import { GraphState, LinkKey } from '@graph-state/core';
2
+ export interface ResolvedLayer {
3
+ layerKey: LinkKey | null;
4
+ rawLayer: any;
5
+ layer: any;
6
+ isOverride: boolean;
7
+ }
8
+ export interface UseResolvedLayerOptions {
9
+ manager?: GraphState;
10
+ withFallback?: boolean;
11
+ skipOverrideCheck?: boolean;
12
+ }
13
+ export declare const useResolvedLayer: (layerKey: LinkKey, options?: UseResolvedLayerOptions) => ResolvedLayer;
14
+ //# sourceMappingURL=useResolvedLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResolvedLayer.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useResolvedLayer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAMrE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,OAAO,CAAC;CACrB;AASD,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,gBAAgB,aACjB,OAAO,YACP,uBAAuB,KAChC,aAqBF,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface ResolvedVariables {
2
+ values: Record<string, any>;
3
+ cssVariableValues: Record<string, any>;
4
+ rawValues: Record<string, any>;
5
+ }
6
+ export declare const useResolvedLayerVariables: (layer: any, rawLayer: any, customScopes?: unknown[]) => ResolvedVariables;
7
+ //# sourceMappingURL=useResolvedLayerVariables.d.ts.map
@@ -0,0 +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,4 +1,12 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../layer/useResolvedLayerVariables';
3
+ export declare const calcLayerPaint: (paintVars: ResolvedVariables) => {
4
+ type: any;
5
+ solid: any;
6
+ solidCssValue: any;
7
+ image: any;
8
+ linearGradientLink: any;
9
+ };
2
10
  export declare const useLayerPaint: (paintLinkKey: LinkKey) => {
3
11
  type: any;
4
12
  solid: any;
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerPaint.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer-styles/useLayerPaint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,eAAO,MAAM,aAAa,iBAAkB,OAAO;;;;;;CAalD,CAAC"}
1
+ {"version":3,"file":"useLayerPaint.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer-styles/useLayerPaint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,eAAO,MAAM,cAAc,cAAe,iBAAiB;;;;;;CAQ1D,CAAC;AAEF,eAAO,MAAM,aAAa,iBAAkB,OAAO;;;;;;CAalD,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
- export declare const useLayerStyles: (layerKey: LinkKey) => {};
2
+ export declare const useLayerStyles: (layerKey: LinkKey) => any;
3
3
  //# 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;AAa5C,eAAO,MAAM,cAAc,aAAc,OAAO,OAoF/C,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;AAwB5C,eAAO,MAAM,cAAc,aAAc,OAAO,QA2I/C,CAAC"}
@@ -1,4 +1,10 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ export declare const calcImagePaint: (imageVars: ResolvedVariables) => {
4
+ background: any;
5
+ backgroundRepeat: string;
6
+ backgroundSize: any;
7
+ };
2
8
  export declare const useImagePaint: (imageLinkKey: LinkKey) => {
3
9
  background: any;
4
10
  backgroundRepeat: string;
@@ -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;AAK5C,eAAO,MAAM,aAAa,iBAAkB,OAAO;;;;CAUlD,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;AAK5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,eAAO,MAAM,cAAc,cAAe,iBAAiB;;;;CAM1D,CAAC;AAEF,eAAO,MAAM,aAAa,iBAAkB,OAAO;;;;CAUlD,CAAC"}
@@ -1,10 +1,12 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ export declare const calcLayerBackground: (paintVars: ResolvedVariables, imageVars: ResolvedVariables, imageSizeVars: ResolvedVariables, linearGradient: any) => any;
2
4
  export declare const useLayerBackground: (layerKey: LinkKey) => {
5
+ "background-image": string;
6
+ } | {
3
7
  background: any;
4
8
  backgroundRepeat: string;
5
9
  backgroundSize: any;
6
- } | {
7
- "background-image": string;
8
10
  } | {
9
11
  background: any;
10
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerBackground.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerBackground.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAS5C,eAAO,MAAM,kBAAkB,aAAc,OAAO;;;;;;;;CAsEnD,CAAC"}
1
+ {"version":3,"file":"useLayerBackground.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerBackground.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAS5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAG5E,eAAO,MAAM,mBAAmB,cACnB,iBAAiB,aACjB,iBAAiB,iBACb,iBAAiB,kBAChB,GAAG,QAuBpB,CAAC;AAEF,eAAO,MAAM,kBAAkB,aAAc,OAAO;;;;;;;;CAsEnD,CAAC"}
@@ -1,4 +1,20 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ export declare const calcLayerBorder: (borderVars: ResolvedVariables, borderPaintVars: ResolvedVariables, borderLinearGradient: any, paintVars: ResolvedVariables, linearGradient: any) => {
4
+ borderTop: string;
5
+ borderRight: string;
6
+ borderBottom: string;
7
+ borderLeft: string;
8
+ } | {
9
+ border: null;
10
+ } | {
11
+ background: string;
12
+ borderTop: string;
13
+ borderRight: string;
14
+ borderBottom: string;
15
+ borderLeft: string;
16
+ border?: undefined;
17
+ };
2
18
  export declare const useLayerBorder: (layerKey: LinkKey) => {
3
19
  borderTop: string;
4
20
  borderRight: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerBorder.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerBorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,eAAO,MAAM,cAAc,aAAc,OAAO;;;;;;;;;;;;;;CAgD/C,CAAC"}
1
+ {"version":3,"file":"useLayerBorder.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerBorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAG5E,eAAO,MAAM,eAAe,eACd,iBAAiB,mBACZ,iBAAiB,wBACZ,GAAG,aACd,iBAAiB,kBACZ,GAAG;;;;;;;;;;;;;;CAqCpB,CAAC;AAEF,eAAO,MAAM,cAAc,aAAc,OAAO;;;;;;;;;;;;;;CAgD/C,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ export declare const calcLayerDisplay: (vars: ResolvedVariables) => "none" | "flex" | null;
2
4
  export declare const useLayerDisplay: (layerKey: LinkKey) => "none" | "flex" | null;
3
5
  //# sourceMappingURL=useLayerDisplay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerDisplay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerDisplay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAK5C,eAAO,MAAM,eAAe,aAAc,OAAO,2BAYhD,CAAC"}
1
+ {"version":3,"file":"useLayerDisplay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerDisplay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAK5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,eAAO,MAAM,gBAAgB,SAAU,iBAAiB,2BAMvD,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,OAAO,2BAYhD,CAAC"}
@@ -1,4 +1,8 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ export declare const calcLayerFlex: (vars: ResolvedVariables, parentVars: ResolvedVariables) => {
4
+ flex: string;
5
+ };
2
6
  export declare const useLayerFlex: (layerKey: LinkKey) => {
3
7
  flex: string;
4
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerFlex.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerFlex.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAMzD,eAAO,MAAM,YAAY,aAAc,OAAO;;CAmB7C,CAAC"}
1
+ {"version":3,"file":"useLayerFlex.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerFlex.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAMzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,eAAO,MAAM,aAAa,SAClB,iBAAiB,cACX,iBAAiB;;CAc9B,CAAC;AAEF,eAAO,MAAM,YAAY,aAAc,OAAO;;CAmB7C,CAAC"}
@@ -1,4 +1,14 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ export declare const calcLayerLayout: (vars: ResolvedVariables) => {
4
+ display: string | null;
5
+ gap: string;
6
+ flexWrap: string | null;
7
+ justifyContent: any;
8
+ flexFlow: string;
9
+ alignItems: any;
10
+ padding: any;
11
+ };
2
12
  export declare const useLayerLayout: (layerKey: LinkKey) => {
3
13
  display: string | null;
4
14
  gap: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerLayout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,eAAO,MAAM,cAAc,aAAc,OAAO;;;;;;;;CAwC/C,CAAC"}
1
+ {"version":3,"file":"useLayerLayout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,eAAO,MAAM,eAAe,SAAU,iBAAiB;;;;;;;;CA0BtD,CAAC;AAEF,eAAO,MAAM,cAAc,aAAc,OAAO;;;;;;;;CAwC/C,CAAC"}
@@ -1,4 +1,39 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ import { ResolvedLayer } from '../../layer/useResolvedLayer';
4
+ interface CalcPositionContext {
5
+ isDocument: boolean;
6
+ isTopLevel: boolean;
7
+ instanceLayerKey: any;
8
+ }
9
+ export declare const calcLayerPosition: (resolved: ResolvedLayer, vars: ResolvedVariables, parentResolved: ResolvedLayer, instanceResolved: ResolvedLayer, instanceVars: ResolvedVariables, context: CalcPositionContext) => {
10
+ position: "absolute";
11
+ top: string;
12
+ left: string;
13
+ width: any;
14
+ height: any;
15
+ right?: undefined;
16
+ bottom?: undefined;
17
+ transform?: undefined;
18
+ } | {
19
+ position: "relative";
20
+ width: string;
21
+ height: string;
22
+ top?: undefined;
23
+ left?: undefined;
24
+ right?: undefined;
25
+ bottom?: undefined;
26
+ transform?: undefined;
27
+ } | {
28
+ position: any;
29
+ left: string | null;
30
+ top: string | null;
31
+ right: string | null;
32
+ bottom: string | null;
33
+ width: string | null;
34
+ height: string | null;
35
+ transform: string | null;
36
+ };
2
37
  export declare const useLayerPosition: (layerKey: LinkKey) => {
3
38
  position: "absolute";
4
39
  top: string;
@@ -36,4 +71,5 @@ export declare const useLayerPositionOld: (layerKey: LinkKey) => {
36
71
  top: string | null;
37
72
  left: string | null;
38
73
  };
74
+ export {};
39
75
  //# sourceMappingURL=useLayerPosition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerPosition.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerPosition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAW5C,eAAO,MAAM,gBAAgB,aAAc,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,OAAO;;;;;;;;CAoEpD,CAAC"}
1
+ {"version":3,"file":"useLayerPosition.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerPosition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAW5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,UAAU,mBAAmB;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,GAAG,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,aAClB,aAAa,QACjB,iBAAiB,kBACP,aAAa,oBACX,aAAa,gBACjB,iBAAiB,WACtB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+E7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,aAAc,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,OAAO;;;;;;;;CAoEpD,CAAC"}
@@ -1,4 +1,11 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ export declare const calcLayerSize: (vars: ResolvedVariables) => {
4
+ minWidth: string;
5
+ minHeight: string;
6
+ maxWidth: string;
7
+ maxHeight: string;
8
+ };
2
9
  export declare const useLayerSize: (layerKey: LinkKey) => {
3
10
  minWidth: string;
4
11
  minHeight: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerSize.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerSize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,eAAO,MAAM,YAAY,aAAc,OAAO;;;;;CAoB7C,CAAC"}
1
+ {"version":3,"file":"useLayerSize.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerSize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAG5E,eAAO,MAAM,aAAa,SAAU,iBAAiB;;;;;CAOpD,CAAC;AAEF,eAAO,MAAM,YAAY,aAAc,OAAO;;;;;CAoB7C,CAAC"}
@@ -1,3 +1,12 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ import { ResolvedLayer } from '../../layer/useResolvedLayer';
4
+ interface CalcSizeContext {
5
+ isDocument: boolean;
6
+ isTopLevel: boolean;
7
+ instanceLayerKey: any;
8
+ }
9
+ export declare const calcLayerSizeValue: (resolved: ResolvedLayer, vars: ResolvedVariables, sizeType: "width" | "height", parentResolved: ResolvedLayer, instanceVars: ResolvedVariables, context: CalcSizeContext) => (value: any) => string;
2
10
  export declare const useLayerSizeValue: (layerKey: LinkKey, sizeType: "width" | "height") => (value: any) => string;
11
+ export {};
3
12
  //# sourceMappingURL=useLayerSizeValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerSizeValue.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerSizeValue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAS5C,eAAO,MAAM,iBAAiB,aAClB,OAAO,YACP,OAAO,GAAG,QAAQ,2BAkE7B,CAAC"}
1
+ {"version":3,"file":"useLayerSizeValue.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerSizeValue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,UAAU,eAAe;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,GAAG,CAAC;CACvB;AAID,eAAO,MAAM,kBAAkB,aACnB,aAAa,QACjB,iBAAiB,YACb,OAAO,GAAG,QAAQ,kBACZ,aAAa,gBACf,iBAAiB,WACtB,eAAe,aAUT,GAAG,WAuBnB,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAClB,OAAO,YACP,OAAO,GAAG,QAAQ,2BAkE7B,CAAC"}
@@ -1,4 +1,8 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
3
+ export declare const calcLayerTextStyles: (vars: ResolvedVariables) => {
4
+ color: any;
5
+ };
2
6
  export declare const useLayerTextStyles: (layerKey: LinkKey) => {
3
7
  color: any;
4
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerTextStyles.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerTextStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAM5C,eAAO,MAAM,kBAAkB,aAAc,OAAO;;CAUnD,CAAC"}
1
+ {"version":3,"file":"useLayerTextStyles.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useLayerTextStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAM5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,SAAU,iBAAiB;;CAS1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,aAAc,OAAO;;CAUnD,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { LinkKey } from '@graph-state/core';
2
+ import { ResolvedVariables } from '../../layer/useResolvedLayerVariables';
2
3
  type SizeType = "minWidth" | "minHeight" | "maxWidth" | "maxHeight";
3
4
  export declare const processOptionalSize: (value: number, type: any) => string;
5
+ export declare const calcOptionalSize: (type: SizeType, vars: ResolvedVariables) => string;
4
6
  export declare const useOptionalSize: (type: SizeType, layerKey: LinkKey) => string;
5
7
  export {};
6
8
  //# sourceMappingURL=useOptionalSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOptionalSize.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useOptionalSize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAM5C,KAAK,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;AAEpE,eAAO,MAAM,mBAAmB,UAAW,MAAM,QAAQ,GAAG,WAO3D,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,QAAQ,YAAY,OAAO,WAUhE,CAAC"}
1
+ {"version":3,"file":"useOptionalSize.d.ts","sourceRoot":"","sources":["../../../../src/hooks/layer-styles/useLayerStyles/useOptionalSize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAM5C,KAAK,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;AAEpE,eAAO,MAAM,mBAAmB,UAAW,MAAM,QAAQ,GAAG,WAO3D,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,eAAO,MAAM,gBAAgB,SAAU,QAAQ,QAAQ,iBAAiB,WAIvE,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,QAAQ,YAAY,OAAO,WAUhE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { GraphState, LinkKey } from '@graph-state/core';
2
+ /**
3
+ * Единый хук для извлечения props на основе definitions.
4
+ *
5
+ * Алгоритм:
6
+ * 1. Собрать leaf-ключи из definitions → подписаться через useGraphStack
7
+ * 2. Base: defaultValues leaf-полей
8
+ * 3. Пройти по definitions: для каждого найти значение в props
9
+ * - Object + конкретный объект → flattenObjectFields
10
+ * - Array + Variable-ссылка → readVariable (resolve) + buildFieldIdMapping + remapArrayItems
11
+ * - Примитив → result[defId] = propValue
12
+ * 4. Passthrough остальных props (для CollectionItem — props уже на уровне leaf-полей)
13
+ * 5. Merge: base + expanded (expanded имеет приоритет)
14
+ */
15
+ export declare const useExtractProps: (props: Record<string, unknown>, manager?: GraphState, parentManager?: GraphState, definitions?: LinkKey[]) => Record<string, unknown>;
16
+ //# sourceMappingURL=useExtractProps.d.ts.map
@@ -0,0 +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 +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;;;;CAuFtC,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;;;;CA0FtC,CAAC"}