@verbaly/vue 0.2.0 → 0.3.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/README.md +62 -0
- package/dist/index.cjs +9 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -29
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/AronSoto/verbaly/develop/assets/logo-light.png" alt="Verbaly" width="300" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center"><em>Vue 3 bindings for Verbaly — composables over the reactive core.</em></p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://www.npmjs.com/package/@verbaly/vue"><img src="https://img.shields.io/npm/v/@verbaly/vue?logo=npm&color=cb3837" alt="npm version" /></a>
|
|
9
|
+
<a href="https://github.com/AronSoto/verbaly/blob/develop/LICENSE"><img src="https://img.shields.io/npm/l/@verbaly/vue?color=blue" alt="Apache-2.0" /></a>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
Vue 3 composables for [Verbaly](https://github.com/AronSoto/verbaly) — a thin layer over the reactive core with per-component cleanup (`onScopeDispose`).
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pnpm add verbaly @verbaly/vue
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
// main.ts
|
|
24
|
+
import { verbalyPlugin } from '@verbaly/vue';
|
|
25
|
+
import { verbaly } from 'virtual:verbaly';
|
|
26
|
+
|
|
27
|
+
app.use(verbalyPlugin(verbaly));
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
```vue
|
|
31
|
+
<script setup>
|
|
32
|
+
import { useT, useLocale } from '@verbaly/vue';
|
|
33
|
+
const t = useT();
|
|
34
|
+
const locale = useLocale(); // writable: locale.value = 'en'
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<template>
|
|
38
|
+
<p>{{ t('inbox', { count: 3 }) }}</p>
|
|
39
|
+
</template>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Rich text — `<Trans>`
|
|
43
|
+
|
|
44
|
+
```vue
|
|
45
|
+
<script setup>
|
|
46
|
+
import { Trans } from '@verbaly/vue';
|
|
47
|
+
import { h } from 'vue';
|
|
48
|
+
const components = { terms: (c) => h('a', { href: '/terms' }, c) };
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<template>
|
|
52
|
+
<Trans id="agree" :components="components" />
|
|
53
|
+
</template>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
📖 Docs: **https://verbaly-web.vercel.app/docs/frameworks**
|
|
57
|
+
|
|
58
|
+
> ⚠️ Early development (`0.x`) — API not stable yet.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
[Apache-2.0](https://github.com/AronSoto/verbaly/blob/develop/LICENSE) © Aron Soto
|
package/dist/index.cjs
CHANGED
|
@@ -28,6 +28,7 @@ __export(index_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(index_exports);
|
|
30
30
|
var import_vue = require("vue");
|
|
31
|
+
var import_verbaly = require("verbaly");
|
|
31
32
|
var KEY = /* @__PURE__ */ Symbol("verbaly");
|
|
32
33
|
function verbalyPlugin(instance) {
|
|
33
34
|
return {
|
|
@@ -88,38 +89,17 @@ var Trans = (0, import_vue.defineComponent)({
|
|
|
88
89
|
props.id,
|
|
89
90
|
props.values
|
|
90
91
|
);
|
|
91
|
-
return (0, import_vue.h)(import_vue.Fragment,
|
|
92
|
+
return (0, import_vue.h)(import_vue.Fragment, toNodes((0, import_verbaly.parseTags)(text), props.components));
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
while ((m = tag.exec(text)) !== null) {
|
|
103
|
-
const [full, closing, name, selfClose] = m;
|
|
104
|
-
if (m.index > pos) out.push(text.slice(pos, m.index));
|
|
105
|
-
pos = m.index + full.length;
|
|
106
|
-
if (closing) {
|
|
107
|
-
if (name === stop) return out;
|
|
108
|
-
out.push(full);
|
|
109
|
-
} else if (selfClose) {
|
|
110
|
-
const fn = components[name];
|
|
111
|
-
out.push(fn ? fn([]) : full);
|
|
112
|
-
} else {
|
|
113
|
-
const children = walk(name);
|
|
114
|
-
const fn = components[name];
|
|
115
|
-
if (fn) out.push(fn(children));
|
|
116
|
-
else out.push(...children);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
if (pos < text.length) out.push(text.slice(pos));
|
|
120
|
-
return out;
|
|
121
|
-
};
|
|
122
|
-
return walk(null);
|
|
96
|
+
function toNodes(nodes, components) {
|
|
97
|
+
return nodes.map((node) => {
|
|
98
|
+
if (typeof node === "string") return node;
|
|
99
|
+
const children = toNodes(node.children, components);
|
|
100
|
+
const fn = components[node.name];
|
|
101
|
+
return fn ? fn(children) : children;
|
|
102
|
+
});
|
|
123
103
|
}
|
|
124
104
|
// Annotate the CommonJS export names for ESM import in node:
|
|
125
105
|
0 && (module.exports = {
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import {\r\n computed,\r\n defineComponent,\r\n Fragment,\r\n h,\r\n inject,\r\n onScopeDispose,\r\n shallowRef,\r\n type App,\r\n type InjectionKey,\r\n type PropType,\r\n type ShallowRef,\r\n type VNodeChild,\r\n type WritableComputedRef,\r\n} from 'vue';\r\nimport type
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import {\r\n computed,\r\n defineComponent,\r\n Fragment,\r\n h,\r\n inject,\r\n onScopeDispose,\r\n shallowRef,\r\n type App,\r\n type InjectionKey,\r\n type PropType,\r\n type ShallowRef,\r\n type VNodeChild,\r\n type WritableComputedRef,\r\n} from 'vue';\r\nimport {\r\n parseTags,\r\n type DictionaryInput,\r\n type Params,\r\n type TagNode,\r\n type TFunction,\r\n type Verbaly,\r\n} from 'verbaly';\r\n\r\nconst KEY: InjectionKey<Verbaly> = Symbol('verbaly');\r\n\r\nexport interface VerbalyPlugin {\r\n install(app: App): void;\r\n}\r\n\r\nexport function verbalyPlugin<D extends DictionaryInput>(instance: Verbaly<D>): VerbalyPlugin {\r\n return {\r\n install(app) {\r\n app.provide(KEY, instance as unknown as Verbaly);\r\n },\r\n };\r\n}\r\n\r\nexport function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D> {\r\n const instance = inject(KEY, null);\r\n if (!instance) {\r\n throw new Error('[verbaly] useVerbaly requires app.use(verbalyPlugin(...))');\r\n }\r\n return instance as unknown as Verbaly<D>;\r\n}\r\n\r\nexport function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D> {\r\n const instance = useVerbaly<D>();\r\n const version = trackVersion(instance);\r\n const t = (first: unknown, ...rest: unknown[]): string => {\r\n void version.value;\r\n return (instance.t as unknown as (...args: unknown[]) => string)(first, ...rest);\r\n };\r\n return t as TFunction<D>;\r\n}\r\n\r\nexport function useLocale(): WritableComputedRef<string> {\r\n const instance = useVerbaly();\r\n const version = trackVersion(instance);\r\n return computed({\r\n get: () => {\r\n void version.value;\r\n return instance.locale;\r\n },\r\n set: (locale: string) => instance.setLocale(locale),\r\n });\r\n}\r\n\r\nfunction trackVersion<D extends DictionaryInput>(instance: Verbaly<D>): ShallowRef<number> {\r\n const version = shallowRef(instance.version);\r\n onScopeDispose(\r\n instance.subscribe(() => {\r\n version.value = instance.version;\r\n }),\r\n );\r\n return version;\r\n}\r\n\r\nexport type TransComponents = Record<string, (children: VNodeChild[]) => VNodeChild>;\r\n\r\n// translated message + element interpolation\r\nexport const Trans = defineComponent({\r\n name: 'Trans',\r\n props: {\r\n id: { type: String, required: true },\r\n values: { type: Object as PropType<Params>, default: undefined },\r\n components: { type: Object as PropType<TransComponents>, default: () => ({}) },\r\n },\r\n setup(props) {\r\n const instance = useVerbaly();\r\n const version = trackVersion(instance);\r\n return () => {\r\n void version.value;\r\n const text = (instance.t as unknown as (id: string, values?: Params) => string)(\r\n props.id,\r\n props.values,\r\n );\r\n return h(Fragment, toNodes(parseTags(text), props.components));\r\n };\r\n },\r\n});\r\n\r\nfunction toNodes(nodes: TagNode[], components: TransComponents): VNodeChild[] {\r\n return nodes.map((node) => {\r\n if (typeof node === 'string') return node;\r\n const children = toNodes(node.children, components);\r\n const fn = components[node.name];\r\n return fn ? fn(children) : children;\r\n });\r\n}\r\n\r\nexport type { Params, TFunction, Verbaly };\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAcO;AACP,qBAOO;AAEP,IAAM,MAA6B,uBAAO,SAAS;AAM5C,SAAS,cAAyC,UAAqC;AAC5F,SAAO;AAAA,IACL,QAAQ,KAAK;AACX,UAAI,QAAQ,KAAK,QAA8B;AAAA,IACjD;AAAA,EACF;AACF;AAEO,SAAS,aAAsE;AACpF,QAAM,eAAW,mBAAO,KAAK,IAAI;AACjC,MAAI,CAAC,UAAU;AACb,UAAM,IAAI,MAAM,2DAA2D;AAAA,EAC7E;AACA,SAAO;AACT;AAEO,SAAS,OAAkE;AAChF,QAAM,WAAW,WAAc;AAC/B,QAAM,UAAU,aAAa,QAAQ;AACrC,QAAM,IAAI,CAAC,UAAmB,SAA4B;AACxD,SAAK,QAAQ;AACb,WAAQ,SAAS,EAAgD,OAAO,GAAG,IAAI;AAAA,EACjF;AACA,SAAO;AACT;AAEO,SAAS,YAAyC;AACvD,QAAM,WAAW,WAAW;AAC5B,QAAM,UAAU,aAAa,QAAQ;AACrC,aAAO,qBAAS;AAAA,IACd,KAAK,MAAM;AACT,WAAK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|
11
14
|
var KEY = /* @__PURE__ */ Symbol("verbaly");
|
|
12
15
|
function verbalyPlugin(instance) {
|
|
13
16
|
return {
|
|
@@ -68,38 +71,17 @@ var Trans = defineComponent({
|
|
|
68
71
|
props.id,
|
|
69
72
|
props.values
|
|
70
73
|
);
|
|
71
|
-
return h(Fragment,
|
|
74
|
+
return h(Fragment, toNodes(parseTags(text), props.components));
|
|
72
75
|
};
|
|
73
76
|
}
|
|
74
77
|
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
while ((m = tag.exec(text)) !== null) {
|
|
83
|
-
const [full, closing, name, selfClose] = m;
|
|
84
|
-
if (m.index > pos) out.push(text.slice(pos, m.index));
|
|
85
|
-
pos = m.index + full.length;
|
|
86
|
-
if (closing) {
|
|
87
|
-
if (name === stop) return out;
|
|
88
|
-
out.push(full);
|
|
89
|
-
} else if (selfClose) {
|
|
90
|
-
const fn = components[name];
|
|
91
|
-
out.push(fn ? fn([]) : full);
|
|
92
|
-
} else {
|
|
93
|
-
const children = walk(name);
|
|
94
|
-
const fn = components[name];
|
|
95
|
-
if (fn) out.push(fn(children));
|
|
96
|
-
else out.push(...children);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
if (pos < text.length) out.push(text.slice(pos));
|
|
100
|
-
return out;
|
|
101
|
-
};
|
|
102
|
-
return walk(null);
|
|
78
|
+
function toNodes(nodes, components) {
|
|
79
|
+
return nodes.map((node) => {
|
|
80
|
+
if (typeof node === "string") return node;
|
|
81
|
+
const children = toNodes(node.children, components);
|
|
82
|
+
const fn = components[node.name];
|
|
83
|
+
return fn ? fn(children) : children;
|
|
84
|
+
});
|
|
103
85
|
}
|
|
104
86
|
export {
|
|
105
87
|
Trans,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import {\r\n computed,\r\n defineComponent,\r\n Fragment,\r\n h,\r\n inject,\r\n onScopeDispose,\r\n shallowRef,\r\n type App,\r\n type InjectionKey,\r\n type PropType,\r\n type ShallowRef,\r\n type VNodeChild,\r\n type WritableComputedRef,\r\n} from 'vue';\r\nimport type
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import {\r\n computed,\r\n defineComponent,\r\n Fragment,\r\n h,\r\n inject,\r\n onScopeDispose,\r\n shallowRef,\r\n type App,\r\n type InjectionKey,\r\n type PropType,\r\n type ShallowRef,\r\n type VNodeChild,\r\n type WritableComputedRef,\r\n} from 'vue';\r\nimport {\r\n parseTags,\r\n type DictionaryInput,\r\n type Params,\r\n type TagNode,\r\n type TFunction,\r\n type Verbaly,\r\n} from 'verbaly';\r\n\r\nconst KEY: InjectionKey<Verbaly> = Symbol('verbaly');\r\n\r\nexport interface VerbalyPlugin {\r\n install(app: App): void;\r\n}\r\n\r\nexport function verbalyPlugin<D extends DictionaryInput>(instance: Verbaly<D>): VerbalyPlugin {\r\n return {\r\n install(app) {\r\n app.provide(KEY, instance as unknown as Verbaly);\r\n },\r\n };\r\n}\r\n\r\nexport function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D> {\r\n const instance = inject(KEY, null);\r\n if (!instance) {\r\n throw new Error('[verbaly] useVerbaly requires app.use(verbalyPlugin(...))');\r\n }\r\n return instance as unknown as Verbaly<D>;\r\n}\r\n\r\nexport function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D> {\r\n const instance = useVerbaly<D>();\r\n const version = trackVersion(instance);\r\n const t = (first: unknown, ...rest: unknown[]): string => {\r\n void version.value;\r\n return (instance.t as unknown as (...args: unknown[]) => string)(first, ...rest);\r\n };\r\n return t as TFunction<D>;\r\n}\r\n\r\nexport function useLocale(): WritableComputedRef<string> {\r\n const instance = useVerbaly();\r\n const version = trackVersion(instance);\r\n return computed({\r\n get: () => {\r\n void version.value;\r\n return instance.locale;\r\n },\r\n set: (locale: string) => instance.setLocale(locale),\r\n });\r\n}\r\n\r\nfunction trackVersion<D extends DictionaryInput>(instance: Verbaly<D>): ShallowRef<number> {\r\n const version = shallowRef(instance.version);\r\n onScopeDispose(\r\n instance.subscribe(() => {\r\n version.value = instance.version;\r\n }),\r\n );\r\n return version;\r\n}\r\n\r\nexport type TransComponents = Record<string, (children: VNodeChild[]) => VNodeChild>;\r\n\r\n// translated message + element interpolation\r\nexport const Trans = defineComponent({\r\n name: 'Trans',\r\n props: {\r\n id: { type: String, required: true },\r\n values: { type: Object as PropType<Params>, default: undefined },\r\n components: { type: Object as PropType<TransComponents>, default: () => ({}) },\r\n },\r\n setup(props) {\r\n const instance = useVerbaly();\r\n const version = trackVersion(instance);\r\n return () => {\r\n void version.value;\r\n const text = (instance.t as unknown as (id: string, values?: Params) => string)(\r\n props.id,\r\n props.values,\r\n );\r\n return h(Fragment, toNodes(parseTags(text), props.components));\r\n };\r\n },\r\n});\r\n\r\nfunction toNodes(nodes: TagNode[], components: TransComponents): VNodeChild[] {\r\n return nodes.map((node) => {\r\n if (typeof node === 'string') return node;\r\n const children = toNodes(node.children, components);\r\n const fn = components[node.name];\r\n return fn ? fn(children) : children;\r\n });\r\n}\r\n\r\nexport type { Params, TFunction, Verbaly };\r\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AACP;AAAA,EACE;AAAA,OAMK;AAEP,IAAM,MAA6B,uBAAO,SAAS;AAM5C,SAAS,cAAyC,UAAqC;AAC5F,SAAO;AAAA,IACL,QAAQ,KAAK;AACX,UAAI,QAAQ,KAAK,QAA8B;AAAA,IACjD;AAAA,EACF;AACF;AAEO,SAAS,aAAsE;AACpF,QAAM,WAAW,OAAO,KAAK,IAAI;AACjC,MAAI,CAAC,UAAU;AACb,UAAM,IAAI,MAAM,2DAA2D;AAAA,EAC7E;AACA,SAAO;AACT;AAEO,SAAS,OAAkE;AAChF,QAAM,WAAW,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UAAU,UAAU;AAClD,UAAM,KAAK,WAAW,KAAK,IAAI;AAC/B,WAAO,KAAK,GAAG,QAAQ,IAAI;AAAA,EAC7B,CAAC;AACH;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Vue 3 bindings for Verbaly — composables over the reactive core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"vue": "^3.4.0",
|
|
46
|
-
"verbaly": "^0.
|
|
46
|
+
"verbaly": "^0.3.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"happy-dom": "^20.10.6",
|
|
50
50
|
"vue": "^3.5.39",
|
|
51
|
-
"verbaly": "0.
|
|
51
|
+
"verbaly": "0.3.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsup",
|