@oinone/kunlun-event 6.4.3 → 7.2.0

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.
Files changed (62) hide show
  1. package/dist/oinone-kunlun-event.esm.js +1 -15
  2. package/dist/types/index.d.ts +1 -1
  3. package/dist/types/src/bus/abstract/AbstractEventConsumer.d.ts +17 -17
  4. package/dist/types/src/bus/abstract/AbstractEventEngine.d.ts +21 -21
  5. package/dist/types/src/bus/abstract/AbstractEventProducer.d.ts +15 -15
  6. package/dist/types/src/bus/abstract/index.d.ts +2 -2
  7. package/dist/types/src/bus/bus/basic.d.ts +12 -12
  8. package/dist/types/src/bus/bus/html-event.d.ts +6 -6
  9. package/dist/types/src/bus/bus/html-keyboard-event.d.ts +6 -6
  10. package/dist/types/src/bus/bus/index.d.ts +18 -18
  11. package/dist/types/src/bus/hook/consumer.d.ts +1 -1
  12. package/dist/types/src/bus/hook/index.d.ts +2 -2
  13. package/dist/types/src/bus/hook/producer.d.ts +1 -1
  14. package/dist/types/src/bus/index.d.ts +5 -5
  15. package/dist/types/src/bus/operator/consumer.d.ts +11 -11
  16. package/dist/types/src/bus/operator/index.d.ts +2 -2
  17. package/dist/types/src/bus/operator/producer.d.ts +10 -10
  18. package/dist/types/src/bus/spi/consumer.d.ts +8 -8
  19. package/dist/types/src/bus/spi/index.d.ts +2 -2
  20. package/dist/types/src/bus/spi/producer.d.ts +8 -8
  21. package/dist/types/src/bus/typing/basic.d.ts +64 -64
  22. package/dist/types/src/bus/typing/category.d.ts +5 -5
  23. package/dist/types/src/bus/typing/index.d.ts +3 -3
  24. package/dist/types/src/bus/typing/keyboard.d.ts +16 -16
  25. package/dist/types/src/effects/effectbox.d.ts +3 -3
  26. package/dist/types/src/effects/fieldEffects.d.ts +61 -61
  27. package/dist/types/src/effects/index.d.ts +2 -2
  28. package/dist/types/src/effects/viewEffects.d.ts +69 -69
  29. package/dist/types/src/helper.d.ts +14 -14
  30. package/dist/types/src/html-event/basic/AbstractHTMLEventProducer.d.ts +7 -7
  31. package/dist/types/src/html-event/basic/HTMLEventConsumer.d.ts +4 -4
  32. package/dist/types/src/html-event/basic/HTMLEventProducer.d.ts +5 -5
  33. package/dist/types/src/html-event/basic/index.d.ts +3 -3
  34. package/dist/types/src/html-event/index.d.ts +2 -2
  35. package/dist/types/src/html-event/keyboard/HTMLKeyboardEventConsumer.d.ts +14 -14
  36. package/dist/types/src/html-event/keyboard/HTMLKeyboardEventProducer.d.ts +16 -16
  37. package/dist/types/src/html-event/keyboard/index.d.ts +2 -2
  38. package/dist/types/src/index.d.ts +6 -6
  39. package/dist/types/src/lifecycle/heart.d.ts +75 -75
  40. package/dist/types/src/lifecycle/index.d.ts +2 -2
  41. package/dist/types/src/lifecycle/lifecycle.d.ts +7 -7
  42. package/dist/types/src/typing/index.d.ts +1 -1
  43. package/dist/types/src/typing/lifecycle.d.ts +92 -92
  44. package/package.json +20 -9
  45. package/src/bus/abstract/AbstractEventConsumer.ts +1 -9
  46. package/src/bus/abstract/AbstractEventEngine.ts +1 -1
  47. package/src/bus/abstract/AbstractEventProducer.ts +1 -8
  48. package/src/bus/bus/basic.ts +1 -10
  49. package/src/bus/bus/html-event.ts +1 -9
  50. package/src/bus/bus/html-keyboard-event.ts +1 -9
  51. package/src/bus/operator/consumer.ts +1 -8
  52. package/src/bus/operator/producer.ts +1 -1
  53. package/src/bus/spi/consumer.ts +2 -2
  54. package/src/bus/spi/producer.ts +2 -2
  55. package/src/bus/typing/basic.ts +1 -1
  56. package/src/bus/typing/keyboard.ts +1 -1
  57. package/src/html-event/basic/AbstractHTMLEventProducer.ts +1 -1
  58. package/src/html-event/basic/HTMLEventConsumer.ts +1 -10
  59. package/src/html-event/basic/HTMLEventProducer.ts +1 -1
  60. package/src/html-event/keyboard/HTMLKeyboardEventConsumer.ts +1 -13
  61. package/src/html-event/keyboard/HTMLKeyboardEventProducer.ts +1 -10
  62. package/rollup.config.js +0 -4
