-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add a build script for each package. - Add a test:types script for each package. - Upgrade TypeScript. - Reconfigure TypeScript. - Update the implementation of HTML components. - Change a new resource's configuration file to the YAML format. - Remove some unused packages. - Update several type-related packages. - Move stories out of the packages.
- Loading branch information
1 parent
4db6257
commit 172d155
Showing
758 changed files
with
5,589 additions
and
6,460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../tsconfig.build.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"include": ["lib"] | ||
"extends": "../../tsconfig.base.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../tsconfig.build.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"include": ["lib"] | ||
"extends": "../../tsconfig.base.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,19 @@ | ||
import {ComboboxContainer} from "./element.ts" | ||
import { | ||
ComboboxContainer, | ||
} from "./element.ts" | ||
import { | ||
ComboboxContainerChangeEvent, | ||
type ComboboxContainerChangeEventListener, | ||
ComboboxContainerChangedEvent, | ||
type ComboboxContainerChangedEventListener, | ||
type GlobalComboboxContainerChangeHandler, | ||
type GlobalComboboxContainerChangedHandler, | ||
} from "./events.ts" | ||
|
||
declare global { | ||
interface Window { | ||
ComboboxContainer: typeof ComboboxContainer | ||
ComboboxContainerChangeEvent: typeof ComboboxContainerChangeEvent | ||
ComboboxContainerChangedEvent: typeof ComboboxContainerChangedEvent | ||
} | ||
|
||
interface HTMLElementTagNameMap { | ||
"combobox-container": ComboboxContainer | ||
} | ||
|
||
namespace preact { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
"combobox-container": HTMLAttributes<ComboboxContainer> | ||
} | ||
} | ||
} | ||
|
||
interface GlobalEventHandlersEventMap { | ||
comboboxcontainerchange: ComboboxContainerChangeEventListener | ||
comboboxcontainerchanged: ComboboxContainerChangedEventListener | ||
} | ||
|
||
interface GlobalEventHandlers { | ||
oncomboboxcontainerchange: GlobalComboboxContainerChangeHandler | null | ||
oncomboboxcontainerchanged: GlobalComboboxContainerChangedHandler | null | ||
} | ||
} | ||
|
||
export function define(): void { | ||
if (window.customElements.get(ComboboxContainer.tagName)) { | ||
return | ||
} | ||
|
||
window.ComboboxContainer = ComboboxContainer | ||
window.customElements.define(ComboboxContainer.tagName, ComboboxContainer) | ||
|
||
window.ComboboxContainerChangeEvent = ComboboxContainerChangeEvent | ||
window.ComboboxContainerChangedEvent = ComboboxContainerChangedEvent | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* eslint @stylistic/max-len: ["error", {code: 140}] */ | ||
|
||
import { | ||
type ComboboxContainer, | ||
} from "./element.ts" | ||
import { | ||
type ComboboxContainerChangeEvent, | ||
type ComboboxContainerChangedEvent, | ||
type GlobalComboboxContainerChangeEventHandler, | ||
type GlobalComboboxContainerChangedEventHandler, | ||
} from "./events.ts" | ||
import { | ||
type ComboboxContainerAttributeMap, | ||
} from "./types.ts" | ||
|
||
declare global { | ||
namespace preact { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
[ComboboxContainer.tagName]: HTMLAttributes<ComboboxContainer> & Partial<ComboboxContainerAttributeMap> | ||
} | ||
} | ||
} | ||
|
||
interface Window { | ||
ComboboxContainer: typeof ComboboxContainer | ||
ComboboxContainerChangeEvent: typeof ComboboxContainerChangeEvent | ||
ComboboxContainerChangedEvent: typeof ComboboxContainerChangedEvent | ||
} | ||
|
||
interface HTMLElementTagNameMap { | ||
[ComboboxContainer.tagName]: ComboboxContainer | ||
} | ||
|
||
interface GlobalEventHandlersEventMap { | ||
[ComboboxContainerChangeEvent.type]: ComboboxContainerChangeEvent | ||
[ComboboxContainerChangedEvent.type]: ComboboxContainerChangedEvent | ||
} | ||
|
||
interface GlobalEventHandlers { | ||
[ComboboxContainerChangeEvent.handlerName]: GlobalComboboxContainerChangeEventHandler | null | ||
[ComboboxContainerChangedEvent.handlerName]: GlobalComboboxContainerChangedEventHandler | null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import {define} from "./define.ts" | ||
|
||
export * from "./element.ts" | ||
export * from "./events.ts" | ||
export * from "./global.ts" | ||
export * from "./types.ts" | ||
|
||
define() |
Oops, something went wrong.