@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
package/dist/index.umd.js
CHANGED
|
@@ -1358,7 +1358,7 @@
|
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
|
-
const COMPILER_CONTRACT =
|
|
1361
|
+
const COMPILER_CONTRACT = 1;
|
|
1362
1362
|
const SUPPORTED_CONTRACTS = [1, 2];
|
|
1363
1363
|
const reported = new Set();
|
|
1364
1364
|
const pending = new Set();
|
|
@@ -5909,9 +5909,6 @@
|
|
|
5909
5909
|
get motif() {
|
|
5910
5910
|
return this._motif !== undefined ? this._motif : (this._motif = new ComponentMotif(this, (this.isDisposed && !this.element ? undefined : new ComponentOptionsImpl(this))));
|
|
5911
5911
|
}
|
|
5912
|
-
set motif(value) {
|
|
5913
|
-
this._motif = value;
|
|
5914
|
-
}
|
|
5915
5912
|
get isBuilt() {
|
|
5916
5913
|
return (this._flags & F_BUILT) !== 0;
|
|
5917
5914
|
}
|
|
@@ -6875,6 +6872,12 @@
|
|
|
6875
6872
|
t.activeAnimations = [];
|
|
6876
6873
|
}
|
|
6877
6874
|
}
|
|
6875
|
+
Object.defineProperty(ComponentBase.prototype, 'motif', {
|
|
6876
|
+
...Object.getOwnPropertyDescriptor(ComponentBase.prototype, 'motif'),
|
|
6877
|
+
set(value) {
|
|
6878
|
+
this._motif = value;
|
|
6879
|
+
},
|
|
6880
|
+
});
|
|
6878
6881
|
function findContentBlocks(root, results = []) {
|
|
6879
6882
|
if (!root || root.isDisposed)
|
|
6880
6883
|
return results;
|
|
@@ -7580,7 +7583,7 @@
|
|
|
7580
7583
|
return value;
|
|
7581
7584
|
return undefined;
|
|
7582
7585
|
}
|
|
7583
|
-
function motifComponent(element, props) {
|
|
7586
|
+
function motifComponent(element, props, lone) {
|
|
7584
7587
|
// Etiket adı: element yaratımı (HTML/SVG) ve spread prop uygulaması Component ctor'ının string parametresinde
|
|
7585
7588
|
if (typeof element === "string") {
|
|
7586
7589
|
if (typeof props === "function") {
|
|
@@ -7588,6 +7591,14 @@
|
|
|
7588
7591
|
compiled._init = props;
|
|
7589
7592
|
return compiled;
|
|
7590
7593
|
}
|
|
7594
|
+
if (lone === 1 && props !== null && typeof props === "object") {
|
|
7595
|
+
const init = props.initializeComponent;
|
|
7596
|
+
if (typeof init === "function") {
|
|
7597
|
+
const compiled = new Component(element);
|
|
7598
|
+
compiled._init = init;
|
|
7599
|
+
return compiled;
|
|
7600
|
+
}
|
|
7601
|
+
}
|
|
7591
7602
|
if (element === "text" && props && props.__childExpr) {
|
|
7592
7603
|
const resolved = resolveChildExpression(props.__childExpr);
|
|
7593
7604
|
if (resolved !== undefined)
|