Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V16: Removed deprecated client-side code #18662

Draft
wants to merge 5 commits into
base: v16/dev
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Umbraco.Web.UI.Client/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@
"./embedded-media": "./dist-cms/packages/embedded-media/index.js",
"./extension-api": "./dist-cms/libs/extension-api/index.js",
"./extension-types": "./dist-cms/packages/extension-types/index.d.ts",
"./formatting-api": "./dist-cms/libs/formatting-api/index.js",
"./localization-api": "./dist-cms/libs/localization-api/index.js",
"./observable-api": "./dist-cms/libs/observable-api/index.js",
"./action": "./dist-cms/packages/core/action/index.js",

This file was deleted.

2 changes: 0 additions & 2 deletions src/Umbraco.Web.UI.Client/src/libs/formatting-api/index.ts

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions src/Umbraco.Web.UI.Client/src/packages/code-editor/index.ts
Original file line number Diff line number Diff line change
@@ -3,11 +3,3 @@ export * from './models/index.js';
export * from './code-editor-modal/index.js';

export type { UmbCodeEditorController } from './code-editor.controller.js';

/**
* @deprecated Use `import from '@umbraco-cms/backoffice/code-editor';` directly.
* This function will be removed in Umbraco 15.
*/
export function loadCodeEditor() {
return import('@umbraco-cms/backoffice/code-editor');
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';

export interface UmbPropertyEditorUIPickerModalData {
/** @deprecated This property will be removed in Umbraco 15. */
submitLabel?: string;
}
export type UmbPropertyEditorUIPickerModalData = object;
Copy link
Member

Choose a reason for hiding this comment

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

I see that I'm guilty of doing this in other places. But it is more ideal to set this to never, as object is a bit of a vague type, not really helping the user. where 'never' makes it clear to the user that there is nothing to send here. :-)


export type UmbPropertyEditorUIPickerModalValue = {
selection: Array<string>;
Original file line number Diff line number Diff line change
@@ -9,6 +9,3 @@ export class UmbSectionPickerInputContext extends UmbPickerInputContext<UmbSecti
super(host, UMB_SECTION_ITEM_REPOSITORY_ALIAS, UMB_SECTION_PICKER_MODAL);
}
}

/** @deprecated Use `UmbSectionPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbSectionPickerInputContext as UmbSectionPickerContext };
Original file line number Diff line number Diff line change
@@ -3,23 +3,11 @@
*/
export const UMB_WORKSPACE_HAS_COLLECTION_CONDITION_ALIAS = 'Umb.Condition.WorkspaceHasCollection';

/**
* [Deprecated] Workspace has collection condition alias
* @deprecated Use {UMB_WORKSPACE_HAS_COLLECTION_CONDITION_ALIAS} instead. This will be removed in Umbraco 16.
*/
export const UMB_WORKSPACE_HAS_COLLECTION_CONDITION = UMB_WORKSPACE_HAS_COLLECTION_CONDITION_ALIAS;

/**
* Workspace entity is new condition alias
*/
export const UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS = 'Umb.Condition.WorkspaceEntityIsNew';

/**
* [Deprecated] Workspace entity is new condition alias
* @deprecated Use {UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS} instead. This will be removed in Umbraco 16.
*/
export const UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION = UMB_WORKSPACE_ENTITY_IS_NEW_CONDITION_ALIAS;

/**
* Workspace alias condition alias
*/
Original file line number Diff line number Diff line change
@@ -16,6 +16,3 @@ export class UmbDataTypePickerInputContext extends UmbPickerInputContext<
super(host, UMB_DATA_TYPE_ITEM_REPOSITORY_ALIAS, UMB_DATA_TYPE_PICKER_MODAL);
}
}

/** @deprecated Use `UmbDataTypePickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbDataTypePickerInputContext as UmbDataTypePickerContext };
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';

export interface UmbDataTypePickerFlowModalData {
/** @deprecated This property will be removed in Umbraco 15. */
submitLabel?: string;
}
export type UmbDataTypePickerFlowModalData = object;
Copy link
Member

Choose a reason for hiding this comment

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

