refactor(editor): separate lit and slot in global (#10666)

This commit is contained in:
Saul-Mirone
2025-03-06 10:24:59 +00:00
parent 56b842f2e1
commit 84e2dda3f8
322 changed files with 366 additions and 353 deletions

View File

@@ -16,7 +16,9 @@
"./exceptions": "./src/exceptions/index.ts",
"./di": "./src/di/index.ts",
"./types": "./src/types/index.ts",
"./gfx": "./src/gfx/index.ts"
"./gfx": "./src/gfx/index.ts",
"./slot": "./src/slot/index.ts",
"./lit": "./src/lit/index.ts"
},
"typesVersions": {
"*": {
@@ -37,6 +39,12 @@
],
"gfx": [
"dist/gfx/index.d.ts"
],
"slot": [
"dist/slot/index.d.ts"
],
"lit": [
"dist/lit/index.d.ts"
]
}
},

View File

@@ -1,6 +1,6 @@
import { describe, expect, test, vi } from 'vitest';
import { Slot } from '../utils/slot.js';
import { Slot } from '../slot/slot.js';
describe('slot', () => {
test('init', () => {

View File

@@ -0,0 +1,2 @@
export * from './signal-watcher.js';
export * from './with-disposable.js';

View File

@@ -1,7 +1,7 @@
import type { LitElement } from 'lit';
import { DisposableGroup } from './disposable.js';
import type { Constructor } from './types.js';
import { DisposableGroup } from '../slot/disposable.js';
import type { Constructor } from '../utils/types.js';
// See https://lit.dev/docs/composition/mixins/#mixins-in-typescript
// This definition should be exported, see https://github.com/microsoft/TypeScript/issues/30355#issuecomment-839834550

View File

@@ -0,0 +1,2 @@
export * from './disposable.js';
export * from './slot.js';

View File

@@ -1,8 +1,4 @@
export * from './crypto.js';
export * from './disposable.js';
export * from './function.js';
export * from './logger.js';
export * from './signal-watcher.js';
export * from './slot.js';
export * from './types.js';
export * from './with-disposable.js';