lilact 0.31.12 → 0.31.13
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/lilact.development.js +37 -37
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +27 -26
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +27 -26
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.require.html +1 -1
- package/docs/functions/run.run.html +1 -1
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/static/lilact.development.js +37 -37
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +27 -26
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +27 -26
- package/examples/lilact.development.js +37 -37
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +27 -26
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +27 -26
- package/package.json +1 -1
- package/src/events.jsx +71 -76
- package/src/jsx.js +4 -0
- package/src/run.jsx +2 -3
|
@@ -4385,53 +4385,51 @@ function TransitionGroup({ children }) {
|
|
|
4385
4385
|
// .tmp/src/events.jsx
|
|
4386
4386
|
var events_exports = {};
|
|
4387
4387
|
__export(events_exports, {
|
|
4388
|
+
SyntheticEvent: () => SyntheticEvent,
|
|
4388
4389
|
addWrappedEventListener: () => addWrappedEventListener,
|
|
4389
4390
|
createSyntheticEvent: () => createSyntheticEvent,
|
|
4390
4391
|
releaseSyntheticEvent: () => releaseSyntheticEvent,
|
|
4391
4392
|
wrapListener: () => wrapListener
|
|
4392
4393
|
});
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
nativeEvent
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
isDefaultPrevented()
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
isPropagationStopped() {
|
|
4406
|
-
return propagationStopped;
|
|
4407
|
-
},
|
|
4408
|
-
preventDefault() {
|
|
4394
|
+
var SyntheticEvent = class {
|
|
4395
|
+
constructor(nativeEvent, currentTarget) {
|
|
4396
|
+
this.nativeEvent = nativeEvent;
|
|
4397
|
+
this.type = nativeEvent.type;
|
|
4398
|
+
this.target = nativeEvent.target || nativeEvent.srcElement || null;
|
|
4399
|
+
this.currentTarget = currentTarget || nativeEvent.currentTarget || null;
|
|
4400
|
+
this.timeStamp = nativeEvent.timeStamp ?? Date.now();
|
|
4401
|
+
this.defaultPrevented = !!nativeEvent.defaultPrevented;
|
|
4402
|
+
let propagationStopped = false;
|
|
4403
|
+
this.isDefaultPrevented = () => this.defaultPrevented;
|
|
4404
|
+
this.isPropagationStopped = () => propagationStopped;
|
|
4405
|
+
this.preventDefault = () => {
|
|
4409
4406
|
nativeEvent.preventDefault?.();
|
|
4410
|
-
|
|
4411
|
-
}
|
|
4412
|
-
stopPropagation() {
|
|
4407
|
+
this.defaultPrevented = true;
|
|
4408
|
+
};
|
|
4409
|
+
this.stopPropagation = () => {
|
|
4413
4410
|
nativeEvent.stopPropagation?.();
|
|
4414
4411
|
propagationStopped = true;
|
|
4415
|
-
}
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4412
|
+
};
|
|
4413
|
+
this.persist = () => {
|
|
4414
|
+
};
|
|
4415
|
+
this.isPersistent = () => true;
|
|
4416
|
+
for (let source = nativeEvent; source && source !== Object.prototype; source = Object.getPrototypeOf(source)) {
|
|
4417
|
+
for (const key of Object.getOwnPropertyNames(source)) {
|
|
4418
|
+
if (key === "constructor" || key in this) continue;
|
|
4419
|
+
Object.defineProperty(this, key, {
|
|
4420
|
+
configurable: true,
|
|
4421
|
+
enumerable: true,
|
|
4422
|
+
get() {
|
|
4423
|
+
const value = nativeEvent[key];
|
|
4424
|
+
return typeof value === "function" ? value.bind(nativeEvent) : value;
|
|
4425
|
+
}
|
|
4426
|
+
});
|
|
4427
4427
|
}
|
|
4428
|
-
const value = Reflect.get(nativeEvent, property, nativeEvent);
|
|
4429
|
-
return typeof value === "function" ? value.bind(nativeEvent) : value;
|
|
4430
|
-
},
|
|
4431
|
-
has(target, property) {
|
|
4432
|
-
return Reflect.has(target, property) || property in nativeEvent;
|
|
4433
4428
|
}
|
|
4434
|
-
}
|
|
4429
|
+
}
|
|
4430
|
+
};
|
|
4431
|
+
function createSyntheticEvent(nativeEvent, currentTarget) {
|
|
4432
|
+
return new SyntheticEvent(nativeEvent, currentTarget);
|
|
4435
4433
|
}
|
|
4436
4434
|
function releaseSyntheticEvent(event) {
|
|
4437
4435
|
if (event) event.currentTarget = null;
|
|
@@ -6900,6 +6898,7 @@ function transpileJSX(jsx2, {
|
|
|
6900
6898
|
} = {}) {
|
|
6901
6899
|
transpilerConfig.preprocessorDelimiter ?? (transpilerConfig.preprocessorDelimiter = "\u0294");
|
|
6902
6900
|
transpilerConfig.injectTraceLabels ?? (transpilerConfig.injectTraceLabels = injectTraceLabels);
|
|
6901
|
+
jsx2 += "\n";
|
|
6903
6902
|
const eols = scanEOLs(jsx2);
|
|
6904
6903
|
raiseError = ((eols2, msg, index2) => {
|
|
6905
6904
|
const rc = getRowCol(eols2, index2);
|
|
@@ -7152,6 +7151,7 @@ export {
|
|
|
7152
7151
|
SplitPane,
|
|
7153
7152
|
Suspense,
|
|
7154
7153
|
SwitchTransition,
|
|
7154
|
+
SyntheticEvent,
|
|
7155
7155
|
TEXT2 as TEXT,
|
|
7156
7156
|
Transition,
|
|
7157
7157
|
TransitionGroup,
|