diff --git a/package-lock.json b/package-lock.json index e1253018..4c7c54f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,8 +13,8 @@ "@mcschema/java-1.15": "^0.2.2", "@mcschema/java-1.16": "^0.6.5", "@mcschema/java-1.17": "^0.2.24", - "@mcschema/java-1.18": "^0.1.14", - "@mcschema/locales": "^0.1.33", + "@mcschema/java-1.18": "^0.1.16", + "@mcschema/locales": "^0.1.35", "deepslate": "^0.9.0-beta.2", "howler": "^2.2.3", "rfdc": "^1.3.0" @@ -347,17 +347,17 @@ } }, "node_modules/@mcschema/java-1.18": { - "version": "0.1.14", - "resolved": "https://registry.npmjs.org/@mcschema/java-1.18/-/java-1.18-0.1.14.tgz", - "integrity": "sha512-ceHkciysSDaC/PmjPRE12HHwiNas2AXSr/YcqagsvbDm3RPF15n01I/oJ5IttKMXI4u2xDVFToORd87ql1xnpw==", + "version": "0.1.16", + "resolved": "https://registry.npmjs.org/@mcschema/java-1.18/-/java-1.18-0.1.16.tgz", + "integrity": "sha512-p3oFVnMaygEUGpkbiEeyfeLL93diUpXHJs444vlC1r0/2hgFTNiYfTT5B52cqqWXFw0znGgOFwc7Qh7ynpz5IQ==", "dependencies": { "@mcschema/core": "^0.12.13" } }, "node_modules/@mcschema/locales": { - "version": "0.1.33", - "resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.33.tgz", - "integrity": "sha512-Mtmz3VIVPQutBPsxw1bQfDV8+NTSC9uU4L4sN0g1cUqFTBwU5a9fNeYoWKzLIVTpC9ZMHBWLpycBuMCU8e0zQw==" + "version": "0.1.35", + "resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.35.tgz", + "integrity": "sha512-fU7MBNr5auzpXYzIlV8thjeRVBGoW0R2w+wYM8v3Q9FXIMlqZXOPxGcrMIhXRFo6XI942dwFYp9kwSYXnvAdGA==" }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", @@ -2955,17 +2955,17 @@ } }, "@mcschema/java-1.18": { - "version": "0.1.14", - "resolved": "https://registry.npmjs.org/@mcschema/java-1.18/-/java-1.18-0.1.14.tgz", - "integrity": "sha512-ceHkciysSDaC/PmjPRE12HHwiNas2AXSr/YcqagsvbDm3RPF15n01I/oJ5IttKMXI4u2xDVFToORd87ql1xnpw==", + "version": "0.1.16", + "resolved": "https://registry.npmjs.org/@mcschema/java-1.18/-/java-1.18-0.1.16.tgz", + "integrity": "sha512-p3oFVnMaygEUGpkbiEeyfeLL93diUpXHJs444vlC1r0/2hgFTNiYfTT5B52cqqWXFw0znGgOFwc7Qh7ynpz5IQ==", "requires": { "@mcschema/core": "^0.12.13" } }, "@mcschema/locales": { - "version": "0.1.33", - "resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.33.tgz", - "integrity": "sha512-Mtmz3VIVPQutBPsxw1bQfDV8+NTSC9uU4L4sN0g1cUqFTBwU5a9fNeYoWKzLIVTpC9ZMHBWLpycBuMCU8e0zQw==" + "version": "0.1.35", + "resolved": "https://registry.npmjs.org/@mcschema/locales/-/locales-0.1.35.tgz", + "integrity": "sha512-fU7MBNr5auzpXYzIlV8thjeRVBGoW0R2w+wYM8v3Q9FXIMlqZXOPxGcrMIhXRFo6XI942dwFYp9kwSYXnvAdGA==" }, "@nodelib/fs.scandir": { "version": "2.1.5", diff --git a/package.json b/package.json index a1b4a34d..b6c1deda 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "@mcschema/java-1.15": "^0.2.2", "@mcschema/java-1.16": "^0.6.5", "@mcschema/java-1.17": "^0.2.24", - "@mcschema/java-1.18": "^0.1.14", - "@mcschema/locales": "^0.1.33", + "@mcschema/java-1.18": "^0.1.16", + "@mcschema/locales": "^0.1.35", "deepslate": "^0.9.0-beta.2", "howler": "^2.2.3", "rfdc": "^1.3.0" diff --git a/src/app/schema/renderHtml.tsx b/src/app/schema/renderHtml.tsx index a38cb4eb..c15ce509 100644 --- a/src/app/schema/renderHtml.tsx +++ b/src/app/schema/renderHtml.tsx @@ -377,6 +377,8 @@ function StringSuffix({ path, getValues, config, node, value, lang, states }: No context = context.contextPush(config.enum) } else if (!isEnum(config) && config?.validator === 'resource' && typeof config.params.pool === 'string') { context = context.contextPush(config.params.pool) + } else if (isEnum(config)) { + context = path } return