Skip to content

additional context name for 'content property context' #19375

Merged
nielslyngsoe merged 1 commit intorelease/16.0from
v16/hotfix/provide-content-property-context-under-a-new-name
May 22, 2025
Merged

additional context name for 'content property context' #19375
nielslyngsoe merged 1 commit intorelease/16.0from
v16/hotfix/provide-content-property-context-under-a-new-name

Conversation

@nielslyngsoe
Copy link
Copy Markdown
Member

@nielslyngsoe nielslyngsoe commented May 21, 2025

Providing 'content property context' under the name 'property type based property context'. keeping the old and marked that as deprecated, with removal in v.18.

@nielslyngsoe nielslyngsoe requested review from Copilot and madsrasmussen and removed request for Copilot May 21, 2025 06:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR renames and refactors the content property context to use the new "property type based property context," deprecating the old naming and exports. Key changes include:

  • Removing old context exports from the main content index.
  • Updating the property element to use the new context and renaming variables accordingly.
  • Introducing new context token and context files with deprecation notices for the old tokens.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Umbraco.Web.UI.Client/src/packages/content/content/index.ts Removed exports for the old content property context.
src/Umbraco.Web.UI.Client/src/packages/content/content/content-property.context-token.ts Removed the old context token definition.
src/Umbraco.Web.UI.Client/src/packages/content/content/components/property-type-based-property/property-type-based-property.element.ts Updated to use the new property type based context and renamed a variable.
src/Umbraco.Web.UI.Client/src/packages/content/content/components/property-type-based-property/property-type-based-property.context.ts Renamed the context class and updated the super call with the new token; added a deprecation alias.
src/Umbraco.Web.UI.Client/src/packages/content/content/components/property-type-based-property/property-type-based-property.context-token.ts Added new context token and deprecated the old token.
src/Umbraco.Web.UI.Client/src/packages/content/content/components/property-type-based-property/index.ts Re-exported the updated context and token files.

@nielslyngsoe nielslyngsoe enabled auto-merge (squash) May 21, 2025 07:32
@nielslyngsoe nielslyngsoe merged commit 0442b9e into release/16.0 May 22, 2025
24 checks passed
@nielslyngsoe nielslyngsoe deleted the v16/hotfix/provide-content-property-context-under-a-new-name branch May 22, 2025 19:12
@leekelleher
Copy link
Copy Markdown
Member

This change introduces a regression with UMB_CONTENT_PROPERTY_CONTEXT in 16-rc4, as it doesn't resolve.

Example usage in my Contentment package. This worked in 16-rc3, but doesn't the context doesn't resolve in 16-rc4.
ref: https://github.com/leekelleher/umbraco-contentment/blob/7e0da80804e66ea46336a24656e9a46df13633bb/src/Umbraco.Community.Contentment.Client/src/property-editor-ui/data-picker/data-picker.element.ts#L102-L104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants