dothtml-interfaces 6.0.8 → 6.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/bindings/i-watcher.ts +2 -2
- package/src/i-dot-component.ts +1 -1
- package/src/i-event-bus.ts +5 -5
- package/src/index.ts +9 -9
- package/src/styles/i-dot-css.ts +1 -3
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -24,8 +24,8 @@ export interface IWatcher<T = any>{
|
|
|
24
24
|
*/
|
|
25
25
|
subscribe(callback: Function): number;
|
|
26
26
|
|
|
27
|
-
_subscribe(boundReactive: IBinding, item: any);
|
|
28
|
-
_detachBinding(id: number);
|
|
27
|
+
_subscribe(boundReactive: IBinding, item: any): number;
|
|
28
|
+
_detachBinding(id: number): void;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Called manually by the user to trigger an update.
|
package/src/i-dot-component.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface FrameworkItems {
|
|
|
9
9
|
* The shadow root element of the component.
|
|
10
10
|
*/
|
|
11
11
|
readonly refs: { [key: string]: HTMLElement };
|
|
12
|
-
emit
|
|
12
|
+
emit(event: string, ...args: Array<any>): void;
|
|
13
13
|
restyle(): void;
|
|
14
14
|
readonly props: Record<string, any>;
|
|
15
15
|
readonly cvdom: any;
|
package/src/i-event-bus.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
export default interface IEventBus{
|
|
3
3
|
|
|
4
|
-
on (event, callback);
|
|
4
|
+
on (event: string, callback: Function): void;
|
|
5
5
|
|
|
6
|
-
off (event, callback);
|
|
6
|
+
off (event: string, callback: Function): void;
|
|
7
7
|
|
|
8
|
-
emit (event, ...args);
|
|
8
|
+
emit (event: string, ...args: any[]): void;
|
|
9
9
|
|
|
10
|
-
flush (event);
|
|
11
|
-
}
|
|
10
|
+
flush (event: string): void;
|
|
11
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { IDotCore } from "./i-dot";
|
|
|
2
2
|
|
|
3
3
|
export * from "./i-dot";
|
|
4
4
|
|
|
5
|
-
export { default as IDotCss } from "./styles/i-dot-css";
|
|
5
|
+
export type { default as IDotCss } from "./styles/i-dot-css";
|
|
6
6
|
export * from "./styles/i-dot-css";
|
|
7
|
-
export { default as IDotcssProp } from "./styles/i-css-prop";
|
|
8
|
-
export { IDotStyleBuilder } from "./styles/i-dot-style-builder";
|
|
7
|
+
export type { default as IDotcssProp } from "./styles/i-css-prop";
|
|
8
|
+
export type { IDotStyleBuilder } from "./styles/i-dot-style-builder";
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
export { default as IDotComponent, FrameworkItems } from "./i-dot-component";
|
|
11
|
+
export type { default as IDotComponent, FrameworkItems } from "./i-dot-component";
|
|
12
12
|
|
|
13
|
-
export { IWatcher } from "./bindings/i-watcher";
|
|
14
|
-
export { IObserver } from "./bindings/i-observer";
|
|
15
|
-
export { IBinding } from "./bindings/i-binding";
|
|
16
|
-
export { IReactive } from "./bindings/i-reactive";
|
|
17
|
-
export { default as IEventBus } from "./i-event-bus";
|
|
13
|
+
export type { IWatcher } from "./bindings/i-watcher";
|
|
14
|
+
export type { IObserver } from "./bindings/i-observer";
|
|
15
|
+
export type { IBinding } from "./bindings/i-binding";
|
|
16
|
+
export type { IReactive } from "./bindings/i-reactive";
|
|
17
|
+
export type { default as IEventBus } from "./i-event-bus";
|
package/src/styles/i-dot-css.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
import IAtColorProfileBuilder from "./at-rules/i-at-color-profile-builder";
|
|
4
5
|
import IAtCounterStyleBuilder from "./at-rules/i-at-counter-style-builder";
|
|
5
6
|
import IAtFontPaletteValues from "./at-rules/i-at-font-palette-values";
|
|
@@ -45,9 +46,6 @@ import { IDotStyleBuilder } from "./i-dot-style-builder";
|
|
|
45
46
|
// type HueRotateFunction = `hue-rotate(${Angle|""})`;
|
|
46
47
|
// type FilterFunction = SaturateFunction|SepiaFunction|OpacityFunction|InvertFunction|GrayscaleFunction|ContrastFunction|BrightnessFunction|BlurFunction|DropShadowFunction|HueRotateFunction;
|
|
47
48
|
|
|
48
|
-
// FLEX
|
|
49
|
-
type Flex = `${number}fr`;
|
|
50
|
-
|
|
51
49
|
// FONT
|
|
52
50
|
|
|
53
51
|
// type GenericFamily = "serif" | "sans-serif" | "monospace" | "cursive" | "fantasy" | "system-ui" | "ui-serif" | "ui-sans-serif" | "ui-monospace" | "ui-rounded" | "emoji" | "math" | "fangsong";
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* GENERATED CONTENT */
|
|
2
|
-
export const VERSION = "6.0.
|
|
2
|
+
export const VERSION = "6.0.9" as const;
|