@@ -1,7 +1,7 @@
1
- declare class LifeCycle<Context = any> {
2
- private listener;
3
- constructor(callback?: (ctx: Context) => void);
4
- private buildListener;
5
- notify(ctx: Context): void;
6
- }
7
- export { LifeCycle };
1
+ declare class LifeCycle<Context = any> {
2
+ private listener;
3
+ constructor(callback?: (ctx: Context) => void);
4
+ private buildListener;
5
+ notify(ctx: Context): void;
6
+ }
7
+ export { LifeCycle };
@@ -1 +1 @@
1
- export * from './lifecycle';
1
+ export * from './lifecycle';
@@ -1,92 +1,92 @@
1
- export declare enum RegistryType {
2
- FIELD = "Field",
3
- VIEW = "View",
4
- ACTION = "Action"
5
- }
6
- export declare enum LifeCycleTypes {
7
- /**
8
- * View LifeCycle
9
- * */
10
- ON_VIEW_BEFORE_CREATED = "onViewBeforeCreated",
11
- ON_VIEW_CREATED = "onViewCreated",
12
- ON_VIEW_BEFORE_MOUNT = "onViewBeforeMount",
13
- ON_VIEW_MOUNTED = "onViewMounted",
14
- ON_VIEW_BEFORE_UPDATE = "onViewBeforeUpdate",
15
- ON_VIEW_UPDATED = "onViewUpdated",
16
- ON_VIEW_ACTIVATED = "onViewActivated",
17
- ON_VIEW_BEFORE_UNMOUNT = "onViewBeforeUnmount",
18
- ON_VIEW_UNMOUNTED = "onViewUnmounted",
19
- ON_VIEW_SUBMIT = "onViewSubmit",
20
- ON_VIEW_SUBMIT_START = "onViewSubmitStart",
21
- ON_VIEW_SUBMIT_END = "onViewSubmitEnd",
22
- ON_VIEW_SUBMIT_SUCCESS = "onViewSubmitSuccess",
23
- ON_VIEW_SUBMIT_FAILED = "onViewSubmitFailed",
24
- ON_VIEW_VALIDATE_START = "onViewValidateStart",
25
- ON_VIEW_VALIDATE_SUCCESS = "onViewValidateSuccess",
26
- ON_VIEW_VALIDATE_FAILED = "onViewValidateFailed",
27
- ON_VIEW_VALIDATE_END = "onViewValidateEnd",
28
- /**
29
- * Field LifeCycle
30
- * */
31
- ON_FIELD_BEFORE_CREATED = "onFieldBeforeCreated",
32
- ON_FIELD_CREATED = "onFieldCreated",
33
- ON_FIELD_BEFORE_MOUNT = "onFieldBeforeMount",
34
- ON_FIELD_MOUNTED = "onFieldMounted",
35
- ON_FIELD_BEFORE_UPDATE = "onFieldBeforeUpdate",
36
- ON_FIELD_UPDATED = "onFieldUpdated",
37
- ON_FIELD_ACTIVATED = "onFieldActivated",
38
- ON_FIELD_BEFORE_UNMOUNT = "onFieldBeforeUnmount",
39
- ON_FIELD_UNMOUNTED = "onFieldUnmounted",
40
- ON_FIELD_FOCUS = "onFieldFocus",
41
- ON_FIELD_CHANGE = "onFieldChange",
42
- ON_FIELD_BLUR = "onFieldBlur",
43
- ON_FIELD_VALIDATE_START = "onFieldValidateStart",
44
- ON_FIELD_VALIDATE_SUCCESS = "onFieldValidateSuccess",
45
- ON_FIELD_VALIDATE_FAILED = "onFieldValidateFailed",
46
- ON_FIELD_VALIDATE_END = "onFieldValidateEnd"
47
- }
48
- /**
49
- * View internal event
50
- */
51
- export declare enum ViewEventNames {
52
- viewBeforeCreated = "onViewBeforeCreated",
53
- viewCreated = "onViewCreated",
54
- viewBeforeMount = "onViewBeforeMount",
55
- viewMounted = "onViewMounted",
56
- viewBeforeUpdate = "onViewBeforeUpdate",
57
- viewUpdated = "onViewUpdated",
58
- viewActivated = "onViewActivated",
59
- viewBeforeUnmount = "onViewBeforeUnmount",
60
- viewUnmounted = "onViewUnmounted",
61
- viewSubmit = "onViewSubmit",
62
- viewSubmitStart = "onViewSubmitStart",
63
- viewSubmitEnd = "onViewSubmitEnd",
64
- viewSubmitSuccess = "onViewSubmitSuccess",
65
- viewSubmitFailed = "onViewSubmitFailed",
66
- viewValidateStart = "onViewValidateStart",
67
- viewValidateSuccess = "onViewValidateSuccess",
68
- viewValidateFailed = "onViewValidateFailed",
69
- viewValidateEnd = "onViewValidateEnd"
70
- }
71
- export declare type ViewEventName = keyof typeof ViewEventNames;
72
- /**
73
- * Field internal event
74
- */
75
- export declare enum FieldEventNames {
76
- beforeCreated = "onFieldBeforeCreated",
77
- created = "onFieldCreated",
78
- beforeMount = "onFieldBeforeMount",
79
- mount = "onFieldMounted",
80
- beforeUpdate = "onFieldBeforeUpdate",
81
- updated = "onViewUpdated",
82
- beforeUnmount = "onFieldBeforeUnmount",
83
- unmounted = "onFieldUnmounted",
84
- focus = "onFieldFocus",
85
- change = "onFieldChange",
86
- blur = "onFieldBlur",
87
- validateStart = "onFieldValidateStart",
88
- validateSuccess = "onFieldValidateSuccess",
89
- validateFailed = "onFieldValidateFailed",
90
- validateEnd = "onFieldValidateEnd"
91
- }
92
- export declare type FieldEventName = keyof typeof FieldEventNames;
1
+ export declare enum RegistryType {
2
+ FIELD = "Field",
3
+ VIEW = "View",
4
+ ACTION = "Action"
5
+ }
6
+ export declare enum LifeCycleTypes {
7
+ /**
8
+ * View LifeCycle
9
+ * */
10
+ ON_VIEW_BEFORE_CREATED = "onViewBeforeCreated",// 创建之前
11
+ ON_VIEW_CREATED = "onViewCreated",// 创建成功
12
+ ON_VIEW_BEFORE_MOUNT = "onViewBeforeMount",// 挂载前
13
+ ON_VIEW_MOUNTED = "onViewMounted",// 挂载成功
14
+ ON_VIEW_BEFORE_UPDATE = "onViewBeforeUpdate",// 修改前
15
+ ON_VIEW_UPDATED = "onViewUpdated",// 修改后
16
+ ON_VIEW_ACTIVATED = "onViewActivated",
17
+ ON_VIEW_BEFORE_UNMOUNT = "onViewBeforeUnmount",// 销毁前
18
+ ON_VIEW_UNMOUNTED = "onViewUnmounted",// 销毁
19
+ ON_VIEW_SUBMIT = "onViewSubmit",// 提交数据
20
+ ON_VIEW_SUBMIT_START = "onViewSubmitStart",// 数据提交前
21
+ ON_VIEW_SUBMIT_END = "onViewSubmitEnd",// 数据提交后
22
+ ON_VIEW_SUBMIT_SUCCESS = "onViewSubmitSuccess",// 数据提交成功
23
+ ON_VIEW_SUBMIT_FAILED = "onViewSubmitFailed",// 数据提交失败
24
+ ON_VIEW_VALIDATE_START = "onViewValidateStart",// 字段校验前
25
+ ON_VIEW_VALIDATE_SUCCESS = "onViewValidateSuccess",// 字段校验成功
26
+ ON_VIEW_VALIDATE_FAILED = "onViewValidateFailed",// 字段校验失败
27
+ ON_VIEW_VALIDATE_END = "onViewValidateEnd",// 字段校验结束
28
+ /**
29
+ * Field LifeCycle
30
+ * */
31
+ ON_FIELD_BEFORE_CREATED = "onFieldBeforeCreated",// 创建之前
32
+ ON_FIELD_CREATED = "onFieldCreated",// 创建成功
33
+ ON_FIELD_BEFORE_MOUNT = "onFieldBeforeMount",// 挂载前
34
+ ON_FIELD_MOUNTED = "onFieldMounted",// 挂载成功
35
+ ON_FIELD_BEFORE_UPDATE = "onFieldBeforeUpdate",// 修改前
36
+ ON_FIELD_UPDATED = "onFieldUpdated",// 修改后
37
+ ON_FIELD_ACTIVATED = "onFieldActivated",
38
+ ON_FIELD_BEFORE_UNMOUNT = "onFieldBeforeUnmount",// 销毁前
39
+ ON_FIELD_UNMOUNTED = "onFieldUnmounted",// 销毁
40
+ ON_FIELD_FOCUS = "onFieldFocus",// 字段获取焦点
41
+ ON_FIELD_CHANGE = "onFieldChange",// 字段数据发生了改变
42
+ ON_FIELD_BLUR = "onFieldBlur",// 字段失焦
43
+ ON_FIELD_VALIDATE_START = "onFieldValidateStart",// 字段校验前
44
+ ON_FIELD_VALIDATE_SUCCESS = "onFieldValidateSuccess",// 字段校验成功
45
+ ON_FIELD_VALIDATE_FAILED = "onFieldValidateFailed",// 字段校验失败
46
+ ON_FIELD_VALIDATE_END = "onFieldValidateEnd"
47
+ }
48
+ /**
49
+ * View internal event
50
+ */
51
+ export declare enum ViewEventNames {
52
+ viewBeforeCreated = "onViewBeforeCreated",
53
+ viewCreated = "onViewCreated",
54
+ viewBeforeMount = "onViewBeforeMount",
55
+ viewMounted = "onViewMounted",
56
+ viewBeforeUpdate = "onViewBeforeUpdate",
57
+ viewUpdated = "onViewUpdated",
58
+ viewActivated = "onViewActivated",
59
+ viewBeforeUnmount = "onViewBeforeUnmount",
60
+ viewUnmounted = "onViewUnmounted",
61
+ viewSubmit = "onViewSubmit",
62
+ viewSubmitStart = "onViewSubmitStart",
63
+ viewSubmitEnd = "onViewSubmitEnd",
64
+ viewSubmitSuccess = "onViewSubmitSuccess",
65
+ viewSubmitFailed = "onViewSubmitFailed",
66
+ viewValidateStart = "onViewValidateStart",
67
+ viewValidateSuccess = "onViewValidateSuccess",
68
+ viewValidateFailed = "onViewValidateFailed",
69
+ viewValidateEnd = "onViewValidateEnd"
70
+ }
71
+ export type ViewEventName = keyof typeof ViewEventNames;
72
+ /**
73
+ * Field internal event
74
+ */
75
+ export declare enum FieldEventNames {
76
+ beforeCreated = "onFieldBeforeCreated",
77
+ created = "onFieldCreated",
78
+ beforeMount = "onFieldBeforeMount",
79
+ mount = "onFieldMounted",
80
+ beforeUpdate = "onFieldBeforeUpdate",
81
+ updated = "onViewUpdated",
82
+ beforeUnmount = "onFieldBeforeUnmount",
83
+ unmounted = "onFieldUnmounted",
84
+ focus = "onFieldFocus",
85
+ change = "onFieldChange",
86
+ blur = "onFieldBlur",
87
+ validateStart = "onFieldValidateStart",
88
+ validateSuccess = "onFieldValidateSuccess",
89
+ validateFailed = "onFieldValidateFailed",
90
+ validateEnd = "onFieldValidateEnd"
91
+ }
92
+ export type FieldEventName = keyof typeof FieldEventNames;
package/package.json CHANGED
@@ -1,19 +1,30 @@
1
1
  {
2
2
  "name": "@oinone/kunlun-event",
3
- "version": "6.4.3",
4
- "main": "index.ts",
3
+ "version": "7.2.0",
4
+ "type": "module",
5
+ "main": "dist/oinone-kunlun-event.esm.js",
5
6
  "scripts": {
6
7
  "prebuild": "rimraf dist",
7
8
  "build": "rollup -c",
8
9
  "dist": "npm run prepublishOnly",
9
10
  "index": "npm run postpublish",
10
- "x-prepublishOnly": "node ../../scripts/prepublish-only.js",
11
- "x-postpublish": "node ../../scripts/postpublish.js"
11
+ "format": "prettier --write --experimental-cli src/",
12
+ "test": "jest",
13
+ "prepublishOnly": "node ../../../../scripts/prepublish-only.cjs",
14
+ "deploy": "npm publish --exact",
15
+ "postpublish": "node ../../../../scripts/postpublish.cjs"
12
16
  },
13
17
  "devDependencies": {
14
- "@oinone/kunlun-environment": "6.4.3",
15
- "@oinone/kunlun-shared": "6.4.3",
16
- "@oinone/kunlun-spi": "6.4.3"
18
+ "@oinone/kunlun-environment": "7.2.0",
19
+ "@oinone/kunlun-shared": "7.2.0",
20
+ "@oinone/kunlun-spi": "7.2.0"
17
21
  },
18
- "gitHead": "2b4c0c7911626c105ca71c2d41e54af470e2e079"
19
- }
22
+ "gitHead": "2b4c0c7911626c105ca71c2d41e54af470e2e079",
23
+ "module": "dist/oinone-kunlun-event.esm.js",
24
+ "typings": "dist/types/index.d.ts",
25
+ "files": [
26
+ "dist",
27
+ "index.ts",
28
+ "src"
29
+ ]
30
+ }
@@ -1,13 +1,5 @@
1
1
  import { ConsumerOperator } from '../operator';
