@jfdevelops/react-layout-composables 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (13) hide show
  1. package/dist/errors.d.cts +11 -11
  2. package/dist/errors.d.cts.map +1 -1
  3. package/dist/errors.d.mts +11 -11
  4. package/dist/errors.d.mts.map +1 -1
  5. package/dist/node_modules/.pnpm/{@jfdevelops_create-error@0.2.0_patch_hash_afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9 → @jfdevelops_create-error@0.2.1}/node_modules/@jfdevelops/create-error/dist/types.d.cts +46 -2
  6. package/dist/node_modules/.pnpm/{@jfdevelops_create-error@0.2.0_patch_hash_afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9 → @jfdevelops_create-error@0.2.1}/node_modules/@jfdevelops/create-error/dist/types.d.cts.map +1 -1
  7. package/dist/node_modules/.pnpm/{@jfdevelops_create-error@0.2.0_patch_hash_afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9 → @jfdevelops_create-error@0.2.1}/node_modules/@jfdevelops/create-error/dist/types.d.mts +46 -2
  8. package/dist/node_modules/.pnpm/{@jfdevelops_create-error@0.2.0_patch_hash_afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9 → @jfdevelops_create-error@0.2.1}/node_modules/@jfdevelops/create-error/dist/types.d.mts.map +1 -1
  9. package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.cts +80 -0
  10. package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.cts.map +1 -0
  11. package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts +80 -0
  12. package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts.map +1 -0
  13. package/package.json +3 -3
package/dist/errors.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { ImplementedErrorClass } from "./node_modules/.pnpm/@jfdevelops_create-error@0.2.0_patch_hash_afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9/node_modules/@jfdevelops/create-error/dist/types.cjs";
1
+ import { BlueprintContext, DataSlot, ImplementedErrorClass, ResolveContext, TypeSlot } from "./node_modules/.pnpm/@jfdevelops_create-error@0.2.1/node_modules/@jfdevelops/create-error/dist/types.cjs";
2
2
 
3
3
  //#region src/errors.d.ts
4
4
  declare const InvalidComponentsError_base: ImplementedErrorClass<{
@@ -13,22 +13,22 @@ declare const InvalidComponentsError_base: ImplementedErrorClass<{
13
13
  readonly property: "context";
14
14
  readonly resolve: ({
15
15
  input
16
- }: import("@jfdevelops/create-error/types").ResolveContext<import("arktype/internal/variants/object.ts").ObjectType<{
16
+ }: ResolveContext<import("arktype/internal/variants/object.ts").ObjectType<{
17
17
  code: string;
18
18
  }, {}>>) => object;
19
19
  };
20
20
  readonly message: ({
21
21
  data,
22
22
  implementation
23
- }: import("@jfdevelops/create-error/types").BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
23
+ }: BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
24
24
  code: string;
25
- }, {}>>) => string & import("@jfdevelops/create-error/types").TypeSlot<"implementationArgument", import("@jfdevelops/create-error/types").DataSlot>;
25
+ }, {}>>) => string & TypeSlot<"implementationArgument", DataSlot>;
26
26
  readonly properties: ({
27
27
  definition
28
- }: import("@jfdevelops/create-error/types").BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
28
+ }: BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
29
29
  code: string;
30
30
  }, {}>>) => {
31
- code: string & import("@jfdevelops/create-error/types").TypeSlot<"definition", "code">;
31
+ code: string & TypeSlot<"definition", "code">;
32
32
  };
33
33
  }, {
34
34
  readonly code: string;
@@ -47,22 +47,22 @@ declare const EmptyComponentsError_base: ImplementedErrorClass<{
47
47
  readonly property: "context";
48
48
  readonly resolve: ({
49
49
  input
50
- }: import("@jfdevelops/create-error/types").ResolveContext<import("arktype/internal/variants/object.ts").ObjectType<{
50
+ }: ResolveContext<import("arktype/internal/variants/object.ts").ObjectType<{
51
51
  code: string;
52
52
  }, {}>>) => object;
53
53
  };
54
54
  readonly message: ({
55
55
  data,
56
56
  implementation
57
- }: import("@jfdevelops/create-error/types").BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
57
+ }: BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
58
58
  code: string;
59
- }, {}>>) => string & import("@jfdevelops/create-error/types").TypeSlot<"implementationArgument", import("@jfdevelops/create-error/types").DataSlot>;
59
+ }, {}>>) => string & TypeSlot<"implementationArgument", DataSlot>;
60
60
  readonly properties: ({
61
61
  definition
62
- }: import("@jfdevelops/create-error/types").BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
62
+ }: BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
63
63
  code: string;
64
64
  }, {}>>) => {
65
- code: string & import("@jfdevelops/create-error/types").TypeSlot<"definition", "code">;
65
+ code: string & TypeSlot<"definition", "code">;
66
66
  };
