@hylithiumjs.com/core 1.2.1 → 1.2.2
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/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/types.d.ts +459 -779
- package/dist/types.d.ts.map +1 -1
- package/package.json +40 -40
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
2
|
export * from "./ui-builder";
|
|
3
|
-
import type { EventHandler, EventType } from "./types";
|
|
3
|
+
import type { EventHandler, EventType, EventTitleUtil as EventTitleUtilType, MySQLManager as MySQLManagerType, TableBuilderConstructor } from "./types";
|
|
4
|
+
export declare const EventTitleUtil: EventTitleUtilType;
|
|
5
|
+
export declare const MySQL: MySQLManagerType;
|
|
6
|
+
export declare const TableBuilder: TableBuilderConstructor;
|
|
4
7
|
export declare const handlers: EventHandler[];
|
|
5
8
|
export declare function EventListener(eventType: EventType): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,cAAc,IAAI,kBAAkB,EACpC,YAAY,IAAI,gBAAgB,EAChC,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAGjB,eAAO,MAAM,cAAc,EAAyC,kBAAkB,CAAC;AAGvF,eAAO,MAAM,KAAK,EAAuC,gBAAgB,CAAC;AAC1E,eAAO,MAAM,YAAY,EAAuC,uBAAuB,CAAC;AAExF,eAAO,MAAM,QAAQ,EAAE,YAAY,EAAwE,CAAC;AAE5G,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,IAC/B,QAAQ,OAAO,EAAE,aAAa,MAAM,EAAE,YAAY,kBAAkB,wBAOtF"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
2
|
export * from "./ui-builder";
|
|
3
|
-
|
|
3
|
+
// Exportar EventTitleUtil como valor (injetado pelo Java runtime)
|
|
4
|
+
export const EventTitleUtil = globalThis.EventTitleUtil;
|
|
5
|
+
// MySQL exports (injetado pelo Java runtime)
|
|
6
|
+
export const MySQL = globalThis.MySQLManager;
|
|
7
|
+
export const TableBuilder = globalThis.TableBuilder;
|
|
8
|
+
// Usar array global existente ou criar novo (evita sobrescrever handlers de outros plugins)
|
|
9
|
+
export const handlers = globalThis.handlers || (globalThis.handlers = []);
|
|
4
10
|
export function EventListener(eventType) {
|
|
5
11
|
return function (target, propertyKey, descriptor) {
|
|
6
12
|
handlers.push({
|
|
7
13
|
eventType: eventType,
|
|
8
|
-
callback: descriptor.value
|
|
14
|
+
callback: descriptor.value
|
|
9
15
|
});
|
|
10
16
|
return descriptor;
|
|
11
17
|
};
|