2
- import {
3
- EventCategoryType,
4
- EventConsumer,
5
- EventConsumerConfig,
6
- EventConsumerFilter,
7
- EventConsumerFunction,
8
- EventConsumerOptions,
9
- EventMessage
10
- } from '../typing';
2
+ import type { EventCategoryType, EventConsumer, EventConsumerConfig, EventConsumerFilter, EventConsumerFunction, EventConsumerOptions, EventMessage } from '../typing';
11
3
  import { AbstractEventEngine } from './AbstractEventEngine';
12
4
 
13
5
  let counter = 0;
@@ -1,4 +1,4 @@
1
- import { EventCategoryType, EventEngine } from '../typing';
1
+ import type { EventCategoryType, EventEngine } from '../typing';
2
2
 
3
3
  export abstract class AbstractEventEngine<K = string> implements EventEngine<K> {
4
4
  private readonly _key: string;
@@ -1,12 +1,5 @@
1
1
  import { ConsumerOperator, ProducerOperator } from '../operator';
2
- import {
3
- EventCategoryType,
4
- EventConvertFunction,
5
- EventMessage,
6
- EventProducer,
7
- EventProducerOptions,
8
- EventPublishFunction
9
- } from '../typing';
2
+ import type { EventCategoryType, EventConvertFunction, EventMessage, EventProducer, EventProducerOptions, EventPublishFunction } from '../typing';
10
3
  import { AbstractEventEngine } from './AbstractEventEngine';
11
4
 
12
5
  let counter = 0;
@@ -1,14 +1,5 @@
1
1
  import { ConsumerOperator, ProducerOperator } from '../operator';
2
- import {
3
- EventConsumer,
4
- EventConsumerConfig,
5
- EventConsumerFunction,
6
- EventConsumerOptions,
7
- EventEngineOptions,
8
- EventMessage,
9
- EventProducer,
10
- EventProducerOptions
11
- } from '../typing';
2
+ import type { EventConsumer, EventConsumerConfig, EventConsumerFunction, EventConsumerOptions, EventEngineOptions, EventMessage, EventProducer, EventProducerOptions } from '../typing';
12
3
 
13
4
  export class Basic {
14
5
  private static consumerMap: Map<Function, EventConsumer<unknown, unknown, unknown>> = new Map<
@@ -1,13 +1,5 @@
1
1
  import { ProducerOperator } from '../operator';
2
- import {
3
- EventCategory,
4
- EventConsumer,
5
- EventConsumerConfig,
6
- EventConsumerFunction,
7
- EventConsumerOptions,
8
- EventMessage,
9
- EventProducer
10
- } from '../typing';
2
+ import { EventCategory, type EventConsumer, type EventConsumerConfig, type EventConsumerFunction, type EventConsumerOptions, type EventMessage, type EventProducer } from '../typing';
11
3
  import { Basic } from './basic';
12
4
 
13
5
  export class HTMLEvent {
@@ -1,13 +1,5 @@
1
1
  import { ProducerOperator } from '../operator';
2
- import {
3
- EventCategory,
4
- EventConsumer,
5
- EventConsumerFunction,
6
- EventConsumerOptions,
7
- EventProducer,
8
- HTMLKeyboardEventConsumerConfig,
9
- KeyboardEventMessage
10
- } from '../typing';
2
+ import { EventCategory, type EventConsumer, type EventConsumerFunction, type EventConsumerOptions, type EventProducer, type HTMLKeyboardEventConsumerConfig, type KeyboardEventMessage } from '../typing';
11
3
  import { Basic } from './basic';
12
4
 
13
5
  const PRODUCER_TYPE = 'global';
@@ -1,14 +1,7 @@
1
1
  import { useCurrentInstance } from '@oinone/kunlun-environment';
2
2
  import { instantiate } from '@oinone/kunlun-shared';
3
3
  import { selectorEventConsumer } from '../spi';
4
- import {
5
- EventConsumer,
6
- EventConsumerConfig,
7
- EventConsumerFunction,
8
- EventConsumerOptions,
9
- EventEngineOptions,
10
- EventMessage
11
- } from '../typing';
4
+ import type { EventConsumer, EventConsumerConfig, EventConsumerFunction, EventConsumerOptions, EventEngineOptions, EventMessage } from '../typing';
12
5
 
13
6
  export class ConsumerOperator {
14
7
  private static consumers: Map<string, EventConsumer<unknown, unknown, unknown>[]> = new Map<
@@ -1,6 +1,6 @@
1
1
  import { instantiate } from '@oinone/kunlun-shared';
2
2
  import { selectorEventProducer } from '../spi';
3
- import { EventCategoryType, EventEngineOptions, EventProducer, EventProducerOptions } from '../typing';
3
+ import type { EventCategoryType, EventEngineOptions, EventProducer, EventProducerOptions } from '../typing';
4
4
 
5
5
  export class ProducerOperator {
6
6
  private static producers: Map<string, EventProducer<unknown>> = new Map<
@@ -1,5 +1,5 @@
1
- import { SPIOperator, SPIOptions } from '@oinone/kunlun-spi';
2
- import { EventCategoryType, EventConsumerConfig, EventConsumerConstructor, EventMessage } from '../typing';
1
+ import { SPIOperator, type SPIOptions } from '@oinone/kunlun-spi';
2
+ import type { EventCategoryType, EventConsumerConfig, EventConsumerConstructor, EventMessage } from '../typing';
3
3
 
4
4
  const EVENT_BUS_CONSUMER_KEY = Symbol('__event_bus_consumer');
5
5
 
@@ -1,5 +1,5 @@
1
- import { SPIOperator, SPIOptions } from '@oinone/kunlun-spi';
2
- import { EventCategoryType, EventProducerConstructor } from '../typing';
1
+ import { SPIOperator, type SPIOptions } from '@oinone/kunlun-spi';
2
+ import type { EventCategoryType, EventProducerConstructor } from '../typing';
3
3
 
4
4
  const EVENT_BUS_PRODUCER_KEY = Symbol('__event_bus_producer');
5
5
 
@@ -1,4 +1,4 @@
1
- import { EventCategoryType } from './category';
1
+ import type { EventCategoryType } from './category';
2
2
 
3
3
  export interface EventEngine<K = string> {
4
4
  key: string;
@@ -1,4 +1,4 @@
1
- import { EventConsumerConfig, EventMessage } from './basic';
1
+ import type { EventConsumerConfig, EventMessage } from './basic';
2
2
 
3
3
  export interface KeyboardEventMessage extends EventMessage<KeyboardEvent> {
4
4
  code: string;
@@ -1,4 +1,4 @@
1
- import { AbstractEventProducer, EventCategoryType, EventMessage, EventProducer, EventProducerOptions } from '../../bus';
1
+ import { AbstractEventProducer, type EventCategoryType, type EventMessage, type EventProducer, type EventProducerOptions } from '../../bus';
2
2
 
3
3
  export abstract class AbstractHTMLEventProducer<
4
4
  K extends keyof HTMLElementEventMap,
@@ -1,13 +1,4 @@
1
- import {
2
- AbstractEventConsumer,
3
- EventCategory,
4
- EventConsumerConfig,
5
- EventConsumerConstructor,
6
- EventConsumerFunction,
7
- EventConsumerOptions,
8
- EventMessage,
9
- registerEventConsumer
10
- } from '../../bus';
1
+ import { AbstractEventConsumer, EventCategory, type EventConsumerConfig, type EventConsumerConstructor, type EventConsumerFunction, type EventConsumerOptions, type EventMessage, registerEventConsumer } from '../../bus';
11
2
 
12
3
  export class HTMLEventConsumer<
13
4
  K extends keyof HTMLElementEventMap,
@@ -1,4 +1,4 @@
1
- import { EventCategory, EventProducerConstructor, EventProducerOptions, registerEventProducer } from '../../bus';
1
+ import { EventCategory, type EventProducerConstructor, type EventProducerOptions, registerEventProducer } from '../../bus';
2
2
  import { AbstractHTMLEventProducer } from './AbstractHTMLEventProducer';
3
3
 
4
4
  export class HTMLEventProducer<K extends keyof HTMLElementEventMap> extends AbstractHTMLEventProducer<K> {
@@ -1,17 +1,5 @@
1
1
  import { useEnv } from '@oinone/kunlun-environment';
2
- import {
3
- AbstractEventConsumer,
4
- EventCategory,
5
- EventCategoryType,
6
- EventConsumerConstructor,
7
- EventConsumerFunction,
8
- EventConsumerOptions,
9
- EventConsumerScope,
10
- HTMLKeyboardEventConsumerConfig,
11
- KeyboardEventMessage,
12
- KeyboardTypes,
13
- registerEventConsumer
14
- } from '../../bus';
2
+ import { AbstractEventConsumer, EventCategory, type EventCategoryType, type EventConsumerConstructor, type EventConsumerFunction, type EventConsumerOptions, EventConsumerScope, type HTMLKeyboardEventConsumerConfig, type KeyboardEventMessage, KeyboardTypes, registerEventConsumer } from '../../bus';
15
3
 
16
4
  type KeyboardEventConsumerOptions = EventConsumerOptions<
17
5
  KeyboardEvent,
@@ -1,14 +1,5 @@
1
1
  import { KeyboardEventHelper } from '@oinone/kunlun-shared';
2
- import {
3
- EventCategory,
4
- EventProducer,
5
- EventProducerConstructor,
6
- EventProducerOptions,
7
- KeyboardEventMessage,
8
- KeyboardType,
9
- KeyboardTypes,
10
- registerEventProducer
11
- } from '../../bus';
2
+ import { EventCategory, type EventProducer, type EventProducerConstructor, type EventProducerOptions, type KeyboardEventMessage, type KeyboardType, KeyboardTypes, registerEventProducer } from '../../bus';
12
3
  import { AbstractHTMLEventProducer } from '../basic';
13
4
 
14
5
  abstract class AbstractHTMLKeyboardEventProducer<K extends KeyboardType> extends AbstractHTMLEventProducer<
package/rollup.config.js DELETED
@@ -1,4 +0,0 @@
1
- import pkg from './package.json';
2
- import rollupConfig from '../../scripts/build.config.js';
3
-
4
- export default rollupConfig(pkg.name, ['@oinone/kunlun-shared', '@oinone/kunlun-spi', '@oinone/kunlun-environment']);