same here, use never


export type UmbDataTypePickerFlowModalValue = {
selection: Array<string>;
Original file line number Diff line number Diff line change
@@ -19,6 +19,3 @@ export class UmbDictionaryPickerInputContext extends UmbPickerInputContext<
super(host, UMB_DICTIONARY_ITEM_REPOSITORY_ALIAS, UMB_DICTIONARY_PICKER_MODAL);
}
}

/** @deprecated Use `UmbDictionaryPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbDictionaryPickerInputContext as UmbDictionaryPickerContext };
Original file line number Diff line number Diff line change
@@ -16,6 +16,3 @@ export class UmbDocumentTypePickerInputContext extends UmbPickerInputContext<
super(host, UMB_DOCUMENT_TYPE_ITEM_REPOSITORY_ALIAS, UMB_DOCUMENT_TYPE_PICKER_MODAL);
}
}

/** @deprecated Use `UmbDocumentTypePickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbDocumentTypePickerInputContext as UmbDocumentTypePickerContext };
Original file line number Diff line number Diff line change
@@ -61,6 +61,3 @@ export class UmbDocumentPickerInputContext extends UmbPickerInputContext<
return true;
};
}

/** @deprecated Use `UmbDocumentPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbDocumentPickerInputContext as UmbDocumentPickerContext };
Original file line number Diff line number Diff line change
@@ -9,6 +9,3 @@ export class UmbLanguagePickerInputContext extends UmbPickerInputContext<UmbLang
super(host, UMB_LANGUAGE_ITEM_REPOSITORY_ALIAS, UMB_LANGUAGE_PICKER_MODAL);
}
}

/** @deprecated Use `UmbLanguagePickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbLanguagePickerInputContext as UmbLanguagePickerContext };
Original file line number Diff line number Diff line change
@@ -19,6 +19,3 @@ export class UmbMediaTypePickerInputContext extends UmbPickerInputContext<
super(host, UMB_MEDIA_TYPE_ITEM_REPOSITORY_ALIAS, UMB_MEDIA_TYPE_PICKER_MODAL);
}
}

/** @deprecated Use `UmbMediaTypePickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbMediaTypePickerInputContext as UmbMediaTypePickerContext };
Original file line number Diff line number Diff line change
@@ -9,6 +9,3 @@ export class UmbMemberGroupPickerInputContext extends UmbPickerInputContext<UmbM
super(host, UMB_MEMBER_GROUP_ITEM_REPOSITORY_ALIAS, UMB_MEMBER_GROUP_PICKER_MODAL);
}
}

/** @deprecated Use `UmbMemberGroupPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbMemberGroupPickerInputContext as UmbMemberPickerContext };
Original file line number Diff line number Diff line change
@@ -19,6 +19,3 @@ export class UmbMemberTypePickerInputContext extends UmbPickerInputContext<
super(host, UMB_MEMBER_TYPE_ITEM_REPOSITORY_ALIAS, UMB_MEMBER_TYPE_PICKER_MODAL);
}
}

/** @deprecated Use `UmbMemberTypePickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbMemberTypePickerInputContext as UmbMemberTypePickerContext };
Original file line number Diff line number Diff line change
@@ -63,6 +63,3 @@ export class UmbMemberPickerInputContext extends UmbPickerInputContext<
return true;
};
}

/** @deprecated Use `UmbMemberPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbMemberPickerInputContext as UmbMemberPickerContext };
Original file line number Diff line number Diff line change
@@ -60,16 +60,6 @@ export class UmbInputContentElement extends UmbFormControlMixin<string | undefin
return this.#selection.map((id) => ({ type: this.#entityTypeLookup[this.#type], unique: id }));
}

/** @deprecated Please use `selection` instead. This property will be removed in Umbraco 15. */
@property({ type: Array })
public set items(items: Array<UmbReferenceByUniqueAndType>) {
this.selection = items;
}
/** @deprecated Please use `selection` instead. This property will be removed in Umbraco 15. */
public get items(): Array<UmbReferenceByUniqueAndType> {
return this.selection;
}

