@fragmentsx/render-react 1.2.5 → 1.3.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 (61) hide show
  1. package/dist/hooks/layer/index.d.ts +0 -1
  2. package/dist/hooks/layer/index.d.ts.map +1 -1
  3. package/dist/hooks/layer/useLayerValue.d.ts.map +1 -1
  4. package/dist/hooks/layer/useLayersValue.d.ts.map +1 -1
  5. package/dist/hooks/layer-styles/useLayerStyles/useLayerBackground.d.ts.map +1 -1
  6. package/dist/hooks/layer-styles/useLayerStyles/useLayerBorder.d.ts.map +1 -1
  7. package/dist/hooks/suspense/index.d.ts +3 -0
  8. package/dist/hooks/suspense/index.d.ts.map +1 -0
  9. package/dist/hooks/suspense/useSuspenseLoadArea.d.ts +6 -0
  10. package/dist/hooks/suspense/useSuspenseLoadArea.d.ts.map +1 -0
  11. package/dist/hooks/suspense/useSuspenseLoadFragment.d.ts +3 -0
  12. package/dist/hooks/suspense/useSuspenseLoadFragment.d.ts.map +1 -0
  13. package/dist/hooks/utils/useExpandedObjectProps.d.ts +12 -0
  14. package/dist/hooks/utils/useExpandedObjectProps.d.ts.map +1 -0
  15. package/dist/hooks/utils/useLayerInteractions.d.ts.map +1 -1
  16. package/dist/index.cjs.js +287 -139
  17. package/dist/index.es.js +288 -140
  18. package/dist/nodes/Area/Area.d.ts +8 -0
  19. package/dist/nodes/Area/Area.d.ts.map +1 -1
  20. package/dist/nodes/Area/hooks/useArea.d.ts +7 -2
  21. package/dist/nodes/Area/hooks/useArea.d.ts.map +1 -1
  22. package/dist/nodes/Area/index.d.ts +1 -0
  23. package/dist/nodes/Area/index.d.ts.map +1 -1
  24. package/dist/nodes/Collection/Collection.d.ts.map +1 -1
  25. package/dist/nodes/CollectionItem/CollectionItem.d.ts.map +1 -1
  26. package/dist/nodes/CollectionItem/hooks/useCollection.d.ts.map +1 -1
  27. package/dist/nodes/Instance/Instance.d.ts.map +1 -1
  28. package/dist/nodes/Instance/hooks/useInstance.d.ts +0 -1
  29. package/dist/nodes/Instance/hooks/useInstance.d.ts.map +1 -1
  30. package/dist/nodes/Instance/hooks/useInstanceProps.d.ts +0 -1
  31. package/dist/nodes/Instance/hooks/useInstanceProps.d.ts.map +1 -1
  32. package/dist/nodes/Instance/test/dual-instance.browser.test.d.ts +2 -0
  33. package/dist/nodes/Instance/test/dual-instance.browser.test.d.ts.map +1 -0
  34. package/dist/utils/index.d.ts +1 -0
  35. package/dist/utils/index.d.ts.map +1 -1
  36. package/dist/utils/layer/duplicateLayer.d.ts.map +1 -1
  37. package/dist/utils/suspense/createSuspenseResource.d.ts +5 -0
  38. package/dist/utils/suspense/createSuspenseResource.d.ts.map +1 -0
  39. package/dist/utils/suspense/createSuspenseResource.test.d.ts +2 -0
  40. package/dist/utils/suspense/createSuspenseResource.test.d.ts.map +1 -0
  41. package/dist/utils/suspense/index.d.ts +4 -0
  42. package/dist/utils/suspense/index.d.ts.map +1 -0
  43. package/dist/utils/suspense/suspenseCache.d.ts +4 -0
  44. package/dist/utils/suspense/suspenseCache.d.ts.map +1 -0
  45. package/dist/utils/suspense/suspenseCache.test.d.ts +2 -0
  46. package/dist/utils/suspense/suspenseCache.test.d.ts.map +1 -0
  47. package/dist/utils/variables/expandObjectProps.d.ts +9 -0
  48. package/dist/utils/variables/expandObjectProps.d.ts.map +1 -0
  49. package/dist/utils/variables/expandObjectProps.test.d.ts +2 -0
  50. package/dist/utils/variables/expandObjectProps.test.d.ts.map +1 -0
  51. package/dist/utils/variables/index.d.ts +2 -1
  52. package/dist/utils/variables/index.d.ts.map +1 -1
  53. package/dist/utils/variables/toCssCustomProperties.d.ts +7 -0
  54. package/dist/utils/variables/toCssCustomProperties.d.ts.map +1 -0
  55. package/package.json +4 -3
  56. package/dist/hooks/layer/useExtractProps.d.ts +0 -9
  57. package/dist/hooks/layer/useExtractProps.d.ts.map +0 -1
  58. package/dist/hooks/layer/useLayerCssVariable.d.ts +0 -8
  59. package/dist/hooks/layer/useLayerCssVariable.d.ts.map +0 -1
  60. package/dist/utils/variables/getCssVariables.d.ts +0 -3
  61. package/dist/utils/variables/getCssVariables.d.ts.map +0 -1
