Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
41d1ff6
wip: simpler component model
tpluscode Dec 11, 2024
9efb632
wip: docs for enum select
tpluscode Dec 11, 2024
32d4550
wip: matchers
tpluscode Dec 11, 2024
9b511e4
docs: metadata
tpluscode Dec 11, 2024
4f10694
chore: remove unwanted docs
tpluscode Dec 11, 2024
c55e8d3
chore: moved static files
tpluscode Dec 11, 2024
859fb96
docs: reorganise pages
tpluscode Dec 11, 2024
c36924e
Merge branch 'migrate-docs' into simplify-components
tpluscode Dec 11, 2024
e722b2f
wip: instances select editor
tpluscode Dec 12, 2024
88e7c5d
Merge branch 'master' into simplify-components
tpluscode Dec 13, 2024
c8f4b73
wip: shoelace
tpluscode Dec 13, 2024
8d6bc31
wip: shoelace elements
tpluscode Dec 18, 2024
1246500
refactor: clean up renderer
tpluscode Dec 18, 2024
6bc45c7
refactor: optimise re-rendering on shapes graph change
tpluscode Dec 19, 2024
f834206
shoelace: button to fire the right events
tpluscode Dec 19, 2024
2d8d056
shoelace: autocomplete
tpluscode Jan 2, 2025
7caee46
refactor: move dependency loader to wc core
tpluscode Jan 2, 2025
f26ba51
refactor: vaadin accordion
tpluscode Jan 2, 2025
3d5659f
refactor: remove renderer
tpluscode Jan 6, 2025
7a0ac9d
refactor: vaadin date/time pickers
tpluscode Jan 6, 2025
6f71050
docs: fix story of extending matchers
tpluscode May 9, 2025
8bef04b
test: native components
tpluscode May 9, 2025
51b3f32
fix: make env more portable
tpluscode May 15, 2025
272c211
build: issues in components
tpluscode May 15, 2025
be1b803
build(deps): update TS
tpluscode May 15, 2025
4133f65
refactor: added `detailNodes` to track `dash:DetailsEditor`
tpluscode May 15, 2025
c95b23d
refactor: shoelace skeleton
tpluscode May 15, 2025
8084a86
refactor: decorators
tpluscode May 15, 2025
f2f85ea
build: fix
tpluscode May 15, 2025
067c23b
refactor: base components
tpluscode May 15, 2025
c804697
refactor: remove material as it uses a deprecated dependency
tpluscode May 15, 2025
746167b
build(deps): clean dependencies
tpluscode May 16, 2025
4711b01
build(deps-dep): bring back ts-node
tpluscode May 16, 2025
d7b1205
test: fix core tests
tpluscode May 16, 2025
196b22c
test: removed material
tpluscode May 16, 2025
994b6dd
ci: enable puppeteer in config
tpluscode May 16, 2025
1723502
refactor: extract common base class
tpluscode May 19, 2025
68ba5c7
style: eslint fixes
tpluscode May 19, 2025
4c946ef
refactor: dir rename
tpluscode May 20, 2025
235fbcd
refactor: shoelace AutoComplete
tpluscode May 20, 2025
9002a6d
chore: npm ddp
tpluscode May 20, 2025
b849d09
fix: align autcomplete icon
tpluscode May 21, 2025
799327e
refactor: remove readonly directive
tpluscode May 21, 2025
e5da02f
test(shoelace): text field
tpluscode May 21, 2025
8dd8c6a
refactor: rename packages
tpluscode May 21, 2025
6729db3
refactor: rename package dirs
tpluscode May 26, 2025
b2a7e76
test(shoelace): sh1-property
tpluscode May 26, 2025
b17b46c
test(shoelace): remove redundant tests
tpluscode May 26, 2025
8cf39ed
ci: coverage flags
tpluscode May 26, 2025
8496b84
ci: fix matrix
tpluscode May 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .changeset/beige-grapes-knock.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@hydrofoil/shaperone-core": minor
"@shaperone/core": minor
---

Fixed typo in exported type (`MiminalEnvironment` => `MinimalEnvironment`)
5 changes: 5 additions & 0 deletions .changeset/brave-grapes-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shaperone/hydra": patch
---

Update `alcaeus` to v3.0.2
2 changes: 1 addition & 1 deletion .changeset/chilled-feet-hide.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@hydrofoil/shaperone-wc": minor
"shaperone": minor
---

