@pyreon/runtime-dom 0.11.3 → 0.11.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/lib/analysis/index.js.html +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/src/keep-alive.ts +2 -1
- package/src/tests/props.test.ts +463 -0
- package/src/tests/transition.test.ts +550 -0
|
@@ -5386,7 +5386,7 @@ var drawChart = (function (exports) {
|
|
|
5386
5386
|
</script>
|
|
5387
5387
|
<script>
|
|
5388
5388
|
/*<!--*/
|
|
5389
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"
|
|
5389
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"03763e65-1","name":"delegate.ts"},{"uid":"03763e65-3","name":"hydration-debug.ts"},{"uid":"03763e65-5","name":"devtools.ts"},{"uid":"03763e65-7","name":"nodes.ts"},{"uid":"03763e65-9","name":"props.ts"},{"uid":"03763e65-11","name":"mount.ts"},{"uid":"03763e65-13","name":"hydrate.ts"},{"uid":"03763e65-15","name":"keep-alive.ts"},{"uid":"03763e65-17","name":"template.ts"},{"uid":"03763e65-19","name":"transition.ts"},{"uid":"03763e65-21","name":"transition-group.ts"},{"uid":"03763e65-23","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"03763e65-1":{"renderedLength":1990,"gzipLength":976,"brotliLength":0,"metaUid":"03763e65-0"},"03763e65-3":{"renderedLength":704,"gzipLength":397,"brotliLength":0,"metaUid":"03763e65-2"},"03763e65-5":{"renderedLength":6803,"gzipLength":2095,"brotliLength":0,"metaUid":"03763e65-4"},"03763e65-7":{"renderedLength":16273,"gzipLength":4364,"brotliLength":0,"metaUid":"03763e65-6"},"03763e65-9":{"renderedLength":6157,"gzipLength":2362,"brotliLength":0,"metaUid":"03763e65-8"},"03763e65-11":{"renderedLength":9397,"gzipLength":2862,"brotliLength":0,"metaUid":"03763e65-10"},"03763e65-13":{"renderedLength":7694,"gzipLength":2333,"brotliLength":0,"metaUid":"03763e65-12"},"03763e65-15":{"renderedLength":1473,"gzipLength":701,"brotliLength":0,"metaUid":"03763e65-14"},"03763e65-17":{"renderedLength":4512,"gzipLength":1811,"brotliLength":0,"metaUid":"03763e65-16"},"03763e65-19":{"renderedLength":4007,"gzipLength":1316,"brotliLength":0,"metaUid":"03763e65-18"},"03763e65-21":{"renderedLength":6362,"gzipLength":1937,"brotliLength":0,"metaUid":"03763e65-20"},"03763e65-23":{"renderedLength":811,"gzipLength":491,"brotliLength":0,"metaUid":"03763e65-22"}},"nodeMetas":{"03763e65-0":{"id":"/src/delegate.ts","moduleParts":{"index.js":"03763e65-1"},"imported":[{"uid":"03763e65-24"}],"importedBy":[{"uid":"03763e65-22"},{"uid":"03763e65-12"},{"uid":"03763e65-8"}]},"03763e65-2":{"id":"/src/hydration-debug.ts","moduleParts":{"index.js":"03763e65-3"},"imported":[],"importedBy":[{"uid":"03763e65-22"},{"uid":"03763e65-12"}]},"03763e65-4":{"id":"/src/devtools.ts","moduleParts":{"index.js":"03763e65-5"},"imported":[],"importedBy":[{"uid":"03763e65-22"},{"uid":"03763e65-10"}]},"03763e65-6":{"id":"/src/nodes.ts","moduleParts":{"index.js":"03763e65-7"},"imported":[{"uid":"03763e65-24"}],"importedBy":[{"uid":"03763e65-12"},{"uid":"03763e65-10"}]},"03763e65-8":{"id":"/src/props.ts","moduleParts":{"index.js":"03763e65-9"},"imported":[{"uid":"03763e65-25"},{"uid":"03763e65-24"},{"uid":"03763e65-0"}],"importedBy":[{"uid":"03763e65-22"},{"uid":"03763e65-12"},{"uid":"03763e65-10"}]},"03763e65-10":{"id":"/src/mount.ts","moduleParts":{"index.js":"03763e65-11"},"imported":[{"uid":"03763e65-25"},{"uid":"03763e65-24"},{"uid":"03763e65-4"},{"uid":"03763e65-6"},{"uid":"03763e65-8"}],"importedBy":[{"uid":"03763e65-22"},{"uid":"03763e65-12"},{"uid":"03763e65-14"},{"uid":"03763e65-20"}]},"03763e65-12":{"id":"/src/hydrate.ts","moduleParts":{"index.js":"03763e65-13"},"imported":[{"uid":"03763e65-25"},{"uid":"03763e65-24"},{"uid":"03763e65-0"},{"uid":"03763e65-2"},{"uid":"03763e65-10"},{"uid":"03763e65-6"},{"uid":"03763e65-8"}],"importedBy":[{"uid":"03763e65-22"}]},"03763e65-14":{"id":"/src/keep-alive.ts","moduleParts":{"index.js":"03763e65-15"},"imported":[{"uid":"03763e65-25"},{"uid":"03763e65-24"},{"uid":"03763e65-10"}],"importedBy":[{"uid":"03763e65-22"}]},"03763e65-16":{"id":"/src/template.ts","moduleParts":{"index.js":"03763e65-17"},"imported":[{"uid":"03763e65-24"}],"importedBy":[{"uid":"03763e65-22"}]},"03763e65-18":{"id":"/src/transition.ts","moduleParts":{"index.js":"03763e65-19"},"imported":[{"uid":"03763e65-25"},{"uid":"03763e65-24"}],"importedBy":[{"uid":"03763e65-22"}]},"03763e65-20":{"id":"/src/transition-group.ts","moduleParts":{"index.js":"03763e65-21"},"imported":[{"uid":"03763e65-25"},{"uid":"03763e65-24"},{"uid":"03763e65-10"}],"importedBy":[{"uid":"03763e65-22"}]},"03763e65-22":{"id":"/src/index.ts","moduleParts":{"index.js":"03763e65-23"},"imported":[{"uid":"03763e65-0"},{"uid":"03763e65-12"},{"uid":"03763e65-2"},{"uid":"03763e65-14"},{"uid":"03763e65-10"},{"uid":"03763e65-8"},{"uid":"03763e65-16"},{"uid":"03763e65-18"},{"uid":"03763e65-20"},{"uid":"03763e65-4"}],"importedBy":[],"isEntry":true},"03763e65-24":{"id":"@pyreon/reactivity","moduleParts":{},"imported":[],"importedBy":[{"uid":"03763e65-0"},{"uid":"03763e65-12"},{"uid":"03763e65-14"},{"uid":"03763e65-10"},{"uid":"03763e65-8"},{"uid":"03763e65-16"},{"uid":"03763e65-18"},{"uid":"03763e65-20"},{"uid":"03763e65-6"}]},"03763e65-25":{"id":"@pyreon/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"03763e65-12"},{"uid":"03763e65-14"},{"uid":"03763e65-10"},{"uid":"03763e65-8"},{"uid":"03763e65-18"},{"uid":"03763e65-20"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
5390
5390
|
|
|
5391
5391
|
const run = () => {
|
|
5392
5392
|
const width = window.innerWidth;
|
package/lib/index.js
CHANGED
|
@@ -1579,6 +1579,7 @@ function KeepAlive(props) {
|
|
|
1579
1579
|
let childMounted = false;
|
|
1580
1580
|
onMount(() => {
|
|
1581
1581
|
const container = containerRef.current;
|
|
1582
|
+
if (!container) return;
|
|
1582
1583
|
const e = effect(() => {
|
|
1583
1584
|
const isActive = props.active?.() ?? true;
|
|
1584
1585
|
if (!childMounted) {
|