67
67
  }, {
68
68
  readonly code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.cts","names":[],"sources":["../src/errors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAca,sBAAA,SAA+B,2BAIV;AAAA,cAAG,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAH;AAAA,cAGrB,oBAAA,SAA6B,yBAIR"}
1
+ {"version":3,"file":"errors.d.cts","names":[],"sources":["../src/errors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAca,sBAAA,SAA+B,2BAIV;AAAA,cAAG,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAGxB,oBAAA,SAA6B,yBAIR"}
package/dist/errors.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { ImplementedErrorClass } from "./node_modules/.pnpm/@jfdevelops_create-error@0.2.0_patch_hash_afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9/node_modules/@jfdevelops/create-error/dist/types.mjs";
1
+ import { BlueprintContext, DataSlot, ImplementedErrorClass, ResolveContext, TypeSlot } from "./node_modules/.pnpm/@jfdevelops_create-error@0.2.1/node_modules/@jfdevelops/create-error/dist/types.mjs";
2
2
 
3
3
  //#region src/errors.d.ts
4
4
  declare const InvalidComponentsError_base: ImplementedErrorClass<{
@@ -13,22 +13,22 @@ declare const InvalidComponentsError_base: ImplementedErrorClass<{
13
13
  readonly property: "context";
14
14
  readonly resolve: ({
15
15
  input
16
- }: import("@jfdevelops/create-error/types").ResolveContext<import("arktype/internal/variants/object.ts").ObjectType<{
16
+ }: ResolveContext<import("arktype/internal/variants/object.ts").ObjectType<{
17
17
  code: string;
18
18
  }, {}>>) => object;
19
19
  };
20
20
  readonly message: ({
21
21
  data,
22
22
  implementation
23
- }: import("@jfdevelops/create-error/types").BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
23
+ }: BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
24
24
  code: string;
25
- }, {}>>) => string & import("@jfdevelops/create-error/types").TypeSlot<"implementationArgument", import("@jfdevelops/create-error/types").DataSlot>;
25
+ }, {}>>) => string & TypeSlot<"implementationArgument", DataSlot>;
26
26
  readonly properties: ({
27
27
  definition
28
- }: import("@jfdevelops/create-error/types").BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
28
+ }: BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
29
29
  code: string;
30
30
  }, {}>>) => {
31
- code: string & import("@jfdevelops/create-error/types").TypeSlot<"definition", "code">;
31
+ code: string & TypeSlot<"definition", "code">;
32
32
  };
33
33
  }, {
34
34
  readonly code: string;
@@ -47,22 +47,22 @@ declare const EmptyComponentsError_base: ImplementedErrorClass<{
47
47
  readonly property: "context";
48
48
  readonly resolve: ({
49
49
  input
50
- }: import("@jfdevelops/create-error/types").ResolveContext<import("arktype/internal/variants/object.ts").ObjectType<{
50
+ }: ResolveContext<import("arktype/internal/variants/object.ts").ObjectType<{
51
51
  code: string;
52
52
  }, {}>>) => object;
53
53
  };
54
54
  readonly message: ({
55
55
  data,
56
56
  implementation
57
- }: import("@jfdevelops/create-error/types").BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
57
+ }: BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
58
58
  code: string;
59
- }, {}>>) => string & import("@jfdevelops/create-error/types").TypeSlot<"implementationArgument", import("@jfdevelops/create-error/types").DataSlot>;
59
+ }, {}>>) => string & TypeSlot<"implementationArgument", DataSlot>;
60
60
  readonly properties: ({
61
61
  definition
62
- }: import("@jfdevelops/create-error/types").BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
62
+ }: BlueprintContext<import("arktype/internal/variants/object.ts").ObjectType<{
63
63
  code: string;
64
64
  }, {}>>) => {
65
- code: string & import("@jfdevelops/create-error/types").TypeSlot<"definition", "code">;
65
+ code: string & TypeSlot<"definition", "code">;
66
66
  };