Removed the `window.Shaperone.DEBUG` flag in favor of component `debug` property
2 changes: 1 addition & 1 deletion .changeset/dry-shoes-cover.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@hydrofoil/shaperone-core": patch
"@shaperone/core": patch
---

Fixes setting shapes from dataset
3 changes: 1 addition & 2 deletions .changeset/dull-baboons-suffer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
"@hydrofoil/shaperone-wc-material": patch
"@hydrofoil/shaperone-wc-vaadin": patch
"@shaperone/vaadin": patch
---

Updated core package
5 changes: 2 additions & 3 deletions .changeset/few-clouds-care.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
"@hydrofoil/shaperone-wc": patch
"@hydrofoil/shaperone-wc-material": patch
"@hydrofoil/shaperone-wc-vaadin": patch
"shaperone": patch
"@shaperone/vaadin": patch
---

Updated `lit` to v3
5 changes: 2 additions & 3 deletions .changeset/friendly-rings-repair.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
"@hydrofoil/shaperone-wc": patch
"@hydrofoil/shaperone-wc-material": patch
"@hydrofoil/shaperone-wc-vaadin": patch
"shaperone": patch
"@shaperone/vaadin": patch
---

Replace directive `spread` with one from `@open-wc/lit-helpers`
5 changes: 5 additions & 0 deletions .changeset/hip-lamps-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shaperone/rdf-validate-shacl": patch
---

Updated `rdf-validate-shacl`
4 changes: 2 additions & 2 deletions .changeset/hungry-guests-boil.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
"@hydrofoil/shaperone-core": patch
"@hydrofoil/shaperone-wc": patch
"@shaperone/core": patch
"shaperone": patch
---

Native components: `xsd:decimal` would not accept decimal point as a valid input.
2 changes: 1 addition & 1 deletion .changeset/ninety-kiwis-kiss.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@hydrofoil/shaperone-wc": patch
"shaperone": patch
---

Native templates: The ability to add and remove property values
4 changes: 2 additions & 2 deletions .changeset/quiet-fireants-join.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
"@hydrofoil/shaperone-core": patch
"@hydrofoil/shaperone-wc": patch
"@shaperone/core": patch
"shaperone": patch
---

Improved state management by separating the state of each element instance
4 changes: 2 additions & 2 deletions .changeset/seven-monkeys-beam.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
"@hydrofoil/shaperone-core": patch
"@hydrofoil/shaperone-wc": minor
"@shaperone/core": patch
"shaperone": minor
---

`configure` is now async and required to register the element
5 changes: 5 additions & 0 deletions .changeset/silver-dots-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shaperone/vaadin": minor
---

Updated to vaadin 23
2 changes: 1 addition & 1 deletion .changeset/six-islands-thank.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@hydrofoil/shaperone-core": patch
"@shaperone/core": patch
---

When no shape is selected and only one `sh:NodeShape` exists in graph, that shape will be used
14 changes: 14 additions & 0 deletions .changeset/sixty-toys-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@shaperone/playground-examples": patch
"shaperone-stories": patch
"@shaperone/core": patch
"@shaperone/core-tests": patch
"@shaperone/hydra": patch
"@shaperone/rdf-validate-shacl": patch
"@shaperone/testing": patch
"shaperone": patch
"@shaperone/shoelace": patch
"@shaperone/vaadin": patch
---

Package renamed
6 changes: 6 additions & 0 deletions .changeset/tasty-hounds-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@shaperone/core": major
"shaperone": major
---

Refactored the whole component model
6 changes: 3 additions & 3 deletions .changeset/wild-icons-prove.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
"@hydrofoil/shaperone-wc": minor
"shaperone": minor
---

Big change how elements are configured. Global config can be set using the `configure.js` module.

```js
import { configure } from '@hydrofoil/shaperone-wc'
import { configure } from 'shaperone'

await configure(({ components, editors, renderer, validation }) => {

Expand All @@ -18,7 +18,7 @@ Additionally, each component can be customised further by providing calling `con
<shaperone-form></shaperone-form>

<script type="module">
import { configure } from '@hydrofoil/shaperone-wc'
import { configure } from 'shaperone'

// global configuration must always be invoked
configure()
Expand Down
2 changes: 1 addition & 1 deletion .changeset/wise-pumas-eat.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@hydrofoil/shaperone-wc": minor
"shaperone": minor
---

