@contember/react-multipass-rendering 0.0.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 (106) hide show
  1. package/dist/development/ChildrenAnalyzer.js +170 -0
  2. package/dist/development/ChildrenAnalyzer.js.map +1 -0
  3. package/dist/development/ChildrenAnalyzerError.js +17 -0
  4. package/dist/development/ChildrenAnalyzerError.js.map +1 -0
  5. package/dist/development/helpers/getErrorMessage.js +7 -0
  6. package/dist/development/helpers/getErrorMessage.js.map +1 -0
  7. package/dist/development/helpers/wrapError.js +51 -0
  8. package/dist/development/helpers/wrapError.js.map +1 -0
  9. package/dist/development/index.js +11 -0
  10. package/dist/development/index.js.map +1 -0
  11. package/dist/development/nodeSpecs/BranchNode.js +41 -0
  12. package/dist/development/nodeSpecs/BranchNode.js.map +1 -0
  13. package/dist/development/nodeSpecs/Leaf.js +27 -0
  14. package/dist/development/nodeSpecs/Leaf.js.map +1 -0
  15. package/dist/production/ChildrenAnalyzer.js +170 -0
  16. package/dist/production/ChildrenAnalyzer.js.map +1 -0
  17. package/dist/production/ChildrenAnalyzerError.js +17 -0
  18. package/dist/production/ChildrenAnalyzerError.js.map +1 -0
  19. package/dist/production/helpers/getErrorMessage.js +7 -0
  20. package/dist/production/helpers/getErrorMessage.js.map +1 -0
  21. package/dist/production/helpers/wrapError.js +51 -0
  22. package/dist/production/helpers/wrapError.js.map +1 -0
  23. package/dist/production/index.js +11 -0
  24. package/dist/production/index.js.map +1 -0
  25. package/dist/production/nodeSpecs/BranchNode.js +41 -0
  26. package/dist/production/nodeSpecs/BranchNode.js.map +1 -0
  27. package/dist/production/nodeSpecs/Leaf.js +27 -0
  28. package/dist/production/nodeSpecs/Leaf.js.map +1 -0
  29. package/dist/types/BranchNodeList.d.ts +3 -0
  30. package/dist/types/BranchNodeList.d.ts.map +1 -0
  31. package/dist/types/ChildrenAnalyzer.d.ts +15 -0
  32. package/dist/types/ChildrenAnalyzer.d.ts.map +1 -0
  33. package/dist/types/ChildrenAnalyzerError.d.ts +8 -0
  34. package/dist/types/ChildrenAnalyzerError.d.ts.map +1 -0
  35. package/dist/types/ChildrenAnalyzerOptions.d.ts +10 -0
  36. package/dist/types/ChildrenAnalyzerOptions.d.ts.map +1 -0
  37. package/dist/types/ErrorMessageFactory.d.ts +3 -0
  38. package/dist/types/ErrorMessageFactory.d.ts.map +1 -0
  39. package/dist/types/LeafList.d.ts +3 -0
  40. package/dist/types/LeafList.d.ts.map +1 -0
  41. package/dist/types/helpers/getErrorMessage.d.ts +4 -0
  42. package/dist/types/helpers/getErrorMessage.d.ts.map +1 -0
  43. package/dist/types/helpers/index.d.ts +2 -0
  44. package/dist/types/helpers/index.d.ts.map +1 -0
  45. package/dist/types/helpers/wrapError.d.ts +3 -0
  46. package/dist/types/helpers/wrapError.d.ts.map +1 -0
  47. package/dist/types/index.d.ts +5 -0
  48. package/dist/types/index.d.ts.map +1 -0
  49. package/dist/types/nodeSpecs/BranchNode.d.ts +23 -0
  50. package/dist/types/nodeSpecs/BranchNode.d.ts.map +1 -0
  51. package/dist/types/nodeSpecs/BranchNodeOptions.d.ts +5 -0
  52. package/dist/types/nodeSpecs/BranchNodeOptions.d.ts.map +1 -0
  53. package/dist/types/nodeSpecs/Leaf.d.ts +20 -0
  54. package/dist/types/nodeSpecs/Leaf.d.ts.map +1 -0
  55. package/dist/types/nodeSpecs/RawNodeRepresentation.d.ts +2 -0
  56. package/dist/types/nodeSpecs/RawNodeRepresentation.d.ts.map +1 -0
  57. package/dist/types/nodeSpecs/index.d.ts +6 -0
  58. package/dist/types/nodeSpecs/index.d.ts.map +1 -0
  59. package/dist/types/nodeSpecs/types/ChildrenRepresentationReducer.d.ts +2 -0
  60. package/dist/types/nodeSpecs/types/ChildrenRepresentationReducer.d.ts.map +1 -0
  61. package/dist/types/nodeSpecs/types/ConstrainedLeafRepresentationFactory.d.ts +3 -0
  62. package/dist/types/nodeSpecs/types/ConstrainedLeafRepresentationFactory.d.ts.map +1 -0
  63. package/dist/types/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.d.ts +2 -0
  64. package/dist/types/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.d.ts.map +1 -0
  65. package/dist/types/nodeSpecs/types/RepresentationFactorySite.d.ts +2 -0
  66. package/dist/types/nodeSpecs/types/RepresentationFactorySite.d.ts.map +1 -0
  67. package/dist/types/nodeSpecs/types/StaticContextFactory.d.ts +2 -0
  68. package/dist/types/nodeSpecs/types/StaticContextFactory.d.ts.map +1 -0
  69. package/dist/types/nodeSpecs/types/SyntheticChildrenFactory.d.ts +3 -0
  70. package/dist/types/nodeSpecs/types/SyntheticChildrenFactory.d.ts.map +1 -0
  71. package/dist/types/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.d.ts +3 -0
  72. package/dist/types/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.d.ts.map +1 -0
  73. package/dist/types/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.d.ts +3 -0
  74. package/dist/types/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.d.ts.map +1 -0
  75. package/dist/types/nodeSpecs/types/ValidFactoryName.d.ts +2 -0
  76. package/dist/types/nodeSpecs/types/ValidFactoryName.d.ts.map +1 -0
  77. package/dist/types/nodeSpecs/types/index.d.ts +10 -0
  78. package/dist/types/nodeSpecs/types/index.d.ts.map +1 -0
  79. package/dist/types/tsconfig.tsbuildinfo +1 -0
  80. package/package.json +37 -0
  81. package/src/BranchNodeList.ts +10 -0
  82. package/src/ChildrenAnalyzer.ts +260 -0
  83. package/src/ChildrenAnalyzerError.ts +8 -0
  84. package/src/ChildrenAnalyzerOptions.ts +12 -0
  85. package/src/ErrorMessageFactory.ts +5 -0
  86. package/src/LeafList.ts +8 -0
  87. package/src/helpers/getErrorMessage.ts +10 -0
  88. package/src/helpers/index.ts +1 -0
  89. package/src/helpers/wrapError.ts +46 -0
  90. package/src/index.ts +5 -0
  91. package/src/nodeSpecs/BranchNode.ts +103 -0
  92. package/src/nodeSpecs/BranchNodeOptions.ts +4 -0
  93. package/src/nodeSpecs/Leaf.ts +59 -0
  94. package/src/nodeSpecs/RawNodeRepresentation.ts +5 -0
  95. package/src/nodeSpecs/index.ts +6 -0
  96. package/src/nodeSpecs/types/ChildrenRepresentationReducer.ts +3 -0
  97. package/src/nodeSpecs/types/ConstrainedLeafRepresentationFactory.ts +6 -0
  98. package/src/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.ts +10 -0
  99. package/src/nodeSpecs/types/RepresentationFactorySite.ts +1 -0
  100. package/src/nodeSpecs/types/StaticContextFactory.ts +4 -0
  101. package/src/nodeSpecs/types/SyntheticChildrenFactory.ts +6 -0
  102. package/src/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.ts +6 -0
  103. package/src/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.ts +12 -0
  104. package/src/nodeSpecs/types/ValidFactoryName.ts +1 -0
  105. package/src/nodeSpecs/types/index.ts +9 -0
  106. package/src/tsconfig.json +9 -0
