Commit Graph

139 Commits

Author SHA1 Message Date
Jacob Overgaard
e1f9219b93 V16: Updates openapi-ts client and deprecates tryExecuteAndNotify (#18939)
* build(deps-dev): bump @hey-api/openapi-ts from 0.61.3 to 0.66.1

* docs: adds information on how to configure new fetch-client

* feat: adds preliminary umb-prefixed error types

* fix: uses correct import path

* docs: jsdocs

* feat: optimises error reporting

* feat: maps functions into separate controllers

* feat: adds color to peek notification

* feat: moves the internal api interceptors controller and adds more interceptors

* feat: adds host to params

* feat: marks certain functions as deprecated

* feat: maps api errors to UmbErrors

* chore: removes deprecation console logs

* chore: allows any

* feat: maps xhr errors to umb errors

* feat: adds host to tryExecute

* feat: adjusts deprecation notifices and checks

* chore: adjusts deprecation notices

* chore: add .warn() to deprecation

* feat: updates login app repository

* feat: changes all `tryExecuteAndNotify` calls to `tryExecute`

* feat: copies helper functions to resources package and deprecates in notification package

* chore: removes unused imports

* feat: adds exports

* chore: removes controller that is no longer useful

* feat: marks _peekError as protected

* feat: adds support for error notifications (and to ignore them) and to cancel an ongoing request

* feat: eliminates duplicated logic in xhr controller

* feat: touches only the cloned response to allow interceptors downstream to unwrap the body

* feat: stores the host for async context

* feat: disables automatic notifications for validation data source

* feat: disables notifications where they are otherwise handled or ignored

* feat: removes deprecated code

* feat: eliminates a controller that only had a static method

* docs: adds jsdocs

* docs: adds jsdocs

* docs: adds jsdocs

* feat: returns umb-notifications response without modifying it

* feat: eliminates dependency on generated `ProblemDetails` type

* feat: eliminates dependence on generated `ApiError` type

* feat: eliminates dependence on generated `CancelError` type

* fix: removes dependency on CancelablePromise
2025-04-07 22:54:51 +01:00
Jacob Overgaard
bf89eae07f V15: Block package should not import from itself (#18902)
* fix: avoids circular dependencies by realising the 'block' package was importing from itself

* chore: lowers requirement to 9 after fixes

* chore: removes unused file
2025-04-01 12:02:35 +00:00
Niels Lyngsø
7200b7b623 Bugfix: #18473 (#18765)
* add more icons

* add group id for inspection

* make outline style to make it not look disabled

* ensure that inherited has entries

* ensure current route is updated accordingly

* data marks

* shared across cultures tag

* fix sidebar group headline size
2025-03-31 14:18:47 +00:00
Niels Lyngsø
3e835cd949 set circular dependency limit to 9 (#18786) 2025-03-31 13:55:26 +02:00
Jacob Overgaard
63113c4552 V15: New dropzone component available for the Backoffice (#18753)
* create a symlink between local Client .vscode snippets and global snippets for ease of use

* fix: no need to specify `Element` in the snippet as that is pulled from the filename

Because of our convention with `x.element.ts` you would have ended up with `UmbXElementElement`

* feat: adds new component `umb-input-dropzone`

* docs(storybook): more stories

* feat: construct the temporary files centrally along with an `AbortController` and use its signal

* feat: makes UmbInputDropzone form aware

* feat: introduces a change event

* chore: temporary changes before changing upload field

* feat: adds default slot

* docs: adds jsdocs

* feat: adds more properties

* feat: adds dashed styling

* feat: adds multiple support

* feat: allows to cancel file

* feat: separate **cancel** and **remove**

* fix stylibg

* move dropzone element

* move input-dropzone into dropzone package

* feat: introduces a 'dropzone' package

* import for backward compatibility

* remove ambigious export

* reexport everything from dropzone

* fix import

* cleanup test files

* use correct import paths

* test: make sure folder exists before writing to it

* adds export for modals

* adds entrypoint for dropzone package

* use the AbortController directly on the temporary file object

* uses correct icon name

* feat: adds ability to remove all files and cancel the request

* feat: adds styling for the uploader

and enables it to work in multiple mode with classes over id's

* do not let the content exceed its boundaries

* feat: formats progress with 2 decimals

* feat: formats with 0 decimals

* fix: returns cancel error

* fix: maps cancel errors back to the uploadable item

* fix: do not proceed with media items if the request was cancelled

* chore: mark exports from media <- dropzone as deprecated

* fix: use correct attribute and remove a todo with localizations

* fix: use correct attribute and remove a todo with localizations

* fix: allow to specify parent through attribute

* feat: align attribute `disableFolderUpload` between dropzone components
2025-03-24 13:17:48 +00:00
Jacob Overgaard
7a7602f1bb V15: Update Backoffice NPM dependencies (#18376)
* build(deps-dev): update storybook from 8.4.7 to 8.5.6

* build(deps): update tiptap from 2.11.2 to 2.11.5

* build(deps-dev): update eslint stuff to latest

* build(deps): update element-internals-polyfill from 1.3.12 to 1.3.13

* build(deps): update marked from 15.0.6 to 15.0.7

* build(deps-dev): update vite from 5.4.14 to 6.1.0

* build(deps-dev): update globals to 15.15.0 (eslint dependency)

* build(deps): update icon libraries to latest

* build(deps-dev): update prettier from 3.4.2 to 3.5.1

* chore: generate consts

* build(deps-dev): update test-related libraries

* feat: copy over code from the tiny base64-js library because it is not exported as esm and has not been updated in 4 years

* build(deps-dev): remove dependency from base64-js

* build(deps-dev): upgrade rollup dependencies

* test: disable tests for tinyce

* build(deps-dev): update @babel/core to 7.26.9

* build(deps): update storybook to latest

* build(deps-dev): update types

* build(deps-dev): update typedoc from 0.27.6 to 0.27.7

* build(deps-dev): update @rollup/plugin-commonjs to latest

* build(deps): import tiny as default and re-export as module and default to make everyone happy (and avoid commonjs pitfalls)

* build: remove dependency on commonjs to build externals

* build(deps-dev): uninstall @rollup/plugin-commonjs as it is no longer needed

* test: reenable tinymce tests

* fix: sets a default label

this mistake was highlighted by the test runner

* test: reenable tinymce tests

* build: ignores autogenerated test file

* build: adds github error logging to icon generator

* build: log as error

* build: adds tests for generate:* scripts

* build: optimises icons with svgo to remove useless things like comments

this also ensures that icons are unchanged when we upgrade icon library packages as they would normally include things like versions as comments in the files
2025-02-20 10:29:54 +00:00
Niels Lyngsø
e05eb849c0 update script + remove empty lines 2025-01-29 13:59:54 +01:00
Niels Lyngsø
7cd1c75845 deprecation note 2025-01-29 13:56:29 +01:00
Niels Lyngsø
fccd203bdc refactor to use hidden as the property for legacy and internal icons 2025-01-29 13:55:01 +01:00
Jacob Overgaard
c8547d9ff0 Build: Detect circular dependencies with Madge (#17924)
* feat: adds script to run madge in a CI environment

* build: adds check for circular dependencies

* build: move actions higher up

* build: only print annotation once

* build: make script not fail CI until dependencies are fixed
2025-01-15 09:19:43 +00:00
Niels Lyngsø
45603e2689 rule to accept element base for abstract element class names (#17969) 2025-01-14 08:59:41 +01:00
Niels Lyngsø
3caffa2756 Ensure all UMB_ constants is exported (#17683)
* export consts

* remove lexer

* init work on test for all consts to be exported

* temporary solution to working test

* fix test

* fix one consts

* update package-lock

* remove imports

* fix auto generation of test

* correct test

* important mistake correction

* fix workspace

* fix webhooks

* fix users

* UMB_CREATE_USER_CLIENT_CREDENTIAL_MODAL_ALIAS

* fix user group

* fix tree const exports

* tiptap const exports

* fix templates consts export

* tags

* stylesheets

* static files

* settings

* static file system

* section

* search

* scripts

* fix tsc

* relation

* relation-type

* recycle bin

* property type

* picker

* partial views

* tsc corrections

* fix circular

* package

* member

* member type

* move constants to constants file

* member group + documnet type

* media

* media-type

* revert tsconfig change

* log viewer

* language

* imaging

* healt check

* entity actions

* user permissions

* adjust test text

* document

* update consts

* document type etc

* blueprint

* dictionary

* data-type

* current-user

* culture

* content-type

* circular dependency

* block-list

* block-grid

* fix type import

* auto lint fixes

* fix tsc

* update test

* make sure always to call check-const-generation

* fix circular dependencies

* consts for content package
2024-12-04 10:39:06 +01:00
Jacob Overgaard
5856fd9612 V15: npm updates 2024-11-15 (#17545)
* build(deps): bump storybook from 8.3.5 to 8.4.4

* reenable public folder (with msw file) for storybook

* build(deps-dev): bump vite from 5.4.6 to 5.4.11

* build(deps-dev): bump babel and rollup

* build(deps-dev): bump typedoc from 0.26.5 to 0.26.11

* build(deps-dev): bump @hey-api/openapi-ts from 0.52.11 to 0.55.3

regenerated all models and migrated the config

* build(deps-dev): bump eslint from 9.7.0 to 9.14.0 including related deps

* build(deps-dev): bump all @types packages

* build(deps-dev): bump lucide to 0.459.0 and simple-icons to 13.16.0

regenerate icons:

- renamed `box-select` to `square-dashed`

* build(deps): bump marked from 14.1.0 to 15.0.0

* build(deps): bump monaco-editor from 0.50.0 to 0.52.0

* build(deps): bump dumpurify from 3.1.6 to 3.2.0

* build(deps): make changes based on the dompurify upgrade where types are now an inherent part of the package

* build(deps): bump diff from 5.2.0 to 7.0.0

* build(deps): bump element-internals-polyfill from 1.3.11 to 1.3.12

* build(deps): bump lit from 3.2.0 to 3.2.1

* build(deps-dev): bump globals from 15.8.0 to 15.12.0 (eslint dependency)

* build(deps-dev): bump storybook dependencies

* build(deps-dev): bump @web/dev-server deps

* build(deps-dev): bump typescript from 5.5.3 to 5.6.3

* build(deps): bump uuid from 10.0.0 to 11.0.3 thereby eliminating the @types/uuid module

* build(deps): bump tinymce-i18n from 24.7.15 to 24.11.11

* build(deps): bump all deps to latest and use backoffice global types for extension manifests

* chore: change import path

* build(deps-dev): bump rollup/plugin-commonjs to 26.0.3 for compatibility reasons

* feat: replace outdated 'webworker-loader' with manual paths to monaco's web workers since they are esmodules anyway

* build(deps-dev): bump storybook from 8.4.4 to 8.4.5

* build(deps): bump tiptap from 2.9.1 to 2.10.2

* build(deps): bump dompurify from 3.2.0 to 3.2.1

* build(deps): bump tinymce-i18n from 24.11.11 to 24.11.25

* build(deps): bump static icons

* build(deps): bump marked from 15.0.0 to 15.0.2

* build(deps-dev): bump eslint + deps

* build(deps-dev): bump vite + rollup dependencies

* build(deps-dev): bump @playwright/test from 1.48.2 to 1.49.0

* build(deps-dev): bump @hey-api/openapi-ts from 0.55.3 to 0.57.1

generated new services

* build(deps-dev): bump @types/mocha

* build(deps): bump typescript from 5.6.3 to 5.7.2
2024-11-25 16:47:13 +00:00
Jacob Overgaard
396fd6c3e4 Merge branch 'release/15.0' 2024-10-11 08:34:48 +02:00
Mads Rasmussen
11f69be335 Hotfix: Expose global types (#2442)
* add script

* run script post build

* remove unused script

* add types to root import

* add util

* build to packages folder

* Update global-types.js

* only include js files in importmap
2024-10-11 08:22:51 +02:00
Niels Lyngsø
6131d739ed improve generation feedback 2024-10-07 11:26:49 +02:00
Lee Kelleher
4d17c8144a Icons tidy-up (#2317)
- Wired up legacy icon paths
- Upgraded Lucide npm pkg
- Fixed Windows bug in generate script
2024-09-19 16:10:27 +02:00
Niels Lyngsø
9e5030ef86 fix json schema 2024-09-15 20:50:43 +02:00
Niels Lyngsø
c69f30c3c8 moving json schema out of extension-registry 2024-09-14 22:30:10 +02:00
Jacob Overgaard
e9df6422c9 Merge branch 'main' into v15/dev 2024-09-13 14:00:40 +02:00
Jacob Overgaard
259157de19 build: set modlue to "esnext" to support all generators and bundling mode (nodenext does not work for our modules) 2024-09-12 13:48:40 +02:00
Jacob Overgaard
eed53fba54 build: update the tsconfig generator 2024-09-12 13:27:34 +02:00
Jacob Overgaard
5eeb552bc3 fix: do not send invalid argument 2024-07-25 17:40:12 +02:00
Jacob Overgaard
d74075d996 Merge branch 'main' into v14/chore/check-paths-in-dist-cms 2024-07-12 13:55:46 +02:00
Jacob Overgaard
397fc99aba test: add type mapping to local rule 2024-07-10 14:01:49 +02:00
Jacob Overgaard
b848ea0cbf Merge branch 'main' into v14/chore/check-paths-in-dist-cms 2024-07-03 16:17:31 +02:00
Jacob Overgaard
f4e171a796 rearrange the flow a bit 2024-07-03 15:54:52 +02:00
leekelleher
dc88456190 Regenerated code from OpenAPI spec
+post-upgrade config and amends
2024-07-03 12:48:32 +01:00
Jacob Overgaard
5ff3a01dee build: try and map the found files back to the src folder 2024-07-03 12:59:11 +02:00
Jacob Overgaard
bf60fe90ba build: change log type to error 2024-07-03 12:05:08 +02:00
Jacob Overgaard
923f219f24 empty outdir before writing icons 2024-07-03 11:30:45 +02:00
Jacob Overgaard
1514f2434d fix deprecation for local rule 2024-07-02 11:36:06 +02:00
Jacob Overgaard
77a0983c8e Merge remote-tracking branch 'origin' into v14/chore/implicit-overwrite 2024-06-24 10:51:35 +02:00
Niels Lyngsø
8ed801331a adding override terms 2024-06-21 10:54:17 +02:00
Niels Lyngsø
384061f4d2 helper script 2024-06-21 10:32:42 +02:00
Niels Lyngsø
5832fbfe2f enforce override 2024-06-21 08:19:35 +02:00
Mads Rasmussen
8ce03ce719 Update index.js 2024-06-20 22:18:39 +02:00
Mads Rasmussen
ce7ed7ed91 generate icon map outside icons folder 2024-06-20 19:54:01 +02:00
Mads Rasmussen
ec011dd074 update script to use dynamic import of icons 2024-06-20 19:47:54 +02:00
Mads Rasmussen
00b8b46a7e Merge branch 'main' into chore/no-relative-import-to-import-map-module 2024-05-29 15:03:42 +02:00
Mads Rasmussen
f8ca6d6750 generate the list based on folders 2024-05-29 14:49:22 +02:00
Jacob Overgaard
78e92e9c39 build: make sure the unused-language-keys.js script only looks at files 2024-05-29 13:27:39 +02:00
Mads Rasmussen
203a8b9efb exclude tests and stories 2024-05-29 13:02:20 +02:00
Mads Rasmussen
b46e276ecf implement interim eslint rule 2024-05-29 09:55:48 +02:00
Mads Rasmussen
768d03a4b9 update tsconfig in the correct place + enlarge the warning 2024-05-08 16:11:39 +02:00
Jacob Overgaard
718ef4aa1e add simple script to check how many variables from the main language is in use at the moment 2024-05-06 10:17:37 +02:00
Jacob Overgaard
d62bfb8fde add script to compare language files 2024-05-06 10:17:37 +02:00
Niels Lyngsø
53018f6a41 icon picker 2024-04-19 10:20:30 +02:00
Niels Lyngsø
86635eb597 icons extension + icons registration 2024-04-18 14:03:58 +02:00
Mads Rasmussen
f53486cc71 rename resource to service 2024-04-10 16:03:20 +02:00