Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 30ce4c0

Browse files
committed
Merge branch 'release/14.2' into v14/feature/block-type-custom-view-guide
# Conflicts: # src/packages/block/block-grid/property-editors/block-grid-areas-config/property-editor-ui-block-grid-areas-config.element.ts
2 parents be3218d + 3e0a9a3 commit 30ce4c0

File tree

458 files changed

+1804
-1215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

458 files changed

+1804
-1215
lines changed

eslint.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ import wcPlugin from 'eslint-plugin-wc';
66
import litPlugin from 'eslint-plugin-lit';
77
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
88
import tseslint from 'typescript-eslint';
9+
import jsdoc from 'eslint-plugin-jsdoc';
910

1011
export default [
1112
// Recommended config applied to all files
1213
js.configs.recommended,
1314
...tseslint.configs.recommended,
1415
wcPlugin.configs['flat/recommended'],
1516
litPlugin.configs['flat/recommended'],
17+
jsdoc.configs['flat/recommended'], // We use the non typescript version to allow types to be defined in the jsdoc comments. This will allow js docs as an alternative to typescript types.
1618
localRules.configs.all,
1719
eslintPluginPrettierRecommended,
1820

@@ -46,7 +48,7 @@ export default [
4648
},
4749
rules: {
4850
semi: ['warn', 'always'],
49-
"prettier/prettier": ["warn", { "endOfLine": "auto" }],
51+
'prettier/prettier': ['warn', { endOfLine: 'auto' }],
5052
'no-unused-vars': 'off', //Let '@typescript-eslint/no-unused-vars' catch the errors to allow unused function parameters (ex: in interfaces)
5153
'no-var': 'error',
5254
...importPlugin.configs.recommended.rules,

examples/block-custom-view/block-custom-view.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { html, customElement, LitElement, property, css } from '@umbraco-cms/bac
33
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
44
import type { UmbBlockDataType, UmbBlockEditorCustomViewElement } from '@umbraco-cms/backoffice/extension-registry';
55

6+
// eslint-disable-next-line local-rules/enforce-umb-prefix-on-element-name
67
@customElement('example-block-custom-view')
8+
// eslint-disable-next-line local-rules/umb-class-prefix
79
export class ExampleBlockCustomView extends UmbElementMixin(LitElement) implements UmbBlockEditorCustomViewElement {
810
//
911
@property({ attribute: false })
@@ -13,7 +15,7 @@ export class ExampleBlockCustomView extends UmbElementMixin(LitElement) implemen
1315
return html`
1416
<div class="uui-text">
1517
<h5 class="uui-text">My Custom View</h5>
16-
<p>Headline: ${this.content.headline}</p>
18+
<p>Headline: ${this.content?.headline}</p>
1719
</div>
1820
`;
1921
}

package-lock.json

Lines changed: 150 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
"./src/packages/property-editors",
144144
"./src/packages/tags",
145145
"./src/packages/templating",
146+
"./src/packages/tiny-mce",
146147
"./src/packages/umbraco-news",
147148
"./src/packages/user",
148149
"./src/packages/webhook"
@@ -246,6 +247,7 @@
246247
"eslint": "^9.7.0",
247248
"eslint-config-prettier": "^9.1.0",
248249
"eslint-plugin-import": "^2.29.1",
250+
"eslint-plugin-jsdoc": "^48.11.0",
249251
"eslint-plugin-lit": "^1.14.0",
250252
"eslint-plugin-local-rules": "^3.0.2",
251253
"eslint-plugin-prettier": "^5.1.3",

src/apps/app/app-auth.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export class UmbAppAuthController extends UmbControllerBase {
6060
/**
6161
* Starts the authorization flow.
6262
* It will check which providers are available and either redirect directly to the provider or show a provider selection screen.
63+
* @param userLoginState
6364
*/
6465
async makeAuthorizationRequest(userLoginState: UmbUserLoginState = 'loggingIn'): Promise<boolean> {
6566
if (!this.#authContext) {

src/apps/app/app-error.element.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,27 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
1010
export class UmbAppErrorElement extends UmbLitElement {
1111
/**
1212
* The headline to display
13-
*
1413
* @attr
1514
*/
1615
@property()
1716
errorHeadline?: string | null;
1817

1918
/**
2019
* The error message to display
21-
*
2220
* @attr
2321
*/
2422
@property()
2523
errorMessage?: string | null;
2624

2725
/**
2826
* The error to display
29-
*
3027
* @attr
3128
*/
3229
@property()
3330
error?: unknown;
3431

3532
/**
3633
* Hide the back button
37-
*
3834
* @attr
3935
*/
4036
@property({ type: Boolean, attribute: 'hide-back-button' })

src/apps/app/app.element.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { hasOwnOpener, retrieveStoredPath } from '@umbraco-cms/backoffice/utils'
2525
export class UmbAppElement extends UmbLitElement {
2626
/**
2727
* The base URL of the configured Umbraco server.
28-
*
2928
* @attr
3029
* @remarks This is the base URL of the Umbraco server, not the base URL of the backoffice.
3130
*/
@@ -39,7 +38,6 @@ export class UmbAppElement extends UmbLitElement {
3938

4039
/**
4140
* The base path of the backoffice.
42-
*
4341
* @attr
4442
*/
4543
@property({ type: String })

src/apps/app/server-connection.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class UmbServerConnection {
2424

2525
/**
2626
* Gets the URL of the server.
27-
* @return {*}
27+
* @returns {*}
2828
* @memberof UmbServerConnection
2929
*/
3030
getUrl() {
@@ -33,7 +33,7 @@ export class UmbServerConnection {
3333

3434
/**
3535
* Gets the status of the server.
36-
* @return {string}
36+
* @returns {string}
3737
* @memberof UmbServerConnection
3838
*/
3939
getStatus() {
@@ -43,7 +43,7 @@ export class UmbServerConnection {
4343

4444
/**
4545
* Checks if the server is connected.
46-
* @return {boolean}
46+
* @returns {boolean}
4747
* @memberof UmbServerConnection
4848
*/
4949
getIsConnected() {

src/apps/backoffice/backoffice.context.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export class UmbBackofficeContext extends UmbContextBase<UmbBackofficeContext> {
1919
#allowedSections = new UmbBasicState<Array<UmbExtensionManifestInitializer<ManifestSection>>>([]);
2020
public readonly allowedSections = this.#allowedSections.asObservable();
2121

22-
#verison = new UmbStringState(undefined);
23-
public readonly version = this.#verison.asObservable();
22+
#version = new UmbStringState(undefined);
23+
public readonly version = this.#version.asObservable();
2424

2525
constructor(host: UmbControllerHost) {
2626
super(host, UMB_BACKOFFICE_CONTEXT);
@@ -70,7 +70,7 @@ export class UmbBackofficeContext extends UmbContextBase<UmbBackofficeContext> {
7070
) ?? [];
7171

7272
const version = [major, minor, patch].join('.') + (prerelease ? `-${prerelease}` : '');
73-
this.#verison.setValue(version);
73+
this.#version.setValue(version);
7474
}
7575

7676
public setActiveSectionAlias(alias: string) {

0 commit comments

Comments
 (0)