@digipair/skill-web-jsoneditor 0.91.0-0 → 0.92.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/index.cjs.d.ts +1 -0
- package/index.cjs.js +85180 -0
- package/index.esm.js +85176 -0
- package/libs/skill-web-jsoneditor/src/lib/jsoneditor.element.d.ts +7 -0
- package/package.json +5 -21
- package/vanilla-picker.cjs.js +1047 -0
- package/vanilla-picker.esm.js +1045 -0
- package/.swcrc +0 -28
- package/README.md +0 -7
- package/eslint.config.mjs +0 -22
- package/rollup.config.cjs +0 -28
- package/src/lib/jsoneditor.element.ts +0 -58
- package/src/lib/skill-web-jsoneditor.spec.ts +0 -7
- package/tsconfig.json +0 -13
- package/tsconfig.lib.json +0 -19
- /package/{src/index.d.ts → index.d.ts} +0 -0
- /package/{src/index.ts → libs/skill-web-jsoneditor/src/index.d.ts} +0 -0
- /package/{src/lib/skill-web-jsoneditor.ts → libs/skill-web-jsoneditor/src/lib/skill-web-jsoneditor.d.ts} +0 -0
- /package/{src/schema.fr.json → schema.fr.json} +0 -0
- /package/{src/schema.json → schema.json} +0 -0
package/.swcrc
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"jsc": {
|
|
3
|
-
"target": "es2017",
|
|
4
|
-
"parser": {
|
|
5
|
-
"syntax": "typescript",
|
|
6
|
-
"decorators": true,
|
|
7
|
-
"dynamicImport": true
|
|
8
|
-
},
|
|
9
|
-
"transform": {
|
|
10
|
-
"decoratorMetadata": true,
|
|
11
|
-
"legacyDecorator": true
|
|
12
|
-
},
|
|
13
|
-
"keepClassNames": true,
|
|
14
|
-
"externalHelpers": true,
|
|
15
|
-
"loose": true
|
|
16
|
-
},
|
|
17
|
-
"module": {
|
|
18
|
-
"type": "es6"
|
|
19
|
-
},
|
|
20
|
-
"sourceMaps": true,
|
|
21
|
-
"exclude": [
|
|
22
|
-
"jest.config.ts",
|
|
23
|
-
".*\\.spec.tsx?$",
|
|
24
|
-
".*\\.test.tsx?$",
|
|
25
|
-
"./src/jest-setup.ts$",
|
|
26
|
-
"./**/jest-setup.ts$"
|
|
27
|
-
]
|
|
28
|
-
}
|
package/README.md
DELETED
package/eslint.config.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import baseConfig from '../../eslint.config.mjs';
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
...baseConfig,
|
|
5
|
-
{
|
|
6
|
-
files: ['**/*.json'],
|
|
7
|
-
rules: {
|
|
8
|
-
'@nx/dependency-checks': [
|
|
9
|
-
'error',
|
|
10
|
-
{
|
|
11
|
-
ignoredFiles: [
|
|
12
|
-
'{projectRoot}/eslint.config.{js,cjs,mjs}',
|
|
13
|
-
'{projectRoot}/rollup.config.{js,ts,mjs,mts,cjs,cts}',
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
languageOptions: {
|
|
19
|
-
parser: await import('jsonc-eslint-parser'),
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
];
|
package/rollup.config.cjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const { withNx } = require('@nx/rollup/with-nx');
|
|
2
|
-
|
|
3
|
-
module.exports = withNx(
|
|
4
|
-
{
|
|
5
|
-
main: 'libs/skill-web-jsoneditor/src/index.ts',
|
|
6
|
-
outputPath: 'dist/libs/skill-web-jsoneditor',
|
|
7
|
-
tsConfig: 'libs/skill-web-jsoneditor/tsconfig.lib.json',
|
|
8
|
-
compiler: 'swc',
|
|
9
|
-
format: ['esm', "cjs"],
|
|
10
|
-
assets: [
|
|
11
|
-
{
|
|
12
|
-
input: 'libs/skill-web-jsoneditor/',
|
|
13
|
-
glob: 'package.json',
|
|
14
|
-
output: '.'
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
input: 'libs/skill-web-jsoneditor/src/',
|
|
18
|
-
glob: '*.json',
|
|
19
|
-
output: '.'
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
// Provide additional rollup configuration here. See: https://rollupjs.org/configuration-options
|
|
25
|
-
// e.g.
|
|
26
|
-
// output: { sourcemap: true },
|
|
27
|
-
}
|
|
28
|
-
);
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult, html } from 'lit';
|
|
2
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
3
|
-
import { JSONEditor } from 'vanilla-jsoneditor';
|
|
4
|
-
|
|
5
|
-
@customElement('digipair-jsoneditor')
|
|
6
|
-
export class JsonEditorElement extends LitElement {
|
|
7
|
-
@property()
|
|
8
|
-
json: any = {};
|
|
9
|
-
|
|
10
|
-
@property()
|
|
11
|
-
contentStyle = '';
|
|
12
|
-
|
|
13
|
-
override connectedCallback() {
|
|
14
|
-
super.connectedCallback();
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
override render(): TemplateResult {
|
|
18
|
-
setTimeout(() => {
|
|
19
|
-
const target = this.shadowRoot?.querySelector('section');
|
|
20
|
-
|
|
21
|
-
if (target) {
|
|
22
|
-
(window as any).__TMP_JSON_EDITOR__ = new JSONEditor({
|
|
23
|
-
target,
|
|
24
|
-
props: {
|
|
25
|
-
content: { json: this.json },
|
|
26
|
-
onChange: (
|
|
27
|
-
updatedContent: any,
|
|
28
|
-
previousContent: any,
|
|
29
|
-
{ contentErrors, patchResult },
|
|
30
|
-
) => {
|
|
31
|
-
let json = updatedContent.json;
|
|
32
|
-
if (updatedContent.text) {
|
|
33
|
-
try {
|
|
34
|
-
json = JSON.parse(updatedContent.text);
|
|
35
|
-
} catch (e) {
|
|
36
|
-
// nothing
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if (!json) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
this.json = json;
|
|
45
|
-
this.dispatchEvent(
|
|
46
|
-
new CustomEvent('change', {
|
|
47
|
-
detail: { updatedContent, previousContent, contentErrors, patchResult },
|
|
48
|
-
}),
|
|
49
|
-
);
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}, 1);
|
|
55
|
-
|
|
56
|
-
return html` <section style=${this.contentStyle}></section> `;
|
|
57
|
-
}
|
|
58
|
-
}
|
package/tsconfig.json
DELETED
package/tsconfig.lib.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"rootDir": "src",
|
|
5
|
-
"outDir": "dist",
|
|
6
|
-
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
|
|
7
|
-
"emitDeclarationOnly": true,
|
|
8
|
-
"module": "esnext",
|
|
9
|
-
"moduleResolution": "node",
|
|
10
|
-
"forceConsistentCasingInFileNames": true,
|
|
11
|
-
"types": ["node"]
|
|
12
|
-
},
|
|
13
|
-
"include": ["src/**/*.ts"],
|
|
14
|
-
"references": [
|
|
15
|
-
{
|
|
16
|
-
"path": "../engine/tsconfig.lib.json"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|