Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and tpluscode committed Sep 9, 2022
1 parent 50d4582 commit 8f3e0fb
Show file tree
Hide file tree
Showing 21 changed files with 102 additions and 206 deletions.
11 changes: 0 additions & 11 deletions .changeset/poor-beans-rhyme.md

This file was deleted.

8 changes: 8 additions & 0 deletions demos/examples/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions demos/examples/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand All @@ -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",
Expand Down
13 changes: 13 additions & 0 deletions demos/lit-html/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 8 additions & 8 deletions demos/lit-html/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand All @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions packages/hydra/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/hydra/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/rdf-validate-shacl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/rdf-validate-shacl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hydrofoil/shaperone-rdf-validate-shacl",
"version": "1.0.2",
"version": "1.0.3",
"type": "module",
"main": "index.js",
"files": [
Expand Down
9 changes: 9 additions & 0 deletions packages/wc-material/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/wc-material/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions packages/wc-shoelace/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/wc-shoelace/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions packages/wc-vaadin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/wc-vaadin/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
8 changes: 8 additions & 0 deletions packages/wc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
62 changes: 0 additions & 62 deletions packages/wc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,65 +58,3 @@ Check the main documentation page for instructions on customizing the form's ren
| Event | Type |
|-----------|--------------------|
| `changed` | `CustomEvent<any>` |


# 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`<shaperone-form .shapes=${shapes} .resource=${resource}></shaperone-form>`
```

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<TemplateResult<ResultType>>` | "DefaultRenderer" | Gets or sets the renderer implementation |
| `rendererOptions` | `rendererOptions` | readonly | `RendererState` | | Gets the state of the renderer |
| `resource` | | | `GraphPointer<BlankNode \| NamedNode<string>, DatasetCore<Quad, Quad>> \| undefined` | | Gets or sets the resource graph as graph pointer |
| `shapes` | | | `DatasetCore<Quad, Quad> \| AnyPointer<AnyContext, DatasetCore<Quad, Quad>> \| undefined` | | Gets or sets the shapes graph |
| `state` | `state` | | `FormState` | | Gets the internal state of the form element |
| `validationReport` | | readonly | `GraphPointer<Term, DatasetCore<Quad, Quad>> \| 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<DatasetCore<Quad, Quad>> \| 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<any>` |
Loading

0 comments on commit 8f3e0fb

Please sign in to comment.