@jfdevelops/react-layout 0.17.4 → 0.18.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.
- package/dist/create-config/component-keys.cjs +44 -0
- package/dist/create-config/component-keys.cjs.map +1 -0
- package/dist/create-config/component-keys.mjs +39 -0
- package/dist/create-config/component-keys.mjs.map +1 -0
- package/dist/create-config/define-layout.cjs +42 -5
- package/dist/create-config/define-layout.cjs.map +1 -1
- package/dist/create-config/define-layout.d.cts +12 -10
- package/dist/create-config/define-layout.d.cts.map +1 -1
- package/dist/create-config/define-layout.d.mts +12 -10
- package/dist/create-config/define-layout.d.mts.map +1 -1
- package/dist/create-config/define-layout.mjs +43 -6
- package/dist/create-config/define-layout.mjs.map +1 -1
- package/dist/create-config/for-paths/builder.cjs +192 -0
- package/dist/create-config/for-paths/builder.cjs.map +1 -0
- package/dist/create-config/for-paths/builder.d.cts +77 -0
- package/dist/create-config/for-paths/builder.d.cts.map +1 -0
- package/dist/create-config/for-paths/builder.d.mts +77 -0
- package/dist/create-config/for-paths/builder.d.mts.map +1 -0
- package/dist/create-config/for-paths/builder.mjs +192 -0
- package/dist/create-config/for-paths/builder.mjs.map +1 -0
- package/dist/create-config/for-paths/get-component-for-path.cjs +55 -0
- package/dist/create-config/for-paths/get-component-for-path.cjs.map +1 -0
- package/dist/create-config/for-paths/get-component-for-path.d.cts +55 -0
- package/dist/create-config/for-paths/get-component-for-path.d.cts.map +1 -0
- package/dist/create-config/for-paths/get-component-for-path.d.mts +55 -0
- package/dist/create-config/for-paths/get-component-for-path.d.mts.map +1 -0
- package/dist/create-config/for-paths/get-component-for-path.mjs +55 -0
- package/dist/create-config/for-paths/get-component-for-path.mjs.map +1 -0
- package/dist/create-config/for-paths/index.d.cts +2 -0
- package/dist/create-config/for-paths/index.d.mts +2 -0
- package/dist/create-config/for-resource.cjs.map +1 -1
- package/dist/create-config/for-resource.d.cts +19 -19
- package/dist/create-config/for-resource.d.cts.map +1 -1
- package/dist/create-config/for-resource.d.mts +19 -19
- package/dist/create-config/for-resource.d.mts.map +1 -1
- package/dist/create-config/for-resource.mjs.map +1 -1
- package/dist/create-config/for-resources/scoped-layout.d.cts +14 -14
- package/dist/create-config/for-resources/scoped-layout.d.cts.map +1 -1
- package/dist/create-config/for-resources/scoped-layout.d.mts +14 -14
- package/dist/create-config/for-resources/scoped-layout.d.mts.map +1 -1
- package/dist/create-config/get-component.cjs +60 -11
- package/dist/create-config/get-component.cjs.map +1 -1
- package/dist/create-config/get-component.d.cts +75 -6
- package/dist/create-config/get-component.d.cts.map +1 -1
- package/dist/create-config/get-component.d.mts +75 -6
- package/dist/create-config/get-component.d.mts.map +1 -1
- package/dist/create-config/get-component.mjs +61 -11
- package/dist/create-config/get-component.mjs.map +1 -1
- package/dist/create-config/index.d.cts +6 -1
- package/dist/create-config/index.d.mts +6 -1
- package/dist/create-config/is-sub-resource-key.cjs +15 -0
- package/dist/create-config/is-sub-resource-key.cjs.map +1 -0
- package/dist/create-config/is-sub-resource-key.d.cts +30 -0
- package/dist/create-config/is-sub-resource-key.d.cts.map +1 -0
- package/dist/create-config/is-sub-resource-key.d.mts +30 -0
- package/dist/create-config/is-sub-resource-key.d.mts.map +1 -0
- package/dist/create-config/is-sub-resource-key.mjs +15 -0
- package/dist/create-config/is-sub-resource-key.mjs.map +1 -0
- package/dist/create-config/paths/generate.cjs +77 -0
- package/dist/create-config/paths/generate.cjs.map +1 -0
- package/dist/create-config/paths/generate.mjs +77 -0
- package/dist/create-config/paths/generate.mjs.map +1 -0
- package/dist/create-config/paths/index.d.cts +2 -0
- package/dist/create-config/paths/index.d.mts +2 -0
- package/dist/create-config/paths/introspect.cjs +123 -0
- package/dist/create-config/paths/introspect.cjs.map +1 -0
- package/dist/create-config/paths/introspect.mjs +118 -0
- package/dist/create-config/paths/introspect.mjs.map +1 -0
- package/dist/create-config/paths/resolve.cjs +130 -0
- package/dist/create-config/paths/resolve.cjs.map +1 -0
- package/dist/create-config/paths/resolve.mjs +129 -0
- package/dist/create-config/paths/resolve.mjs.map +1 -0
- package/dist/create-config/paths/types.d.cts +104 -0
- package/dist/create-config/paths/types.d.cts.map +1 -0
- package/dist/create-config/paths/types.d.mts +104 -0
- package/dist/create-config/paths/types.d.mts.map +1 -0
- package/dist/create-config/paths/variables.cjs +32 -0
- package/dist/create-config/paths/variables.cjs.map +1 -0
- package/dist/create-config/paths/variables.d.cts +32 -0
- package/dist/create-config/paths/variables.d.cts.map +1 -0
- package/dist/create-config/paths/variables.d.mts +32 -0
- package/dist/create-config/paths/variables.d.mts.map +1 -0
- package/dist/create-config/paths/variables.mjs +29 -0
- package/dist/create-config/paths/variables.mjs.map +1 -0
- package/dist/create-config/types.d.cts +28 -8
- package/dist/create-config/types.d.cts.map +1 -1
- package/dist/create-config/types.d.mts +28 -8
- package/dist/create-config/types.d.mts.map +1 -1
- package/dist/errors/invalid-component.cjs +21 -0
- package/dist/errors/invalid-component.cjs.map +1 -0
- package/dist/errors/invalid-component.d.cts +18 -0
- package/dist/errors/invalid-component.d.cts.map +1 -0
- package/dist/errors/invalid-component.d.mts +18 -0
- package/dist/errors/invalid-component.d.mts.map +1 -0
- package/dist/errors/invalid-component.mjs +21 -0
- package/dist/errors/invalid-component.mjs.map +1 -0
- package/dist/errors/invalid-config.cjs +13 -0
- package/dist/errors/invalid-config.cjs.map +1 -0
- package/dist/errors/invalid-config.d.cts +15 -0
- package/dist/errors/invalid-config.d.cts.map +1 -0
- package/dist/errors/invalid-config.d.mts +15 -0
- package/dist/errors/invalid-config.d.mts.map +1 -0
- package/dist/errors/invalid-config.mjs +13 -0
- package/dist/errors/invalid-config.mjs.map +1 -0
- package/dist/errors/invalid-path.cjs +18 -0
- package/dist/errors/invalid-path.cjs.map +1 -0
- package/dist/errors/invalid-path.d.cts +16 -0
- package/dist/errors/invalid-path.d.cts.map +1 -0
- package/dist/errors/invalid-path.d.mts +16 -0
- package/dist/errors/invalid-path.d.mts.map +1 -0
- package/dist/errors/invalid-path.mjs +18 -0
- package/dist/errors/invalid-path.mjs.map +1 -0
- package/dist/errors/invalid-resource.cjs +18 -0
- package/dist/errors/invalid-resource.cjs.map +1 -0
- package/dist/errors/invalid-resource.d.cts +16 -0
- package/dist/errors/invalid-resource.d.cts.map +1 -0
- package/dist/errors/invalid-resource.d.mts +16 -0
- package/dist/errors/invalid-resource.d.mts.map +1 -0
- package/dist/errors/invalid-resource.mjs +18 -0
- package/dist/errors/invalid-resource.mjs.map +1 -0
- package/dist/errors/invalid-sub-resource.cjs +18 -0
- package/dist/errors/invalid-sub-resource.cjs.map +1 -0
- package/dist/errors/invalid-sub-resource.d.cts +17 -0
- package/dist/errors/invalid-sub-resource.d.cts.map +1 -0
- package/dist/errors/invalid-sub-resource.d.mts +17 -0
- package/dist/errors/invalid-sub-resource.d.mts.map +1 -0
- package/dist/errors/invalid-sub-resource.mjs +18 -0
- package/dist/errors/invalid-sub-resource.mjs.map +1 -0
- package/dist/errors/missing-path-variable.cjs +18 -0
- package/dist/errors/missing-path-variable.cjs.map +1 -0
- package/dist/errors/missing-path-variable.d.cts +16 -0
- package/dist/errors/missing-path-variable.d.cts.map +1 -0
- package/dist/errors/missing-path-variable.d.mts +16 -0
- package/dist/errors/missing-path-variable.d.mts.map +1 -0
- package/dist/errors/missing-path-variable.mjs +18 -0
- package/dist/errors/missing-path-variable.mjs.map +1 -0
- package/dist/errors/react-layout-error.cjs +56 -0
- package/dist/errors/react-layout-error.cjs.map +1 -0
- package/dist/errors/react-layout-error.d.cts +46 -0
- package/dist/errors/react-layout-error.d.cts.map +1 -0
- package/dist/errors/react-layout-error.d.mts +46 -0
- package/dist/errors/react-layout-error.d.mts.map +1 -0
- package/dist/errors/react-layout-error.mjs +54 -0
- package/dist/errors/react-layout-error.mjs.map +1 -0
- package/dist/index.cjs +15 -0
- package/dist/index.d.cts +14 -2
- package/dist/index.d.mts +14 -2
- package/dist/index.mjs +8 -1
- package/dist/props.d.cts +14 -4
- package/dist/props.d.cts.map +1 -1
- package/dist/props.d.mts +14 -4
- package/dist/props.d.mts.map +1 -1
- package/dist/resource.cjs.map +1 -1
- package/dist/resource.d.cts +2 -2
- package/dist/resource.d.cts.map +1 -1
- package/dist/resource.d.mts +2 -2
- package/dist/resource.d.mts.map +1 -1
- package/dist/resource.mjs.map +1 -1
- package/dist/utils.d.cts +2 -1
- package/dist/utils.d.cts.map +1 -1
- package/dist/utils.d.mts +2 -1
- package/dist/utils.d.mts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-component.d.ts
|
|
4
|
+
declare const scope: "component";
|
|
5
|
+
/** Context describing an invalid or unconfigured component slot. */
|
|
6
|
+
interface InvalidComponentContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
component: unknown;
|
|
8
|
+
path?: string;
|
|
9
|
+
resource?: string;
|
|
10
|
+
validComponents?: readonly string[];
|
|
11
|
+
reason?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const InvalidComponentError_base: CreatedReactLayoutError<"invalidComponent", "component", InvalidComponentContext>;
|
|
14
|
+
/** Thrown when a requested component slot cannot be resolved. */
|
|
15
|
+
declare class InvalidComponentError extends InvalidComponentError_base {}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { InvalidComponentContext, InvalidComponentError };
|
|
18
|
+
//# sourceMappingURL=invalid-component.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-component.d.mts","names":[],"sources":["../../src/errors/invalid-component.ts"],"mappings":";;;cAKM,KAAA;;UAGW,uBAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,SAAA;EACA,IAAA;EACA,QAAA;EACA,eAAA;EACA,MAAA;AAAA;AAAA,cACD,0BAAA;;cAGY,qBAAA,SAA8B,0BAkC1C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createReactLayoutError } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-component.ts
|
|
4
|
+
const scope = "component";
|
|
5
|
+
/** Thrown when a requested component slot cannot be resolved. */
|
|
6
|
+
var InvalidComponentError = class extends createReactLayoutError({
|
|
7
|
+
code: "invalidComponent",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { component, path, resource, validComponents, reason }) => {
|
|
10
|
+
const quotedComponent = JSON.stringify(component) ?? `"${String(component)}"`;
|
|
11
|
+
const locationParts = [path ? `path "${path}"` : void 0, resource ? `resource "${resource}"` : void 0].filter((part) => part !== void 0);
|
|
12
|
+
const locationMessage = locationParts.length > 0 ? ` for ${locationParts.join(" and ")}` : "";
|
|
13
|
+
return `[${scope}]: ${reason ?? `Component slot ${quotedComponent}${locationMessage} is not configured.`}${validComponents && validComponents.length > 0 ? ` Available component slots are ${new Intl.ListFormat("en", {
|
|
14
|
+
style: "long",
|
|
15
|
+
type: "disjunction"
|
|
16
|
+
}).format(validComponents)}.` : ""}`;
|
|
17
|
+
}) {};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { InvalidComponentError };
|
|
21
|
+
//# sourceMappingURL=invalid-component.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-component.mjs","names":[],"sources":["../../src/errors/invalid-component.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'component' as const;\n\n/** Context describing an invalid or unconfigured component slot. */\nexport interface InvalidComponentContext\n extends ReactLayoutErrorContext<typeof scope> {\n component: unknown;\n path?: string;\n resource?: string;\n validComponents?: readonly string[];\n reason?: string;\n}\n\n/** Thrown when a requested component slot cannot be resolved. */\nexport class InvalidComponentError extends createReactLayoutError(\n { code: 'invalidComponent', scope },\n)(\n (\n scope,\n {\n component,\n path,\n resource,\n validComponents,\n reason,\n }: InvalidComponentContext,\n ) => {\n const quotedComponent =\n JSON.stringify(component) ?? `\"${String(component)}\"`;\n const locationParts = [\n path ? `path \"${path}\"` : undefined,\n resource ? `resource \"${resource}\"` : undefined,\n ].filter((part): part is string => part !== undefined);\n const locationMessage =\n locationParts.length > 0 ? ` for ${locationParts.join(' and ')}` : '';\n const body =\n reason ??\n `Component slot ${quotedComponent}${locationMessage} is not configured.`;\n const validComponentsMessage =\n validComponents && validComponents.length > 0\n ? ` Available component slots are ${new Intl.ListFormat('en', {\n style: 'long',\n type: 'disjunction',\n }).format(validComponents)}.`\n : '';\n\n return `[${scope}]: ${body}${validComponentsMessage}`;\n },\n) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAad,IAAa,wBAAb,cAA2C,uBACzC;CAAE,MAAM;CAAoB;AAAM,CACpC,GAEI,OACA,EACE,WACA,MACA,UACA,iBACA,aAEC;CACH,MAAM,kBACJ,KAAK,UAAU,SAAS,KAAK,IAAI,OAAO,SAAS,EAAE;CACrD,MAAM,gBAAgB,CACpB,OAAO,SAAS,KAAK,KAAK,QAC1B,WAAW,aAAa,SAAS,KAAK,MACxC,EAAE,QAAQ,SAAyB,SAAS,MAAS;CACrD,MAAM,kBACJ,cAAc,SAAS,IAAI,QAAQ,cAAc,KAAK,OAAO,MAAM;CAYrE,OAAO,IAAI,MAAM,KAVf,UACA,kBAAkB,kBAAkB,gBAAgB,uBAEpD,mBAAmB,gBAAgB,SAAS,IACxC,kCAAkC,IAAI,KAAK,WAAW,MAAM;EAC1D,OAAO;EACP,MAAM;CACR,CAAC,EAAE,OAAO,eAAe,EAAE,KAC3B;AAGR,CACF,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_react_layout_error = require('./react-layout-error.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-config.ts
|
|
4
|
+
const scope = "config";
|
|
5
|
+
/** Thrown when a React Layout configuration is invalid. */
|
|
6
|
+
var InvalidConfigError = class extends require_react_layout_error.createReactLayoutError({
|
|
7
|
+
code: "invalidConfig",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { reason }) => `[${scope}]: The layout configuration is invalid: ${reason}`) {};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.InvalidConfigError = InvalidConfigError;
|
|
13
|
+
//# sourceMappingURL=invalid-config.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-config.cjs","names":["createReactLayoutError"],"sources":["../../src/errors/invalid-config.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'config' as const;\n\n/** Context describing a configuration that React Layout cannot use. */\nexport interface InvalidConfigContext\n extends ReactLayoutErrorContext<typeof scope> {\n reason: string;\n config?: unknown;\n}\n\n/** Thrown when a React Layout configuration is invalid. */\nexport class InvalidConfigError extends createReactLayoutError(\n { code: 'invalidConfig', scope },\n)(\n (scope, { reason }: InvalidConfigContext) =>\n `[${scope}]: The layout configuration is invalid: ${reason}`,\n) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAUd,IAAa,qBAAb,cAAwCA,kDACtC;CAAE,MAAM;CAAiB;AAAM,CACjC,GACG,OAAO,EAAE,aACR,IAAI,MAAM,0CAA0C,QACxD,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-config.d.ts
|
|
4
|
+
declare const scope: "config";
|
|
5
|
+
/** Context describing a configuration that React Layout cannot use. */
|
|
6
|
+
interface InvalidConfigContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
reason: string;
|
|
8
|
+
config?: unknown;
|
|
9
|
+
}
|
|
10
|
+
declare const InvalidConfigError_base: CreatedReactLayoutError<"invalidConfig", "config", InvalidConfigContext>;
|
|
11
|
+
/** Thrown when a React Layout configuration is invalid. */
|
|
12
|
+
declare class InvalidConfigError extends InvalidConfigError_base {}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { InvalidConfigContext, InvalidConfigError };
|
|
15
|
+
//# sourceMappingURL=invalid-config.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-config.d.cts","names":[],"sources":["../../src/errors/invalid-config.ts"],"mappings":";;;cAKM,KAAA;;UAGW,oBAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,MAAA;EACA,MAAA;AAAA;AAAA,cACD,uBAAA;AAJD;AAAA,cAOa,kBAAA,SAA2B,uBAKvC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-config.d.ts
|
|
4
|
+
declare const scope: "config";
|
|
5
|
+
/** Context describing a configuration that React Layout cannot use. */
|
|
6
|
+
interface InvalidConfigContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
reason: string;
|
|
8
|
+
config?: unknown;
|
|
9
|
+
}
|
|
10
|
+
declare const InvalidConfigError_base: CreatedReactLayoutError<"invalidConfig", "config", InvalidConfigContext>;
|
|
11
|
+
/** Thrown when a React Layout configuration is invalid. */
|
|
12
|
+
declare class InvalidConfigError extends InvalidConfigError_base {}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { InvalidConfigContext, InvalidConfigError };
|
|
15
|
+
//# sourceMappingURL=invalid-config.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-config.d.mts","names":[],"sources":["../../src/errors/invalid-config.ts"],"mappings":";;;cAKM,KAAA;;UAGW,oBAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,MAAA;EACA,MAAA;AAAA;AAAA,cACD,uBAAA;AAJD;AAAA,cAOa,kBAAA,SAA2B,uBAKvC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createReactLayoutError } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-config.ts
|
|
4
|
+
const scope = "config";
|
|
5
|
+
/** Thrown when a React Layout configuration is invalid. */
|
|
6
|
+
var InvalidConfigError = class extends createReactLayoutError({
|
|
7
|
+
code: "invalidConfig",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { reason }) => `[${scope}]: The layout configuration is invalid: ${reason}`) {};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { InvalidConfigError };
|
|
13
|
+
//# sourceMappingURL=invalid-config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-config.mjs","names":[],"sources":["../../src/errors/invalid-config.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'config' as const;\n\n/** Context describing a configuration that React Layout cannot use. */\nexport interface InvalidConfigContext\n extends ReactLayoutErrorContext<typeof scope> {\n reason: string;\n config?: unknown;\n}\n\n/** Thrown when a React Layout configuration is invalid. */\nexport class InvalidConfigError extends createReactLayoutError(\n { code: 'invalidConfig', scope },\n)(\n (scope, { reason }: InvalidConfigContext) =>\n `[${scope}]: The layout configuration is invalid: ${reason}`,\n) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAUd,IAAa,qBAAb,cAAwC,uBACtC;CAAE,MAAM;CAAiB;AAAM,CACjC,GACG,OAAO,EAAE,aACR,IAAI,MAAM,0CAA0C,QACxD,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_react_layout_error = require('./react-layout-error.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-path.ts
|
|
4
|
+
const scope = "path";
|
|
5
|
+
/** Thrown when a requested layout path is invalid or unavailable. */
|
|
6
|
+
var InvalidPathError = class extends require_react_layout_error.createReactLayoutError({
|
|
7
|
+
code: "invalidPath",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { path, validPaths, reason }) => {
|
|
10
|
+
return `[${scope}]: Path ${JSON.stringify(path) ?? `"${String(path)}"`} is not available.${reason ? ` ${reason}` : ""}${validPaths && validPaths.length > 0 ? ` Available paths are ${new Intl.ListFormat("en", {
|
|
11
|
+
style: "long",
|
|
12
|
+
type: "disjunction"
|
|
13
|
+
}).format(validPaths)}.` : ""}`;
|
|
14
|
+
}) {};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.InvalidPathError = InvalidPathError;
|
|
18
|
+
//# sourceMappingURL=invalid-path.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-path.cjs","names":["createReactLayoutError"],"sources":["../../src/errors/invalid-path.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'path' as const;\n\n/** Context describing a path that is unavailable to React Layout. */\nexport interface InvalidPathContext\n extends ReactLayoutErrorContext<typeof scope> {\n path: unknown;\n validPaths?: readonly string[];\n reason?: string;\n}\n\n/** Thrown when a requested layout path is invalid or unavailable. */\nexport class InvalidPathError extends createReactLayoutError(\n { code: 'invalidPath', scope },\n)((scope, { path, validPaths, reason }: InvalidPathContext) => {\n const quotedPath = JSON.stringify(path) ?? `\"${String(path)}\"`;\n const reasonMessage = reason ? ` ${reason}` : '';\n const validPathsMessage =\n validPaths && validPaths.length > 0\n ? ` Available paths are ${new Intl.ListFormat('en', {\n style: 'long',\n type: 'disjunction',\n }).format(validPaths)}.`\n : '';\n\n return `[${scope}]: Path ${quotedPath} is not available.${reasonMessage}${validPathsMessage}`;\n}) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAWd,IAAa,mBAAb,cAAsCA,kDACpC;CAAE,MAAM;CAAe;AAAM,CAC/B,GAAG,OAAO,EAAE,MAAM,YAAY,aAAiC;CAW7D,OAAO,IAAI,MAAM,UAVE,KAAK,UAAU,IAAI,KAAK,IAAI,OAAO,IAAI,EAAE,GAUtB,oBAThB,SAAS,IAAI,WAAW,KAE5C,cAAc,WAAW,SAAS,IAC9B,wBAAwB,IAAI,KAAK,WAAW,MAAM;EAChD,OAAO;EACP,MAAM;CACR,CAAC,EAAE,OAAO,UAAU,EAAE,KACtB;AAGR,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-path.d.ts
|
|
4
|
+
declare const scope: "path";
|
|
5
|
+
/** Context describing a path that is unavailable to React Layout. */
|
|
6
|
+
interface InvalidPathContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
path: unknown;
|
|
8
|
+
validPaths?: readonly string[];
|
|
9
|
+
reason?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const InvalidPathError_base: CreatedReactLayoutError<"invalidPath", "path", InvalidPathContext>;
|
|
12
|
+
/** Thrown when a requested layout path is invalid or unavailable. */
|
|
13
|
+
declare class InvalidPathError extends InvalidPathError_base {}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { InvalidPathContext, InvalidPathError };
|
|
16
|
+
//# sourceMappingURL=invalid-path.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-path.d.cts","names":[],"sources":["../../src/errors/invalid-path.ts"],"mappings":";;;cAKM,KAAA;;UAGW,kBAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,IAAA;EACA,UAAA;EACA,MAAA;AAAA;AAAA,cACD,qBAAA;;cAGY,gBAAA,SAAyB,qBAcpC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-path.d.ts
|
|
4
|
+
declare const scope: "path";
|
|
5
|
+
/** Context describing a path that is unavailable to React Layout. */
|
|
6
|
+
interface InvalidPathContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
path: unknown;
|
|
8
|
+
validPaths?: readonly string[];
|
|
9
|
+
reason?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const InvalidPathError_base: CreatedReactLayoutError<"invalidPath", "path", InvalidPathContext>;
|
|
12
|
+
/** Thrown when a requested layout path is invalid or unavailable. */
|
|
13
|
+
declare class InvalidPathError extends InvalidPathError_base {}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { InvalidPathContext, InvalidPathError };
|
|
16
|
+
//# sourceMappingURL=invalid-path.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-path.d.mts","names":[],"sources":["../../src/errors/invalid-path.ts"],"mappings":";;;cAKM,KAAA;;UAGW,kBAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,IAAA;EACA,UAAA;EACA,MAAA;AAAA;AAAA,cACD,qBAAA;;cAGY,gBAAA,SAAyB,qBAcpC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createReactLayoutError } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-path.ts
|
|
4
|
+
const scope = "path";
|
|
5
|
+
/** Thrown when a requested layout path is invalid or unavailable. */
|
|
6
|
+
var InvalidPathError = class extends createReactLayoutError({
|
|
7
|
+
code: "invalidPath",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { path, validPaths, reason }) => {
|
|
10
|
+
return `[${scope}]: Path ${JSON.stringify(path) ?? `"${String(path)}"`} is not available.${reason ? ` ${reason}` : ""}${validPaths && validPaths.length > 0 ? ` Available paths are ${new Intl.ListFormat("en", {
|
|
11
|
+
style: "long",
|
|
12
|
+
type: "disjunction"
|
|
13
|
+
}).format(validPaths)}.` : ""}`;
|
|
14
|
+
}) {};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { InvalidPathError };
|
|
18
|
+
//# sourceMappingURL=invalid-path.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-path.mjs","names":[],"sources":["../../src/errors/invalid-path.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'path' as const;\n\n/** Context describing a path that is unavailable to React Layout. */\nexport interface InvalidPathContext\n extends ReactLayoutErrorContext<typeof scope> {\n path: unknown;\n validPaths?: readonly string[];\n reason?: string;\n}\n\n/** Thrown when a requested layout path is invalid or unavailable. */\nexport class InvalidPathError extends createReactLayoutError(\n { code: 'invalidPath', scope },\n)((scope, { path, validPaths, reason }: InvalidPathContext) => {\n const quotedPath = JSON.stringify(path) ?? `\"${String(path)}\"`;\n const reasonMessage = reason ? ` ${reason}` : '';\n const validPathsMessage =\n validPaths && validPaths.length > 0\n ? ` Available paths are ${new Intl.ListFormat('en', {\n style: 'long',\n type: 'disjunction',\n }).format(validPaths)}.`\n : '';\n\n return `[${scope}]: Path ${quotedPath} is not available.${reasonMessage}${validPathsMessage}`;\n}) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAWd,IAAa,mBAAb,cAAsC,uBACpC;CAAE,MAAM;CAAe;AAAM,CAC/B,GAAG,OAAO,EAAE,MAAM,YAAY,aAAiC;CAW7D,OAAO,IAAI,MAAM,UAVE,KAAK,UAAU,IAAI,KAAK,IAAI,OAAO,IAAI,EAAE,GAUtB,oBAThB,SAAS,IAAI,WAAW,KAE5C,cAAc,WAAW,SAAS,IAC9B,wBAAwB,IAAI,KAAK,WAAW,MAAM;EAChD,OAAO;EACP,MAAM;CACR,CAAC,EAAE,OAAO,UAAU,EAAE,KACtB;AAGR,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_react_layout_error = require('./react-layout-error.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-resource.ts
|
|
4
|
+
const scope = "resource";
|
|
5
|
+
/** Thrown when a requested layout resource is invalid or unavailable. */
|
|
6
|
+
var InvalidResourceError = class extends require_react_layout_error.createReactLayoutError({
|
|
7
|
+
code: "invalidResource",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { resource, validResources, reason }) => {
|
|
10
|
+
return `[${scope}]: Resource ${JSON.stringify(resource) ?? `"${String(resource)}"`} is not available.${reason ? ` ${reason}` : ""}${validResources && validResources.length > 0 ? ` Available resources are ${new Intl.ListFormat("en", {
|
|
11
|
+
style: "long",
|
|
12
|
+
type: "disjunction"
|
|
13
|
+
}).format(validResources)}.` : ""}`;
|
|
14
|
+
}) {};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.InvalidResourceError = InvalidResourceError;
|
|
18
|
+
//# sourceMappingURL=invalid-resource.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-resource.cjs","names":["createReactLayoutError"],"sources":["../../src/errors/invalid-resource.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'resource' as const;\n\n/** Context describing a resource that is unavailable to React Layout. */\nexport interface InvalidResourceContext\n extends ReactLayoutErrorContext<typeof scope> {\n resource: unknown;\n validResources?: readonly string[];\n reason?: string;\n}\n\n/** Thrown when a requested layout resource is invalid or unavailable. */\nexport class InvalidResourceError extends createReactLayoutError(\n { code: 'invalidResource', scope },\n)((scope, { resource, validResources, reason }: InvalidResourceContext) => {\n const quotedResource = JSON.stringify(resource) ?? `\"${String(resource)}\"`;\n const reasonMessage = reason ? ` ${reason}` : '';\n const validResourcesMessage =\n validResources && validResources.length > 0\n ? ` Available resources are ${new Intl.ListFormat('en', {\n style: 'long',\n type: 'disjunction',\n }).format(validResources)}.`\n : '';\n\n return `[${scope}]: Resource ${quotedResource} is not available.${reasonMessage}${validResourcesMessage}`;\n}) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAWd,IAAa,uBAAb,cAA0CA,kDACxC;CAAE,MAAM;CAAmB;AAAM,CACnC,GAAG,OAAO,EAAE,UAAU,gBAAgB,aAAqC;CAWzE,OAAO,IAAI,MAAM,cAVM,KAAK,UAAU,QAAQ,KAAK,IAAI,OAAO,QAAQ,EAAE,GAU1B,oBATxB,SAAS,IAAI,WAAW,KAE5C,kBAAkB,eAAe,SAAS,IACtC,4BAA4B,IAAI,KAAK,WAAW,MAAM;EACpD,OAAO;EACP,MAAM;CACR,CAAC,EAAE,OAAO,cAAc,EAAE,KAC1B;AAGR,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-resource.d.ts
|
|
4
|
+
declare const scope: "resource";
|
|
5
|
+
/** Context describing a resource that is unavailable to React Layout. */
|
|
6
|
+
interface InvalidResourceContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
resource: unknown;
|
|
8
|
+
validResources?: readonly string[];
|
|
9
|
+
reason?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const InvalidResourceError_base: CreatedReactLayoutError<"invalidResource", "resource", InvalidResourceContext>;
|
|
12
|
+
/** Thrown when a requested layout resource is invalid or unavailable. */
|
|
13
|
+
declare class InvalidResourceError extends InvalidResourceError_base {}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { InvalidResourceContext, InvalidResourceError };
|
|
16
|
+
//# sourceMappingURL=invalid-resource.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-resource.d.cts","names":[],"sources":["../../src/errors/invalid-resource.ts"],"mappings":";;;cAKM,KAAA;;UAGW,sBAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,QAAA;EACA,cAAA;EACA,MAAA;AAAA;AAAA,cACD,yBAAA;;cAGY,oBAAA,SAA6B,yBAcxC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-resource.d.ts
|
|
4
|
+
declare const scope: "resource";
|
|
5
|
+
/** Context describing a resource that is unavailable to React Layout. */
|
|
6
|
+
interface InvalidResourceContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
resource: unknown;
|
|
8
|
+
validResources?: readonly string[];
|
|
9
|
+
reason?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const InvalidResourceError_base: CreatedReactLayoutError<"invalidResource", "resource", InvalidResourceContext>;
|
|
12
|
+
/** Thrown when a requested layout resource is invalid or unavailable. */
|
|
13
|
+
declare class InvalidResourceError extends InvalidResourceError_base {}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { InvalidResourceContext, InvalidResourceError };
|
|
16
|
+
//# sourceMappingURL=invalid-resource.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-resource.d.mts","names":[],"sources":["../../src/errors/invalid-resource.ts"],"mappings":";;;cAKM,KAAA;;UAGW,sBAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,QAAA;EACA,cAAA;EACA,MAAA;AAAA;AAAA,cACD,yBAAA;;cAGY,oBAAA,SAA6B,yBAcxC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createReactLayoutError } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-resource.ts
|
|
4
|
+
const scope = "resource";
|
|
5
|
+
/** Thrown when a requested layout resource is invalid or unavailable. */
|
|
6
|
+
var InvalidResourceError = class extends createReactLayoutError({
|
|
7
|
+
code: "invalidResource",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { resource, validResources, reason }) => {
|
|
10
|
+
return `[${scope}]: Resource ${JSON.stringify(resource) ?? `"${String(resource)}"`} is not available.${reason ? ` ${reason}` : ""}${validResources && validResources.length > 0 ? ` Available resources are ${new Intl.ListFormat("en", {
|
|
11
|
+
style: "long",
|
|
12
|
+
type: "disjunction"
|
|
13
|
+
}).format(validResources)}.` : ""}`;
|
|
14
|
+
}) {};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { InvalidResourceError };
|
|
18
|
+
//# sourceMappingURL=invalid-resource.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-resource.mjs","names":[],"sources":["../../src/errors/invalid-resource.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'resource' as const;\n\n/** Context describing a resource that is unavailable to React Layout. */\nexport interface InvalidResourceContext\n extends ReactLayoutErrorContext<typeof scope> {\n resource: unknown;\n validResources?: readonly string[];\n reason?: string;\n}\n\n/** Thrown when a requested layout resource is invalid or unavailable. */\nexport class InvalidResourceError extends createReactLayoutError(\n { code: 'invalidResource', scope },\n)((scope, { resource, validResources, reason }: InvalidResourceContext) => {\n const quotedResource = JSON.stringify(resource) ?? `\"${String(resource)}\"`;\n const reasonMessage = reason ? ` ${reason}` : '';\n const validResourcesMessage =\n validResources && validResources.length > 0\n ? ` Available resources are ${new Intl.ListFormat('en', {\n style: 'long',\n type: 'disjunction',\n }).format(validResources)}.`\n : '';\n\n return `[${scope}]: Resource ${quotedResource} is not available.${reasonMessage}${validResourcesMessage}`;\n}) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAWd,IAAa,uBAAb,cAA0C,uBACxC;CAAE,MAAM;CAAmB;AAAM,CACnC,GAAG,OAAO,EAAE,UAAU,gBAAgB,aAAqC;CAWzE,OAAO,IAAI,MAAM,cAVM,KAAK,UAAU,QAAQ,KAAK,IAAI,OAAO,QAAQ,EAAE,GAU1B,oBATxB,SAAS,IAAI,WAAW,KAE5C,kBAAkB,eAAe,SAAS,IACtC,4BAA4B,IAAI,KAAK,WAAW,MAAM;EACpD,OAAO;EACP,MAAM;CACR,CAAC,EAAE,OAAO,cAAc,EAAE,KAC1B;AAGR,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_react_layout_error = require('./react-layout-error.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-sub-resource.ts
|
|
4
|
+
const scope = "subResource";
|
|
5
|
+
/** Thrown when a requested sub-resource is invalid or unavailable. */
|
|
6
|
+
var InvalidSubResourceError = class extends require_react_layout_error.createReactLayoutError({
|
|
7
|
+
code: "invalidSubResource",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { subResource, resource, validSubResources, reason }) => {
|
|
10
|
+
return `[${scope}]: Sub-resource ${JSON.stringify(subResource) ?? `"${String(subResource)}"`}${resource ? ` for resource "${resource}"` : ""} is not available.${reason ? ` ${reason}` : ""}${validSubResources && validSubResources.length > 0 ? ` Available sub-resources are ${new Intl.ListFormat("en", {
|
|
11
|
+
style: "long",
|
|
12
|
+
type: "disjunction"
|
|
13
|
+
}).format(validSubResources)}.` : ""}`;
|
|
14
|
+
}) {};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.InvalidSubResourceError = InvalidSubResourceError;
|
|
18
|
+
//# sourceMappingURL=invalid-sub-resource.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-sub-resource.cjs","names":["createReactLayoutError"],"sources":["../../src/errors/invalid-sub-resource.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'subResource' as const;\n\n/** Context describing an unavailable sub-resource and its owning resource. */\nexport interface InvalidSubResourceContext\n extends ReactLayoutErrorContext<typeof scope> {\n subResource: unknown;\n resource?: string;\n validSubResources?: readonly string[];\n reason?: string;\n}\n\n/** Thrown when a requested sub-resource is invalid or unavailable. */\nexport class InvalidSubResourceError extends createReactLayoutError(\n { code: 'invalidSubResource', scope },\n)(\n (\n scope,\n {\n subResource,\n resource,\n validSubResources,\n reason,\n }: InvalidSubResourceContext,\n ) => {\n const quotedSubResource =\n JSON.stringify(subResource) ?? `\"${String(subResource)}\"`;\n const resourceMessage = resource ? ` for resource \"${resource}\"` : '';\n const reasonMessage = reason ? ` ${reason}` : '';\n const validSubResourcesMessage =\n validSubResources && validSubResources.length > 0\n ? ` Available sub-resources are ${new Intl.ListFormat('en', {\n style: 'long',\n type: 'disjunction',\n }).format(validSubResources)}.`\n : '';\n\n return `[${scope}]: Sub-resource ${quotedSubResource}${resourceMessage} is not available.${reasonMessage}${validSubResourcesMessage}`;\n },\n) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAYd,IAAa,0BAAb,cAA6CA,kDAC3C;CAAE,MAAM;CAAsB;AAAM,CACtC,GAEI,OACA,EACE,aACA,UACA,mBACA,aAEC;CAaH,OAAO,IAAI,MAAM,kBAXf,KAAK,UAAU,WAAW,KAAK,IAAI,OAAO,WAAW,EAAE,KACjC,WAAW,kBAAkB,SAAS,KAAK,GAUI,oBATjD,SAAS,IAAI,WAAW,KAE5C,qBAAqB,kBAAkB,SAAS,IAC5C,gCAAgC,IAAI,KAAK,WAAW,MAAM;EACxD,OAAO;EACP,MAAM;CACR,CAAC,EAAE,OAAO,iBAAiB,EAAE,KAC7B;AAGR,CACF,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-sub-resource.d.ts
|
|
4
|
+
declare const scope: "subResource";
|
|
5
|
+
/** Context describing an unavailable sub-resource and its owning resource. */
|
|
6
|
+
interface InvalidSubResourceContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
subResource: unknown;
|
|
8
|
+
resource?: string;
|
|
9
|
+
validSubResources?: readonly string[];
|
|
10
|
+
reason?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const InvalidSubResourceError_base: CreatedReactLayoutError<"invalidSubResource", "subResource", InvalidSubResourceContext>;
|
|
13
|
+
/** Thrown when a requested sub-resource is invalid or unavailable. */
|
|
14
|
+
declare class InvalidSubResourceError extends InvalidSubResourceError_base {}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { InvalidSubResourceContext, InvalidSubResourceError };
|
|
17
|
+
//# sourceMappingURL=invalid-sub-resource.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-sub-resource.d.cts","names":[],"sources":["../../src/errors/invalid-sub-resource.ts"],"mappings":";;;cAKM,KAAA;;UAGW,yBAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,WAAA;EACA,QAAA;EACA,iBAAA;EACA,MAAA;AAAA;AAAA,cACD,4BAAA;;cAGY,uBAAA,SAAgC,4BA0B5C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-sub-resource.d.ts
|
|
4
|
+
declare const scope: "subResource";
|
|
5
|
+
/** Context describing an unavailable sub-resource and its owning resource. */
|
|
6
|
+
interface InvalidSubResourceContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
subResource: unknown;
|
|
8
|
+
resource?: string;
|
|
9
|
+
validSubResources?: readonly string[];
|
|
10
|
+
reason?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const InvalidSubResourceError_base: CreatedReactLayoutError<"invalidSubResource", "subResource", InvalidSubResourceContext>;
|
|
13
|
+
/** Thrown when a requested sub-resource is invalid or unavailable. */
|
|
14
|
+
declare class InvalidSubResourceError extends InvalidSubResourceError_base {}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { InvalidSubResourceContext, InvalidSubResourceError };
|
|
17
|
+
//# sourceMappingURL=invalid-sub-resource.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-sub-resource.d.mts","names":[],"sources":["../../src/errors/invalid-sub-resource.ts"],"mappings":";;;cAKM,KAAA;;UAGW,yBAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,WAAA;EACA,QAAA;EACA,iBAAA;EACA,MAAA;AAAA;AAAA,cACD,4BAAA;;cAGY,uBAAA,SAAgC,4BA0B5C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createReactLayoutError } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/invalid-sub-resource.ts
|
|
4
|
+
const scope = "subResource";
|
|
5
|
+
/** Thrown when a requested sub-resource is invalid or unavailable. */
|
|
6
|
+
var InvalidSubResourceError = class extends createReactLayoutError({
|
|
7
|
+
code: "invalidSubResource",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { subResource, resource, validSubResources, reason }) => {
|
|
10
|
+
return `[${scope}]: Sub-resource ${JSON.stringify(subResource) ?? `"${String(subResource)}"`}${resource ? ` for resource "${resource}"` : ""} is not available.${reason ? ` ${reason}` : ""}${validSubResources && validSubResources.length > 0 ? ` Available sub-resources are ${new Intl.ListFormat("en", {
|
|
11
|
+
style: "long",
|
|
12
|
+
type: "disjunction"
|
|
13
|
+
}).format(validSubResources)}.` : ""}`;
|
|
14
|
+
}) {};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { InvalidSubResourceError };
|
|
18
|
+
//# sourceMappingURL=invalid-sub-resource.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-sub-resource.mjs","names":[],"sources":["../../src/errors/invalid-sub-resource.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'subResource' as const;\n\n/** Context describing an unavailable sub-resource and its owning resource. */\nexport interface InvalidSubResourceContext\n extends ReactLayoutErrorContext<typeof scope> {\n subResource: unknown;\n resource?: string;\n validSubResources?: readonly string[];\n reason?: string;\n}\n\n/** Thrown when a requested sub-resource is invalid or unavailable. */\nexport class InvalidSubResourceError extends createReactLayoutError(\n { code: 'invalidSubResource', scope },\n)(\n (\n scope,\n {\n subResource,\n resource,\n validSubResources,\n reason,\n }: InvalidSubResourceContext,\n ) => {\n const quotedSubResource =\n JSON.stringify(subResource) ?? `\"${String(subResource)}\"`;\n const resourceMessage = resource ? ` for resource \"${resource}\"` : '';\n const reasonMessage = reason ? ` ${reason}` : '';\n const validSubResourcesMessage =\n validSubResources && validSubResources.length > 0\n ? ` Available sub-resources are ${new Intl.ListFormat('en', {\n style: 'long',\n type: 'disjunction',\n }).format(validSubResources)}.`\n : '';\n\n return `[${scope}]: Sub-resource ${quotedSubResource}${resourceMessage} is not available.${reasonMessage}${validSubResourcesMessage}`;\n },\n) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAYd,IAAa,0BAAb,cAA6C,uBAC3C;CAAE,MAAM;CAAsB;AAAM,CACtC,GAEI,OACA,EACE,aACA,UACA,mBACA,aAEC;CAaH,OAAO,IAAI,MAAM,kBAXf,KAAK,UAAU,WAAW,KAAK,IAAI,OAAO,WAAW,EAAE,KACjC,WAAW,kBAAkB,SAAS,KAAK,GAUI,oBATjD,SAAS,IAAI,WAAW,KAE5C,qBAAqB,kBAAkB,SAAS,IAC5C,gCAAgC,IAAI,KAAK,WAAW,MAAM;EACxD,OAAO;EACP,MAAM;CACR,CAAC,EAAE,OAAO,iBAAiB,EAAE,KAC7B;AAGR,CACF,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_react_layout_error = require('./react-layout-error.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/errors/missing-path-variable.ts
|
|
4
|
+
const scope = "pathVariable";
|
|
5
|
+
/** Thrown when a required layout path variable was not provided. */
|
|
6
|
+
var MissingPathVariableError = class extends require_react_layout_error.createReactLayoutError({
|
|
7
|
+
code: "missingPathVariable",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { variable, path, providedVariables }) => {
|
|
10
|
+
return `[${scope}]: Path "${path}" requires $${variable}.${providedVariables && providedVariables.length > 0 ? ` Provided variables were ${new Intl.ListFormat("en", {
|
|
11
|
+
style: "long",
|
|
12
|
+
type: "disjunction"
|
|
13
|
+
}).format(providedVariables.map((provided) => `$${provided}`))}.` : " No path variables were provided."}`;
|
|
14
|
+
}) {};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.MissingPathVariableError = MissingPathVariableError;
|
|
18
|
+
//# sourceMappingURL=missing-path-variable.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"missing-path-variable.cjs","names":["createReactLayoutError"],"sources":["../../src/errors/missing-path-variable.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'pathVariable' as const;\n\n/** Context describing a variable required to resolve a layout path. */\nexport interface MissingPathVariableContext\n extends ReactLayoutErrorContext<typeof scope> {\n variable: string;\n path: string;\n providedVariables?: readonly string[];\n}\n\n/** Thrown when a required layout path variable was not provided. */\nexport class MissingPathVariableError extends createReactLayoutError(\n { code: 'missingPathVariable', scope },\n)(\n (\n scope,\n { variable, path, providedVariables }: MissingPathVariableContext,\n ) => {\n const providedMessage =\n providedVariables && providedVariables.length > 0\n ? ` Provided variables were ${new Intl.ListFormat('en', {\n style: 'long',\n type: 'disjunction',\n }).format(providedVariables.map((provided) => `$${provided}`))}.`\n : ' No path variables were provided.';\n\n return `[${scope}]: Path \"${path}\" requires $${variable}.${providedMessage}`;\n },\n) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAWd,IAAa,2BAAb,cAA8CA,kDAC5C;CAAE,MAAM;CAAuB;AAAM,CACvC,GAEI,OACA,EAAE,UAAU,MAAM,wBACf;CASH,OAAO,IAAI,MAAM,WAAW,KAAK,cAAc,SAAS,GAPtD,qBAAqB,kBAAkB,SAAS,IAC5C,4BAA4B,IAAI,KAAK,WAAW,MAAM;EACpD,OAAO;EACP,MAAM;CACR,CAAC,EAAE,OAAO,kBAAkB,KAAK,aAAa,IAAI,UAAU,CAAC,EAAE,KAC/D;AAGR,CACF,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/missing-path-variable.d.ts
|
|
4
|
+
declare const scope: "pathVariable";
|
|
5
|
+
/** Context describing a variable required to resolve a layout path. */
|
|
6
|
+
interface MissingPathVariableContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
variable: string;
|
|
8
|
+
path: string;
|
|
9
|
+
providedVariables?: readonly string[];
|
|
10
|
+
}
|
|
11
|
+
declare const MissingPathVariableError_base: CreatedReactLayoutError<"missingPathVariable", "pathVariable", MissingPathVariableContext>;
|
|
12
|
+
/** Thrown when a required layout path variable was not provided. */
|
|
13
|
+
declare class MissingPathVariableError extends MissingPathVariableError_base {}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { MissingPathVariableContext, MissingPathVariableError };
|
|
16
|
+
//# sourceMappingURL=missing-path-variable.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"missing-path-variable.d.cts","names":[],"sources":["../../src/errors/missing-path-variable.ts"],"mappings":";;;cAKM,KAAA;;UAGW,0BAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,QAAA;EACA,IAAA;EACA,iBAAA;AAAA;AAAA,cACD,6BAAA;;cAGY,wBAAA,SAAiC,6BAiB7C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreatedReactLayoutError, ReactLayoutErrorContext } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/missing-path-variable.d.ts
|
|
4
|
+
declare const scope: "pathVariable";
|
|
5
|
+
/** Context describing a variable required to resolve a layout path. */
|
|
6
|
+
interface MissingPathVariableContext extends ReactLayoutErrorContext<typeof scope> {
|
|
7
|
+
variable: string;
|
|
8
|
+
path: string;
|
|
9
|
+
providedVariables?: readonly string[];
|
|
10
|
+
}
|
|
11
|
+
declare const MissingPathVariableError_base: CreatedReactLayoutError<"missingPathVariable", "pathVariable", MissingPathVariableContext>;
|
|
12
|
+
/** Thrown when a required layout path variable was not provided. */
|
|
13
|
+
declare class MissingPathVariableError extends MissingPathVariableError_base {}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { MissingPathVariableContext, MissingPathVariableError };
|
|
16
|
+
//# sourceMappingURL=missing-path-variable.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"missing-path-variable.d.mts","names":[],"sources":["../../src/errors/missing-path-variable.ts"],"mappings":";;;cAKM,KAAA;;UAGW,0BAAA,SACP,uBAAuB,QAAQ,KAAA;EACvC,QAAA;EACA,IAAA;EACA,iBAAA;AAAA;AAAA,cACD,6BAAA;;cAGY,wBAAA,SAAiC,6BAiB7C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createReactLayoutError } from "./react-layout-error.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/missing-path-variable.ts
|
|
4
|
+
const scope = "pathVariable";
|
|
5
|
+
/** Thrown when a required layout path variable was not provided. */
|
|
6
|
+
var MissingPathVariableError = class extends createReactLayoutError({
|
|
7
|
+
code: "missingPathVariable",
|
|
8
|
+
scope
|
|
9
|
+
})((scope, { variable, path, providedVariables }) => {
|
|
10
|
+
return `[${scope}]: Path "${path}" requires $${variable}.${providedVariables && providedVariables.length > 0 ? ` Provided variables were ${new Intl.ListFormat("en", {
|
|
11
|
+
style: "long",
|
|
12
|
+
type: "disjunction"
|
|
13
|
+
}).format(providedVariables.map((provided) => `$${provided}`))}.` : " No path variables were provided."}`;
|
|
14
|
+
}) {};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { MissingPathVariableError };
|
|
18
|
+
//# sourceMappingURL=missing-path-variable.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"missing-path-variable.mjs","names":[],"sources":["../../src/errors/missing-path-variable.ts"],"sourcesContent":["import {\n createReactLayoutError,\n type ReactLayoutErrorContext,\n} from './react-layout-error';\n\nconst scope = 'pathVariable' as const;\n\n/** Context describing a variable required to resolve a layout path. */\nexport interface MissingPathVariableContext\n extends ReactLayoutErrorContext<typeof scope> {\n variable: string;\n path: string;\n providedVariables?: readonly string[];\n}\n\n/** Thrown when a required layout path variable was not provided. */\nexport class MissingPathVariableError extends createReactLayoutError(\n { code: 'missingPathVariable', scope },\n)(\n (\n scope,\n { variable, path, providedVariables }: MissingPathVariableContext,\n ) => {\n const providedMessage =\n providedVariables && providedVariables.length > 0\n ? ` Provided variables were ${new Intl.ListFormat('en', {\n style: 'long',\n type: 'disjunction',\n }).format(providedVariables.map((provided) => `$${provided}`))}.`\n : ' No path variables were provided.';\n\n return `[${scope}]: Path \"${path}\" requires $${variable}.${providedMessage}`;\n },\n) {}\n"],"mappings":";;;AAKA,MAAM,QAAQ;;AAWd,IAAa,2BAAb,cAA8C,uBAC5C;CAAE,MAAM;CAAuB;AAAM,CACvC,GAEI,OACA,EAAE,UAAU,MAAM,wBACf;CASH,OAAO,IAAI,MAAM,WAAW,KAAK,cAAc,SAAS,GAPtD,qBAAqB,kBAAkB,SAAS,IAC5C,4BAA4B,IAAI,KAAK,WAAW,MAAM;EACpD,OAAO;EACP,MAAM;CACR,CAAC,EAAE,OAAO,kBAAkB,KAAK,aAAa,IAAI,UAAU,CAAC,EAAE,KAC/D;AAGR,CACF,EAAE,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/errors/react-layout-error.ts
|
|
3
|
+
function makeJsonSafe(value) {
|
|
4
|
+
if (value === void 0) return null;
|
|
5
|
+
if (Array.isArray(value)) return value.map(makeJsonSafe);
|
|
6
|
+
if (value && typeof value === "object") return Object.fromEntries(Object.entries(value).map(([key, nestedValue]) => [key, makeJsonSafe(nestedValue)]));
|
|
7
|
+
return value;
|
|
8
|
+
}
|
|
9
|
+
/** Base data class for errors thrown by React Layout. */
|
|
10
|
+
var ReactLayoutError = class extends Error {
|
|
11
|
+
scope;
|
|
12
|
+
context;
|
|
13
|
+
static invariant(condition, context) {
|
|
14
|
+
if (!condition) throw new this(typeof context === "function" ? context() : context);
|
|
15
|
+
}
|
|
16
|
+
constructor(context) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = new.target.name;
|
|
19
|
+
this.scope = context.scope;
|
|
20
|
+
this.context = context;
|
|
21
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
22
|
+
}
|
|
23
|
+
toJSON() {
|
|
24
|
+
return {
|
|
25
|
+
name: this.name,
|
|
26
|
+
code: this.code,
|
|
27
|
+
scope: this.scope,
|
|
28
|
+
message: this.message,
|
|
29
|
+
context: makeJsonSafe(this.context)
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
/** Creates a context-only React Layout error class with a default renderer. */
|
|
34
|
+
function createReactLayoutError(options) {
|
|
35
|
+
return function createErrorWithRenderer(defaultRenderer) {
|
|
36
|
+
return class ReactLayoutErrorWithCode extends ReactLayoutError {
|
|
37
|
+
code = options.code;
|
|
38
|
+
constructor(context) {
|
|
39
|
+
const resolvedContext = {
|
|
40
|
+
...context,
|
|
41
|
+
scope: options.scope
|
|
42
|
+
};
|
|
43
|
+
super(resolvedContext);
|
|
44
|
+
this.message = this.renderMessage();
|
|
45
|
+
}
|
|
46
|
+
renderMessage(renderer) {
|
|
47
|
+
return (renderer ?? defaultRenderer)(this.scope, this.context);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
exports.ReactLayoutError = ReactLayoutError;
|
|
55
|
+
exports.createReactLayoutError = createReactLayoutError;
|
|
56
|
+
//# sourceMappingURL=react-layout-error.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-layout-error.cjs","names":[],"sources":["../../src/errors/react-layout-error.ts"],"sourcesContent":["/** Options used to assign a stable code and scope to a React Layout error. */\nexport type CreateReactLayoutErrorOptions<\n Code extends string = string,\n Scope extends string = string,\n> = {\n code: Code;\n scope: Scope;\n};\n\n/** Shared context carried by every React Layout error. */\nexport interface ReactLayoutErrorContext<Scope extends string>\n extends Record<string, unknown> {\n scope: Scope;\n}\n\n/** Renders an error message from its scope and structured context. */\nexport type ErrorMessageRenderer<\n Scope extends string,\n Context extends ReactLayoutErrorContext<Scope>,\n> = (scope: Scope, context: Context) => string;\n\n/** Constructor and invariant API returned by the React Layout error factory. */\nexport interface CreatedReactLayoutError<\n Code extends string,\n Scope extends string,\n Context extends ReactLayoutErrorContext<Scope>,\n> {\n invariant: <Condition>(\n condition: Condition,\n context: Omit<Context, 'scope'> | (() => Omit<Context, 'scope'>),\n ) => asserts condition;\n new (context: Omit<Context, 'scope'>): ReactLayoutError<\n Code,\n Scope,\n Context\n > & {\n readonly code: Code;\n readonly scope: Scope;\n renderMessage(renderer?: ErrorMessageRenderer<Scope, Context>): string;\n };\n}\n\n/** Adds a default renderer to a React Layout error definition. */\nexport interface ReactLayoutErrorRendererFactory<\n Code extends string,\n Scope extends string,\n> {\n <Context extends ReactLayoutErrorContext<Scope>>(\n defaultRenderer: ErrorMessageRenderer<Scope, Context>,\n ): CreatedReactLayoutError<Code, Scope, Context>;\n}\n\nfunction makeJsonSafe(value: unknown): unknown {\n if (value === undefined) {\n return null;\n }\n\n if (Array.isArray(value)) {\n return value.map(makeJsonSafe);\n }\n\n if (value && typeof value === 'object') {\n return Object.fromEntries(\n Object.entries(value).map(([key, nestedValue]) => [\n key,\n makeJsonSafe(nestedValue),\n ]),\n );\n }\n\n return value;\n}\n\n/** Base data class for errors thrown by React Layout. */\nexport abstract class ReactLayoutError<\n Code extends string = string,\n Scope extends string = string,\n Context extends ReactLayoutErrorContext<Scope> =\n ReactLayoutErrorContext<Scope>,\n> extends Error {\n abstract readonly code: Code;\n readonly scope: Scope;\n readonly context: Context;\n\n static invariant<\n Condition,\n Context extends Record<string, unknown>,\n >(\n this: new (context: Context) => Error,\n condition: Condition,\n context: Context | (() => Context),\n ): asserts condition {\n if (!condition) {\n throw new this(typeof context === 'function' ? context() : context);\n }\n }\n\n constructor(context: Context) {\n super();\n this.name = new.target.name;\n this.scope = context.scope;\n this.context = context;\n\n Object.setPrototypeOf(this, new.target.prototype);\n }\n\n abstract renderMessage(\n renderer?: ErrorMessageRenderer<Scope, Context>,\n ): string;\n\n toJSON() {\n return {\n name: this.name,\n code: this.code,\n scope: this.scope,\n message: this.message,\n context: makeJsonSafe(this.context),\n };\n }\n}\n\n/** Creates a context-only React Layout error class with a default renderer. */\nexport function createReactLayoutError<\n const Options extends CreateReactLayoutErrorOptions,\n>(\n options: Options,\n): ReactLayoutErrorRendererFactory<Options['code'], Options['scope']> {\n return function createErrorWithRenderer<\n Context extends ReactLayoutErrorContext<Options['scope']>,\n >(defaultRenderer: ErrorMessageRenderer<Options['scope'], Context>) {\n return class ReactLayoutErrorWithCode extends ReactLayoutError<\n Options['code'],\n Options['scope'],\n Context\n > {\n readonly code = options.code;\n\n constructor(context: Omit<Context, 'scope'>) {\n const resolvedContext = {\n ...context,\n scope: options.scope,\n } as Context;\n\n super(resolvedContext);\n this.message = this.renderMessage();\n }\n\n renderMessage(\n renderer?: ErrorMessageRenderer<Options['scope'], Context>,\n ) {\n return (renderer ?? defaultRenderer)(this.scope, this.context);\n }\n };\n };\n}\n"],"mappings":";;AAoDA,SAAS,aAAa,OAAyB;CAC7C,IAAI,UAAU,QACZ,OAAO;CAGT,IAAI,MAAM,QAAQ,KAAK,GACrB,OAAO,MAAM,IAAI,YAAY;CAG/B,IAAI,SAAS,OAAO,UAAU,UAC5B,OAAO,OAAO,YACZ,OAAO,QAAQ,KAAK,EAAE,KAAK,CAAC,KAAK,iBAAiB,CAChD,KACA,aAAa,WAAW,CAC1B,CAAC,CACH;CAGF,OAAO;AACT;;AAGA,IAAsB,mBAAtB,cAKU,MAAM;CAEd,AAAS;CACT,AAAS;CAET,OAAO,UAKL,WACA,SACmB;EACnB,IAAI,CAAC,WACH,MAAM,IAAI,KAAK,OAAO,YAAY,aAAa,QAAQ,IAAI,OAAO;CAEtE;CAEA,YAAY,SAAkB;EAC5B,MAAM;EACN,KAAK,OAAO,IAAI,OAAO;EACvB,KAAK,QAAQ,QAAQ;EACrB,KAAK,UAAU;EAEf,OAAO,eAAe,MAAM,IAAI,OAAO,SAAS;CAClD;CAMA,SAAS;EACP,OAAO;GACL,MAAM,KAAK;GACX,MAAM,KAAK;GACX,OAAO,KAAK;GACZ,SAAS,KAAK;GACd,SAAS,aAAa,KAAK,OAAO;EACpC;CACF;AACF;;AAGA,SAAgB,uBAGd,SACoE;CACpE,OAAO,SAAS,wBAEd,iBAAkE;EAClE,OAAO,MAAM,iCAAiC,iBAI5C;GACA,AAAS,OAAO,QAAQ;GAExB,YAAY,SAAiC;IAC3C,MAAM,kBAAkB;KACtB,GAAG;KACH,OAAO,QAAQ;IACjB;IAEA,MAAM,eAAe;IACrB,KAAK,UAAU,KAAK,cAAc;GACpC;GAEA,cACE,UACA;IACA,QAAQ,YAAY,iBAAiB,KAAK,OAAO,KAAK,OAAO;GAC/D;EACF;CACF;AACF"}
|