verstak 0.24.508 → 0.92.25003
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/build/dist/source/core/ElDriver.js +7 -7
- package/build/dist/source/core/Elements.d.ts +10 -10
- package/build/dist/source/core/Elements.js +28 -28
- package/build/dist/source/core/Restyler.js +3 -3
- package/build/dist/source/core/WebDriver.d.ts +4 -4
- package/build/dist/source/core/WebDriver.js +7 -7
- package/build/dist/source/express/Button.v.js +3 -3
- package/build/dist/source/express/Field.v.js +4 -4
- package/build/dist/source/express/Icon.v.js +1 -1
- package/build/dist/source/express/Image.v.js +1 -1
- package/build/dist/source/express/Spinner.v.js +1 -1
- package/build/dist/source/express/Theme.js +2 -2
- package/build/dist/source/express/Toggle.v.js +10 -7
- package/build/dist/source/express/common/Utils.js +2 -2
- package/build/dist/source/express/theme/Button.s.js +4 -4
- package/build/dist/source/express/theme/Field.s.js +5 -5
- package/build/dist/source/express/theme/Icon.s.js +2 -2
- package/build/dist/source/express/theme/Styling.js +2 -2
- package/build/dist/source/express/theme/Toggle.s.js +4 -4
- package/build/dist/source/html/DraggableArea.view.js +1 -1
- package/build/dist/source/sensors/ButtonSensor.js +7 -7
- package/build/dist/source/sensors/FocusSensor.js +6 -6
- package/build/dist/source/sensors/Handlers.d.ts +1 -1
- package/build/dist/source/sensors/Handlers.js +11 -11
- package/build/dist/source/sensors/HoverSensor.js +6 -6
- package/build/dist/source/sensors/HtmlDragSensor.js +20 -20
- package/build/dist/source/sensors/HtmlElementSensor.js +5 -5
- package/build/dist/source/sensors/KeyboardSensor.js +4 -4
- package/build/dist/source/sensors/PointerSensor.js +17 -17
- package/build/dist/source/sensors/ResizeSensor.js +3 -3
- package/build/dist/source/sensors/ScrollSensor.js +3 -3
- package/build/dist/source/sensors/WheelSensor.js +3 -3
- package/build/dist/source/sensors/WindowSensor.js +2 -2
- package/package.json +8 -8
- package/build/dist/source/archive/RxDomV1.Types.d.ts +0 -46
- package/build/dist/source/archive/RxDomV1.Types.js +0 -22
- package/build/dist/source/archive/RxDomV1.d.ts +0 -45
- package/build/dist/source/archive/RxDomV1.js +0 -557
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { ToggleRef,
|
|
10
|
+
import { ToggleRef, apply } from "reactronic";
|
|
11
11
|
import { objectHasMember } from "../core/ElUtils.js";
|
|
12
12
|
import { Sensor } from "./Sensor.js";
|
|
13
13
|
export class WindowSensor extends Sensor {
|
|
@@ -31,7 +31,7 @@ export class WindowSensor extends Sensor {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
__decorate([
|
|
34
|
-
|
|
34
|
+
apply,
|
|
35
35
|
__metadata("design:type", Function),
|
|
36
36
|
__metadata("design:paramtypes", [Object, String]),
|
|
37
37
|
__metadata("design:returntype", void 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verstak",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.25003",
|
|
4
4
|
"description": "Verstak - Front-End Library",
|
|
5
5
|
"publisher": "Nezaboodka Software",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
"homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@types/linkify-it": "^3.0.5",
|
|
40
|
-
"@emotion/css": "^11.13.
|
|
40
|
+
"@emotion/css": "^11.13.5",
|
|
41
41
|
"markdown-it": "^14.1.0",
|
|
42
42
|
"markdown-it-prism": "^2.3.0",
|
|
43
43
|
"prismjs": "^1.29.0",
|
|
44
|
-
"reactronic": "^0.
|
|
44
|
+
"reactronic": "^0.92.25003"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/markdown-it": "14.1.2",
|
|
48
|
-
"@types/node": "22.
|
|
48
|
+
"@types/node": "22.13.0",
|
|
49
49
|
"@types/prismjs": "1.26.5",
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
51
|
-
"@typescript-eslint/parser": "8.
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "8.22.0",
|
|
51
|
+
"@typescript-eslint/parser": "8.22.0",
|
|
52
52
|
"ava": "6.2.0",
|
|
53
|
-
"c8": "10.1.
|
|
54
|
-
"eslint": "9.
|
|
53
|
+
"c8": "10.1.3",
|
|
54
|
+
"eslint": "9.19.0",
|
|
55
55
|
"ts-node": "10.9.2",
|
|
56
56
|
"tsconfig-paths": "4.2.0",
|
|
57
57
|
"typescript": "5.5.4"
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export type Render<E = unknown, O = void> = (element: E, options: O) => void | Promise<void>;
|
|
2
|
-
export type SuperRender<E = unknown, O = void> = ((render: (options: O) => void, element: E) => void);
|
|
3
|
-
export type AsyncSuperRender<O = unknown, E = void> = ((render: (options: O) => Promise<void>, element: E) => Promise<void>);
|
|
4
|
-
export type Customize<E = unknown, O = void> = (element: E, options: O) => void;
|
|
5
|
-
export type AsyncCustomize<E = unknown, O = void> = (element: E, options: O) => Promise<void>;
|
|
6
|
-
export type RxNodeType<E = unknown, O = void> = {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly sequential: boolean;
|
|
9
|
-
initialize?(node: RxNode<E, O>): void;
|
|
10
|
-
mount?(node: RxNode<E, O>): void;
|
|
11
|
-
render?(node: RxNode<E, O>, args: unknown): void;
|
|
12
|
-
finalize?(node: RxNode<E, O>, initiator: RxNode): void;
|
|
13
|
-
};
|
|
14
|
-
export type RxNodeInstance<E = unknown, O = void> = {
|
|
15
|
-
readonly uuid: number;
|
|
16
|
-
readonly level: number;
|
|
17
|
-
revision: number;
|
|
18
|
-
native?: E;
|
|
19
|
-
model?: unknown;
|
|
20
|
-
children: ReadonlyArray<RxNode>;
|
|
21
|
-
buffer: Array<RxNode> | undefined;
|
|
22
|
-
guests: ReadonlyArray<RxNode>;
|
|
23
|
-
resizeObserver?: ResizeObserver;
|
|
24
|
-
rerender(node: RxNode<E, O>): void;
|
|
25
|
-
};
|
|
26
|
-
export declare class RxNode<E = any, O = any> {
|
|
27
|
-
readonly id: string;
|
|
28
|
-
readonly args: unknown;
|
|
29
|
-
readonly render: Render<E, O>;
|
|
30
|
-
readonly superRender: SuperRender<E, O> | undefined;
|
|
31
|
-
priority: number;
|
|
32
|
-
childrenShuffling: boolean;
|
|
33
|
-
readonly type: RxNodeType<E, O>;
|
|
34
|
-
readonly inline: boolean;
|
|
35
|
-
readonly creator: RxNode;
|
|
36
|
-
readonly host: RxNode;
|
|
37
|
-
instance?: RxNodeInstance<E, O> | undefined;
|
|
38
|
-
old?: RxNode<E, O>;
|
|
39
|
-
prevSibling?: RxNode;
|
|
40
|
-
get parent(): RxNode;
|
|
41
|
-
get revision(): number;
|
|
42
|
-
get native(): E | undefined;
|
|
43
|
-
set native(e: E | undefined);
|
|
44
|
-
get resizeObserver(): ResizeObserver | undefined;
|
|
45
|
-
constructor(id: string, args: unknown, render: Render<E, O>, superRender: SuperRender<E, O> | undefined, priority: number, childrenShuffling: boolean, type: RxNodeType<E, O>, inline: boolean, creator: RxNode, host: RxNode, instance?: RxNodeInstance<E, O> | undefined);
|
|
46
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export class RxNode {
|
|
2
|
-
get parent() { return this.host; }
|
|
3
|
-
get revision() { var _a, _b; return (_b = (_a = this.instance) === null || _a === void 0 ? void 0 : _a.revision) !== null && _b !== void 0 ? _b : ~0; }
|
|
4
|
-
get native() { var _a; return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.native; }
|
|
5
|
-
set native(e) { this.instance.native = e; }
|
|
6
|
-
get resizeObserver() { var _a; return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.resizeObserver; }
|
|
7
|
-
constructor(id, args, render, superRender, priority, childrenShuffling, type, inline, creator, host, instance) {
|
|
8
|
-
this.id = id;
|
|
9
|
-
this.args = args;
|
|
10
|
-
this.render = render;
|
|
11
|
-
this.superRender = superRender;
|
|
12
|
-
this.priority = priority;
|
|
13
|
-
this.childrenShuffling = childrenShuffling;
|
|
14
|
-
this.type = type;
|
|
15
|
-
this.inline = inline;
|
|
16
|
-
this.creator = creator;
|
|
17
|
-
this.host = host;
|
|
18
|
-
this.instance = instance;
|
|
19
|
-
this.old = undefined;
|
|
20
|
-
this.prevSibling = undefined;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Render, SuperRender, RxNodeType, RxNodeInstance, RxNode } from "./RxDomV1.Types.js";
|
|
2
|
-
export declare class BasicNodeType<E, O> implements RxNodeType<E, O> {
|
|
3
|
-
readonly name: string;
|
|
4
|
-
readonly sequential: boolean;
|
|
5
|
-
constructor(name: string, sequential: boolean);
|
|
6
|
-
initialize(node: RxNode<E, O>): void;
|
|
7
|
-
render(node: RxNode<E, O>, args: unknown): void;
|
|
8
|
-
finalize(node: RxNode<E, O>, initiator: RxNode): void;
|
|
9
|
-
}
|
|
10
|
-
export declare class RxNodeInstanceImpl<E = unknown, O = void> implements RxNodeInstance<E, O> {
|
|
11
|
-
private static gUuid;
|
|
12
|
-
readonly uuid: number;
|
|
13
|
-
readonly level: number;
|
|
14
|
-
revision: number;
|
|
15
|
-
native?: E;
|
|
16
|
-
model?: unknown;
|
|
17
|
-
children: ReadonlyArray<RxNode>;
|
|
18
|
-
buffer: Array<RxNode> | undefined;
|
|
19
|
-
guests: ReadonlyArray<RxNode>;
|
|
20
|
-
resizeObserver?: ResizeObserver;
|
|
21
|
-
constructor(level: number);
|
|
22
|
-
rerender(node: RxNode<E, O>): void;
|
|
23
|
-
}
|
|
24
|
-
export declare class RxDom {
|
|
25
|
-
static readonly basic: BasicNodeType<any, any>;
|
|
26
|
-
static Root<T>(render: () => T): T;
|
|
27
|
-
static Node<E = unknown, O = void>(id: string, args: any, render: Render<E, O>, superRender?: SuperRender<E, O>, type?: RxNodeType<E, O>, inline?: boolean, creator?: RxNode, host?: RxNode): RxNode<E, O>;
|
|
28
|
-
static renderChildrenThenDo(action: () => void): void;
|
|
29
|
-
static usingAnotherHost<E>(host: RxNode<E>, run: (e: E) => void): void;
|
|
30
|
-
static createRootNode<E>(id: string, sequential: boolean, native: E): RxNode<E>;
|
|
31
|
-
static get self(): RxNode;
|
|
32
|
-
static currentNodeInstance<T>(): {
|
|
33
|
-
model?: T;
|
|
34
|
-
};
|
|
35
|
-
static currentNodeInstanceInternal<E>(): RxNodeInstanceImpl<E>;
|
|
36
|
-
static currentNodeRevision(): number;
|
|
37
|
-
static forAll<E>(action: (e: E) => void): void;
|
|
38
|
-
private static mergeAndRenderSequentialChildren;
|
|
39
|
-
private static mergeAndRenderChildren;
|
|
40
|
-
private static renderIncrementally;
|
|
41
|
-
private static mergeGuests;
|
|
42
|
-
private static forEachChildRecursively;
|
|
43
|
-
}
|
|
44
|
-
export declare function resolveReturn(value: any): any;
|
|
45
|
-
export declare function rejectRethrow(error: any): never;
|