@novely/solid-renderer 0.47.0-experemental.0 → 0.47.0
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/index.jsx +33 -36
- package/dist/show-modal.d.ts +2 -0
- package/package.json +3 -3
package/dist/index.jsx
CHANGED
|
@@ -846,10 +846,10 @@ function mergeProps(...sources) {
|
|
|
846
846
|
return false;
|
|
847
847
|
},
|
|
848
848
|
keys() {
|
|
849
|
-
const
|
|
849
|
+
const keys = [];
|
|
850
850
|
for (let i = 0; i < sources.length; i++)
|
|
851
|
-
|
|
852
|
-
return [...new Set(
|
|
851
|
+
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
852
|
+
return [...new Set(keys)];
|
|
853
853
|
}
|
|
854
854
|
},
|
|
855
855
|
propTraps
|
|
@@ -889,10 +889,10 @@ function mergeProps(...sources) {
|
|
|
889
889
|
}
|
|
890
890
|
return target;
|
|
891
891
|
}
|
|
892
|
-
function splitProps(props, ...
|
|
892
|
+
function splitProps(props, ...keys) {
|
|
893
893
|
if (SUPPORTS_PROXY && $PROXY in props) {
|
|
894
|
-
const blocked = new Set(
|
|
895
|
-
const res =
|
|
894
|
+
const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
|
|
895
|
+
const res = keys.map((k) => {
|
|
896
896
|
return new Proxy(
|
|
897
897
|
{
|
|
898
898
|
get(property) {
|
|
@@ -927,13 +927,13 @@ function splitProps(props, ...keys2) {
|
|
|
927
927
|
return res;
|
|
928
928
|
}
|
|
929
929
|
const otherObject = {};
|
|
930
|
-
const objects =
|
|
930
|
+
const objects = keys.map(() => ({}));
|
|
931
931
|
for (const propName of Object.getOwnPropertyNames(props)) {
|
|
932
932
|
const desc = Object.getOwnPropertyDescriptor(props, propName);
|
|
933
933
|
const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
|
|
934
934
|
let blocked = false;
|
|
935
935
|
let objectIndex = 0;
|
|
936
|
-
for (const k of
|
|
936
|
+
for (const k of keys) {
|
|
937
937
|
if (k.includes(propName)) {
|
|
938
938
|
blocked = true;
|
|
939
939
|
isDefaultDesc ? objects[objectIndex][propName] = desc.value : Object.defineProperty(objects[objectIndex], propName, desc);
|
|
@@ -2538,11 +2538,11 @@ var createAudio2 = (storageData) => {
|
|
|
2538
2538
|
};
|
|
2539
2539
|
const clear = (keepAudio) => {
|
|
2540
2540
|
context.voiceStop();
|
|
2541
|
-
const
|
|
2541
|
+
const entries = [
|
|
2542
2542
|
[store.music, keepAudio.music],
|
|
2543
2543
|
[store.sound, keepAudio.sounds]
|
|
2544
2544
|
];
|
|
2545
|
-
const clearEntries =
|
|
2545
|
+
const clearEntries = entries.flatMap(([incoming, keep]) => {
|
|
2546
2546
|
return Object.entries(incoming).filter(([name]) => !keep.has(name)).map(([_, a]) => a);
|
|
2547
2547
|
});
|
|
2548
2548
|
for (const music of clearEntries) {
|
|
@@ -2967,9 +2967,9 @@ var canvasDrawImages = async (canvas = createCanvas(), ctx = getContext(canvas),
|
|
|
2967
2967
|
}
|
|
2968
2968
|
return [canvas, ctx];
|
|
2969
2969
|
};
|
|
2970
|
-
var onKey = (cb, ...
|
|
2970
|
+
var onKey = (cb, ...keys) => {
|
|
2971
2971
|
return (e) => {
|
|
2972
|
-
if (
|
|
2972
|
+
if (keys.some((key) => key === e.key)) {
|
|
2973
2973
|
cb(e);
|
|
2974
2974
|
}
|
|
2975
2975
|
};
|
|
@@ -3403,9 +3403,6 @@ function createSwitchTransition(source, options) {
|
|
|
3403
3403
|
return returned;
|
|
3404
3404
|
}
|
|
3405
3405
|
|
|
3406
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.9.3/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
|
|
3407
|
-
var access = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
3408
|
-
|
|
3409
3406
|
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.9.3/node_modules/@solid-primitives/refs/dist/index.js
|
|
3410
3407
|
var defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
|
|
3411
3408
|
function getFirstChild(value, predicate) {
|
|
@@ -4077,9 +4074,9 @@ var DialogOverview = (props) => {
|
|
|
4077
4074
|
get ["for"]() {
|
|
4078
4075
|
return data.options.getDialogOverview();
|
|
4079
4076
|
},
|
|
4080
|
-
children: (
|
|
4077
|
+
children: (entries) => createComponent(For, {
|
|
4081
4078
|
get each() {
|
|
4082
|
-
return
|
|
4079
|
+
return entries();
|
|
4083
4080
|
},
|
|
4084
4081
|
children: (entry) => (() => {
|
|
4085
4082
|
const _el$6 = _tmpl$43(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$11 = _el$9.nextSibling, _el$12 = _el$11.firstChild;
|
|
@@ -4152,25 +4149,25 @@ var Await = (props) => {
|
|
|
4152
4149
|
});
|
|
4153
4150
|
};
|
|
4154
4151
|
|
|
4155
|
-
// ../../node_modules/.pnpm/@solid-primitives+
|
|
4152
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.3.0_solid-js@1.9.3/node_modules/@solid-primitives/utils/dist/index.js
|
|
4153
|
+
var access = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
4154
|
+
|
|
4155
|
+
// ../../node_modules/.pnpm/@solid-primitives+destructure@0.2.0_solid-js@1.9.3/node_modules/@solid-primitives/destructure/dist/index.js
|
|
4156
4156
|
var isReactiveObject = (value) => typeof value === "object" && value !== null;
|
|
4157
4157
|
function createProxyCache(obj, get) {
|
|
4158
|
-
return new Proxy(
|
|
4159
|
-
{
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
set: () => false
|
|
4172
|
-
}
|
|
4173
|
-
);
|
|
4158
|
+
return new Proxy({}, {
|
|
4159
|
+
get: (target, key) => {
|
|
4160
|
+
if (key === Symbol.iterator || key === "length")
|
|
4161
|
+
return Reflect.get(obj, key);
|
|
4162
|
+
const saved = Reflect.get(target, key);
|
|
4163
|
+
if (saved)
|
|
4164
|
+
return saved;
|
|
4165
|
+
const value = get(key);
|
|
4166
|
+
Reflect.set(target, key, value);
|
|
4167
|
+
return value;
|
|
4168
|
+
},
|
|
4169
|
+
set: () => false
|
|
4170
|
+
});
|
|
4174
4171
|
}
|
|
4175
4172
|
function destructure(source, options) {
|
|
4176
4173
|
const config = options ?? {};
|
|
@@ -4807,9 +4804,9 @@ var Saves = () => {
|
|
|
4807
4804
|
onMount(() => {
|
|
4808
4805
|
const listElement = list();
|
|
4809
4806
|
if (!listElement) return;
|
|
4810
|
-
const observer = new IntersectionObserver((
|
|
4807
|
+
const observer = new IntersectionObserver((entries) => {
|
|
4811
4808
|
const currentEntryTimestamps = [];
|
|
4812
|
-
|
|
4809
|
+
entries.forEach((entry) => {
|
|
4813
4810
|
if (!entry.isIntersecting) return;
|
|
4814
4811
|
if (processed.has(entry.target)) return;
|
|
4815
4812
|
if (!(entry.target instanceof HTMLElement)) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novely/solid-renderer",
|
|
3
|
-
"version": "0.47.0
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"typescript": "^5.6.2"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@solid-primitives/destructure": "^0.
|
|
18
|
+
"@solid-primitives/destructure": "^0.2.0",
|
|
19
19
|
"clsx": "^2.1.1",
|
|
20
20
|
"es-toolkit": "^1.23.0",
|
|
21
21
|
"solid-js": "~1.9.3",
|
|
22
22
|
"solid-transition-group": "^0.2.3",
|
|
23
|
-
"@novely/core": "0.49.0
|
|
23
|
+
"@novely/core": "0.49.0",
|
|
24
24
|
"@novely/renderer-toolkit": "0.12.1",
|
|
25
25
|
"@novely/typewriter": "0.5.1"
|
|
26
26
|
},
|