@novely/solid-renderer 0.28.4 → 0.28.6
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 +91 -5
- package/dist/styles/index.css +16 -0
- package/package.json +3 -3
package/dist/index.jsx
CHANGED
|
@@ -3957,20 +3957,106 @@ function deepMap(initial = {}) {
|
|
|
3957
3957
|
return $deepMap;
|
|
3958
3958
|
}
|
|
3959
3959
|
|
|
3960
|
+
// ../../node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.mjs
|
|
3961
|
+
var has = Object.prototype.hasOwnProperty;
|
|
3962
|
+
function find(iter, tar, key) {
|
|
3963
|
+
for (key of iter.keys()) {
|
|
3964
|
+
if (dequal(key, tar))
|
|
3965
|
+
return key;
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
function dequal(foo, bar) {
|
|
3969
|
+
var ctor, len, tmp;
|
|
3970
|
+
if (foo === bar)
|
|
3971
|
+
return true;
|
|
3972
|
+
if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
|
|
3973
|
+
if (ctor === Date)
|
|
3974
|
+
return foo.getTime() === bar.getTime();
|
|
3975
|
+
if (ctor === RegExp)
|
|
3976
|
+
return foo.toString() === bar.toString();
|
|
3977
|
+
if (ctor === Array) {
|
|
3978
|
+
if ((len = foo.length) === bar.length) {
|
|
3979
|
+
while (len-- && dequal(foo[len], bar[len]))
|
|
3980
|
+
;
|
|
3981
|
+
}
|
|
3982
|
+
return len === -1;
|
|
3983
|
+
}
|
|
3984
|
+
if (ctor === Set) {
|
|
3985
|
+
if (foo.size !== bar.size) {
|
|
3986
|
+
return false;
|
|
3987
|
+
}
|
|
3988
|
+
for (len of foo) {
|
|
3989
|
+
tmp = len;
|
|
3990
|
+
if (tmp && typeof tmp === "object") {
|
|
3991
|
+
tmp = find(bar, tmp);
|
|
3992
|
+
if (!tmp)
|
|
3993
|
+
return false;
|
|
3994
|
+
}
|
|
3995
|
+
if (!bar.has(tmp))
|
|
3996
|
+
return false;
|
|
3997
|
+
}
|
|
3998
|
+
return true;
|
|
3999
|
+
}
|
|
4000
|
+
if (ctor === Map) {
|
|
4001
|
+
if (foo.size !== bar.size) {
|
|
4002
|
+
return false;
|
|
4003
|
+
}
|
|
4004
|
+
for (len of foo) {
|
|
4005
|
+
tmp = len[0];
|
|
4006
|
+
if (tmp && typeof tmp === "object") {
|
|
4007
|
+
tmp = find(bar, tmp);
|
|
4008
|
+
if (!tmp)
|
|
4009
|
+
return false;
|
|
4010
|
+
}
|
|
4011
|
+
if (!dequal(len[1], bar.get(tmp))) {
|
|
4012
|
+
return false;
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
return true;
|
|
4016
|
+
}
|
|
4017
|
+
if (ctor === ArrayBuffer) {
|
|
4018
|
+
foo = new Uint8Array(foo);
|
|
4019
|
+
bar = new Uint8Array(bar);
|
|
4020
|
+
} else if (ctor === DataView) {
|
|
4021
|
+
if ((len = foo.byteLength) === bar.byteLength) {
|
|
4022
|
+
while (len-- && foo.getInt8(len) === bar.getInt8(len))
|
|
4023
|
+
;
|
|
4024
|
+
}
|
|
4025
|
+
return len === -1;
|
|
4026
|
+
}
|
|
4027
|
+
if (ArrayBuffer.isView(foo)) {
|
|
4028
|
+
if ((len = foo.byteLength) === bar.byteLength) {
|
|
4029
|
+
while (len-- && foo[len] === bar[len])
|
|
4030
|
+
;
|
|
4031
|
+
}
|
|
4032
|
+
return len === -1;
|
|
4033
|
+
}
|
|
4034
|
+
if (!ctor || typeof foo === "object") {
|
|
4035
|
+
len = 0;
|
|
4036
|
+
for (ctor in foo) {
|
|
4037
|
+
if (has.call(foo, ctor) && ++len && !has.call(bar, ctor))
|
|
4038
|
+
return false;
|
|
4039
|
+
if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor]))
|
|
4040
|
+
return false;
|
|
4041
|
+
}
|
|
4042
|
+
return Object.keys(bar).length === len;
|
|
4043
|
+
}
|
|
4044
|
+
}
|
|
4045
|
+
return foo !== foo && bar !== bar;
|
|
4046
|
+
}
|
|
4047
|
+
|
|
3960
4048
|
// ../renderer-toolkit/dist/index.js
|
|
3961
4049
|
var import_howler = __toESM(require_howler(), 1);
|
|
3962
4050
|
var memo = (input, cb) => {
|
|
3963
4051
|
const $memoized = atom(cb(input.get()));
|
|
3964
4052
|
const unsubscribe = input.subscribe((value) => {
|
|
3965
4053
|
const comparable = cb(value);
|
|
3966
|
-
if (!
|
|
3967
|
-
$memoized.set(comparable);
|
|
4054
|
+
if (!dequal($memoized.get(), comparable)) {
|
|
4055
|
+
$memoized.set(typeof comparable === "object" ? { ...comparable } : Array.isArray(comparable) ? [...comparable] : comparable);
|
|
3968
4056
|
}
|
|
3969
4057
|
});
|
|
3970
4058
|
onMount($memoized, () => {
|
|
3971
|
-
return
|
|
3972
|
-
unsubscribe();
|
|
3973
|
-
};
|
|
4059
|
+
return unsubscribe;
|
|
3974
4060
|
});
|
|
3975
4061
|
return $memoized;
|
|
3976
4062
|
};
|
package/dist/styles/index.css
CHANGED
|
@@ -244,6 +244,11 @@
|
|
|
244
244
|
.preview .action-text {
|
|
245
245
|
font-size: 2rem;
|
|
246
246
|
}
|
|
247
|
+
@media only screen and (min-aspect-ratio: .8) and (pointer: coarse) {
|
|
248
|
+
.preview .action-text {
|
|
249
|
+
font-size: 1.8rem;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
247
252
|
|
|
248
253
|
/* src/styles/action-text/index.css */
|
|
249
254
|
|
|
@@ -522,6 +527,12 @@
|
|
|
522
527
|
.preview .action-dialog-content {
|
|
523
528
|
font-size: 2rem;
|
|
524
529
|
}
|
|
530
|
+
@media only screen and (min-aspect-ratio: .8) and (pointer: coarse) {
|
|
531
|
+
.preview .action-dialog-name,
|
|
532
|
+
.preview .action-dialog-content {
|
|
533
|
+
font-size: 1.8rem;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
525
536
|
|
|
526
537
|
/* src/styles/action-dialog/index.css */
|
|
527
538
|
|
|
@@ -948,6 +959,11 @@
|
|
|
948
959
|
padding: .4rem;
|
|
949
960
|
display: flex;
|
|
950
961
|
}
|
|
962
|
+
@media only screen and (min-aspect-ratio: .8) and (pointer: coarse) {
|
|
963
|
+
.saves__list-item {
|
|
964
|
+
width: max(22vmin, 50% - 1rem);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
951
967
|
.saves__list-item__description {
|
|
952
968
|
font-variant-numeric: tabular-nums;
|
|
953
969
|
flex-direction: column;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novely/solid-renderer",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"retrieved": "^0.1.0",
|
|
19
19
|
"solid-js": "1.8.5",
|
|
20
|
-
"@novely/core": "0.31.
|
|
21
|
-
"@novely/renderer-toolkit": "0.
|
|
20
|
+
"@novely/core": "0.31.2",
|
|
21
|
+
"@novely/renderer-toolkit": "0.3.0",
|
|
22
22
|
"@novely/typewriter": "0.5.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|