Skip to content

Commit 0d599f6

Browse files
committed
formatting
1 parent cbc832d commit 0d599f6

File tree

42 files changed

+131
-106
lines changed

Some content is hidden

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

42 files changed

+131
-106
lines changed

src/Umbraco.Web.UI.Client/src/libs/context-api/consume/context-consume.decorator.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ export interface UmbConsumeOptions<
4444
*
4545
* This decorator supports both modern "standard" decorators (Stage 3 TC39 proposal) and
4646
* legacy TypeScript experimental decorators for backward compatibility.
47-
*
4847
* @param {UmbConsumeOptions} options Configuration object containing context, callback, and subscribe options
49-
*
5048
* @example
5149
* ```ts
5250
* import {consumeContext} from '@umbraco-cms/backoffice/context-api';
@@ -94,6 +92,11 @@ export function consumeContext<
9492
*
9593
* Note: Standard decorators currently don't work with @state()/@property()
9694
* decorators, which is why we still need the legacy branch.
95+
* @param protoOrTarget
96+
* @param decoratorContext
97+
* @param context
98+
* @param callback
99+
* @param subscribe
97100
*/
98101
function setupStandardDecorator<BaseType extends UmbContextMinimal, ResultType extends BaseType>(
99102
protoOrTarget: any,
@@ -146,6 +149,11 @@ function setupStandardDecorator<BaseType extends UmbContextMinimal, ResultType e
146149
* 1. addInitializer (if available, e.g., on LitElement classes)
147150
* 2. hostConnected wrapper (for UmbController classes)
148151
* 3. Warning (if neither is available)
152+
* @param protoOrTarget
153+
* @param propertyKey
154+
* @param context
155+
* @param callback
156+
* @param subscribe
149157
*/
150158
function setupLegacyDecorator<BaseType extends UmbContextMinimal, ResultType extends BaseType>(
151159
protoOrTarget: any,

src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provide.decorator.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export interface UmbProvideOptions<BaseType extends UmbContextMinimal, ResultTyp
2828
* To update the provided value dynamically, keep a state inside the provided context instance
2929
* and update that state as needed. The context instance itself should remain the same.
3030
* You can use any of the Umb{*}State classes.
31-
*
3231
* @param {UmbProvideOptions} options Configuration object containing the context token
33-
*
3432
* @example
3533
* ```ts
3634
* import {provideContext} from '@umbraco-cms/backoffice/context-api';
@@ -46,7 +44,6 @@ export interface UmbProvideOptions<BaseType extends UmbContextMinimal, ResultTyp
4644
* workspaceContext = new UmbWorkspaceContext(this);
4745
* }
4846
* ```
49-
*
5047
* @example
5148
* ```ts
5249
* // For dynamic updates, store the state inside the context instance
@@ -63,7 +60,6 @@ export interface UmbProvideOptions<BaseType extends UmbContextMinimal, ResultTyp
6360
* }
6461
* }
6562
* ```
66-
*
6763
* @returns {ProvideDecorator<InstanceType>} A property decorator function
6864
*/
6965
export function provideContext<
@@ -98,6 +94,8 @@ export function provideContext<
9894
*
9995
* Note: Standard decorators currently don't work with @state()/@property()
10096
* decorators, which is why we still need the legacy branch.
97+
* @param protoOrTarget
98+
* @param context
10199
*/
102100
function setupStandardDecorator<
103101
BaseType extends UmbContextMinimal,
@@ -138,6 +136,9 @@ function setupStandardDecorator<
138136
* 1. addInitializer (if available, e.g., on LitElement classes)
139137
* 2. hostConnected wrapper (for UmbController classes)
140138
* 3. Warning (if neither is available)
139+
* @param protoOrTarget
140+
* @param propertyKey
141+
* @param context
141142
*/
142143
function setupLegacyDecorator<
143144
BaseType extends UmbContextMinimal,

src/Umbraco.Web.UI.Client/src/libs/observable-api/states/array-state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ export class UmbArrayState<T, U = unknown> extends UmbDeepState<T[]> {
267267
/**
268268
* @function replace
269269
* @param {Partial<T>} entires - data of entries to be replaced.
270+
* @param entries
270271
* @returns {UmbArrayState<T>} Reference to it self.
271272
* @description - Replaces one or more entries, requires the ArrayState to be constructed with a getUnique method.
272273
* @example <caption>Example append some data.</caption>

src/Umbraco.Web.UI.Client/src/packages/block/block-grid/components/block-grid-entries/block-grid-entries.context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ export class UmbBlockGridEntriesContext
284284
async #clipboardEntriesFilter(propertyValue: UmbBlockGridValueModel) {
285285
const allowedElementTypeKeys = this.#retrieveAllowedElementTypes().map((x) => x.contentElementTypeKey);
286286

287-
const rootContentKeys = propertyValue.layout[UMB_BLOCK_GRID_PROPERTY_EDITOR_SCHEMA_ALIAS]?.map((block) => block.contentKey) ?? [];
287+
const rootContentKeys =
288+
propertyValue.layout[UMB_BLOCK_GRID_PROPERTY_EDITOR_SCHEMA_ALIAS]?.map((block) => block.contentKey) ?? [];
288289
const rootContentTypeKeys = propertyValue.contentData
289290
.filter((content) => rootContentKeys.includes(content.key))
290291
.map((content) => content.contentTypeKey);

src/Umbraco.Web.UI.Client/src/packages/block/block-grid/workspace/views/block-grid-type-workspace-view-areas.element.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export class UmbBlockGridTypeWorkspaceViewAreasElement extends UmbLitElement imp
2222
await context?.propertyValueByAlias<undefined | string>('gridColumns'),
2323
(value) => {
2424
const dataTypeGridColumns = value ? parseInt(value, 10) : 12;
25-
this._areaColumnsConfigurationObject = [{ alias: 'placeholder', value: dataTypeGridColumns }, { alias: 'min', value: 1 }];
25+
this._areaColumnsConfigurationObject = [
26+
{ alias: 'placeholder', value: dataTypeGridColumns },
27+
{ alias: 'min', value: 1 },
28+
];
2629
this._areaConfigConfigurationObject = [{ alias: 'defaultAreaGridColumns', value: dataTypeGridColumns }];
2730
},
2831
'observeGridColumns',

src/Umbraco.Web.UI.Client/src/packages/block/block-list/context/block-list-manager.context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class UmbBlockListManagerContext<
3030
contentElementTypeKey: string,
3131
partialLayoutEntry?: Omit<BlockLayoutType, 'contentKey'>,
3232
// This property is used by some implementations, but not used in this. Do not remove. [NL]
33-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
33+
3434
_originData?: UmbBlockListWorkspaceOriginData,
3535
) {
3636
return await super._createBlockData(contentElementTypeKey, partialLayoutEntry);

src/Umbraco.Web.UI.Client/src/packages/block/block-rte/context/block-rte-manager.context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class UmbBlockRteManagerContext<
2727
contentElementTypeKey: string,
2828
partialLayoutEntry?: Omit<BlockLayoutType, 'contentKey'>,
2929
// This property is used by some implementations, but not used in this, do not remove. [NL]
30-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
30+
3131
_originData?: UmbBlockRteWorkspaceOriginData,
3232
) {
3333
const data = await super._createBlockData(contentElementTypeKey, partialLayoutEntry);

src/Umbraco.Web.UI.Client/src/packages/block/block-single/context/block-single-manager.context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class UmbBlockSingleManagerContext<
3030
contentElementTypeKey: string,
3131
partialLayoutEntry?: Omit<BlockLayoutType, 'contentKey'>,
3232
// This property is used by some implementations, but not used in this. Do not remove. [NL]
33-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
33+
3434
_originData?: UmbBlockSingleWorkspaceOriginData,
3535
) {
3636
return await super._createBlockData(contentElementTypeKey, partialLayoutEntry);

src/Umbraco.Web.UI.Client/src/packages/block/block-single/property-editors/block-single-editor/Umbraco.SingleBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { ManifestPropertyEditorSchema } from '@umbraco-cms/backoffice/property-editor';
21
import {
32
UMB_BLOCK_SINGLE_PROPERTY_EDITOR_SCHEMA_ALIAS,
43
UMB_BLOCK_SINGLE_PROPERTY_EDITOR_UI_ALIAS,
54
} from './constants.js';
5+
import type { ManifestPropertyEditorSchema } from '@umbraco-cms/backoffice/property-editor';
66

77
export const manifest: ManifestPropertyEditorSchema = {
88
type: 'propertyEditorSchema',

src/Umbraco.Web.UI.Client/src/packages/block/block-single/workspace/manifests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { UMB_BLOCK_SINGLE_TYPE } from '../constants.js';
12
import { manifests as workspaceViewManifests } from './views/manifests.js';
23
import { UMB_BLOCK_SINGLE_TYPE_WORKSPACE_ALIAS } from './index.js';
3-
import { UMB_BLOCK_SINGLE_TYPE } from '../constants.js';
44

55
export const manifests: Array<UmbExtensionManifest> = [
66
...workspaceViewManifests,

0 commit comments

Comments
 (0)