Fixes an issue that the form would not render when the node was `<>` (empty string URI)
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
dist/
*.snap.js
packages/rdx/
demos/lit-html/
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"rules": {
"no-unused-expressions": "warn",
"babel/no-unused-expressions": "off",
"lit-a11y/accessible-name": "off"
"lit-a11y/accessible-name": "off",
"prefer-arrow-callback": "off"
}
},{
"files": "packages/core-tests/**/*.ts",
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,18 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: core

wtr-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
group:
- shaperone
- shoelace
- hydra
- vaadin
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -58,8 +67,9 @@ jobs:
with:
node-version: 18
- run: npm ci
- run: yarn test:web --puppeteer
- run: npx wtr --group ${{ matrix.group }}
- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.group }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage/
dist/api/
dist/playground/
dist/shaperone-form/
dist/storybook/
dist/docs/
!types/**/*.d.ts
*.log
!*.snap.js
2 changes: 1 addition & 1 deletion demos/examples/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @hydrofoil/shaperone-playground-examples
# @shaperone/playground-examples

## 0.3.1

Expand Down
4 changes: 2 additions & 2 deletions demos/examples/DescriptionTooltip.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { TemplateResult } from 'lit'
import { html } from '@hydrofoil/shaperone-wc'
import type { ComponentDecorator } from '@hydrofoil/shaperone-core/models/components'
import { html } from 'shaperone'

Check failure on line 2 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Module '"shaperone"' has no exported member 'html'.

Check failure on line 2 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Module '"shaperone"' has no exported member 'html'.

Check failure on line 2 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Module '"shaperone"' has no exported member 'html'.

Check failure on line 2 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Module '"shaperone"' has no exported member 'html'.

Check failure on line 2 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Module '"shaperone"' has no exported member 'html'.

Check failure on line 2 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Module '"shaperone"' has no exported member 'html'.
import type { ComponentDecorator } from '@shaperone/core/models/components'

Check failure on line 3 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Cannot find module '@shaperone/core/models/components' or its corresponding type declarations.

Check failure on line 3 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Cannot find module '@shaperone/core/models/components' or its corresponding type declarations.

Check failure on line 3 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module '@shaperone/core/models/components' or its corresponding type declarations.

Check failure on line 3 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module '@shaperone/core/models/components' or its corresponding type declarations.

Check failure on line 3 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Cannot find module '@shaperone/core/models/components' or its corresponding type declarations.

Check failure on line 3 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Cannot find module '@shaperone/core/models/components' or its corresponding type declarations.
import type { PropertyShape } from '@rdfine/shacl'

