@motifx/core 1.2.0-rc.3 → 1.2.0-rc.4
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/dist/chunks/{core-W7wNt8bq.esm.js → core-C-BpS-QN.esm.js} +17 -6
- package/dist/chunks/core-C-BpS-QN.esm.js.map +1 -0
- package/dist/chunks/{core-DD3SssnS.cjs → core-ZMoM1273.cjs} +17 -6
- package/dist/chunks/core-ZMoM1273.cjs.map +1 -0
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.esm.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.umd.js +16 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/core-DD3SssnS.cjs.map +0 -1
- package/dist/chunks/core-W7wNt8bq.esm.js.map +0 -1
|
@@ -1136,7 +1136,7 @@ class LinkedList {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
|
-
const COMPILER_CONTRACT =
|
|
1139
|
+
const COMPILER_CONTRACT = 1;
|
|
1140
1140
|
const SUPPORTED_CONTRACTS = [1, 2];
|
|
1141
1141
|
const reported = new Set();
|
|
1142
1142
|
const pending = new Set();
|
|
@@ -5694,9 +5694,6 @@ class ComponentBase extends Disposable {
|
|
|
5694
5694
|
get motif() {
|
|
5695
5695
|
return this._motif !== undefined ? this._motif : (this._motif = new ComponentMotif(this, (this.isDisposed && !this.element ? undefined : new ComponentOptionsImpl(this))));
|
|
5696
5696
|
}
|
|
5697
|
-
set motif(value) {
|
|
5698
|
-
this._motif = value;
|
|
5699
|
-
}
|
|
5700
5697
|
get isBuilt() {
|
|
5701
5698
|
return (this._flags & F_BUILT) !== 0;
|
|
5702
5699
|
}
|
|
@@ -6660,6 +6657,12 @@ class ComponentBase extends Disposable {
|
|
|
6660
6657
|
t.activeAnimations = [];
|
|
6661
6658
|
}
|
|
6662
6659
|
}
|
|
6660
|
+
Object.defineProperty(ComponentBase.prototype, 'motif', {
|
|
6661
|
+
...Object.getOwnPropertyDescriptor(ComponentBase.prototype, 'motif'),
|
|
6662
|
+
set(value) {
|
|
6663
|
+
this._motif = value;
|
|
6664
|
+
},
|
|
6665
|
+
});
|
|
6663
6666
|
function findContentBlocks(root, results = []) {
|
|
6664
6667
|
if (!root || root.isDisposed)
|
|
6665
6668
|
return results;
|
|
@@ -7365,7 +7368,7 @@ function resolveChildExpression(probe) {
|
|
|
7365
7368
|
return value;
|
|
7366
7369
|
return undefined;
|
|
7367
7370
|
}
|
|
7368
|
-
function motifComponent(element, props) {
|
|
7371
|
+
function motifComponent(element, props, lone) {
|
|
7369
7372
|
// Etiket adı: element yaratımı (HTML/SVG) ve spread prop uygulaması Component ctor'ının string parametresinde
|
|
7370
7373
|
if (typeof element === "string") {
|
|
7371
7374
|
if (typeof props === "function") {
|
|
@@ -7373,6 +7376,14 @@ function motifComponent(element, props) {
|
|
|
7373
7376
|
compiled._init = props;
|
|
7374
7377
|
return compiled;
|
|
7375
7378
|
}
|
|
7379
|
+
if (lone === 1 && props !== null && typeof props === "object") {
|
|
7380
|
+
const init = props.initializeComponent;
|
|
7381
|
+
if (typeof init === "function") {
|
|
7382
|
+
const compiled = new Component(element);
|
|
7383
|
+
compiled._init = init;
|
|
7384
|
+
return compiled;
|
|
7385
|
+
}
|
|
7386
|
+
}
|
|
7376
7387
|
if (element === "text" && props && props.__childExpr) {
|
|
7377
7388
|
const resolved = resolveChildExpression(props.__childExpr);
|
|
7378
7389
|
if (resolved !== undefined)
|
|
@@ -12812,4 +12823,4 @@ function useApplication() {
|
|
|
12812
12823
|
}
|
|
12813
12824
|
|
|
12814
12825
|
export { setUnexpectedErrorHandler as $, Application as A, errorHandler as B, Component as C, Disposable as D, Emitter as E, ErrorHandler as F, FNComponent as G, FragmentNode as H, Frame as I, inject as J, LazyComputed as K, Lazy as L, MotifError as M, LinkedList as N, motifCompiled as O, motifComponent as P, motifFragment as Q, NodeTypes as R, SLOT_REGISTERED_EVENT as S, TransportRegistry as T, reactive as U, RouterView as V, safeCall as W, safeCallAsync as X, safeCallSilent as Y, ServiceCollection as Z, ServiceProvider as _, SLOT_UNREGISTERED_EVENT as a, Signal as a0, toDisposable as a1, useApplication as a2, useModel as a3, useNavigation as a4, debugGetDeps as a5, debugGetDepMap as a6, UrlRoutingModule as a7, RoutingEngine as a8, RouterState as a9, createRouter as aa, Scanner as ab, RouteCollection as ac, reportError as b, contentBlocks as c, ComponentBase as d, effect as e, findAppendableComponent$1 as f, autoRegistry as g, formatMotifMessage as h, ApplicationBuilder as i, asyncTracking as j, clearModel as k, ComponentMotif as l, motifError as m, notifyDeactivated as n, Computed as o, configureReactivityLeakMonitor as p, ControlCollection as q, reportWarning as r, createComputed as s, createLazyComputed as t, untracked as u, createSignal as v, deepClone as w, disposableCore as x, DisposableStore as y, dom as z };
|
|
12815
|
-
//# sourceMappingURL=core-
|
|
12826
|
+
//# sourceMappingURL=core-C-BpS-QN.esm.js.map
|