@dxos/plugin-sheet 0.6.12-main.78ddbdf → 0.6.12-main.89e9959

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 (160) hide show
  1. package/dist/lib/browser/{SheetContainer-V4GCCZTX.mjs → SheetContainer-LG77O4RM.mjs} +14 -13
  2. package/dist/lib/browser/SheetContainer-LG77O4RM.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-U2JHW3L6.mjs → chunk-CHQAW4F4.mjs} +206 -53
  4. package/dist/lib/browser/chunk-CHQAW4F4.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-6ZMQVB4Z.mjs → chunk-GSV5QNLD.mjs} +220 -177
  6. package/dist/lib/browser/chunk-GSV5QNLD.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-T3NJFTD4.mjs → chunk-WZMOZKQZ.mjs} +2 -2
  8. package/dist/lib/browser/{chunk-T3NJFTD4.mjs.map → chunk-WZMOZKQZ.mjs.map} +3 -3
  9. package/dist/lib/browser/graph-M4IQ76QX.mjs +33 -0
  10. package/dist/lib/browser/index.mjs +45 -21
  11. package/dist/lib/browser/index.mjs.map +4 -4
  12. package/dist/lib/browser/meta.json +1 -1
  13. package/dist/lib/browser/types.mjs +1 -1
  14. package/dist/lib/node/{SheetContainer-3ZY7MPWJ.cjs → SheetContainer-OZ7DHH4L.cjs} +21 -20
  15. package/dist/lib/node/SheetContainer-OZ7DHH4L.cjs.map +7 -0
  16. package/dist/lib/node/{chunk-OTTD7FBK.cjs → chunk-5FTFZL5W.cjs} +224 -70
  17. package/dist/lib/node/chunk-5FTFZL5W.cjs.map +7 -0
  18. package/dist/lib/node/{chunk-DD6FIXWC.cjs → chunk-5XPK2V4A.cjs} +222 -175
  19. package/dist/lib/node/chunk-5XPK2V4A.cjs.map +7 -0
  20. package/dist/lib/node/{chunk-Q3HBHPRL.cjs → chunk-AOP42UAA.cjs} +5 -5
  21. package/dist/lib/node/{chunk-Q3HBHPRL.cjs.map → chunk-AOP42UAA.cjs.map} +3 -3
  22. package/dist/lib/node/graph-Q3N2X26H.cjs +55 -0
  23. package/dist/lib/node/graph-Q3N2X26H.cjs.map +7 -0
  24. package/dist/lib/node/index.cjs +51 -30
  25. package/dist/lib/node/index.cjs.map +4 -4
  26. package/dist/lib/node/meta.json +1 -1
  27. package/dist/lib/node/types.cjs +8 -8
  28. package/dist/lib/node/types.cjs.map +1 -1
  29. package/dist/lib/node-esm/{SheetContainer-PXSJX6XK.mjs → SheetContainer-4XS2G25Z.mjs} +14 -13
  30. package/dist/lib/node-esm/SheetContainer-4XS2G25Z.mjs.map +7 -0
  31. package/dist/lib/node-esm/{chunk-D6KU5MI7.mjs → chunk-5WPZCXNS.mjs} +220 -177
  32. package/dist/lib/node-esm/chunk-5WPZCXNS.mjs.map +7 -0
  33. package/dist/lib/node-esm/{chunk-7HVSOTGA.mjs → chunk-KK3XL37M.mjs} +206 -53
  34. package/dist/lib/node-esm/chunk-KK3XL37M.mjs.map +7 -0
  35. package/dist/lib/node-esm/{chunk-BMNA27EX.mjs → chunk-RR2AO4SM.mjs} +2 -2
  36. package/dist/lib/node-esm/{chunk-BMNA27EX.mjs.map → chunk-RR2AO4SM.mjs.map} +3 -3
  37. package/dist/lib/node-esm/graph-SMPUMOV2.mjs +34 -0
  38. package/dist/lib/node-esm/index.mjs +45 -21
  39. package/dist/lib/node-esm/index.mjs.map +4 -4
  40. package/dist/lib/node-esm/meta.json +1 -1
  41. package/dist/lib/node-esm/types.mjs +1 -1
  42. package/dist/types/src/SheetPlugin.d.ts.map +1 -1
  43. package/dist/types/src/components/CellEditor/CellEditor.stories.d.ts.map +1 -1
  44. package/dist/types/src/components/CellEditor/extension.d.ts.map +1 -1
  45. package/dist/types/src/components/GridSheet/GridSheet.d.ts +3 -3
  46. package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
  47. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +1 -1
  48. package/dist/types/src/components/GridSheet/util.d.ts +9 -0
  49. package/dist/types/src/components/GridSheet/util.d.ts.map +1 -1
  50. package/dist/types/src/components/Sheet/Sheet.d.ts.map +1 -1
  51. package/dist/types/src/components/Sheet/Sheet.stories.d.ts.map +1 -1
  52. package/dist/types/src/components/Sheet/sheet-context.d.ts +3 -3
  53. package/dist/types/src/components/Sheet/sheet-context.d.ts.map +1 -1
  54. package/dist/types/src/components/SheetContainer.d.ts +1 -1
  55. package/dist/types/src/components/SheetContainer.d.ts.map +1 -1
  56. package/dist/types/src/components/index.d.ts +1 -1
  57. package/dist/types/src/components/index.d.ts.map +1 -1
  58. package/dist/types/src/defs/types.d.ts.map +1 -1
  59. package/dist/types/src/defs/util.d.ts +1 -1
  60. package/dist/types/src/defs/util.d.ts.map +1 -1
  61. package/dist/types/src/extensions/compute.d.ts +3 -2
  62. package/dist/types/src/extensions/compute.d.ts.map +1 -1
  63. package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
  64. package/dist/types/src/graph/compute-graph-registry.d.ts +34 -0
  65. package/dist/types/src/graph/compute-graph-registry.d.ts.map +1 -0
  66. package/dist/types/src/graph/compute-graph.d.ts +17 -34
  67. package/dist/types/src/graph/compute-graph.d.ts.map +1 -1
  68. package/dist/types/src/graph/compute-graph.stories.d.ts.map +1 -1
  69. package/dist/types/src/graph/compute-graph.test.d.ts +2 -0
  70. package/dist/types/src/graph/compute-graph.test.d.ts.map +1 -0
  71. package/dist/types/src/graph/compute-node.d.ts +9 -2
  72. package/dist/types/src/graph/compute-node.d.ts.map +1 -1
  73. package/dist/types/src/graph/{async-function.d.ts → functions/async-function.d.ts} +13 -4
  74. package/dist/types/src/graph/functions/async-function.d.ts.map +1 -0
  75. package/dist/types/src/graph/functions/edge-function.d.ts +21 -0
  76. package/dist/types/src/graph/functions/edge-function.d.ts.map +1 -0
  77. package/dist/types/src/graph/functions/function-defs.d.ts.map +1 -0
  78. package/dist/types/src/graph/functions/index.d.ts +4 -0
  79. package/dist/types/src/graph/functions/index.d.ts.map +1 -0
  80. package/dist/types/src/graph/index.d.ts +2 -1
  81. package/dist/types/src/graph/index.d.ts.map +1 -1
  82. package/dist/types/src/graph/testing/index.d.ts +3 -0
  83. package/dist/types/src/graph/testing/index.d.ts.map +1 -0
  84. package/dist/types/src/graph/testing/test-builder.d.ts +15 -0
  85. package/dist/types/src/graph/testing/test-builder.d.ts.map +1 -0
  86. package/dist/types/src/graph/testing/test-plugin.d.ts +36 -0
  87. package/dist/types/src/graph/testing/test-plugin.d.ts.map +1 -0
  88. package/dist/types/src/hooks/useComputeGraph.d.ts.map +1 -1
  89. package/dist/types/src/hooks/useSheetModel.d.ts +2 -2
  90. package/dist/types/src/hooks/useSheetModel.d.ts.map +1 -1
  91. package/dist/types/src/model/sheet-model.d.ts +3 -3
  92. package/dist/types/src/model/sheet-model.d.ts.map +1 -1
  93. package/dist/types/src/model/sheet-model.test.d.ts +2 -0
  94. package/dist/types/src/model/sheet-model.test.d.ts.map +1 -0
  95. package/dist/types/src/testing/testing.d.ts +4 -5
  96. package/dist/types/src/testing/testing.d.ts.map +1 -1
  97. package/dist/types/src/types.d.ts +4 -3
  98. package/dist/types/src/types.d.ts.map +1 -1
  99. package/package.json +40 -39
  100. package/src/SheetPlugin.tsx +19 -15
  101. package/src/components/CellEditor/CellEditor.stories.tsx +2 -3
  102. package/src/components/CellEditor/extension.test.ts +0 -1
  103. package/src/components/CellEditor/extension.ts +4 -3
  104. package/src/components/GridSheet/GridSheet.stories.tsx +3 -3
  105. package/src/components/GridSheet/GridSheet.tsx +26 -8
  106. package/src/components/GridSheet/util.ts +61 -21
  107. package/src/components/Sheet/Sheet.stories.tsx +21 -20
  108. package/src/components/Sheet/Sheet.tsx +30 -14
  109. package/src/components/Sheet/sheet-context.tsx +4 -4
  110. package/src/components/SheetContainer.tsx +13 -15
  111. package/src/defs/types.ts +1 -0
  112. package/src/defs/util.ts +19 -3
  113. package/src/extensions/compute.stories.tsx +20 -20
  114. package/src/extensions/compute.ts +91 -42
  115. package/src/graph/compute-graph-registry.ts +90 -0
  116. package/src/graph/compute-graph.stories.tsx +4 -3
  117. package/src/graph/compute-graph.test.ts +87 -0
  118. package/src/graph/compute-graph.ts +73 -121
  119. package/src/graph/compute-node.ts +17 -5
  120. package/src/graph/{async-function.ts → functions/async-function.ts} +23 -15
  121. package/src/graph/{edge-function.ts → functions/edge-function.ts} +14 -13
  122. package/src/graph/functions/index.ts +7 -0
  123. package/src/graph/hyperformula.test.ts +1 -2
  124. package/src/graph/index.ts +2 -1
  125. package/src/graph/testing/index.ts +6 -0
  126. package/src/graph/testing/test-builder.ts +54 -0
  127. package/src/graph/{custom-function.ts → testing/test-plugin.ts} +43 -9
  128. package/src/hooks/hooks.stories.tsx +3 -3
  129. package/src/hooks/useComputeGraph.ts +9 -1
  130. package/src/hooks/useSheetModel.ts +4 -7
  131. package/src/model/sheet-model.test.ts +59 -0
  132. package/src/model/sheet-model.ts +47 -30
  133. package/src/testing/testing.tsx +17 -15
  134. package/src/types.ts +3 -3
  135. package/dist/lib/browser/SheetContainer-V4GCCZTX.mjs.map +0 -7
  136. package/dist/lib/browser/chunk-6ZMQVB4Z.mjs.map +0 -7
  137. package/dist/lib/browser/chunk-U2JHW3L6.mjs.map +0 -7
  138. package/dist/lib/browser/graph-T27BOBOV.mjs +0 -21
  139. package/dist/lib/node/SheetContainer-3ZY7MPWJ.cjs.map +0 -7
  140. package/dist/lib/node/chunk-DD6FIXWC.cjs.map +0 -7
  141. package/dist/lib/node/chunk-OTTD7FBK.cjs.map +0 -7
  142. package/dist/lib/node/graph-SPKGX7W4.cjs +0 -43
  143. package/dist/lib/node/graph-SPKGX7W4.cjs.map +0 -7
  144. package/dist/lib/node-esm/SheetContainer-PXSJX6XK.mjs.map +0 -7
  145. package/dist/lib/node-esm/chunk-7HVSOTGA.mjs.map +0 -7
  146. package/dist/lib/node-esm/chunk-D6KU5MI7.mjs.map +0 -7
  147. package/dist/lib/node-esm/graph-U67IO4UC.mjs +0 -22
  148. package/dist/types/src/graph/async-function.d.ts.map +0 -1
  149. package/dist/types/src/graph/compute-graph.browser.test.d.ts +0 -2
  150. package/dist/types/src/graph/compute-graph.browser.test.d.ts.map +0 -1
  151. package/dist/types/src/graph/custom-function.d.ts +0 -21
  152. package/dist/types/src/graph/custom-function.d.ts.map +0 -1
  153. package/dist/types/src/graph/edge-function.d.ts +0 -20
  154. package/dist/types/src/graph/edge-function.d.ts.map +0 -1
  155. package/dist/types/src/graph/function-defs.d.ts.map +0 -1
  156. package/src/graph/compute-graph.browser.test.ts +0 -104
  157. /package/dist/lib/browser/{graph-T27BOBOV.mjs.map → graph-M4IQ76QX.mjs.map} +0 -0
  158. /package/dist/lib/node-esm/{graph-U67IO4UC.mjs.map → graph-SMPUMOV2.mjs.map} +0 -0
  159. /package/dist/types/src/graph/{function-defs.d.ts → functions/function-defs.d.ts} +0 -0
  160. /package/src/graph/{function-defs.ts → functions/function-defs.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/Sheet.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EACZ,KAAK,aAAa,EAElB,KAAK,iBAAiB,EAOvB,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,OAAO,EAYb,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,KAAK,QAAQ,EAA6C,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,KAAK,iBAAiB,EAAyC,MAAM,iBAAiB,CAAC;AAGhG,OAAO,EACL,KAAK,SAAS,EACd,KAAK,WAAW,EAOjB,MAAM,YAAY,CAAC;AAuDpB,KAAK,cAAc,GAAG,iBAAiB,CAAC;AAUxC,KAAK,cAAc,GAAG,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AA+NzD,KAAK,WAAW,GAAG;IAC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O,MAAM,YAAY,yBAkBxB,CAAC;AAEF,eAAO,MAAM,UAAU,yBActB,CAAC"}
1
+ {"version":3,"file":"Sheet.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/Sheet.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;+EA2Os3H,CAAC;;;;;;;;;;;+EAAD,CAAC;;;;;;;;;;;;;AArJ75H,wBASE;AAEF,eAAO,MAAM,OAAO,gCAcnB,CAAC;AAEF,eAAO,MAAM,KAAK,gCAcjB,CAAC;AAEF,eAAO,MAAM,IAAI,gCAkBhB,CAAC;AAEF,eAAO,MAAM,OAAO,gCAkBnB,CAAC;AAEF,eAAO,MAAM,IAAI,gCAsBhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,yBAkBxB,CAAC;AAEF,eAAO,MAAM,UAAU,yBActB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
- import { type Space } from '@dxos/react-client/echo';
3
2
  import { createDecorations } from './decorations';
4
3
  import { type CellAddress, type CellRange } from '../../defs';
4
+ import { type ComputeGraph } from '../../graph';
5
5
  import { type FormattingModel, type SheetModel } from '../../model';
6
6
  import { type SheetType } from '../../types';
7
7
  export type SheetContextType = {
@@ -18,9 +18,9 @@ export type SheetContextType = {
18
18
  };
19
19
  export declare const useSheetContext: () => SheetContextType;
20
20
  export type SheetContextProps = {
21
+ graph: ComputeGraph;
21
22
  sheet: SheetType;
22
- space: Space;
23
23
  readonly?: boolean;
24
24
  } & Pick<SheetContextType, 'onInfo'>;
25
- export declare const SheetContextProvider: ({ children, sheet, space, readonly, onInfo, }: PropsWithChildren<SheetContextProps>) => React.JSX.Element | null;
25
+ export declare const SheetContextProvider: ({ children, graph, sheet, readonly, onInfo, }: PropsWithChildren<SheetContextProps>) => React.JSX.Element | null;
26
26
  //# sourceMappingURL=sheet-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sheet-context.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/sheet-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAgD,MAAM,OAAO,CAAC;AAGpG,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE9D,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,EAAE,eAAe,CAAC;IAI5B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAC;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;IAGjD,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAIvC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAGpB,WAAW,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;CACnD,CAAC;AAIF,eAAO,MAAM,eAAe,QAAO,gBAIlC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC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;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;AAErC,eAAO,MAAM,oBAAoB,kDAM9B,iBAAiB,CAAC,iBAAiB,CAAC,6BA6BtC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type SheetRootProps } from './Sheet';
3
3
  export declare const sectionToolbarLayout = "bs-[--rail-action] bg-[--sticky-bg] sticky block-start-0 __-block-start-px transition-opacity";
4
- declare const SheetContainer: ({ sheet, space, role }: SheetRootProps & {
4
+ declare const SheetContainer: ({ graph, sheet, role }: SheetRootProps & {
5
5
  role?: string;
6
6
  }) => React.JSX.Element;
7
7
  export default SheetContainer;
@@ -1 +1 @@
1
- {"version":3,"file":"SheetContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/SheetContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAO3C,OAAO,EAAS,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAUrD,eAAO,MAAM,oBAAoB,kGACgE,CAAC;AAElG,QAAA,MAAM,cAAc,2BAA4B,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,sBA6DjF,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"SheetContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/SheetContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAO3C,OAAO,EAAS,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAIrD,eAAO,MAAM,oBAAoB,kGACgE,CAAC;AAElG,QAAA,MAAM,cAAc,2BAA4B,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,sBAiEjF,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  export * from './ComputeGraph';
3
3
  export * from './Sheet';
4
- export declare const SheetContainer: React.LazyExoticComponent<({ sheet, space, role }: import("./Sheet").SheetRootProps & {
4
+ export declare const SheetContainer: React.LazyExoticComponent<({ graph, sheet, role }: import("./Sheet").SheetRootProps & {
5
5
  role?: string;
6
6
  }) => React.JSX.Element>;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AAGxB,eAAO,MAAM,cAAc;QACwpB,CAAC;wBAD1mB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AAGxB,eAAO,MAAM,cAAc;QAC0b,CAAC;wBAD5Y,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/defs/types.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,eAAO,MAAM,QAAQ,MAAM,CAAC;AAC5B,eAAO,MAAM,WAAW,QAAS,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAEhE,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAA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,CAAC;AAGF,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,WAOnD,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,SAAS,WAIjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAS,MAAM,KAAG,SAGjD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,SAAS,GAAG,SAAS,QAAQ,WAAW,KAAG,OAuBzE,CAAC"}
@@ -14,7 +14,7 @@ export declare const createIndex: (length?: number) => string;
14
14
  export declare const createIndices: (length: number) => string[];
15
15
  export declare const insertIndices: (indices: string[], i: number, n: number, max: number) => void;
16
16
  export declare const initialize: (sheet: SheetType, { rows, columns }?: Partial<SheetSize>) => void;
17
- export declare const createSheet: ({ title, ...size }?: CreateSheetOptions) => SheetType;
17
+ export declare const createSheet: ({ name, cells, ...size }?: CreateSheetOptions) => SheetType;
18
18
  /**
19
19
  * E.g., "A1" => "CA2@CB3".
20
20
  */
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/defs/util.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAwD,MAAM,SAAS,CAAC;AACjH,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG9E,qBAAa,QAAS,SAAQ,KAAK;CAAG;AAEtC,qBAAa,iBAAkB,SAAQ,QAAQ;CAAG;AAElD,qBAAa,cAAe,SAAQ,QAAQ;gBAC9B,CAAC,EAAE,MAAM;CAGtB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,uBAAiB,MAKxC,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,MAAM,KAAG,MAAM,EAAqD,CAAC;AAE3G,eAAO,MAAM,aAAa,YAAa,MAAM,EAAE,KAAK,MAAM,KAAK,MAAM,OAAO,MAAM,SAOjF,CAAC;AAEF,eAAO,MAAM,UAAU,UACd,SAAS,sBACoC,OA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AAS,sBACoC,OAAO,CAAC,SAAS,CAAC,SAQvE,CAAC;AAEF,eAAO,MAAM,WAAW,8BAA8B,kBAAkB,KAAQ,SAqB/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,UAAW,SAAS,QAAQ,WAAW,KAAG,MAEpE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,SAAS,OAAO,MAAM,KAAG,WAMhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,SAAS,SAAS,SAAS,KAAG,MAEjE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,UAAW,SAAS,OAAO,MAAM,KAAG,SAG9D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,WAAY,WAAW,SAAS,WAAW,EAAE,KAAG,WAAW,GAAG,SAajF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAW,SAAS,UAAU,MAAM,UAAU,MAAM,KAAG,MAUxF,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { type Extension } from '@codemirror/state';
2
- import { type ComputeNode } from '../graph';
2
+ import { type ComputeGraph } from '../graph';
3
+ export declare const computeGraphFacet: import("@codemirror/state").Facet<ComputeGraph, ComputeGraph>;
3
4
  export type ComputeOptions = {};
4
- export declare const compute: (computeNode: ComputeNode, options?: ComputeOptions) => Extension;
5
+ export declare const compute: (options?: ComputeOptions) => Extension;
5
6
  //# sourceMappingURL=compute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAO5C,MAAM,MAAM,cAAc,GAAG,EAAE,CAAC;AAEhC,eAAO,MAAM,OAAO,gBAAiB,WAAW,YAAW,cAAc,KAAQ,SA4DhF,CAAC"}
1
+ {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAAE,KAAK,YAAY,EAAqC,MAAM,UAAU,CAAC;AAQhF,eAAO,MAAM,iBAAiB,+DAAmC,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG,EAAE,CAAC;AAEhC,eAAO,MAAM,OAAO,aAAa,cAAc,KAAQ,SAgGtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AACrB,OAAO,KAA8B,MAAM,OAAO,CAAC;AAwBnD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;;;;;;;AAqEF,wBASE;AAEF,eAAO,MAAM,OAAO;uBAxEM,WAAW;;;;CA8FpC,CAAC;AAEF,eAAO,MAAM,KAAK;oBA5CI,WAAW;;;;CA2DhC,CAAC"}
1
+ {"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AACrB,OAAO,KAA6B,MAAM,OAAO,CAAC;AAyBlD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;;;;;;;AAkEF,wBASE;AAGF,eAAO,MAAM,OAAO;uBArEM,WAAW;;;;CA2FpC,CAAC;AAEF,eAAO,MAAM,KAAK;oBA7CI,WAAW;;;;CA6DhC,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { FunctionPluginDefinition } from 'hyperformula';
2
+ import type { ConfigParams } from 'hyperformula/typings/ConfigParams';
3
+ import type { FunctionTranslationsPackage } from 'hyperformula/typings/interpreter';
4
+ import { type SpaceId, type Space } from '@dxos/client/echo';
5
+ import { Resource } from '@dxos/context';
6
+ import { ComputeGraph } from './compute-graph';
7
+ import { type FunctionContextOptions } from './functions';
8
+ export type ComputeGraphPlugin = {
9
+ plugin: FunctionPluginDefinition;
10
+ translations: FunctionTranslationsPackage;
11
+ };
12
+ export type ComputeGraphOptions = {
13
+ plugins?: ComputeGraphPlugin[];
14
+ } & Partial<FunctionContextOptions> & Partial<ConfigParams>;
15
+ export declare const defaultOptions: ComputeGraphOptions;
16
+ export declare const defaultPlugins: ComputeGraphPlugin[];
17
+ /**
18
+ * Manages a collection of ComputeGraph instances for each space.
19
+ *
20
+ * [ComputePlugin] => [ComputeGraphRegistry] => [ComputeGraph(Space)] => [ComputeNode(Object)]
21
+ *
22
+ * NOTE: The ComputeGraphRegistry manages the hierarchy of resources via its root Context.
23
+ * NOTE: The package.json file defines the packaged #hyperformula module.
24
+ */
25
+ export declare class ComputeGraphRegistry extends Resource {
26
+ private readonly _graphs;
27
+ private readonly _options;
28
+ constructor(options?: ComputeGraphOptions);
29
+ getGraph(spaceId: SpaceId): ComputeGraph | undefined;
30
+ getOrCreateGraph(space: Space): ComputeGraph;
31
+ createGraph(space: Space): ComputeGraph;
32
+ protected _close(): Promise<void>;
33
+ }
34
+ //# sourceMappingURL=compute-graph-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute-graph-registry.d.ts","sourceRoot":"","sources":["../../../../src/graph/compute-graph-registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAGpF,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAsD,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE9G,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,wBAAwB,CAAC;IACjC,YAAY,EAAE,2BAA2B,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC,GAAG,OAAO,CAAC,sBAAsB,CAAC,GACjC,OAAO,CAAC,YAAY,CAAC,CAAC;AAExB,eAAO,MAAM,cAAc,EAAE,mBAE5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAAkB,EAK9C,CAAC;AAEF;;;;;;;GAOG;AAEH,qBAAa,oBAAqB,SAAQ,QAAQ;IAChD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAE5D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;gBAEnC,OAAO,GAAE,mBAAiD;IAQtE,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS;IAIpD,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,YAAY;IAU5C,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,YAAY;cAQd,MAAM;CAMhC"}
@@ -1,40 +1,20 @@
1
- import { type FunctionPluginDefinition } from 'hyperformula';
2
- import { type ConfigParams } from 'hyperformula/typings/ConfigParams';
3
- import { type FunctionTranslationsPackage } from 'hyperformula/typings/interpreter';
4
1
  import { Event } from '@dxos/async';
5
- import { type SpaceId, type Space } from '@dxos/client/echo';
2
+ import { type Space } from '@dxos/client/echo';
6
3
  import { Resource } from '@dxos/context';
7
- import { HyperFormula } from '#hyperformula';
8
- import { FunctionContext, type FunctionContextOptions } from './async-function';
4
+ import { type HyperFormula } from '#hyperformula';
9
5
  import { ComputeNode } from './compute-node';
10
- import { type FunctionDefinition } from './function-defs';
11
- export type ComputeGraphPlugin = {
12
- plugin: FunctionPluginDefinition;
13
- translations: FunctionTranslationsPackage;
6
+ import { FunctionContext, type FunctionContextOptions, type FunctionDefinition } from './functions';
7
+ type ObjectRef = {
8
+ type: string;
9
+ id: string;
14
10
  };
15
- export type ComputeGraphOptions = {
16
- plugins?: ComputeGraphPlugin[];
17
- } & Partial<FunctionContextOptions> & Partial<ConfigParams>;
18
- export declare const defaultOptions: ComputeGraphOptions;
19
- export declare const createSheetName: (id: string) => string;
20
- export declare const getSheetId: (name: string) => string | undefined;
21
11
  /**
22
- * NOTE: Async imports to decouple hyperformula deps.
12
+ * Marker for sheets that are managed by an ECHO object.
13
+ * Sheet ID: `dxos.org/type/SheetType@1234`
23
14
  */
24
- export declare const createComputeGraphRegistry: (options?: Partial<FunctionContextOptions>) => ComputeGraphRegistry;
25
- /**
26
- * Manages a collection of ComputeGraph instances for each space.
27
- *
28
- * [ComputePlugin] => [ComputeGraphRegistry] => [ComputeGraph(Space)] => [ComputeNode(Object)]
29
- */
30
- export declare class ComputeGraphRegistry extends Resource {
31
- private readonly _options;
32
- private readonly _registry;
33
- constructor(_options?: ComputeGraphOptions);
34
- getGraph(spaceId: SpaceId): ComputeGraph | undefined;
35
- getOrCreateGraph(space: Space): Promise<ComputeGraph>;
36
- createGraph(space: Space): Promise<ComputeGraph>;
37
- }
15
+ export declare const createSheetName: ({ type, id }: ObjectRef) => string;
16
+ export declare const parseSheetName: (name: string) => Partial<ObjectRef>;
17
+ export type ComputeGraphEvent = 'functionsUpdated';
38
18
  /**
39
19
  * Per-space compute and dependency graph.
40
20
  * Consists of multiple ComputeNode (corresponding to a HyperFormula sheet).
@@ -47,12 +27,13 @@ export declare class ComputeGraph extends Resource {
47
27
  private readonly _options?;
48
28
  readonly id: string;
49
29
  private readonly _nodes;
50
- private _functions;
30
+ private _remoteFunctions;
31
+ readonly update: Event<{
32
+ type: ComputeGraphEvent;
33
+ }>;
51
34
  readonly context: FunctionContext;
52
- readonly update: Event<void>;
53
35
  constructor(_hf: HyperFormula, _space?: Space | undefined, _options?: Partial<FunctionContextOptions> | undefined);
54
36
  get hf(): HyperFormula;
55
- refresh(): void;
56
37
  getFunctions({ standard, echo }?: {
57
38
  standard?: boolean;
58
39
  echo?: boolean;
@@ -77,5 +58,7 @@ export declare class ComputeGraph extends Resource {
77
58
  */
78
59
  mapFunctionBindingFromId(formula: string): string;
79
60
  protected _open(): Promise<void>;
61
+ protected _close(): Promise<void>;
80
62
  }
63
+ export {};
81
64
  //# sourceMappingURL=compute-graph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compute-graph.d.ts","sourceRoot":"","sources":["../../../../src/graph/compute-graph.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAA4B,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAOzC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAY5E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,wBAAwB,CAAC;IACjC,YAAY,EAAE,2BAA2B,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC,GAAG,OAAO,CAAC,sBAAsB,CAAC,GACjC,OAA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AgB,EAAE,SAA4C;IAG9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkC;IAGzD,OAAO,CAAC,gBAAgB,CAAsB;IAE9C,SAAgB,MAAM;cAAqB,iBAAiB;OAAM;IAGlE,SAAgB,OAAO,kBAA6D;gBAGjE,GAAG,EAAE,YAAY,EACjB,MAAM,CAAC,EAAE,KAAK,YAAA,EACd,QAAQ,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,YAAA;IAqB7D,IAAI,EAAE,iBAEL;IAED,YAAY,CACV,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAmC,GAC1F,kBAAkB,EAAE;IAWvB;;OAEG;IAMH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW;IAe1C;;;OAGG;IACH,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAiD3C;;;OAGG;IACH,sBAAsB,CAAC,OAAO,EAAE,MAAM;IAgBtC;;;OAGG;IACH,wBAAwB,CAAC,OAAO,EAAE,MAAM;cAgBf,KAAK;cAaL,MAAM;CAKhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"compute-graph.stories.d.ts","sourceRoot":"","sources":["../../../../src/graph/compute-graph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAsC,MAAM,OAAO,CAAC;;;;mBAkF1C,GAAG;;AAPpB,wBAQE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
1
+ {"version":3,"file":"compute-graph.stories.d.ts","sourceRoot":"","sources":["../../../../src/graph/compute-graph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAsC,MAAM,OAAO,CAAC;;;;mBAmF1C,GAAG;;AAPpB,wBAQE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=compute-graph.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute-graph.test.d.ts","sourceRoot":"","sources":["../../../../src/graph/compute-graph.test.ts"],"names":[],"mappings":""}
@@ -1,19 +1,26 @@
1
+ import { type Listeners } from 'hyperformula/typings/Emitter';
2
+ import { type ExportedCellChange } from 'hyperformula/typings/Exporter';
1
3
  import { Event } from '@dxos/async';
2
4
  import { Resource } from '@dxos/context';
3
5
  import { type ComputeGraph } from './compute-graph';
4
6
  import { type CellAddress } from '../defs';
5
7
  import { type CellScalarValue } from '../types';
8
+ export type ComputeNodeEvent = {
9
+ type: keyof Listeners;
10
+ change?: ExportedCellChange;
11
+ };
6
12
  /**
7
13
  * Individual "sheet" (typically corresponds to an ECHO object).
8
14
  */
9
15
  export declare class ComputeNode extends Resource {
10
16
  private readonly _graph;
11
17
  readonly sheetId: number;
12
- readonly update: Event<void>;
18
+ readonly update: Event<ComputeNodeEvent>;
13
19
  constructor(_graph: ComputeGraph, sheetId: number);
14
20
  get graph(): ComputeGraph;
15
- get hf(): import("hyperformula").HyperFormula;
21
+ clear(): void;
16
22
  getValue(cell: CellAddress): CellScalarValue;
17
23
  setValue(cell: CellAddress, value: CellScalarValue): void;
24
+ protected _open(): Promise<void>;
18
25
  }
19
26
  //# sourceMappingURL=compute-node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compute-node.d.ts","sourceRoot":"","sources":["../../../../src/graph/compute-node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD;;GAEG;AAEH,qBAAa,WAAY,SA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,eAAe;cAOzB,KAAK;CAI/B"}
@@ -1,3 +1,4 @@
1
+ import { type SimpleCellAddress } from 'hyperformula/typings/Cell';
1
2
  import { type InterpreterState } from 'hyperformula/typings/interpreter/InterpreterState';
2
3
  import { type InterpreterValue } from 'hyperformula/typings/interpreter/InterpreterValue';
3
4
  import { type ProcedureAst } from 'hyperformula/typings/parser';
@@ -5,13 +6,18 @@ import { type UnsubscribeCallback } from '@dxos/async';
5
6
  import { type Space } from '@dxos/client/echo';
6
7
  import { FunctionPlugin, type HyperFormula } from '#hyperformula';
7
8
  export type AsyncFunction = (...args: any) => Promise<InterpreterValue>;
9
+ export type FunctionUpdateEvent = {
10
+ name: string;
11
+ cell: SimpleCellAddress;
12
+ };
8
13
  export type FunctionOptions = {
9
14
  ttl?: number;
10
15
  };
11
16
  export type FunctionContextOptions = {
12
17
  defaultTtl: number;
13
- recalculationDelay: number;
18
+ debounceDelay: number;
14
19
  remoteFunctionUrl: string;
20
+ onUpdate?: (update: FunctionUpdateEvent) => void;
15
21
  };
16
22
  export declare const defaultFunctionContextOptions: FunctionContextOptions;
17
23
  /**
@@ -32,7 +38,7 @@ export declare class FunctionContext {
32
38
  private _invocations;
33
39
  private readonly _options;
34
40
  private readonly _onUpdate;
35
- constructor(_hf: HyperFormula, _space: Space | undefined, onUpdate: (context: FunctionContext) => void, _options?: Partial<FunctionContextOptions>);
41
+ constructor(_hf: HyperFormula, _space: Space | undefined, _options?: Partial<FunctionContextOptions>);
36
42
  get space(): Space | undefined;
37
43
  get remoteFunctionUrl(): string;
38
44
  get info(): {
@@ -50,8 +56,11 @@ export declare class FunctionContext {
50
56
  /**
51
57
  * Base class for async functions.
52
58
  */
53
- export declare class FunctionPluginAsync extends FunctionPlugin {
59
+ export declare class AsyncFunctionPlugin extends FunctionPlugin {
54
60
  get context(): FunctionContext;
55
- runAsyncFunction(ast: ProcedureAst, state: InterpreterState, cb: AsyncFunction, options?: FunctionOptions): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
61
+ /**
62
+ * Immediately returns cached value then runs the async function.
63
+ */
64
+ protected runAsyncFunction(ast: ProcedureAst, state: InterpreterState, cb: AsyncFunction, options?: FunctionOptions): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
56
65
  }
57
66
  //# sourceMappingURL=async-function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-function.d.ts","sourceRoot":"","sources":["../../../../../src/graph/functions/async-function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,EAAY,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAoC,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAQpG,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAExE,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,6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ings/interpreter/InterpreterState';
2
+ import { type ProcedureAst } from 'hyperformula/typings/parser';
3
+ import { AsyncFunctionPlugin } from './async-function';
4
+ export declare const EDGE_FUNCTION_NAME = "DX";
5
+ /**
6
+ * A hyperformula function plugin for calling remote (EDGE) functions.
7
+ *
8
+ * https://hyperformula.handsontable.com/guide/custom-functions.html#add-a-simple-custom-function
9
+ */
10
+ export declare class EdgeFunctionPlugin extends AsyncFunctionPlugin {
11
+ dx(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
12
+ }
13
+ export declare const EdgeFunctionPluginTranslations: {
14
+ enGB: {
15
+ DX: string;
16
+ };
17
+ enUS: {
18
+ DX: string;
19
+ };
20
+ };
21
+ //# sourceMappingURL=edge-function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edge-function.d.ts","sourceRoot":"","sources":["../../../../../src/graph/functions/edge-function.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAShE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAIvC;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,mBAAmB;IACzD,EAAE,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;CA0C9C;AAuBD,eAAO,MAAM,8BAA8B;;;;;;;CAO1C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function-defs.d.ts","sourceRoot":"","sources":["../../../../../src/graph/functions/function-defs.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,kBAAkB,EA42EhD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './async-function';
2
+ export * from './edge-function';
3
+ export * from './function-defs';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/graph/functions/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './compute-graph';
2
+ export * from './compute-graph-registry';
2
3
  export * from './compute-node';
3
- export * from './function-defs';
4
+ export * from './functions';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/graph/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/graph/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './test-builder';
2
+ export * from './test-plugin';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/graph/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { Client, type ClientOptions } from '@dxos/client';
2
+ import { type Context, Resource } from '@dxos/context';
3
+ import { type ComputeGraphOptions, ComputeGraphRegistry } from '../compute-graph-registry';
4
+ export type TestBuilderOptions = ClientOptions & ComputeGraphOptions;
5
+ export declare class TestBuilder extends Resource {
6
+ private readonly _options;
7
+ private _client?;
8
+ private _registry?;
9
+ constructor(_options?: TestBuilderOptions);
10
+ get ctx(): Context;
11
+ get client(): Client;
12
+ get registry(): ComputeGraphRegistry;
13
+ _open(): Promise<void>;
14
+ }
15
+ //# sourceMappingURL=test-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-builder.d.ts","sourceRoot":"","sources":["../../../../../src/graph/testing/test-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,KAAK,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,KAAK,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,mBAAmB,CAAC;AAGrE,qBAAa,WAAY,SAAQ,QAAQ;IAI3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAHrC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,SAAS,CAAC,CAAuB;gBAEZ,QAAQ,GAAE,kBAAuB;IAI9D,IAAI,GAAG,IAAI,OAAO,CAEjB;IAED,IAAI,MAAM,IAAI,MAAM,CAGnB;IAED,IAAI,QAAQ,IAAI,oBAAoB,CAGnC;IAEc,KAAK;CAkBrB"}
@@ -0,0 +1,36 @@
1
+ import { type InterpreterState } from 'hyperformula/typings/interpreter/InterpreterState';
2
+ import { type ProcedureAst } from 'hyperformula/typings/parser';
3
+ import { type ComputeGraphPlugin } from '../compute-graph-registry';
4
+ import { AsyncFunctionPlugin } from '../functions';
5
+ /**
6
+ * Testing functions run locally (not run via EDGE).
7
+ * https://hyperformula.handsontable.com/guide/custom-functions.html#add-a-simple-custom-function
8
+ */
9
+ export declare class TestPlugin extends AsyncFunctionPlugin {
10
+ /**
11
+ * Simple local function returns input value.
12
+ */
13
+ test(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
14
+ /**
15
+ * Simple local function returns random number.
16
+ */
17
+ random(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
18
+ /**
19
+ * Async HTTP function.
20
+ */
21
+ crypto(ast: ProcedureAst, state: InterpreterState): import("hyperformula/typings/interpreter/InterpreterValue").RawInterpreterValue;
22
+ }
23
+ export declare const TestPluginTranslations: {
24
+ enGB: {
25
+ TEST: string;
26
+ RANDOM: string;
27
+ CRYPTO: string;
28
+ };
29
+ enUS: {
30
+ TEST: string;
31
+ RANDOM: string;
32
+ CRYPTO: string;
33
+ };
34
+ };
35
+ export declare const testFunctionPlugins: ComputeGraphPlugin[];
36
+ //# sourceMappingURL=test-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/graph/testing/test-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGvE;;;GAGG;AACH,qBAAa,UAAW,SAAQ,mBAAmB;IACjD;;OAEG;IACH,IAAI,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;IAQ/C;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;IAQjD;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;CAelD;AAsBD,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAWlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,kBAAkB,EAKnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useComputeGraph.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useComputeGraph.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,eAAe,WAAY,KAAK,KAAG,YAAY,GAAG,SAG9D,CAAC"}
1
+ {"version":3,"file":"useComputeGraph.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useComputeGraph.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,eAAe,WAAY,KAAK,KAAG,YAAY,GAAG,SAW9D,CAAC"}
@@ -1,8 +1,8 @@
1
- import { type Space } from '@dxos/react-client/echo';
1
+ import { type ComputeGraph } from '../graph';
2
2
  import { SheetModel } from '../model';
3
3
  import { type SheetType } from '../types';
4
4
  export type UseSheetModelOptions = {
5
5
  readonly?: boolean;
6
6
  };
7
- export declare const useSheetModel: (space?: Space, sheet?: SheetType, { readonly }?: UseSheetModelOptions) => SheetModel | undefined;
7
+ export declare const useSheetModel: (graph?: ComputeGraph, sheet?: SheetType, { readonly }?: UseSheetModelOptions) => SheetModel | undefined;
8
8
  //# sourceMappingURL=useSheetModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSheetModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSheetModel.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,WAChB,KAAK,UACL,SAAS,iBACH,oBAAoB,KACjC,UAAU,GAAG,SAsBf,CAAC"}
1
+ {"version":3,"file":"useSheetModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSheetModel.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,WAChB,YAAY,UACZ,SAAS,iBACH,oBAAoB,KACjC,UAAU,GAAG,SAqBf,CAAC"}
@@ -2,7 +2,7 @@ import { type SimpleDate, type SimpleDateTime } from 'hyperformula/typings/DateT
2
2
  import { Event } from '@dxos/async';
3
3
  import { Resource } from '@dxos/context';
4
4
  import { type CellAddress, type CellRange } from '../defs';
5
- import { type ComputeGraph } from '../graph';
5
+ import { type ComputeGraph, type ComputeNodeEvent } from '../graph';
6
6
  import { type CellScalarValue, type CellValue, type SheetType, ValueTypeEnum } from '../types';
7
7
  export type SheetModelOptions = {
8
8
  readonly?: boolean;
@@ -17,8 +17,8 @@ export declare class SheetModel extends Resource {
17
17
  private readonly _sheet;
18
18
  private readonly _options;
19
19
  readonly id: string;
20
- readonly update: Event<void>;
21
- private readonly _node;
20
+ readonly update: Event<ComputeNodeEvent>;
21
+ private _node?;
22
22
  constructor(_graph: ComputeGraph, _sheet: SheetType, _options?: SheetModelOptions);
23
23
  get graph(): ComputeGraph;
24
24
  get sheet(): SheetType;
@@ -1 +1 @@
1
- {"version":3,"file":"sheet-model.d.ts","s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H,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe;IAKhD;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS;IAalD;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,eAAe,EAAE,EAAE;IAIpD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe;IAW5C;;OAEG;IACH,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa;IAO9C;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe;IAwClD;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;IAM3C;;OAEG;IACH,OAAO,CAAC,UAAU;IAqBlB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,YAAY;IAQpB;;OAEG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAOhD;;OAEG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAWhD;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK9B,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc;IAKvC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;IAK/B,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;CAIhC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sheet-model.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet-model.test.d.ts","sourceRoot":"","sources":["../../../../src/model/sheet-model.test.ts"],"names":[],"mappings":""}
@@ -1,9 +1,8 @@
1
- import type { Decorator } from '@storybook/react';
1
+ import { type Decorator } from '@storybook/react';
2
2
  import { type Space } from '@dxos/react-client/echo';
3
- import { type ComputeGraph } from '../graph';
3
+ import { type ComputeGraph, type ComputeGraphOptions } from '../graph';
4
4
  import { type CellValue, type CreateSheetOptions } from '../types';
5
- export declare const testSheetName = "test";
6
- export declare const createCells: () => Record<string, CellValue>;
5
+ export declare const createTestCells: () => Record<string, CellValue>;
7
6
  export declare const useTestSheet: (space?: Space, graph?: ComputeGraph, options?: CreateSheetOptions) => import("../types").SheetType | undefined;
8
- export declare const withGraphDecorator: Decorator;
7
+ export declare const withComputeGraphDecorator: (options?: ComputeGraphOptions) => Decorator;
9
8
  //# sourceMappingURL=testing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/testing/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAKrD,OAAO,EAAE,KAAK,YAAY,EAAwB,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnE,eAAO,MAAM,aAAa,SAAS,CAAC;AAGpC,eAAO,MAAM,WAAW,QAAO,MAAM,CAAC,MAAM,EAAE,SAAS,CA0BrD,CAAC;AAEH,eAAO,MAAM,YAAY,WAAY,KAAK,UAAU,YAAY,YAAY,kBAAkB,6CAU7F,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,SAOhC,CAAC"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/testing/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAKrD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAwB,MAAM,UAAU,CAAC;AAC7F,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInE,eAAO,MAAM,eAAe,QAAO,MAAM,CAAC,MAAM,EAAE,SAAS,CA0BzD,CAAC;AAEH,eAAO,MAAM,YAAY,WAAY,KAAK,UAAU,YAAY,YAAY,kBAAkB,6CAW7F,CAAC;AAEF,eAAO,MAAM,yBAAyB,aACzB,mBAAmB,KAAG,SAQhC,CAAC"}