@@ -1,2 +1,10 @@
1
+ export interface AreaProps {
2
+ areaCode: string;
3
+ globalManager?: unknown;
4
+ props?: Record<string, unknown>;
5
+ options?: {
6
+ ssr?: boolean;
7
+ };
8
+ }
1
9
  export declare const Area: (props: AreaProps) => import("react/jsx-runtime").JSX.Element;
2
10
  //# sourceMappingURL=Area.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Area.d.ts","sourceRoot":"","sources":["../../../src/nodes/Area/Area.tsx"],"names":[],"mappings":"AA6CA,eAAO,MAAM,IAAI,UAAW,SAAS,4CAYpC,CAAC"}
1
+ {"version":3,"file":"Area.d.ts","sourceRoot":"","sources":["../../../src/nodes/Area/Area.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE;QACR,GAAG,CAAC,EAAE,OAAO,CAAC;KACf,CAAC;CACH;AAqBD,eAAO,MAAM,IAAI,UAAW,SAAS,4CAYpC,CAAC"}
@@ -1,3 +1,8 @@
1
- import { AreaProps } from '../index';
2
- export declare const useArea: (options: AreaProps) => any;
1
+ import { AreaProps } from '../Area';
2
+ export declare const useArea: (options: AreaProps) => {
3
+ fragmentManager: any;
4
+ props: {};
5
+ globalManager: import('@graph-state/core').GraphState<import('@graph-state/core').SystemFields, string> | null;
6
+ fragmentId?: number | undefined;
7
+ };
3
8
  //# sourceMappingURL=useArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useArea.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Area/hooks/useArea.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,eAAO,MAAM,OAAO,YAAa,SAAS,QAgCzC,CAAC"}
1
+ {"version":3,"file":"useArea.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Area/hooks/useArea.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAMpC,eAAO,MAAM,OAAO,YAAa,SAAS;;;;;CA4BzC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { Area } from './Area';
2
+ export type { AreaProps } from './Area';
2
3
  export { useArea } from './hooks/useArea';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/Area/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/Area/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["../../../src/nodes/Collection/Collection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAC;AAOlD,UAAU,eAAgB,SAAQ,UAAU;CAAG;AAE/C,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiD1C,CAAC"}
1
+ {"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["../../../src/nodes/Collection/Collection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAC;AAKlD,UAAU,eAAgB,SAAQ,UAAU;CAAG;AAE/C,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiD1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionItem.d.ts","sourceRoot":"","sources":["../../../src/nodes/CollectionItem/CollectionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAC;AASlD,UAAU,eAAgB,SAAQ,UAAU;CAAG;AAE/C,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,eAAe,CAmD9C,CAAC"}
1
+ {"version":3,"file":"CollectionItem.d.ts","sourceRoot":"","sources":["../../../src/nodes/CollectionItem/CollectionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,EAAE,EAAW,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAC;AAMlD,UAAU,eAAgB,SAAQ,UAAU;CAAG;AAE/C,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,eAAe,CAyD9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCollection.d.ts","sourceRoot":"","sources":["../../../../src/nodes/CollectionItem/hooks/useCollection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAY,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAKzE,eAAO,MAAM,aAAa,aAAc,OAAO,YAAY,eAAe;;;;;;;;;;;;;;;;;;;;;;CA2BzE,CAAC"}
1
+ {"version":3,"file":"useCollection.d.ts","sourceRoot":"","sources":["../../../../src/nodes/CollectionItem/hooks/useCollection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAY,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAKzE,eAAO,MAAM,aAAa,aAAc,OAAO,YAAY,eAAe;;;;;;;;;;;;;;;;;;;;;;CAyBzE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Instance.d.ts","sourceRoot":"","sources":["../../../src/nodes/Instance/Instance.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,WAAW,EAKZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAS5C,UAAU,eAAe;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,aAAc,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACpE,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC,YAAY,CAAC;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9D;AAsFD,eAAO,MAAM,QAAQ,yDAoBpB,CAAC"}
1
+ {"version":3,"file":"Instance.d.ts","sourceRoot":"","sources":["../../../src/nodes/Instance/Instance.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,WAAW,EAIZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAY5C,UAAU,eAAe;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,aAAc,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACpE,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC,YAAY,CAAC;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9D;AA+FD,eAAO,MAAM,QAAQ,yDAoBpB,CAAC"}
@@ -10,7 +10,6 @@ export declare const useInstance: (instanceProps: UseInstanceOptions) => {
10
10
  };
11
11
  definitions: any;
12
12
  props: unknown;
13
- cssProps: {};
14
13
  parentManager: null;
15
14
  innerManager: any;
16
15
  fragmentId: any;
@@ -1 +1 @@
1
- {"version":3,"file":"useInstance.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/hooks/useInstance.ts"],"names":[],"mappings":"AAUA,UAAU,kBAAmB,SAAQ,2BAA2B;CAAG;AAEnE,eAAO,MAAM,WAAW,kBAAmB,kBAAkB;;;;;;;;;;;;;;;;CA0C5D,CAAC"}
1
+ {"version":3,"file":"useInstance.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/hooks/useInstance.ts"],"names":[],"mappings":"AAUA,UAAU,kBAAmB,SAAQ,2BAA2B;CAAG;AAEnE,eAAO,MAAM,WAAW,kBAAmB,kBAAkB;;;;;;;;;;;;;;;CAyC5D,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { InstanceProps } from '../Instance';
2
2
  export declare const useInstanceProps: (instanceProps: InstanceProps) => {
3
3
  props: unknown;
4
- cssProps: {};
5
4
  onChangeProps: (variableId: string, value: unknown) => void;
6
5
  };
7
6
  //# sourceMappingURL=useInstanceProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInstanceProps.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/hooks/useInstanceProps.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAiB1D,eAAO,MAAM,gBAAgB,kBAAmB,aAAa;;;gCA2F7B,MAAM,SAAS,OAAO;CAKrD,CAAC"}
1
+ {"version":3,"file":"useInstanceProps.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/hooks/useInstanceProps.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAc1D,eAAO,MAAM,gBAAgB,kBAAmB,aAAa;;gCAmC7B,MAAM,SAAS,OAAO;CAKrD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dual-instance.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dual-instance.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/nodes/Instance/test/dual-instance.browser.test.tsx"],"names":[],"mappings":""}
@@ -3,4 +3,5 @@ export * from './styles';
3
3
  export * from './variables';
4
4
  export * from './fragment';
5
5
  export * from './common';
6
+ export * from './suspense';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"duplicateLayer.d.ts","sourceRoot":"","sources":["../../../src/utils/layer/duplicateLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,mBAAmB,CAAC;AAO7E,eAAO,MAAM,cAAc,YAAa,UAAU,SAAS,MAAM,kBAuChE,CAAC"}
1
+ {"version":3,"file":"duplicateLayer.d.ts","sourceRoot":"","sources":["../../../src/utils/layer/duplicateLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,mBAAmB,CAAC;AAQ7E,eAAO,MAAM,cAAc,YAAa,UAAU,SAAS,MAAM,kBA2ChE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface SuspenseResource<T> {
2
+ read(): T;
3
+ }
4
+ export declare const createSuspenseResource: <T>(key: string, valueOrPromise: T | Promise<T>, cache: Map<string, SuspenseResource<unknown>>) => SuspenseResource<T>;
5
+ //# sourceMappingURL=createSuspenseResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSuspenseResource.d.ts","sourceRoot":"","sources":["../../../src/utils/suspense/createSuspenseResource.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,IAAI,IAAI,CAAC,CAAC;CACX;AAED,eAAO,MAAM,sBAAsB,GAAI,CAAC,OACjC,MAAM,kBACK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,SACvB,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,KAC5C,gBAAgB,CAAC,CAAC,CAsCpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createSuspenseResource.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSuspenseResource.test.d.ts","sourceRoot":"","sources":["../../../src/utils/suspense/createSuspenseResource.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export { createSuspenseResource } from './createSuspenseResource';
2
+ export type { SuspenseResource } from './createSuspenseResource';
3
+ export { getSuspenseCache } from './suspenseCache';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/suspense/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { GraphState } from '@graph-state/core';
2
+ import { SuspenseResource } from './createSuspenseResource';
3
+ export declare const getSuspenseCache: (manager: GraphState) => Map<string, SuspenseResource<unknown>>;
4
+ //# sourceMappingURL=suspenseCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suspenseCache.d.ts","sourceRoot":"","sources":["../../../src/utils/suspense/suspenseCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,eAAO,MAAM,gBAAgB,YAClB,UAAU,KAClB,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAOvC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=suspenseCache.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suspenseCache.test.d.ts","sourceRoot":"","sources":["../../../src/utils/suspense/suspenseCache.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { GraphState } from '@graph-state/core';
2
+ /**
3
+ * Разворачивает Object-уровневые props в field-уровневые.
4
+ * Рекурсивно обходит вложенные Object → Object.
5
+ *
6
+ * Примитивные props остаются без изменений.
7
+ */
8
+ export declare const expandObjectProps: (props: Record<string, unknown>, childManager?: GraphState, parentManager?: GraphState) => Record<string, unknown>;
9
+ //# sourceMappingURL=expandObjectProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expandObjectProps.d.ts","sourceRoot":"","sources":["../../../src/utils/variables/expandObjectProps.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,UAAU,EAEX,MAAM,mBAAmB,CAAC;AA0H3B;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,UACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,iBACf,UAAU,kBACT,UAAU,KACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CA6CxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=expandObjectProps.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expandObjectProps.test.d.ts","sourceRoot":"","sources":["../../../src/utils/variables/expandObjectProps.test.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
- export { getCssVariables } from './getCssVariables';
2
1
  export { getOverrider } from './getOverrider';
3
2
  export { getOverriderByLayers } from './getOverriderByLayers';
3
+ export { toCssCustomProperties } from './toCssCustomProperties';
4
+ export { expandObjectProps } from './expandObjectProps';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/variables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/variables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Конвертирует props-объект в CSS custom properties.
3
+ * Variable-ссылки превращаются в var(--nestedId),
4
+ * чтобы CSS-каскад разрешал значения через обёртки CollectionItem/Instance.
5
+ */
6
+ export declare const toCssCustomProperties: (props: Record<string, unknown>) => Record<string, string>;
7
+ //# sourceMappingURL=toCssCustomProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toCssCustomProperties.d.ts","sourceRoot":"","sources":["../../../src/utils/variables/toCssCustomProperties.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,UACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC7B,MAAM,CAAC,MAAM,EAAE,MAAM,CAiBvB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fragmentsx/render-react",
3
3
  "private": false,
4
- "version": "1.2.5",
4
+ "version": "1.3.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -48,14 +48,15 @@
48
48
  "@vitest/browser-playwright": "^4.0.0",
49
49
  "vitest": "^4.0.0",
50
50
  "vitest-browser-react": "^0.2.0",
51
- "@fragmentsx/client-core": "0.2.4"
51
+ "@fragmentsx/client-core": "0.3.0"
52
52
  },
53
53
  "scripts": {
54
54
  "clear": "rm -r -f ./dist",
55
55
  "build": "vite build",
56
56
  "dev": "vite build -w",
57
57
  "test": "vitest --run --config ./vitest.config.ts",
58
- "test:browser": "vitest --config ./vitest.config.browser.ts",
58
+ "test:browser": "vitest --run --config ./vitest.config.browser.ts",
59
+ "test:browser:ui": "BROWSER_UI=1 vitest --config ./vitest.config.browser.ts --update",
59
60
  "lint": "eslint . --ext .ts,.tsx --fix"
60
61
  }
61
62
  }
@@ -1,9 +0,0 @@
1
- import { GraphState, LinkKey } from '@graph-state/core';
2
- interface Options {
3
- inputProps: Record<string, unknown>;
4
- definitions: LinkKey[];
5
- manager?: GraphState;
6
- }
7
- export declare const useExtractProps: ({ layerKey, definitions, manager, inputProps, }: Options) => unknown;
8
- export {};
9
- //# sourceMappingURL=useExtractProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useExtractProps.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useExtractProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAaxD,UAAU,OAAO;IACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,WAAW,EAAE,OAAO,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,oDAKzB,OAAO,YAsCT,CAAC"}
@@ -1,8 +0,0 @@
1
- import { GraphState } from '@graph-state/core';
2
- export declare const getLayerCssVariable: (manager: GraphState, inputValue: any) => {
3
- value: string | null;
4
- };
5
- export declare const useLayerCssVariable: (inputValue: any) => {
6
- value: string | null;
7
- };
8
- //# sourceMappingURL=useLayerCssVariable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLayerCssVariable.d.ts","sourceRoot":"","sources":["../../../src/hooks/layer/useLayerCssVariable.ts"],"names":[],"mappings":"AAKA,OAAO,EAAe,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI5D,eAAO,MAAM,mBAAmB,YAAa,UAAU;;CAQtD,CAAC;AAEF,eAAO,MAAM,mBAAmB;;CAiB/B,CAAC"}
@@ -1,3 +0,0 @@
1
- import { LinkKey } from '@graph-state/core';
2
- export declare const getCssVariables: (props: Record<string, LinkKey>) => {};
3
- //# sourceMappingURL=getCssVariables.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCssVariables.d.ts","sourceRoot":"","sources":["../../../src/utils/variables/getCssVariables.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGzD,eAAO,MAAM,eAAe,UAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,OAiB7D,CAAC"}