Commit Graph

1119 Commits

Author SHA1 Message Date
Jacob Overgaard
f67a900cc1 bump version to 15.3.0-rc 2025-01-22 10:15:21 +01:00
Mads Rasmussen
e00290f400 Feature: Clipboard (#17820)
* wip clipboard context + tests

* clean up property action module + register copy action

* split manifests

* add clipboard module

* import type

* export type

* mark all methods async

* scaffold copy + paste property actions

* scaffold workspace, collection, repo + data sources

* remove references to language

* register detail manifests

* call repo when creating

* load clipboard collection data

* remove debugger

* register clipboard item picker modal

* return value from picker

* accept native error

* clean up data source

* add tests for error states

* make clipboard local storage manager

* add clip entry entity type

* create unique in scaffold

* add clipboard entry item data

* align naming

* move around

* name alignment

* fix imports

* fix missing entityType

* clean up

* use picker input context

* remove unused context

* Update clipboard.context.ts

* map to item model

* poc paste property action

* register copy/paste as kinds

* lint fix

* add tests

* rename test

* add repository tests

* register delete clipboard action + enable action dropdown outside of context menu

* remove notifcation

* export entity type

* temp use repo instead of context

* delete unused copy property action

* make data source non breaking

* Update vite.config.ts

* add icons for clipboard copy, paste + entry

* remove unused

* return if there is no property value

* add kind interfaces

* pass entry type for copy and paste

* register clipboard for block list

* implement filter on entry type

* delete unused context

* remove references

* rename data to value and don't force an array

* make icons and single value

* allow to add create and update dates for clipboard entries

* use clipboard icon

* add create and update dates

* export constants

* don't set as an array

* reload picker content

* add copy to clipboard button to block list entry

* make picker element

* allow to pick multiple

* remove generic block list clipboard actions

* Revert "remove generic block list clipboard actions"

This reverts commit 6ea65a02ce6315a781b80d0ccf0da288df602a7d.

* add get methods

* wip construct block clipboard entry value

* add method to get exposes + add jsdocs

* add expose

* remove todo + add jsdocs

* move clipboard out of core package

* add package files

* load package again

* render entry icon

* render correct icon

* remove clipboard from core vite.config

* Update package-lock.json

* wip copy/paste resolvers

* allow multiple accepted entry types

* move logic to resolvers

* transforming clipboard block value to fit block list

* wip copy/paste resolvers

* clean up

* remove unused

* fix missing exports

* fix tests

* return clipboard entry unique from modal

* Update block-list-entries.context.ts

* clipboard feature: clipboard property value cloner (#17824)

* restructure of property package

* content data merge controller tests

* deprecate meta from propertyValueResolver

* temp work

* temp

* poc

* rename to cloner

* stached block value cloner work

* block list implementation

* correct property value implementation

* RTE Block Property Value Cloner

* Block Grid Value Cloner

* update with comments

* try out cloner

* wip translators

* Revert "delete unused context"

This reverts commit ec31ae55aaa9e958b64c44019398e9af7cd61df4.

* move translator + cloner logic to context

* clean up

* implement read from clipboard in block list property editor

* remove debugger

* values array

* handle paste

* Update types.ts

* move files

* Update clipboard-local-storage.manager.ts

* set both create and update date when creating a clipboard entry

* align naming

* handle paste

* clean up + wip block grid translators

* updates types

* add grid block copy translator

* only allow paste translator to handle a single value

* align copy and paste translators

* remove debugger

* move to folders

* add block const

* rename

* add tests

* Update index.ts

* use correct type

* add tests for UmbBlockListToBlockClipboardCopyTranslator

* fix tests

* add translator tests

* add tests

* organize

* organize

* clean up translator tests

* align naming

* remove unused button

* only render copy property action if property has a value

* use constants

* copy single grid block

* get block grid property value from clipboard entry

* add clear method to extension registry + add js docs

* Update index.ts

* add tests for copy value resolver

* add icon for clipboard

* use clipboard icon in modal

* add tests

* remove unused setting

* fix log

* only create array once

* filter for supported paste translators

* use write method instead of duplicating the code

* add condition config type

* use config type

* Update manifests.ts

* add support for multi picker

* move multiple look up logic to context

* add js docs

* add js docs

* remove unused

* remove unused

* remove unused

* implement paste translator filtering for block catalogue modal

* temp color translator

* adding a UmbPropertyValueDataPotentiallyWithEditorAlias

* simplify observer

* append user unique to local storage key

* remove temp color picker clipboard implementations

* more explicit extension type name

* more renaming

* type specifications

* fix test and missing type

* more types for test

* renaming of paste translators

* rename folder

* rename value resolvers

* correct variable name

* wip tests for clipboard context

* clean up tests correctly

* add more tests for clipboard context

* Update clipboard.context.test.ts

* use after each for clean up

* fix test that times out

* correct name

* optimize

* remove webkit

* newest first when picking

* use fingerprint local storage key to obfuscate user id

* rename method

* use const

* set content max length

* return object including the selection uniques

* show confirm dialog before pasting value

* only show confirm dialog if there is a value

* Feature: clipboard block insert (#17935)

* insert methods

* fix originData

* move logic to base class

* progress on Grid and RTE

* correct for Block Grid paste implementation

* update async across

* remove expose from block clipboard entry model

* remove expose from grid block clipboard entry

* remove todo

* wip move value expand responsibility

* wip split clipboard context

* experiment with an extendable property context

* create propertyContexts + proxy events

* rename methods

* move proxy to context + update grid copy logic

* split tests

* remove unused

* add property context extension type

* fix tests

* fix tests

* reorganize

* Update clipboard.property-context.ts

* use context

* register property context clipboard kind

* register for block grid

* remove redundant code

* rename to replace

* Revert "rename to replace"

This reverts commit eb0535edcfaa9f68d0fc4c431c93739a43c7b29c.

* rename prop

* rename label

* improve block clean-up abilities

* Update rte-base.element.ts

* make local get of clipboard context

* add asyncFilter option to the type

* add is compatible method to the interface

* support asyncFilter in picker

* add compatability check for block list

* more explicit name

* wip implementation of filter

* add compatability checks

* add temp types

* add clipboard filtering for grid and list

* lint corrections

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2025-01-16 15:50:09 +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
Jacob Overgaard
e49374d3f0 deps(build-dev): bump simple-icons from 13.21.0 to 14.2.0 and regenerate **icon-linkedin** 2025-01-14 16:06:12 +01:00
Mathias Helsengren
482af686a0 Updated the npm packages (#17975)
* Updated the npm packages

* generated server api and icons
2025-01-14 15:50:33 +01:00
Jacob Overgaard
726412a655 Add launch tasks for VS Code (#17772)
* feat: add two launch tasks to start a vite server and attach to an existing vite server

* build(deps-dev): install and use cross-env for vite commands

* build: add mocked launch task

* build: add prompt to check if msw should be on or off

* build: defaults

* build: rename launch task

* build: add compound to start backend and frontend at the same time
2024-12-16 10:46:24 +01:00
Niels Lyngsø
9b27184708 Merge pull request #17755 from umbraco/v15/feature/first-round-of-data-marks
Feature: Adding first round of data marks
2024-12-13 13:30:05 +01:00
Sven Geusens
2f8866a65a Bump client versions 2024-12-11 13:59:12 +01:00
Niels Lyngsø
3dc9b15afe Add data-marks 2024-12-07 19:45:38 +01:00
Jacob Overgaard
4c009abc99 V15 RC: Tiptap should only target valid block elements (#17712)
* fix: make sure we only target valid blocks

This is to say we should remove any invalid block elements to clean up the DOM. A block element is considered invalid if it does not have the `data-content-key` attribute.

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

this fixes a potential issue with link creations

* revert the 'leaf node specification'

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2024-12-05 09:25:34 +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
ceafa83cc7 build: update the repository link 2024-11-29 15:36:28 +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
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
Mads Rasmussen
ef470ed757 Fix: bump uui version (#17626) 2024-11-25 13:17:43 +01:00
Niels Lyngsø
40cc8e1c84 update uui (#17595) 2024-11-20 15:25:30 +01:00
Lee Kelleher
9f9ae6549b Chore: Upgraded Tiptap dependencies to 2.9.1 (#2511)
* Upgraded Tiptap dependencies to v2.9.1

* Uninstalled @tiptap/extension-text-style dependency

as it's now part of @tiptap/starter-kit
2024-11-06 10:21:22 +01:00
dependabot[bot]
8d96ddf7db Bump @playwright/test from 1.46.1 to 1.48.2 (#2506)
Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.46.1 to 1.48.2.
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.46.1...v1.48.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 13:23:03 +00:00
Mads Rasmussen
9b99fbc362 add module 2024-11-04 14:58:32 +01:00
Jacob Overgaard
f30e86efd3 Merge branch 'release/15.0' 2024-10-14 10:02:35 +02:00
Jacob Overgaard
bc2d2916fd build(deps): update @umbraco-ui/uui to 1.11.0 2024-10-14 09:40:41 +02:00
dependabot[bot]
76930c4a0e Bump @types/chai from 4.3.17 to 5.0.0
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.17 to 5.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

---
updated-dependencies:
- dependency-name: "@types/chai"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-11 12:01:13 +02: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
JesmoDev
1ecf9c5c51 Storybook 8 Upgrade (#2440)
* upgrade storybook to 8.3.5

* remove packages no longer needed

* fix: overwrite storybooks favicon

* chore: replace deprecated `Story` with `StoryFn`

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-10 16:17:39 +02:00
JesmoDev
0bf6f85e25 Storybook 8 Upgrade (#2440)
* upgrade storybook to 8.3.5

* remove packages no longer needed

* fix: overwrite storybooks favicon

* chore: replace deprecated `Story` with `StoryFn`

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-10 14:16:24 +00:00
Jacob Overgaard
0489d879eb Merge remote-tracking branch 'origin/release/15.0' 2024-10-10 15:45:19 +02:00
Jacob Overgaard
ab7da94789 build(deps): update @umbraco-ui/uui from 1.10.0 to 1.10.1 2024-10-10 09:43:16 +02:00
Jacob Overgaard
19b24e266f chore: bump version to 15.0.0-rc2 2024-10-02 12:30:00 +02:00
Jacob Overgaard
390a934d65 chore: set version to 15.1.0 2024-10-02 07:57:15 +02:00
Jacob Overgaard
3525dfca82 Merge branch 'main' into release/15.0 2024-10-02 07:56:28 +02:00
Jacob Overgaard
3b4acc9a76 build(deps): bump lit from 3.1.4 to 3.2.0 2024-10-02 07:54:39 +02:00
Jacob Overgaard
6424ba772b Merge pull request #2394 from umbraco/dependabot/npm_and_yarn/babel-loader-9.2.1
Bump babel-loader from 9.1.3 to 9.2.1
2024-10-02 07:50:56 +02:00
Jacob Overgaard
d9efec57e1 Merge branch 'main' into release/15.0 2024-10-02 07:49:51 +02:00
Jacob Overgaard
a13f18d554 build(deps): update tiptap from 2.7.4 to 2.8.0 2024-10-02 07:48:44 +02:00
dependabot[bot]
167d8b9458 Bump babel-loader from 9.1.3 to 9.2.1
Bumps [babel-loader](https://github.com/babel/babel-loader) from 9.1.3 to 9.2.1.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel-loader/compare/v9.1.3...v9.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 18:16:02 +00:00
Jacob Overgaard
8f5391ba5c bump version to 15.1.0 2024-10-01 15:21:32 +02:00
Jacob Overgaard
3143636cf1 set version to 15.0.0-rc1 2024-10-01 15:20:43 +02:00
Niels Lyngsø
5336c07315 split rte/tiny-mce/tiptap 2024-10-01 13:19:32 +02:00
Mads Rasmussen
36ff9f84fb Merge branch 'main' into v15/feature/translation-section-package 2024-09-30 20:43:45 +02:00
leekelleher
d696d549ba Installed Tiptap's StarterKit package
https://tiptap.dev/docs/editor/extensions/functionality/starterkit

This is to steamline the number of direct dependencies.
2024-09-30 17:45:57 +01:00
Mads Rasmussen
f999fa93e7 add translation package including section registration 2024-09-30 17:19:20 +02:00
Jacob Overgaard
7c575b914f Merge remote-tracking branch 'origin/main' into v15/feature/tiptap 2024-09-30 13:46:05 +02:00
JesmoDev
f49870207b feat: add subscript and superscript and generate icons 2024-09-30 12:40:03 +02:00
Niels Lyngsø
f210102eb9 Merge branch 'main' into v15/feature/emm-health-check 2024-09-30 11:25:17 +02:00
Mads Rasmussen
912eca8b80 move to already existing folder 2024-09-30 09:50:30 +02:00
Mads Rasmussen
40f3bc5a33 add health check module 2024-09-30 09:43:51 +02:00
Mads Rasmussen
508f9feeba add dashboard module 2024-09-30 09:21:06 +02:00
Jacob Overgaard
349a89e26d feat: adds the placeholder plugin with a message to get users started 2024-09-27 22:11:56 +02:00
Jacob Overgaard
1cae7fa86f feat: move 'tiny-mce' into the 'rte' package 2024-09-27 10:08:04 +02:00