Commit Graph

34091 Commits

Author SHA1 Message Date
Bjarke Berg
2f388b3f91 Fixes https://github.com/umbraco/Umbraco-CMS/issues/17614 (#17687) 2024-12-03 13:50:36 +01:00
Mads Rasmussen
437fcba4e5 fix: store first rte value (#17699) 2024-12-02 21:23:39 +01:00
Mads Rasmussen
8141b6b07e Hotfix: unnecessary Discard Changes dialog for RTEs (#17692)
* remove code duplication

* remove unused code

* allow value to be undefined

* dot not build model if we have no markup

* do update the layout value if we don't get any layouts

* reset internals if there are no value

* clear value if tiny mce doesn't have any markup

* clear value if tip tap doesn't have any markup

* add method to check if tip tap element is empty

* use method to check for empty tip tap
2024-12-02 14:48:28 +01:00
Jacob Overgaard
ceafa83cc7 build: update the repository link 2024-11-29 15:36:28 +01:00
Mads Rasmussen
5b1d72e802 Chore: Enable MSW in web/test-runner + add tests for state manager + isCurrentUser util (#17584)
* add tests for UmbEntityWorkspaceDataManager

* add tests for umbObjectToPropertyValueArray

* remove unused

* split into individual files

* get from window

* fix import

* setup msw

* temp removal of different mock states

* add service worker

* add tests for isCurrentUser util

* Update package.json

* silence more text logs

* fix race condition

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2024-11-29 13:21:00 +01:00
Mads Rasmussen
c4b0bdeadf Bugfix: Redirect when server file is renamed (#17663)
* make args protected + type generic

* add rename event

* get new name and unique from modal

* dispatch event when file is renamed

* get unique from entity context

* poc redirect after rename

* move logic to controller

* dont render code editor if content is undefined

* remove unused styling

* set unique after create

* use replace state

* set additionalOptions for rename action

* Update workspace-redirect.controller.ts

* add focus to name input

* add rename redirect controller

* clean up

* split render methods

* Update script-workspace.context.ts

* implement EntityDetailWorkspaceBase for stylesheets

* remove unused

* don't render code editor if there is no content

* add rename redirect controller

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2024-11-29 13:12:31 +01:00
Niels Lyngsø
3dbb626cfb Merge branch 'release/15.1' into v15/dev 2024-11-27 19:39:25 +01:00
Niels Lyngsø
7177a29b5d build(deps): update @umbraco-ui/uui from 1.12.1 to 1.12.2 (#17657)
* update uui

* remove temp fix

* revert mockServiceWorker change

* fix document collection paths
2024-11-27 17:18:44 +01:00
Jacob Overgaard
44ec0e66d9 V15: Debug missing contexts (#17645)
* fix: wait a frame before calculating events, which allows the debug callback to "fill up" the instances map

* Revert "fix: wait a frame before calculating events, which allows the debug callback to "fill up" the instances map"

This reverts commit a8a2bdbb053866ee88d35d076dd897bdf0a65826.

* fix: assign the inner object (`event.instances`) directly to a state and perform the "massaging" only when it updates

this ensures that any live changes to the inner object are reflected in the UI
2024-11-27 12:22:36 +01:00
Lee Kelleher
4f3f2efbdc Adds UFM Link component (#17636)
to support the Multi-URL Picker editor.
2024-11-26 14:45:09 +01:00
Lee Kelleher
bea12b7a50 UFM: ContentName, adds support for Media Picker (#17635) 2024-11-26 14:34:40 +01:00
Bjarke Berg
2846325a8a Fixes routing issues (#17572)
* Child of second root should also hide root path and backoffice needs to show all domains for each language.

* Fixes routing issues based on findings https://github.com/umbraco/Umbraco-CMS/pull/17572#issuecomment-2486219574

* Revert "Fixes routing issues based on findings https://github.com/umbraco/Umbraco-CMS/pull/17572#issuecomment-2486219574"

This reverts commit ba7fb5cc904fbe602450ac109e1821282b7f69d6.

* Fix urls of descendants of non-first roots do not show the root urlsegment when HideTopLevel is true
2024-11-26 09:59:09 +01:00
Bjarke Berg
29837fe59d Fixes routing issues (#17572)
* Child of second root should also hide root path and backoffice needs to show all domains for each language.

* Fixes routing issues based on findings https://github.com/umbraco/Umbraco-CMS/pull/17572#issuecomment-2486219574

* Revert "Fixes routing issues based on findings https://github.com/umbraco/Umbraco-CMS/pull/17572#issuecomment-2486219574"

This reverts commit ba7fb5cc904fbe602450ac109e1821282b7f69d6.

* Fix urls of descendants of non-first roots do not show the root urlsegment when HideTopLevel is true
2024-11-26 09:55:51 +01:00
Jacob Overgaard
72596bd853 fix: should check specifically for if pathname is undefined or empty 2024-11-26 09:09:48 +01:00
Jacob Overgaard
134ec77da0 fix: should check specifically for if pathname is undefined or empty 2024-11-26 09:08:22 +01:00
Mads Rasmussen
b6551d63b7 fix merge error 2024-11-26 08:38:21 +01:00
Mads Rasmussen
e42fa14da5 generate management api types 2024-11-26 08:38:10 +01:00
Mads Rasmussen
16a5f8d138 Media Picker: only allow navigating to folders/media with children + other fixes (#17617)
* only allow navigating into folders or item with children

* export media search provider

* mark search on media item repo as deprecated

* use media search provider for searching

* rename method

* change the look of the upload button

* only render checkbox if we are not in the root

* clear search when navigating

* add type

* set value so it gets updated when cleared

* default to search within an item

* hide breadcrumb if searching in root

* scope search on server

* Update media-picker-modal.element.ts

* hide breadcrumb when doing a global search within another item

* add selection mode

* remove unused state

* handle start node when searching

* fix if wrong order

* fix type error

* pass start node to breadcrumb

* handle start node in breadcrumb

* make start node optional

* map data

* clean up

* Update media-picker-folder-path.element.ts

* add searching load indicator

* don't show unique in detail

* Add information to item response model

* Update OpenApi.json

* generate new server models

* update mocks

* move interface to types

* add hasChildren and parent to media item model interface

* fix import

* map data

* map media item

* treat tree item and search result the same

* Fix: bump uui version (#17626)

* lint fix

* temp fix for media selection

* UX corrections for media selection

* temp uui fix for media picker modal

* fix table selection mode

* fix search from when having a start node

* remove private

* wait for all missing parts before create table items

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2024-11-25 18:16:19 +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
2383fbcd70 V15: Show a loader during the login procedures rather than oddly styled content (#17618)
* feat: show only a loader on a default login flow

if the flow fails, the app-error component will be shown, or if the flow is initialised inside a popup (i.e. the session was lost)

* fix: hasOwnOpener did not recognize the local vite url as its own pathname

it should work better by checking the `startsWith` comparing the pathname, and besides, it seems to work better for the understanding of the function to inverse the true/false check

* chore: adjust imports

* chore: formatting
2024-11-25 16:32:02 +00:00
Mads Rasmussen
ef470ed757 Fix: bump uui version (#17626) 2024-11-25 13:17:43 +01:00
Jacob Overgaard
75ba6b7492 Merge remote-tracking branch 'origin/contrib' into v15/dev 2024-11-24 22:02:41 +01:00
leekelleher
e2d4f3e0de Passes entityType to bulk actions 2024-11-21 16:18:16 +01:00
Mads Rasmussen
44384c0613 Aligning Settings welcome dashboard headlines (#17609)
* use box headline for headlines

* Settings welcome dashboard amends

`rel=noopener` is automatically implemented
by the browser for `target=_blank` links.

---------

Co-authored-by: leekelleher <leekelleher@gmail.com>
2024-11-21 14:34:48 +00:00
Lee Kelleher
f899be9640 V15: Collection Bulk Action Permissions conditions (#17593)
* Deprecated TypeScript exports

* Removed the Bulk Action Permission condition

* Removed the "bulkActionPermissions" configuration

It's now based on manifest/extension conditions.

* Added user permission checks for documents

(media do not yet have entity permissions)

* Added console warning for 'bulk-action-permissions' editor
2024-11-21 13:37:38 +01:00
PhyxionNL
5518c709aa Fixes TipTap toolbar wrapping 2024-11-21 11:32:26 +00:00
Niels Lyngsø
390dde0492 Feature: Make discard changes work for modals (#17515)
* make sure to close the modal when submit was completed

* rename to _closeModal

* remove comments

* correction route registration

* implement general collection workspace path builder

* fix lint errors

* change item to entity

* remove unsued

* add entityType param

* use correct entity type

* change section view into dashboard

* router context holding paths as observables

* adapt modal context logic to become cancellable

* fix router-slot

* remove temp fix

* close none routable modals when navigating routable modal

* update uui

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2024-11-21 10:52:12 +01:00
Lee Kelleher
918448f419 V15: Collection: Adds "Name" to Order By options (#17600)
* Adds "Name" option to the Collection Order By configuration

* Localizes column headers
2024-11-21 08:45:51 +01:00
Bjarne Fyrstenborg
85f1f81390 Change icons of media types (#16290)
* Change icons of media types

* feat: install icons `audio-lines` and `origami` from lucide

* feat: update the default icon for audio to `icon-audio-lines` and the default icon for vector graphics to `icon-origami`

* chore: add more mocked media types

* chore: add missing endpoint for media-type ancestors

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-11-20 15:46:49 +01:00
Niels Lyngsø
40cc8e1c84 update uui (#17595) 2024-11-20 15:25:30 +01:00
leekelleher
f4618d7d2b Sets Tiptap's default configuration 2024-11-20 13:35:36 +01:00
Niels Lyngsø
8f56b23335 Feature: expose button for block custom views (#17577)
* make a expose button overlay not exposed block with a custom view

* fix merge gone wrong

* Update block-list-entry.element.ts

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2024-11-20 11:44:40 +01:00
Niels Lyngsø
61192ba3a0 Fix: 17533 (#17579)
* fix styling of placeholder on list

* make sure to only setup items that uses the same Sorter Controller identifier

* make sure identifier is unique for each variant

* correct comments

* style grid block

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2024-11-20 11:25:21 +01:00
Niels Lyngsø
01d66875b2 Fix: 17274 (#17578)
* remove log

* styling of inline editing expose button

* mock data for blocks

* fix settings values

* fix setting config

* remove console logs

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2024-11-20 11:07:30 +01:00
Niels Lyngsø
3ee43e2f1d only skip validation for documents 2024-11-20 10:53:56 +01:00
Niels Lyngsø
4cc3a654f9 media validation repository 2024-11-20 10:53:37 +01:00
Niels Lyngsø
69e8a61cdd order props so they fit what came in (#17585) 2024-11-20 09:16:17 +01:00
Jacob Overgaard
6a7a15d534 latest mockServiceWorker.js generated 2024-11-19 13:51:28 +01:00
Niels Lyngsø
0f86cad8fa re-introduce service worker (#17574) 2024-11-19 09:51:49 +01:00
Mads Rasmussen
5718616bf3 Bugfix: Scoped Content Picker Search (#17481)
* add searchFrom to request args type

* add search from to picker search manager config

* pass startNode to config

* get default setting from config

* pass to server

* remove unused import
2024-11-19 09:18:53 +01:00
Mads Rasmussen
310ccdc011 Fix: Add "Not Found" empty state to detail workspaces (#17489)
Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2024-11-19 09:14:41 +01:00
Mads Rasmussen
2d69eb66ef Feature: Content Type Workspace Context Base (#17542)
* Create content-type-workspace-context-base.ts

* make detail model with entityType

* allow repository alias

* export base class

* fix type check

* add method to get unpersisted changes

* remove duplicate code

* remove duplicate code

* remove duplicate code

* wip porting code to the base class

* improve extendability

* clean up

* clean up

* move logic to base

* allow to preset the scaffold

* pass preset

* add public tag

* clean up

* simplify the number of places we store the entity type

* add js docs

* rename private method to clear

* remove debugger

* use flag instead of a data state

* set persisted data after create + update

* Update entity-detail-workspace-base.ts

* add js docs

* add protected tag

* call super

* make linter happy

* add comment

* type casting

* no need create observables for unique and entityType it is already handled

* add null check

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-11-18 15:03:15 +01:00
Jacob Overgaard
a315aa9603 chore: remove unused import 2024-11-15 13:03:39 +01:00
Niels Lyngsø
5c8d460224 Feature: Block workspace modal size from block type (#17501)
* correct ctrl alias

* move types

* undefined as an overlay size option

* make modal size an observable

* change set size order

* remove log
2024-11-15 08:36:47 +01:00
Zeegaan
b8b96f05d1 Merge branch 'release/15.0' into v15/dev
# Conflicts:
#	Directory.Build.props
#	version.json
2024-11-14 09:03:28 +01:00
Niels Lyngsø
d13871e926 expose using the block variant id (#17525) 2024-11-13 17:27:19 +01:00
Niels Lyngsø
16d825a502 Feature: close content detail workspace when complete (#17498)
* make sure to close the modal when submit was completed

* rename to _closeModal

* remove comments
2024-11-13 14:58:47 +01:00
Mads Rasmussen
e328249d31 Cleanup: remove unused alias (#17487)
* remove unused alias

* remove unused imports
2024-11-13 13:23:41 +00:00
Bjarke Berg
a342734117 Fix issue with when the last template was removed the template reference-object was not returned as null (#17516) 2024-11-13 13:13:40 +00:00
leekelleher
5032a78bf9 Tiptap: prevents pasted HTML fragments
containing images, being uploaded to the server.
2024-11-12 19:07:01 +01:00