incajs 0.0.10 → 0.0.12
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/README.md +2 -2
- package/dist/chunks/{rendererCore-CIXQ3Bp7.js → rendererCore-vR5RIa7d.js} +10 -6
- package/dist/events.d.mts +2 -1
- package/dist/native.d.mts +1 -0
- package/dist/rendererCore.d.mts +1 -1
- package/dist/rendererCore.js +2 -2
- package/dist/tree.d.mts +7 -0
- package/dist/types.d.mts +11 -1
- package/dist/vue/createElement.d.mts +13 -0
- package/dist/vue/nodeOps.d.mts +7 -1
- package/dist/vue/patchProp.d.mts +7 -3
- package/dist/vue/runtime.d.mts +2 -0
- package/dist/vue-runtime.js +3 -0
- package/dist/vue.js +72 -78
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ framework. No Chromium, no DOM: UI renders directly on the GPU via
|
|
|
19
19
|
own root container instead of a DOM element; `app.mount()` with no
|
|
20
20
|
argument targets it, and `app.unmount`, `app.use`, etc. behave exactly
|
|
21
21
|
as `@vue/runtime-core` documents them.
|
|
22
|
-
-
|
|
23
|
-
|
|
22
|
+
- To use Vue, install `vue` next to `incajs`. It brings the peer
|
|
23
|
+
dependencies `@vue/runtime-core` and `@vue/runtime-dom`.
|
|
24
24
|
|
|
25
25
|
Part of [tom96da/incajs](https://github.com/tom96da/incajs).
|
|
@@ -86,15 +86,18 @@ function v(e) {
|
|
|
86
86
|
function y(e, t, r) {
|
|
87
87
|
n().setAttribute(e, t, r);
|
|
88
88
|
}
|
|
89
|
-
function b(e, t
|
|
89
|
+
function b(e, t) {
|
|
90
|
+
n().removeAttribute(e, t);
|
|
91
|
+
}
|
|
92
|
+
function x(e, t, r) {
|
|
90
93
|
n().setStyle(e, t, r);
|
|
91
94
|
}
|
|
92
|
-
function
|
|
95
|
+
function S(e, t) {
|
|
93
96
|
n().removeStyle(e, t);
|
|
94
97
|
}
|
|
95
98
|
//#endregion
|
|
96
99
|
//#region src/rendererCore.mts
|
|
97
|
-
var
|
|
100
|
+
var C = /* @__PURE__ */ t({
|
|
98
101
|
appendChild: () => h,
|
|
99
102
|
blur: () => f,
|
|
100
103
|
createNode: () => m,
|
|
@@ -102,13 +105,14 @@ var S = /* @__PURE__ */ t({
|
|
|
102
105
|
focus: () => d,
|
|
103
106
|
insertBefore: () => g,
|
|
104
107
|
latestEventId: () => o,
|
|
108
|
+
removeAttribute: () => b,
|
|
105
109
|
removeChild: () => _,
|
|
106
110
|
removeEventListener: () => u,
|
|
107
|
-
removeStyle: () =>
|
|
111
|
+
removeStyle: () => S,
|
|
108
112
|
rootNodeId: () => p,
|
|
109
113
|
setAttribute: () => y,
|
|
110
114
|
setEventListener: () => l,
|
|
111
|
-
setStyle: () =>
|
|
115
|
+
setStyle: () => x
|
|
112
116
|
});
|
|
113
117
|
//#endregion
|
|
114
|
-
export { g as a,
|
|
118
|
+
export { g as a, S as c, x as d, f, l as g, u as h, v as i, p as l, o as m, h as n, b as o, d as p, m as r, _ as s, C as t, y as u };
|
package/dist/events.d.mts
CHANGED
|
@@ -38,7 +38,8 @@ export declare function removeEventListener(nodeId: NodeId, event: string): void
|
|
|
38
38
|
* dispatching `"blur"`/`"focus"` for whatever actually changed — `nodeId`
|
|
39
39
|
* doesn't need a `"focus"`/`"blur"` listener registered for this to work,
|
|
40
40
|
* the same way `element.focus()` works on any focusable DOM element
|
|
41
|
-
* regardless of whether it's being listened to.
|
|
41
|
+
* regardless of whether it's being listened to. The node needs a `tabindex`
|
|
42
|
+
* attribute to take focus.
|
|
42
43
|
* @param nodeId - the node to focus
|
|
43
44
|
*/
|
|
44
45
|
export declare function focus(nodeId: NodeId): void;
|
package/dist/native.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ interface IncaNative {
|
|
|
7
7
|
insertBefore(parentId: NodeId, childId: NodeId, anchorId: NodeId | null): void;
|
|
8
8
|
removeChild(parentId: NodeId, childId: NodeId): void;
|
|
9
9
|
setAttribute(nodeId: NodeId, key: string, value: AttributeValue): void;
|
|
10
|
+
removeAttribute(nodeId: NodeId, key: string): void;
|
|
10
11
|
setStyle(nodeId: NodeId, key: string, value: AttributeValue): void;
|
|
11
12
|
removeStyle(nodeId: NodeId, key: string): void;
|
|
12
13
|
addEventListener(nodeId: NodeId, event: string, callbackId: CallbackId): void;
|
package/dist/rendererCore.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { setEventListener, removeEventListener, latestEventId, focus, blur } from './events.mts';
|
|
2
|
-
export { appendChild, createNode, destroyNode, insertBefore, removeChild, rootNodeId, setAttribute, setStyle, removeStyle, } from './tree.mts';
|
|
2
|
+
export { appendChild, createNode, destroyNode, insertBefore, removeChild, rootNodeId, setAttribute, removeAttribute, setStyle, removeStyle, } from './tree.mts';
|
|
3
3
|
/**
|
|
4
4
|
* The tree/event primitives a custom renderer (`incajs/vue`) drives the
|
|
5
5
|
* native tree through.
|
package/dist/rendererCore.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r,
|
|
2
|
-
export {
|
|
1
|
+
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, u as m } from "./chunks/rendererCore-vR5RIa7d.js";
|
|
2
|
+
export { l as appendChild, r as blur, f as createNode, o as destroyNode, d as focus, e as insertBefore, c as latestEventId, u as removeAttribute, p as removeChild, a as removeEventListener, t as removeStyle, s as rootNodeId, m as setAttribute, i as setEventListener, n as setStyle };
|
package/dist/tree.d.mts
CHANGED
|
@@ -57,6 +57,13 @@ export declare function destroyNode(nodeId: NodeId): void;
|
|
|
57
57
|
* @param value - the attribute value
|
|
58
58
|
*/
|
|
59
59
|
export declare function setAttribute(nodeId: NodeId, key: string, value: AttributeValue): void;
|
|
60
|
+
/**
|
|
61
|
+
* Removes a non-style attribute/prop from `nodeId`. Removing an attribute
|
|
62
|
+
* that isn't set does nothing.
|
|
63
|
+
* @param nodeId - the node to update
|
|
64
|
+
* @param key - the attribute name
|
|
65
|
+
*/
|
|
66
|
+
export declare function removeAttribute(nodeId: NodeId, key: string): void;
|
|
60
67
|
/**
|
|
61
68
|
* Sets a style property on `nodeId` — the only way to reach {@link setAttribute}'s
|
|
62
69
|
* counterpart style map. A key from {@link StyleProps} gets compile-time
|
package/dist/types.d.mts
CHANGED
|
@@ -109,7 +109,17 @@ export interface StyleProps {
|
|
|
109
109
|
*
|
|
110
110
|
* The native host calls it with one argument, an object with:
|
|
111
111
|
* - `type`: the event's name.
|
|
112
|
-
* - `target
|
|
112
|
+
* - `target`: the {@link NodeId} the event is about. It is the deepest node
|
|
113
|
+
* under the pointer for pointer events, the nearest common ancestor of the
|
|
114
|
+
* press and the release for `click`, `dblclick` and `auxclick`, and the
|
|
115
|
+
* focused node (the root when nothing is focused) for key events.
|
|
116
|
+
* - `currentTarget`: the {@link NodeId} whose listener is running.
|
|
117
|
+
* - `bubbles`, `cancelable` and `composed`: fixed per event name.
|
|
118
|
+
* - `defaultPrevented`: `true` once a listener called `preventDefault()` on a
|
|
119
|
+
* cancelable event.
|
|
120
|
+
* - `eventPhase`: 2 where `currentTarget` is `target`, 3 on its ancestors.
|
|
121
|
+
* - `isTrusted`: always `true`.
|
|
122
|
+
* - `timeStamp`: milliseconds since the host started, as a number.
|
|
113
123
|
* - `eventId`: a number that grows with each event and is the same on every
|
|
114
124
|
* node that event reaches.
|
|
115
125
|
* - `stopPropagation()`, `stopImmediatePropagation()` and `preventDefault()`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IncaCore } from '../rendererCore.mts';
|
|
2
|
+
import { NodeId, TagName } from '../types.mts';
|
|
3
|
+
import { IncaElement } from './nodeOps.mts';
|
|
4
|
+
/**
|
|
5
|
+
* Builds the {@link IncaElement} handle for a native node: parentless,
|
|
6
|
+
* childless, with `focus()`, `blur()` and `tabIndex` wired to `core`.
|
|
7
|
+
* @param core - the incajs bindings the handle drives
|
|
8
|
+
* @param id - the native node's id
|
|
9
|
+
* @param kind - whether the node is an element or a comment stand-in
|
|
10
|
+
* @param tag - the node's element kind, if it has one; a `button` starts at tab index `0`
|
|
11
|
+
* @returns the new handle
|
|
12
|
+
*/
|
|
13
|
+
export declare function createIncaElement(core: IncaCore, id: NodeId, kind: IncaElement["kind"], tag?: TagName): IncaElement;
|
package/dist/vue/nodeOps.d.mts
CHANGED
|
@@ -27,10 +27,16 @@ export interface IncaElement {
|
|
|
27
27
|
parent: IncaElement | null;
|
|
28
28
|
/** This node's children, in render order. */
|
|
29
29
|
children: IncaNode[];
|
|
30
|
-
/** Focuses this node next frame. */
|
|
30
|
+
/** Focuses this node next frame. The node needs a `tabindex` attribute. */
|
|
31
31
|
focus(): void;
|
|
32
32
|
/** Unfocuses this node next frame, if it is the focused one. */
|
|
33
33
|
blur(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Assigning sets the `tabindex` attribute to the integer part of the
|
|
36
|
+
* value. Reading returns the last value assigned, or `-1` (`0` for a
|
|
37
|
+
* `button`).
|
|
38
|
+
*/
|
|
39
|
+
tabIndex: number;
|
|
34
40
|
}
|
|
35
41
|
/** A text leaf host node — `@vue/runtime-core`'s `HostNode` for text. */
|
|
36
42
|
export interface IncaText {
|
package/dist/vue/patchProp.d.mts
CHANGED
|
@@ -44,9 +44,13 @@ import { IncaElement } from './nodeOps.mts';
|
|
|
44
44
|
*
|
|
45
45
|
* ### Other props
|
|
46
46
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
47
|
+
* A string, number or boolean `nextValue` goes to `core.setAttribute` as it
|
|
48
|
+
* is. A `disabled`, `hidden` or `inert` set to `false` goes to
|
|
49
|
+
* `core.removeAttribute`, as does a `null` or `undefined` `nextValue`, which
|
|
50
|
+
* includes a prop that is absent from the new vnode. Any other value (an
|
|
51
|
+
* object, array, function or symbol) goes to `core.setAttribute` as
|
|
52
|
+
* `String(nextValue)`. An `onUpdate:` key is a component event and sets
|
|
53
|
+
* nothing.
|
|
50
54
|
*
|
|
51
55
|
* @param core - the incajs bindings to drive the native tree through
|
|
52
56
|
*/
|
package/dist/vue.js
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ErrorCodes as
|
|
1
|
+
import { l as e, t } from "./chunks/rendererCore-vR5RIa7d.js";
|
|
2
|
+
import { ErrorCodes as n, callWithAsyncErrorHandling as r, createRenderer as i } from "@vue/runtime-core";
|
|
3
|
+
//#region src/vue/createElement.mts
|
|
4
|
+
function a(e, t, n, r) {
|
|
5
|
+
let i = r === "button" ? 0 : -1;
|
|
6
|
+
return {
|
|
7
|
+
id: t,
|
|
8
|
+
kind: n,
|
|
9
|
+
parent: null,
|
|
10
|
+
children: [],
|
|
11
|
+
focus: () => e.focus(t),
|
|
12
|
+
blur: () => e.blur(t),
|
|
13
|
+
get tabIndex() {
|
|
14
|
+
return i;
|
|
15
|
+
},
|
|
16
|
+
set tabIndex(n) {
|
|
17
|
+
i = Math.trunc(n), e.setAttribute(t, "tabindex", i);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
3
22
|
//#region src/vue/nodeOps.mts
|
|
4
|
-
function
|
|
23
|
+
function o(e) {
|
|
5
24
|
function t(t) {
|
|
6
25
|
let n = e.createNode("text");
|
|
7
26
|
return e.setAttribute(n, "value", t), {
|
|
@@ -20,33 +39,14 @@ function s(e) {
|
|
|
20
39
|
function r(t) {
|
|
21
40
|
t.parent && e.removeChild(t.parent.id, t.id), n(t);
|
|
22
41
|
}
|
|
23
|
-
function i(t) {
|
|
24
|
-
return {
|
|
25
|
-
focus: () => e.focus(t),
|
|
26
|
-
blur: () => e.blur(t)
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
42
|
return {
|
|
30
43
|
createElement(t) {
|
|
31
|
-
|
|
32
|
-
return {
|
|
33
|
-
id: n,
|
|
34
|
-
kind: "element",
|
|
35
|
-
parent: null,
|
|
36
|
-
children: [],
|
|
37
|
-
...i(n)
|
|
38
|
-
};
|
|
44
|
+
return a(e, e.createNode(t), "element", t);
|
|
39
45
|
},
|
|
40
46
|
createText: t,
|
|
41
47
|
createComment(t) {
|
|
42
48
|
let n = e.createNode("div");
|
|
43
|
-
return e.setStyle(n, "display", "none"),
|
|
44
|
-
id: n,
|
|
45
|
-
kind: "comment",
|
|
46
|
-
parent: null,
|
|
47
|
-
children: [],
|
|
48
|
-
...i(n)
|
|
49
|
-
};
|
|
49
|
+
return e.setStyle(n, "display", "none"), a(e, n, "comment");
|
|
50
50
|
},
|
|
51
51
|
setText(t, n) {
|
|
52
52
|
e.setAttribute(t.id, "value", n), t.text = n;
|
|
@@ -79,27 +79,27 @@ function s(e) {
|
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/vue/patchProp.mts
|
|
82
|
-
var
|
|
83
|
-
function
|
|
82
|
+
var s = (e) => /^on[A-Z]/.test(e) && !e.startsWith("onUpdate:"), c = /(?:Once|Passive|Capture)$/;
|
|
83
|
+
function l(e) {
|
|
84
84
|
let t = e, n = !1, r;
|
|
85
|
-
for (; r = t.match(
|
|
85
|
+
for (; r = t.match(c);) t = t.slice(0, -r[0].length), r[0] === "Once" && (n = !0);
|
|
86
86
|
return {
|
|
87
87
|
event: t.slice(2).toLowerCase(),
|
|
88
88
|
once: n
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
var
|
|
92
|
-
function
|
|
93
|
-
let r = typeof n == "object" && n ? n : {}, i =
|
|
94
|
-
i ||
|
|
95
|
-
for (let n of i.keys())
|
|
96
|
-
for (let [n, a] of Object.entries(r))
|
|
91
|
+
var u = (e) => typeof e == "string" || typeof e == "number", d = /* @__PURE__ */ new WeakMap();
|
|
92
|
+
function f(e, t, n) {
|
|
93
|
+
let r = typeof n == "object" && n ? n : {}, i = d.get(t);
|
|
94
|
+
i || d.set(t, i = /* @__PURE__ */ new Map());
|
|
95
|
+
for (let n of i.keys()) u(r[n]) || (e.removeStyle(t.id, n), i.delete(n));
|
|
96
|
+
for (let [n, a] of Object.entries(r)) u(a) && i.get(n) !== a && (e.setStyle(t.id, n, a), i.set(n, a));
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function p(e) {
|
|
99
99
|
let t = (Array.isArray(e) ? e : [e]).filter((e) => typeof e == "function");
|
|
100
100
|
return t.length === 0 ? null : t;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function m(e, t) {
|
|
103
103
|
let n = e[0];
|
|
104
104
|
if (typeof n != "object" || !n) return t(() => !1);
|
|
105
105
|
let r = n.stopImmediatePropagation;
|
|
@@ -116,27 +116,27 @@ function h(e, t) {
|
|
|
116
116
|
i ? n.stopImmediatePropagation = r : delete n.stopImmediatePropagation;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
function
|
|
119
|
+
var h = /* @__PURE__ */ new WeakMap();
|
|
120
|
+
function g(e, t, n, r) {
|
|
121
121
|
let i = Array.from(r.slots.values()).some((e) => !e.fired);
|
|
122
|
-
i && !r.registered ? (e.setEventListener(t.id, n, r.dispatcher), r.registered = !0) : !i && r.registered && (r.registered = !1, e.removeEventListener(t.id, n)), r.slots.size === 0 &&
|
|
122
|
+
i && !r.registered ? (e.setEventListener(t.id, n, r.dispatcher), r.registered = !0) : !i && r.registered && (r.registered = !1, e.removeEventListener(t.id, n)), r.slots.size === 0 && h.get(t)?.delete(n);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
let
|
|
124
|
+
function _(e, t, i) {
|
|
125
|
+
let a = {
|
|
126
126
|
slots: /* @__PURE__ */ new Map(),
|
|
127
127
|
registered: !1,
|
|
128
128
|
dispatcher: (...o) => {
|
|
129
129
|
let s = [], c = o[0]?.eventId;
|
|
130
|
-
|
|
131
|
-
for (let u of Array.from(
|
|
130
|
+
m(o, (l) => {
|
|
131
|
+
for (let u of Array.from(a.slots.keys())) {
|
|
132
132
|
if (l()) break;
|
|
133
|
-
let d =
|
|
133
|
+
let d = a.slots.get(u);
|
|
134
134
|
if (d && !d.fired && !(typeof c == "number" && d.attachedAt >= c)) {
|
|
135
|
-
d.once && (d.fired = !0,
|
|
135
|
+
d.once && (d.fired = !0, g(e, t, i, a));
|
|
136
136
|
for (let e of d.handlers) {
|
|
137
137
|
if (l()) break;
|
|
138
138
|
try {
|
|
139
|
-
|
|
139
|
+
r(e, d.instance, n.NATIVE_EVENT_HANDLER, o);
|
|
140
140
|
} catch (e) {
|
|
141
141
|
s.push(e);
|
|
142
142
|
}
|
|
@@ -148,28 +148,28 @@ function v(e, t, n) {
|
|
|
148
148
|
if (s.length > 0) throw s[0];
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
-
return
|
|
151
|
+
return a;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
let i =
|
|
155
|
-
i?.slots.delete(r) &&
|
|
153
|
+
function v(e, t, n, r) {
|
|
154
|
+
let i = h.get(t)?.get(n);
|
|
155
|
+
i?.slots.delete(r) && g(e, t, n, i);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
let { event: a, once: o } =
|
|
157
|
+
function y(e, t, n, r, i) {
|
|
158
|
+
let { event: a, once: o } = l(n), s = p(r);
|
|
159
159
|
if (!s) {
|
|
160
|
-
|
|
160
|
+
v(e, t, a, n);
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
|
-
let c =
|
|
164
|
-
c ||
|
|
165
|
-
let
|
|
166
|
-
|
|
167
|
-
let d =
|
|
163
|
+
let c = h.get(t);
|
|
164
|
+
c || h.set(t, c = /* @__PURE__ */ new Map());
|
|
165
|
+
let u = c.get(a);
|
|
166
|
+
u || c.set(a, u = _(e, t, a));
|
|
167
|
+
let d = u.slots.get(n);
|
|
168
168
|
if (d) {
|
|
169
169
|
d.handlers = s, d.instance = i;
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
u.slots.set(n, {
|
|
173
173
|
attachedAt: e.latestEventId(),
|
|
174
174
|
handlers: s,
|
|
175
175
|
instance: i,
|
|
@@ -177,35 +177,29 @@ function b(e, t, n, r, i) {
|
|
|
177
177
|
fired: !1
|
|
178
178
|
});
|
|
179
179
|
try {
|
|
180
|
-
|
|
180
|
+
g(e, t, a, u);
|
|
181
181
|
} catch (e) {
|
|
182
|
-
throw
|
|
182
|
+
throw u.slots.delete(n), u.slots.size === 0 && c.delete(a), e;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
+
var b = /* @__PURE__ */ new Set([
|
|
186
|
+
"disabled",
|
|
187
|
+
"hidden",
|
|
188
|
+
"inert"
|
|
189
|
+
]);
|
|
185
190
|
function x(e) {
|
|
186
191
|
return (t, n, r, i, a, o) => {
|
|
187
|
-
n === "style" ?
|
|
192
|
+
n === "style" ? f(e, t, i) : s(n) ? y(e, t, n, i, o ?? null) : b.has(n) && i === !1 ? e.removeAttribute(t.id, n) : typeof i == "string" || typeof i == "number" || typeof i == "boolean" ? e.setAttribute(t.id, n, i) : i == null ? e.removeAttribute(t.id, n) : n.startsWith("onUpdate:") || e.setAttribute(t.id, n, String(i));
|
|
188
193
|
};
|
|
189
194
|
}
|
|
190
195
|
//#endregion
|
|
191
196
|
//#region src/vue/createApp.mts
|
|
192
|
-
function S(
|
|
193
|
-
let
|
|
194
|
-
...
|
|
195
|
-
patchProp: x(
|
|
196
|
-
}).createApp(
|
|
197
|
-
|
|
198
|
-
let r = e();
|
|
199
|
-
return {
|
|
200
|
-
id: r,
|
|
201
|
-
kind: "element",
|
|
202
|
-
parent: null,
|
|
203
|
-
children: [],
|
|
204
|
-
focus: () => n(r),
|
|
205
|
-
blur: () => t(r)
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
return Object.assign(c, { mount: (e) => l(e ?? u()) });
|
|
197
|
+
function S(n, r) {
|
|
198
|
+
let s = i({
|
|
199
|
+
...o(t),
|
|
200
|
+
patchProp: x(t)
|
|
201
|
+
}).createApp(n, r), c = s.mount.bind(s);
|
|
202
|
+
return Object.assign(s, { mount: (n) => c(n ?? a(t, e(), "element")) });
|
|
209
203
|
}
|
|
210
204
|
//#endregion
|
|
211
205
|
export { S as createIncaApp };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "incajs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "A GPU-native, Webview-free desktop app framework built on GPUI and QuickJS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cross-platform",
|
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
"./vue": {
|
|
42
42
|
"types": "./dist/vue/index.d.mts",
|
|
43
43
|
"import": "./dist/vue.js"
|
|
44
|
+
},
|
|
45
|
+
"./vue/runtime": {
|
|
46
|
+
"types": "./dist/vue/runtime.d.mts",
|
|
47
|
+
"import": "./dist/vue-runtime.js"
|
|
44
48
|
}
|
|
45
49
|
},
|
|
46
50
|
"publishConfig": {
|
|
@@ -48,15 +52,20 @@
|
|
|
48
52
|
},
|
|
49
53
|
"devDependencies": {
|
|
50
54
|
"@vue/runtime-core": "^3.5.43",
|
|
55
|
+
"@vue/runtime-dom": "^3.5.43",
|
|
51
56
|
"oxfmt": "^0.71.0",
|
|
52
57
|
"oxlint": "^1.86.0"
|
|
53
58
|
},
|
|
54
59
|
"peerDependencies": {
|
|
55
|
-
"@vue/runtime-core": "^3.5.43"
|
|
60
|
+
"@vue/runtime-core": "^3.5.43",
|
|
61
|
+
"@vue/runtime-dom": "^3.5.43"
|
|
56
62
|
},
|
|
57
63
|
"peerDependenciesMeta": {
|
|
58
64
|
"@vue/runtime-core": {
|
|
59
65
|
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"@vue/runtime-dom": {
|
|
68
|
+
"optional": true
|
|
60
69
|
}
|
|
61
70
|
},
|
|
62
71
|
"engines": {
|