@contember/react-multipass-rendering 2.1.0-alpha.36 → 2.1.0-alpha.39
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.
- package/dist/development/index.cjs +11 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +11 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/src/ChildrenAnalyzer.cjs +168 -0
- package/dist/development/src/ChildrenAnalyzer.cjs.map +1 -0
- package/dist/development/src/ChildrenAnalyzer.js +168 -0
- package/dist/development/src/ChildrenAnalyzer.js.map +1 -0
- package/dist/development/src/ChildrenAnalyzerError.cjs +14 -0
- package/dist/development/src/ChildrenAnalyzerError.cjs.map +1 -0
- package/dist/development/src/ChildrenAnalyzerError.js +14 -0
- package/dist/development/src/ChildrenAnalyzerError.js.map +1 -0
- package/dist/development/src/helpers/getErrorMessage.cjs +7 -0
- package/dist/development/src/helpers/getErrorMessage.cjs.map +1 -0
- package/dist/development/src/helpers/getErrorMessage.js +7 -0
- package/dist/development/src/helpers/getErrorMessage.js.map +1 -0
- package/dist/development/src/helpers/wrapError.cjs +48 -0
- package/dist/development/src/helpers/wrapError.cjs.map +1 -0
- package/dist/development/src/helpers/wrapError.js +48 -0
- package/dist/development/src/helpers/wrapError.js.map +1 -0
- package/dist/development/src/nodeSpecs/BranchNode.cjs +38 -0
- package/dist/development/src/nodeSpecs/BranchNode.cjs.map +1 -0
- package/dist/development/src/nodeSpecs/BranchNode.js +38 -0
- package/dist/development/src/nodeSpecs/BranchNode.js.map +1 -0
- package/dist/development/src/nodeSpecs/Leaf.cjs +24 -0
- package/dist/development/src/nodeSpecs/Leaf.cjs.map +1 -0
- package/dist/development/src/nodeSpecs/Leaf.js +24 -0
- package/dist/development/src/nodeSpecs/Leaf.js.map +1 -0
- package/dist/production/index.cjs +11 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +11 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/src/ChildrenAnalyzer.cjs +168 -0
- package/dist/production/src/ChildrenAnalyzer.cjs.map +1 -0
- package/dist/production/src/ChildrenAnalyzer.js +168 -0
- package/dist/production/src/ChildrenAnalyzer.js.map +1 -0
- package/dist/production/src/ChildrenAnalyzerError.cjs +14 -0
- package/dist/production/src/ChildrenAnalyzerError.cjs.map +1 -0
- package/dist/production/src/ChildrenAnalyzerError.js +14 -0
- package/dist/production/src/ChildrenAnalyzerError.js.map +1 -0
- package/dist/production/src/helpers/getErrorMessage.cjs +7 -0
- package/dist/production/src/helpers/getErrorMessage.cjs.map +1 -0
- package/dist/production/src/helpers/getErrorMessage.js +7 -0
- package/dist/production/src/helpers/getErrorMessage.js.map +1 -0
- package/dist/production/src/helpers/wrapError.cjs +48 -0
- package/dist/production/src/helpers/wrapError.cjs.map +1 -0
- package/dist/production/src/helpers/wrapError.js +48 -0
- package/dist/production/src/helpers/wrapError.js.map +1 -0
- package/dist/production/src/nodeSpecs/BranchNode.cjs +38 -0
- package/dist/production/src/nodeSpecs/BranchNode.cjs.map +1 -0
- package/dist/production/src/nodeSpecs/BranchNode.js +38 -0
- package/dist/production/src/nodeSpecs/BranchNode.js.map +1 -0
- package/dist/production/src/nodeSpecs/Leaf.cjs +24 -0
- package/dist/production/src/nodeSpecs/Leaf.cjs.map +1 -0
- package/dist/production/src/nodeSpecs/Leaf.js +24 -0
- package/dist/production/src/nodeSpecs/Leaf.js.map +1 -0
- package/dist/types/BranchNodeList.d.ts +3 -0
- package/dist/types/BranchNodeList.d.ts.map +1 -0
- package/dist/types/ChildrenAnalyzer.d.ts +15 -0
- package/dist/types/ChildrenAnalyzer.d.ts.map +1 -0
- package/dist/types/ChildrenAnalyzerError.d.ts +8 -0
- package/dist/types/ChildrenAnalyzerError.d.ts.map +1 -0
- package/dist/types/ChildrenAnalyzerOptions.d.ts +10 -0
- package/dist/types/ChildrenAnalyzerOptions.d.ts.map +1 -0
- package/dist/types/ErrorMessageFactory.d.ts +3 -0
- package/dist/types/ErrorMessageFactory.d.ts.map +1 -0
- package/dist/types/LeafList.d.ts +3 -0
- package/dist/types/LeafList.d.ts.map +1 -0
- package/dist/types/helpers/getErrorMessage.d.ts +4 -0
- package/dist/types/helpers/getErrorMessage.d.ts.map +1 -0
- package/dist/types/helpers/index.d.ts +2 -0
- package/dist/types/helpers/index.d.ts.map +1 -0
- package/dist/types/helpers/wrapError.d.ts +3 -0
- package/dist/types/helpers/wrapError.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/nodeSpecs/BranchNode.d.ts +23 -0
- package/dist/types/nodeSpecs/BranchNode.d.ts.map +1 -0
- package/dist/types/nodeSpecs/BranchNodeOptions.d.ts +5 -0
- package/dist/types/nodeSpecs/BranchNodeOptions.d.ts.map +1 -0
- package/dist/types/nodeSpecs/Leaf.d.ts +20 -0
- package/dist/types/nodeSpecs/Leaf.d.ts.map +1 -0
- package/dist/types/nodeSpecs/RawNodeRepresentation.d.ts +2 -0
- package/dist/types/nodeSpecs/RawNodeRepresentation.d.ts.map +1 -0
- package/dist/types/nodeSpecs/index.d.ts +6 -0
- package/dist/types/nodeSpecs/index.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/ChildrenRepresentationReducer.d.ts +2 -0
- package/dist/types/nodeSpecs/types/ChildrenRepresentationReducer.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/ConstrainedLeafRepresentationFactory.d.ts +3 -0
- package/dist/types/nodeSpecs/types/ConstrainedLeafRepresentationFactory.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.d.ts +2 -0
- package/dist/types/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/RepresentationFactorySite.d.ts +2 -0
- package/dist/types/nodeSpecs/types/RepresentationFactorySite.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/StaticContextFactory.d.ts +2 -0
- package/dist/types/nodeSpecs/types/StaticContextFactory.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/SyntheticChildrenFactory.d.ts +3 -0
- package/dist/types/nodeSpecs/types/SyntheticChildrenFactory.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.d.ts +3 -0
- package/dist/types/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.d.ts +3 -0
- package/dist/types/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/ValidFactoryName.d.ts +2 -0
- package/dist/types/nodeSpecs/types/ValidFactoryName.d.ts.map +1 -0
- package/dist/types/nodeSpecs/types/index.d.ts +10 -0
- package/dist/types/nodeSpecs/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const getErrorMessage = (factory, node, staticContext) => {
|
|
4
|
+
return typeof factory === "string" ? factory : factory(node, staticContext);
|
|
5
|
+
};
|
|
6
|
+
exports.getErrorMessage = getErrorMessage;
|
|
7
|
+
//# sourceMappingURL=getErrorMessage.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getErrorMessage.cjs","sources":["../../../../../packages/react-multipass-rendering/src/helpers/getErrorMessage.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ErrorMessageFactory } from '../ErrorMessageFactory'\n\nexport const getErrorMessage = <StaticContext>(\n\tfactory: ErrorMessageFactory<StaticContext>,\n\tnode: ReactNode,\n\tstaticContext: StaticContext,\n): string => {\n\treturn typeof factory === 'string' ? factory : factory(node, staticContext)\n}\n"],"names":[],"mappings":";;AAGO,MAAM,kBAAkB,CAC9B,SACA,MACA,kBACY;AACZ,SAAO,OAAO,YAAY,WAAW,UAAU,QAAQ,MAAM,aAAa;AAC3E;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getErrorMessage.js","sources":["../../../../../packages/react-multipass-rendering/src/helpers/getErrorMessage.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ErrorMessageFactory } from '../ErrorMessageFactory'\n\nexport const getErrorMessage = <StaticContext>(\n\tfactory: ErrorMessageFactory<StaticContext>,\n\tnode: ReactNode,\n\tstaticContext: StaticContext,\n): string => {\n\treturn typeof factory === 'string' ? factory : factory(node, staticContext)\n}\n"],"names":[],"mappings":"AAGO,MAAM,kBAAkB,CAC9B,SACA,MACA,kBACY;AACZ,SAAO,OAAO,YAAY,WAAW,UAAU,QAAQ,MAAM,aAAa;AAC3E;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const ChildrenAnalyzerError = require("../ChildrenAnalyzerError.cjs");
|
|
5
|
+
const wrapError = (e, currentComponentName, methodName, path) => {
|
|
6
|
+
if (!(e instanceof Error)) {
|
|
7
|
+
throw e;
|
|
8
|
+
}
|
|
9
|
+
const componentPath = path.map((it, index) => {
|
|
10
|
+
const { children, ...props } = it.props;
|
|
11
|
+
const printProps = (props2) => {
|
|
12
|
+
let result = "";
|
|
13
|
+
for (const [key, value] of Object.entries(props2)) {
|
|
14
|
+
if (value === void 0) {
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
const valuePrinted = JSON.stringify(value, (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
|
+
result += ` ${key}=${valuePrinted}`;
|
|
28
|
+
} catch {
|
|
29
|
+
result += ` ${key}=(failed to print a value)`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
const componentName = typeof it.type === "object" && "displayName" in it.type ? it.type.displayName : null;
|
|
35
|
+
const propsPrinted = printProps(props);
|
|
36
|
+
const indent = " ".repeat(index);
|
|
37
|
+
return `${indent}<${componentName ?? "???"}${propsPrinted}>`;
|
|
38
|
+
});
|
|
39
|
+
const errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:
|
|
40
|
+
${e.message || "unknown error"}`;
|
|
41
|
+
throw new ChildrenAnalyzerError.ChildrenAnalyzerError(errorMessage, {
|
|
42
|
+
cause: e,
|
|
43
|
+
details: `Component path:
|
|
44
|
+
${componentPath.join("\n")}`
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
exports.wrapError = wrapError;
|
|
48
|
+
//# sourceMappingURL=wrapError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrapError.cjs","sources":["../../../../../packages/react-multipass-rendering/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 as Record<string, any>\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\tif (typeof value === 'function') {\n\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn value\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","ChildrenAnalyzerError"],"mappings":";;;;AAGO,MAAM,YAAY,CAAC,GAAY,sBAA8B,YAAoB,SAAgC;AACvH,MAAI,EAAE,aAAa,QAAQ;AAC1B,UAAM;AAAA,EACP;AAEA,QAAM,gBAAgB,KAAK,IAAI,CAAC,IAAI,UAAU;AAC7C,UAAM,EAAE,UAAU,GAAG,MAAA,IAAU,GAAG;AAClC,UAAM,aAAa,CAACA,WAAe;AAClC,UAAI,SAAS;AACb,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQA,MAAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACA,YAAI;AACH,gBAAM,eAAe,KAAK,UAAU,OAAO,CAACC,MAAKC,WAAU;AAC1D,gBAAI,OAAOA,WAAU,YAAY;AAChC,qBAAO;AAAA,YACR;AACA,gBAAI,MAAM,eAAeA,MAAK,GAAG;AAChC,qBAAO;AAAA,YACR;AACA,mBAAOA;AAAAA,UACR,CAAC;AACD,oBAAU,IAAI,GAAG,IAAI,YAAY;AAAA,QAClC,QAAQ;AACP,oBAAU,IAAI,GAAG;AAAA,QAClB;AAAA,MACD;AACA,aAAO;AAAA,IACR;AACA,UAAM,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AAC/G,UAAM,eAAe,WAAW,KAAK;AACrC,UAAM,SAAS,KAAK,OAAO,KAAK;AAChC,WAAO,GAAG,MAAM,IAAI,iBAAiB,KAAK,GAAG,YAAY;AAAA,EAC1D,CAAC;AACD,QAAM,eAAe,iCAAiC,oBAAoB,OAAO,UAAU;AAAA,EAAM,EAAE,WAAW,eAAe;AAE7H,QAAM,IAAIC,sBAAAA,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI,CAAC;AAAA,EAAA,CACrD;AACF;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React__default 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(value, (key2, value2) => {
|
|
17
|
+
if (typeof value2 === "function") {
|
|
18
|
+
return "(function)";
|
|
19
|
+
}
|
|
20
|
+
if (React__default.isValidElement(value2)) {
|
|
21
|
+
return "(react element)";
|
|
22
|
+
}
|
|
23
|
+
return value2;
|
|
24
|
+
});
|
|
25
|
+
result += ` ${key}=${valuePrinted}`;
|
|
26
|
+
} catch {
|
|
27
|
+
result += ` ${key}=(failed to print a value)`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
const componentName = typeof it.type === "object" && "displayName" in it.type ? it.type.displayName : null;
|
|
33
|
+
const propsPrinted = printProps(props);
|
|
34
|
+
const indent = " ".repeat(index);
|
|
35
|
+
return `${indent}<${componentName ?? "???"}${propsPrinted}>`;
|
|
36
|
+
});
|
|
37
|
+
const errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:
|
|
38
|
+
${e.message || "unknown error"}`;
|
|
39
|
+
throw new ChildrenAnalyzerError(errorMessage, {
|
|
40
|
+
cause: e,
|
|
41
|
+
details: `Component path:
|
|
42
|
+
${componentPath.join("\n")}`
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
wrapError
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=wrapError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrapError.js","sources":["../../../../../packages/react-multipass-rendering/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 as Record<string, any>\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\tif (typeof value === 'function') {\n\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn value\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","React"],"mappings":";;AAGO,MAAM,YAAY,CAAC,GAAY,sBAA8B,YAAoB,SAAgC;AACvH,MAAI,EAAE,aAAa,QAAQ;AAC1B,UAAM;AAAA,EACP;AAEA,QAAM,gBAAgB,KAAK,IAAI,CAAC,IAAI,UAAU;AAC7C,UAAM,EAAE,UAAU,GAAG,MAAA,IAAU,GAAG;AAClC,UAAM,aAAa,CAACA,WAAe;AAClC,UAAI,SAAS;AACb,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQA,MAAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACA,YAAI;AACH,gBAAM,eAAe,KAAK,UAAU,OAAO,CAACC,MAAKC,WAAU;AAC1D,gBAAI,OAAOA,WAAU,YAAY;AAChC,qBAAO;AAAA,YACR;AACA,gBAAIC,eAAM,eAAeD,MAAK,GAAG;AAChC,qBAAO;AAAA,YACR;AACA,mBAAOA;AAAAA,UACR,CAAC;AACD,oBAAU,IAAI,GAAG,IAAI,YAAY;AAAA,QAClC,QAAQ;AACP,oBAAU,IAAI,GAAG;AAAA,QAClB;AAAA,MACD;AACA,aAAO;AAAA,IACR;AACA,UAAM,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AAC/G,UAAM,eAAe,WAAW,KAAK;AACrC,UAAM,SAAS,KAAK,OAAO,KAAK;AAChC,WAAO,GAAG,MAAM,IAAI,iBAAiB,KAAK,GAAG,YAAY;AAAA,EAC1D,CAAC;AACD,QAAM,eAAe,iCAAiC,oBAAoB,OAAO,UAAU;AAAA,EAAM,EAAE,WAAW,eAAe;AAE7H,QAAM,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI,CAAC;AAAA,EAAA,CACrD;AACF;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const ChildrenAnalyzerError = require("../ChildrenAnalyzerError.cjs");
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
|
+
const _BranchNode = class _BranchNode2 {
|
|
8
|
+
constructor(factory, componentOrReducer, options) {
|
|
9
|
+
__publicField(this, "specification");
|
|
10
|
+
__publicField(this, "options");
|
|
11
|
+
if (typeof factory !== "function") {
|
|
12
|
+
this.specification = {
|
|
13
|
+
type: "declarationSite",
|
|
14
|
+
factoryMethodName: factory,
|
|
15
|
+
childrenRepresentationReducer: componentOrReducer
|
|
16
|
+
};
|
|
17
|
+
} else if (typeof factory === "function") {
|
|
18
|
+
this.specification = {
|
|
19
|
+
type: "useSite",
|
|
20
|
+
factory,
|
|
21
|
+
ComponentType: componentOrReducer
|
|
22
|
+
};
|
|
23
|
+
} else {
|
|
24
|
+
throw new ChildrenAnalyzerError.ChildrenAnalyzerError("Invalid arguments");
|
|
25
|
+
}
|
|
26
|
+
this.options = {
|
|
27
|
+
..._BranchNode2.defaultOptions,
|
|
28
|
+
...options
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
__publicField(_BranchNode, "defaultOptions", {
|
|
33
|
+
childrenAreOptional: false,
|
|
34
|
+
childrenAbsentErrorMessage: "Component must have children!"
|
|
35
|
+
});
|
|
36
|
+
let BranchNode = _BranchNode;
|
|
37
|
+
exports.BranchNode = BranchNode;
|
|
38
|
+
//# sourceMappingURL=BranchNode.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BranchNode.cjs","sources":["../../../../../packages/react-multipass-rendering/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\ttype: 'declarationSite'\n\t\t\tfactoryMethodName: FactoryMethodName\n\t\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<\n\t\t\t\tChildrenRepresentation,\n\t\t\t\tReducedChildrenRepresentation\n\t\t\t>\n\t\t}\n\t\t| {\n\t\t\ttype: 'useSite'\n\t\t\tfactory: UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>\n\t\t\tComponentType?: ElementType<Props>\n\t\t}\n}\n\nexport { BranchNode }\n"],"names":["_BranchNode","ChildrenAnalyzerError"],"mappings":";;;;;;AAKA,MAAM,cAAN,MAAMA,aAOJ;AAAA,EAgCM,YACN,SAGA,oBAGA,SACC;AAlCF,kBAAA,MAAgB,eAAA;AAShB,kBAAA,MAAgB,SAAA;AA0Bf,QAAI,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,QACnB,+BAA+B;AAAA,MAAA;AAAA,IAKjC,WAAW,OAAO,YAAY,YAAY;AACzC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA,eAAe;AAAA,MAAA;AAAA,IAEjB,OAAO;AACN,YAAM,IAAIC,sBAAAA,sBAAsB,mBAAmB;AAAA,IACpD;AACA,SAAK,UAAU;AAAA,MACd,GAAGD,aAAW;AAAA,MACd,GAAG;AAAA,IAAA;AAAA,EAEL;AACD;AA/DC,cARK,aAQU,kBAAoC;AAAA,EAClD,qBAAqB;AAAA,EACrB,4BAA4B;AAC7B,CAAA;AAXD,IAAM,aAAN;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChildrenAnalyzerError } from "../ChildrenAnalyzerError.js";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
const _BranchNode = class _BranchNode2 {
|
|
6
|
+
constructor(factory, componentOrReducer, options) {
|
|
7
|
+
__publicField(this, "specification");
|
|
8
|
+
__publicField(this, "options");
|
|
9
|
+
if (typeof factory !== "function") {
|
|
10
|
+
this.specification = {
|
|
11
|
+
type: "declarationSite",
|
|
12
|
+
factoryMethodName: factory,
|
|
13
|
+
childrenRepresentationReducer: componentOrReducer
|
|
14
|
+
};
|
|
15
|
+
} else if (typeof factory === "function") {
|
|
16
|
+
this.specification = {
|
|
17
|
+
type: "useSite",
|
|
18
|
+
factory,
|
|
19
|
+
ComponentType: componentOrReducer
|
|
20
|
+
};
|
|
21
|
+
} else {
|
|
22
|
+
throw new ChildrenAnalyzerError("Invalid arguments");
|
|
23
|
+
}
|
|
24
|
+
this.options = {
|
|
25
|
+
..._BranchNode2.defaultOptions,
|
|
26
|
+
...options
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
__publicField(_BranchNode, "defaultOptions", {
|
|
31
|
+
childrenAreOptional: false,
|
|
32
|
+
childrenAbsentErrorMessage: "Component must have children!"
|
|
33
|
+
});
|
|
34
|
+
let BranchNode = _BranchNode;
|
|
35
|
+
export {
|
|
36
|
+
BranchNode
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=BranchNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BranchNode.js","sources":["../../../../../packages/react-multipass-rendering/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\ttype: 'declarationSite'\n\t\t\tfactoryMethodName: FactoryMethodName\n\t\t\tchildrenRepresentationReducer: ChildrenRepresentationReducer<\n\t\t\t\tChildrenRepresentation,\n\t\t\t\tReducedChildrenRepresentation\n\t\t\t>\n\t\t}\n\t\t| {\n\t\t\ttype: 'useSite'\n\t\t\tfactory: UseSiteBranchNodeRepresentationFactory<Props, ChildrenRepresentation, Representation, StaticContext>\n\t\t\tComponentType?: ElementType<Props>\n\t\t}\n}\n\nexport { BranchNode }\n"],"names":["_BranchNode"],"mappings":";;;;AAKA,MAAM,cAAN,MAAMA,aAOJ;AAAA,EAgCM,YACN,SAGA,oBAGA,SACC;AAlCF,kBAAA,MAAgB,eAAA;AAShB,kBAAA,MAAgB,SAAA;AA0Bf,QAAI,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,QACnB,+BAA+B;AAAA,MAAA;AAAA,IAKjC,WAAW,OAAO,YAAY,YAAY;AACzC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA,eAAe;AAAA,MAAA;AAAA,IAEjB,OAAO;AACN,YAAM,IAAI,sBAAsB,mBAAmB;AAAA,IACpD;AACA,SAAK,UAAU;AAAA,MACd,GAAGA,aAAW;AAAA,MACd,GAAG;AAAA,IAAA;AAAA,EAEL;AACD;AA/DC,cARK,aAQU,kBAAoC;AAAA,EAClD,qBAAqB;AAAA,EACrB,4BAA4B;AAC7B,CAAA;AAXD,IAAM,aAAN;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
6
|
+
class Leaf {
|
|
7
|
+
constructor(factory, ComponentType) {
|
|
8
|
+
__publicField(this, "specification");
|
|
9
|
+
if (typeof factory === "function") {
|
|
10
|
+
this.specification = {
|
|
11
|
+
type: "useSite",
|
|
12
|
+
ComponentType,
|
|
13
|
+
factory
|
|
14
|
+
};
|
|
15
|
+
} else {
|
|
16
|
+
this.specification = {
|
|
17
|
+
type: "declarationSite",
|
|
18
|
+
factoryMethodName: factory
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.Leaf = Leaf;
|
|
24
|
+
//# sourceMappingURL=Leaf.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Leaf.cjs","sources":["../../../../../packages/react-multipass-rendering/src/nodeSpecs/Leaf.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport type { ConstrainedLeafRepresentationFactory, UnconstrainedLeafRepresentationFactory, ValidFactoryName } 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\ttype: 'declarationSite'\n\t\t\tfactoryMethodName: FactoryMethodName\n\t\t}\n\t\t| {\n\t\t\ttype: 'useSite'\n\t\t\tfactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>\n\t\t\tComponentType?: ElementType<Props>\n\t\t}\n}\n\nexport { Leaf }\n"],"names":[],"mappings":";;;;;AAGA,MAAM,KAKJ;AAAA,EASM,YACN,SACA,eACC;AAXF,kBAAA,MAAgB,eAAA;AAYf,QAAI,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MAAA;AAAA,IAEF,OAAO;AACN,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN,mBAAmB;AAAA,MAAA;AAAA,IAErB;AAAA,EACD;AACD;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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) => __defNormalProp(obj, key + "", value);
|
|
4
|
+
class Leaf {
|
|
5
|
+
constructor(factory, ComponentType) {
|
|
6
|
+
__publicField(this, "specification");
|
|
7
|
+
if (typeof factory === "function") {
|
|
8
|
+
this.specification = {
|
|
9
|
+
type: "useSite",
|
|
10
|
+
ComponentType,
|
|
11
|
+
factory
|
|
12
|
+
};
|
|
13
|
+
} else {
|
|
14
|
+
this.specification = {
|
|
15
|
+
type: "declarationSite",
|
|
16
|
+
factoryMethodName: factory
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
Leaf
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Leaf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Leaf.js","sources":["../../../../../packages/react-multipass-rendering/src/nodeSpecs/Leaf.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport type { ConstrainedLeafRepresentationFactory, UnconstrainedLeafRepresentationFactory, ValidFactoryName } 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\ttype: 'declarationSite'\n\t\t\tfactoryMethodName: FactoryMethodName\n\t\t}\n\t\t| {\n\t\t\ttype: 'useSite'\n\t\t\tfactory: UnconstrainedLeafRepresentationFactory<Props, Representation, StaticContext>\n\t\t\tComponentType?: ElementType<Props>\n\t\t}\n}\n\nexport { Leaf }\n"],"names":[],"mappings":";;;AAGA,MAAM,KAKJ;AAAA,EASM,YACN,SACA,eACC;AAXF,kBAAA,MAAgB,eAAA;AAYf,QAAI,OAAO,YAAY,YAAY;AAClC,WAAK,gBAAgB;AAAA,QACpB,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MAAA;AAAA,IAEF,OAAO;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;CAmLnB"}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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,GAAI,aAAa,EAC5C,SAAS,mBAAmB,CAAC,aAAa,CAAC,EAC3C,MAAM,SAAS,EACf,eAAe,aAAa,KAC1B,MAEF,CAAA"}
|
|
@@ -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 @@
|
|
|
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,GAAI,GAAG,OAAO,EAAE,sBAAsB,MAAM,EAAE,YAAY,MAAM,EAAE,MAAM,YAAY,EAAE,KAAG,KAyC9G,CAAA"}
|
|
@@ -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;QACD,IAAI,EAAE,iBAAiB,CAAA;QACvB,iBAAiB,EAAE,iBAAiB,CAAA;QACpC,6BAA6B,EAAE,6BAA6B,CAC3D,sBAAsB,EACtB,6BAA6B,CAC7B,CAAA;KACD,GACC;QACD,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;KAClC,CAAA;CACF;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -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,EAAE,oCAAoC,EAAE,sCAAsC,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE7H,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;QACD,IAAI,EAAE,iBAAiB,CAAA;QACvB,iBAAiB,EAAE,iBAAiB,CAAA;KACpC,GACC;QACD,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;KAClC,CAAA;CACF;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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 } from 'react';
|
|
2
|
+
export type UnconstrainedLeafRepresentationFactory<Props extends {}, Representation, StaticContext> = (node: string | number | bigint | 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,MAAM,OAAO,CAAA;AAEzC,MAAM,MAAM,sCAAsC,CAAC,KAAK,SAAS,EAAE,EAAE,cAAc,EAAE,aAAa,IAAI,CACrG,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EACtF,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 @@
|
|
|
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"}
|