modality-kit 0.8.5 → 0.8.7

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.
@@ -11,7 +11,7 @@ type StateType<TState> = Partial<TState> | StateCallbackHandler<TState> | TState
11
11
  /**
12
12
  * Base class for reactive web components
13
13
  */
14
- export declare abstract class ReactiveHTMLElement<TState = any> extends HTMLElement {
14
+ export declare abstract class ReactiveComponent<TState = any> extends HTMLElement {
15
15
  #private;
16
16
  _stores?: Array<any>;
17
17
  _storeListeners?: Array<{
@@ -60,5 +60,5 @@ export type { ReactiveComponentOptions };
60
60
  * Generic render function for ReactiveHTMLElement components
61
61
  * Creates and displays a component with specified componentName and optional stores
62
62
  */
63
- export declare function render<T extends ReactiveHTMLElement>(componentName: string, props?: Record<string, any>, stores?: Array<any>): T;
63
+ export declare function render<T extends ReactiveComponent>(componentName: string, props?: Record<string, any>, stores?: Array<any>): T;
64
64
  export declare function registerStore(componentName: string, stores: Array<any>): void;
@@ -14,3 +14,5 @@ export { JSONRPCUtils, JSONRPCErrorCode } from "./schemas/jsonrpc";
14
14
  export type { JSONRPCMessage, JSONRPCRequest, JSONRPCNotification, JSONRPCResponse, JSONRPCBatchRequest, JSONRPCBatchResponse, JSONRPCErrorResponse, JSONRPCValidationResult, JSONRPCError, JSONRPCParams, CommandExecuteParams, NotificationSendParams, } from "./schemas/jsonrpc";
15
15
  export { JSONRPCManager } from "./jsonrpc-manager";
16
16
  export type { JSONRPCManagerEvents, JSONRPCManagerConfig, } from "./jsonrpc-manager";
17
+ export { WebSocketClient } from "./websocket-client";
18
+ export { ReactiveComponent, render, registerStore } from "./ReactiveComponent";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.5",
2
+ "version": "0.8.7",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",
@@ -25,15 +25,14 @@
25
25
  "import": "./dist/index.js",
26
26
  "types": "./dist/types/index.d.ts"
27
27
  },
28
- "type": "module",
29
28
  "main": "./dist/index.js",
30
29
  "scripts": {
31
30
  "update-compile-sh": "yo reshow:compile-sh",
32
31
  "build:clean": "find ./dist -name '*.*' | xargs rm -rf",
33
32
  "dev": "bunx concurrently 'bunx --watch tsc -p ./' 'bun build:src -- --watch --sourcemap=inline'",
34
33
  "build:types": "bunx tsc -p ./",
35
- "build:src": "bun build src/index.ts --outdir dist",
36
- "build": "bun run build:clean && bun run build:src && bun run build:types",
34
+ "build:src": "bun build src/index.ts --outdir dist --format cjs --target node --external @valibot/to-json-schema --external sury --external effect",
35
+ "build": "bun run build:clean && bun run build:src -- --minify && bun run build:types",
37
36
  "test": "bun test",
38
37
  "prepublishOnly": "npm run build && npm run test"
39
38
  },