@kosdev-code/kos-ui-sdk 0.1.0-next.948 → 0.1.0-next.962
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/.kos.json +2 -1
- package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts +2 -0
- package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts.map +1 -0
- package/core/core/decorators/kos-container-aware.d.ts +150 -88
- package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-reload-aware.d.ts +10 -8
- package/core/core/decorators/kos-reload-aware.d.ts.map +1 -1
- package/core/core/decorators/kosModel.d.ts.map +1 -1
- package/core/core/kosCore.d.ts +4 -1
- package/core/core/kosCore.d.ts.map +1 -1
- package/core/core/kosModel.d.ts +16 -8
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/lifecycle/constants.d.ts +6 -2
- package/core/core/lifecycle/constants.d.ts.map +1 -1
- package/core/core/lifecycle/kosCoreLifecycle.d.ts +11 -1
- package/core/core/lifecycle/kosCoreLifecycle.d.ts.map +1 -1
- package/core/core/lifecycle/kosModelLifecycle.d.ts +6 -0
- package/core/core/lifecycle/kosModelLifecycle.d.ts.map +1 -1
- package/core/core/lifecycle/model-machine.d.ts +6 -0
- package/core/core/lifecycle/model-machine.d.ts.map +1 -1
- package/core/core/model/kos-fsm-manager.d.ts +6 -0
- package/core/core/model/kos-fsm-manager.d.ts.map +1 -1
- package/core/core/reconnect/reconnect-fixture.d.ts +17 -0
- package/core/core/reconnect/reconnect-fixture.d.ts.map +1 -0
- package/core/core/transport/transport.d.ts +1 -1
- package/core/core/transport/transport.d.ts.map +1 -1
- package/core/core/transport/webSocketTransport.d.ts +10 -0
- package/core/core/transport/webSocketTransport.d.ts.map +1 -1
- package/core/util/model-type-guards.d.ts.map +1 -1
- package/index.cjs +134 -90
- package/index.cjs.map +1 -1
- package/index.js +163 -119
- package/index.js.map +1 -1
- package/models/models/config-bean/config-bean-model.d.ts +9 -0
- package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
- package/models/models/gpio-chip/gpio-chip-builders.d.ts +14 -0
- package/models/models/gpio-chip/gpio-chip-builders.d.ts.map +1 -0
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts +2 -1
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -1
- package/models/models/kos-expression-evaluator/expression-parse-cache.d.ts +29 -0
- package/models/models/kos-expression-evaluator/expression-parse-cache.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/index.d.ts +1 -0
- package/models/models/kos-expression-evaluator/index.d.ts.map +1 -1
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +54 -19
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -1
- package/models/models/trouble-container/trouble-builders.d.ts +11 -0
- package/models/models/trouble-container/trouble-builders.d.ts.map +1 -0
- package/models/models/trouble-container/trouble-container-model.d.ts +2 -1
- package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
- package/package.json +3 -3
- package/{software-info-registration-CY_E6Rw7.cjs → software-info-registration-BAk6JWkz.cjs} +595 -214
- package/software-info-registration-BAk6JWkz.cjs.map +1 -0
- package/{software-info-registration-CuuEsH8v.js → software-info-registration-CefJgWke.js} +624 -243
- package/software-info-registration-CefJgWke.js.map +1 -0
- package/testing.cjs +1 -1
- package/testing.js +1 -1
- package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts +9 -0
- package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts.map +1 -0
- package/ui/components/connection-dev-button/index.d.ts +36 -0
- package/ui/components/connection-dev-button/index.d.ts.map +1 -0
- package/ui/components/connection-dev-button/use-connection-dev-state.d.ts +29 -0
- package/ui/components/connection-dev-button/use-connection-dev-state.d.ts.map +1 -0
- package/ui/components/index.d.ts +1 -0
- package/ui/components/index.d.ts.map +1 -1
- package/software-info-registration-CY_E6Rw7.cjs.map +0 -1
- package/software-info-registration-CuuEsH8v.js.map +0 -1
package/testing.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("mobx");
|
|
4
|
-
const service = require("./software-info-registration-
|
|
4
|
+
const service = require("./software-info-registration-BAk6JWkz.cjs");
|
|
5
5
|
require("loglevel");
|
|
6
6
|
let booted;
|
|
7
7
|
let prepared = false;
|
package/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "mobx";
|
|
2
|
-
import { g as KosCore, bT as KosMock, bY as KosModelRegistry, cm as RegistrationManager } from "./software-info-registration-
|
|
2
|
+
import { g as KosCore, bT as KosMock, bY as KosModelRegistry, cm as RegistrationManager } from "./software-info-registration-CefJgWke.js";
|
|
3
3
|
import "loglevel";
|
|
4
4
|
let booted;
|
|
5
5
|
let prepared = false;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const buttonRoot: import('@emotion/react').SerializedStyles;
|
|
2
|
+
export declare const positions: {
|
|
3
|
+
readonly "bottom-left": import('@emotion/react').SerializedStyles;
|
|
4
|
+
readonly "bottom-right": import('@emotion/react').SerializedStyles;
|
|
5
|
+
readonly "top-left": import('@emotion/react').SerializedStyles;
|
|
6
|
+
readonly "top-right": import('@emotion/react').SerializedStyles;
|
|
7
|
+
};
|
|
8
|
+
export declare const statusText: import('@emotion/react').SerializedStyles;
|
|
9
|
+
//# sourceMappingURL=connection-dev-button-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-dev-button-styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/ui/components/connection-dev-button/connection-dev-button-styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,2CAoBtB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;CAiBZ,CAAC;AAEX,eAAO,MAAM,UAAU,2CAItB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ConnectionDevState } from './use-connection-dev-state';
|
|
3
|
+
export { useConnectionDevState, type ConnectionDevState, type ConnectionDevStatus, } from './use-connection-dev-state';
|
|
4
|
+
/**
|
|
5
|
+
* Props for ConnectionDevButton.
|
|
6
|
+
*
|
|
7
|
+
* @kosService core.connection-dev-button
|
|
8
|
+
* @kosApiLevel 25
|
|
9
|
+
*/
|
|
10
|
+
export interface ConnectionDevButtonProps {
|
|
11
|
+
/** Screen corner the button is fixed to. Default: "bottom-right". */
|
|
12
|
+
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
13
|
+
/** Button label. Default: "Drop connection". */
|
|
14
|
+
label?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Fully replace the button's content with a custom renderer. Receives the
|
|
18
|
+
* connection state. If provided, the default label and status are not
|
|
19
|
+
* rendered.
|
|
20
|
+
*/
|
|
21
|
+
renderContent?: (state: ConnectionDevState) => React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Minimal, unbranded development button that drops the KOS websocket so the
|
|
25
|
+
* reconnect path can be exercised from any KOS application. Shows the live
|
|
26
|
+
* connection status and, on click, calls the transport's `dropConnection()`;
|
|
27
|
+
* the transport reconnects on its own and KOS Core runs its reconnect
|
|
28
|
+
* sequence. Disabled while the core is not online.
|
|
29
|
+
*
|
|
30
|
+
* Pair with ReconnectingOverlay to see the reconnect as users do.
|
|
31
|
+
*
|
|
32
|
+
* @kosService core.connection-dev-button
|
|
33
|
+
* @kosApiLevel 25
|
|
34
|
+
*/
|
|
35
|
+
export declare const ConnectionDevButton: React.FC<ConnectionDevButtonProps>;
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/ui/components/connection-dev-button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AAOpC,OAAO,EACL,qBAAqB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,4BAA4B,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC,qEAAqE;IACrE,QAAQ,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAC;IACrE,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,KAAK,CAAC,SAAS,CAAC;CAChE;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA0BlE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connection status shown by ConnectionDevButton.
|
|
3
|
+
*
|
|
4
|
+
* @kosService core.use-connection-dev-state
|
|
5
|
+
* @kosApiLevel 25
|
|
6
|
+
*/
|
|
7
|
+
export type ConnectionDevStatus = "online" | "offline" | "reconnecting";
|
|
8
|
+
/**
|
|
9
|
+
* Snapshot of the connection, returned by useConnectionDevState.
|
|
10
|
+
*
|
|
11
|
+
* @kosService core.use-connection-dev-state
|
|
12
|
+
* @kosApiLevel 25
|
|
13
|
+
*/
|
|
14
|
+
export interface ConnectionDevState {
|
|
15
|
+
/**
|
|
16
|
+
* `reconnecting` while KOS Core reloads or runs its reconnect sequence,
|
|
17
|
+
* otherwise `online` or `offline` from the core's connection.
|
|
18
|
+
*/
|
|
19
|
+
status: ConnectionDevStatus;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Headless state hook for ConnectionDevButton. Tracks KOS Core's `isOnline`
|
|
23
|
+
* and `reloading` reactively and reports them as one status.
|
|
24
|
+
*
|
|
25
|
+
* @kosService core.use-connection-dev-state
|
|
26
|
+
* @kosApiLevel 25
|
|
27
|
+
*/
|
|
28
|
+
export declare const useConnectionDevState: () => ConnectionDevState;
|
|
29
|
+
//# sourceMappingURL=use-connection-dev-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-connection-dev-state.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/ui/components/connection-dev-button/use-connection-dev-state.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,CAAC;AAExE;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAOD;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,QAAO,kBAgBxC,CAAC"}
|
package/ui/components/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/ui/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,cAAc,kBAAkB,CAAC;AAEjC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/ui/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,cAAc,kBAAkB,CAAC;AAEjC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,yBAAyB,CAAC"}
|