Merge branch 'feature/extension-manager' of https://github.com/umbraco/Umbraco.CMS.Backoffice into feature/extension-manager

This commit is contained in:
Niels Lyngsø
2023-08-03 14:30:06 +02:00
8 changed files with 37 additions and 10 deletions

View File

@@ -200,7 +200,7 @@ module.exports = {
},
},
/** @type {import('eslint').RuleModule}*/
/** @type {import('eslint').Rule.RuleModule}*/
'prefer-static-styles-last': {
meta: {
type: 'suggestion',
@@ -247,7 +247,7 @@ module.exports = {
},
},
/** @type {import('eslint').RuleModule}*/
/** @type {import('eslint').Rule.RuleModule}*/
'ensure-relative-import-use-js-extension': {
meta: {
type: 'problem',
@@ -308,6 +308,33 @@ module.exports = {
});
}
},
ExportAllDeclaration: (node) => {
const { source } = node;
const { value } = source;
const fixedSource = correctImport(value);
if (fixedSource) {
context.report({
node: source,
message: 'Relative exports should use the ".js" file extension.',
fix: (fixer) => fixer.replaceText(source, `'${fixedSource}'`),
});
}
},
ExportNamedDeclaration: (node) => {
const { source } = node;
if (!source) return;
const { value } = source;
const fixedSource = correctImport(value);
if (fixedSource) {
context.report({
node: source,
message: 'Relative exports should use the ".js" file extension.',
fix: (fixer) => fixer.replaceText(source, `'${fixedSource}'`),
});
}
}
};
},
},

View File

@@ -1,9 +1,9 @@
import type { UmbLocalizeController } from '@umbraco-cms/backoffice/localization-api';
import type { HTMLElementConstructor } from '../extension-api/types.js';
import type { UmbControllerAlias } from './controller-alias.type.js';
import { UmbControllerHostBaseMixin } from './controller-host-base.mixin.js';
import type { UmbControllerHost } from './controller-host.interface.js';
import type { UmbController } from './controller.interface.js';
import type { UmbLocalizeController } from '@umbraco-cms/backoffice/localization-api';
export declare class UmbControllerHostElement extends HTMLElement implements UmbControllerHost {
/**

View File

@@ -1,2 +1,2 @@
export * from './extension-condition.interface';
export * from './condition-controller-arguments.type';
export * from './extension-condition.interface.js';
export * from './condition-controller-arguments.type.js';

View File

@@ -1 +1 @@
export * from './workspace-property-data.type';
export * from './workspace-property-data.type.js';

View File

@@ -1 +1 @@
export * from './repository';
export * from './repository/index.js';

View File

@@ -1,2 +1,2 @@
export * from './repository/';
export * from './repository/index.js';
export * from './components/index.js';

View File

@@ -1,7 +1,7 @@
import { UmbDictionaryRepository } from '@umbraco-cms/backoffice/dictionary';
import { UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS } from '../../modals/manifests.js';
import { getInsertDictionarySnippet, getInsertPartialSnippet } from '../../utils.js';
import { ChooseInsertTypeModalResult, CodeSnippetType } from '../../modals/insert-choose-type-sidebar.element.js';
import { UmbDictionaryRepository } from '@umbraco-cms/backoffice/dictionary';
import { customElement, property, css, html } from '@umbraco-cms/backoffice/external/lit';
import { UUITextStyles } from '@umbraco-cms/backoffice/external/uui';
import {

View File

@@ -1 +1 @@
export * from './repository';
export * from './repository/index.js';