Commit Graph

398 Commits

Author SHA1 Message Date
Jacob Overgaard
30189bc4ff Update to Node 18 (#550)
* update to Node 18 (latest LTS) and add .nvmrc for CLI instructions

* update vite to latest minor

* update github workflows to Node 18.x

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-02-24 14:13:23 +01:00
Warren Buckley
fad80b4625 Storybook V7 Upgrade (#549)
* sb@next upgrade --prerelease

Run the storybook upgrade command to get 7.0.0 beta 53 - From the community Discord to try & get MDX code syntax working

* Storybook did not boot due to duplicate story IDs

Fix stories that had duplicate IDs - clearly copy/paste error

* Convert storybook.js to TypeScript

* WIP in trying to get the MDX files happy & working

* fresh package lock file. It fixes the js error with syntax highlighting in mdx files

* add code language to examples

* remove .stories from mdx files. It can cause problems

* story store is now the default

* Put the content of the ContextAPI MDX back & update codefences with typescript lang

* Put GettingStarted.mdx content back to include links

* Rename to .ts file extension

* Update MDX codefences to use typescript lang

* Fix order of stories and don't auto generate docs for every story - its tooooo much

* Fixup links to other MDX docs pages from Getting Started

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-02-24 13:53:03 +01:00
Niels Lyngsø
818bcb35bb Feature/document using content api (#513)
* out comment temprorary for development

* initial prep

* comment

* change port number for dev generate api

* generated new apis

* document-type repository

* rename to item

* rename to document

* use ItemType

* not name detail for full models

* correct token

* imports

* correct imports

* use DocumentTypeTreeItem

* mega type adapt commit

* move DataType import

* rename document detail store

* add document

* new mock data

* partialUpdateFrozenArray

* imports

* document context work

* document and document type in context

* data-type stores + data-sources

* byKey document + data-type

* remove type

* comment

* data-type repository

* data-type context adjustments

* data-type data observable

* fix model import

* use ContentTypeCompositionType

* correct mock data

* .

* split treedata / data

* correct mock endpoints

* new models

* update model usage

* correct models

* imports

* correct models

* update model imports

* update models

* update type

* update docuemnt models

* use DocumentModel

* DocumentModel

* import lit/decorators.js

* lint fixes

* remove console.logs

* new up router slot

* set hasChildren to false

* fix hos argument + add todo to revisit this code

* add todo

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-02-13 12:33:31 +00:00
Jacob Overgaard
8cada585ff add logic to handle image imports in web-test-runner 2023-02-10 11:16:55 +01:00
dependabot[bot]
71cf139c21 Bump @storybook/builder-vite from 0.2.7 to 0.3.0
Bumps [@storybook/builder-vite](https://github.com/storybookjs/builder-vite/tree/HEAD/packages/builder-vite) from 0.2.7 to 0.3.0.
- [Release notes](https://github.com/storybookjs/builder-vite/releases)
- [Commits](https://github.com/storybookjs/builder-vite/commits/v0.3.0/packages/builder-vite)

---
updated-dependencies:
- dependency-name: "@storybook/builder-vite"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-08 10:10:09 +01:00
Jacob Overgaard
270ac26db3 install new version of uui 2023-02-08 09:58:02 +01:00
dependabot[bot]
092997cb38 Bump @typescript-eslint/parser from 5.48.2 to 5.50.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.48.2 to 5.50.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.50.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-08 09:56:26 +01:00
Niels Lyngsø
868e86f480 Merge pull request #498 from umbraco/dependabot/npm_and_yarn/playwright/test-1.30.0 2023-02-03 14:43:44 +01:00
Niels Lyngsø
482175bc35 Merge pull request #500 from umbraco/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.50.0 2023-02-03 14:43:14 +01:00
dependabot[bot]
23e5e10947 Bump @typescript-eslint/eslint-plugin from 5.48.2 to 5.50.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.48.2 to 5.50.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.50.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 18:05:33 +00:00
dependabot[bot]
49bf819625 Bump typescript from 4.9.4 to 4.9.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.4 to 4.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.9.4...v4.9.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 18:04:07 +00:00
dependabot[bot]
aadc5f5ad8 Bump @playwright/test from 1.29.2 to 1.30.0
Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.29.2 to 1.30.0.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.29.2...v1.30.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 18:03:06 +00:00
Jacob Overgaard
43e9514dbf correct path for api models 2023-01-25 12:56:24 +01:00
Jacob Overgaard
13eb5bcc6f combine e2e tests 2023-01-24 13:49:16 +01:00
Jacob Overgaard
3530fefa09 lint apps folder 2023-01-24 10:32:53 +01:00
Jacob Overgaard
8f1460eb4d run eslint for libs 2023-01-24 09:00:42 +01:00
Jacob Overgaard
0de2f9edde add initial library files to backend-api 2023-01-20 13:46:33 +01:00
Jacob Overgaard
316bfcb83e move backend-api to its own lib folder 2023-01-20 11:35:23 +01:00
Jacob Overgaard
e0ae629f83 use lodash-es instead of lodash to fix failing test (and enable better treeshaking) 2023-01-18 11:18:38 +01:00
Jacob Overgaard
69a806d83c Merge pull request #421 from umbraco/dependabot/npm_and_yarn/msw-storybook-addon-1.7.0
Bump msw-storybook-addon from 1.6.3 to 1.7.0
2023-01-18 09:08:26 +01:00
Jacob Overgaard
b8c2de33d4 Merge pull request #419 from umbraco/dependabot/npm_and_yarn/element-internals-polyfill-1.1.19
Bump element-internals-polyfill from 1.1.18 to 1.1.19
2023-01-17 16:42:50 +01:00
Jacob Overgaard
9f07e4e9b3 Merge pull request #420 from umbraco/dependabot/npm_and_yarn/prettier-2.8.3
Bump prettier from 2.8.2 to 2.8.3
2023-01-17 16:40:42 +01:00
dependabot[bot]
60a2d348e1 Bump msw-storybook-addon from 1.6.3 to 1.7.0
Bumps [msw-storybook-addon](https://github.com/mswjs/msw-storybook-addon/tree/HEAD/packages/msw-addon) from 1.6.3 to 1.7.0.
- [Release notes](https://github.com/mswjs/msw-storybook-addon/releases)
- [Commits](https://github.com/mswjs/msw-storybook-addon/commits/v1.7.0/packages/msw-addon)

---
updated-dependencies:
- dependency-name: msw-storybook-addon
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 09:59:54 +00:00
dependabot[bot]
117e88d595 Bump prettier from 2.8.2 to 2.8.3
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.2 to 2.8.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.2...2.8.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 09:59:13 +00:00
dependabot[bot]
0cc08785ad Bump element-internals-polyfill from 1.1.18 to 1.1.19
Bumps [element-internals-polyfill](https://github.com/calebdwilliams/element-internals-polyfill) from 1.1.18 to 1.1.19.
- [Release notes](https://github.com/calebdwilliams/element-internals-polyfill/releases)
- [Changelog](https://github.com/calebdwilliams/element-internals-polyfill/blob/main/CHANGELOG.md)
- [Commits](https://github.com/calebdwilliams/element-internals-polyfill/compare/v1.1.18...v1.1.19)

---
updated-dependencies:
- dependency-name: element-internals-polyfill
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 09:58:16 +00:00
dependabot[bot]
e31e777f90 Bump eslint from 8.31.0 to 8.32.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.31.0 to 8.32.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.31.0...v8.32.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 09:57:22 +00:00
Niels Lyngsø
a63bb186d7 Merge remote-tracking branch 'origin/main' into dependabot/npm_and_yarn/eslint-plugin-import-2.27.4 2023-01-13 20:10:43 +01:00
dependabot[bot]
fd0a543f9c Bump eslint-plugin-import from 2.26.0 to 2.27.4
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.26.0 to 2.27.4.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.26.0...v2.27.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 19:07:32 +00:00
Niels Lyngsø
8ca9810041 Merge pull request #414 from umbraco/dependabot/npm_and_yarn/lit-2.6.1 2023-01-13 20:07:07 +01:00
Niels Lyngsø
3e2de23429 Merge pull request #413 from umbraco/dependabot/npm_and_yarn/lit-html-2.6.1 2023-01-13 20:06:47 +01:00
dependabot[bot]
2dffb3e89a Bump lit from 2.6.0 to 2.6.1
Bumps [lit](https://github.com/lit/lit/tree/HEAD/packages/lit) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/lit/lit/releases)
- [Changelog](https://github.com/lit/lit/blob/main/packages/lit/CHANGELOG.md)
- [Commits](https://github.com/lit/lit/commits/lit@2.6.1/packages/lit)

---
updated-dependencies:
- dependency-name: lit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 18:12:04 +00:00
dependabot[bot]
20c8cb8c62 Bump lit-html from 2.6.0 to 2.6.1
Bumps [lit-html](https://github.com/lit/lit/tree/HEAD/packages/lit-html) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/lit/lit/releases)
- [Changelog](https://github.com/lit/lit/blob/main/packages/lit-html/CHANGELOG.md)
- [Commits](https://github.com/lit/lit/commits/lit-html@2.6.1/packages/lit-html)

---
updated-dependencies:
- dependency-name: lit-html
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 18:10:50 +00:00
dependabot[bot]
9fce33003e Bump eslint-plugin-lit from 1.8.0 to 1.8.2
Bumps [eslint-plugin-lit](https://github.com/43081j/eslint-plugin-lit) from 1.8.0 to 1.8.2.
- [Release notes](https://github.com/43081j/eslint-plugin-lit/releases)
- [Commits](https://github.com/43081j/eslint-plugin-lit/compare/v1.8.0...v1.8.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-lit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 18:09:16 +00:00
Jacob Overgaard
efeb2302b3 Merge remote-tracking branch 'origin/main' into feature/eslint-update 2023-01-12 09:22:41 +01:00
Niels Lyngsø
82ca73c2bd Merge pull request #399 from umbraco/dependabot/npm_and_yarn/eslint-plugin-lit-1.8.0 2023-01-12 09:14:08 +01:00
Niels Lyngsø
0ab711aa55 Merge pull request #396 from umbraco/dependabot/npm_and_yarn/umbraco-ui/uui-1.1.0 2023-01-12 09:01:22 +01:00
dependabot[bot]
b55723eac5 Bump eslint-plugin-lit from 1.7.2 to 1.8.0
Bumps [eslint-plugin-lit](https://github.com/43081j/eslint-plugin-lit) from 1.7.2 to 1.8.0.
- [Release notes](https://github.com/43081j/eslint-plugin-lit/releases)
- [Commits](https://github.com/43081j/eslint-plugin-lit/compare/v1.7.2...v1.8.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-lit
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-12 07:57:12 +00:00
dependabot[bot]
ab6b9554ab Bump @umbraco-ui/uui from 1.0.2 to 1.1.0
Bumps [@umbraco-ui/uui](https://github.com/umbraco/Umbraco.UI/tree/HEAD/packages/uui) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/umbraco/Umbraco.UI/releases)
- [Changelog](https://github.com/umbraco/Umbraco.UI/blob/v1/contrib/packages/uui/CHANGELOG.md)
- [Commits](https://github.com/umbraco/Umbraco.UI/commits/@umbraco-ui/uui@1.1.0/packages/uui)

---
updated-dependencies:
- dependency-name: "@umbraco-ui/uui"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 18:11:38 +00:00
dependabot[bot]
f4ee2dcd69 Bump eslint-import-resolver-typescript from 3.5.2 to 3.5.3
Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v3.5.2...v3.5.3)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 18:10:47 +00:00
Jacob Overgaard
fa8f7e9832 update eslint plugins and install eslint-plugin-wc 2023-01-11 16:22:42 +01:00
dependabot[bot]
592abf1536 Bump vite from 3.2.4 to 4.0.4
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.2.4 to 4.0.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.0.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 13:11:16 +01:00
Niels Lyngsø
0978b59873 Merge branch 'main' into feature/refactor-RxJS-stores 2023-01-10 21:31:31 +01:00
Niels Lyngsø
8a1a7bffe0 Merge pull request #388 from umbraco/dependabot/npm_and_yarn/lit-2.6.0 2023-01-10 21:12:14 +01:00
Niels Lyngsø
d3403e9834 Merge pull request #385 from umbraco/dependabot/npm_and_yarn/lit-html-2.6.0 2023-01-10 21:11:54 +01:00
Niels Lyngsø
bd8e44568d Merge branch 'main' into dependabot/npm_and_yarn/storybook/builder-vite-0.2.7 2023-01-10 20:59:03 +01:00
dependabot[bot]
e793403c25 Bump lit from 2.5.0 to 2.6.0
Bumps [lit](https://github.com/lit/lit/tree/HEAD/packages/lit) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/lit/lit/releases)
- [Changelog](https://github.com/lit/lit/blob/main/packages/lit/CHANGELOG.md)
- [Commits](https://github.com/lit/lit/commits/lit@2.6.0/packages/lit)

---
updated-dependencies:
- dependency-name: lit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-10 19:15:22 +00:00
dependabot[bot]
2b6ff886af Bump @storybook/builder-vite from 0.2.6 to 0.2.7
Bumps [@storybook/builder-vite](https://github.com/storybookjs/builder-vite/tree/HEAD/packages/builder-vite) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/storybookjs/builder-vite/releases)
- [Commits](https://github.com/storybookjs/builder-vite/commits/v0.2.7/packages/builder-vite)

---
updated-dependencies:
- dependency-name: "@storybook/builder-vite"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-10 19:14:51 +00:00
dependabot[bot]
7fa30f7798 Bump prettier from 2.8.1 to 2.8.2
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.1...2.8.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-10 19:14:21 +00:00
dependabot[bot]
74be5c3d48 Bump lit-html from 2.5.0 to 2.6.0
Bumps [lit-html](https://github.com/lit/lit/tree/HEAD/packages/lit-html) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/lit/lit/releases)
- [Changelog](https://github.com/lit/lit/blob/main/packages/lit-html/CHANGELOG.md)
- [Commits](https://github.com/lit/lit/commits/lit-html@2.6.0/packages/lit-html)

---
updated-dependencies:
- dependency-name: lit-html
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-10 19:13:43 +00:00
Niels Lyngsø
64992a7a2c Merge branch 'main' into feature/refactor-RxJS-stores 2023-01-10 13:41:23 +01:00