@@ -0,0 +1,51 @@
1
+ import React from "react";
2
+ import { ChildrenAnalyzerError } from "../ChildrenAnalyzerError.js";
3
+ const wrapError = (e, currentComponentName, methodName, path) => {
4
+ if (!(e instanceof Error)) {
5
+ throw e;
6
+ }
7
+ const componentPath = path.map((it, index) => {
8
+ const { children, ...props } = it.props;
9
+ const printProps = (props2) => {
10
+ let result = "";
11
+ for (const [key, value] of Object.entries(props2)) {
12
+ if (value === void 0) {
13
+ continue;
14
+ }
15
+ try {
16
+ const valuePrinted = JSON.stringify(
17
+ value,
18
+ (key2, value2) => {
19
+ if (typeof value2 === "function") {
20
+ return "(function)";
21
+ }
22
+ if (React.isValidElement(value2)) {
23
+ return "(react element)";
24
+ }
25
+ return value2;
26
+ }
27
+ );
28
+ result += ` ${key}=${valuePrinted}`;
29
+ } catch {
30
+ result += ` ${key}=(failed to print a value)`;
31
+ }
32
+ }
33
+ return result;
34
+ };
35
+ const componentName = typeof it.type === "object" && "displayName" in it.type ? it.type.displayName : null;
36
+ const propsPrinted = printProps(props);
37
+ const indent = " ".repeat(index);
38
+ return `${indent}<${componentName ?? "???"}${propsPrinted}>`;
39
+ });
40
+ const errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:
41
+ ${e.message || "unknown error"}`;
42
+ throw new ChildrenAnalyzerError(errorMessage, {
43
+ cause: e,
44
+ details: `Component path:
45
+ ${componentPath.join("\n")}`
46
+ });
47
+ };
48
+ export {
49
+ wrapError
50
+ };
51
+ //# sourceMappingURL=wrapError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapError.js","sources":["../../../src/helpers/wrapError.ts"],"sourcesContent":["import React, { ReactElement } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\n\nexport const wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t},\n\t\t\t\t\t)\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":["props","key","value"],"mappings":";;AAGO,MAAM,YAAY,CAAC,GAAY,sBAA8B,YAAoB,SAAgC;AACnH,MAAA,EAAE,aAAa,QAAQ;AACpB,UAAA;AAAA,EACP;AAEA,QAAM,gBAAgB,KAAK,IAAI,CAAC,IAAI,UAAU;AAC7C,UAAM,EAAE,UAAU,GAAG,MAAA,IAAU,GAAG;AAC5B,UAAA,aAAa,CAACA,WAAe;AAClC,UAAI,SAAS;AACb,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQA,MAAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACI,YAAA;AACH,gBAAM,eAAe,KAAK;AAAA,YAAU;AAAA,YAAO,CAACC,MAAKC,WAAU;AACrD,kBAAA,OAAOA,WAAU,YAAY;AACzB,uBAAA;AAAA,cACR;AACI,kBAAA,MAAM,eAAeA,MAAK,GAAG;AACzB,uBAAA;AAAA,cACR;AACOA,qBAAAA;AAAAA,YACR;AAAA,UAAA;AAED,oBAAU,IAAI,OAAO;AAAA,QAAA,QACpB;AACD,oBAAU,IAAI;AAAA,QACf;AAAA,MACD;AACO,aAAA;AAAA,IAAA;AAEF,UAAA,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AACzG,UAAA,eAAe,WAAW,KAAK;AAC/B,UAAA,SAAS,KAAK,OAAO,KAAK;AACzB,WAAA,GAAG,UAAU,iBAAiB,QAAQ;AAAA,EAAA,CAC7C;AACK,QAAA,eAAe,iCAAiC,2BAA2B;AAAA,EAAgB,EAAE,WAAW;AAExG,QAAA,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI;AAAA,EAAA,CACpD;AACF;"}
@@ -0,0 +1,11 @@
1
+ import { ChildrenAnalyzer } from "./ChildrenAnalyzer.js";
2
+ import { ChildrenAnalyzerError } from "./ChildrenAnalyzerError.js";
3
+ import { BranchNode } from "./nodeSpecs/BranchNode.js";
4
+ import { Leaf } from "./nodeSpecs/Leaf.js";
5
+ export {
6
+ BranchNode,
7
+ ChildrenAnalyzer,
8
+ ChildrenAnalyzerError,
9
+ Leaf
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,41 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ import { ChildrenAnalyzerError } from "../ChildrenAnalyzerError.js";
8
+ const _BranchNode = class {
9
+ constructor(factory, componentOrReducer, options) {
10
+ __publicField(this, "specification");
11
+ __publicField(this, "options");
12
+ if (typeof factory !== "function") {
13
+ this.specification = {
14
+ type: "declarationSite",
15
+ factoryMethodName: factory,
16
+ childrenRepresentationReducer: componentOrReducer
17
+ };
18
+ } else if (typeof factory === "function") {
19
+ this.specification = {
20
+ type: "useSite",
21
+ factory,
22
+ ComponentType: componentOrReducer
23
+ };
24
+ } else {
25
+ throw new ChildrenAnalyzerError("Invalid arguments");
26
+ }
27
+ this.options = {
28
+ ..._BranchNode.defaultOptions,
29
+ ...options
30
+ };
31
+ }
32
+ };
33
+ let BranchNode = _BranchNode;
34
+ __publicField(BranchNode, "defaultOptions", {
35
+ childrenAreOptional: false,
36
+ childrenAbsentErrorMessage: "Component must have children!"
37
+ });
38
+ export {
39
+ BranchNode
40
+ };
41
+ //# sourceMappingURL=BranchNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BranchNode.js","sources":["../../../src/nodeSpecs/BranchNode.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\nimport type { BranchNodeOptions } from './BranchNodeOptions'\nimport type { ChildrenRepresentationReducer, UseSiteBranchNodeRepresentationFactory, ValidFactoryName } from './types'\n\nclass BranchNode<\n\tProps extends {} = {},\n\tStaticContext = undefined,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tChildrenRepresentation = any,\n\tReducedChildrenRepresentation = any,\n\tRepresentation = any,\n> {\n\tprivate static defaultOptions: BranchNodeOptions = {\n\t\tchildrenAreOptional: false,\n\t\tchildrenAbsentErrorMessage: 'Component must have children!',\n\t}\n\n\tpublic readonly specification: BranchNode.Specification<\n\t\tProps,\n\t\tStaticContext,\n\t\tFactoryMethodName,\n\t\tChildrenRepresentation,\n\t\tReducedChildrenRepresentation,\n\t\tRepresentation\n\t>\n\n\tpublic readonly options: BranchNodeOptions\n\n\tpublic constructor(\n\t\tfactoryMethodName: FactoryMethodName,\n\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tuseSiteFactory: UseSiteBranchNodeRepresentationFactory<\n\t\t\tProps,\n\t\t\tChildrenRepresentation,\n\t\t\tRepresentation,\n\t\t\tStaticContext\n\t\t>,\n\t\tComponentType?: ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t)\n\tpublic constructor(\n\t\tfactory:\n\t\t\t| FactoryMethodName\n\t\t\t| UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>,\n\t\tcomponentOrReducer?:\n\t\t\t| ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>\n\t\t\t| ElementType<Props>,\n\t\toptions?: Partial<BranchNodeOptions>,\n\t) {\n\t\tif (typeof factory !== 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t\tchildrenRepresentationReducer: componentOrReducer as ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>,\n\t\t\t}\n\t\t} else if (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tfactory,\n\t\t\t\tComponentType: componentOrReducer as ElementType<Props>,\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new ChildrenAnalyzerError('Invalid arguments')\n\t\t}\n\t\tthis.options = {\n\t\t\t...BranchNode.defaultOptions,\n\t\t\t...options,\n\t\t}\n\t}\n}\n\nnamespace BranchNode {\n\texport type Specification<\n\t\tProps extends {} = {},\n\t\tStaticContext = any,\n\t\tFactoryMethodName extends ValidFactoryName = string,\n\t\tChildrenRepresentation = any,\n\t\tReducedChildrenRepresentation = any,\n\t\tRepresentation = any,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<\n\t\t\t\t\tChildrenRepresentation,\n\t\t\t\t\tReducedChildrenRepresentation\n\t\t\t\t>\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { BranchNode }\n"],"names":[],"mappings":";;;;;;;AAKA,MAAM,cAAN,MAOE;AAAA,EAgCM,YACN,SAGA,oBAGA,SACC;AAlCc;AASA;AA0BX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,QACnB,+BAA+B;AAAA,MAAA;AAAA,IAIhC,WACU,OAAO,YAAY,YAAY;AACzC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA,eAAe;AAAA,MAAA;AAAA,IAChB,OACM;AACA,YAAA,IAAI,sBAAsB,mBAAmB;AAAA,IACpD;AACA,SAAK,UAAU;AAAA,MACd,GAAG,YAAW;AAAA,MACd,GAAG;AAAA,IAAA;AAAA,EAEL;AACD;AAvEA,IAAM,aAAN;AAQC,cARK,YAQU,kBAAoC;AAAA,EAClD,qBAAqB;AAAA,EACrB,4BAA4B;AAAA;"}
@@ -0,0 +1,27 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ class Leaf {
8
+ constructor(factory, ComponentType) {
9
+ __publicField(this, "specification");
10
+ if (typeof factory === "function") {
11
+ this.specification = {
12
+ type: "useSite",
13
+ ComponentType,
14
+ factory
15
+ };
16
+ } else {
17
+ this.specification = {
18
+ type: "declarationSite",
19
+ factoryMethodName: factory
20
+ };
21
+ }
22
+ }
23
+ }
24
+ export {
25
+ Leaf
26
+ };
27
+ //# sourceMappingURL=Leaf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Leaf.js","sources":["../../../src/nodeSpecs/Leaf.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport type {\n\tConstrainedLeafRepresentationFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './types'\n\nclass Leaf<\n\tProps extends {} = {},\n\tStaticContext = any,\n\tFactoryMethodName extends ValidFactoryName = string,\n\tRepresentation = any,\n> {\n\tpublic readonly specification: Leaf.Specification<FactoryMethodName, Representation, Props, StaticContext>\n\n\tpublic constructor(factoryMethodName: FactoryMethodName)\n\tpublic constructor(staticFactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>)\n\tpublic constructor(\n\t\tstaticFactory: ConstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType: ElementType<Props>,\n\t)\n\tpublic constructor(\n\t\tfactory: FactoryMethodName | UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>,\n\t\tComponentType?: ElementType<Props>,\n\t) {\n\t\tif (typeof factory === 'function') {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'useSite',\n\t\t\t\tComponentType,\n\t\t\t\tfactory,\n\t\t\t}\n\t\t} else {\n\t\t\tthis.specification = {\n\t\t\t\ttype: 'declarationSite',\n\t\t\t\tfactoryMethodName: factory,\n\t\t\t}\n\t\t}\n\t}\n}\n\nnamespace Leaf {\n\texport type Specification<\n\t\tFactoryMethodName extends ValidFactoryName,\n\t\tRepresentation,\n\t\tProps extends {},\n\t\tStaticContext,\n\t> =\n\t\t| {\n\t\t\t\ttype: 'declarationSite'\n\t\t\t\tfactoryMethodName: FactoryMethodName\n\t\t }\n\t\t| {\n\t\t\t\ttype: 'useSite'\n\t\t\t\tfactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>\n\t\t\t\tComponentType?: ElementType<Props>\n\t\t }\n}\n\nexport { Leaf }\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,KAKJ;AAAA,EASM,YACN,SACA,eACC;AAXc;AAYX,QAAA,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MAAA;AAAA,IACD,OACM;AACN,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,MAAA;AAAA,IAErB;AAAA,EACD;AACD;"}
@@ -0,0 +1,3 @@
1
+ import type { BranchNode, RawNodeRepresentation, ValidFactoryName } from './nodeSpecs';
2
+ export type BranchNodeList<LeavesRepresentationUnion, BranchNodesRepresentationUnion, StaticContext> = BranchNode<any, StaticContext, ValidFactoryName, RawNodeRepresentation<LeavesRepresentationUnion, BranchNodesRepresentationUnion>, any, BranchNodesRepresentationUnion>[];
3
+ //# sourceMappingURL=BranchNodeList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BranchNodeList.d.ts","sourceRoot":"","sources":["../../src/BranchNodeList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,CAAC,yBAAyB,EAAE,8BAA8B,EAAE,aAAa,IAAI,UAAU,CAChH,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,qBAAqB,CAAC,yBAAyB,EAAE,8BAA8B,CAAC,EAChF,GAAG,EACH,8BAA8B,CAC9B,EAAE,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { BranchNodeList } from './BranchNodeList';
3
+ import type { ChildrenAnalyzerOptions } from './ChildrenAnalyzerOptions';
4
+ import type { LeafList } from './LeafList';
5
+ export declare class ChildrenAnalyzer<AllLeavesRepresentation = any, AllBranchNodesRepresentation = never, StaticContext = undefined> {
6
+ private static defaultOptions;
7
+ private readonly leaves;
8
+ private readonly branchNodes;
9
+ private readonly options;
10
+ constructor(leaves: LeafList<AllLeavesRepresentation, StaticContext>, options?: Partial<ChildrenAnalyzerOptions>);
11
+ constructor(leaves: LeafList<AllLeavesRepresentation, StaticContext>, branchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>, options?: Partial<ChildrenAnalyzerOptions>);
12
+ processChildren(children: ReactNode, initialStaticContext: StaticContext): Array<AllLeavesRepresentation | AllBranchNodesRepresentation>;
13
+ private processNode;
14
+ }
15
+ //# sourceMappingURL=ChildrenAnalyzer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChildrenAnalyzer.d.ts","sourceRoot":"","sources":["../../src/ChildrenAnalyzer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAY1C,qBAAa,gBAAgB,CAC5B,uBAAuB,GAAG,GAAG,EAC7B,4BAA4B,GAAG,KAAK,EACpC,aAAa,GAAG,SAAS;IAEzB,OAAO,CAAC,MAAM,CAAC,cAAc,CAS5B;IAED,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkD;IACzE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsF;IAClH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwC;gBAG/D,MAAM,EAAE,QAAQ,CAAC,uBAAuB,EAAE,aAAa,CAAC,EACxD,OAAO,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC;gBAG1C,MAAM,EAAE,QAAQ,CAAC,uBAAuB,EAAE,aAAa,CAAC,EACxD,WAAW,EAAE,cAAc,CAAC,uBAAuB,EAAE,4BAA4B,EAAE,aAAa,CAAC,EACjG,OAAO,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC;IAoBpC,eAAe,CACrB,QAAQ,EAAE,SAAS,EACnB,oBAAoB,EAAE,aAAa,GACjC,KAAK,CAAC,uBAAuB,GAAG,4BAA4B,CAAC;IAchE,OAAO,CAAC,WAAW;CAkLnB"}
@@ -0,0 +1,8 @@
1
+ export declare class ChildrenAnalyzerError extends Error {
2
+ details?: string;
3
+ constructor(message: string, options?: {
4
+ cause: Error;
5
+ details?: string;
6
+ });
7
+ }
8
+ //# sourceMappingURL=ChildrenAnalyzerError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChildrenAnalyzerError.d.ts","sourceRoot":"","sources":["../../src/ChildrenAnalyzerError.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAsB,SAAQ,KAAK;IACxC,OAAO,CAAC,EAAE,MAAM,CAAA;gBAEX,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;CAIzE"}
@@ -0,0 +1,10 @@
1
+ import type { ErrorMessageFactory } from './ErrorMessageFactory';
2
+ export interface ChildrenAnalyzerOptions<StaticContext = any> {
3
+ ignoreRenderProps: boolean;
4
+ renderPropsErrorMessage: ErrorMessageFactory<StaticContext>;
5
+ ignoreUnhandledNodes: boolean;
6
+ unhandledNodeErrorMessage: ErrorMessageFactory<StaticContext>;
7
+ staticContextFactoryName: string;
8
+ staticRenderFactoryName: string;
9
+ }
10
+ //# sourceMappingURL=ChildrenAnalyzerOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChildrenAnalyzerOptions.d.ts","sourceRoot":"","sources":["../../src/ChildrenAnalyzerOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,WAAW,uBAAuB,CAAC,aAAa,GAAG,GAAG;IAC3D,iBAAiB,EAAE,OAAO,CAAA;IAC1B,uBAAuB,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAA;IAE3D,oBAAoB,EAAE,OAAO,CAAA;IAC7B,yBAAyB,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAA;IAE7D,wBAAwB,EAAE,MAAM,CAAA;IAChC,uBAAuB,EAAE,MAAM,CAAA;CAC/B"}
@@ -0,0 +1,3 @@
1
+ import type { ReactNode } from 'react';
2
+ export type ErrorMessageFactory<StaticContext = any> = string | ((node: ReactNode, staticContext: StaticContext) => string);
3
+ //# sourceMappingURL=ErrorMessageFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorMessageFactory.d.ts","sourceRoot":"","sources":["../../src/ErrorMessageFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,MAAM,mBAAmB,CAAC,aAAa,GAAG,GAAG,IAChD,MAAM,GACN,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,KAAK,MAAM,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Leaf, ValidFactoryName } from './nodeSpecs';
2
+ export type LeafList<RepresentationUnion, StaticContext> = Leaf<any, StaticContext, ValidFactoryName, RepresentationUnion>[];
3
+ //# sourceMappingURL=LeafList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LeafList.d.ts","sourceRoot":"","sources":["../../src/LeafList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEzD,MAAM,MAAM,QAAQ,CAAC,mBAAmB,EAAE,aAAa,IAAI,IAAI,CAC9D,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,mBAAmB,CACnB,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ErrorMessageFactory } from '../ErrorMessageFactory';
3
+ export declare const getErrorMessage: <StaticContext>(factory: ErrorMessageFactory<StaticContext>, node: ReactNode, staticContext: StaticContext) => string;
4
+ //# sourceMappingURL=getErrorMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/helpers/getErrorMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,eAAO,MAAM,eAAe,qEAErB,SAAS,mCAEb,MAEF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './getErrorMessage';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ReactElement } from 'react';
2
+ export declare const wrapError: (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]) => never;
3
+ //# sourceMappingURL=wrapError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapError.d.ts","sourceRoot":"","sources":["../../../src/helpers/wrapError.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAG3C,eAAO,MAAM,SAAS,MAAO,OAAO,wBAAwB,MAAM,cAAc,MAAM,QAAQ,YAAY,EAAE,KAAG,KA0C9G,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './nodeSpecs';
2
+ export * from './ChildrenAnalyzer';
3
+ export * from './ChildrenAnalyzerError';
4
+ export * from './ChildrenAnalyzerOptions';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAE3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA"}
@@ -0,0 +1,23 @@
1
+ import type { ElementType } from 'react';
2
+ import type { BranchNodeOptions } from './BranchNodeOptions';
3
+ import type { ChildrenRepresentationReducer, UseSiteBranchNodeRepresentationFactory, ValidFactoryName } from './types';
4
+ declare class BranchNode<Props extends {} = {}, StaticContext = undefined, FactoryMethodName extends ValidFactoryName = string, ChildrenRepresentation = any, ReducedChildrenRepresentation = any, Representation = any> {
5
+ private static defaultOptions;
6
+ readonly specification: BranchNode.Specification<Props, StaticContext, FactoryMethodName, ChildrenRepresentation, ReducedChildrenRepresentation, Representation>;
7
+ readonly options: BranchNodeOptions;
8
+ constructor(factoryMethodName: FactoryMethodName, childrenRepresentationReducer: ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>, options?: Partial<BranchNodeOptions>);
9
+ constructor(useSiteFactory: UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>, ComponentType?: ElementType<Props>, options?: Partial<BranchNodeOptions>);
10
+ }
11
+ declare namespace BranchNode {
12
+ type Specification<Props extends {} = {}, StaticContext = any, FactoryMethodName extends ValidFactoryName = string, ChildrenRepresentation = any, ReducedChildrenRepresentation = any, Representation = any> = {
13
+ type: 'declarationSite';
14
+ factoryMethodName: FactoryMethodName;
15
+ childrenRepresentationReducer: ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation>;
16
+ } | {
17
+ type: 'useSite';
18
+ factory: UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>;
19
+ ComponentType?: ElementType<Props>;
20
+ };
21
+ }
22
+ export { BranchNode };
23
+ //# sourceMappingURL=BranchNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BranchNode.d.ts","sourceRoot":"","sources":["../../../src/nodeSpecs/BranchNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,6BAA6B,EAAE,sCAAsC,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAEtH,cAAM,UAAU,CACf,KAAK,SAAS,EAAE,GAAG,EAAE,EACrB,aAAa,GAAG,SAAS,EACzB,iBAAiB,SAAS,gBAAgB,GAAG,MAAM,EACnD,sBAAsB,GAAG,GAAG,EAC5B,6BAA6B,GAAG,GAAG,EACnC,cAAc,GAAG,GAAG;IAEpB,OAAO,CAAC,MAAM,CAAC,cAAc,CAG5B;IAED,SAAgB,aAAa,EAAE,UAAU,CAAC,aAAa,CACtD,KAAK,EACL,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,EAC7B,cAAc,CACd,CAAA;IAED,SAAgB,OAAO,EAAE,iBAAiB,CAAA;gBAGzC,iBAAiB,EAAE,iBAAiB,EACpC,6BAA6B,EAAE,6BAA6B,CAAC,sBAAsB,EAAE,6BAA6B,CAAC,EACnH,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC;gBAGpC,cAAc,EAAE,sCAAsC,CACrD,KAAK,EACL,sBAAsB,EACtB,cAAc,EACd,aAAa,CACb,EACD,aAAa,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,EAClC,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC;CAkCrC;AAED,kBAAU,UAAU,CAAC;IACpB,KAAY,aAAa,CACxB,KAAK,SAAS,EAAE,GAAG,EAAE,EACrB,aAAa,GAAG,GAAG,EACnB,iBAAiB,SAAS,gBAAgB,GAAG,MAAM,EACnD,sBAAsB,GAAG,GAAG,EAC5B,6BAA6B,GAAG,GAAG,EACnC,cAAc,GAAG,GAAG,IAElB;QACA,IAAI,EAAE,iBAAiB,CAAA;QACvB,iBAAiB,EAAE,iBAAiB,CAAA;QACpC,6BAA6B,EAAE,6BAA6B,CAC3D,sBAAsB,EACtB,6BAA6B,CAC7B,CAAA;KACA,GACD;QACA,IAAI,EAAE,SAAS,CAAA;QACf,OAAO,EAAE,sCAAsC,CAAC,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,aAAa,CAAC,CAAA;QAC7G,aAAa,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;KACjC,CAAA;CACJ;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,5 @@
1
+ export interface BranchNodeOptions {
2
+ childrenAreOptional: boolean;
3
+ childrenAbsentErrorMessage: string;
4
+ }
5
+ //# sourceMappingURL=BranchNodeOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BranchNodeOptions.d.ts","sourceRoot":"","sources":["../../../src/nodeSpecs/BranchNodeOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,mBAAmB,EAAE,OAAO,CAAA;IAC5B,0BAA0B,EAAE,MAAM,CAAA;CAClC"}
@@ -0,0 +1,20 @@
1
+ import type { ElementType } from 'react';
2
+ import type { ConstrainedLeafRepresentationFactory, UnconstrainedLeafRepresentationFactory, ValidFactoryName } from './types';
3
+ declare class Leaf<Props extends {} = {}, StaticContext = any, FactoryMethodName extends ValidFactoryName = string, Representation = any> {
4
+ readonly specification: Leaf.Specification<FactoryMethodName, Representation, Props, StaticContext>;
5
+ constructor(factoryMethodName: FactoryMethodName);
6
+ constructor(staticFactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>);
7
+ constructor(staticFactory: ConstrainedLeafRepresentationFactory<Props, Representation, StaticContext>, ComponentType: ElementType<Props>);
8
+ }
9
+ declare namespace Leaf {
10
+ type Specification<FactoryMethodName extends ValidFactoryName, Representation, Props extends {}, StaticContext> = {
11
+ type: 'declarationSite';
12
+ factoryMethodName: FactoryMethodName;
13
+ } | {
14
+ type: 'useSite';
15
+ factory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>;
16
+ ComponentType?: ElementType<Props>;
17
+ };
18
+ }
19
+ export { Leaf };
20
+ //# sourceMappingURL=Leaf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Leaf.d.ts","sourceRoot":"","sources":["../../../src/nodeSpecs/Leaf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,KAAK,EACX,oCAAoC,EACpC,sCAAsC,EACtC,gBAAgB,EAChB,MAAM,SAAS,CAAA;AAEhB,cAAM,IAAI,CACT,KAAK,SAAS,EAAE,GAAG,EAAE,EACrB,aAAa,GAAG,GAAG,EACnB,iBAAiB,SAAS,gBAAgB,GAAG,MAAM,EACnD,cAAc,GAAG,GAAG;IAEpB,SAAgB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,CAAC,CAAA;gBAEvF,iBAAiB,EAAE,iBAAiB;gBACpC,aAAa,EAAE,sCAAsC,CAAC,KAAK,EAAE,cAAc,EAAE,aAAa,CAAC;gBAE7G,aAAa,EAAE,oCAAoC,CAAC,KAAK,EAAE,cAAc,EAAE,aAAa,CAAC,EACzF,aAAa,EAAE,WAAW,CAAC,KAAK,CAAC;CAmBlC;AAED,kBAAU,IAAI,CAAC;IACd,KAAY,aAAa,CACxB,iBAAiB,SAAS,gBAAgB,EAC1C,cAAc,EACd,KAAK,SAAS,EAAE,EAChB,aAAa,IAEX;QACA,IAAI,EAAE,iBAAiB,CAAA;QACvB,iBAAiB,EAAE,iBAAiB,CAAA;KACnC,GACD;QACA,IAAI,EAAE,SAAS,CAAA;QACf,OAAO,EAAE,sCAAsC,CAAC,KAAK,EAAE,cAAc,EAAE,aAAa,CAAC,CAAA;QACrF,aAAa,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;KACjC,CAAA;CACJ;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation = AllLeavesRepresentation> = AllLeavesRepresentation | AllBranchNodesRepresentation | Array<AllLeavesRepresentation | AllBranchNodesRepresentation> | undefined;
2
+ //# sourceMappingURL=RawNodeRepresentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RawNodeRepresentation.d.ts","sourceRoot":"","sources":["../../../src/nodeSpecs/RawNodeRepresentation.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,CAAC,uBAAuB,EAAE,4BAA4B,GAAG,uBAAuB,IAC9G,uBAAuB,GACvB,4BAA4B,GAC5B,KAAK,CAAC,uBAAuB,GAAG,4BAA4B,CAAC,GAC7D,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './types';
2
+ export * from './BranchNode';
3
+ export * from './BranchNodeOptions';
4
+ export * from './Leaf';
5
+ export * from './RawNodeRepresentation';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodeSpecs/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AAEvB,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,QAAQ,CAAA;AACtB,cAAc,yBAAyB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type ChildrenRepresentationReducer<ChildrenRepresentation, ReducedChildrenRepresentation> = (childrenRepresentations: ChildrenRepresentation) => ReducedChildrenRepresentation;
2
+ //# sourceMappingURL=ChildrenRepresentationReducer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChildrenRepresentationReducer.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/ChildrenRepresentationReducer.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6BAA6B,CAAC,sBAAsB,EAAE,6BAA6B,IAAI,CAClG,uBAAuB,EAAE,sBAAsB,KAC3C,6BAA6B,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ReactElement } from 'react';
2
+ export type ConstrainedLeafRepresentationFactory<Props extends {}, Representation, StaticContext> = (node: ReactElement<Props, any>, staticContext: StaticContext) => Representation;
3
+ //# sourceMappingURL=ConstrainedLeafRepresentationFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConstrainedLeafRepresentationFactory.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/ConstrainedLeafRepresentationFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,MAAM,MAAM,oCAAoC,CAAC,KAAK,SAAS,EAAE,EAAE,cAAc,EAAE,aAAa,IAAI,CACnG,IAAI,EAAE,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,EAC9B,aAAa,EAAE,aAAa,KACxB,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type DeclarationSiteNodeRepresentationFactory<Props extends {}, ReducedChildrenRepresentation, Representation, StaticContext> = (props: Props, reducedChildrenRepresentation: ReducedChildrenRepresentation, staticContext: StaticContext) => Representation;
2
+ //# sourceMappingURL=DeclarationSiteNodeRepresentationFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeclarationSiteNodeRepresentationFactory.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wCAAwC,CACnD,KAAK,SAAS,EAAE,EAChB,6BAA6B,EAC7B,cAAc,EACd,aAAa,IACV,CACH,KAAK,EAAE,KAAK,EACZ,6BAA6B,EAAE,6BAA6B,EAC5D,aAAa,EAAE,aAAa,KACxB,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type RepresentationFactorySite = 'declarationSite' | 'useSite';
2
+ //# sourceMappingURL=RepresentationFactorySite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepresentationFactorySite.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/RepresentationFactorySite.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,GAAG,SAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type StaticContextFactory<Props extends {}, StaticContext> = (props: Props, staticContext: StaticContext) => StaticContext;
2
+ //# sourceMappingURL=StaticContextFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticContextFactory.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/StaticContextFactory.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,CAAC,KAAK,SAAS,EAAE,EAAE,aAAa,IAAI,CACnE,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,KACxB,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ReactNode } from 'react';
2
+ export type SyntheticChildrenFactory<Props extends {}, StaticContext> = (props: Props, staticContext: StaticContext) => ReactNode;
3
+ //# sourceMappingURL=SyntheticChildrenFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyntheticChildrenFactory.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/SyntheticChildrenFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,MAAM,wBAAwB,CAAC,KAAK,SAAS,EAAE,EAAE,aAAa,IAAI,CACvE,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,KACxB,SAAS,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ReactElement, ReactText } from 'react';
2
+ export type UnconstrainedLeafRepresentationFactory<Props extends {}, Representation, StaticContext> = (node: ReactText | ReactElement<Props, any> | boolean | null | undefined, staticContext: StaticContext) => Representation;
3
+ //# sourceMappingURL=UnconstrainedLeafRepresentationFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnconstrainedLeafRepresentationFactory.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEpD,MAAM,MAAM,sCAAsC,CAAC,KAAK,SAAS,EAAE,EAAE,cAAc,EAAE,aAAa,IAAI,CACrG,IAAI,EAAE,SAAS,GAAG,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EACvE,aAAa,EAAE,aAAa,KACxB,cAAc,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ReactElement } from 'react';
2
+ export type UseSiteBranchNodeRepresentationFactory<Props extends {}, ChildrenRepresentation, Representation, StaticContext> = (node: ReactElement<Props, any>, childrenRepresentation: ChildrenRepresentation, staticContext: StaticContext) => Representation;
3
+ //# sourceMappingURL=UseSiteBranchNodeRepresentationFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UseSiteBranchNodeRepresentationFactory.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,MAAM,MAAM,sCAAsC,CACjD,KAAK,SAAS,EAAE,EAChB,sBAAsB,EACtB,cAAc,EACd,aAAa,IACV,CACH,IAAI,EAAE,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,EAC9B,sBAAsB,EAAE,sBAAsB,EAC9C,aAAa,EAAE,aAAa,KACxB,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type ValidFactoryName = string | number;
2
+ //# sourceMappingURL=ValidFactoryName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValidFactoryName.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/ValidFactoryName.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAA"}
@@ -0,0 +1,10 @@
1
+ export * from './ChildrenRepresentationReducer';
2
+ export * from './ConstrainedLeafRepresentationFactory';
3
+ export * from './DeclarationSiteNodeRepresentationFactory';
4
+ export * from './RepresentationFactorySite';
5
+ export * from './StaticContextFactory';
6
+ export * from './SyntheticChildrenFactory';
7
+ export * from './UnconstrainedLeafRepresentationFactory';
8
+ export * from './UseSiteBranchNodeRepresentationFactory';
9
+ export * from './ValidFactoryName';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/nodeSpecs/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAA;AAC/C,cAAc,wCAAwC,CAAA;AACtD,cAAc,4CAA4C,CAAA;AAC1D,cAAc,6BAA6B,CAAA;AAC3C,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0CAA0C,CAAA;AACxD,cAAc,0CAA0C,CAAA;AACxD,cAAc,oBAAoB,CAAA"}