@fluixi/core 1.0.0-alpha.100 → 1.0.0-alpha.102
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 +11 -11
- package/dist/cdn/core.global.js +2 -2
- package/dist/src/cdn/core.cjs +2 -7
- package/dist/src/cdn/core.mjs +2 -8
- package/dist/src/index.cjs +2 -18
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.mjs +2 -18
- package/dist/src/jsx-runtime.d.ts +1 -1
- package/dist/src/jsx-runtime.js +1 -4
- package/dist/src/lib/client/{chunk-FDOPDB6Z.mjs → chunk-PLBLUAUD.mjs} +1 -1
- package/dist/src/lib/client/index.cjs +2 -2
- package/dist/src/lib/client/index.d.ts +1 -1
- package/dist/src/lib/client/index.js +2 -2
- package/dist/src/lib/client/index.mjs +4 -4
- package/dist/src/lib/client/{router-4PTBPZLQ.mjs → router-LQ57EOB4.mjs} +2 -2
- package/dist/src/lib/core.cjs +1 -17
- package/dist/src/lib/core.d.ts +2 -6
- package/dist/src/lib/core.d.ts.map +1 -1
- package/dist/src/lib/core.js +6 -22
- package/dist/src/lib/core.mjs +1 -17
- package/dist/src/lib/i18n/index.cjs +1 -1
- package/dist/src/lib/i18n/index.mjs +1 -1
- package/dist/src/lib/index.cjs +2 -8
- package/dist/src/lib/index.d.ts +3 -9
- package/dist/src/lib/index.d.ts.map +1 -1
- package/dist/src/lib/index.js +3 -26
- package/dist/src/lib/index.mjs +2 -9
- package/dist/src/lib/jsx-runtime/index.cjs +1 -1
- package/dist/src/lib/jsx-runtime/index.mjs +1 -1
- package/dist/src/lib/jsx-runtime/jsx-dev-runtime.cjs +1 -1
- package/dist/src/lib/jsx-runtime/jsx-dev-runtime.mjs +1 -1
- package/dist/src/lib/plugins/index.cjs +1 -1
- package/dist/src/lib/plugins/index.mjs +1 -1
- package/dist/src/lib/plugins/route-codegen.d.ts.map +1 -1
- package/dist/src/lib/plugins/route-codegen.js +0 -6
- package/dist/src/lib/plugins/route-scanner.d.ts.map +1 -1
- package/dist/src/lib/plugins/route-scanner.js +0 -6
- package/dist/src/lib/render/component.d.ts +0 -3
- package/dist/src/lib/render/component.d.ts.map +1 -1
- package/dist/src/lib/render/component.js +0 -21
- package/dist/src/lib/render/index.cjs +1 -10
- package/dist/src/lib/render/index.d.ts +1 -4
- package/dist/src/lib/render/index.d.ts.map +1 -1
- package/dist/src/lib/render/index.js +1 -21
- package/dist/src/lib/render/index.mjs +1 -10
- package/dist/src/lib/render/lazy.js +1 -1
- package/dist/src/lib/render/suspense.cjs +0 -5
- package/dist/src/lib/render/suspense.d.ts +1 -2
- package/dist/src/lib/render/suspense.d.ts.map +1 -1
- package/dist/src/lib/render/suspense.js +1 -8
- package/dist/src/lib/render/suspense.mjs +0 -5
- package/dist/src/lib/render/versions.cjs +1 -1
- package/dist/src/lib/render/versions.mjs +1 -1
- package/dist/src/lib/router/data.d.ts.map +1 -1
- package/dist/src/lib/router/data.js +0 -5
- package/dist/src/lib/router/index.cjs +1 -1
- package/dist/src/lib/router/index.js +5 -5
- package/dist/src/lib/router/index.mjs +1 -1
- package/dist/src/lib/server/hydration.d.ts +0 -6
- package/dist/src/lib/server/hydration.d.ts.map +1 -1
- package/dist/src/lib/server/hydration.js +0 -22
- package/dist/src/lib/server/index.cjs +1 -1
- package/dist/src/lib/server/index.d.ts +1 -7
- package/dist/src/lib/server/index.d.ts.map +1 -1
- package/dist/src/lib/server/index.js +1 -12
- package/dist/src/lib/server/index.mjs +1 -1
- package/dist/src/lib/server/reactive.d.ts.map +1 -1
- package/dist/src/lib/server/reactive.js +0 -35
- package/dist/src/lib/storage/index.cjs +1 -1
- package/dist/src/lib/storage/index.mjs +1 -1
- package/dist/src/routes.cjs +1 -1
- package/dist/src/routes.mjs +1 -1
- package/dist/src/server.d.ts +0 -1
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +0 -1
- package/dist/src/utils.cjs +1 -1
- package/dist/src/utils.mjs +1 -1
- package/dist/src/version.generated.cjs +1 -1
- package/dist/src/version.generated.d.ts +1 -1
- package/dist/src/version.generated.js +1 -1
- package/dist/src/version.generated.mjs +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +20 -24
- package/src/index.ts +0 -2
- package/dist/cli/generate.cjs +0 -5639
- package/dist/cli/generate.d.ts +0 -7
- package/dist/cli/generate.d.ts.map +0 -1
- package/dist/cli/generate.js +0 -2580
- package/dist/cli/generate.mjs +0 -5644
- package/dist/cli/index.cjs +0 -5639
- package/dist/cli/index.d.ts +0 -7
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -2580
- package/dist/cli/index.mjs +0 -5644
- package/dist/cli/run.cjs +0 -64
- package/dist/cli/run.d.ts +0 -3
- package/dist/cli/run.d.ts.map +0 -1
- package/dist/cli/run.js +0 -62
- package/dist/cli/run.mjs +0 -40
package/dist/src/cdn/core.cjs
CHANGED
|
@@ -1040,7 +1040,6 @@ __export(core_exports, {
|
|
|
1040
1040
|
insert: () => import_dom14.insert,
|
|
1041
1041
|
isDOMNode: () => import_dom14.isDOMNode,
|
|
1042
1042
|
isDev: () => isDev,
|
|
1043
|
-
isLitTemplateResult: () => import_dom14.isLitTemplateResult,
|
|
1044
1043
|
isRenderable: () => isRenderable,
|
|
1045
1044
|
jsx: () => jsx_runtime_exports.jsx,
|
|
1046
1045
|
jsxs: () => jsx_runtime_exports.jsxs,
|
|
@@ -1096,7 +1095,7 @@ var import_signal6 = require("@fluixi/reactive/signal");
|
|
|
1096
1095
|
var import_dom = require("@fluixi/dom");
|
|
1097
1096
|
|
|
1098
1097
|
// src/version.generated.ts
|
|
1099
|
-
var VERSION = "1.0.0-alpha.
|
|
1098
|
+
var VERSION = "1.0.0-alpha.102";
|
|
1100
1099
|
|
|
1101
1100
|
// src/lib/render/versions.ts
|
|
1102
1101
|
var import_dom2 = require("@fluixi/dom");
|
|
@@ -1361,9 +1360,6 @@ function render(code, container, options = {}) {
|
|
|
1361
1360
|
}
|
|
1362
1361
|
};
|
|
1363
1362
|
}
|
|
1364
|
-
function isLitTemplateResult(value) {
|
|
1365
|
-
return value && typeof value === "object" && (value["_$litType$"] !== void 0 || value["_$litDirective$"] !== void 0);
|
|
1366
|
-
}
|
|
1367
1363
|
function portal(code, target, options = {}) {
|
|
1368
1364
|
const container = document.createElement("div");
|
|
1369
1365
|
container.setAttribute("data-portal", "true");
|
|
@@ -1380,7 +1376,6 @@ function isRenderable(value) {
|
|
|
1380
1376
|
if (value == null) return true;
|
|
1381
1377
|
if (typeof value === "function") return true;
|
|
1382
1378
|
if ((0, import_dom9.isDOMNode)(value)) return true;
|
|
1383
|
-
if (isLitTemplateResult(value)) return true;
|
|
1384
1379
|
if (Array.isArray(value)) return true;
|
|
1385
1380
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
1386
1381
|
return true;
|
|
@@ -1446,7 +1441,7 @@ function getFrameworkInfo() {
|
|
|
1446
1441
|
ssr: true,
|
|
1447
1442
|
hydration: true,
|
|
1448
1443
|
jsx: true,
|
|
1449
|
-
|
|
1444
|
+
htmlTagged: true,
|
|
1450
1445
|
signals: true,
|
|
1451
1446
|
fineGrained: true,
|
|
1452
1447
|
lazy: true,
|
package/dist/src/cdn/core.mjs
CHANGED
|
@@ -54,7 +54,7 @@ import { createRoot as createRoot2 } from "@fluixi/reactive/signal";
|
|
|
54
54
|
import { registerCoreVersion } from "@fluixi/dom";
|
|
55
55
|
|
|
56
56
|
// src/version.generated.ts
|
|
57
|
-
var VERSION = "1.0.0-alpha.
|
|
57
|
+
var VERSION = "1.0.0-alpha.102";
|
|
58
58
|
|
|
59
59
|
// src/lib/render/versions.ts
|
|
60
60
|
import { stampVersions, warnOnVersionSkew, versions } from "@fluixi/dom";
|
|
@@ -349,9 +349,6 @@ function render(code, container, options = {}) {
|
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function isLitTemplateResult(value) {
|
|
353
|
-
return value && typeof value === "object" && (value["_$litType$"] !== void 0 || value["_$litDirective$"] !== void 0);
|
|
354
|
-
}
|
|
355
352
|
function portal(code, target, options = {}) {
|
|
356
353
|
const container = document.createElement("div");
|
|
357
354
|
container.setAttribute("data-portal", "true");
|
|
@@ -368,7 +365,6 @@ function isRenderable(value) {
|
|
|
368
365
|
if (value == null) return true;
|
|
369
366
|
if (typeof value === "function") return true;
|
|
370
367
|
if (isDOMNode(value)) return true;
|
|
371
|
-
if (isLitTemplateResult(value)) return true;
|
|
372
368
|
if (Array.isArray(value)) return true;
|
|
373
369
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
374
370
|
return true;
|
|
@@ -437,7 +433,6 @@ import {
|
|
|
437
433
|
toggleClass,
|
|
438
434
|
delegateEvents as delegateEvents2,
|
|
439
435
|
isDOMNode as isDOMNode2,
|
|
440
|
-
isLitTemplateResult as isLitTemplateResult2,
|
|
441
436
|
hydrate
|
|
442
437
|
} from "@fluixi/dom";
|
|
443
438
|
|
|
@@ -466,7 +461,7 @@ function getFrameworkInfo() {
|
|
|
466
461
|
ssr: true,
|
|
467
462
|
hydration: true,
|
|
468
463
|
jsx: true,
|
|
469
|
-
|
|
464
|
+
htmlTagged: true,
|
|
470
465
|
signals: true,
|
|
471
466
|
fineGrained: true,
|
|
472
467
|
lazy: true,
|
|
@@ -672,7 +667,6 @@ export {
|
|
|
672
667
|
insert2 as insert,
|
|
673
668
|
isDOMNode2 as isDOMNode,
|
|
674
669
|
isDev,
|
|
675
|
-
isLitTemplateResult2 as isLitTemplateResult,
|
|
676
670
|
isRenderable,
|
|
677
671
|
export_jsx as jsx,
|
|
678
672
|
export_jsxs as jsxs,
|
package/dist/src/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.102 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -88,7 +88,6 @@ __export(index_exports, {
|
|
|
88
88
|
initDelegation: () => initDelegation,
|
|
89
89
|
isClient: () => isClient,
|
|
90
90
|
isJSXElement: () => isJSXElement,
|
|
91
|
-
isLitResult: () => isLitResult,
|
|
92
91
|
isNode: () => isNode,
|
|
93
92
|
isRenderable: () => isRenderable,
|
|
94
93
|
isServer: () => import_dom12.isServer,
|
|
@@ -143,7 +142,7 @@ __export(index_exports, {
|
|
|
143
142
|
module.exports = __toCommonJS(index_exports);
|
|
144
143
|
|
|
145
144
|
// src/version.generated.ts
|
|
146
|
-
var VERSION = "1.0.0-alpha.
|
|
145
|
+
var VERSION = "1.0.0-alpha.102";
|
|
147
146
|
|
|
148
147
|
// src/lib/core.ts
|
|
149
148
|
var import_signal18 = require("@fluixi/reactive/signal");
|
|
@@ -317,10 +316,6 @@ function isNode(value) {
|
|
|
317
316
|
if (typeof Node === "function" && value instanceof Node) return true;
|
|
318
317
|
return !!(value && typeof value === "object" && typeof value.nodeType === "number");
|
|
319
318
|
}
|
|
320
|
-
function isLitResult(value) {
|
|
321
|
-
if (!value || typeof value !== "object") return false;
|
|
322
|
-
return !!(typeof value["_$litType$"] !== "undefined" || typeof value["_$litDirective$"] !== "undefined" || Array.isArray(value.strings) && Array.isArray(value.values));
|
|
323
|
-
}
|
|
324
319
|
function isPromise(value) {
|
|
325
320
|
return !!(value && typeof value === "object" && typeof value.then === "function" || value instanceof Promise);
|
|
326
321
|
}
|
|
@@ -612,9 +607,6 @@ function render(code, container, options = {}) {
|
|
|
612
607
|
}
|
|
613
608
|
};
|
|
614
609
|
}
|
|
615
|
-
function isLitTemplateResult(value) {
|
|
616
|
-
return value && typeof value === "object" && (value["_$litType$"] !== void 0 || value["_$litDirective$"] !== void 0);
|
|
617
|
-
}
|
|
618
610
|
function portal(code, target, options = {}) {
|
|
619
611
|
const container = document.createElement("div");
|
|
620
612
|
container.setAttribute("data-portal", "true");
|
|
@@ -631,7 +623,6 @@ function isRenderable(value) {
|
|
|
631
623
|
if (value == null) return true;
|
|
632
624
|
if (typeof value === "function") return true;
|
|
633
625
|
if ((0, import_dom9.isDOMNode)(value)) return true;
|
|
634
|
-
if (isLitTemplateResult(value)) return true;
|
|
635
626
|
if (Array.isArray(value)) return true;
|
|
636
627
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
637
628
|
return true;
|
|
@@ -1686,13 +1677,6 @@ var core_default = {
|
|
|
1686
1677
|
untrack: import_signal18.untrack,
|
|
1687
1678
|
useContext: useContext3,
|
|
1688
1679
|
setOwner: import_signal18.setOwner,
|
|
1689
|
-
// Control Flow
|
|
1690
|
-
// Show,
|
|
1691
|
-
// For,
|
|
1692
|
-
// Switch,
|
|
1693
|
-
// Match,
|
|
1694
|
-
// Portal,
|
|
1695
|
-
// Dynamic,
|
|
1696
1680
|
// Context
|
|
1697
1681
|
// Provider,
|
|
1698
1682
|
// Resources
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAOjD,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/src/index.js
CHANGED
package/dist/src/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.102 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
2
|
|
|
3
3
|
// src/version.generated.ts
|
|
4
|
-
var VERSION = "1.0.0-alpha.
|
|
4
|
+
var VERSION = "1.0.0-alpha.102";
|
|
5
5
|
|
|
6
6
|
// src/lib/core.ts
|
|
7
7
|
import {
|
|
@@ -236,10 +236,6 @@ function isNode(value) {
|
|
|
236
236
|
if (typeof Node === "function" && value instanceof Node) return true;
|
|
237
237
|
return !!(value && typeof value === "object" && typeof value.nodeType === "number");
|
|
238
238
|
}
|
|
239
|
-
function isLitResult(value) {
|
|
240
|
-
if (!value || typeof value !== "object") return false;
|
|
241
|
-
return !!(typeof value["_$litType$"] !== "undefined" || typeof value["_$litDirective$"] !== "undefined" || Array.isArray(value.strings) && Array.isArray(value.values));
|
|
242
|
-
}
|
|
243
239
|
function isPromise(value) {
|
|
244
240
|
return !!(value && typeof value === "object" && typeof value.then === "function" || value instanceof Promise);
|
|
245
241
|
}
|
|
@@ -535,9 +531,6 @@ function render(code, container, options = {}) {
|
|
|
535
531
|
}
|
|
536
532
|
};
|
|
537
533
|
}
|
|
538
|
-
function isLitTemplateResult(value) {
|
|
539
|
-
return value && typeof value === "object" && (value["_$litType$"] !== void 0 || value["_$litDirective$"] !== void 0);
|
|
540
|
-
}
|
|
541
534
|
function portal(code, target, options = {}) {
|
|
542
535
|
const container = document.createElement("div");
|
|
543
536
|
container.setAttribute("data-portal", "true");
|
|
@@ -554,7 +547,6 @@ function isRenderable(value) {
|
|
|
554
547
|
if (value == null) return true;
|
|
555
548
|
if (typeof value === "function") return true;
|
|
556
549
|
if (isDOMNode(value)) return true;
|
|
557
|
-
if (isLitTemplateResult(value)) return true;
|
|
558
550
|
if (Array.isArray(value)) return true;
|
|
559
551
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
560
552
|
return true;
|
|
@@ -1688,13 +1680,6 @@ var core_default = {
|
|
|
1688
1680
|
untrack: untrack5,
|
|
1689
1681
|
useContext: useContext3,
|
|
1690
1682
|
setOwner,
|
|
1691
|
-
// Control Flow
|
|
1692
|
-
// Show,
|
|
1693
|
-
// For,
|
|
1694
|
-
// Switch,
|
|
1695
|
-
// Match,
|
|
1696
|
-
// Portal,
|
|
1697
|
-
// Dynamic,
|
|
1698
1683
|
// Context
|
|
1699
1684
|
// Provider,
|
|
1700
1685
|
// Resources
|
|
@@ -1779,7 +1764,6 @@ export {
|
|
|
1779
1764
|
initDelegation,
|
|
1780
1765
|
isClient,
|
|
1781
1766
|
isJSXElement,
|
|
1782
|
-
isLitResult,
|
|
1783
1767
|
isNode,
|
|
1784
1768
|
isRenderable,
|
|
1785
1769
|
isServer4 as isServer,
|
package/dist/src/jsx-runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.102 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -967,7 +967,7 @@ var import_dom13 = require("@fluixi/dom");
|
|
|
967
967
|
var import_dom = require("@fluixi/dom");
|
|
968
968
|
|
|
969
969
|
// src/version.generated.ts
|
|
970
|
-
var VERSION = "1.0.0-alpha.
|
|
970
|
+
var VERSION = "1.0.0-alpha.102";
|
|
971
971
|
|
|
972
972
|
// src/lib/render/versions.ts
|
|
973
973
|
var import_dom2 = require("@fluixi/dom");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @module @fluixi/core/client
|
|
3
3
|
*
|
|
4
4
|
* Implements client-side mounting and hydration logic using @fluixi/dom runtime.
|
|
5
|
-
* Supports
|
|
5
|
+
* Supports JSX and `html` templates.
|
|
6
6
|
*/
|
|
7
7
|
import { render as domRender, hydrate as domHydrate, beginAppHydration, endAppHydration, removeUnclaimedKeyed, clearHydrationKeys, } from '@fluixi/dom';
|
|
8
8
|
// Registers core's version with the DOM runtime, which does the stamping. This entry is a
|
|
@@ -33,7 +33,7 @@ export function mount(App, container) {
|
|
|
33
33
|
if (!container) {
|
|
34
34
|
throw new Error('Container element not found for mount()');
|
|
35
35
|
}
|
|
36
|
-
// Use @fluixi/dom render which handles reactivity and
|
|
36
|
+
// Use @fluixi/dom render which handles reactivity and html templates
|
|
37
37
|
domRender(() => App(), container);
|
|
38
38
|
}
|
|
39
39
|
export { hydrate } from '@fluixi/dom';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.102 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
|
+
import "./chunk-PLBLUAUD.mjs";
|
|
3
3
|
|
|
4
4
|
// src/lib/client/index.ts
|
|
5
5
|
import {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import { registerCoreVersion } from "@fluixi/dom";
|
|
16
16
|
|
|
17
17
|
// src/version.generated.ts
|
|
18
|
-
var VERSION = "1.0.0-alpha.
|
|
18
|
+
var VERSION = "1.0.0-alpha.102";
|
|
19
19
|
|
|
20
20
|
// src/lib/render/versions.ts
|
|
21
21
|
import { stampVersions, warnOnVersionSkew, versions } from "@fluixi/dom";
|
|
@@ -246,7 +246,7 @@ async function startClient(App, options = {}) {
|
|
|
246
246
|
beginAppHydration();
|
|
247
247
|
try {
|
|
248
248
|
if (options.routes && options.routes.length) {
|
|
249
|
-
const { preloadRoutes } = await import("./router-
|
|
249
|
+
const { preloadRoutes } = await import("./router-LQ57EOB4.mjs");
|
|
250
250
|
await preloadRoutes(options.routes, window.location.pathname);
|
|
251
251
|
}
|
|
252
252
|
deserializeHydrationData();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.102 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
2
|
import {
|
|
3
3
|
lazy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PLBLUAUD.mjs";
|
|
5
5
|
|
|
6
6
|
// src/lib/router/index.ts
|
|
7
7
|
import {
|
package/dist/src/lib/core.cjs
CHANGED
|
@@ -87,7 +87,6 @@ __export(core_exports, {
|
|
|
87
87
|
initDelegation: () => initDelegation,
|
|
88
88
|
isClient: () => isClient,
|
|
89
89
|
isJSXElement: () => isJSXElement,
|
|
90
|
-
isLitResult: () => isLitResult,
|
|
91
90
|
isNode: () => isNode,
|
|
92
91
|
isRenderable: () => isRenderable,
|
|
93
92
|
isServer: () => import_dom12.isServer,
|
|
@@ -152,7 +151,7 @@ var import_signal6 = require("@fluixi/reactive/signal");
|
|
|
152
151
|
var import_dom = require("@fluixi/dom");
|
|
153
152
|
|
|
154
153
|
// src/version.generated.ts
|
|
155
|
-
var VERSION = "1.0.0-alpha.
|
|
154
|
+
var VERSION = "1.0.0-alpha.102";
|
|
156
155
|
|
|
157
156
|
// src/lib/render/versions.ts
|
|
158
157
|
var import_dom2 = require("@fluixi/dom");
|
|
@@ -316,10 +315,6 @@ function isNode(value) {
|
|
|
316
315
|
if (typeof Node === "function" && value instanceof Node) return true;
|
|
317
316
|
return !!(value && typeof value === "object" && typeof value.nodeType === "number");
|
|
318
317
|
}
|
|
319
|
-
function isLitResult(value) {
|
|
320
|
-
if (!value || typeof value !== "object") return false;
|
|
321
|
-
return !!(typeof value["_$litType$"] !== "undefined" || typeof value["_$litDirective$"] !== "undefined" || Array.isArray(value.strings) && Array.isArray(value.values));
|
|
322
|
-
}
|
|
323
318
|
function isPromise(value) {
|
|
324
319
|
return !!(value && typeof value === "object" && typeof value.then === "function" || value instanceof Promise);
|
|
325
320
|
}
|
|
@@ -611,9 +606,6 @@ function render(code, container, options = {}) {
|
|
|
611
606
|
}
|
|
612
607
|
};
|
|
613
608
|
}
|
|
614
|
-
function isLitTemplateResult(value) {
|
|
615
|
-
return value && typeof value === "object" && (value["_$litType$"] !== void 0 || value["_$litDirective$"] !== void 0);
|
|
616
|
-
}
|
|
617
609
|
function portal(code, target, options = {}) {
|
|
618
610
|
const container = document.createElement("div");
|
|
619
611
|
container.setAttribute("data-portal", "true");
|
|
@@ -630,7 +622,6 @@ function isRenderable(value) {
|
|
|
630
622
|
if (value == null) return true;
|
|
631
623
|
if (typeof value === "function") return true;
|
|
632
624
|
if ((0, import_dom9.isDOMNode)(value)) return true;
|
|
633
|
-
if (isLitTemplateResult(value)) return true;
|
|
634
625
|
if (Array.isArray(value)) return true;
|
|
635
626
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
636
627
|
return true;
|
|
@@ -1685,13 +1676,6 @@ var core_default = {
|
|
|
1685
1676
|
untrack: import_signal18.untrack,
|
|
1686
1677
|
useContext: useContext3,
|
|
1687
1678
|
setOwner: import_signal18.setOwner,
|
|
1688
|
-
// Control Flow
|
|
1689
|
-
// Show,
|
|
1690
|
-
// For,
|
|
1691
|
-
// Switch,
|
|
1692
|
-
// Match,
|
|
1693
|
-
// Portal,
|
|
1694
|
-
// Dynamic,
|
|
1695
1679
|
// Context
|
|
1696
1680
|
// Provider,
|
|
1697
1681
|
// Resources
|
package/dist/src/lib/core.d.ts
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* @module fluixi
|
|
3
3
|
*
|
|
4
4
|
* Fluixi compiles JSX and `html` templates into direct DOM calls over the fine-grained
|
|
5
|
-
* reactivity in @fluixi/reactive. The template layer is our own and compiled
|
|
6
|
-
* lit-html runtime bridge this once wrapped is gone.
|
|
5
|
+
* reactivity in @fluixi/reactive. The template layer is our own and compiled.
|
|
7
6
|
*
|
|
8
7
|
* @example
|
|
9
8
|
* ```typescript
|
|
@@ -43,16 +42,13 @@ export * from "./control-flow.js";
|
|
|
43
42
|
export { createStore, untrackStore, unwrap, Store } from '@fluixi/reactive/store';
|
|
44
43
|
export type { Accessor, Setter, Signal, SignalOptions, MemoOptions, Resource, } from '@fluixi/reactive/signal';
|
|
45
44
|
export type { ReadSignal } from '@fluixi/reactive/operators';
|
|
46
|
-
export { render, portal, isRenderable, initDelegation, cleanupDelegation, createComponent, onMount, onUnmount, useEffect, useRef, useReducer, useMemo, useEventListener, useCallback, lazy, deferred, Suspense, SuspenseList, Await, isNode,
|
|
45
|
+
export { render, portal, isRenderable, initDelegation, cleanupDelegation, createComponent, onMount, onUnmount, useEffect, useRef, useReducer, useMemo, useEventListener, useCallback, lazy, deferred, Suspense, SuspenseList, Await, isNode, isJSXElement, $component, type RenderOptions, type SuspenseProps, type SuspenseListProps, type AwaitProps, type LazyOptions, type DeferredOptions, type LoadStrategy, type Component, type ComponentProps, type LifecycleCallback, type LazyComponent, type RefObject, } from './render/index.js';
|
|
47
46
|
export { Router, Link, useRouter, useLocation, useNavigate, useParams, } from './router/index.js';
|
|
48
47
|
export type { RouterLocation as Location, RouteDefinition, NavigateOptions, } from './router/index.js';
|
|
49
48
|
/**
|
|
50
49
|
* Framework version
|
|
51
50
|
*/
|
|
52
51
|
export declare const VERSION = "0.0.1";
|
|
53
|
-
/**
|
|
54
|
-
* Framework name
|
|
55
|
-
*/
|
|
56
52
|
export declare const FRAMEWORK_NAME = "Fluixi";
|
|
57
53
|
export { signal, memo, effect, resource, createEffect, createMemo, createSignal, createResource, createContext, createRoot, createDeferred, createDebounce, createDebouncedSignal, createDebouncedResource, createComputed, createRenderEffect, createSelector, onCleanup, getOwner, runWithOwner, batch, untrack, useContext, setOwner, read, reduce, };
|
|
58
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/lib/core.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/lib/core.ts"],"names":[],"mappings":"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"}
|
package/dist/src/lib/core.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* @module fluixi
|
|
3
3
|
*
|
|
4
4
|
* Fluixi compiles JSX and `html` templates into direct DOM calls over the fine-grained
|
|
5
|
-
* reactivity in @fluixi/reactive. The template layer is our own and compiled
|
|
6
|
-
* lit-html runtime bridge this once wrapped is gone.
|
|
5
|
+
* reactivity in @fluixi/reactive. The template layer is our own and compiled.
|
|
7
6
|
*
|
|
8
7
|
* @example
|
|
9
8
|
* ```typescript
|
|
@@ -54,16 +53,14 @@ export { ThemeProvider, ColorSchemeProvider, useTheme, useColorScheme } from './
|
|
|
54
53
|
// from `@fluixi/utils` directly, or from `@fluixi/core/utils` for the same surface.
|
|
55
54
|
import { Link, Router, useNavigate, useRouter, } from './router/index.js';
|
|
56
55
|
// html`` / svg`` template markers, the no-JSX authoring surface. They live in
|
|
57
|
-
// @fluixi/dom (compiled away by `format: '
|
|
58
|
-
// `import { html } from '@fluixi/core'` works. Inert typed functions
|
|
56
|
+
// @fluixi/dom (compiled away by `format: 'html'`/`both`); re-exported here so
|
|
57
|
+
// `import { html } from '@fluixi/core'` works. Inert typed functions.
|
|
59
58
|
export { html, svg, css } from '@fluixi/dom';
|
|
60
59
|
// createReactiveJSX (a deprecated legacy adapter) lived here but pulled the jsx-runtime
|
|
61
60
|
// `.` entry into the core graph. It's gone: compiled JSX uses the jsx-runtime subpath
|
|
62
61
|
// directly, and nothing in the framework needs the adapter.
|
|
63
62
|
// Re-export reactive directives
|
|
64
63
|
export { query, queryAll, closest, addClass, removeClass, toggleClass, hasClass, setAttribute, getAttribute, removeAttribute, setStyles, getStyle, createElement as domCreateElement, removeChildren, appendChildren, isVisible, scrollIntoView, getOffset, delegate, waitForElement, observeIntersection, observeResize, } from '@fluixi/dom';
|
|
65
|
-
// (No lit runtime exists anymore: html`` compiles to @fluixi/dom calls.)
|
|
66
|
-
// import {For as _For} from "@fluixi/dom"
|
|
67
64
|
// export interface ForProps<T, U = any> {
|
|
68
65
|
// /** Reactive array to iterate over: static, readonly, accessor, or signal. */
|
|
69
66
|
// each: ReadonlyArray<T> | (() => ReadonlyArray<T> | null | undefined) | Accessor<ReadonlyArray<T>> | null | undefined | false;
|
|
@@ -74,7 +71,7 @@ export { query, queryAll, closest, addClass, removeClass, toggleClass, hasClass,
|
|
|
74
71
|
// * `index` is a reactive accessor: updates when the item moves position.
|
|
75
72
|
// *
|
|
76
73
|
// * JSX: <For each={() => store.items}>{(item, index) => <li>{item.name}</li>}</For>
|
|
77
|
-
// *
|
|
74
|
+
// * html: For({ each: items, children: (item, index) => html`<li>${item.name}</li>` })
|
|
78
75
|
// */
|
|
79
76
|
// children?: (item: T, index: Accessor<number>) => U;
|
|
80
77
|
// }
|
|
@@ -88,14 +85,11 @@ export * from "./control-flow.js";
|
|
|
88
85
|
export { createStore, untrackStore, unwrap, Store } from '@fluixi/reactive/store';
|
|
89
86
|
export { render, portal, isRenderable, initDelegation, cleanupDelegation, createComponent, onMount, onUnmount, useEffect, useRef, useReducer, useMemo, useEventListener, useCallback, lazy, deferred, Suspense, SuspenseList, Await,
|
|
90
87
|
// Show,
|
|
91
|
-
isNode,
|
|
88
|
+
isNode, isJSXElement, $component, } from './render/index.js';
|
|
92
89
|
// Context API
|
|
93
90
|
// export type { Context, ProviderProps } from './context/index.js';
|
|
94
91
|
// Resources for async data
|
|
95
|
-
// Router, from router (the framework-agnostic router).
|
|
96
|
-
// (./router) has been removed: it imported `html` from @fluixi/lit, which dragged lit
|
|
97
|
-
// (extends HTMLElement at module init) into the core/SSR graph. router is the
|
|
98
|
-
// only router now; `<Router routes={...}/>` replaces the old `<Routes>`/`<Route>` JSX.
|
|
92
|
+
// Router, from router (the framework-agnostic router).
|
|
99
93
|
export { Router, Link, useRouter, useLocation, useNavigate, useParams, } from './router/index.js';
|
|
100
94
|
// Web Component support moved to @fluixi/element (now in the wc-element repo).
|
|
101
95
|
// Import { defineElement, FluixiElement, createComponent, ... } from '@fluixi/element'.
|
|
@@ -103,9 +97,6 @@ export { Router, Link, useRouter, useLocation, useNavigate, useParams, } from '.
|
|
|
103
97
|
* Framework version
|
|
104
98
|
*/
|
|
105
99
|
export const VERSION = '0.0.1';
|
|
106
|
-
/**
|
|
107
|
-
* Framework name
|
|
108
|
-
*/
|
|
109
100
|
export const FRAMEWORK_NAME = 'Fluixi';
|
|
110
101
|
export { signal, memo, effect, resource, createEffect, createMemo, createSignal, createResource, createContext, createRoot, createDeferred, createDebounce, createDebouncedSignal, createDebouncedResource, createComputed, createRenderEffect, createSelector, onCleanup, getOwner, runWithOwner, batch, untrack, useContext, setOwner, read, reduce, };
|
|
111
102
|
/**
|
|
@@ -133,13 +124,6 @@ export default {
|
|
|
133
124
|
untrack,
|
|
134
125
|
useContext,
|
|
135
126
|
setOwner,
|
|
136
|
-
// Control Flow
|
|
137
|
-
// Show,
|
|
138
|
-
// For,
|
|
139
|
-
// Switch,
|
|
140
|
-
// Match,
|
|
141
|
-
// Portal,
|
|
142
|
-
// Dynamic,
|
|
143
127
|
// Context
|
|
144
128
|
// Provider,
|
|
145
129
|
// Resources
|
package/dist/src/lib/core.mjs
CHANGED
|
@@ -38,7 +38,7 @@ import { createRoot as createRoot2 } from "@fluixi/reactive/signal";
|
|
|
38
38
|
import { registerCoreVersion } from "@fluixi/dom";
|
|
39
39
|
|
|
40
40
|
// src/version.generated.ts
|
|
41
|
-
var VERSION = "1.0.0-alpha.
|
|
41
|
+
var VERSION = "1.0.0-alpha.102";
|
|
42
42
|
|
|
43
43
|
// src/lib/render/versions.ts
|
|
44
44
|
import { stampVersions, warnOnVersionSkew, versions } from "@fluixi/dom";
|
|
@@ -236,10 +236,6 @@ function isNode(value) {
|
|
|
236
236
|
if (typeof Node === "function" && value instanceof Node) return true;
|
|
237
237
|
return !!(value && typeof value === "object" && typeof value.nodeType === "number");
|
|
238
238
|
}
|
|
239
|
-
function isLitResult(value) {
|
|
240
|
-
if (!value || typeof value !== "object") return false;
|
|
241
|
-
return !!(typeof value["_$litType$"] !== "undefined" || typeof value["_$litDirective$"] !== "undefined" || Array.isArray(value.strings) && Array.isArray(value.values));
|
|
242
|
-
}
|
|
243
239
|
function isPromise(value) {
|
|
244
240
|
return !!(value && typeof value === "object" && typeof value.then === "function" || value instanceof Promise);
|
|
245
241
|
}
|
|
@@ -535,9 +531,6 @@ function render(code, container, options = {}) {
|
|
|
535
531
|
}
|
|
536
532
|
};
|
|
537
533
|
}
|
|
538
|
-
function isLitTemplateResult(value) {
|
|
539
|
-
return value && typeof value === "object" && (value["_$litType$"] !== void 0 || value["_$litDirective$"] !== void 0);
|
|
540
|
-
}
|
|
541
534
|
function portal(code, target, options = {}) {
|
|
542
535
|
const container = document.createElement("div");
|
|
543
536
|
container.setAttribute("data-portal", "true");
|
|
@@ -554,7 +547,6 @@ function isRenderable(value) {
|
|
|
554
547
|
if (value == null) return true;
|
|
555
548
|
if (typeof value === "function") return true;
|
|
556
549
|
if (isDOMNode(value)) return true;
|
|
557
|
-
if (isLitTemplateResult(value)) return true;
|
|
558
550
|
if (Array.isArray(value)) return true;
|
|
559
551
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
560
552
|
return true;
|
|
@@ -1688,13 +1680,6 @@ var core_default = {
|
|
|
1688
1680
|
untrack: untrack5,
|
|
1689
1681
|
useContext: useContext3,
|
|
1690
1682
|
setOwner,
|
|
1691
|
-
// Control Flow
|
|
1692
|
-
// Show,
|
|
1693
|
-
// For,
|
|
1694
|
-
// Switch,
|
|
1695
|
-
// Match,
|
|
1696
|
-
// Portal,
|
|
1697
|
-
// Dynamic,
|
|
1698
1683
|
// Context
|
|
1699
1684
|
// Provider,
|
|
1700
1685
|
// Resources
|
|
@@ -1779,7 +1764,6 @@ export {
|
|
|
1779
1764
|
initDelegation,
|
|
1780
1765
|
isClient,
|
|
1781
1766
|
isJSXElement,
|
|
1782
|
-
isLitResult,
|
|
1783
1767
|
isNode,
|
|
1784
1768
|
isRenderable,
|
|
1785
1769
|
isServer4 as isServer,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.102 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.102 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
2
|
|
|
3
3
|
// src/lib/i18n/index.ts
|
|
4
4
|
import { createSignal } from "@fluixi/reactive/signal";
|
package/dist/src/lib/index.cjs
CHANGED
|
@@ -69,7 +69,6 @@ __export(index_exports, {
|
|
|
69
69
|
insert: () => import_dom14.insert,
|
|
70
70
|
isDOMNode: () => import_dom14.isDOMNode,
|
|
71
71
|
isDev: () => isDev,
|
|
72
|
-
isLitTemplateResult: () => import_dom14.isLitTemplateResult,
|
|
73
72
|
isRenderable: () => isRenderable,
|
|
74
73
|
jsx: () => jsx_runtime_exports.jsx,
|
|
75
74
|
jsxs: () => jsx_runtime_exports.jsxs,
|
|
@@ -114,7 +113,7 @@ var import_signal6 = require("@fluixi/reactive/signal");
|
|
|
114
113
|
var import_dom = require("@fluixi/dom");
|
|
115
114
|
|
|
116
115
|
// src/version.generated.ts
|
|
117
|
-
var VERSION = "1.0.0-alpha.
|
|
116
|
+
var VERSION = "1.0.0-alpha.102";
|
|
118
117
|
|
|
119
118
|
// src/lib/render/versions.ts
|
|
120
119
|
var import_dom2 = require("@fluixi/dom");
|
|
@@ -419,9 +418,6 @@ function render(code, container, options = {}) {
|
|
|
419
418
|
}
|
|
420
419
|
};
|
|
421
420
|
}
|
|
422
|
-
function isLitTemplateResult(value) {
|
|
423
|
-
return value && typeof value === "object" && (value["_$litType$"] !== void 0 || value["_$litDirective$"] !== void 0);
|
|
424
|
-
}
|
|
425
421
|
function portal(code, target, options = {}) {
|
|
426
422
|
const container = document.createElement("div");
|
|
427
423
|
container.setAttribute("data-portal", "true");
|
|
@@ -438,7 +434,6 @@ function isRenderable(value) {
|
|
|
438
434
|
if (value == null) return true;
|
|
439
435
|
if (typeof value === "function") return true;
|
|
440
436
|
if ((0, import_dom9.isDOMNode)(value)) return true;
|
|
441
|
-
if (isLitTemplateResult(value)) return true;
|
|
442
437
|
if (Array.isArray(value)) return true;
|
|
443
438
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
444
439
|
return true;
|
|
@@ -555,7 +550,7 @@ function getFrameworkInfo() {
|
|
|
555
550
|
ssr: true,
|
|
556
551
|
hydration: true,
|
|
557
552
|
jsx: true,
|
|
558
|
-
|
|
553
|
+
htmlTagged: true,
|
|
559
554
|
signals: true,
|
|
560
555
|
fineGrained: true,
|
|
561
556
|
lazy: true,
|
|
@@ -576,7 +571,6 @@ var index_default = {
|
|
|
576
571
|
// Context (from component for proper support)
|
|
577
572
|
createContext: createContext3,
|
|
578
573
|
useContext: useContext3,
|
|
579
|
-
// Components
|
|
580
574
|
createComponent,
|
|
581
575
|
onMount,
|
|
582
576
|
onUnmount,
|