@tachui/core 0.8.1-alpha → 0.8.5-alpha
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 +40 -2
- package/dist/assets/AssetCollection.d.ts.map +1 -1
- package/dist/assets/ColorAsset.d.ts.map +1 -1
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js +486 -0
- package/dist/assets/types.d.ts +8 -68
- package/dist/assets/types.d.ts.map +1 -1
- package/dist/binding-CYpEQquE.js +308 -0
- package/dist/build-plugins/index.d.ts +3 -0
- package/dist/build-plugins/index.d.ts.map +1 -0
- package/dist/build-plugins/modifier-types.d.ts +12 -0
- package/dist/build-plugins/modifier-types.d.ts.map +1 -0
- package/dist/build-tools/typegen-runner.d.ts +29 -0
- package/dist/build-tools/typegen-runner.d.ts.map +1 -0
- package/dist/bundles/minimal.d.ts +2 -0
- package/dist/bundles/minimal.d.ts.map +1 -1
- package/dist/common.js +427 -394
- package/dist/{component-XAzF1xqs.js → component-CECyfUOE.js} +80 -68
- package/dist/{component-base-x2XmHFjy.js → component-base-CJ__jTlr.js} +9 -7
- package/dist/component-context-B6qX_Qsg.js +176 -0
- package/dist/components/factory.d.ts +24 -0
- package/dist/components/factory.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +8 -6
- package/dist/components/wrapper.d.ts +70 -30
- package/dist/components/wrapper.d.ts.map +1 -1
- package/dist/concatenated-component-_tF1eMvy.js +2288 -0
- package/dist/concatenation/concatenated-component.d.ts +16 -2
- package/dist/concatenation/concatenated-component.d.ts.map +1 -1
- package/dist/concatenation/text-optimizer.d.ts.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/constants/layout.d.ts +2 -9
- package/dist/constants/layout.d.ts.map +1 -1
- package/dist/css-classes/index.js +15 -173
- package/dist/{effect-B9Knft0b.js → effect-DGmdACI2.js} +3 -3
- package/dist/enhanced-renderer-Bwqsh8Ku.js +172 -0
- package/dist/essential.js +427 -394
- package/dist/{index-DIvMCJQO.js → factories-Co2Lv2kJ.js} +13 -13
- package/dist/factory-D7jAY5Kn.js +485 -0
- package/dist/gradients/css-generator.js +99 -0
- package/dist/gradients/index.js +56 -0
- package/dist/gradients/reactive.d.ts.map +1 -1
- package/dist/gradients/types.d.ts +3 -91
- package/dist/gradients/types.d.ts.map +1 -1
- package/dist/hooks-DeLasj54.js +446 -0
- package/dist/index-JQ1sW1SK.js +2049 -0
- package/dist/index-X8MVY78C.js +618 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +427 -394
- package/dist/minimal-prod.js +94 -93
- package/dist/minimal.js +114 -108
- package/dist/modifiers/alignment.d.ts +5 -0
- package/dist/modifiers/alignment.d.ts.map +1 -0
- package/dist/modifiers/base.d.ts +6 -7
- package/dist/modifiers/base.d.ts.map +1 -1
- package/dist/modifiers/base.js +24 -16
- package/dist/modifiers/builder.d.ts +28 -165
- package/dist/modifiers/builder.d.ts.map +1 -1
- package/dist/modifiers/builder.js +7 -7
- package/dist/modifiers/core.d.ts +0 -1
- package/dist/modifiers/core.d.ts.map +1 -1
- package/dist/modifiers/corner-radius.d.ts +8 -0
- package/dist/modifiers/corner-radius.d.ts.map +1 -0
- package/dist/modifiers/index.d.ts +9 -6
- package/dist/modifiers/index.d.ts.map +1 -1
- package/dist/modifiers/index.js +36 -30
- package/dist/modifiers/layout-priority.d.ts +8 -0
- package/dist/modifiers/layout-priority.d.ts.map +1 -0
- package/dist/modifiers/opacity.d.ts +8 -0
- package/dist/modifiers/opacity.d.ts.map +1 -0
- package/dist/modifiers/presets.d.ts.map +1 -1
- package/dist/modifiers/proxy.d.ts +4 -0
- package/dist/modifiers/proxy.d.ts.map +1 -0
- package/dist/modifiers/registration-utils.d.ts +7 -0
- package/dist/modifiers/registration-utils.d.ts.map +1 -0
- package/dist/modifiers/registry.d.ts +18 -9
- package/dist/modifiers/registry.d.ts.map +1 -1
- package/dist/modifiers/registry.js +2 -2
- package/dist/modifiers/type-generator.d.ts +82 -0
- package/dist/modifiers/type-generator.d.ts.map +1 -0
- package/dist/modifiers/types.d.ts +2 -479
- package/dist/modifiers/types.d.ts.map +1 -1
- package/dist/modifiers/types.js +1 -4
- package/dist/{observed-object-Cos-FtjP.js → observed-object-DepiqSgg.js} +3 -3
- package/dist/optimization-CbKNA9w4.js +21 -0
- package/dist/plugins/index.js +28 -8
- package/dist/plugins/simplified-lazy-loader.d.ts.map +1 -1
- package/dist/presets-B9x94uRn.js +381 -0
- package/dist/proxy-Cqmbiyx0.js +175 -0
- package/dist/reactive/cleanup.d.ts.map +1 -1
- package/dist/reactive/computed.d.ts +1 -1
- package/dist/reactive/computed.d.ts.map +1 -1
- package/dist/reactive/context.d.ts +4 -3
- package/dist/reactive/context.d.ts.map +1 -1
- package/dist/reactive/index.d.ts +1 -0
- package/dist/reactive/index.d.ts.map +1 -1
- package/dist/reactive/index.js +84 -490
- package/dist/reactive/signal-list.d.ts +100 -0
- package/dist/reactive/signal-list.d.ts.map +1 -0
- package/dist/reactive/signal.d.ts.map +1 -1
- package/dist/reactive/types.d.ts +2 -89
- package/dist/reactive/types.d.ts.map +1 -1
- package/dist/reactive/types.js +1 -4
- package/dist/registration-utils-CNsN4eoU.js +27 -0
- package/dist/runtime/component.d.ts.map +1 -1
- package/dist/runtime/concatenation-aria.d.ts.map +1 -1
- package/dist/runtime/concatenation-aria.js +18 -13
- package/dist/runtime/concatenation-full.d.ts.map +1 -1
- package/dist/runtime/concatenation-full.js +42 -34
- package/dist/runtime/concatenation-minimal.d.ts.map +1 -1
- package/dist/runtime/concatenation-minimal.js +13 -8
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/dom-bridge.d.ts +1 -1
- package/dist/runtime/dom-bridge.d.ts.map +1 -1
- package/dist/runtime/dom-bridge.js +239 -12
- package/dist/runtime/event-delegation.d.ts +59 -0
- package/dist/runtime/event-delegation.d.ts.map +1 -0
- package/dist/runtime/index.d.ts +3 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +96 -0
- package/dist/runtime/layout-scheduler.d.ts +89 -0
- package/dist/runtime/layout-scheduler.d.ts.map +1 -0
- package/dist/runtime/props.d.ts.map +1 -1
- package/dist/runtime/renderer.d.ts +54 -2
- package/dist/runtime/renderer.d.ts.map +1 -1
- package/dist/runtime/renderer.js +11 -7
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
- package/dist/runtime/types.d.ts +2 -226
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/runtime/types.js +1 -1
- package/dist/scheduler-DI_8ykMk.js +169 -0
- package/dist/signal-list-BdpxSodS.js +525 -0
- package/dist/state/index.js +319 -0
- package/dist/theme-BFaKUcjZ.js +677 -0
- package/dist/utils/clone-helpers.d.ts +11 -0
- package/dist/utils/clone-helpers.d.ts.map +1 -0
- package/dist/validation/index.js +28 -26
- package/dist/version.d.ts +19 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +6 -0
- package/package.json +51 -11
- package/dist/concatenated-component-ByPl3_FF.js +0 -2933
- package/dist/dom-bridge-CAa1N2zX.js +0 -406
- package/dist/index-DEBd8cq7.js +0 -1144
- package/dist/index-vdsiw6gQ.js +0 -777
- package/dist/modifiers/as-html-validator.d.ts +0 -20
- package/dist/modifiers/as-html-validator.d.ts.map +0 -1
- package/dist/modifiers/as-html.d.ts +0 -65
- package/dist/modifiers/as-html.d.ts.map +0 -1
- package/dist/modifiers/background.d.ts +0 -51
- package/dist/modifiers/background.d.ts.map +0 -1
- package/dist/modifiers/basic-sanitizer.d.ts +0 -54
- package/dist/modifiers/basic-sanitizer.d.ts.map +0 -1
- package/dist/modifiers/css.d.ts +0 -86
- package/dist/modifiers/css.d.ts.map +0 -1
- package/dist/production-minimal-BY_gMc-l.js +0 -2532
- package/dist/scheduler-BKeqwrYE.js +0 -814
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { c as l, l as f } from "./theme-BFaKUcjZ.js";
|
|
2
|
+
import { c as w } from "./effect-DGmdACI2.js";
|
|
3
|
+
import { g as m } from "./component-context-B6qX_Qsg.js";
|
|
4
|
+
var b = Object.defineProperty, $ = (e, t, n) => t in e ? b(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, _ = (e, t, n) => $(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
|
+
class y {
|
|
6
|
+
constructor(t, n, r, s = {}) {
|
|
7
|
+
_(this, "_accessor"), _(this, "_setter"), _(this, "_binding"), _(this, "_metadata");
|
|
8
|
+
const [o, i] = l(t);
|
|
9
|
+
this._accessor = o, this._setter = i, this._binding = u(o, i, {
|
|
10
|
+
name: s.name || `${r}Binding`
|
|
11
|
+
}), this._metadata = {
|
|
12
|
+
type: "State",
|
|
13
|
+
propertyName: r,
|
|
14
|
+
componentId: n.id,
|
|
15
|
+
options: s
|
|
16
|
+
}, n.setState(r, t);
|
|
17
|
+
const a = f();
|
|
18
|
+
a && a.cleanups.push(() => {
|
|
19
|
+
this.cleanup();
|
|
20
|
+
}), s.resetOnMount && this.resetToInitialValue(t), s.persist && typeof window < "u" && this.setupPersistence(r, t);
|
|
21
|
+
}
|
|
22
|
+
get wrappedValue() {
|
|
23
|
+
return this._accessor();
|
|
24
|
+
}
|
|
25
|
+
set wrappedValue(t) {
|
|
26
|
+
this._setter(t);
|
|
27
|
+
}
|
|
28
|
+
get projectedValue() {
|
|
29
|
+
return this._binding;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get the underlying signal accessor (for advanced usage)
|
|
33
|
+
*/
|
|
34
|
+
get accessor() {
|
|
35
|
+
return this._accessor;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Get the underlying signal setter (for advanced usage)
|
|
39
|
+
*/
|
|
40
|
+
get setter() {
|
|
41
|
+
return this._setter;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get property wrapper metadata
|
|
45
|
+
*/
|
|
46
|
+
get metadata() {
|
|
47
|
+
return this._metadata;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Reset to initial value
|
|
51
|
+
*/
|
|
52
|
+
resetToInitialValue(t) {
|
|
53
|
+
this._setter(t);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Set up local storage persistence
|
|
57
|
+
*/
|
|
58
|
+
setupPersistence(t, n) {
|
|
59
|
+
const r = `tachui_state_${this._metadata.componentId}_${t}`;
|
|
60
|
+
try {
|
|
61
|
+
const s = localStorage.getItem(r);
|
|
62
|
+
if (s != null && s !== "undefined") {
|
|
63
|
+
const o = JSON.parse(s);
|
|
64
|
+
this._setter(o);
|
|
65
|
+
}
|
|
66
|
+
} catch (s) {
|
|
67
|
+
console.warn(`Failed to load persisted state for ${t}:`, s);
|
|
68
|
+
}
|
|
69
|
+
w(() => {
|
|
70
|
+
const s = this._accessor();
|
|
71
|
+
try {
|
|
72
|
+
localStorage.setItem(r, JSON.stringify(s));
|
|
73
|
+
} catch (o) {
|
|
74
|
+
console.warn(`Failed to persist state for ${t}:`, o);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Cleanup resources
|
|
80
|
+
*/
|
|
81
|
+
cleanup() {
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function u(e, t, n = {}) {
|
|
85
|
+
return new V(e, t, n);
|
|
86
|
+
}
|
|
87
|
+
let V = class {
|
|
88
|
+
constructor(t, n, r = {}) {
|
|
89
|
+
this._get = t, this._set = n, this._options = r;
|
|
90
|
+
}
|
|
91
|
+
get wrappedValue() {
|
|
92
|
+
return this._get();
|
|
93
|
+
}
|
|
94
|
+
set wrappedValue(t) {
|
|
95
|
+
this._set(t);
|
|
96
|
+
}
|
|
97
|
+
get projectedValue() {
|
|
98
|
+
return this;
|
|
99
|
+
}
|
|
100
|
+
get() {
|
|
101
|
+
return this._get();
|
|
102
|
+
}
|
|
103
|
+
set(t) {
|
|
104
|
+
this._set(t);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Create a derived binding with transformation
|
|
108
|
+
*/
|
|
109
|
+
map(t, n) {
|
|
110
|
+
return u(() => t(this._get()), (o) => {
|
|
111
|
+
const i = this._get(), a = t(i), d = typeof o == "function" ? o(a) : o, h = n(d, i);
|
|
112
|
+
this._set(h);
|
|
113
|
+
}, {
|
|
114
|
+
name: `${this._options.name || "binding"}_mapped`
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Create a constant binding (read-only)
|
|
119
|
+
*/
|
|
120
|
+
constant() {
|
|
121
|
+
return u(
|
|
122
|
+
this._get,
|
|
123
|
+
() => (console.warn("Attempted to set value on constant binding"), this._get()),
|
|
124
|
+
{ name: `${this._options.name || "binding"}_constant` }
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
const M = (e, t = {}) => {
|
|
129
|
+
const n = m(), r = S() || "state";
|
|
130
|
+
return new y(e, n, r, t);
|
|
131
|
+
}, E = u;
|
|
132
|
+
function S() {
|
|
133
|
+
try {
|
|
134
|
+
const e = new Error().stack;
|
|
135
|
+
if (e)
|
|
136
|
+
return e.match(/at (\w+)\./)?.[1] || null;
|
|
137
|
+
} catch {
|
|
138
|
+
}
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
function C(e) {
|
|
142
|
+
return e && typeof e == "object" && "wrappedValue" in e && "projectedValue" in e;
|
|
143
|
+
}
|
|
144
|
+
function N(e) {
|
|
145
|
+
return e && typeof e == "object" && "get" in e && "set" in e && "wrappedValue" in e;
|
|
146
|
+
}
|
|
147
|
+
function F(e) {
|
|
148
|
+
return C(e) || N(e) ? e.wrappedValue : e;
|
|
149
|
+
}
|
|
150
|
+
var x = Object.defineProperty, O = (e, t, n) => t in e ? x(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, p = (e, t, n) => O(e, typeof t != "symbol" ? t + "" : t, n);
|
|
151
|
+
class c {
|
|
152
|
+
constructor(t, n, r, s, o = {}) {
|
|
153
|
+
p(this, "_get"), p(this, "_set"), p(this, "_options"), p(this, "_componentContext"), p(this, "_propertyName"), this._get = t, this._set = n, this._componentContext = r, this._propertyName = s, this._options = o, r.setBinding(s, this);
|
|
154
|
+
}
|
|
155
|
+
get wrappedValue() {
|
|
156
|
+
return this._get();
|
|
157
|
+
}
|
|
158
|
+
set wrappedValue(t) {
|
|
159
|
+
this._set(t), this._componentContext.setState(`_binding_${this._propertyName}_trigger`, Date.now());
|
|
160
|
+
}
|
|
161
|
+
get projectedValue() {
|
|
162
|
+
return this;
|
|
163
|
+
}
|
|
164
|
+
get() {
|
|
165
|
+
return this._get();
|
|
166
|
+
}
|
|
167
|
+
set(t) {
|
|
168
|
+
this._set(t), this._componentContext.setState(`_binding_${this._propertyName}_trigger`, Date.now());
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Create a derived binding with transformation
|
|
172
|
+
*/
|
|
173
|
+
map(t, n) {
|
|
174
|
+
const r = () => t(this._get()), s = (o) => {
|
|
175
|
+
const i = this._get(), a = t(i), d = typeof o == "function" ? o(a) : o, h = n(d, i);
|
|
176
|
+
this._set(h), this._componentContext.setState(`_binding_${this._propertyName}_mapped_trigger`, Date.now());
|
|
177
|
+
};
|
|
178
|
+
return new c(
|
|
179
|
+
r,
|
|
180
|
+
s,
|
|
181
|
+
this._componentContext,
|
|
182
|
+
`${this._propertyName}_mapped`,
|
|
183
|
+
{ name: `${this._options.name || "binding"}_mapped` }
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Create a constant binding (read-only)
|
|
188
|
+
*/
|
|
189
|
+
constant() {
|
|
190
|
+
const t = () => (console.warn("Attempted to set value on constant binding"), this._get());
|
|
191
|
+
return new c(
|
|
192
|
+
this._get,
|
|
193
|
+
t,
|
|
194
|
+
this._componentContext,
|
|
195
|
+
`${this._propertyName}_constant`,
|
|
196
|
+
{ name: `${this._options.name || "binding"}_constant` }
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Create a binding with validation
|
|
201
|
+
*/
|
|
202
|
+
withValidation(t, n) {
|
|
203
|
+
const r = (s) => {
|
|
204
|
+
const o = typeof s == "function" ? s(this._get()) : s;
|
|
205
|
+
return t(o) ? (this._set(o), this._componentContext.setState(
|
|
206
|
+
`_binding_${this._propertyName}_validated_trigger`,
|
|
207
|
+
Date.now()
|
|
208
|
+
)) : console.warn(n || `Validation failed for binding ${this._propertyName}`), o;
|
|
209
|
+
};
|
|
210
|
+
return new c(
|
|
211
|
+
this._get,
|
|
212
|
+
r,
|
|
213
|
+
this._componentContext,
|
|
214
|
+
`${this._propertyName}_validated`,
|
|
215
|
+
{ name: `${this._options.name || "binding"}_validated` }
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Create a debounced binding
|
|
220
|
+
*/
|
|
221
|
+
debounced(t = 300) {
|
|
222
|
+
let n = null;
|
|
223
|
+
const r = (s) => {
|
|
224
|
+
const o = typeof s == "function" ? s(this._get()) : s;
|
|
225
|
+
return n && clearTimeout(n), n = setTimeout(() => {
|
|
226
|
+
this._set(o), this._componentContext.setState(
|
|
227
|
+
`_binding_${this._propertyName}_debounced_trigger`,
|
|
228
|
+
Date.now()
|
|
229
|
+
), n = null;
|
|
230
|
+
}, t), o;
|
|
231
|
+
};
|
|
232
|
+
return new c(
|
|
233
|
+
this._get,
|
|
234
|
+
r,
|
|
235
|
+
this._componentContext,
|
|
236
|
+
`${this._propertyName}_debounced`,
|
|
237
|
+
{ name: `${this._options.name || "binding"}_debounced` }
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
function g(e, t, n = {}) {
|
|
242
|
+
const r = m(), s = P() || "binding";
|
|
243
|
+
return new c(e, t, r, s, n);
|
|
244
|
+
}
|
|
245
|
+
function P() {
|
|
246
|
+
try {
|
|
247
|
+
const e = new Error().stack;
|
|
248
|
+
if (e)
|
|
249
|
+
return e.match(/at (\w+)\./)?.[1] || null;
|
|
250
|
+
} catch {
|
|
251
|
+
}
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
254
|
+
function T(e) {
|
|
255
|
+
return e && typeof e == "object" && "get" in e && "set" in e && "wrappedValue" in e && e instanceof c;
|
|
256
|
+
}
|
|
257
|
+
const A = {
|
|
258
|
+
/**
|
|
259
|
+
* Check if a binding is read-only
|
|
260
|
+
*/
|
|
261
|
+
isReadOnly(e) {
|
|
262
|
+
if (e instanceof c)
|
|
263
|
+
try {
|
|
264
|
+
const t = e.get(), n = console.warn;
|
|
265
|
+
let r = !1;
|
|
266
|
+
return console.warn = (...s) => {
|
|
267
|
+
s[0] === "Attempted to set value on constant binding" && (r = !0);
|
|
268
|
+
}, e.set(t), console.warn = n, r;
|
|
269
|
+
} catch {
|
|
270
|
+
return !0;
|
|
271
|
+
}
|
|
272
|
+
return !1;
|
|
273
|
+
},
|
|
274
|
+
/**
|
|
275
|
+
* Create a computed binding from multiple sources
|
|
276
|
+
*/
|
|
277
|
+
computed(e, t, n = {}) {
|
|
278
|
+
const r = () => {
|
|
279
|
+
const o = e.map((i) => i.get());
|
|
280
|
+
return t(...o);
|
|
281
|
+
};
|
|
282
|
+
return g(r, () => (console.warn("Cannot set computed binding value"), r()), n);
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
* Chain multiple bindings together
|
|
286
|
+
*/
|
|
287
|
+
chain(e, t = {}) {
|
|
288
|
+
const n = () => e.map((s) => s.get());
|
|
289
|
+
return g(n, (s) => {
|
|
290
|
+
const o = typeof s == "function" ? s(n()) : s;
|
|
291
|
+
return e.forEach((i, a) => {
|
|
292
|
+
a < o.length && i.set(o[a]);
|
|
293
|
+
}), o;
|
|
294
|
+
}, t);
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
export {
|
|
298
|
+
c as B,
|
|
299
|
+
M as S,
|
|
300
|
+
T as a,
|
|
301
|
+
A as b,
|
|
302
|
+
g as c,
|
|
303
|
+
u as d,
|
|
304
|
+
E as e,
|
|
305
|
+
N as f,
|
|
306
|
+
C as i,
|
|
307
|
+
F as u
|
|
308
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/build-plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,YAAY,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
export interface ModifierTypesPluginOptions {
|
|
3
|
+
declaration?: string;
|
|
4
|
+
snapshot?: string;
|
|
5
|
+
failOnConflict?: boolean;
|
|
6
|
+
watch?: boolean;
|
|
7
|
+
watchPatterns?: string[];
|
|
8
|
+
extraHydrators?: string[];
|
|
9
|
+
debug?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function modifierTypesPlugin(options?: ModifierTypesPluginOptions): Plugin;
|
|
12
|
+
//# sourceMappingURL=modifier-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifier-types.d.ts","sourceRoot":"","sources":["../../src/build-plugins/modifier-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAgBlC,MAAM,WAAW,0BAA0B;IACzC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,wBAAgB,mBAAmB,CACjC,OAAO,GAAE,0BAA+B,GACvC,MAAM,CA0ER"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared utilities for modifier type generation tooling.
|
|
3
|
+
* These helpers are reused by the CLI script and the Vite plugin.
|
|
4
|
+
*/
|
|
5
|
+
import type { GeneratedModifierArtifacts } from '../modifiers/type-generator';
|
|
6
|
+
export interface HydratorCandidate {
|
|
7
|
+
name: string;
|
|
8
|
+
relativePath: string;
|
|
9
|
+
hooks?: string[];
|
|
10
|
+
optional?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface HydrationOptions {
|
|
13
|
+
debug?: boolean;
|
|
14
|
+
extraModules?: string[];
|
|
15
|
+
}
|
|
16
|
+
export declare const DEFAULT_HYDRATORS: HydratorCandidate[];
|
|
17
|
+
export declare function hydrateRegistry(options?: HydrationOptions): Promise<void>;
|
|
18
|
+
export interface ResolvePathsOptions {
|
|
19
|
+
declaration?: string;
|
|
20
|
+
snapshot?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function resolveOutputPaths(options?: ResolvePathsOptions): {
|
|
23
|
+
declarationFile: string;
|
|
24
|
+
snapshotFile: string;
|
|
25
|
+
};
|
|
26
|
+
export declare function verifyOutputs(artifacts: GeneratedModifierArtifacts, declarationFile: string, snapshotFile: string): Promise<void>;
|
|
27
|
+
export declare function writeArtifacts(artifacts: GeneratedModifierArtifacts, declarationFile: string, snapshotFile: string): Promise<void>;
|
|
28
|
+
export declare function relativePath(path: string): string;
|
|
29
|
+
//# sourceMappingURL=typegen-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typegen-runner.d.ts","sourceRoot":"","sources":["../../src/build-tools/typegen-runner.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAE7E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAID,eAAO,MAAM,iBAAiB,EAAE,iBAAiB,EAYhD,CAAA;AAED,wBAAsB,eAAe,CACnC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAyEf;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,mBAAwB,GAChC;IAAE,eAAe,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAoBnD;AAED,wBAAsB,aAAa,CACjC,SAAS,EAAE,0BAA0B,EACrC,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAED,wBAAsB,cAAc,CAClC,SAAS,EAAE,0BAA0B,EACrC,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD"}
|
|
@@ -13,6 +13,7 @@ export { setTheme, detectSystemTheme, getCurrentTheme } from '../reactive/theme'
|
|
|
13
13
|
export * from '../runtime/dom-bridge';
|
|
14
14
|
export * from '../runtime/component';
|
|
15
15
|
export * from '../runtime/props';
|
|
16
|
+
export type { ComponentInstance } from '../runtime/types';
|
|
16
17
|
export { EnvironmentObject, createEnvironmentKey, provideEnvironmentObject, } from '../state/environment';
|
|
17
18
|
export { withComponentContext, getCurrentComponentContext, createComponentContext, setCurrentComponentContext, } from '../runtime/component-context';
|
|
18
19
|
export * from '../modifiers/core';
|
|
@@ -22,6 +23,7 @@ export { ObservableObjectBase } from '../state/observed-object';
|
|
|
22
23
|
export { Assets, Asset, ColorAsset, ImageAsset, FontAsset, registerAsset, createColorAsset, createImageAsset, createFontAsset, createGoogleFont, } from '../assets';
|
|
23
24
|
export { infinity, Layout, isInfinity } from '../constants';
|
|
24
25
|
export { LinearGradient, StateGradient } from '../gradients';
|
|
26
|
+
export { TACHUI_PACKAGE, TACHUI_PACKAGE_VERSION, VERSION } from '../version';
|
|
25
27
|
/**
|
|
26
28
|
* Minimal Bundle Metadata
|
|
27
29
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minimal.d.ts","sourceRoot":"","sources":["../../src/bundles/minimal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5E,cAAc,qBAAqB,CAAA;AAGnC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGhF,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"minimal.d.ts","sourceRoot":"","sources":["../../src/bundles/minimal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5E,cAAc,qBAAqB,CAAA;AAGnC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGhF,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAGzD,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,8BAA8B,CAAA;AAOrC,cAAc,mBAAmB,CAAA;AAQjC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAG/D,OAAO,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EAEf,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAGlB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAG3D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAK5D,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;CAiBd,CAAA"}
|