Commit Graph

437 Commits

Author SHA1 Message Date
Jacob Overgaard
dab3a2b80f upgrade uui-css to 1.2.0-rc.2 2023-03-28 08:41:28 +02:00
Jesper Møller Jensen
e6683d3d73 use uui 1.2.0 rc 2 2023-03-28 14:04:27 +13:00
Jacob Overgaard
3be46dec83 Merge branch 'main' into feature/integrate-uui-modal 2023-03-27 16:21:10 +02:00
Jacob Overgaard
c29390d3f5 add plugin node-resolve to ensure build is not failing 2023-03-27 16:10:19 +02:00
Jacob Overgaard
ed0187f888 upgrade uui to 1.2.0-rc.1 2023-03-23 15:17:08 +01:00
Julia Gru
ef243ef933 Feature/code editor (#607)
* create component

* import styles correctly

* import component

* show code editor element on the template workspace

* wire input event

* sync code property with editor value

* move workers to a separate file

* create class for code editor

* add very simple insert method

* focus after insert

* make scroll bar bit nicer

* add markdown example and fancier template

* make insert work with multiple cursors and selections

* now really make it works with selections and multiple cursors

* map options

* add hack to fix the jumpy cursor

* Observe themes

* add own model for range, return array of ranges from find

* add backoffice-fit dark mode

* add theme story

* add themes folder

* add new methods

insertAtPosition
getValueInRange
select

* add documentation to editor class

* add docs

* rename file

* rename donut files

* cleanup

* add some more imports

* test heap size fix

* heap error test 2

* fix imports

* node fail error test

* rename

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-03-22 10:56:28 +01:00
Łukasz
0c2ca89962 #579 Drop lit-html as direct dependency (#609)
* Drop lit-html as direct dependency

* remove lit-html imports after merge

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-03-22 10:34:19 +01:00
Warren Buckley
61d290668e Update to Storybook 7.0.0-rc.3 2023-03-14 10:23:53 +00:00
Jacob Overgaard
86b6725aa4 Merge remote-tracking branch 'origin/main' into feature/slimmer-libs 2023-03-13 10:20:17 +01:00
Warren Buckley
319d7a7c99 Add Stories for the Shared Components folder (#555)
* Input Color Picker Stories

* Set autodocs to true

* Write story as CSF3 format

* Bit of JSDoc to give some description for autodocs

* Show to use a MDX to override the autodocs generated content - may want to be more specific or show/use different DocBlocks

* umb-input-checkbox-list

* Adds codeblock stories

* Bit of tidy up

* Rewrite umb-body-layout to CSF & move to Components folder

* Group into Components/Inputs

* Culture Select

* Document Picker

* Eye Dropper

* Fix error

* umb-input-language-picker

* input-media-picker

* Empty State

* NOTE: Nothing renders and does not seem to be used anywhere?

* input-multi-url-picker

* input-number-range

* input-radio-button-list

Unable to set selected & value

* input-section-stories

Uses the argTypes to give better controls to play around with story

* input-slider

* Rename to be .element.ts like other files as opposed to -element.ts

* input-toggle stories

* input-user

* input-userr-group stories

* ref-property-editor-ui.stories updated & rewritten to CSF3 style

* Rewrite table stories to CSF3 format and add new story

* tooltip-menu stories

* Fix error with wrong type for ToolTip Menu Item

* Update previous MDX files to use correct import for new doc blocks

* umb-tree story does not display anything

* Tree Item stories

* Stubs variant-selector stories but nothing rendered

* variantable-property stories stub

* export all manifest from each area

* provide document stores + import document manifests

* format

* Update package-lock.json

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-03-09 10:12:31 +01:00
Niels Lyngsø
fdbcf7f630 Merge remote-tracking branch 'origin/main' into docs/add-draft-concept-docs
# Conflicts:
#	src/stories/umb-element.mdx
2023-03-09 09:51:45 +01:00
Jacob Overgaard
23fc67193a install plugin to build declarations for modules 2023-03-07 15:31:15 +01:00
Jacob Overgaard
62f3c2d6fa Feature/server packages v2 (#574)
* new api models

* use new PackageResource

* do not error out on missing default exports (esmodules auto-execute)

* do not check for js extensions (they might have been registered on the client without a js file)

* prepend the api baseurl to any relataive server JS dependencies

* ignore tsbuildinfo

* create base file for tsconfig

* extend from base config and optimise include/exclude paths

* install rollup plugin to handle json files

* use plugin to bundle json files

* call script for cms builds that builds libs

* add rollup config to utils lib

* add a context token to the extension registry instance itself and provide it through BackofficeElement

* add rollup node resolve

* add node resolve

* only include element mixin in element library

* add error description to module load error

* add types to UmbExtensionRegistry token

* set UmbNotificationService as string in its token to avoid minification

* correct comment

* reverse order of checks

* add host to server extensions and support life-cycle check

* add imports

* use lit rather than lit-html

* correct comment

* add PackageManifestModel

* add import

* run libs build for cms

* revert reorder

* use string name for NotificationContext token

* make alias public readonly of UmbContextToken

* remove TODO

* use UmbContextToken::toString() for all stores

* use string alias for contexts

* move default data so we avoid importing a big lit library just to get default data interface

* add rollup to two extra libraries

* make sure we build uui and lit into our libraries for the few cases we import something

* add lockfile

* add separate options for .js files

* add function to install types of module

* add types output

* remove unused tsconfig-base file for now
2023-03-02 20:29:20 +01:00
Jacob Overgaard
b7491fbe0d update to 1.6.1 containing Niels's changes 2023-03-02 13:33:27 +01:00
Niels Lyngsø
17248aa94b Merge remote-tracking branch 'origin/main' into bugfix/document-router
# Conflicts:
#	src/backoffice/settings/languages/repository/language.repository.ts
#	src/backoffice/shared/components/input-language-picker/input-language-picker.element.ts
2023-03-02 11:54:40 +01:00
Niels Lyngsø
b4a49dc8e9 Add forked version of router 2023-03-02 11:49:24 +01:00
Warren Buckley
b81d1e2e33 Update to StoryBook 7.0.0-beta59 - Fix build for Windows due to path stuff #570 (#572)
Update to Storybook 7.0.0-beta.59

https://github.com/storybookjs/storybook/pull/21305
2023-03-02 11:10:40 +01:00
Niels Lyngsø
c7bcac3577 temp solution 2023-03-02 10:10:22 +01:00
dependabot[bot]
bb72eb41e4 Bump msw from 0.49.3 to 1.1.0
Bumps [msw](https://github.com/mswjs/msw) from 0.49.3 to 1.1.0.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mswjs/msw/compare/v0.49.3...v1.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 08:16:55 +00:00
dependabot[bot]
84589e8f83 Bump @typescript-eslint/parser from 5.53.0 to 5.54.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.53.0 to 5.54.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.54.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-03-02 09:15:52 +01:00
dependabot[bot]
f37d17580f Bump prettier from 2.8.3 to 2.8.4
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.3 to 2.8.4.
- [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.3...2.8.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-02 09:15:39 +01:00
Mads Rasmussen
f8f881083f Create package-lock.json 2023-03-01 16:55:01 +01:00
Mads Rasmussen
2488c21d10 Merge branch 'main' into docs/add-draft-concept-docs 2023-03-01 16:47:42 +01:00
Jacob Overgaard
f4a992668c update lockfile 2023-02-27 14:42:23 +01:00
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
Mads Rasmussen
d04ee13dc3 fresh package lock file. It fixes the js error with syntax highlighting in mdx files 2023-02-23 16:50:18 +01:00
Warren Buckley
036e296ae6 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
2023-02-22 17:35:18 +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
f836800220 lockfile 2023-01-23 16:13:33 +01:00
Jacob Overgaard
0de2f9edde add initial library files to backend-api 2023-01-20 13:46:33 +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