From 07c8b3af2744bd155cfc81688f85a671e143a4ed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 16 Nov 2024 15:33:13 +0100 Subject: [PATCH] Version Packages (#134) This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## codemirror-json-schema@0.7.9 ### Patch Changes - [#133](https://github.com/jsonnext/codemirror-json-schema/pull/133) [`4fd7cc6`](https://github.com/jsonnext/codemirror-json-schema/commit/4fd7cc69084bdad3c8c93d9d0f0a936fa120cbae) Thanks [@imolorhe](https://github.com/imolorhe)! - Get sub schema using parsed data for additional context - [#137](https://github.com/jsonnext/codemirror-json-schema/pull/137) [`29e2da5`](https://github.com/jsonnext/codemirror-json-schema/commit/29e2da5b5a16f8b076186e9623fe93ce6d086c30) Thanks [@xdavidwu](https://github.com/xdavidwu)! - Fix description markdown rendering in completion - [#144](https://github.com/jsonnext/codemirror-json-schema/pull/144) [`ef7f336`](https://github.com/jsonnext/codemirror-json-schema/commit/ef7f336f0d79397b19a37e76228f8a9b25070c89) Thanks [@imolorhe](https://github.com/imolorhe)! - updated to use fine grained shiki bundle - [#139](https://github.com/jsonnext/codemirror-json-schema/pull/139) [`bfbe613`](https://github.com/jsonnext/codemirror-json-schema/commit/bfbe613c81ba43e079e454b9c59a48a2f3887810) Thanks [@NickTomlin](https://github.com/NickTomlin)! - Move non essential packages to devDependencies - [#140](https://github.com/jsonnext/codemirror-json-schema/pull/140) [`bceace2`](https://github.com/jsonnext/codemirror-json-schema/commit/bceace285c137a53f3773219ee008ad1d856c770) Thanks [@NickTomlin](https://github.com/NickTomlin)! - Add CONTRIBUTING.md file Co-authored-by: github-actions[bot] --- .changeset/few-ducks-explain.md | 5 -- .changeset/rich-tables-hug.md | 5 -- .changeset/sharp-glasses-give.md | 5 -- .changeset/sixty-pillows-work.md | 5 -- .changeset/tender-rocks-smell.md | 5 -- CHANGELOG.md | 14 +++++ docs/README.md | 48 ++++++++--------- docs/classes/JSONCompletion.md | 67 ++++++++++++++---------- docs/classes/JSONHover.md | 16 +++--- docs/classes/JSONValidation.md | 60 +++++++-------------- docs/interfaces/JSONCompletionOptions.md | 13 ++++- docs/interfaces/JSONValidationOptions.md | 50 +++++------------- package.json | 2 +- 13 files changed, 129 insertions(+), 166 deletions(-) delete mode 100644 .changeset/few-ducks-explain.md delete mode 100644 .changeset/rich-tables-hug.md delete mode 100644 .changeset/sharp-glasses-give.md delete mode 100644 .changeset/sixty-pillows-work.md delete mode 100644 .changeset/tender-rocks-smell.md diff --git a/.changeset/few-ducks-explain.md b/.changeset/few-ducks-explain.md deleted file mode 100644 index bf96a97..0000000 --- a/.changeset/few-ducks-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"codemirror-json-schema": patch ---- - -Get sub schema using parsed data for additional context diff --git a/.changeset/rich-tables-hug.md b/.changeset/rich-tables-hug.md deleted file mode 100644 index b1e3475..0000000 --- a/.changeset/rich-tables-hug.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"codemirror-json-schema": patch ---- - -Fix description markdown rendering in completion diff --git a/.changeset/sharp-glasses-give.md b/.changeset/sharp-glasses-give.md deleted file mode 100644 index 20e42ea..0000000 --- a/.changeset/sharp-glasses-give.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"codemirror-json-schema": patch ---- - -updated to use fine grained shiki bundle diff --git a/.changeset/sixty-pillows-work.md b/.changeset/sixty-pillows-work.md deleted file mode 100644 index 0ad9717..0000000 --- a/.changeset/sixty-pillows-work.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"codemirror-json-schema": patch ---- - -Move non essential packages to devDependencies diff --git a/.changeset/tender-rocks-smell.md b/.changeset/tender-rocks-smell.md deleted file mode 100644 index 788575a..0000000 --- a/.changeset/tender-rocks-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"codemirror-json-schema": patch ---- - -Add CONTRIBUTING.md file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c1b485..2609ade 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # codemirror-json-schema +## 0.7.9 + +### Patch Changes + +- [#133](https://github.com/jsonnext/codemirror-json-schema/pull/133) [`4fd7cc6`](https://github.com/jsonnext/codemirror-json-schema/commit/4fd7cc69084bdad3c8c93d9d0f0a936fa120cbae) Thanks [@imolorhe](https://github.com/imolorhe)! - Get sub schema using parsed data for additional context + +- [#137](https://github.com/jsonnext/codemirror-json-schema/pull/137) [`29e2da5`](https://github.com/jsonnext/codemirror-json-schema/commit/29e2da5b5a16f8b076186e9623fe93ce6d086c30) Thanks [@xdavidwu](https://github.com/xdavidwu)! - Fix description markdown rendering in completion + +- [#144](https://github.com/jsonnext/codemirror-json-schema/pull/144) [`ef7f336`](https://github.com/jsonnext/codemirror-json-schema/commit/ef7f336f0d79397b19a37e76228f8a9b25070c89) Thanks [@imolorhe](https://github.com/imolorhe)! - updated to use fine grained shiki bundle + +- [#139](https://github.com/jsonnext/codemirror-json-schema/pull/139) [`bfbe613`](https://github.com/jsonnext/codemirror-json-schema/commit/bfbe613c81ba43e079e454b9c59a48a2f3887810) Thanks [@NickTomlin](https://github.com/NickTomlin)! - Move non essential packages to devDependencies + +- [#140](https://github.com/jsonnext/codemirror-json-schema/pull/140) [`bceace2`](https://github.com/jsonnext/codemirror-json-schema/commit/bceace285c137a53f3773219ee008ad1d856c770) Thanks [@NickTomlin](https://github.com/NickTomlin)! - Add CONTRIBUTING.md file + ## 0.7.8 ### Patch Changes diff --git a/docs/README.md b/docs/README.md index 0c836c3..d922ff5 100644 --- a/docs/README.md +++ b/docs/README.md @@ -74,13 +74,13 @@ Full featured cm6 extension for json, including `@codemirror/lang-json` #### Defined in -[json/bundled.ts:15](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/json/bundled.ts#L15) +[json/bundled.ts:15](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/json/bundled.ts#L15) ## Codemirror Extensions ### jsonCompletion -▸ **jsonCompletion**(`opts?`): (`ctx`: `CompletionContext`) => `CompletionResult` \| `never`[] +▸ **jsonCompletion**(`opts?`): (`ctx`: `CompletionContext`) => `never`[] \| `CompletionResult` provides a JSON schema enabled autocomplete extension for codemirror @@ -94,7 +94,7 @@ provides a JSON schema enabled autocomplete extension for codemirror `fn` -▸ (`ctx`): `CompletionResult` \| `never`[] +▸ (`ctx`): `never`[] \| `CompletionResult` ##### Parameters @@ -104,11 +104,11 @@ provides a JSON schema enabled autocomplete extension for codemirror ##### Returns -`CompletionResult` \| `never`[] +`never`[] \| `CompletionResult` #### Defined in -[features/completion.ts:949](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L949) +[features/completion.ts:973](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L973) ___ @@ -144,7 +144,7 @@ provides a JSON schema enabled tooltip extension for codemirror #### Defined in -[features/hover.ts:46](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L46) +[features/hover.ts:46](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L46) ___ @@ -178,7 +178,7 @@ Helper for simpler class instantiaton #### Defined in -[features/validation.ts:58](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L58) +[features/validation.ts:46](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L46) ## Utilities @@ -201,7 +201,7 @@ retrieve a Map of all the json pointers in a document #### Defined in -[utils/json-pointers.ts:85](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/utils/json-pointers.ts#L85) +[utils/json-pointers.ts:85](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/utils/json-pointers.ts#L85) ___ @@ -226,7 +226,7 @@ retrieve a JSON pointer for a given position in the editor #### Defined in -[utils/json-pointers.ts:68](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/utils/json-pointers.ts#L68) +[utils/json-pointers.ts:68](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/utils/json-pointers.ts#L68) ___ @@ -253,7 +253,7 @@ Mimics the behavior of `json-source-map`'s `parseJSONDocument` function using co #### Defined in -[utils/parse-json-document.ts:24](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/utils/parse-json-document.ts#L24) +[parsers/json-parser.ts:29](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/parsers/json-parser.ts#L29) ___ @@ -280,7 +280,7 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[utils/parse-json-document.ts:10](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/utils/parse-json-document.ts#L10) +[parsers/json-parser.ts:11](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/parsers/json-parser.ts#L11) ## Functions @@ -300,7 +300,7 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/state.ts:25](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/state.ts#L25) +[features/state.ts:25](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/state.ts#L25) ___ @@ -322,7 +322,7 @@ ___ #### Defined in -[utils/json-pointers.ts:31](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/utils/json-pointers.ts#L31) +[utils/json-pointers.ts:31](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/utils/json-pointers.ts#L31) ___ @@ -342,7 +342,7 @@ ___ #### Defined in -[features/validation.ts:48](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L48) +[features/validation.ts:36](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L36) ___ @@ -363,7 +363,7 @@ ___ #### Defined in -[utils/json-pointers.ts:18](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/utils/json-pointers.ts#L18) +[utils/json-pointers.ts:18](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/utils/json-pointers.ts#L18) ___ @@ -383,7 +383,7 @@ ___ #### Defined in -[features/state.ts:29](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/state.ts#L29) +[features/state.ts:29](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/state.ts#L29) ___ @@ -404,7 +404,7 @@ ___ #### Defined in -[features/state.ts:19](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/state.ts#L19) +[features/state.ts:19](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/state.ts#L19) ## Type Aliases @@ -421,7 +421,7 @@ ___ #### Defined in -[features/hover.ts:19](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L19) +[features/hover.ts:19](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L19) ___ @@ -431,7 +431,7 @@ ___ #### Defined in -[features/hover.ts:21](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L21) +[features/hover.ts:21](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L21) ___ @@ -450,7 +450,7 @@ ___ #### Defined in -[features/hover.ts:25](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L25) +[features/hover.ts:25](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L25) ___ @@ -467,7 +467,7 @@ ___ #### Defined in -[types.ts:6](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/types.ts#L6) +[types.ts:6](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/types.ts#L6) ___ @@ -486,7 +486,7 @@ ___ #### Defined in -[types.ts:11](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/types.ts#L11) +[types.ts:11](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/types.ts#L11) ___ @@ -496,7 +496,7 @@ ___ #### Defined in -[types.ts:20](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/types.ts#L20) +[types.ts:20](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/types.ts#L20) ## Variables @@ -506,4 +506,4 @@ ___ #### Defined in -[features/state.ts:6](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/state.ts#L6) +[features/state.ts:6](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/state.ts#L6) diff --git a/docs/classes/JSONCompletion.md b/docs/classes/JSONCompletion.md index d520a9b..5ae3731 100644 --- a/docs/classes/JSONCompletion.md +++ b/docs/classes/JSONCompletion.md @@ -37,6 +37,7 @@ - [mode](JSONCompletion.md#mode) - [opts](JSONCompletion.md#opts) +- [parser](JSONCompletion.md#parser) - [schema](JSONCompletion.md#schema) ## Constructors @@ -53,7 +54,7 @@ #### Defined in -[features/completion.ts:58](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L58) +[features/completion.ts:63](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L63) ## Methods @@ -74,7 +75,7 @@ #### Defined in -[features/completion.ts:775](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L775) +[features/completion.ts:784](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L784) --- @@ -96,7 +97,7 @@ #### Defined in -[features/completion.ts:704](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L704) +[features/completion.ts:713](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L713) --- @@ -117,7 +118,7 @@ #### Defined in -[features/completion.ts:750](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L750) +[features/completion.ts:759](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L759) --- @@ -137,7 +138,7 @@ #### Defined in -[features/completion.ts:785](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L785) +[features/completion.ts:794](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L794) --- @@ -159,7 +160,7 @@ #### Defined in -[features/completion.ts:678](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L678) +[features/completion.ts:687](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L687) --- @@ -179,7 +180,7 @@ #### Defined in -[features/completion.ts:245](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L245) +[features/completion.ts:251](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L251) --- @@ -200,13 +201,13 @@ #### Defined in -[features/completion.ts:792](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L792) +[features/completion.ts:801](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L801) --- ### doComplete -▸ **doComplete**(`ctx`): `CompletionResult` \| `never`[] +▸ **doComplete**(`ctx`): `never`[] \| `CompletionResult` #### Parameters @@ -216,11 +217,11 @@ #### Returns -`CompletionResult` \| `never`[] +`never`[] \| `CompletionResult` #### Defined in -[features/completion.ts:61](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L61) +[features/completion.ts:67](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L67) --- @@ -247,7 +248,7 @@ #### Defined in -[features/completion.ts:863](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L863) +[features/completion.ts:887](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L887) --- @@ -267,7 +268,7 @@ #### Defined in -[features/completion.ts:926](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L926) +[features/completion.ts:950](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L950) --- @@ -292,7 +293,7 @@ #### Defined in -[features/completion.ts:901](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L901) +[features/completion.ts:925](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L925) --- @@ -313,7 +314,7 @@ #### Defined in -[features/completion.ts:497](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L497) +[features/completion.ts:506](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L506) --- @@ -333,7 +334,7 @@ #### Defined in -[features/completion.ts:519](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L519) +[features/completion.ts:528](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L528) --- @@ -356,7 +357,7 @@ #### Defined in -[features/completion.ts:352](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L352) +[features/completion.ts:361](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L361) --- @@ -377,7 +378,7 @@ #### Defined in -[features/completion.ts:469](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L469) +[features/completion.ts:478](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L478) --- @@ -398,7 +399,7 @@ #### Defined in -[features/completion.ts:485](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L485) +[features/completion.ts:494](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L494) --- @@ -419,7 +420,7 @@ #### Defined in -[features/completion.ts:523](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L523) +[features/completion.ts:532](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L532) --- @@ -444,7 +445,7 @@ #### Defined in -[features/completion.ts:254](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L254) +[features/completion.ts:260](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L260) --- @@ -465,7 +466,7 @@ #### Defined in -[features/completion.ts:882](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L882) +[features/completion.ts:906](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L906) --- @@ -486,7 +487,7 @@ #### Defined in -[features/completion.ts:807](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L807) +[features/completion.ts:816](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L816) --- @@ -509,7 +510,7 @@ #### Defined in -[features/completion.ts:533](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L533) +[features/completion.ts:542](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L542) --- @@ -529,7 +530,7 @@ #### Defined in -[features/completion.ts:922](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L922) +[features/completion.ts:946](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L946) ## Properties @@ -539,7 +540,7 @@ #### Defined in -[features/completion.ts:57](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L57) +[features/completion.ts:60](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L60) --- @@ -549,7 +550,17 @@ #### Defined in -[features/completion.ts:58](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L58) +[features/completion.ts:63](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L63) + +--- + +### parser + +• `Private` **parser**: `DocumentParser` + +#### Defined in + +[features/completion.ts:61](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L61) --- @@ -559,4 +570,4 @@ #### Defined in -[features/completion.ts:56](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L56) +[features/completion.ts:59](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L59) diff --git a/docs/classes/JSONHover.md b/docs/classes/JSONHover.md index 3ea4881..da7efe5 100644 --- a/docs/classes/JSONHover.md +++ b/docs/classes/JSONHover.md @@ -35,7 +35,7 @@ #### Defined in -[features/hover.ts:88](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L88) +[features/hover.ts:88](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L88) ## Methods @@ -57,7 +57,7 @@ #### Defined in -[features/hover.ts:203](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L203) +[features/hover.ts:203](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L203) --- @@ -77,7 +77,7 @@ #### Defined in -[features/hover.ts:136](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L136) +[features/hover.ts:136](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L136) --- @@ -99,7 +99,7 @@ #### Defined in -[features/hover.ts:95](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L95) +[features/hover.ts:95](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L95) --- @@ -120,7 +120,7 @@ #### Defined in -[features/hover.ts:162](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L162) +[features/hover.ts:162](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L162) ## Properties @@ -130,7 +130,7 @@ #### Defined in -[features/hover.ts:87](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L87) +[features/hover.ts:87](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L87) --- @@ -140,7 +140,7 @@ #### Defined in -[features/hover.ts:88](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L88) +[features/hover.ts:88](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L88) --- @@ -150,4 +150,4 @@ #### Defined in -[features/hover.ts:86](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/hover.ts#L86) +[features/hover.ts:86](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/hover.ts#L86) diff --git a/docs/classes/JSONValidation.md b/docs/classes/JSONValidation.md index 5184917..4e840b7 100644 --- a/docs/classes/JSONValidation.md +++ b/docs/classes/JSONValidation.md @@ -4,10 +4,6 @@ ## Table of contents -### Utilities - -- [parser](JSONValidation.md#parser) - ### Accessors - [schemaTitle](JSONValidation.md#schematitle) @@ -25,39 +21,9 @@ - [mode](JSONValidation.md#mode) - [options](JSONValidation.md#options) +- [parser](JSONValidation.md#parser) - [schema](JSONValidation.md#schema) -## Utilities - -### parser - -• `Private` **parser**: (`state`: `EditorState`) => \{ `data`: `any` ; `pointers`: [`JSONPointersMap`](../README.md#jsonpointersmap) } = `parseJSONDocumentState` - -#### Type declaration - -▸ (`state`): `Object` - -Return parsed data and json pointers for a given codemirror EditorState - -##### Parameters - -| Name | Type | -| :------ | :------------ | -| `state` | `EditorState` | - -##### Returns - -`Object` - -| Name | Type | -| :--------- | :------------------------------------------------ | -| `data` | `any` | -| `pointers` | [`JSONPointersMap`](../README.md#jsonpointersmap) | - -#### Defined in - -[features/validation.ts:78](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L78) - ## Accessors ### schemaTitle @@ -70,7 +36,7 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/validation.ts:89](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L89) +[features/validation.ts:77](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L77) ## Constructors @@ -86,7 +52,7 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/validation.ts:79](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L79) +[features/validation.ts:67](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L67) ## Methods @@ -106,7 +72,7 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/validation.ts:120](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L120) +[features/validation.ts:108](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L108) --- @@ -126,7 +92,7 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/validation.ts:94](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L94) +[features/validation.ts:82](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L82) ## Properties @@ -136,7 +102,7 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/validation.ts:77](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L77) +[features/validation.ts:65](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L65) --- @@ -146,7 +112,17 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/validation.ts:79](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L79) +[features/validation.ts:67](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L67) + +--- + +### parser + +• `Private` **parser**: `DocumentParser` + +#### Defined in + +[features/validation.ts:66](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L66) --- @@ -156,4 +132,4 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/validation.ts:75](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L75) +[features/validation.ts:63](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L63) diff --git a/docs/interfaces/JSONCompletionOptions.md b/docs/interfaces/JSONCompletionOptions.md index 75bc7c0..5a3b17c 100644 --- a/docs/interfaces/JSONCompletionOptions.md +++ b/docs/interfaces/JSONCompletionOptions.md @@ -6,14 +6,25 @@ ### Properties +- [jsonParser](JSONCompletionOptions.md#jsonparser) - [mode](JSONCompletionOptions.md#mode) ## Properties +### jsonParser + +• `Optional` **jsonParser**: `DocumentParser` + +#### Defined in + +[features/completion.ts:55](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L55) + +--- + ### mode • `Optional` **mode**: `JSONMode` #### Defined in -[features/completion.ts:52](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/completion.ts#L52) +[features/completion.ts:54](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/completion.ts#L54) diff --git a/docs/interfaces/JSONValidationOptions.md b/docs/interfaces/JSONValidationOptions.md index e80603f..4616703 100644 --- a/docs/interfaces/JSONValidationOptions.md +++ b/docs/interfaces/JSONValidationOptions.md @@ -4,46 +4,12 @@ ## Table of contents -### Utilities - -- [jsonParser](JSONValidationOptions.md#jsonparser) - ### Properties - [formatError](JSONValidationOptions.md#formaterror) +- [jsonParser](JSONValidationOptions.md#jsonparser) - [mode](JSONValidationOptions.md#mode) -## Utilities - -### jsonParser - -• `Optional` **jsonParser**: (`state`: `EditorState`) => \{ `data`: `any` ; `pointers`: [`JSONPointersMap`](../README.md#jsonpointersmap) } - -#### Type declaration - -▸ (`state`): `Object` - -Return parsed data and json pointers for a given codemirror EditorState - -##### Parameters - -| Name | Type | -| :------ | :------------ | -| `state` | `EditorState` | - -##### Returns - -`Object` - -| Name | Type | -| :--------- | :------------------------------------------------ | -| `data` | `any` | -| `pointers` | [`JSONPointersMap`](../README.md#jsonpointersmap) | - -#### Defined in - -[features/validation.ts:43](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L43) - ## Properties ### formatError @@ -66,7 +32,17 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/validation.ts:42](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L42) +[features/validation.ts:30](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L30) + +--- + +### jsonParser + +• `Optional` **jsonParser**: `DocumentParser` + +#### Defined in + +[features/validation.ts:31](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L31) --- @@ -76,4 +52,4 @@ Return parsed data and json pointers for a given codemirror EditorState #### Defined in -[features/validation.ts:41](https://github.com/jsonnext/codemirror-json-schema/blob/2356a94/src/features/validation.ts#L41) +[features/validation.ts:29](https://github.com/jsonnext/codemirror-json-schema/blob/ef7f336/src/features/validation.ts#L29) diff --git a/package.json b/package.json index cfd9dc9..48c0016 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "codemirror-json-schema", "license": "MIT", - "version": "0.7.8", + "version": "0.7.9", "description": "Codemirror 6 extensions that provide full JSONSchema support for `@codemirror/lang-json` and `codemirror-json5`", "contributors": [ {