@property({ type: String })
public override set value(selectionString: string | undefined) {
this.#selection = splitStringToArray(selectionString);
Original file line number Diff line number Diff line change
@@ -15,6 +15,3 @@ export class UmbStaticFilePickerInputContext extends UmbPickerInputContext<
super(host, UMB_STATIC_FILE_ITEM_REPOSITORY_ALIAS, UMB_STATIC_FILE_PICKER_MODAL);
}
}

/** @deprecated Use `UmbStaticFilePickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbStaticFilePickerInputContext as UmbStaticFilePickerContext };
Original file line number Diff line number Diff line change
@@ -13,6 +13,3 @@ export class UmbPartialViewPickerInputContext extends UmbPickerInputContext<
super(host, UMB_PARTIAL_VIEW_ITEM_REPOSITORY_ALIAS, UMB_PARTIAL_VIEW_PICKER_MODAL);
}
}

/** @deprecated Use `UmbPartialViewPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbPartialViewPickerInputContext as UmbPartialViewPickerContext };
Original file line number Diff line number Diff line change
@@ -9,6 +9,3 @@ export class UmbScriptPickerInputContext extends UmbPickerInputContext<UmbScript
super(host, UMB_SCRIPT_ITEM_REPOSITORY_ALIAS, UMB_SCRIPT_PICKER_MODAL);
}
}

/** @deprecated Use `UmbScriptPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbScriptPickerInputContext as UmbScriptPickerContext };
Original file line number Diff line number Diff line change
@@ -12,6 +12,3 @@ export class UmbStylesheetPickerInputContext extends UmbPickerInputContext<UmbSt
super(host, UMB_STYLESHEET_ITEM_REPOSITORY_ALIAS, UMB_STYLESHEET_PICKER_MODAL);
}
}

/** @deprecated Use `UmbStylesheetPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbStylesheetPickerInputContext as UmbStylesheetPickerContext };
Original file line number Diff line number Diff line change
@@ -11,6 +11,3 @@ export class UmbTemplatePickerInputContext extends UmbPickerInputContext<UmbTemp
super(host, UMB_TEMPLATE_ITEM_REPOSITORY_ALIAS, UMB_TEMPLATE_PICKER_MODAL);
}
}

/** @deprecated Use `UmbTemplatePickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbTemplatePickerInputContext as UmbTemplatePickerContext };
Original file line number Diff line number Diff line change
@@ -8,6 +8,3 @@ export class UmbUserGroupPickerInputContext extends UmbPickerInputContext<UmbUse
super(host, UMB_USER_GROUP_ITEM_REPOSITORY_ALIAS, UMB_USER_GROUP_PICKER_MODAL);
}
}

/** @deprecated Use `UmbUserGroupPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbUserGroupPickerInputContext as UmbUserGroupPickerContext };
Original file line number Diff line number Diff line change
@@ -9,6 +9,3 @@ export class UmbUserPickerInputContext extends UmbPickerInputContext<UmbUserDeta
super(host, UMB_USER_ITEM_REPOSITORY_ALIAS, UMB_USER_PICKER_MODAL);
}
}

/** @deprecated Use `UmbUserPickerInputContext` instead. This method will be removed in Umbraco 15. */
export { UmbUserPickerInputContext as UmbUserPickerContext };
1 change: 0 additions & 1 deletion src/Umbraco.Web.UI.Client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -40,7 +40,6 @@ DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js
"@umbraco-cms/backoffice/element-api": ["./src/libs/element-api/index.ts"],
"@umbraco-cms/backoffice/embedded-media": ["./src/packages/embedded-media/index.ts"],
"@umbraco-cms/backoffice/extension-api": ["./src/libs/extension-api/index.ts"],
"@umbraco-cms/backoffice/formatting-api": ["./src/libs/formatting-api/index.ts"],
"@umbraco-cms/backoffice/localization-api": ["./src/libs/localization-api/index.ts"],
"@umbraco-cms/backoffice/observable-api": ["./src/libs/observable-api/index.ts"],
"@umbraco-cms/backoffice/action": ["./src/packages/core/action/index.ts"],
Loading
Loading