Commit Graph

67569 Commits

Author SHA1 Message Date
Lee Kelleher
327b5d3ea1 Bugfix: Tiptap Link Picker, fixes anchor with an empty URL (#2522)
Tiptap Link Picker, fixes anchor with an empty URL

it was previous appending the anchor to a  stringified `null`.
2024-11-08 08:54:20 +01:00
Niels Lyngsø
979b0ba11a append part attributes 2024-11-08 08:20:55 +01:00
Warren Buckley
60393b7676 [V15] Updated dotnet template for Umbraco Packages with Bellisima (#17108)
* [WIP] Create Umbraco/Bellissima Package

* Removes existing 'UmbracoPackage'

This is because the RCL based one will be the only one going forward

* Rename existing UmbracoPackageRCL to UmbracoPackage

* Drop the mentions of RCL in the identifiers

* CodeQL GitHub Action is complaining due to V15 wanting v9 .NET

* Rename UmbracoPackage template to UmbracoExtension

As this will only scaffold an extension and not other bits for a package such as Nuget, Github Actions & other things needed to be done to ship out a package

* Remove package lock as npm install by the OS should generate this and can differ between Windows, Linux/OSX

* Move JS clientside stuff into a folder called Client

Will allow us to ignore the folder if or when doing a dotnet pack with a rule in CSProj

* Add in .VSCode recommened extensions file to get the useful Lit Extension for completions in VSCode

* For now remove the example dashboard & prop editor

* Add a simple entrypoint

* Fix path for primary output after rename

* Use link suggested from Lotte

* Use backofficeEntryPoint as entryPoint is deprecated

* Update the umbraco-package.json to opt into telemetry as per PR suggestion

* Improve commented code to include a link to docs

* Improve readme from suggestions

* Updates package.json to use latest Vite & TS

Copies the tsconfig from the default scaffolding of vite lit-ts CLI

* Adds the base property suggestion from Jacob & puts in a comment as to what its used for

* Work in progress from hackathon day/afternoon

* Hey-API generating a HTTP Client had changed and was a PITA to figure out what had changed

Things to do for next time:
Include these files if they include --include-samples flag

* constants.ts
* Controllers/
* Composers/
* client/src/api
* client/src/dashboards/
* client/src/entrypoints

Change file contents
* client/src/bundle.manifests.ts
* client/src/package.json (extra dependencies)

* Adds in new property/flag/switch for dotnet new template

* Warren cant spell Whether 🙈

* Update template.json to exclude the sample files if flag is not set/false

* Make SLN happy/build

* Conditional content in files for IncludeExample flag/switch

* Need to include the content otherwise it doesnt get packed by nuget

* Fix the path for the openapi-ts-config.ts file to be included/excluded

* Use the project name from the dotnet new to help name manifests

* Update namespaces so they get updated when dotnet new templatge is run with the --name

* Updated example

* Fix up VS Code recommended extension for Lit VSCode

Should be .json not a .ts

* Fix up build - as we dont use the imported UmbCurrentUserContext

* Remove the relative path to the JSON schema as unable to know path to the web project

* Typo fix as spooted by Rich

* Update templates/UmbracoExtension/.template.config/template.json

Co-authored-by: Lotte Pitcher <LottePitcher@users.noreply.github.com>

* Adds a --site-domain flag/switch to use for setting the domain prefix

Sets a default value of https://localhost:5000
We have no way of knowing what URL/domain the site is running at for the Umbraco website project

* Rename stuff so its not 'example' & only have ping if include-examples is not set

* As agreed with Lotte makes sense we always generate OpenAPI & TS client

* Update umbraco-extension description

* Generic node script to generate the TS client

Checks if it can connect to it first and prompts user to ensure Umbraco site running or perhaps they need to change the URL in package.json for the node script

* Generated API has conditional stuff in now to have just Ping or the more examples based on switch/flag

* Adds symbols safeNamespace and safeName

safeNamespace uses the one built in and then safeName, depends on the cleaned namespace to then use a custom transform (forms) to then use a regex replace on . and _ to ensure we have a nicer name still for namespaces, class names, URL/routes for the swagger etc...

* change to use Umbraco.Extension as sourcename - check \.template.config\readme.md for 'placeholder' guidance

* use '-sd' as shortname for site-domain as otherwise shows up as '-p:d'

* fix typescript build error  when not including examples

* use provided name for API description as always being added

* Missing renames of Contrioller stuff with Lotte @ hackathon

* We missed the ctor

* Titlecase the API URLs for Swagger/API Controller

* dashboard tweaks

* Missing [Server] on Whats the Time Modal/UUI-box

---------

Co-authored-by: leekelleher <leekelleher@gmail.com>
Co-authored-by: Lotte Pitcher <LottePitcher@users.noreply.github.com>
Co-authored-by: Lotte Pitcher <github@lottepitcher.co.uk>
(cherry picked from commit 2f4b198ad3)
2024-11-08 06:57:57 +00:00
Niels Lyngsø
c43ef54121 make area create button hide on drag 2024-11-08 07:57:07 +01:00
Warren Buckley
2f4b198ad3 [V15] Updated dotnet template for Umbraco Packages with Bellisima (#17108)
* [WIP] Create Umbraco/Bellissima Package

* Removes existing 'UmbracoPackage'

This is because the RCL based one will be the only one going forward

* Rename existing UmbracoPackageRCL to UmbracoPackage

* Drop the mentions of RCL in the identifiers

* CodeQL GitHub Action is complaining due to V15 wanting v9 .NET

* Rename UmbracoPackage template to UmbracoExtension

As this will only scaffold an extension and not other bits for a package such as Nuget, Github Actions & other things needed to be done to ship out a package

* Remove package lock as npm install by the OS should generate this and can differ between Windows, Linux/OSX

* Move JS clientside stuff into a folder called Client

Will allow us to ignore the folder if or when doing a dotnet pack with a rule in CSProj

* Add in .VSCode recommened extensions file to get the useful Lit Extension for completions in VSCode

* For now remove the example dashboard & prop editor

* Add a simple entrypoint

* Fix path for primary output after rename

* Use link suggested from Lotte

* Use backofficeEntryPoint as entryPoint is deprecated

* Update the umbraco-package.json to opt into telemetry as per PR suggestion

* Improve commented code to include a link to docs

* Improve readme from suggestions

* Updates package.json to use latest Vite & TS

Copies the tsconfig from the default scaffolding of vite lit-ts CLI

* Adds the base property suggestion from Jacob & puts in a comment as to what its used for

* Work in progress from hackathon day/afternoon

* Hey-API generating a HTTP Client had changed and was a PITA to figure out what had changed

Things to do for next time:
Include these files if they include --include-samples flag

* constants.ts
* Controllers/
* Composers/
* client/src/api
* client/src/dashboards/
* client/src/entrypoints

Change file contents
* client/src/bundle.manifests.ts
* client/src/package.json (extra dependencies)

* Adds in new property/flag/switch for dotnet new template

* Warren cant spell Whether 🙈

* Update template.json to exclude the sample files if flag is not set/false

* Make SLN happy/build

* Conditional content in files for IncludeExample flag/switch

* Need to include the content otherwise it doesnt get packed by nuget

* Fix the path for the openapi-ts-config.ts file to be included/excluded

* Use the project name from the dotnet new to help name manifests

* Update namespaces so they get updated when dotnet new templatge is run with the --name

* Updated example

* Fix up VS Code recommended extension for Lit VSCode

Should be .json not a .ts

* Fix up build - as we dont use the imported UmbCurrentUserContext

* Remove the relative path to the JSON schema as unable to know path to the web project

* Typo fix as spooted by Rich

* Update templates/UmbracoExtension/.template.config/template.json

Co-authored-by: Lotte Pitcher <LottePitcher@users.noreply.github.com>

* Adds a --site-domain flag/switch to use for setting the domain prefix

Sets a default value of https://localhost:5000
We have no way of knowing what URL/domain the site is running at for the Umbraco website project

* Rename stuff so its not 'example' & only have ping if include-examples is not set

* As agreed with Lotte makes sense we always generate OpenAPI & TS client

* Update umbraco-extension description

* Generic node script to generate the TS client

Checks if it can connect to it first and prompts user to ensure Umbraco site running or perhaps they need to change the URL in package.json for the node script

* Generated API has conditional stuff in now to have just Ping or the more examples based on switch/flag

* Adds symbols safeNamespace and safeName

safeNamespace uses the one built in and then safeName, depends on the cleaned namespace to then use a custom transform (forms) to then use a regex replace on . and _ to ensure we have a nicer name still for namespaces, class names, URL/routes for the swagger etc...

* change to use Umbraco.Extension as sourcename - check \.template.config\readme.md for 'placeholder' guidance

* use '-sd' as shortname for site-domain as otherwise shows up as '-p:d'

* fix typescript build error  when not including examples

* use provided name for API description as always being added

* Missing renames of Contrioller stuff with Lotte @ hackathon

* We missed the ctor

* Titlecase the API URLs for Swagger/API Controller

* dashboard tweaks

* Missing [Server] on Whats the Time Modal/UUI-box

---------

Co-authored-by: leekelleher <leekelleher@gmail.com>
Co-authored-by: Lotte Pitcher <LottePitcher@users.noreply.github.com>
Co-authored-by: Lotte Pitcher <github@lottepitcher.co.uk>
2024-11-08 06:55:43 +00:00
Niels Lyngsø
221ab62725 Merge pull request #1507 from enkelmedia/1506-custom-modal
Feature/Proposal: Added support for element factory for modal manager context
2024-11-07 22:22:43 +01:00
Niels Lyngsø
67416ab19d fix closing nested routers modals 2024-11-07 22:15:10 +01:00
Niels Lyngsø
fe1df993d5 use fillBackground prop 2024-11-07 21:51:35 +01:00
Niels Lyngsø
62a66248e9 refactor to use init method 2024-11-07 21:51:13 +01:00
Niels Lyngsø
5adcc43351 fx imports 2024-11-07 21:45:40 +01:00
Niels Lyngsø
7e7e45c8f6 Merge branch 'main' into 1506-custom-modal
# Conflicts:
#	src/packages/core/modal/component/modal.element.ts
2024-11-07 21:41:54 +01:00
Lee Kelleher
fd20f6955c Bugfix: Disables Link Picker modal submit button (#2521)
Link Picker modal, disables submit button

if URL or querystring are not set.
2024-11-07 21:31:31 +01:00
Niels Lyngsø
e356c7f278 Merge pull request #2446 from umbraco/v15/feature/folder-children-collection-workspace-view
Feature: Folder Children Collection Workspace View
2024-11-07 21:28:36 +01:00
Niels Lyngsø
e7aefbe268 remove destroy function 2024-11-07 21:21:07 +01:00
Niels Lyngsø
393f0079c4 remove [] 2024-11-07 21:13:41 +01:00
Mads Rasmussen
2b8933e94f Merge branch 'main' into v15/feature/folder-children-collection-workspace-view 2024-11-07 20:04:09 +01:00
Mads Rasmussen
54f9f7c315 fix lint errors 2024-11-07 19:57:12 +01:00
Mads Rasmussen
17e5efdbf2 add todo 2024-11-07 19:55:18 +01:00
Steve Morgan
62336e4e28 Bugfix: creating new doc type properties sort order doesn't count existing properties - puts it at top (+1) (#2523)
Bug 17457

https://github.com/umbraco/Umbraco-CMS/issues/17457

Creating new doc type properties sort order doesn't count existing properties.

Looking at this it seems that the hardwork is done to workout the sort order and assign it to preset but it's not returned undefined was (probably as a dev placeholder that's gone unnoticed!).
2024-11-07 18:06:52 +00:00
Steve Morgan
0d85b56ec2 Bugfix: Corrects "Public access" notification typo (#2524)
Spelling correction
2024-11-07 17:51:32 +00:00
Niels Lyngsø
5c7956d84e Merge pull request #2146 from enkelmedia/routed-modal-issue
Fixes with `umb-route-slot` inside routed modal
2024-11-07 17:00:03 +01:00
Niels Lyngsø
0ac646517c simplifying 2024-11-07 16:52:53 +01:00
Niels Lyngsø
287e2a54cc use match.route.path 2024-11-07 16:50:46 +01:00
Frederik Lundbeck Jørgensen
7a8ba96682 append 'YouTube Live' url scheme regex to Youtube embed provider class 2024-11-07 18:41:53 +03:00
Nathaniel Nunes
6705de0329 sort the children of a parent content after either deleting or moving its child content (#17315) 2024-11-07 15:41:30 +00:00
Niels Lyngsø
090a74d9b9 clean up 2024-11-07 15:55:34 +01:00
Niels Lyngsø
e281c0fa2e call _updateRouterPath 2024-11-07 15:46:21 +01:00
Niels Lyngsø
0d0f22a1f9 fix firstUpdated callback in case where parent is also newly created 2024-11-07 15:46:08 +01:00
Niels Lyngsø
a26d49e5b7 clean up 2024-11-07 15:45:45 +01:00
Mads Rasmussen
bf616609fa manual merges 2024-11-07 15:35:35 +01:00
Mads Rasmussen
97455f2de4 Merge branch 'main' into v15/feature/folder-children-collection-workspace-view 2024-11-07 15:28:32 +01:00
Niels Lyngsø
4dcd2b1729 Merge branch 'main' into routed-modal-issue 2024-11-07 15:11:16 +01:00
Niels Lyngsø
ff6e0fb406 Merge branch 'release/15.0' 2024-11-07 14:58:10 +01:00
Niels Lyngsø
af37f8dc20 Merge pull request #2520 from umbraco/v15/hotfix/await-server-requerst-for-entity-workspaces-submit
Hotfix: await server-request before submit gets resolved
2024-11-07 14:39:32 +01:00
Niels Lyngsø
74fbbb08e1 await request before submit gets resolved 2024-11-07 14:31:25 +01:00
Niels Lyngsø
a64a1d4031 Merge pull request #2519 from umbraco/v15/feature/fix-block-grid-editor-circular-imports-take-1
Feature: Fix imports for circular deps
2024-11-07 14:29:58 +01:00
Niels Lyngsø
6540f3914b Merge branch 'main' into v15/feature/fix-block-grid-editor-circular-imports-take-1
# Conflicts:
#	src/packages/block/block-grid/components/block-grid-entry/block-grid-entry.element.ts
2024-11-07 14:22:56 +01:00
Niels Lyngsø
ae9c5dccc0 fix imports 2024-11-07 14:21:10 +01:00
Niels Lyngsø
c5688dda28 Merge pull request #2515 from rickbutterfield/bugfix/block-list-custom-views-fix
[v14.2+] Allow custom views to load correctly for Block List
2024-11-07 14:21:09 +01:00
Niels Lyngsø
607b596f2c Merge pull request #2513 from umbraco/v15/feature/grid-inline-editing-fixes
Feature: Block Grid inline editing + Extension Initializers change
2024-11-07 14:18:21 +01:00
Niels Lyngsø
04c9e8f4ac Merge branch 'main' into bugfix/block-list-custom-views-fix 2024-11-07 14:13:38 +01:00
Bjarke Berg
6a18aa79e3 Fix wrong urls returned from Url() extension and do not show unavailable paths on info tab (#17445)
* Fixed issue with urls shown to info tap, even if the url was not available because the document assigned a domain was not published in the culture

* Fix issue where left to right and right to left ordering of urlsegments was not handled when using the legacy urls
2024-11-07 14:13:25 +01:00
Niels Lyngsø
1740816d64 Merge branch 'main' into v15/feature/grid-inline-editing-fixes
# Conflicts:
#	src/packages/core/content/property-dataset-context/element-property-dataset.context.ts
2024-11-07 14:10:58 +01:00
Niels Lyngsø
b1a054f3ed Merge pull request #2483 from umbraco/v15/feature/content-workspace-base
Feature: Content Detail Workspace Base
2024-11-07 14:09:03 +01:00
Niels Lyngsø
5f3e992ca7 fix const name 2024-11-07 14:04:32 +01:00
Niels Lyngsø
a2d449de95 move dictionary create action to top 2024-11-07 14:01:11 +01:00
Niels Lyngsø
6cc417580a update member manifests 2024-11-07 13:57:28 +01:00
Niels Lyngsø
f6bdb8dc90 sort props to align with data source 2024-11-07 13:53:06 +01:00
Nikolaj Geisle
d101829a90 V15: Fix reload memory cache endpoint (#17446)
* Check for id later.

* Return 501 status codes from obsoleted endpoints

* Use contants

* Ensure ordering of cache refresher is not changes

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2024-11-07 13:17:36 +01:00
Niels Lyngsø
e2303eca88 Merge branch 'main' into v15/feature/grid-inline-editing-fixes 2024-11-07 13:14:51 +01:00