@json-layout/core 1.5.2 → 1.6.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 +2 -2
- package/src/compile/options.js +5 -2
- package/src/compile/skeleton-node.js +7 -13
- package/src/compile/types.ts +2 -6
- package/src/i18n/de.js +5 -1
- package/src/i18n/en.js +5 -1
- package/src/i18n/fr.js +5 -1
- package/src/i18n/nl.js +5 -1
- package/src/i18n/types.ts +3 -1
- package/src/utils/doc-options.js +41 -1
- package/types/compile/options.d.ts.map +1 -1
- package/types/compile/skeleton-node.d.ts.map +1 -1
- package/types/compile/types.d.ts +3 -7
- package/types/compile/types.d.ts.map +1 -1
- package/types/i18n/de.d.ts +4 -0
- package/types/i18n/en.d.ts +4 -0
- package/types/i18n/fr.d.ts +4 -0
- package/types/i18n/nl.d.ts +4 -0
- package/types/i18n/types.d.ts +2 -1
- package/types/i18n/types.d.ts.map +1 -1
- package/types/utils/doc-options.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@json-layout/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Compilation and state management utilities for JSON Layout.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"homepage": "https://github.com/json-layout/json-layout#readme",
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@json-layout/vocabulary": "^
|
|
61
|
+
"@json-layout/vocabulary": "^2.0.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"ajv": "^8.17.1",
|
package/src/compile/options.js
CHANGED
|
@@ -63,8 +63,11 @@ export const fillOptions = (partialOptions) => {
|
|
|
63
63
|
ajv,
|
|
64
64
|
code: false,
|
|
65
65
|
markdown,
|
|
66
|
-
optionsKeys: [],
|
|
67
66
|
useDescription: ['help', 'subtitle'],
|
|
67
|
+
useDefault: 'data',
|
|
68
|
+
useName: false,
|
|
69
|
+
useExamples: 'items',
|
|
70
|
+
useDeprecated: false,
|
|
68
71
|
...partialOptions,
|
|
69
72
|
locale,
|
|
70
73
|
defaultLocale,
|
|
@@ -77,7 +80,7 @@ export const fillOptions = (partialOptions) => {
|
|
|
77
80
|
// use Immer for efficient updating with immutability and no-op detection
|
|
78
81
|
/** @type {(draft: PartialCompileOptions, newOptions: PartialCompileOptions) => PartialCompileOptions} */
|
|
79
82
|
export const produceCompileOptions = produce((draft, newOptions) => {
|
|
80
|
-
for (const key of ['ajv', 'ajvOptions', 'code', 'markdown', 'markedOptions', 'xI18n', 'locale', 'defaultLocale', 'messages', 'optionsKeys', 'components', 'useDescription']) {
|
|
83
|
+
for (const key of ['ajv', 'ajvOptions', 'code', 'markdown', 'markedOptions', 'xI18n', 'locale', 'defaultLocale', 'messages', 'optionsKeys', 'components', 'useDescription', 'useDefault', 'useName', 'useExamples', 'useDeprecated']) {
|
|
81
84
|
// @ts-ignore
|
|
82
85
|
if (key in newOptions) {
|
|
83
86
|
// components is problematic because it is an object with nested objects
|
|
@@ -69,10 +69,7 @@ export function makeSkeletonNode (
|
|
|
69
69
|
key,
|
|
70
70
|
/** @type {import('@json-layout/vocabulary').SchemaFragment} */(resolvedSchema),
|
|
71
71
|
pointer,
|
|
72
|
-
options
|
|
73
|
-
options.markdown,
|
|
74
|
-
options.useDescription,
|
|
75
|
-
options.optionsKeys,
|
|
72
|
+
options,
|
|
76
73
|
undefined,
|
|
77
74
|
type,
|
|
78
75
|
nullable
|
|
@@ -113,6 +110,9 @@ export function makeSkeletonNode (
|
|
|
113
110
|
const compObjects = isSwitchStruct(normalizedLayout) ? normalizedLayout.switch : [normalizedLayout]
|
|
114
111
|
|
|
115
112
|
for (const compObject of compObjects) {
|
|
113
|
+
const component = options.components[compObject.comp]
|
|
114
|
+
if (!component) throw new Error(`Component "${compObject.comp}" not found`)
|
|
115
|
+
|
|
116
116
|
if (compObject.if) pushExpression(expressions, compObject.if)
|
|
117
117
|
if (isCompositeLayout(compObject, options.components)) {
|
|
118
118
|
for (const child of compObject.children) prepareLayoutChild(child)
|
|
@@ -123,7 +123,7 @@ export function makeSkeletonNode (
|
|
|
123
123
|
if (compObject.getConstData) pushExpression(expressions, compObject.getConstData)
|
|
124
124
|
|
|
125
125
|
let defaultData
|
|
126
|
-
if ('default' in schema) defaultData = schema.default
|
|
126
|
+
if ('default' in schema && (options.useDefault === 'data' || options.useDefault === true || required)) defaultData = schema.default
|
|
127
127
|
else if (required) {
|
|
128
128
|
if (nullable) defaultData = null
|
|
129
129
|
else if (type === 'object' && isCompositeLayout(compObject, options.components)) defaultData = {}
|
|
@@ -272,10 +272,7 @@ export function makeSkeletonNode (
|
|
|
272
272
|
'',
|
|
273
273
|
schema,
|
|
274
274
|
oneOfPointer,
|
|
275
|
-
options
|
|
276
|
-
options.markdown,
|
|
277
|
-
options.useDescription,
|
|
278
|
-
options.optionsKeys,
|
|
275
|
+
options,
|
|
279
276
|
'oneOf',
|
|
280
277
|
type,
|
|
281
278
|
nullable
|
|
@@ -333,10 +330,7 @@ export function makeSkeletonNode (
|
|
|
333
330
|
'',
|
|
334
331
|
schema,
|
|
335
332
|
patternPropertiesPointer,
|
|
336
|
-
options
|
|
337
|
-
options.markdown,
|
|
338
|
-
options.useDescription,
|
|
339
|
-
options.optionsKeys,
|
|
333
|
+
options,
|
|
340
334
|
'patternProperties',
|
|
341
335
|
type,
|
|
342
336
|
nullable
|
package/src/compile/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type ajvModule from 'ajv/dist/2019.js'
|
|
2
2
|
import type { MarkedOptions } from 'marked'
|
|
3
|
-
import { type ComponentInfo, type BaseCompObject, type NormalizedLayout, type StateNodeOptionsBase, type Expression } from '@json-layout/vocabulary'
|
|
3
|
+
import { type ComponentInfo, type BaseCompObject, type NormalizedLayout, type StateNodeOptionsBase, type Expression, type NormalizeOptions } from '@json-layout/vocabulary'
|
|
4
4
|
import { type ValidateFunction, type SchemaObject, type ErrorObject } from 'ajv/dist/2019.js'
|
|
5
5
|
import { type Display } from '../state/utils/display.js'
|
|
6
6
|
import { type LocaleMessages } from '../i18n/types.js'
|
|
@@ -24,19 +24,15 @@ export type CompiledExpression = (
|
|
|
24
24
|
parent?: ParentContextExpression | null
|
|
25
25
|
) => any
|
|
26
26
|
|
|
27
|
-
export
|
|
27
|
+
export type CompileOptions = NormalizeOptions & {
|
|
28
28
|
ajv: ajvModule.default
|
|
29
29
|
ajvOptions?: ajvModule.Options
|
|
30
30
|
code: boolean
|
|
31
|
-
markdown: (text: string) => string
|
|
32
31
|
markedOptions?: MarkedOptions
|
|
33
32
|
locale: string
|
|
34
33
|
defaultLocale: string
|
|
35
34
|
messages: LocaleMessages
|
|
36
|
-
optionsKeys: string[]
|
|
37
|
-
components: Record<string, ComponentInfo>
|
|
38
35
|
xI18n: boolean
|
|
39
|
-
useDescription: Array<'help' | 'hint' | 'subtitle'>
|
|
40
36
|
}
|
|
41
37
|
|
|
42
38
|
export type PartialCompileOptions = Partial<Omit<CompileOptions, 'messages'>> & {
|
package/src/i18n/de.js
CHANGED
|
@@ -30,5 +30,9 @@ export default {
|
|
|
30
30
|
preview: 'Vorschau',
|
|
31
31
|
mdeGuide: 'Syntax-Dokumentation',
|
|
32
32
|
undo: 'Rückgängig',
|
|
33
|
-
redo: 'Wiederholen'
|
|
33
|
+
redo: 'Wiederholen',
|
|
34
|
+
default: 'standard: ',
|
|
35
|
+
name: 'name: ',
|
|
36
|
+
examples: 'Beispiele: ',
|
|
37
|
+
deprecated: 'Achtung, diese Information ist veraltet.'
|
|
34
38
|
}
|
package/src/i18n/en.js
CHANGED
|
@@ -30,5 +30,9 @@ export default {
|
|
|
30
30
|
preview: 'Aperçu du rendu',
|
|
31
31
|
mdeGuide: 'Documentation de la syntaxe',
|
|
32
32
|
undo: 'Undo',
|
|
33
|
-
redo: 'Redo'
|
|
33
|
+
redo: 'Redo',
|
|
34
|
+
default: 'default: ',
|
|
35
|
+
name: 'name: ',
|
|
36
|
+
examples: 'Examples: ',
|
|
37
|
+
deprecated: 'Warning, this information is deprecated.'
|
|
34
38
|
}
|
package/src/i18n/fr.js
CHANGED
|
@@ -30,5 +30,9 @@ export default {
|
|
|
30
30
|
preview: 'Preview',
|
|
31
31
|
mdeGuide: 'Syntax documentation',
|
|
32
32
|
undo: 'Défaire',
|
|
33
|
-
redo: 'Refaire'
|
|
33
|
+
redo: 'Refaire',
|
|
34
|
+
default: 'défaut : ',
|
|
35
|
+
name: 'nom : ',
|
|
36
|
+
examples: 'Exemples : ',
|
|
37
|
+
deprecated: 'Attention, cette information est obsolète.'
|
|
34
38
|
}
|
package/src/i18n/nl.js
CHANGED
|
@@ -30,5 +30,9 @@ export default {
|
|
|
30
30
|
preview: 'Voorbeeld',
|
|
31
31
|
mdeGuide: 'Documentatie over syntaxis',
|
|
32
32
|
undo: 'Ongedaan maken',
|
|
33
|
-
redo: 'Opnieuw'
|
|
33
|
+
redo: 'Opnieuw',
|
|
34
|
+
default: 'standaard: ',
|
|
35
|
+
name: 'naam: ',
|
|
36
|
+
examples: 'Voorbeelden: ',
|
|
37
|
+
deprecated: 'Waarschuwing, deze informatie is verouderd.'
|
|
34
38
|
}
|
package/src/i18n/types.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type NormalizeMessages } from '@json-layout/vocabulary'
|
|
2
|
+
|
|
1
3
|
export interface CompileOptionsMessages {
|
|
2
4
|
errorOneOf: string
|
|
3
5
|
errorRequired: string
|
|
@@ -35,4 +37,4 @@ export interface StateOptionsMessages {
|
|
|
35
37
|
redo: string
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
export type LocaleMessages = CompileOptionsMessages & StateOptionsMessages
|
|
40
|
+
export type LocaleMessages = NormalizeMessages & CompileOptionsMessages & StateOptionsMessages
|
package/src/utils/doc-options.js
CHANGED
|
@@ -47,9 +47,49 @@ export const compileOptions = [
|
|
|
47
47
|
default: ['help', 'subtitle'],
|
|
48
48
|
values: {
|
|
49
49
|
help: 'As a help message shown in a tooltip.',
|
|
50
|
-
hint: 'As a hint message
|
|
50
|
+
hint: 'As a hint message below simple form fields (not applicable to composite components).',
|
|
51
51
|
subtitle: 'As a subtitle below the title of a composite component.'
|
|
52
52
|
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: 'useDefault',
|
|
56
|
+
description: 'Define how to use the "default" metadata from the schema.',
|
|
57
|
+
default: 'data',
|
|
58
|
+
values: {
|
|
59
|
+
false: 'Do not use the default value.',
|
|
60
|
+
true: 'As the initial value of the form data (alias "data").',
|
|
61
|
+
placeholder: 'As a placeholder in the form inputs.',
|
|
62
|
+
hint: 'As a hint message below the form inputs.'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
key: 'useName',
|
|
67
|
+
description: 'Use the "name" metadata from the schema (the key of the property in its parent object).',
|
|
68
|
+
default: false,
|
|
69
|
+
values: {
|
|
70
|
+
false: 'Do not use the name except as a label if a label cannot be constructed in another way.',
|
|
71
|
+
hint: 'As a hint message below the form inputs.',
|
|
72
|
+
placeholder: 'As a placeholder in the form inputs.'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
key: 'useExamples',
|
|
77
|
+
description: 'Define how to use the "examples" metadata from the schema.',
|
|
78
|
+
default: 'items',
|
|
79
|
+
values: {
|
|
80
|
+
false: 'Do not use the examples.',
|
|
81
|
+
items: 'As items in a combobox component.',
|
|
82
|
+
help: 'As a help message shown in a tooltip.'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
key: 'useDeprecated',
|
|
87
|
+
description: 'Use the "deprecated" metadata from the schema.',
|
|
88
|
+
default: false,
|
|
89
|
+
values: {
|
|
90
|
+
true: 'Show a warning message when a deprecated property is used.',
|
|
91
|
+
false: 'Do not use the deprecated metadata.',
|
|
92
|
+
}
|
|
53
93
|
}
|
|
54
94
|
]
|
|
55
95
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/compile/options.js"],"names":[],"mappings":"AAqBO,4CAHI,qBAAqB,GACnB,cAAc,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/compile/options.js"],"names":[],"mappings":"AAqBO,4CAHI,qBAAqB,GACnB,cAAc,CA0D1B;AAGD,yGAAyG;AACzG,oCADW,CAAC,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,qBAAqB,KAAK,qBAAqB,CAiBnG;6BAvFW,OAAO,YAAY,EAAE,cAAc;oCACnC,OAAO,YAAY,EAAE,qBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton-node.d.ts","sourceRoot":"","sources":["../../src/compile/skeleton-node.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,4CAlBW,GAAG,kBACH,MAAM,WACN,OAAO,YAAY,EAAE,cAAc,cACnC,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,iBACxD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,iBACjD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,oBACjD,MAAM,EAAE,oBACR,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,qBACxB,MAAM,CAAC,MAAM,EAAE,OAAO,yBAAyB,EAAE,gBAAgB,CAAC,eAClE,OAAO,yBAAyB,EAAE,UAAU,EAAE,OAC9C,MAAM,GAAG,MAAM,WACf,MAAM,YACN,OAAO,cACP,MAAM,cACN,OAAO,cACP,MAAM,GACJ,OAAO,YAAY,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"skeleton-node.d.ts","sourceRoot":"","sources":["../../src/compile/skeleton-node.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,4CAlBW,GAAG,kBACH,MAAM,WACN,OAAO,YAAY,EAAE,cAAc,cACnC,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,iBACxD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,iBACjD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,oBACjD,MAAM,EAAE,oBACR,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,qBACxB,MAAM,CAAC,MAAM,EAAE,OAAO,yBAAyB,EAAE,gBAAgB,CAAC,eAClE,OAAO,yBAAyB,EAAE,UAAU,EAAE,OAC9C,MAAM,GAAG,MAAM,WACf,MAAM,YACN,OAAO,cACP,MAAM,cACN,OAAO,cACP,MAAM,GACJ,OAAO,YAAY,EAAE,YAAY,CAwf7C"}
|
package/types/compile/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type ajvModule from 'ajv/dist/2019.js';
|
|
2
2
|
import type { MarkedOptions } from 'marked';
|
|
3
|
-
import { type ComponentInfo, type BaseCompObject, type NormalizedLayout, type StateNodeOptionsBase, type Expression } from '@json-layout/vocabulary';
|
|
3
|
+
import { type ComponentInfo, type BaseCompObject, type NormalizedLayout, type StateNodeOptionsBase, type Expression, type NormalizeOptions } from '@json-layout/vocabulary';
|
|
4
4
|
import { type ValidateFunction, type SchemaObject } from 'ajv/dist/2019.js';
|
|
5
5
|
import { type Display } from '../state/utils/display.js';
|
|
6
6
|
import { type LocaleMessages } from '../i18n/types.js';
|
|
@@ -9,20 +9,16 @@ export interface ParentContextExpression {
|
|
|
9
9
|
parent: ParentContextExpression | undefined | null;
|
|
10
10
|
}
|
|
11
11
|
export type CompiledExpression = (data: any, dataAlias: any, options: StateNodeOptionsBase, context: object, display: Display, layout: BaseCompObject, readOnly: boolean, summary: boolean, validates: Record<string, ValidateFunction>, rootData?: unknown, parent?: ParentContextExpression | null) => any;
|
|
12
|
-
export
|
|
12
|
+
export type CompileOptions = NormalizeOptions & {
|
|
13
13
|
ajv: ajvModule.default;
|
|
14
14
|
ajvOptions?: ajvModule.Options;
|
|
15
15
|
code: boolean;
|
|
16
|
-
markdown: (text: string) => string;
|
|
17
16
|
markedOptions?: MarkedOptions;
|
|
18
17
|
locale: string;
|
|
19
18
|
defaultLocale: string;
|
|
20
19
|
messages: LocaleMessages;
|
|
21
|
-
optionsKeys: string[];
|
|
22
|
-
components: Record<string, ComponentInfo>;
|
|
23
20
|
xI18n: boolean;
|
|
24
|
-
|
|
25
|
-
}
|
|
21
|
+
};
|
|
26
22
|
export type PartialCompileOptions = Partial<Omit<CompileOptions, 'messages'>> & {
|
|
27
23
|
messages?: Partial<LocaleMessages>;
|
|
28
24
|
components?: Record<string, Omit<ComponentInfo, 'name'>>;
|
|
@@ -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,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/compile/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,E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AAC,EAAE,MAAM,EAAE,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
|
package/types/i18n/de.d.ts
CHANGED
package/types/i18n/en.d.ts
CHANGED
package/types/i18n/fr.d.ts
CHANGED
package/types/i18n/nl.d.ts
CHANGED
package/types/i18n/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type NormalizeMessages } from '@json-layout/vocabulary';
|
|
1
2
|
export interface CompileOptionsMessages {
|
|
2
3
|
errorOneOf: string;
|
|
3
4
|
errorRequired: string;
|
|
@@ -33,5 +34,5 @@ export interface StateOptionsMessages {
|
|
|
33
34
|
undo: string;
|
|
34
35
|
redo: string;
|
|
35
36
|
}
|
|
36
|
-
export type LocaleMessages = CompileOptionsMessages & StateOptionsMessages;
|
|
37
|
+
export type LocaleMessages = NormalizeMessages & CompileOptionsMessages & StateOptionsMessages;
|
|
37
38
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/i18n/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ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A;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,sBAAsB,GAAG,oBAAoB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doc-options.d.ts","sourceRoot":"","sources":["../../src/utils/doc-options.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH,yBAAyB;AACzB,6BADW,UAAU,
|
|
1
|
+
{"version":3,"file":"doc-options.d.ts","sourceRoot":"","sources":["../../src/utils/doc-options.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH,yBAAyB;AACzB,6BADW,UAAU,CAuFpB;AAED,yBAAyB;AACzB,6BADW,UAAU,CAmHpB;yBA/MY;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,GAAG,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAC,EAAE"}
|