67
67
  }, {
68
68
  readonly code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.mts","names":[],"sources":["../src/errors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAca,sBAAA,SAA+B,2BAIV;AAAA,cAAG,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAH;AAAA,cAGrB,oBAAA,SAA6B,yBAIR"}
1
+ {"version":3,"file":"errors.d.mts","names":[],"sources":["../src/errors.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAca,sBAAA,SAA+B,2BAIV;AAAA,cAAG,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAGxB,oBAAA,SAA6B,yBAIR"}
@@ -1,4 +1,6 @@
1
- //#region ../../node_modules/.pnpm/@jfdevelops+create-error@0.2.0_patch_hash=afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9/node_modules/@jfdevelops/create-error/dist/types.d.mts
1
+ import { StandardSchemaV1 } from "../../../../../@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.cjs";
2
+
3
+ //#region ../../node_modules/.pnpm/@jfdevelops+create-error@0.2.1/node_modules/@jfdevelops/create-error/dist/types.d.mts
2
4
  //#region src/types.d.ts
3
5
  declare const typeSlot: unique symbol;
4
6
  /** Marks a blueprint value that is resolved by a later builder stage. */
@@ -8,7 +10,49 @@ type TypeSlot<Kind extends string, Payload = never> = {
8
10
  readonly payload: Payload;
9
11
  };
10
12
  };
13
+ type DefinitionOutput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferOutput<Schema>;
14
+ type DefinitionTemplate<Schema extends StandardSchemaV1> = DefinitionOutput<Schema> extends object ? { readonly [Key in keyof DefinitionOutput<Schema>]: DefinitionOutput<Schema>[Key] & TypeSlot<'definition', Key> } : never;
11
15
  type DataSlot = TypeSlot<'data'>;
16
+ type ImplementationSlot = TypeSlot<'implementation'> & {
17
+ <const Argument$1>(argument: Argument$1): string & TypeSlot<'implementationArgument', Argument$1>;
18
+ };
19
+ /** Values available while an error instance is being created. */
20
+ interface BlueprintContext<Schema extends StandardSchemaV1> {
21
+ /** The parsed definition captured by the concrete error class. */
22
+ definition: DefinitionTemplate<Schema>;
23
+ /** The resolved, and optionally schema-validated, constructor data. */
24
+ data: DataSlot;
25
+ /**
26
+ * Calls the concrete error's implementation with one argument.
27
+ *
28
+ * The argument passed here defines the implementation callback's parameter
29
+ * type. Concrete definition fields are included automatically when the
30
+ * argument is a plain object.
31
+ */
32
+ implementation: ImplementationSlot;
33
+ }
34
+ /** Values available when resolving a concrete error's constructor input. */
35
+ interface ResolveContext<Schema extends StandardSchemaV1> {
36
+ /** The parsed definition captured by the concrete error class. */
37
+ definition: DefinitionTemplate<Schema>;
38
+ /** The value passed to the concrete error constructor. */
39
+ input: object;
40
+ }
41
+ /**
42
+ * Configuration accepted by {@link createError}.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const config = {
47
+ * definition,
48
+ * data: {
49
+ * property: 'context',
50
+ * resolve: ({ input }) => input,
51
+ * },
52
+ * message: ({ data, implementation }) => implementation(data),
53
+ * } satisfies CreateErrorConfig<typeof definition>;
54
+ * ```
55
+ */
12
56
  type ResolveTemplate<Config> = Config extends {
13
57
  data: {
14
58
  resolve: (...arguments_: infer _Arguments) => infer Resolved;
@@ -96,5 +140,5 @@ interface ConcreteErrorClass<Input, Instance> extends ErrorClassStatics {
96
140
  type ImplementedErrorClass<Config, Definition, Input, Data> = ConcreteErrorClass<ConstructorInput<Config, Input>, InstanceProperties<Config, Definition, Data, PassedImplementationCallback<Config, Definition, Data>>>;
97
141
  type ExtendsNever<Value, OnTrue, OnFalse> = [Value] extends [never] ? OnTrue : OnFalse;
98
142
  //#endregion
99
- export { ImplementedErrorClass };
143
+ export { BlueprintContext, DataSlot, ImplementedErrorClass, ResolveContext, TypeSlot };
100
144
  //# sourceMappingURL=types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","names":["Kind","Payload","typeSlot","kind","payload","Schema","StandardSchemaV1","InferInput","InferOutput","Input","Definition","Record","Exclude","DefinitionOutput","Key","TypeSlot","Argument$1","argument","definition","DefinitionTemplate","data","DataSlot","implementation","ImplementationSlot","input","property","resolve","ResolveContext","context","message","BlueprintContext","properties","toJSON","Error","error","Config","arguments_","_Arguments","Resolved","Template","PropertyKey","Data","Omit","Extract","InjectedDefinitionKeys","ResolveTemplate","Values","Implementation","Index","ReplaceTemplate","Date","RegExp","ReadonlyMap","ReadonlySet","WeakMap","WeakSet","PromiseLike","ArrayBuffer","ArrayBufferView","Type","OpaqueObject","Arguments","Result","ReplaceTuple","Properties","Property","DataPropertyTemplate","PropertiesTemplate","Json","Message","MessageTemplate","Argument","ImplementationArgumentWithDefinition","ImplementationArgument","PassedImplementationArgument","ExtendsNever","invariant","Condition","ErrorOptions","options","this","condition","InvariantInput","InstanceProperties","ConcreteDefinition","Instance","ErrorClassStatics","ConcreteErrorClass","ConstructorInput","PassedImplementationCallback","Value","OnTrue","OnFalse","InferredData","name","implement","DefaultBuilderData","Expand","ImplementationCallback","BuilderData","ImplementOptions","ImplementedErrorClass","BuilderInput","ImplementationBuilder","defineContext","ContextSchema","DefinitionInput","ExactDefinition","ErrorDefinitionBuilder","FamilyErrorClass","FamilyError","is","value"],"sources":["../../../../../../../../../../node_modules/.pnpm/@jfdevelops+create-error@0.2.0_patch_hash=afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9/node_modules/@jfdevelops/create-error/dist/types.d.mts"],"x_google_ignoreList":[0],"mappings":";;cAGc,QAAA;;KAET,QAAA;EAAA,UACO,QAAA;IAAA,SACCG,IAAAA,EAAM,IAAA;IAAA,SACNC,OAAAA,EAAS,OAAA;EAAA;AAAA;AAAA,KAQjB,QAAA,GAAW,QAAQ;AAAA,KA8HnB,eAAA,WAA0B,MAAM;EACnCgB,IAAAA;IACEM,OAAAA,MAAaU,UAAAA;EAAAA;AAAAA,IAEbE,QAAAA;AAAAA,KACC,sBAAA,6BAAmD,QAAA,GAAW,QAAA,CAAS,GAAA,UAAa,QAAA,eAAuB,WAAA,IAAe,GAAA,iBAAoB,QAAA;AAAA,KAC9I,gBAAA,iBAAiC,IAAA,mCAAuCF,UAAAA,yBAAmC,IAAA,GAAO,IAAA,kBAAsB,IAAA,CAAK,IAAA,EAAM,OAAA,CAAQ,sBAAA,CAAuB,eAAA,CAAgB,MAAA,UAAgB,IAAA,KAAS,IAAA;AAAA,KAC3N,YAAA,0FAAsG,MAAA,GAAS,eAAA,CAAgB,MAAA,CAAO,KAAA,GAAQ,UAAA,EAAY,IAAA,EAAM,cAAA;;;;;KAKhK,YAAA,GAAe,IAAA,GAAO,MAAA,GAAS,WAAA,qBAAgC,WAAA,YA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AA,KAIC,4BAAA,6BAAyD,eAAA,CAAgB,MAAA,UAAgB,QAAA,6CAAqDE,QAAAA,SAAiB,QAAA,WAAmB,IAAA,GAAO,eAAA,CAAgB,QAAA,EAAU,UAAA,EAAY,IAAA;AAAA,KAC/N,4BAAA,8BAA0DtD,QAAAA,EAAU,4BAAA,CAA6B,MAAA,EAAQ,UAAA,EAAY,IAAA;;;;;;KAMrH,cAAA,UAAwB,YAAA,CAAa,OAAA,CAAQ,KAAA,MAAWmB,UAAAA,wBAAkC,KAAA,UAAe,KAAA,SAAc,KAAA;AAAA,UAClH,iBAAA;EAnC2rB;;;;;;;;;;;;;;;;;;;;;;EA0DnsBwC,SAAAA,mBAA4BI,IAAAA,OAAWxD,KAAAA,EAAO,KAAA,EAAOuD,OAAAA,GAAU,YAAA,KAAiB,KAAA,EAAOE,SAAAA,EAAW,SAAA,EAAWzD,KAAAA,EAAO,cAAA,CAAe,KAAA,GAAQuD,OAAAA,GAAU,YAAA,WAAuBE,SAAAA;AAAAA;;;;;;;;UAiBpK,kBAAA,0BAA4C,iBAAA;EA3EyfvE;;;;;EAAAA,KAiFxiBc,KAAAA,EAAO,KAAA,EAAOuD,OAAAA,GAAU,YAAA,GAAe,QAAA;AAAA;AAAA,KAEzC,qBAAA,oCAAyD,kBAAA,CAAmB,gBAAA,CAAiB,MAAA,EAAQ,KAAA,GAAQ,kBAAA,CAAmB,MAAA,EAAQ,UAAA,EAAY,IAAA,EAAM,4BAAA,CAA6B,MAAA,EAAQ,UAAA,EAAY,IAAA;AAAA,KAC3M,YAAA,4BAAwC,KAAA,oBAAyB,MAAA,GAAS,OAAA"}
1
+ {"version":3,"file":"types.d.cts","names":["Kind","Payload","typeSlot","kind","payload","Schema","StandardSchemaV1","InferInput","InferOutput","Input","Definition","Record","Exclude","DefinitionOutput","Key","TypeSlot","Argument$1","argument","definition","DefinitionTemplate","data","DataSlot","implementation","ImplementationSlot","input","property","resolve","ResolveContext","context","message","BlueprintContext","properties","toJSON","Error","error","Config","arguments_","_Arguments","Resolved","Template","PropertyKey","Data","Omit","Extract","InjectedDefinitionKeys","ResolveTemplate","Values","Implementation","Index","ReplaceTemplate","Date","RegExp","ReadonlyMap","ReadonlySet","WeakMap","WeakSet","PromiseLike","ArrayBuffer","ArrayBufferView","Type","OpaqueObject","Arguments","Result","ReplaceTuple","Properties","Property","DataPropertyTemplate","PropertiesTemplate","Json","Message","MessageTemplate","Argument","ImplementationArgumentWithDefinition","ImplementationArgument","PassedImplementationArgument","ExtendsNever","invariant","Condition","ErrorOptions","options","this","condition","InvariantInput","InstanceProperties","ConcreteDefinition","Instance","ErrorClassStatics","ConcreteErrorClass","ConstructorInput","PassedImplementationCallback","Value","OnTrue","OnFalse","InferredData","name","implement","DefaultBuilderData","Expand","ImplementationCallback","BuilderData","ImplementOptions","ImplementedErrorClass","BuilderInput","ImplementationBuilder","defineContext","ContextSchema","DefinitionInput","ExactDefinition","ErrorDefinitionBuilder","FamilyErrorClass","FamilyError","is","value"],"sources":["../../../../../../../../../../node_modules/.pnpm/@jfdevelops+create-error@0.2.1/node_modules/@jfdevelops/create-error/dist/types.d.mts"],"x_google_ignoreList":[0],"mappings":";;;;cAGc,QAAA;;KAET,QAAA;EAAA,UACO,QAAA;IAAA,SACCG,IAAAA,EAAM,IAAA;IAAA,SACNC,OAAAA,EAAS,OAAA;EAAA;AAAA;AAAA,KAIjB,gBAAA,gBAAgC,gBAAA,IAAoB,gBAAA,CAAiB,WAAA,CAAY,MAAA;AAAA,KAEjF,kBAAA,gBAAkC,gBAAA,IAAoB,gBAAA,CAAiB,MAAA,4CAAkD,gBAAA,CAAiB,MAAA,IAAU,gBAAA,CAAiB,MAAA,EAAQ,GAAA,IAAO,QAAA,eAAuB,GAAA;AAAA,KAE3M,QAAA,GAAW,QAAQ;AAAA,KACnB,kBAAA,GAAqB,QAAA;EAAA,mBACLa,QAAAA,EAAU,UAAA,YAAsB,QAAA,2BAAmC,UAAA;AAAA;;UAG9E,gBAAA,gBAAgC,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,iBAAA;EA1C6KS;;;;;AAA6C;AAAA;;;;;;;;;;;;;;;;EAiElO+B,SAAAA,mBAA4BI,IAAAA,OAAWxD,KAAAA,EAAO,KAAA,EAAOuD,OAAAA,GAAU,YAAA,KAAiB,KAAA,EAAOE,SAAAA,EAAW,SAAA,EAAWzD,KAAAA,EAAO,cAAA,CAAe,KAAA,GAAQuD,OAAAA,GAAU,YAAA,WAAuBE,SAAAA;AAAAA;;;;;;;;UAiBpK,kBAAA,0BAA4C,iBAAA;EA5EgE;;;;;EAAA,KAkF/GzD,KAAAA,EAAO,KAAA,EAAOuD,OAAAA,GAAU,YAAA,GAAe,QAAA;AAAA;AAAA,KAEzC,qBAAA,oCAAyD,kBAAA,CAAmB,gBAAA,CAAiB,MAAA,EAAQ,KAAA,GAAQ,kBAAA,CAAmB,MAAA,EAAQ,UAAA,EAAY,IAAA,EAAM,4BAAA,CAA6B,MAAA,EAAQ,UAAA,EAAY,IAAA;AAAA,KAC3M,YAAA,4BAAwC,KAAA,oBAAyB,MAAA,GAAS,OAAA"}
@@ -1,4 +1,6 @@
1
- //#region ../../node_modules/.pnpm/@jfdevelops+create-error@0.2.0_patch_hash=afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9/node_modules/@jfdevelops/create-error/dist/types.d.mts
1
+ import { StandardSchemaV1 } from "../../../../../@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.mjs";
2
+
3
+ //#region ../../node_modules/.pnpm/@jfdevelops+create-error@0.2.1/node_modules/@jfdevelops/create-error/dist/types.d.mts
2
4
  //#region src/types.d.ts
3
5
  declare const typeSlot: unique symbol;
4
6
  /** Marks a blueprint value that is resolved by a later builder stage. */
@@ -8,7 +10,49 @@ type TypeSlot<Kind extends string, Payload = never> = {
8
10
  readonly payload: Payload;
9
11
  };
10
12
  };
13
+ type DefinitionOutput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferOutput<Schema>;
14
+ type DefinitionTemplate<Schema extends StandardSchemaV1> = DefinitionOutput<Schema> extends object ? { readonly [Key in keyof DefinitionOutput<Schema>]: DefinitionOutput<Schema>[Key] & TypeSlot<'definition', Key> } : never;
11
15
  type DataSlot = TypeSlot<'data'>;
16
+ type ImplementationSlot = TypeSlot<'implementation'> & {
17
+ <const Argument$1>(argument: Argument$1): string & TypeSlot<'implementationArgument', Argument$1>;
18
+ };
19
+ /** Values available while an error instance is being created. */
20
+ interface BlueprintContext<Schema extends StandardSchemaV1> {
21
+ /** The parsed definition captured by the concrete error class. */
22
+ definition: DefinitionTemplate<Schema>;
23
+ /** The resolved, and optionally schema-validated, constructor data. */
24
+ data: DataSlot;
25
+ /**
26
+ * Calls the concrete error's implementation with one argument.
27
+ *
28
+ * The argument passed here defines the implementation callback's parameter
29
+ * type. Concrete definition fields are included automatically when the
30
+ * argument is a plain object.
31
+ */
32
+ implementation: ImplementationSlot;
33
+ }
34
+ /** Values available when resolving a concrete error's constructor input. */
35
+ interface ResolveContext<Schema extends StandardSchemaV1> {
36
+ /** The parsed definition captured by the concrete error class. */
37
+ definition: DefinitionTemplate<Schema>;
38
+ /** The value passed to the concrete error constructor. */
39
+ input: object;
40
+ }
41
+ /**
42
+ * Configuration accepted by {@link createError}.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const config = {
47
+ * definition,
48
+ * data: {
49
+ * property: 'context',
50
+ * resolve: ({ input }) => input,
51
+ * },
52
+ * message: ({ data, implementation }) => implementation(data),
53
+ * } satisfies CreateErrorConfig<typeof definition>;
54
+ * ```
55
+ */
12
56
  type ResolveTemplate<Config> = Config extends {
13
57
  data: {
14
58
  resolve: (...arguments_: infer _Arguments) => infer Resolved;
@@ -96,5 +140,5 @@ interface ConcreteErrorClass<Input, Instance> extends ErrorClassStatics {
96
140
  type ImplementedErrorClass<Config, Definition, Input, Data> = ConcreteErrorClass<ConstructorInput<Config, Input>, InstanceProperties<Config, Definition, Data, PassedImplementationCallback<Config, Definition, Data>>>;
97
141
  type ExtendsNever<Value, OnTrue, OnFalse> = [Value] extends [never] ? OnTrue : OnFalse;
98
142
  //#endregion
99
- export { ImplementedErrorClass };
143
+ export { BlueprintContext, DataSlot, ImplementedErrorClass, ResolveContext, TypeSlot };
100
144
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":["Kind","Payload","typeSlot","kind","payload","Schema","StandardSchemaV1","InferInput","InferOutput","Input","Definition","Record","Exclude","DefinitionOutput","Key","TypeSlot","Argument$1","argument","definition","DefinitionTemplate","data","DataSlot","implementation","ImplementationSlot","input","property","resolve","ResolveContext","context","message","BlueprintContext","properties","toJSON","Error","error","Config","arguments_","_Arguments","Resolved","Template","PropertyKey","Data","Omit","Extract","InjectedDefinitionKeys","ResolveTemplate","Values","Implementation","Index","ReplaceTemplate","Date","RegExp","ReadonlyMap","ReadonlySet","WeakMap","WeakSet","PromiseLike","ArrayBuffer","ArrayBufferView","Type","OpaqueObject","Arguments","Result","ReplaceTuple","Properties","Property","DataPropertyTemplate","PropertiesTemplate","Json","Message","MessageTemplate","Argument","ImplementationArgumentWithDefinition","ImplementationArgument","PassedImplementationArgument","ExtendsNever","invariant","Condition","ErrorOptions","options","this","condition","InvariantInput","InstanceProperties","ConcreteDefinition","Instance","ErrorClassStatics","ConcreteErrorClass","ConstructorInput","PassedImplementationCallback","Value","OnTrue","OnFalse","InferredData","name","implement","DefaultBuilderData","Expand","ImplementationCallback","BuilderData","ImplementOptions","ImplementedErrorClass","BuilderInput","ImplementationBuilder","defineContext","ContextSchema","DefinitionInput","ExactDefinition","ErrorDefinitionBuilder","FamilyErrorClass","FamilyError","is","value"],"sources":["../../../../../../../../../../node_modules/.pnpm/@jfdevelops+create-error@0.2.0_patch_hash=afc71b16c3f866f54416d30f467784ddc31736feb04f281a5fc4772ea422f4a9/node_modules/@jfdevelops/create-error/dist/types.d.mts"],"x_google_ignoreList":[0],"mappings":";;cAGc,QAAA;;KAET,QAAA;EAAA,UACO,QAAA;IAAA,SACCG,IAAAA,E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Ae,KAAA,GAAQuD,OAAAA,GAAU,YAAA,WAAuBE,SAAAA;AAAAA;;;;;;;;UAiBpK,kBAAA,0BAA4C,iBAAA;EA3EyfvE;;;;;EAAAA,KAiFxiBc,KAAAA,EAAO,KAAA,EAAOuD,OAAAA,GAAU,YAAA,GAAe,QAAA;AAAA;AAAA,KAEzC,qBAAA,oCAAyD,kBAAA,CAAmB,gBAAA,CAAiB,MAAA,EAAQ,KAAA,GAAQ,kBAAA,CAAmB,MAAA,EAAQ,UAAA,EAAY,IAAA,EAAM,4BAAA,CAA6B,MAAA,EAAQ,UAAA,EAAY,IAAA;AAAA,KAC3M,YAAA,4BAAwC,KAAA,oBAAyB,MAAA,GAAS,OAAA"}
1
+ {"version":3,"file":"types.d.mts","names":["Kind","Payload","typeSlot","kind","payload","Schema","StandardSchemaV1","InferInput","InferOutput","Input","Definition","Record","Exclude","DefinitionOutput","Key","TypeSlot","Argument$1","argument","definition","DefinitionTemplate","data","DataSlot","implementation","ImplementationSlot","input","property","resolve","ResolveContext","context","message","BlueprintContext","properties","toJSON","Error","error","Config","arguments_","_Arguments","Resolved","Template","PropertyKey","Data","Omit","Extract","InjectedDefinitionKeys","ResolveTemplate","Values","Implementation","Index","ReplaceTemplate","Date","RegExp","ReadonlyMap","ReadonlySet","WeakMap","WeakSet","PromiseLike","ArrayBuffer","ArrayBufferView","Type","OpaqueObject","Arguments","Result","ReplaceTuple","Properties","Property","DataPropertyTemplate","PropertiesTemplate","Json","Message","MessageTemplate","Argument","ImplementationArgumentWithDefinition","ImplementationArgument","PassedImplementationArgument","ExtendsNever","invariant","Condition","ErrorOptions","options","this","condition","InvariantInput","InstanceProperties","ConcreteDefinition","Instance","ErrorClassStatics","ConcreteErrorClass","ConstructorInput","PassedImplementationCallback","Value","OnTrue","OnFalse","InferredData","name","implement","DefaultBuilderData","Expand","ImplementationCallback","BuilderData","ImplementOptions","ImplementedErrorClass","BuilderInput","ImplementationBuilder","defineContext","ContextSchema","DefinitionInput","ExactDefinition","ErrorDefinitionBuilder","FamilyErrorClass","FamilyError","is","value"],"sources":["../../../../../../../../../../node_modules/.pnpm/@jfdevelops+create-error@0.2.1/node_modules/@jfdevelops/create-error/dist/types.d.mts"],"x_google_ignoreList":[0],"mappings":";;;;cAGc,QAAA;;KAET,QAAA;EAAA,UACO,QAAA;IAAA,SACCG,IAAAA,EAAM,IAAA;IAAA,SACNC,OAAAA,EAAS,OAAA;EAAA;AAAA;AAAA,KAIjB,gBAAA,gBAAgC,gBAAA,IAAoB,gBAAA,CAAiB,WAAA,CAAY,MAAA;AAAA,KAEjF,kBAAA,gBAAkC,gBAAA,IAAoB,gBAAA,CAAiB,MAAA,4CAAkD,gBAAA,CAAiB,MAAA,IAAU,gBAAA,CAAiB,MAAA,EAAQ,GAAA,IAAO,QAAA,eAAuB,GAAA;AAAA,KAE3M,QAAA,GAAW,QAAQ;AAAA,KACnB,kBAAA,GAAqB,QAAA;EAAA,mBACLa,QAAAA,EAAU,UAAA,YAAsB,QAAA,2BAAmC,UAAA;AAAA;;UAG9E,gBAAA,gBAAgC,gBAAA;EAbpBhB;EAepBiB,UAAAA,EAAY,kBAAA,CAAmB,MAAA;EAfJ;EAiB3BE,IAAAA,EAAM,QAAA;EAba;;;;;;;EAqBnBE,cAAAA,EAAgB,kBAAA;AAAA;;UAGR,cAAA,gBAA8B,gBAAA;EAxB8CjB;EA0BpFa,UAAAA,EAAY,kBAAA,CAAmB,MAAA;EA1B2D;EA4B1FM,KAAAA;AAAAA;;;;;;;;;;;;;;;;KAsGG,eAAA,WAA0B,MAAM;EACnCJ,IAAAA;IACEM,OAAAA,MAAaU,UAAAA;EAAAA;AAAAA,IAEbE,QAAAA;AAAAA,KACC,sBAAA,6BAAmD,QAAA,GAAW,QAAA,CAAS,GAAA,UAAa,QAAA,eAAuB,WAAA,IAAe,GAAA,iBAAoB,QAAA;AAAA,KAC9I,gBAAA,iBAAiC,IAAA,mCAAuCF,UAAAA,yBAAmC,IAAA,GAAO,IAAA,kBA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Q,UAAA,EAAY,IAAA;AAAA,KAC3M,YAAA,4BAAwC,KAAA,oBAAyB,MAAA,GAAS,OAAA"}
@@ -0,0 +1,80 @@
1
+ //#region ../../node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts
2
+ /** The Standard Typed interface. This is a base type extended by other specs. */
3
+ interface StandardTypedV1<Input = unknown, Output = Input> {
4
+ /** The Standard properties. */
5
+ readonly "~standard": StandardTypedV1.Props<Input, Output>;
6
+ }
7
+ declare namespace StandardTypedV1 {
8
+ /** The Standard Typed properties interface. */
9
+ interface Props<Input = unknown, Output = Input> {
10
+ /** The version number of the standard. */
11
+ readonly version: 1;
12
+ /** The vendor name of the schema library. */
13
+ readonly vendor: string;
14
+ /** Inferred types associated with the schema. */
15
+ readonly types?: Types<Input, Output> | undefined;
16
+ }
17
+ /** The Standard Typed types interface. */
18
+ interface Types<Input = unknown, Output = Input> {
19
+ /** The input type of the schema. */
20
+ readonly input: Input;
21
+ /** The output type of the schema. */
22
+ readonly output: Output;
23
+ }
24
+ /** Infers the input type of a Standard Typed. */
25
+ type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
26
+ /** Infers the output type of a Standard Typed. */
27
+ type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
28
+ }
29
+ /** The Standard Schema interface. */
30
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
31
+ /** The Standard Schema properties. */
32
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
33
+ }
34
+ declare namespace StandardSchemaV1 {
35
+ /** The Standard Schema properties interface. */
36
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
37
+ /** Validates unknown input values. */
38
+ readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
39
+ }
40
+ /** The result interface of the validate function. */
41
+ type Result<Output> = SuccessResult<Output> | FailureResult;
42
+ /** The result interface if validation succeeds. */
43
+ interface SuccessResult<Output> {
44
+ /** The typed output value. */
45
+ readonly value: Output;
46
+ /** A falsy value for `issues` indicates success. */
47
+ readonly issues?: undefined;
48
+ }
49
+ interface Options {
50
+ /** Explicit support for additional vendor-specific parameters, if needed. */
51
+ readonly libraryOptions?: Record<string, unknown> | undefined;
52
+ }
53
+ /** The result interface if validation fails. */
54
+ interface FailureResult {
55
+ /** The issues of failed validation. */
56
+ readonly issues: ReadonlyArray<Issue>;
57
+ }
58
+ /** The issue interface of the failure output. */
59
+ interface Issue {
60
+ /** The error message of the issue. */
61
+ readonly message: string;
62
+ /** The path of the issue, if any. */
63
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
64
+ }
65
+ /** The path segment interface of the issue. */
66
+ interface PathSegment {
67
+ /** The key representing a path segment. */
68
+ readonly key: PropertyKey;
69
+ }
70
+ /** The Standard types interface. */
71
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
72
+ /** Infers the input type of a Standard. */
73
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
74
+ /** Infers the output type of a Standard. */
75
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
76
+ }
77
+ /** The Standard JSON Schema interface. */
78
+ //#endregion
79
+ export { StandardSchemaV1 };
80
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":["Input","Output","StandardTypedV1","Props","version","vendor","types","Types","input","output","InferInput","Schema","NonNullable","InferOutput","StandardSchemaV1","validate","value","Options","options","Result","Promise","SuccessResult","FailureResult","issues","libraryOptions","Record","ReadonlyArray","Issue","message","path","PropertyKey","PathSegment","key","StandardJSONSchemaV1","jsonSchema","Converter","Target","target"],"sources":["../../../../../../../../../../node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts"],"x_google_ignoreList":[0],"mappings":";;UACU,e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,UAoChCsB,aAAAA;IAlCUtB;IAAAA,SAoCPuB,MAAAA,EAAQ,aAAA,CAAc,KAAA;EAAA;EA/B9Bb;EAAAA,UAkCKiB,KAAAA;IAlCqBzB;IAAAA,SAoClB0B,OAAAA;IApCiDjB;IAAAA,SAsCjDkB,IAAAA,GAAO,aAAA,CAAc,WAAA,GAAc,WAAA;EAAA;EApChB3B;EAAAA,UAuCtB6B,WAAAA;IAvCqDpB;IAAAA,SAyClDqB,GAAAA,EAAK,WAAA;EAAA;EAtCZ;EAAA,UAyCIzB,KAAAA,2BAAgC,KAAA,UAAe,eAAA,CAAgB,KAAA,CAAM,KAAA,EAAO,MAAA;EAzCrC;EAAA,KA4C5CG,UAAAA,gBAA0B,eAAA,IAAmB,eAAA,CAAgB,UAAA,CAAW,MAAA;EA1CzB;EAAA,KA4C/CG,WAAAA,gBAA2B,eAAA,IAAmB,eAAA,CAAgB,WAAA,CAAY,MAAA;AAAA"}
@@ -0,0 +1,80 @@
1
+ //#region ../../node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts
2
+ /** The Standard Typed interface. This is a base type extended by other specs. */
3
+ interface StandardTypedV1<Input = unknown, Output = Input> {
4
+ /** The Standard properties. */
5
+ readonly "~standard": StandardTypedV1.Props<Input, Output>;
6
+ }
7
+ declare namespace StandardTypedV1 {
8
+ /** The Standard Typed properties interface. */
9
+ interface Props<Input = unknown, Output = Input> {
10
+ /** The version number of the standard. */
11
+ readonly version: 1;
12
+ /** The vendor name of the schema library. */
13
+ readonly vendor: string;
14
+ /** Inferred types associated with the schema. */
15
+ readonly types?: Types<Input, Output> | undefined;
16
+ }
17
+ /** The Standard Typed types interface. */
18
+ interface Types<Input = unknown, Output = Input> {
19
+ /** The input type of the schema. */
20
+ readonly input: Input;
21
+ /** The output type of the schema. */
22
+ readonly output: Output;
23
+ }
24
+ /** Infers the input type of a Standard Typed. */
25
+ type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
26
+ /** Infers the output type of a Standard Typed. */
27
+ type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
28
+ }
29
+ /** The Standard Schema interface. */
30
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
31
+ /** The Standard Schema properties. */
32
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
33
+ }
34
+ declare namespace StandardSchemaV1 {
35
+ /** The Standard Schema properties interface. */
36
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
37
+ /** Validates unknown input values. */
38
+ readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
39
+ }
40
+ /** The result interface of the validate function. */
41
+ type Result<Output> = SuccessResult<Output> | FailureResult;
42
+ /** The result interface if validation succeeds. */
43
+ interface SuccessResult<Output> {
44
+ /** The typed output value. */
45
+ readonly value: Output;
46
+ /** A falsy value for `issues` indicates success. */
47
+ readonly issues?: undefined;
48
+ }
49
+ interface Options {
50
+ /** Explicit support for additional vendor-specific parameters, if needed. */
51
+ readonly libraryOptions?: Record<string, unknown> | undefined;
52
+ }
53
+ /** The result interface if validation fails. */
54
+ interface FailureResult {
55
+ /** The issues of failed validation. */
56
+ readonly issues: ReadonlyArray<Issue>;
57
+ }
58
+ /** The issue interface of the failure output. */
59
+ interface Issue {
60
+ /** The error message of the issue. */
61
+ readonly message: string;
62
+ /** The path of the issue, if any. */
63
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
64
+ }
65
+ /** The path segment interface of the issue. */
66
+ interface PathSegment {
67
+ /** The key representing a path segment. */
68
+ readonly key: PropertyKey;
69
+ }
70
+ /** The Standard types interface. */
71
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
72
+ /** Infers the input type of a Standard. */
73
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
74
+ /** Infers the output type of a Standard. */
75
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
76
+ }
77
+ /** The Standard JSON Schema interface. */
78
+ //#endregion
79
+ export { StandardSchemaV1 };
80
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":["Input","Output","StandardTypedV1","Props","version","vendor","types","Types","input","output","InferInput","Schema","NonNullable","InferOutput","StandardSchemaV1","validate","value","Options","options","Result","Promise","SuccessResult","FailureResult","issues","libraryOptions","Record","ReadonlyArray","Issue","message","path","PropertyKey","PathSegment","key","StandardJSONSchemaV1","jsonSchema","Converter","Target","target"],"sources":["../../../../../../../../../../node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts"],"x_google_ignoreList":[0],"mappings":";;UACU,eAAA,2BAA0C,KAAA;EAA3B;EAAA,SAEZ,WAAA,EAAa,eAAA,CAAgB,KAAA,CAAM,KAAA,EAAO,MAAA;AAAA;AAAA,kBAErC,eAAA;EAFqC;EAAA,UAIzCG,KAAAA,2BAAgC,KAAA;IAJC;IAAA,SAM9BC,OAAAA;IARSJ;IAAAA,SAUTK,MAAAA;IAVmCL;IAAAA,SAYnCM,KAAAA,GAAQ,KAAA,CAAM,KAAA,EAAO,MAAA;EAAA;EAVIH;EAAAA,UAa5BI,KAAAA,2BAAgC,KAAA;IAbSN;IAAAA,SAetCO,KAAAA,EAAO,KAAA;IAfqC;IAAA,SAiB5CC,MAAAA,EAAQ,MAAA;EAAA;EAfQ;EAAA,KAkBxBC,UAAAA,gBAA0B,eAAA,IAAmB,WAAA,CAAY,MAAA;EAVnC;EAAA,KAYtBG,WAAAA,gBAA2B,eAAA,IAAmB,WAAA,CAAY,MAAA;AAAA;;UAGzD,gBAAA,2BAA2C,KAAA;EAR5B;EAAA,SAUZ,WAAA,EAAa,gBAAA,CAAiB,KAAA,CAAM,KAAA,EAAO,MAAA;AAAA;AAAA,kBAEtC,gBAAA;EAPkB;EAAA,UAStBV,KAAAA,2BAAgC,KAAA,UAAe,eAAA,CAAgB,KAAA,CAAM,KAAA,EAAO,MAAA;IATnC;IAAA,SAWtCY,QAAAA,GAAWC,KAAAA,WAAgBE,OAAAA,GAAU,gBAAA,CAAiB,OAAA,iBAAwB,MAAA,CAAO,MAAA,IAAU,OAAA,CAAQ,MAAA,CAAO,MAAA;EAAA;EA7BjHf;EAAAA,KAgCLgB,MAAAA,WAAiB,aAAA,CAAc,MAAA,IAAU,aAAA;EAhCblB;EAAAA,UAkCvBoB,aAAAA;IAhCGjB;IAAAA,SAkCAY,KAAAA,EAAO,MAAA;IA9BPV;IAAAA,SAgCAiB,MAAAA;EAAAA;EAAAA,UAEHN,OAAAA;IA/BAV;IAAAA,SAiCGiB,cAAAA,GAAiB,MAAA;EAAA;EAjCYxB;EAAAA,UAoChCsB,aAAAA;IAlCUtB;IAAAA,SAoCPuB,MAAAA,EAAQ,aAAA,CAAc,KAAA;EAAA;EA/B9Bb;EAAAA,UAkCKiB,KAAAA;IAlCqBzB;IAAAA,SAoClB0B,OAAAA;IApCiDjB;IAAAA,SAsCjDkB,IAAAA,GAAO,aAAA,CAAc,WAAA,GAAc,WAAA;EAAA;EApChB3B;EAAAA,UAuCtB6B,WAAAA;IAvCqDpB;IAAAA,SAyClDqB,GAAAA,EAAK,WAAA;EAAA;EAtCZ;EAAA,UAyCIzB,KAAAA,2BAAgC,KAAA,UAAe,eAAA,CAAgB,KAAA,CAAM,KAAA,EAAO,MAAA;EAzCrC;EAAA,KA4C5CG,UAAAA,gBAA0B,eAAA,IAAmB,eAAA,CAAgB,UAAA,CAAW,MAAA;EA1CzB;EAAA,KA4C/CG,WAAAA,gBAA2B,eAAA,IAAmB,eAAA,CAAgB,WAAA,CAAY,MAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jfdevelops/react-layout-composables",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Composable components for react-layout.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,9 +27,9 @@
27
27
  "node": "^20.19.0 || >=22.12.0"
28
28
  },
29
29
  "dependencies": {
30
- "@jfdevelops/create-error": "0.2.0",
30
+ "@jfdevelops/create-error": "0.2.1",
31
31
  "arktype": "2.2.8",
32
- "@jfdevelops/react-layout-validator": "0.4.0"
32
+ "@jfdevelops/react-layout-validator": "0.4.1"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": ">=18",