@json-layout/core 0.31.2 → 0.32.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/package.json +1 -1
- package/src/compile/index.js +11 -5
- package/src/compile/types.ts +2 -0
- package/src/compile/utils/resolve-refs.js +11 -10
- package/src/compile/utils/x-i18n.js +23 -0
- package/types/compile/index.d.ts +1 -0
- package/types/compile/index.d.ts.map +1 -1
- package/types/compile/types.d.ts +2 -0
- package/types/compile/types.d.ts.map +1 -1
- package/types/compile/utils/resolve-refs.d.ts +4 -4
- package/types/compile/utils/resolve-refs.d.ts.map +1 -1
- package/types/compile/utils/x-i18n.d.ts +2 -0
- package/types/compile/utils/x-i18n.d.ts.map +1 -0
package/package.json
CHANGED
package/src/compile/index.js
CHANGED
|
@@ -10,11 +10,13 @@ import { produce } from 'immer'
|
|
|
10
10
|
import i18n from '../i18n/index.js'
|
|
11
11
|
import { makeSkeletonTree } from './skeleton-tree.js'
|
|
12
12
|
import { resolveLocaleRefs } from './utils/resolve-refs.js'
|
|
13
|
+
import { resolveXI18n } from './utils/x-i18n.js'
|
|
13
14
|
import clone from '../utils/clone.js'
|
|
14
15
|
import { standardComponents } from '@json-layout/vocabulary'
|
|
15
16
|
import { shallowEqualArray } from '../state/utils/immutable.js'
|
|
16
17
|
|
|
17
18
|
export { resolveLocaleRefs } from './utils/resolve-refs.js'
|
|
19
|
+
export { resolveXI18n } from './utils/x-i18n.js'
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* @typedef {import('./types.js').SkeletonTree} SkeletonTree
|
|
@@ -35,7 +37,7 @@ const ajvLocalize = /** @type {typeof ajvLocalizeModule.default} */ (ajvLocalize
|
|
|
35
37
|
// use Immer for efficient updating with immutability and no-op detection
|
|
36
38
|
/** @type {(draft: PartialCompileOptions, newOptions: PartialCompileOptions) => PartialCompileOptions} */
|
|
37
39
|
export const produceCompileOptions = produce((draft, newOptions) => {
|
|
38
|
-
for (const key of ['ajv', 'ajvOptions', 'code', 'markdown', 'markdownItOptions', 'locale', 'messages', 'optionsKeys', 'components']) {
|
|
40
|
+
for (const key of ['ajv', 'ajvOptions', 'code', 'markdown', 'markdownItOptions', 'xI18n', 'locale', 'defaultLocale', 'messages', 'optionsKeys', 'components']) {
|
|
39
41
|
// @ts-ignore
|
|
40
42
|
if (key in newOptions) {
|
|
41
43
|
// components is problematic because it is an object with nested objects
|
|
@@ -76,8 +78,9 @@ const fillOptions = (partialOptions) => {
|
|
|
76
78
|
markdown = markdownIt.render.bind(markdownIt)
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
+
const defaultLocale = partialOptions.defaultLocale || 'en'
|
|
82
|
+
const locale = partialOptions.locale || defaultLocale
|
|
83
|
+
const messages = { ...i18n[locale] || i18n[defaultLocale] }
|
|
81
84
|
if (partialOptions.messages) Object.assign(messages, partialOptions.messages)
|
|
82
85
|
|
|
83
86
|
const components = standardComponents.reduce((acc, component) => {
|
|
@@ -99,8 +102,10 @@ const fillOptions = (partialOptions) => {
|
|
|
99
102
|
optionsKeys: [],
|
|
100
103
|
...partialOptions,
|
|
101
104
|
locale,
|
|
105
|
+
defaultLocale,
|
|
102
106
|
messages,
|
|
103
|
-
components
|
|
107
|
+
components,
|
|
108
|
+
xI18n: !!partialOptions.xI18n
|
|
104
109
|
}
|
|
105
110
|
}
|
|
106
111
|
|
|
@@ -114,7 +119,8 @@ export function compile (_schema, partialOptions = {}) {
|
|
|
114
119
|
|
|
115
120
|
const schema = /** @type {import('ajv').SchemaObject} */(clone(_schema))
|
|
116
121
|
schema.$id = schema.$id ?? '_jl'
|
|
117
|
-
const getJSONRef = resolveLocaleRefs(schema, options.ajv, options.locale)
|
|
122
|
+
const getJSONRef = resolveLocaleRefs(schema, options.ajv, options.locale, options.defaultLocale)
|
|
123
|
+
if (options.xI18n) resolveXI18n(schema, options.locale, options.defaultLocale)
|
|
118
124
|
|
|
119
125
|
/** @type {string[]} */
|
|
120
126
|
const validatePointers = []
|
package/src/compile/types.ts
CHANGED
|
@@ -29,9 +29,11 @@ export interface CompileOptions {
|
|
|
29
29
|
markdown: (text: string) => string
|
|
30
30
|
markdownItOptions?: MarkdownIt.Options
|
|
31
31
|
locale: string
|
|
32
|
+
defaultLocale: string
|
|
32
33
|
messages: LocaleMessages
|
|
33
34
|
optionsKeys: string[]
|
|
34
35
|
components: Record<string, ComponentInfo>
|
|
36
|
+
xI18n: boolean
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
export type PartialCompileOptions = Partial<Omit<CompileOptions, 'messages'>> & {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import ajvModule from 'ajv/dist/2019.js'
|
|
2
1
|
import clone from '../../utils/clone.js'
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* @param {Record<string, import('ajv').SchemaObject>} schemas
|
|
6
|
-
* @param {
|
|
5
|
+
* @param {import('ajv/dist/2019.js').default} ajv
|
|
7
6
|
* @returns {(schemaId: string, ref: string) => [any, string, string]}
|
|
8
7
|
*/
|
|
9
8
|
const prepareGetJSONRef = (schemas, ajv) => {
|
|
@@ -26,16 +25,17 @@ const prepareGetJSONRef = (schemas, ajv) => {
|
|
|
26
25
|
/**
|
|
27
26
|
* mutates a schema by replacing ~$locale~ in all refs
|
|
28
27
|
* @param {import('ajv').SchemaObject} schema
|
|
29
|
-
* @param {
|
|
30
|
-
* @param {string} locale
|
|
28
|
+
* @param {import('ajv/dist/2019.js').default} ajv
|
|
29
|
+
* @param {string} [locale]
|
|
30
|
+
* @param {string} [defaultLocale]
|
|
31
31
|
* @returns {(schemaId: string, ref: string) => [any, string, string]}
|
|
32
32
|
*/
|
|
33
|
-
export function resolveLocaleRefs (schema, ajv, locale = 'en') {
|
|
33
|
+
export function resolveLocaleRefs (schema, ajv, locale = 'en', defaultLocale = 'en') {
|
|
34
34
|
if (!schema.$id) throw new Error('missing schema id')
|
|
35
35
|
const getJSONRef = prepareGetJSONRef({ [schema.$id]: schema }, ajv)
|
|
36
36
|
/** @type {any[]} */
|
|
37
37
|
const recursed = []
|
|
38
|
-
recurseResolveLocale(schema, schema.$id, getJSONRef, locale, recursed)
|
|
38
|
+
recurseResolveLocale(schema, schema.$id, getJSONRef, locale, defaultLocale, recursed)
|
|
39
39
|
return getJSONRef
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -44,17 +44,18 @@ export function resolveLocaleRefs (schema, ajv, locale = 'en') {
|
|
|
44
44
|
* @param {string} schemaId
|
|
45
45
|
* @param {(schemaId: string, ref: string) => [any, string, string]} getJSONRef
|
|
46
46
|
* @param {string} locale
|
|
47
|
+
* @param {string} defaultLocale
|
|
47
48
|
* @param {any[]} recursed
|
|
48
49
|
*/
|
|
49
50
|
|
|
50
|
-
const recurseResolveLocale = (schemaFragment, schemaId, getJSONRef, locale, recursed) => {
|
|
51
|
+
const recurseResolveLocale = (schemaFragment, schemaId, getJSONRef, locale, defaultLocale, recursed) => {
|
|
51
52
|
if (recursed.includes(schemaFragment)) return
|
|
52
53
|
recursed.push(schemaFragment)
|
|
53
54
|
for (const key of Object.keys(schemaFragment)) {
|
|
54
55
|
if (schemaFragment[key] && typeof schemaFragment[key] === 'object') {
|
|
55
56
|
if ('$ref' in schemaFragment[key]) {
|
|
56
57
|
const ref = schemaFragment[key].$ref.replace('~$locale~', locale)
|
|
57
|
-
const refDefaultLocale = schemaFragment[key].$ref.replace('~$locale~',
|
|
58
|
+
const refDefaultLocale = schemaFragment[key].$ref.replace('~$locale~', defaultLocale)
|
|
58
59
|
let refFragment, refSchemaId
|
|
59
60
|
try {
|
|
60
61
|
[refFragment, refSchemaId] = getJSONRef(schemaId, ref)
|
|
@@ -66,10 +67,10 @@ const recurseResolveLocale = (schemaFragment, schemaId, getJSONRef, locale, recu
|
|
|
66
67
|
if (typeof refFragment === 'string') {
|
|
67
68
|
schemaFragment[key] = refFragment
|
|
68
69
|
} else {
|
|
69
|
-
recurseResolveLocale(refFragment, refSchemaId, getJSONRef, locale, recursed)
|
|
70
|
+
recurseResolveLocale(refFragment, refSchemaId, getJSONRef, locale, defaultLocale, recursed)
|
|
70
71
|
}
|
|
71
72
|
} else {
|
|
72
|
-
recurseResolveLocale(schemaFragment[key], schemaId, getJSONRef, locale, recursed)
|
|
73
|
+
recurseResolveLocale(schemaFragment[key], schemaId, getJSONRef, locale, defaultLocale, recursed)
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A very simple implementation of some x-i18n-* annotations
|
|
3
|
+
* WARNING: this is a naive implementation that will also apply to const values, examples, etc
|
|
4
|
+
* @param {Record<string, any>} schema
|
|
5
|
+
* @param {string} locale
|
|
6
|
+
* @param {string} [defaultLocale]
|
|
7
|
+
*/
|
|
8
|
+
export const resolveXI18n = (schema, locale, defaultLocale = 'en') => {
|
|
9
|
+
for (const [key, value] of Object.entries(schema)) {
|
|
10
|
+
if (key.startsWith('x-i18n-')) {
|
|
11
|
+
if (typeof value !== 'object') console.error(`i18n property ${key} should be an object`)
|
|
12
|
+
const realKey = key.replace('x-i18n-', '')
|
|
13
|
+
schema[realKey] = value[locale] ?? value[defaultLocale] ?? schema[realKey]
|
|
14
|
+
delete schema[key]
|
|
15
|
+
} else if (Array.isArray(value)) {
|
|
16
|
+
for (const child of value) {
|
|
17
|
+
resolveXI18n(child, locale, defaultLocale)
|
|
18
|
+
}
|
|
19
|
+
} if (typeof value === 'object') {
|
|
20
|
+
resolveXI18n(value, locale, defaultLocale)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
package/types/compile/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export function compile(_schema: object, partialOptions?: import("./types.js").PartialCompileOptions | undefined): CompiledLayout;
|
|
7
7
|
export { resolveLocaleRefs } from "./utils/resolve-refs.js";
|
|
8
|
+
export { resolveXI18n } from "./utils/x-i18n.js";
|
|
8
9
|
/** @type {(draft: PartialCompileOptions, newOptions: PartialCompileOptions) => PartialCompileOptions} */
|
|
9
10
|
export const produceCompileOptions: (draft: PartialCompileOptions, newOptions: PartialCompileOptions) => PartialCompileOptions;
|
|
10
11
|
export type SkeletonTree = import('./types.js').SkeletonTree;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compile/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compile/index.js"],"names":[],"mappings":"AA+GA;;;;GAIG;AACH,iCAJW,MAAM,4EAEJ,cAAc,CA+F1B;;;AA5KD,yGAAyG;AACzG,4CADmB,qBAAqB,cAAc,qBAAqB,KAAK,qBAAqB,CAiBnG;2BAjCW,OAAO,YAAY,EAAE,YAAY;2BACjC,OAAO,YAAY,EAAE,YAAY;6BACjC,OAAO,YAAY,EAAE,cAAc;6BACnC,OAAO,YAAY,EAAE,cAAc;oCACnC,OAAO,YAAY,EAAE,qBAAqB;iCAC1C,OAAO,YAAY,EAAE,kBAAkB"}
|
package/types/compile/types.d.ts
CHANGED
|
@@ -16,9 +16,11 @@ export interface CompileOptions {
|
|
|
16
16
|
markdown: (text: string) => string;
|
|
17
17
|
markdownItOptions?: MarkdownIt.Options;
|
|
18
18
|
locale: string;
|
|
19
|
+
defaultLocale: string;
|
|
19
20
|
messages: LocaleMessages;
|
|
20
21
|
optionsKeys: string[];
|
|
21
22
|
components: Record<string, ComponentInfo>;
|
|
23
|
+
xI18n: boolean;
|
|
22
24
|
}
|
|
23
25
|
export type PartialCompileOptions = Partial<Omit<CompileOptions, 'messages'>> & {
|
|
24
26
|
messages?: Partial<LocaleMessages>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/compile/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAA;AAC7C,OAAO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AAA;CACb;AAID,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* mutates a schema by replacing ~$locale~ in all refs
|
|
3
3
|
* @param {import('ajv').SchemaObject} schema
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {string} locale
|
|
4
|
+
* @param {import('ajv/dist/2019.js').default} ajv
|
|
5
|
+
* @param {string} [locale]
|
|
6
|
+
* @param {string} [defaultLocale]
|
|
6
7
|
* @returns {(schemaId: string, ref: string) => [any, string, string]}
|
|
7
8
|
*/
|
|
8
|
-
export function resolveLocaleRefs(schema: import('ajv').SchemaObject, ajv:
|
|
9
|
+
export function resolveLocaleRefs(schema: import('ajv').SchemaObject, ajv: import('ajv/dist/2019.js').default, locale?: string | undefined, defaultLocale?: string | undefined): (schemaId: string, ref: string) => [any, string, string];
|
|
9
10
|
/**
|
|
10
11
|
* partially resolve a schema but not recursively, used for layout normalization
|
|
11
12
|
* @param {import('ajv').SchemaObject} schema
|
|
@@ -13,5 +14,4 @@ export function resolveLocaleRefs(schema: import('ajv').SchemaObject, ajv: ajvMo
|
|
|
13
14
|
* @param {(schemaId: string, ref: string) => [any, string, string]} getJSONRef
|
|
14
15
|
*/
|
|
15
16
|
export function partialResolveRefs(schema: import('ajv').SchemaObject, schemaId: string, getJSONRef: (schemaId: string, ref: string) => [any, string, string]): any;
|
|
16
|
-
import ajvModule from 'ajv/dist/2019.js';
|
|
17
17
|
//# sourceMappingURL=resolve-refs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-refs.d.ts","sourceRoot":"","sources":["../../../src/compile/utils/resolve-refs.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolve-refs.d.ts","sourceRoot":"","sources":["../../../src/compile/utils/resolve-refs.js"],"names":[],"mappings":"AAwBA;;;;;;;GAOG;AACH,0CANW,OAAO,KAAK,EAAE,YAAY,OAC1B,OAAO,kBAAkB,EAAE,OAAO,+EAGrB,MAAM,OAAO,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,CASpE;AAuCD;;;;;GAKG;AACH,2CAJW,OAAO,KAAK,EAAE,YAAY,YAC1B,MAAM,yBACK,MAAM,OAAO,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,OA+ClE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-i18n.d.ts","sourceRoot":"","sources":["../../../src/compile/utils/x-i18n.js"],"names":[],"mappings":"AAOO,qCAJI,OAAO,MAAM,EAAE,GAAG,CAAC,UACnB,MAAM,4CAkBhB"}
|