Skip to content

Commit

Permalink
Merge branch 'main' into v15/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Sep 12, 2024
2 parents dbfee9c + 861b761 commit 97ee4cd
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 23 deletions.
5 changes: 3 additions & 2 deletions devops/tsconfig/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js
const tsConfigBase = {
compilerOptions: {
module: 'esnext',
moduleResolution: 'bundler',
moduleDetection: 'force',
verbatimModuleSyntax: true,
target: 'es2022',
lib: ['es2022', 'dom', 'dom.iterable'],
outDir: './types',
Expand All @@ -29,8 +32,6 @@ const tsConfigBase = {
incremental: true,
skipLibCheck: true,
noImplicitOverride: true,
/* Bundler mode */
moduleResolution: 'bundler',
allowImportingTsExtensions: true,
resolveJsonModule: true,
isolatedModules: true,
Expand Down
3 changes: 1 addition & 2 deletions examples/sorter-with-nested-containers/sorter-item.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
import { css, html, customElement, LitElement, state, repeat, property } from '@umbraco-cms/backoffice/external/lit';
import { css, html, customElement, LitElement, property } from '@umbraco-cms/backoffice/external/lit';
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
import { UmbSorterConfig, UmbSorterController } from '@umbraco-cms/backoffice/sorter';

@customElement('example-sorter-item')
export class ExampleSorterItem extends UmbElementMixin(LitElement) {
Expand Down
4 changes: 2 additions & 2 deletions examples/sorter-with-two-containers/sorter-group.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type ExampleSorterItem from './sorter-item.js';
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
import { css, html, customElement, LitElement, repeat, property } from '@umbraco-cms/backoffice/external/lit';
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
import { UmbSorterConfig, UmbSorterController } from '@umbraco-cms/backoffice/sorter';
import { UmbSorterController } from '@umbraco-cms/backoffice/sorter';

import './sorter-item.js';
import ExampleSorterItem from './sorter-item.js';

export type ModelEntryType = {
name: string;
Expand Down
3 changes: 1 addition & 2 deletions examples/sorter-with-two-containers/sorter-item.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
import { css, html, customElement, LitElement, state, repeat, property } from '@umbraco-cms/backoffice/external/lit';
import { css, html, customElement, LitElement, property } from '@umbraco-cms/backoffice/external/lit';
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
import { UmbSorterConfig, UmbSorterController } from '@umbraco-cms/backoffice/sorter';

@customElement('example-sorter-item')
export class ExampleSorterItem extends UmbElementMixin(LitElement) {
Expand Down
2 changes: 1 addition & 1 deletion src/external/router-slot/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PathMatch } from './model.js';
import type { PathMatch } from './model.js';

export const CATCH_ALL_WILDCARD: string = '**';
export const TRAVERSE_FLAG: string = '\\.\\.\\/';
Expand Down
2 changes: 1 addition & 1 deletion src/external/router-slot/router-slot.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GLOBAL_ROUTER_EVENTS_TARGET, ROUTER_SLOT_TAG_NAME } from './config.js';
import {
import type {
Cancel,
EventListenerSubscription,
GlobalRouterEvent,
Expand Down
4 changes: 2 additions & 2 deletions src/external/router-slot/util/events.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GLOBAL_ROUTER_EVENTS_TARGET } from '../config';
import { EventListenerSubscription, GlobalRouterEvent, IRoute, IRoutingInfo } from '../model';
import { GLOBAL_ROUTER_EVENTS_TARGET } from '../config.js';
import type { EventListenerSubscription, GlobalRouterEvent, IRoute, IRoutingInfo } from '../model.js';

/**
* Dispatches a did change route event.
Expand Down
6 changes: 3 additions & 3 deletions src/external/router-slot/util/history.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GLOBAL_ROUTER_EVENTS_TARGET, HISTORY_PATCH_NATIVE_KEY } from '../config';
import { GlobalRouterEvent } from '../model';
import { dispatchGlobalRouterEvent } from './events';
import { GLOBAL_ROUTER_EVENTS_TARGET, HISTORY_PATCH_NATIVE_KEY } from '../config.js';
import type { GlobalRouterEvent } from '../model.js';
import { dispatchGlobalRouterEvent } from './events.js';

// Mapping a history functions to the events they are going to dispatch.
export const historyPatches: [string, GlobalRouterEvent[]][] = [
Expand Down
8 changes: 4 additions & 4 deletions src/external/router-slot/util/router.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CATCH_ALL_WILDCARD, DEFAULT_PATH_MATCH, PARAM_IDENTIFIER, TRAVERSE_FLAG } from '../config';
import {
import { CATCH_ALL_WILDCARD, DEFAULT_PATH_MATCH, PARAM_IDENTIFIER, TRAVERSE_FLAG } from '../config.js';
import type {
IComponentRoute,
IRedirectRoute,
IResolverRoute,
Expand All @@ -12,8 +12,8 @@ import {
PathFragment,
RouterTree,
IRoutingInfo,
} from '../model';
import { constructPathWithBasePath, path as getPath, queryString, stripSlash } from './url';
} from '../model.js';
import { constructPathWithBasePath, path as getPath, queryString, stripSlash } from './url.js';

/**
* Determines whether the path is active.
Expand Down
4 changes: 2 additions & 2 deletions src/external/router-slot/util/shadow.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ROUTER_SLOT_TAG_NAME } from '../config';
import { IRouterSlot } from '../model';
import { ROUTER_SLOT_TAG_NAME } from '../config.js';
import type { IRouterSlot } from '../model.js';

/**
* Queries the parent router.
Expand Down
2 changes: 1 addition & 1 deletion src/external/router-slot/util/url.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ISlashOptions, Params, Query } from '../model';
import type { ISlashOptions, Query } from '../model.js';

const $anchor = document.createElement('a');

Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js
{
"compilerOptions": {
"module": "esnext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"verbatimModuleSyntax": true,
"target": "es2022",
"lib": ["es2022", "dom", "dom.iterable"],
"outDir": "./types",
Expand All @@ -21,7 +24,6 @@ DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js
"incremental": true,
"skipLibCheck": true,
"noImplicitOverride": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
Expand Down

0 comments on commit 97ee4cd

Please sign in to comment.