* fix: do not add attributes or html elements to custom elements before they are created
Due to the way browsers treat custom elements, they are not allowed to add attributes and/or child elements upon creation. They must wait until the `connectedCallback`. That means any controller that wants to add elements should also wait until the host is connected (`hostConnected`).
* test: add generic tests for rte block elements
* chore: cleanup imports
* split observables so we don't request url when variantsOptions changes
* clean up events + debounce requests
* add loading state
* clear lookup before requesting new urls
* Added tests for Tiptap data type
* Removed tests for adding a toolbar item as the drag and drop is not working
* Fixed the variable name
* Added tests for TinyMCE data type
* Added tests for RTE data type
* Updated tests for delete toolbar row in Tiptap
* Updated tests for rich text editor data type
* Updated tests for tiny MCE data type
* Updated tests for content with tiny MCE rich text editor
* Renamed tests as there are 2 types of rich text editor
* Bumped version
* Make all data type tests in the pipeline
* Updated tests for Tiptap and TinyMCE due to api helper changes
* Fixed comments
* Update TinyMCE.spec.ts
Removed line
* Reverted
---------
Co-authored-by: Andreas Zerbst <73799582+andr317c@users.noreply.github.com>
* 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
* 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>
* Only fetch single commit
* Hopefully fixes Nerdbank.GitVersioning.GitException: Shallow clone lacks the objects required to calculate version height. Use full clones or clones with a history at least as deep as the last version height resetting change.
* Do not checkout again
* More test pipeline
* Another attempt
* yet another attempt
* more attempts
* Revert "more attempts"
This reverts commit 5694d97ba620e90fdeea287936f58002f2a5ddba.
* Test without building backoffice and login explicitly
* Fix mem leak in integration tests
* Fixes sqlserver lock test
* Only fetch single commit
* Hopefully fixes Nerdbank.GitVersioning.GitException: Shallow clone lacks the objects required to calculate version height. Use full clones or clones with a history at least as deep as the last version height resetting change.
* Do not checkout again
* More test pipeline
* Another attempt
* yet another attempt
* more attempts
* Revert "more attempts"
This reverts commit 5694d97ba620e90fdeea287936f58002f2a5ddba.
* Test without building backoffice and login explicitly
* Fix mem leak in integration tests
* Fixes sqlserver lock test
* Added tests for rendering content with upload file
* Bumped version
* Make all tests for rendering content run in the pipeline
* Fixed command
* Reverted
* Implement GetContentTypeAliasForType which will replace the need for .OfType<T>();
* Refactor EnumerateAncestorsOrSelfInternal to be generic and extracting checks
* Add types to implementation referencing the old non-generic method
* Using
* Replace Ancestors.OfType<T> implementation
* Refactor EnumerateDescendantsOrSelfInternal to be generic
* Fixing references by adding IPublishedContent type param
* Cleanup + removing unused method
* Replace Descendants.OfType<T> implementation
* Remove unnecessary enumeration
* Updating Children.OfType<T>() implementation
* Adding correct types
* Fixing SiblingsAndSelf implementation
* Refactor TryYieldSelfOfType
* Remove nested checks
* Add comments and retrieval of content type alias from T in the private helper methods
* Simplify implementation based on review comments
* Add case when you get all root keys without a type
* Refactoring
* Renaming + review comments
* Rewrite SiblingsAndSelf
---------
Co-authored-by: kjac <kja@umbraco.dk>
* 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