function wrap(shape: PropertyShape, result: TemplateResult) {
Expand All @@ -15,14 +15,14 @@
applicableTo() {
return true
},
decorate(component) {

Check failure on line 18 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'component' implicitly has an 'any' type.

Check failure on line 18 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'component' implicitly has an 'any' type.

Check failure on line 18 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'component' implicitly has an 'any' type.

Check failure on line 18 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'component' implicitly has an 'any' type.

Check failure on line 18 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'component' implicitly has an 'any' type.

Check failure on line 18 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'component' implicitly has an 'any' type.
if ('lazyRender' in component) {
return {
...component,
lazyRender: async () => {
const render = await component.lazyRender()
return function (params, actions) {

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 24 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'params' implicitly has an 'any' type.
return wrap(params.property.shape, render.call(this, params, actions))

Check failure on line 25 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

'this' implicitly has type 'any' because it does not have a type annotation.

Check failure on line 25 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

'this' implicitly has type 'any' because it does not have a type annotation.

Check failure on line 25 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

'this' implicitly has type 'any' because it does not have a type annotation.

Check failure on line 25 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

'this' implicitly has type 'any' because it does not have a type annotation.

Check failure on line 25 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

'this' implicitly has type 'any' because it does not have a type annotation.

Check failure on line 25 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

'this' implicitly has type 'any' because it does not have a type annotation.
}
},
}
Expand All @@ -30,7 +30,7 @@

return {
...component,
render(params, actions) {

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (20)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'params' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'actions' implicitly has an 'any' type.

Check failure on line 33 in demos/examples/DescriptionTooltip.ts

View workflow job for this annotation

GitHub Actions / build (18)

Parameter 'params' implicitly has an 'any' type.
return wrap(params.property.shape, component.render(params, actions))
},
}
Expand Down
6 changes: 3 additions & 3 deletions demos/examples/ErrorSummary/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FocusNodeTemplate } from '@hydrofoil/shaperone-wc/templates.js'
import { decorate } from '@hydrofoil/shaperone-wc/templates.js'
import { html } from '@hydrofoil/shaperone-wc'
import type { FocusNodeTemplate } from 'shaperone/templates.js'

Check failure on line 1 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 1 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 1 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 1 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 1 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (18)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 1 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (18)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.
import { decorate } from 'shaperone/templates.js'

Check failure on line 2 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 2 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (lts/*)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 2 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'shaperone/templates.js'

Check failure on line 2 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 2 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (20)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 2 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'shaperone/templates.js'

Check failure on line 2 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (18)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.

Check failure on line 2 in demos/examples/ErrorSummary/index.ts

View workflow job for this annotation

GitHub Actions / build (18)

Cannot find module 'shaperone/templates.js' or its corresponding type declarations.
import { html } from 'shaperone'
import type { ValidationResult } from '@rdfine/shacl'
import { shrink } from '@zazuko/prefixes/shrink'
import rdf from '@zazuko/env/web.js'
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/InlineNestedShapes/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SingleEditorComponent } from '@hydrofoil/shaperone-wc'
import { html } from '@hydrofoil/shaperone-wc'
import type { SingleEditorComponent } from 'shaperone'
import { html } from 'shaperone'
import { dash } from '@tpluscode/rdf-ns-builders'
import { isResource } from 'is-graph-pointer'

Expand Down
10 changes: 5 additions & 5 deletions demos/examples/LanguageMultiSelect/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { MultiEditorComponent } from '@hydrofoil/shaperone-wc'
import { html } from '@hydrofoil/shaperone-wc'
import type { MultiEditorComponent } from 'shaperone'
import { html } from 'shaperone'
import $rdf from '@zazuko/env/web.js'
import type { MultiEditor, Lazy } from '@hydrofoil/shaperone-core'
import type { MultiEditor, Lazy } from '@shaperone/core'
import { vcard, rdfs } from '@tpluscode/rdf-ns-builders'
import { getLocalizedLabel } from '@rdfjs-elements/lit-helpers'
import { sort } from '@hydrofoil/shaperone-core/lib/components.js'
import type { ShaperoneEnvironment } from '@hydrofoil/shaperone-core/env.js'
import { sort } from '@shaperone/core/lib/components.js'
import type { ShaperoneEnvironment } from '@shaperone/core/env.js'

const editor = $rdf.namedNode('http://example.com/LanguageMultiSelect')

Expand All @@ -13,9 +13,9 @@
editor,
async lazyRender() {
if (theme === 'material') {
await import(/* @vite-ignore */'multiselect-combo-box/theme/material/multiselect-combo-box.js')

Check failure on line 16 in demos/examples/LanguageMultiSelect/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'multiselect-combo-box/theme/material/multiselect-combo-box.js'

Check failure on line 16 in demos/examples/LanguageMultiSelect/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'multiselect-combo-box/theme/material/multiselect-combo-box.js'
} else {
await import(/* @vite-ignore */'multiselect-combo-box/theme/lumo/multiselect-combo-box.js')

Check failure on line 18 in demos/examples/LanguageMultiSelect/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'multiselect-combo-box/theme/lumo/multiselect-combo-box.js'

Check failure on line 18 in demos/examples/LanguageMultiSelect/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'multiselect-combo-box/theme/lumo/multiselect-combo-box.js'
}

return ({ property }, { update }) => {
Expand Down
4 changes: 2 additions & 2 deletions demos/examples/NestedShapesIndividually/components.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { dash, rdfs, schema } from '@tpluscode/rdf-ns-builders'
import type { SingleEditorComponent } from '@hydrofoil/shaperone-wc'
import { html } from '@hydrofoil/shaperone-wc'
import type { SingleEditorComponent } from 'shaperone'
import { html } from 'shaperone'
import type { GraphPointer } from 'clownface'

function label(object?: GraphPointer) {
Expand Down
6 changes: 3 additions & 3 deletions demos/examples/NestedShapesIndividually/renderer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FormTemplate } from '@hydrofoil/shaperone-wc/templates.js'
import { decorate } from '@hydrofoil/shaperone-wc/templates.js'
import { html, css } from '@hydrofoil/shaperone-wc'
import type { FormTemplate } from 'shaperone/templates.js'
import { decorate } from 'shaperone/templates.js'

Check failure on line 2 in demos/examples/NestedShapesIndividually/renderer.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'shaperone/templates.js'

Check failure on line 2 in demos/examples/NestedShapesIndividually/renderer.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'shaperone/templates.js'
import { html, css } from 'shaperone'

export const topmostFocusNodeFormRenderer = decorate((form: FormTemplate): FormTemplate => {
const formTemplate: FormTemplate = (renderer) => {
Expand Down
8 changes: 4 additions & 4 deletions demos/examples/StarRating/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { IconDefinition } from '@fortawesome/fontawesome-common-types'
import type { IconName } from '@fortawesome/fontawesome-svg-core'
import type { SingleEditor, Lazy, SingleEditorComponent } from '@hydrofoil/shaperone-wc'
import { html } from '@hydrofoil/shaperone-wc'
import type { UpdateComponentState } from '@hydrofoil/shaperone-core/models/components'
import type { SingleEditor, Lazy, SingleEditorComponent } from 'shaperone'
import { html } from 'shaperone'
import type { UpdateComponentState } from '@shaperone/core/models/components'
import { schema, xsd } from '@tpluscode/rdf-ns-builders'
import { dash } from '@tpluscode/rdf-ns-builders/loose'
import type { PropertyShape } from '@rdfine/shacl'
import type { ShaperoneEnvironment } from '@hydrofoil/shaperone-core/env.js'
import type { ShaperoneEnvironment } from '@shaperone/core/env.js'
import rdf from '@zazuko/env/web.js'

export interface StarRating {
Expand Down
2 changes: 1 addition & 1 deletion demos/examples/StarRating/star-rating.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable lit-a11y/click-events-have-key-events */
import { css, LitElement } from 'lit'
import { customElement, property } from 'lit/decorators.js'
import { html } from '@hydrofoil/shaperone-wc'
import { html } from 'shaperone'
import { repeat } from 'lit/directives/repeat.js'
import { icon } from '@fortawesome/fontawesome-svg-core'
import { faStar } from '@fortawesome/free-solid-svg-icons'
Expand Down
8 changes: 4 additions & 4 deletions demos/examples/XoneRenderer/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FocusNodeTemplate } from '@hydrofoil/shaperone-wc/templates.js'
import { decorate } from '@hydrofoil/shaperone-wc/templates.js'
import { html } from '@hydrofoil/shaperone-wc'
import type { LogicalConstraint } from '@hydrofoil/shaperone-core/models/forms'
import type { FocusNodeTemplate } from 'shaperone/templates.js'
import { decorate } from 'shaperone/templates.js'

Check failure on line 2 in demos/examples/XoneRenderer/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'shaperone/templates.js'

Check failure on line 2 in demos/examples/XoneRenderer/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unable to resolve path to module 'shaperone/templates.js'
import { html } from 'shaperone'
import type { LogicalConstraint } from '@shaperone/core/models/forms'
import type { Shape } from '@rdfine/shacl'
import type { Term } from '@rdfjs/types'
import { localizedLabel } from '@rdfjs-elements/lit-helpers/localizedLabel.js'
Expand Down
15 changes: 7 additions & 8 deletions demos/examples/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hydrofoil/shaperone-playground-examples",
"name": "@shaperone/playground-examples",
"version": "0.3.1",
"main": "index.js",
"repository": "https://github.com/hypermedia-app/shaperone",
Expand All @@ -8,16 +8,15 @@
"type": "module",
"private": true,
"dependencies": {
"@tpluscode/rdf-ns-builders": "^4.3.0",
"@tpluscode/rdf-ns-builders": "^5",
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"@hydrofoil/shaperone-core": "0.12.1",
"@hydrofoil/shaperone-wc": "0.8.1",
"@zazuko/env": "^2.1.0",
"@rdfjs-elements/lit-helpers": "^0.3.7",
"@shaperone/core": "0.12.1",
"shaperone": "0.8.1",
"@zazuko/env": "^3",
"@rdfjs-elements/lit-helpers": "^0.3.11",
"@zazuko/prefixes": "^2.2.0",
"is-graph-pointer": "^2",
"lit": "^2.0.0",
"multiselect-combo-box": "^3.0.0-alpha.2"
"lit": "^2.0.0"
}
}
2 changes: 1 addition & 1 deletion demos/lit-html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
background-color: #ededed;
}
</style>
<title>@hydrofoil/shaperone lit-html playground</title>
<title>shaperone playground</title>
<script type="module">
import process from "process";
import { Buffer } from "buffer";
Expand Down
Loading
Loading