@dosgato/dialog 1.5.4 → 1.5.5
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/dist/FieldRadio.svelte +2 -2
- package/dist/code/GraphQLEditor.svelte +3 -1
- package/dist/code/TypeScriptEditor.svelte +7 -3
- package/package.json +5 -5
- package/dist/code/_graphql-env.d.ts +0 -3
- package/dist/code/_graphql-env.js +0 -5704
- package/dist/code/_graphql-env.js.map +0 -1
- package/dist/code/_ts-env.d.ts +0 -5
- package/dist/code/_ts-env.js +0 -160483
- package/dist/code/_ts-env.js.map +0 -1
package/dist/FieldRadio.svelte
CHANGED
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
onMount(reactToChoices)
|
|
42
42
|
</script>
|
|
43
43
|
|
|
44
|
-
<Field {path} {defaultValue} {conditional} {notNull} {number} {date} {datetime} {boolean} {serialize} {deserialize} bind:finalDeserialize let:serialize={finalSerialize} let:value let:valid let:invalid let:onBlur let:
|
|
45
|
-
<Switcher bind:id {path} class={className} name={finalPath} {horizontal} {label} iptValue={value} {valid} {invalid} {required} {related} {extradescid} {helptext} {messages} on:change={
|
|
44
|
+
<Field {path} {defaultValue} {conditional} {notNull} {number} {date} {datetime} {boolean} {serialize} {deserialize} bind:finalDeserialize let:serialize={finalSerialize} let:value let:valid let:invalid let:onBlur let:setVal let:messages>
|
|
45
|
+
<Switcher bind:id {path} class={className} name={finalPath} {horizontal} {label} iptValue={value} {valid} {invalid} {required} {related} {extradescid} {helptext} {messages} on:change={e => setVal(finalDeserialize(e.detail))} {onBlur} choices={choices.map(c => ({ ...c, value: finalSerialize(c.value) }))} />
|
|
46
46
|
</Field>
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
const { autocompletion, completionKeymap, closeBracketsKeymap } = await import('@codemirror/autocomplete')
|
|
37
37
|
const { setDiagnosticsEffect } = await import('@codemirror/lint')
|
|
38
38
|
const { indentOnInput } = await import('@codemirror/language')
|
|
39
|
-
const { graphql, updateSchema, getSchema, offsetToPos
|
|
39
|
+
const { graphql, updateSchema, getSchema, offsetToPos } = await import('cm6-graphql')
|
|
40
|
+
const { getHoverInformation, getDiagnostics } = await import('graphql-language-service')
|
|
41
|
+
const { GraphQLSchema: GQLSchema, GraphQLObjectType, GraphQLString } = await import('graphql')
|
|
40
42
|
|
|
41
43
|
function stripMutations (s?: GraphQLSchema): GraphQLSchema | undefined {
|
|
42
44
|
if (!s || !noMutations) return s
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { type HTMLActionEntry, passActions } from '@txstate-mws/svelte-components'
|
|
3
3
|
import type { EditorView, ViewUpdate } from '@codemirror/view'
|
|
4
4
|
import type { CompletionSource } from '@codemirror/autocomplete'
|
|
5
|
-
import type { CompilerOptions } from './_ts-env.js'
|
|
6
5
|
import type { Diagnostic } from '@codemirror/lint'
|
|
7
6
|
import { createEventDispatcher, onDestroy, onMount } from 'svelte'
|
|
7
|
+
import type { CompilerOptions } from 'typescript'
|
|
8
8
|
import { getDescribedBy } from '..'
|
|
9
9
|
let className = ''
|
|
10
10
|
export { className as class }
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
{ autocompletion, completionKeymap, closeBracketsKeymap },
|
|
39
39
|
{ indentOnInput },
|
|
40
40
|
{ javascript },
|
|
41
|
-
|
|
41
|
+
ts,
|
|
42
|
+
{ createDefaultMapFromCDN, createSystem, createVirtualTypeScriptEnvironment, knownLibFilesForCompilerOptions },
|
|
43
|
+
{ tsFacet, tsSync, tsHover }
|
|
42
44
|
] = await Promise.all([
|
|
43
45
|
import('codemirror'),
|
|
44
46
|
import('@codemirror/commands'),
|
|
@@ -46,7 +48,9 @@
|
|
|
46
48
|
import('@codemirror/autocomplete'),
|
|
47
49
|
import('@codemirror/language'),
|
|
48
50
|
import('@codemirror/lang-javascript'),
|
|
49
|
-
import('
|
|
51
|
+
import('typescript'),
|
|
52
|
+
import('@typescript/vfs'),
|
|
53
|
+
import('@valtown/codemirror-ts')
|
|
50
54
|
])
|
|
51
55
|
|
|
52
56
|
const compilerOptions: CompilerOptions = {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dosgato/dialog",
|
|
3
3
|
"description": "A component library for building forms that edit a JSON document.",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.5",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "npm run package",
|
|
7
7
|
"dev": "vite dev --force",
|
|
8
|
-
"package": "svelte-package
|
|
8
|
+
"package": "svelte-package",
|
|
9
9
|
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
10
10
|
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
|
11
11
|
"lint": "eslint ."
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@eslint/compat": "^2.0.3",
|
|
42
|
-
"@stylistic/eslint-plugin": "^
|
|
42
|
+
"@stylistic/eslint-plugin": "^5.0.0",
|
|
43
43
|
"@sveltejs/adapter-auto": "^7.0.0",
|
|
44
44
|
"@sveltejs/kit": "^2.0.1",
|
|
45
45
|
"@sveltejs/package": "^2.0.1",
|
|
46
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
46
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
47
47
|
"@typescript/vfs": "^1.6.4",
|
|
48
48
|
"@valtown/codemirror-ts": "^2.3.1",
|
|
49
49
|
"cm6-graphql": "0.2.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"svelte": "^5.0.0",
|
|
54
54
|
"svelte-check": "^4.0.0",
|
|
55
55
|
"typescript": "^5.0.2",
|
|
56
|
-
"vite": "^
|
|
56
|
+
"vite": "^8.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"svelte": "^3.53.1 || ^4.0.0 || ^5.0.0"
|