@effect-app/vue 2.72.4 → 2.73.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.
- package/CHANGELOG.md +16 -0
- package/dist/experimental/commander.d.ts +1 -1
- package/dist/experimental/makeUseCommand.d.ts +8 -8
- package/dist/makeClient.d.ts +22 -22
- package/dist/makeContext.d.ts +14 -2
- package/dist/makeContext.d.ts.map +1 -1
- package/dist/makeContext.js +15 -1
- package/dist/makeIntl.d.ts +4 -4
- package/dist/makeIntl.d.ts.map +1 -1
- package/dist/makeIntl.js +7 -5
- package/package.json +1 -1
- package/src/makeContext.ts +26 -1
- package/src/makeIntl.ts +5 -4
- package/test/dist/stubs.d.ts +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @effect-app/vue
|
|
2
2
|
|
|
3
|
+
## 2.73.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- eb082c1: fix locale input
|
|
8
|
+
|
|
9
|
+
## 2.73.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- form intl provider should be providing a composable
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 6272279: expand inject helpers
|
|
18
|
+
|
|
3
19
|
## 2.72.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -189,7 +189,7 @@ export declare const CommanderStatic: {
|
|
|
189
189
|
errorRenderer?: ErrorRenderer<E, Args>;
|
|
190
190
|
onWaiting?: null | undefined | string | ((action: string, ...args: Args) => string | null | undefined);
|
|
191
191
|
onSuccess?: null | undefined | string | ((a: A, action: string, ...args: Args) => string | null | undefined);
|
|
192
|
-
}) => (self: Effect.Effect<A, E, R>, ...args: Args) => Effect.Effect<A, E, I18n |
|
|
192
|
+
}) => (self: Effect.Effect<A, E, R>, ...args: Args) => Effect.Effect<A, E, I18n | CommandContext | R | WithToast>;
|
|
193
193
|
};
|
|
194
194
|
declare const Commander_base: Effect.Service.Class<Commander, "Commander", {
|
|
195
195
|
readonly dependencies: readonly [import("effect/Layer").Layer<WithToast, never, import("./toast.js").Toast>, import("effect/Layer").Layer<Confirm, never, I18n>];
|
|
@@ -13,23 +13,23 @@ export declare const makeUseCommand: <R = never>() => Effect.Effect<{
|
|
|
13
13
|
errorRenderer?: (e: E_1, action: string, ...args: Args_2) => string | undefined;
|
|
14
14
|
onWaiting?: null | undefined | string | ((action: string, ...args: Args_2) => string | null | undefined);
|
|
15
15
|
onSuccess?: null | undefined | string | ((a: A, action: string, ...args: Args_2) => string | null | undefined);
|
|
16
|
-
}) => (self: Effect.Effect<A, E_1, R_2>, ...args: Args_2) => Effect.Effect<A, E_1, import("./intl.js").I18n | import("./
|
|
16
|
+
}) => (self: Effect.Effect<A, E_1, R_2>, ...args: Args_2) => Effect.Effect<A, E_1, import("./intl.js").I18n | import("./commander.js").CommandContext | R_2 | import("./withToast.js").WithToast>;
|
|
17
17
|
alt: <const Id extends string, const I18nKey extends string = Id>(id: Id, customI18nKey?: I18nKey | undefined) => Commander.CommandContextLocal<Id, I18nKey> & (<Args_3 extends Array<unknown>, A, E_2, R_3 extends import("./commander.js").CommandContext | R>(handler: (...args: Args_3) => Effect.Effect<A, E_2, R_3>) => Commander.CommandOut<Args_3, A, E_2, R_3, Id, I18nKey>);
|
|
18
18
|
fn: <const Id extends string, const I18nKey_1 extends string = Id>(id: Id | {
|
|
19
19
|
id: Id;
|
|
20
20
|
}, customI18nKey?: I18nKey_1 | undefined) => Commander.Gen<R, Id, I18nKey_1> & Commander.NonGen<R, Id, I18nKey_1>;
|
|
21
|
-
wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_4, I18nKey_2 extends string = Id>(mutation:
|
|
22
|
-
id: Id;
|
|
23
|
-
}) | {
|
|
21
|
+
wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_4, I18nKey_2 extends string = Id>(mutation: {
|
|
24
22
|
mutate: (...args: Args_3) => Effect.Effect<A_1, E_3, R_4>;
|
|
25
23
|
id: Id;
|
|
26
|
-
}
|
|
27
|
-
alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR, const I18nKey_3 extends string = Id>(id: Id | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
|
|
24
|
+
} | (((...args: Args_3) => Effect.Effect<A_1, E_3, R_4>) & {
|
|
28
25
|
id: Id;
|
|
29
|
-
}) |
|
|
26
|
+
}), customI18nKey?: I18nKey_2 | undefined) => Commander.CommandContextLocal<Id, I18nKey_2> & Commander.GenWrap<R, Id, I18nKey_2, Args_3, A_1, E_3, R_4> & Commander.NonGenWrap<R, Id, I18nKey_2, Args_3, A_1, E_3, R_4>;
|
|
27
|
+
alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR, const I18nKey_3 extends string = Id>(id: Id | {
|
|
30
28
|
id: Id;
|
|
31
29
|
mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
|
|
32
|
-
}
|
|
30
|
+
} | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
|
|
31
|
+
id: Id;
|
|
32
|
+
}), customI18nKey?: I18nKey_3 | undefined) => Commander.CommandContextLocal<Id, I18nKey_3> & (<Args_4 extends Array<unknown>, A_2, E_4, R_5 extends import("./commander.js").CommandContext | R>(handler: (ctx: Effect.fn.Gen & Effect.fn.NonGen & Commander.CommandContextLocal<Id, I18nKey_3> & {
|
|
33
33
|
mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
|
|
34
34
|
}) => (...args: Args_4) => Effect.Effect<A_2, E_4, R_5>) => Commander.CommandOut<Args_4, A_2, E_4, R_5, Id, I18nKey_3>);
|
|
35
35
|
_tag: "Commander";
|
package/dist/makeClient.d.ts
CHANGED
|
@@ -155,23 +155,23 @@ export declare const makeClient: <RT, RE, RL>(getBaseMrt: () => ManagedRuntime.M
|
|
|
155
155
|
errorRenderer?: (e: E_1, action: string, ...args: Args_2) => string | undefined;
|
|
156
156
|
onWaiting?: null | undefined | string | ((action: string, ...args: Args_2) => string | null | undefined);
|
|
157
157
|
onSuccess?: null | undefined | string | ((a: A, action: string, ...args: Args_2) => string | null | undefined);
|
|
158
|
-
}) => (self: Effect.Effect<A, E_1, R_1>, ...args: Args_2) => Effect.Effect<A, E_1, I18n | import("./experimental/
|
|
159
|
-
alt: <const Id extends string, const I18nKey extends string = Id>(id: Id, customI18nKey?: I18nKey | undefined) => Commander.CommandContextLocal<Id, I18nKey> & (<Args_3 extends Array<unknown>, A, E_2, R_2 extends I18n |
|
|
158
|
+
}) => (self: Effect.Effect<A, E_1, R_1>, ...args: Args_2) => Effect.Effect<A, E_1, I18n | import("./experimental/commander.js").CommandContext | R_1 | import("./experimental/withToast.js").WithToast>;
|
|
159
|
+
alt: <const Id extends string, const I18nKey extends string = Id>(id: Id, customI18nKey?: I18nKey | undefined) => Commander.CommandContextLocal<Id, I18nKey> & (<Args_3 extends Array<unknown>, A, E_2, R_2 extends I18n | import("./experimental/commander.js").CommandContext | Toast | RL>(handler: (...args: Args_3) => Effect.Effect<A, E_2, R_2>) => Commander.CommandOut<Args_3, A, E_2, R_2, Id, I18nKey>);
|
|
160
160
|
fn: <const Id extends string, const I18nKey_1 extends string = Id>(id: Id | {
|
|
161
161
|
id: Id;
|
|
162
162
|
}, customI18nKey?: I18nKey_1 | undefined) => Commander.Gen<I18n | Toast | RL, Id, I18nKey_1> & Commander.NonGen<I18n | Toast | RL, Id, I18nKey_1>;
|
|
163
|
-
wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_3, I18nKey_2 extends string = Id>(mutation:
|
|
164
|
-
id: Id;
|
|
165
|
-
}) | {
|
|
163
|
+
wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_3, I18nKey_2 extends string = Id>(mutation: {
|
|
166
164
|
mutate: (...args: Args_3) => Effect.Effect<A_1, E_3, R_3>;
|
|
167
165
|
id: Id;
|
|
168
|
-
}
|
|
169
|
-
alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR, const I18nKey_3 extends string = Id>(id: Id | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
|
|
166
|
+
} | (((...args: Args_3) => Effect.Effect<A_1, E_3, R_3>) & {
|
|
170
167
|
id: Id;
|
|
171
|
-
}) |
|
|
168
|
+
}), customI18nKey?: I18nKey_2 | undefined) => Commander.CommandContextLocal<Id, I18nKey_2> & Commander.GenWrap<I18n | Toast | RL, Id, I18nKey_2, Args_3, A_1, E_3, R_3> & Commander.NonGenWrap<I18n | Toast | RL, Id, I18nKey_2, Args_3, A_1, E_3, R_3>;
|
|
169
|
+
alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR, const I18nKey_3 extends string = Id>(id: Id | {
|
|
172
170
|
id: Id;
|
|
173
171
|
mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
|
|
174
|
-
}
|
|
172
|
+
} | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
|
|
173
|
+
id: Id;
|
|
174
|
+
}), customI18nKey?: I18nKey_3 | undefined) => Commander.CommandContextLocal<Id, I18nKey_3> & (<Args_4 extends Array<unknown>, A_2, E_4, R_4 extends I18n | import("./experimental/commander.js").CommandContext | Toast | RL>(handler: (ctx: Effect.fn.Gen & Effect.fn.NonGen & Commander.CommandContextLocal<Id, I18nKey_3> & {
|
|
175
175
|
mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
|
|
176
176
|
}) => (...args: Args_4) => Effect.Effect<A_2, E_4, R_4>) => Commander.CommandOut<Args_4, A_2, E_4, R_4, Id, I18nKey_3>);
|
|
177
177
|
_tag: "Commander";
|
|
@@ -189,23 +189,23 @@ export declare const makeClient: <RT, RE, RL>(getBaseMrt: () => ManagedRuntime.M
|
|
|
189
189
|
errorRenderer?: (e: E_1, action: string, ...args: Args_2) => string | undefined;
|
|
190
190
|
onWaiting?: null | undefined | string | ((action: string, ...args: Args_2) => string | null | undefined);
|
|
191
191
|
onSuccess?: null | undefined | string | ((a: A_3, action: string, ...args: Args_2) => string | null | undefined);
|
|
192
|
-
}) => (self: Effect.Effect<A_3, E_1, R_1>, ...args: Args_2) => Effect.Effect<A_3, E_1, I18n | import("./experimental/
|
|
193
|
-
alt: <const Id extends string, const I18nKey extends string = Id>(id: Id, customI18nKey?: I18nKey | undefined) => Commander.CommandContextLocal<Id, I18nKey> & (<Args_4 extends Array<unknown>, A, E_2, R_2 extends I18n |
|
|
192
|
+
}) => (self: Effect.Effect<A_3, E_1, R_1>, ...args: Args_2) => Effect.Effect<A_3, E_1, I18n | import("./experimental/commander.js").CommandContext | R_1 | import("./experimental/withToast.js").WithToast>;
|
|
193
|
+
alt: <const Id extends string, const I18nKey extends string = Id>(id: Id, customI18nKey?: I18nKey | undefined) => Commander.CommandContextLocal<Id, I18nKey> & (<Args_4 extends Array<unknown>, A, E_2, R_2 extends I18n | import("./experimental/commander.js").CommandContext | Toast | RL>(handler: (...args: Args_4) => Effect.Effect<A, E_2, R_2>) => Commander.CommandOut<Args_4, A, E_2, R_2, Id, I18nKey>);
|
|
194
194
|
fn: <const Id extends string, const I18nKey_1 extends string = Id>(id: Id | {
|
|
195
195
|
id: Id;
|
|
196
196
|
}, customI18nKey?: I18nKey_1 | undefined) => Commander.Gen<I18n | Toast | RL, Id, I18nKey_1> & Commander.NonGen<I18n | Toast | RL, Id, I18nKey_1>;
|
|
197
|
-
wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_3, I18nKey_2 extends string = Id>(mutation:
|
|
198
|
-
id: Id;
|
|
199
|
-
}) | {
|
|
197
|
+
wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_3, I18nKey_2 extends string = Id>(mutation: {
|
|
200
198
|
mutate: (...args: Args_3) => Effect.Effect<A_1, E_3, R_3>;
|
|
201
199
|
id: Id;
|
|
202
|
-
}
|
|
203
|
-
alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR, const I18nKey_3 extends string = Id>(id: Id | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
|
|
200
|
+
} | (((...args: Args_3) => Effect.Effect<A_1, E_3, R_3>) & {
|
|
204
201
|
id: Id;
|
|
205
|
-
}) |
|
|
202
|
+
}), customI18nKey?: I18nKey_2 | undefined) => Commander.CommandContextLocal<Id, I18nKey_2> & Commander.GenWrap<I18n | Toast | RL, Id, I18nKey_2, Args_3, A_1, E_3, R_3> & Commander.NonGenWrap<I18n | Toast | RL, Id, I18nKey_2, Args_3, A_1, E_3, R_3>;
|
|
203
|
+
alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR, const I18nKey_3 extends string = Id>(id: Id | {
|
|
206
204
|
id: Id;
|
|
207
205
|
mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
|
|
208
|
-
}
|
|
206
|
+
} | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
|
|
207
|
+
id: Id;
|
|
208
|
+
}), customI18nKey?: I18nKey_3 | undefined) => Commander.CommandContextLocal<Id, I18nKey_3> & (<Args_4 extends Array<unknown>, A_2, E_4, R_4 extends I18n | import("./experimental/commander.js").CommandContext | Toast | RL>(handler: (ctx: Effect.fn.Gen & Effect.fn.NonGen & Commander.CommandContextLocal<Id, I18nKey_3> & {
|
|
209
209
|
mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
|
|
210
210
|
}) => (...args: Args_4) => Effect.Effect<A_2, E_4, R_4>) => Commander.CommandOut<Args_4, A_2, E_4, R_4, Id, I18nKey_3>);
|
|
211
211
|
_tag: "Commander";
|
|
@@ -445,16 +445,16 @@ export declare const makeClient: <RT, RE, RL>(getBaseMrt: () => ManagedRuntime.M
|
|
|
445
445
|
};
|
|
446
446
|
makeUseAndHandleMutation: (defaultOptions?: Opts<any, any, any, any, any, any, any, any, any>) => {
|
|
447
447
|
<I, E_12 extends ResponseErrors, A_17, R_15, Request_14 extends TaggedRequestClassAny, Name_14 extends string, A2_10 = A_17, E2_10 extends ResponseErrors = E_12, R2_10 = R_15, ESuccess_8 = never, RSuccess_8 = never, EError_8 = never, RError_8 = never, EDefect_8 = never, RDefect_8 = never>(self: RequestHandlerWithInput<I, A_17, E_12, R_15, Request_14, Name_14>, action: string, options?: Opts<A_17, E_12, R_15, I, A2_10, E2_10, R2_10, ESuccess_8, RSuccess_8, EError_8, RError_8, EDefect_8, RDefect_8> | undefined): Resp<I, A2_10, E2_10, R2_10, ComputedRef<Res<A2_10, E2_10>>>;
|
|
448
|
-
<E_13 extends ResponseErrors, A_18, Request_15 extends TaggedRequestClassAny, Name_15 extends string, A2_11 = A_18, E2_11 extends ResponseErrors = E_13, R2_11 = LegacyMutation |
|
|
448
|
+
<E_13 extends ResponseErrors, A_18, Request_15 extends TaggedRequestClassAny, Name_15 extends string, A2_11 = A_18, E2_11 extends ResponseErrors = E_13, R2_11 = LegacyMutation | Base | RL, ESuccess_9 = never, RSuccess_9 = never, EError_9 = never, RError_9 = never, EDefect_9 = never, RDefect_9 = never>(self: RequestHandler<A_18, E_13, LegacyMutation | Base | RL, Request_15, Name_15>, action: string, options?: Opts<A_18, E_13, LegacyMutation | Base | RL, void, A2_11, E2_11, R2_11, ESuccess_9, RSuccess_9, EError_9, RError_9, EDefect_9, RDefect_9> | undefined): ActResp<A2_11, E2_11, R2_11, ComputedRef<Res<A2_11, E2_11>>>;
|
|
449
449
|
};
|
|
450
450
|
useHandleRequestWithToast: () => <A_19, E_13 extends ResponseErrors, R_16, I = void, A2_12 = A_19, E2_12 extends ResponseErrors = E_13, R2_12 = R_16, ESuccess_10 = never, RSuccess_10 = never, EError_10 = never, RError_10 = never, EDefect_10 = never, RDefect_10 = never>(f: Effect.Effect<Exit.Exit<A2_12, E2_12>, never, R2_12> | ((i: I) => Effect.Effect<Exit.Exit<A2_12, E2_12>, never, R2_12>), id: string, action: string, options?: Opts<A_19, E_13, R_16, I, A2_12, E2_12, R2_12, ESuccess_10, RSuccess_10, EError_10, RError_10, EDefect_10, RDefect_10>) => (Effect.Effect<Exit.Exit<A2_12, E2_12>, ESuccess_10 | EError_10 | EDefect_10, Exclude<R2_12, import("effect/Tracer").ParentSpan> | Exclude<RSuccess_10, import("effect/Tracer").ParentSpan> | Exclude<RError_10, import("effect/Tracer").ParentSpan> | Exclude<RDefect_10, import("effect/Tracer").ParentSpan>> | ((i: any) => Effect.Effect<Exit.Exit<A2_12, E2_12>, ESuccess_10 | EError_10 | EDefect_10, Exclude<R2_12, import("effect/Tracer").ParentSpan> | Exclude<RSuccess_10, import("effect/Tracer").ParentSpan> | Exclude<RError_10, import("effect/Tracer").ParentSpan> | Exclude<RDefect_10, import("effect/Tracer").ParentSpan>>)) & {
|
|
451
451
|
action: string;
|
|
452
452
|
};
|
|
453
|
-
buildFormFromSchema: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, C extends Record<PropertyKey, any>, OnSubmitA>(s: S.Schema<To, From, LegacyMutation |
|
|
453
|
+
buildFormFromSchema: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, C extends Record<PropertyKey, any>, OnSubmitA>(s: S.Schema<To, From, LegacyMutation | Base | RL> & {
|
|
454
454
|
new (c: C): any;
|
|
455
455
|
extend: any;
|
|
456
456
|
fields: S.Struct.Fields;
|
|
457
|
-
}, state: Ref<Omit<From, "_tag">, Omit<From, "_tag">>, onSubmit: (a: To) => Effect.Effect<OnSubmitA, never, LegacyMutation |
|
|
457
|
+
}, state: Ref<Omit<From, "_tag">, Omit<From, "_tag">>, onSubmit: (a: To) => Effect.Effect<OnSubmitA, never, LegacyMutation | Base | RL>) => {
|
|
458
458
|
fields: { [K in keyof To]-?: {
|
|
459
459
|
true: {
|
|
460
460
|
true: To[K] extends {
|
|
@@ -469,7 +469,7 @@ export declare const makeClient: <RT, RE, RL>(getBaseMrt: () => ManagedRuntime.M
|
|
|
469
469
|
valid: boolean;
|
|
470
470
|
}>>(e: T) => Promise<OnSubmitA | undefined>;
|
|
471
471
|
/** optimized for Native form submit callback or general use */
|
|
472
|
-
submitFromState: Effect.Effect<OnSubmitA, S.ParseResult.ParseError, LegacyMutation |
|
|
472
|
+
submitFromState: Effect.Effect<OnSubmitA, S.ParseResult.ParseError, LegacyMutation | Base | RL>;
|
|
473
473
|
submitFromStatePromise: () => Promise<OnSubmitA>;
|
|
474
474
|
isDirty: Ref<boolean, boolean>;
|
|
475
475
|
isValid: Ref<boolean, boolean>;
|
package/dist/makeContext.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { type InjectionKey } from "vue";
|
|
2
|
+
export declare const makeContext: {
|
|
3
|
+
<T>(def: T): {
|
|
4
|
+
use: () => T;
|
|
5
|
+
provide: (locale: T) => void;
|
|
6
|
+
};
|
|
7
|
+
<T>(def?: T | undefined): {
|
|
8
|
+
use: () => T | undefined;
|
|
9
|
+
provide: (locale: T) => void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const injectCertain: <T>(key: InjectionKey<T>) => T & ({} | null);
|
|
13
|
+
export declare const makeContextCertain: <T>() => {
|
|
14
|
+
use: () => T & ({} | null);
|
|
3
15
|
provide: (locale: T) => void;
|
|
4
16
|
};
|
|
5
17
|
//# sourceMappingURL=makeContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeContext.d.ts","sourceRoot":"","sources":["../src/makeContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"makeContext.d.ts","sourceRoot":"","sources":["../src/makeContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAW,MAAM,KAAK,CAAA;AAExD,eAAO,MAAM,WAAW,EAAE;IACxB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG;QACX,GAAG,EAAE,MAAM,CAAC,CAAA;QACZ,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAA;KAC7B,CAAA;IACD,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,GAAG;QACxB,GAAG,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;QACxB,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAA;KAC7B,CAAA;CAOF,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,KAAK,YAAY,CAAC,CAAC,CAAC,oBAMpD,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,CAAC;;sBAId,CAAC;CAEtB,CAAA"}
|
package/dist/makeContext.js
CHANGED
|
@@ -6,4 +6,18 @@ export const makeContext = (def) => {
|
|
|
6
6
|
provide: (locale) => provide(key, locale)
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
export const injectCertain = (key) => {
|
|
10
|
+
const v = inject(key);
|
|
11
|
+
if (v === undefined) {
|
|
12
|
+
throw new Error(`Injectionkey ${key.toString()} not found`);
|
|
13
|
+
}
|
|
14
|
+
return v;
|
|
15
|
+
};
|
|
16
|
+
export const makeContextCertain = () => {
|
|
17
|
+
const key = Symbol();
|
|
18
|
+
return {
|
|
19
|
+
use: () => injectCertain(key),
|
|
20
|
+
provide: (locale) => provide(key, locale)
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFrZUNvbnRleHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvbWFrZUNvbnRleHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBcUIsT0FBTyxFQUFFLE1BQU0sS0FBSyxDQUFBO0FBRXhELE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FTcEIsQ0FBSSxHQUFPLEVBQUUsRU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<T = string> extends ResolvedIntlConfig<T>, IntlFormatters<T> {
|
|
7
7
|
formatters: Formatters;
|
|
8
8
|
}
|
|
9
|
-
export declare const makeIntl: <Locale extends string>(messages: Record<Locale, Record<string, string>>,
|
|
9
|
+
export declare const makeIntl: <Locale extends string>(messages: Record<Locale, Record<string, string>>, localeRef: Ref<NoInfer<Locale>>) => {
|
|
10
10
|
useIntl: () => {
|
|
11
|
-
locale: Ref<Locale
|
|
11
|
+
locale: Ref<NoInfer<Locale>, NoInfer<Locale>>;
|
|
12
12
|
trans: (id: keyof (typeof messages)[Locale], values?: Record<string, PrimitiveType | FormatXMLElementFn<string, string>>) => string;
|
|
13
13
|
readonly formatMessage: (descriptor: MessageDescriptor, values?: Record<string, PrimitiveType | FormatXMLElementFn<string, string>>, opts?: IntlMessageFormatOptions) => string;
|
|
14
14
|
readonly intl: IntlShape<Locale>;
|
|
15
15
|
};
|
|
16
16
|
LocaleContext: {
|
|
17
|
-
use: () => Ref<Locale
|
|
18
|
-
provide: (locale: Ref<Locale
|
|
17
|
+
use: () => Ref<NoInfer<Locale>, NoInfer<Locale>>;
|
|
18
|
+
provide: (locale: Ref<NoInfer<Locale>, NoInfer<Locale>>) => void;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=makeIntl.d.ts.map
|
package/dist/makeIntl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeIntl.d.ts","sourceRoot":"","sources":["../src/makeIntl.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAEnJ,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,OAAO,IAAI,wBAAwB,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC1H,OAAO,EAAE,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"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|
1
1
|
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
2
2
|
import { createIntl, createIntlCache } from "@formatjs/intl";
|
|
3
3
|
import { typedKeysOf } from "effect-app/utils";
|
|
4
|
-
import {
|
|
4
|
+
import { watch } from "vue";
|
|
5
5
|
import { translate } from "./form.js";
|
|
6
6
|
import { makeContext } from "./makeContext.js";
|
|
7
|
-
export const makeIntl = (messages,
|
|
7
|
+
export const makeIntl = (messages,
|
|
8
|
+
// TODO: changing locale should really be a page reload, as you don't want to listen to the locale changing at every place
|
|
9
|
+
localeRef) => {
|
|
8
10
|
const intlCache = createIntlCache();
|
|
9
11
|
const intls = typedKeysOf(messages).reduce((acc, cur) => {
|
|
10
12
|
acc[cur] = createIntl({
|
|
11
|
-
defaultLocale,
|
|
13
|
+
defaultLocale: localeRef.value,
|
|
12
14
|
locale: cur,
|
|
13
15
|
messages: messages[cur]
|
|
14
16
|
}, intlCache);
|
|
15
17
|
return acc;
|
|
16
18
|
}, {});
|
|
17
|
-
const LocaleContext = makeContext(
|
|
19
|
+
const LocaleContext = makeContext(localeRef);
|
|
18
20
|
const useIntl = () => {
|
|
19
21
|
const locale = LocaleContext.use();
|
|
20
22
|
const trans = (id, values
|
|
@@ -37,4 +39,4 @@ export const makeIntl = (messages, defaultLocale) => {
|
|
|
37
39
|
};
|
|
38
40
|
return { useIntl, LocaleContext };
|
|
39
41
|
};
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFrZUludGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvbWFrZUludGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNERBQTREO0FBQzVELE9BQU8sRUFBRSxVQUFVLEVBQUUsZUFBZSxFQUF5RixNQUFNLGdCQUFnQixDQUFBO0FBQ25KLE9BQU8sRUFBRSxXQUFXLEVBQUU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sQ0FBQyxhQUFhLENBQUMsRUFBRSxFQUFFLEVBQUUsRUFBUyxFQUFFLEVBQUUsTUFBTSxDQUFDLENBQUE7UUFFakUsS0FBSyxDQUNILE1BQU0sRUFDTixDQUFDLE1BQU0sRUFBRSxFQUFFO1lBQ1QsTUFBTSxJQUFJLEdBQUcsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFBO1lBQzFCLFNBQVMsQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FBQTtRQUN0QyxDQUFDLEVBQ0QsRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLENBQ3BCLENBQUE7UUFFRCxPQUFPO1lBQ0wsTUFBTTtZQUNOLEtBQUs7WUFDTCxJQUFJLGFBQWE7Z0JBS2YsT0FBTyxLQUFLLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDLGFBQWEsQ0FBQTtZQUMxQyxDQUFDO1lBQ0QsSUFBSSxJQUFJO2dCQUNOLE9BQU8sS0FBSyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQXNCLENBQUE7WUFDakQsQ0FBQztTQUNGLENBQUE7SUFDSCxDQUFDLENBQUE7SUFDRCxPQUFPLEVBQUUsT0FBTyxFQUFFLGFBQWEsRUFBRSxDQUFBO0FBQ25DLENBQUMsQ0FBQSJ9
|
package/package.json
CHANGED
package/src/makeContext.ts
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { inject, type InjectionKey, provide } from "vue"
|
|
2
2
|
|
|
3
|
-
export const makeContext
|
|
3
|
+
export const makeContext: {
|
|
4
|
+
<T>(def: T): {
|
|
5
|
+
use: () => T
|
|
6
|
+
provide: (locale: T) => void
|
|
7
|
+
}
|
|
8
|
+
<T>(def?: T | undefined): {
|
|
9
|
+
use: () => T | undefined
|
|
10
|
+
provide: (locale: T) => void
|
|
11
|
+
}
|
|
12
|
+
} = <T>(def?: T) => {
|
|
4
13
|
const key = Symbol() as InjectionKey<T>
|
|
5
14
|
return {
|
|
6
15
|
use: () => inject(key, def),
|
|
7
16
|
provide: (locale: T) => provide(key, locale)
|
|
8
17
|
}
|
|
9
18
|
}
|
|
19
|
+
|
|
20
|
+
export const injectCertain = <T>(key: InjectionKey<T>) => {
|
|
21
|
+
const v = inject(key)
|
|
22
|
+
if (v === undefined) {
|
|
23
|
+
throw new Error(`Injectionkey ${key.toString()} not found`)
|
|
24
|
+
}
|
|
25
|
+
return v
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const makeContextCertain = <T>() => {
|
|
29
|
+
const key = Symbol() as InjectionKey<T>
|
|
30
|
+
return {
|
|
31
|
+
use: () => injectCertain(key),
|
|
32
|
+
provide: (locale: T) => provide(key, locale)
|
|
33
|
+
}
|
|
34
|
+
}
|
package/src/makeIntl.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createIntl, createIntlCache, type Formatters, type IntlFormatters, type MessageDescriptor, type ResolvedIntlConfig } from "@formatjs/intl"
|
|
3
3
|
import { typedKeysOf } from "effect-app/utils"
|
|
4
4
|
import { type FormatXMLElementFn, type Options as IntlMessageFormatOptions, type PrimitiveType } from "intl-messageformat"
|
|
5
|
-
import { type Ref,
|
|
5
|
+
import { type Ref, watch } from "vue"
|
|
6
6
|
import { translate } from "./form.js"
|
|
7
7
|
import { makeContext } from "./makeContext.js"
|
|
8
8
|
|
|
@@ -15,7 +15,8 @@ export interface IntlShape<T = string> extends ResolvedIntlConfig<T>, IntlFormat
|
|
|
15
15
|
|
|
16
16
|
export const makeIntl = <Locale extends string>(
|
|
17
17
|
messages: Record<Locale, Record<string, string>>,
|
|
18
|
-
|
|
18
|
+
// TODO: changing locale should really be a page reload, as you don't want to listen to the locale changing at every place
|
|
19
|
+
localeRef: Ref<NoInfer<Locale>>
|
|
19
20
|
) => {
|
|
20
21
|
const intlCache = createIntlCache()
|
|
21
22
|
|
|
@@ -23,7 +24,7 @@ export const makeIntl = <Locale extends string>(
|
|
|
23
24
|
(acc, cur) => {
|
|
24
25
|
acc[cur] = createIntl<Locale>(
|
|
25
26
|
{
|
|
26
|
-
defaultLocale,
|
|
27
|
+
defaultLocale: localeRef.value,
|
|
27
28
|
locale: cur,
|
|
28
29
|
messages: messages[cur]
|
|
29
30
|
},
|
|
@@ -34,7 +35,7 @@ export const makeIntl = <Locale extends string>(
|
|
|
34
35
|
{} as Record<Locale, IntlShape<Locale>>
|
|
35
36
|
)
|
|
36
37
|
|
|
37
|
-
const LocaleContext = makeContext(
|
|
38
|
+
const LocaleContext = makeContext(localeRef)
|
|
38
39
|
|
|
39
40
|
const useIntl = () => {
|
|
40
41
|
const locale = LocaleContext.use()
|
package/test/dist/stubs.d.ts
CHANGED
|
@@ -21,23 +21,23 @@ export declare const useExperimental: (options?: {
|
|
|
21
21
|
errorRenderer?: (e: E_1, action: string, ...args: Args_2) => string | undefined;
|
|
22
22
|
onWaiting?: null | undefined | string | ((action: string, ...args: Args_2) => string | null | undefined);
|
|
23
23
|
onSuccess?: null | undefined | string | ((a: A, action: string, ...args: Args_2) => string | null | undefined);
|
|
24
|
-
}) => (self: Effect.Effect<A, E_1, R_2>, ...args: Args_2) => Effect.Effect<A, E_1, import("../src/experimental/intl.js").I18n | import("../src/experimental/
|
|
24
|
+
}) => (self: Effect.Effect<A, E_1, R_2>, ...args: Args_2) => Effect.Effect<A, E_1, import("../src/experimental/intl.js").I18n | import("../src/experimental/commander.js").CommandContext | R_2 | import("../src/experimental/withToast.js").WithToast>;
|
|
25
25
|
alt: <const Id extends string, const I18nKey extends string = Id>(id: Id, customI18nKey?: I18nKey | undefined) => Commander.CommandContextLocal<Id, I18nKey> & (<Args_3 extends Array<unknown>, A, E_2, R_3 extends Toast.Toast | I18n | WithToast | import("../src/experimental/commander.js").CommandContext>(handler: (...args: Args_3) => Effect.Effect<A, E_2, R_3>) => Commander.CommandOut<Args_3, A, E_2, R_3, Id, I18nKey>);
|
|
26
26
|
fn: <const Id extends string, const I18nKey_1 extends string = Id>(id: Id | {
|
|
27
27
|
id: Id;
|
|
28
28
|
}, customI18nKey?: I18nKey_1 | undefined) => Commander.Gen<Toast.Toast | I18n | WithToast, Id, I18nKey_1> & Commander.NonGen<Toast.Toast | I18n | WithToast, Id, I18nKey_1>;
|
|
29
|
-
wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_4, I18nKey_2 extends string = Id>(mutation:
|
|
30
|
-
id: Id;
|
|
31
|
-
}) | {
|
|
29
|
+
wrap: <const Id extends string, Args_3 extends Array<unknown>, A_1, E_3, R_4, I18nKey_2 extends string = Id>(mutation: {
|
|
32
30
|
mutate: (...args: Args_3) => Effect.Effect<A_1, E_3, R_4>;
|
|
33
31
|
id: Id;
|
|
34
|
-
}
|
|
35
|
-
alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR, const I18nKey_3 extends string = Id>(id: Id | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
|
|
32
|
+
} | (((...args: Args_3) => Effect.Effect<A_1, E_3, R_4>) & {
|
|
36
33
|
id: Id;
|
|
37
|
-
}) |
|
|
34
|
+
}), customI18nKey?: I18nKey_2 | undefined) => Commander.CommandContextLocal<Id, I18nKey_2> & Commander.GenWrap<Toast.Toast | I18n | WithToast, Id, I18nKey_2, Args_3, A_1, E_3, R_4> & Commander.NonGenWrap<Toast.Toast | I18n | WithToast, Id, I18nKey_2, Args_3, A_1, E_3, R_4>;
|
|
35
|
+
alt2: <const Id extends string, MutArgs extends Array<unknown>, MutA, MutE, MutR, const I18nKey_3 extends string = Id>(id: Id | {
|
|
38
36
|
id: Id;
|
|
39
37
|
mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
|
|
40
|
-
}
|
|
38
|
+
} | (((...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>) & {
|
|
39
|
+
id: Id;
|
|
40
|
+
}), customI18nKey?: I18nKey_3 | undefined) => Commander.CommandContextLocal<Id, I18nKey_3> & (<Args_4 extends Array<unknown>, A_2, E_4, R_5 extends Toast.Toast | I18n | WithToast | import("../src/experimental/commander.js").CommandContext>(handler: (ctx: Effect.fn.Gen & Effect.fn.NonGen & Commander.CommandContextLocal<Id, I18nKey_3> & {
|
|
41
41
|
mutate: (...args: MutArgs) => Effect.Effect<MutA, MutE, MutR>;
|
|
42
42
|
}) => (...args: Args_4) => Effect.Effect<A_2, E_4, R_5>) => Commander.CommandOut<Args_4, A_2, E_4, R_5, Id, I18nKey_3>);
|
|
43
43
|
_tag: "Commander";
|