diff --git a/.changeset/poor-beans-rhyme.md b/.changeset/poor-beans-rhyme.md deleted file mode 100644 index 4c2e9e86..00000000 --- a/.changeset/poor-beans-rhyme.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@hydrofoil/shaperone-core": patch -"@hydrofoil/shaperone-hydra": patch -"@hydrofoil/shaperone-rdf-validate-shacl": patch -"@hydrofoil/shaperone-wc": patch -"@hydrofoil/shaperone-wc-material": patch -"@hydrofoil/shaperone-wc-shoelace": patch -"@hydrofoil/shaperone-wc-vaadin": patch ---- - -One more build fix, where babel tried to compile `.d.ts` files diff --git a/demos/examples/CHANGELOG.md b/demos/examples/CHANGELOG.md index 0dbe782c..7e45fba3 100644 --- a/demos/examples/CHANGELOG.md +++ b/demos/examples/CHANGELOG.md @@ -1,5 +1,13 @@ # @hydrofoil/shaperone-playground-examples +## 0.2.36 + +### Patch Changes + +- Updated dependencies [50d4582] + - @hydrofoil/shaperone-core@0.9.9 + - @hydrofoil/shaperone-wc@0.7.6 + ## 0.2.35 ### Patch Changes diff --git a/demos/examples/package.json b/demos/examples/package.json index d5c155ad..e53e30f2 100644 --- a/demos/examples/package.json +++ b/demos/examples/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/shaperone-playground-examples", - "version": "0.2.35", + "version": "0.2.36", "main": "index.js", "repository": "https://github.com/hypermedia-app/shaperone", "author": "Tomasz Pluskiewicz ", @@ -10,8 +10,8 @@ "@tpluscode/rdf-ns-builders": "^2.0.0", "@fortawesome/fontawesome-svg-core": "^1.2.32", "@fortawesome/free-solid-svg-icons": "^5.15.1", - "@hydrofoil/shaperone-core": "0.9.8", - "@hydrofoil/shaperone-wc": "0.7.5", + "@hydrofoil/shaperone-core": "0.9.9", + "@hydrofoil/shaperone-wc": "0.7.6", "@rdf-esm/data-model": "^0.5.3", "@rdf-esm/term-map": "^0.5.0", "@rdfjs-elements/lit-helpers": "^0.3.3", diff --git a/demos/lit-html/CHANGELOG.md b/demos/lit-html/CHANGELOG.md index e9729122..5e2fbba6 100644 --- a/demos/lit-html/CHANGELOG.md +++ b/demos/lit-html/CHANGELOG.md @@ -1,5 +1,18 @@ # @hydrofoil/shaperone-playground +## 0.1.60 + +### Patch Changes + +- Updated dependencies [50d4582] + - @hydrofoil/shaperone-hydra@0.3.13 + - @hydrofoil/shaperone-rdf-validate-shacl@1.0.3 + - @hydrofoil/shaperone-wc@0.7.6 + - @hydrofoil/shaperone-wc-material@0.5.8 + - @hydrofoil/shaperone-wc-shoelace@0.1.14 + - @hydrofoil/shaperone-wc-vaadin@0.4.10 + - @hydrofoil/shaperone-playground-examples@0.2.36 + ## 0.1.59 ### Patch Changes diff --git a/demos/lit-html/package.json b/demos/lit-html/package.json index 663ebb1e..fa9f1ae9 100644 --- a/demos/lit-html/package.json +++ b/demos/lit-html/package.json @@ -1,7 +1,7 @@ { "name": "@hydrofoil/shaperone-playground", "private": true, - "version": "0.1.59", + "version": "0.1.60", "description": "@hydrofoil/shaperone demo using lit-html", "repository": "https://github.com/hypermedia-app/shaperone", "author": "Tomasz Pluskiewicz ", @@ -14,13 +14,13 @@ "dependencies": { "@captaincodeman/rdx": "^1.0.0-rc.8", "@github/clipboard-copy-element": "^1.1.2", - "@hydrofoil/shaperone-playground-examples": "0.2.35", - "@hydrofoil/shaperone-wc": "0.7.5", - "@hydrofoil/shaperone-wc-material": "0.5.7", - "@hydrofoil/shaperone-wc-vaadin": "0.4.9", - "@hydrofoil/shaperone-wc-shoelace": "0.1.13", - "@hydrofoil/shaperone-hydra": "0.3.12", - "@hydrofoil/shaperone-rdf-validate-shacl": "1.0.2", + "@hydrofoil/shaperone-playground-examples": "0.2.36", + "@hydrofoil/shaperone-wc": "0.7.6", + "@hydrofoil/shaperone-wc-material": "0.5.8", + "@hydrofoil/shaperone-wc-vaadin": "0.4.10", + "@hydrofoil/shaperone-wc-shoelace": "0.1.14", + "@hydrofoil/shaperone-hydra": "0.3.13", + "@hydrofoil/shaperone-rdf-validate-shacl": "1.0.3", "@material/mwc-icon": "^0.25", "@rdf-esm/formats-common": "^0.5.5", "@rdf-esm/term-set": "^0.5.0", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 557779b8..37bbde7f 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,11 @@ # @hydrofoil/shaperone-core +## 0.9.9 + +### Patch Changes + +- 50d4582: One more build fix, where babel tried to compile `.d.ts` files + ## 0.9.8 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 2d002f84..4214efe3 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/shaperone-core", - "version": "0.9.8", + "version": "0.9.9", "description": "Base processor of SHACL Shape intended to build forms", "main": "index.js", "type": "module", diff --git a/packages/hydra/CHANGELOG.md b/packages/hydra/CHANGELOG.md index c70dd34d..33e28950 100644 --- a/packages/hydra/CHANGELOG.md +++ b/packages/hydra/CHANGELOG.md @@ -1,5 +1,13 @@ # @hydrofoil/shaperone-hydra +## 0.3.13 + +### Patch Changes + +- 50d4582: One more build fix, where babel tried to compile `.d.ts` files +- Updated dependencies [50d4582] + - @hydrofoil/shaperone-core@0.9.9 + ## 0.3.12 ### Patch Changes diff --git a/packages/hydra/package.json b/packages/hydra/package.json index 38044a45..92e7f7a1 100644 --- a/packages/hydra/package.json +++ b/packages/hydra/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/shaperone-hydra", - "version": "0.3.12", + "version": "0.3.13", "description": "Shaperone extensions to integrate with Hydra-driven APIs", "main": "index.js", "type": "module", @@ -12,7 +12,7 @@ "babel": "babel . --out-dir . --extensions .ts --config-file ../../babel.config.json" }, "dependencies": { - "@hydrofoil/shaperone-core": "^0.9.8", + "@hydrofoil/shaperone-core": "^0.9.9", "@rdf-esm/dataset": "^0.5.0", "@rdf-esm/term-map": "^0.5.0", "@rdfine/hydra": "^0.8.5", diff --git a/packages/rdf-validate-shacl/CHANGELOG.md b/packages/rdf-validate-shacl/CHANGELOG.md index 858720d2..4782f512 100644 --- a/packages/rdf-validate-shacl/CHANGELOG.md +++ b/packages/rdf-validate-shacl/CHANGELOG.md @@ -1,5 +1,11 @@ # @hydrofoil/shaperone-rdf-validate-shacl +## 1.0.3 + +### Patch Changes + +- 50d4582: One more build fix, where babel tried to compile `.d.ts` files + ## 1.0.2 ### Patch Changes diff --git a/packages/rdf-validate-shacl/package.json b/packages/rdf-validate-shacl/package.json index b559d60f..b8cc9eae 100644 --- a/packages/rdf-validate-shacl/package.json +++ b/packages/rdf-validate-shacl/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/shaperone-rdf-validate-shacl", - "version": "1.0.2", + "version": "1.0.3", "type": "module", "main": "index.js", "files": [ diff --git a/packages/wc-material/CHANGELOG.md b/packages/wc-material/CHANGELOG.md index 580cf8d1..e5e10e10 100644 --- a/packages/wc-material/CHANGELOG.md +++ b/packages/wc-material/CHANGELOG.md @@ -1,5 +1,14 @@ # @hydrofoil/shaperone-wc-material +## 0.5.8 + +### Patch Changes + +- 50d4582: One more build fix, where babel tried to compile `.d.ts` files +- Updated dependencies [50d4582] + - @hydrofoil/shaperone-core@0.9.9 + - @hydrofoil/shaperone-wc@0.7.6 + ## 0.5.7 ### Patch Changes diff --git a/packages/wc-material/package.json b/packages/wc-material/package.json index 38b0555f..a74c022a 100644 --- a/packages/wc-material/package.json +++ b/packages/wc-material/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/shaperone-wc-material", - "version": "0.5.7", + "version": "0.5.8", "description": "Rendering forms in Material Design style", "main": "index.js", "type": "module", @@ -17,8 +17,8 @@ "analyze:lit": "lit-analyzer . --strict --quiet --rules.no-invalid-css off" }, "dependencies": { - "@hydrofoil/shaperone-core": "^0.9.8", - "@hydrofoil/shaperone-wc": "^0.7.5", + "@hydrofoil/shaperone-core": "^0.9.9", + "@hydrofoil/shaperone-wc": "^0.7.6", "@material/mwc-icon": "^0.25", "@material/mwc-list": "^0.25", "@material/mwc-menu": "^0.25", diff --git a/packages/wc-shoelace/CHANGELOG.md b/packages/wc-shoelace/CHANGELOG.md index ccacec95..f6d41e55 100644 --- a/packages/wc-shoelace/CHANGELOG.md +++ b/packages/wc-shoelace/CHANGELOG.md @@ -1,5 +1,14 @@ # @hydrofoil/shaperone-wc-shoelace +## 0.1.14 + +### Patch Changes + +- 50d4582: One more build fix, where babel tried to compile `.d.ts` files +- Updated dependencies [50d4582] + - @hydrofoil/shaperone-core@0.9.9 + - @hydrofoil/shaperone-wc@0.7.6 + ## 0.1.13 ### Patch Changes diff --git a/packages/wc-shoelace/package.json b/packages/wc-shoelace/package.json index 642e927d..6c04b229 100644 --- a/packages/wc-shoelace/package.json +++ b/packages/wc-shoelace/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/shaperone-wc-shoelace", - "version": "0.1.13", + "version": "0.1.14", "type": "module", "scripts": { "babel": "babel . --out-dir . --extensions .ts --config-file ../../babel.config.json", @@ -20,8 +20,8 @@ "custom-elements.json" ], "dependencies": { - "@hydrofoil/shaperone-core": "^0.9.8", - "@hydrofoil/shaperone-wc": "^0.7.5", + "@hydrofoil/shaperone-core": "^0.9.9", + "@hydrofoil/shaperone-wc": "^0.7.6", "@ngard/tiny-difference": "^1.0.0", "@rdfjs/data-model": "^2", "@rdfjs-elements/lit-helpers": "^0.3.5", diff --git a/packages/wc-vaadin/CHANGELOG.md b/packages/wc-vaadin/CHANGELOG.md index 30893423..37968645 100644 --- a/packages/wc-vaadin/CHANGELOG.md +++ b/packages/wc-vaadin/CHANGELOG.md @@ -1,5 +1,14 @@ # @hydrofoil/shaperone-wc-vaadin +## 0.4.10 + +### Patch Changes + +- 50d4582: One more build fix, where babel tried to compile `.d.ts` files +- Updated dependencies [50d4582] + - @hydrofoil/shaperone-core@0.9.9 + - @hydrofoil/shaperone-wc@0.7.6 + ## 0.4.9 ### Patch Changes diff --git a/packages/wc-vaadin/package.json b/packages/wc-vaadin/package.json index 5d347c80..2d32128f 100644 --- a/packages/wc-vaadin/package.json +++ b/packages/wc-vaadin/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/shaperone-wc-vaadin", - "version": "0.4.9", + "version": "0.4.10", "description": "Rendering forms with Vaadin components", "main": "index.js", "type": "module", @@ -16,8 +16,8 @@ "analyze:lit": "lit-analyzer . --strict --quiet --rules.no-invalid-css off" }, "dependencies": { - "@hydrofoil/shaperone-wc": "^0.7.5", - "@hydrofoil/shaperone-core": "^0.9.8", + "@hydrofoil/shaperone-wc": "^0.7.6", + "@hydrofoil/shaperone-core": "^0.9.9", "@tpluscode/rdf-ns-builders": "^2.0.0", "@rdf-esm/data-model": "^0.5.3", "@rdfjs-elements/lit-helpers": "^0.3.3", diff --git a/packages/wc/CHANGELOG.md b/packages/wc/CHANGELOG.md index 8427a203..a535c304 100644 --- a/packages/wc/CHANGELOG.md +++ b/packages/wc/CHANGELOG.md @@ -1,5 +1,13 @@ # @hydrofoil/shaperone-wc +## 0.7.6 + +### Patch Changes + +- 50d4582: One more build fix, where babel tried to compile `.d.ts` files +- Updated dependencies [50d4582] + - @hydrofoil/shaperone-core@0.9.9 + ## 0.7.5 ### Patch Changes diff --git a/packages/wc/README.md b/packages/wc/README.md index 04e61013..eafee4a2 100644 --- a/packages/wc/README.md +++ b/packages/wc/README.md @@ -58,65 +58,3 @@ Check the main documentation page for instructions on customizing the form's ren | Event | Type | |-----------|--------------------| | `changed` | `CustomEvent` | - - -# shaperone-form - -A custom element which renders a form element using graph description in [SHACL format](http://datashapes.org/forms.html). -The underlying value is a graph represented using the [RDF/JS data model specification](https://rdf.js.org/data-model-spec/) - -## Usage - -This example shows the element used with the default lit renderer - -```typescript -import '@hypermedia-app/shaperone-form/shaperone-form.js' -import { html } from '@hypermedia-app/shaperone-form' -import { Hydra } from 'alcaeus/web' -import { dataset, blankNode } from '@rdf-esm/dataset' - -const shapes = await Hydra.loadResource('http://example.com/api/shape') -const resource = clownface({ - dataset: dataset(), -}).blankNode() - -const formTemplate = html`` -``` - -The above snippet assumes that shapes get loaded from a remote resource and the form value is initialized with a -blank node without any properties. - -Such setup will render a very basic and unstyled form using native browser input elements and no specific layout. -Check the main documentation page for instructions on customizing the form's rendering. - -**Mixins:** connect - -## Properties - -| Property | Attribute | Modifiers | Type | Default | Description | -|---------------------|----------------------|-----------|--------------------------------------------------|-------------------|--------------------------------------------------| -| `components` | `components` | readonly | `ComponentsState` | | Gets the state of the editor components | -| `editors` | `editors` | readonly | `EditorsState` | | Gets the state of the DASH editors model | -| `isValid` | | readonly | `boolean` | | Gets a value indicating if there are any `sh:Violation` violation results | -| `noEditorSwitches` | `no-editor-switches` | | `boolean` | false | Disables the ability to change object editors. Only the one with [highest score](http://datashapes.org/forms.html#score) will be rendered | -| `renderer` | | | `Renderer>` | "DefaultRenderer" | Gets or sets the renderer implementation | -| `rendererOptions` | `rendererOptions` | readonly | `RendererState` | | Gets the state of the renderer | -| `resource` | | | `GraphPointer, DatasetCore> \| undefined` | | Gets or sets the resource graph as graph pointer | -| `shapes` | | | `DatasetCore \| AnyPointer> \| undefined` | | Gets or sets the shapes graph | -| `state` | `state` | | `FormState` | | Gets the internal state of the form element | -| `validationReport` | | readonly | `GraphPointer> \| undefined` | | Gets a graph pointer to the latest [SHACL Validation Report](https://www.w3.org/TR/shacl/#validation-report) | -| `validationResults` | | readonly | `ValidationResultState[]` | | Get all validation results found in the {@see validationReport} graph | -| `value` | | readonly | `RdfResource> \| null` | | Gets the resource as a [rdfine](https://npm.im/@tpluscode/rdfine) object | - -## Methods - -| Method | Type | Description | -|-------------|----------------------------------|--------------------------------------------------| -| `mapEvents` | `((): DispatchMap) \| undefined` | | -| `validate` | `(): void` | Triggers validation of the current resource against the shapes graph | - -## Events - -| Event | Type | -|-----------|--------------------| -| `changed` | `CustomEvent` | diff --git a/packages/wc/custom-elements.json b/packages/wc/custom-elements.json index 36cfdb8f..06198fb2 100644 --- a/packages/wc/custom-elements.json +++ b/packages/wc/custom-elements.json @@ -1,113 +1,6 @@ { "version": "experimental", "tags": [ - { - "name": "shaperone-form", - "path": "./shaperone-form.js", - "description": "A custom element which renders a form element using graph description in [SHACL format](http://datashapes.org/forms.html).\nThe underlying value is a graph represented using the [RDF/JS data model specification](https://rdf.js.org/data-model-spec/)\n\n## Usage\n\nThis example shows the element used with the default lit renderer\n\n```typescript\nimport '@hypermedia-app/shaperone-form/shaperone-form.js'\nimport { html } from '@hypermedia-app/shaperone-form'\nimport { Hydra } from 'alcaeus/web'\nimport { dataset, blankNode } from '@rdf-esm/dataset'\n\nconst shapes = await Hydra.loadResource('http://example.com/api/shape')\nconst resource = clownface({\n dataset: dataset(),\n}).blankNode()\n\nconst formTemplate = html``\n```\n\nThe above snippet assumes that shapes get loaded from a remote resource and the form value is initialized with a\nblank node without any properties.\n\nSuch setup will render a very basic and unstyled form using native browser input elements and no specific layout.\nCheck the main documentation page for instructions on customizing the form's rendering.", - "attributes": [ - { - "name": "editors", - "description": "Gets the state of the DASH editors model", - "type": "EditorsState" - }, - { - "name": "components", - "description": "Gets the state of the editor components", - "type": "ComponentsState" - }, - { - "name": "rendererOptions", - "description": "Gets the state of the renderer", - "type": "RendererState" - }, - { - "name": "no-editor-switches", - "description": "Disables the ability to change object editors. Only the one with [highest score](http://datashapes.org/forms.html#score) will be rendered", - "type": "boolean", - "default": "false" - }, - { - "name": "state", - "description": "Gets the internal state of the form element", - "type": "FormState" - } - ], - "properties": [ - { - "name": "renderer", - "description": "Gets or sets the renderer implementation", - "type": "Renderer>", - "default": "\"DefaultRenderer\"" - }, - { - "name": "editors", - "attribute": "editors", - "description": "Gets the state of the DASH editors model", - "type": "EditorsState" - }, - { - "name": "components", - "attribute": "components", - "description": "Gets the state of the editor components", - "type": "ComponentsState" - }, - { - "name": "rendererOptions", - "attribute": "rendererOptions", - "description": "Gets the state of the renderer", - "type": "RendererState" - }, - { - "name": "noEditorSwitches", - "attribute": "no-editor-switches", - "description": "Disables the ability to change object editors. Only the one with [highest score](http://datashapes.org/forms.html#score) will be rendered", - "type": "boolean", - "default": "false" - }, - { - "name": "state", - "attribute": "state", - "description": "Gets the internal state of the form element", - "type": "FormState" - }, - { - "name": "value", - "description": "Gets the resource as a [rdfine](https://npm.im/@tpluscode/rdfine) object", - "type": "RdfResource> | null" - }, - { - "name": "isValid", - "description": "Gets a value indicating if there are any `sh:Violation` violation results", - "type": "boolean" - }, - { - "name": "validationResults", - "description": "Get all validation results found in the {@see validationReport} graph", - "type": "ValidationResultState[]" - }, - { - "name": "validationReport", - "description": "Gets a graph pointer to the latest [SHACL Validation Report](https://www.w3.org/TR/shacl/#validation-report)", - "type": "GraphPointer> | undefined" - }, - { - "name": "shapes", - "description": "Gets or sets the shapes graph", - "type": "DatasetCore | AnyPointer> | undefined" - }, - { - "name": "resource", - "description": "Gets or sets the resource graph as graph pointer", - "type": "GraphPointer, DatasetCore> | undefined" - } - ], - "events": [ - { - "name": "changed" - } - ] - }, { "name": "shaperone-form", "path": "./shaperone-form.ts", diff --git a/packages/wc/package.json b/packages/wc/package.json index 14a3a32b..08a54a59 100644 --- a/packages/wc/package.json +++ b/packages/wc/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/shaperone-wc", - "version": "0.7.5", + "version": "0.7.6", "description": "Web Component rendering SHACL forms", "main": "index.js", "type": "module", @@ -21,7 +21,7 @@ }, "dependencies": { "@captaincodeman/rdx": "^1.0.0-rc.8", - "@hydrofoil/shaperone-core": "^0.9.8", + "@hydrofoil/shaperone-core": "^0.9.9", "@rdf-esm/data-model": "^0.5.4", "@rdf-esm/dataset": "^0.5.1", "@rdfine/shacl": "^0.8.7",