From 7bf424a1a447e3f2a239b4a56c411118f95dda26 Mon Sep 17 00:00:00 2001 From: Aurelien Lourot Date: Tue, 3 Oct 2023 18:32:01 +0200 Subject: [PATCH] LA_TEMP solid-devtools --- pnpm-lock.yaml | 211 ++++++++++++++++++++++++ vike-solid/package.json | 1 + vike-solid/renderer/+onRenderClient.tsx | 2 + 3 files changed, 214 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fe681a0..4af6bad 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -82,6 +82,9 @@ importers: rollup-plugin-dts: specifier: ^6.0.2 version: 6.0.2(rollup@3.29.4)(typescript@5.2.2) + solid-devtools: + specifier: ^0.27.7 + version: 0.27.7(solid-js@1.7.12)(vite@4.4.9) solid-js: specifier: ^1.7.12 version: 1.7.12 @@ -1756,6 +1759,10 @@ packages: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 + /@nothing-but/utils@0.3.2: + resolution: {integrity: sha512-y7ynAt3lVjvXF7+xVVezGnq4pJliX/ducCa9/AV6iB03M1JUcV0iq/9qK6h+4ieFPXhTAX2a/VuBNgksjnUQZw==} + dev: true + /@polka/url@1.0.0-next.21: resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} @@ -1811,6 +1818,187 @@ packages: rollup: 3.29.4 dev: true + /@solid-devtools/debugger@0.22.4(solid-js@1.7.12): + resolution: {integrity: sha512-rrKZB1hbteOpptH4AiK9nKT3oLoJDAU1UJnfZJB4zIvvmqZXQcpsEYfXvJjDBIYHONeuTJ3K2tpgLjGb7h7H6g==} + peerDependencies: + solid-js: ^1.7.0 + dependencies: + '@nothing-but/utils': 0.3.2 + '@solid-devtools/shared': 0.12.3(solid-js@1.7.12) + '@solid-primitives/bounds': 0.0.114(solid-js@1.7.12) + '@solid-primitives/cursor': 0.0.111(solid-js@1.7.12) + '@solid-primitives/event-bus': 1.0.8(solid-js@1.7.12) + '@solid-primitives/event-listener': 2.3.0(solid-js@1.7.12) + '@solid-primitives/keyboard': 1.2.5(solid-js@1.7.12) + '@solid-primitives/platform': 0.0.105(solid-js@1.7.12) + '@solid-primitives/rootless': 1.4.2(solid-js@1.7.12) + '@solid-primitives/scheduled': 1.4.1(solid-js@1.7.12) + '@solid-primitives/static-store': 0.0.4(solid-js@1.7.12) + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-devtools/shared@0.12.3(solid-js@1.7.12): + resolution: {integrity: sha512-GBPyj+S4lZmVO5WK73/FP1l1lHYoeDwqbSV2M15l5LSAtaG68HBE6smmMQI7G12XShfs8soM+PXwlx8YZ9ElIw==} + peerDependencies: + solid-js: ^1.7.0 + dependencies: + '@solid-primitives/event-bus': 1.0.8(solid-js@1.7.12) + '@solid-primitives/event-listener': 2.3.0(solid-js@1.7.12) + '@solid-primitives/media': 2.2.5(solid-js@1.7.12) + '@solid-primitives/refs': 1.0.5(solid-js@1.7.12) + '@solid-primitives/rootless': 1.4.2(solid-js@1.7.12) + '@solid-primitives/scheduled': 1.4.1(solid-js@1.7.12) + '@solid-primitives/static-store': 0.0.4(solid-js@1.7.12) + '@solid-primitives/styles': 0.0.110(solid-js@1.7.12) + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/bounds@0.0.114(solid-js@1.7.12): + resolution: {integrity: sha512-PS+PObcgzhoaY05ets7u+9/5vW+5MFcQxwaS18N9ZpxYh8dPkk8vYgJkUegz5t4jIeZrNwowI6xGBpdAQWMPqg==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/event-listener': 2.3.0(solid-js@1.7.12) + '@solid-primitives/resize-observer': 2.0.22(solid-js@1.7.12) + '@solid-primitives/static-store': 0.0.4(solid-js@1.7.12) + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/cursor@0.0.111(solid-js@1.7.12): + resolution: {integrity: sha512-P/KqyIdi//VSiE+7uEkbYpO4lubnFBxd40FrNzjZ7iJcxb2woyAsvzKV6pHLIznxRRrAM7bnUsj20e3qbw5TCQ==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/event-bus@1.0.8(solid-js@1.7.12): + resolution: {integrity: sha512-vw9Q8oHL8h3WOxFiFFBE8lwJ1oOmCEdtFsOck3i66GPaJbmzHwBtQxTkAgF+DtpeSpSyCHlxKE7ojHnL4nl1Ww==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/event-listener@2.3.0(solid-js@1.7.12): + resolution: {integrity: sha512-0DS7DQZvCExWSpurVZC9/wjI8RmkhuOtWOy6Pp1Woq9ElMT9/bfjNpkwXsOwisLpcTqh9eUs17kp7jtpWcC20w==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/keyboard@1.2.5(solid-js@1.7.12): + resolution: {integrity: sha512-1axfWM1T4ASzZp4D91vLtxARevlBuOQ6yFHr1/IkuM/7OhMLo/BrO2CcDu3vSwCPVOSiZ2P875bTiqVWQV6e5g==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/event-listener': 2.3.0(solid-js@1.7.12) + '@solid-primitives/rootless': 1.4.2(solid-js@1.7.12) + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/media@2.2.5(solid-js@1.7.12): + resolution: {integrity: sha512-wTESNFteSwOZsNIBPLMIVLuOHIIzt2AIZdaCYYxfsJIr/xjDqSomlmdFlAmxfJD3ondO7fwtWfc0rcmAvjoPCA==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/event-listener': 2.3.0(solid-js@1.7.12) + '@solid-primitives/rootless': 1.4.2(solid-js@1.7.12) + '@solid-primitives/static-store': 0.0.5(solid-js@1.7.12) + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/platform@0.0.105(solid-js@1.7.12): + resolution: {integrity: sha512-GULqmMc5vNsLSsIxIEYYxJv/6ypGKG+ig9hzSi4lxVPfooX6Go6txDlhv53woUSvaG939ceZGRq+X5uADMed6g==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + solid-js: 1.7.12 + dev: true + + /@solid-primitives/refs@1.0.5(solid-js@1.7.12): + resolution: {integrity: sha512-5hmYmYbm6rs43nMHHozyyUngGA7P7q2WtlaCLJEfmlUJf67GWI1PZmqAiol6m9F37XSMZRuvZLoQ7HA/0q3GYg==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/resize-observer@2.0.22(solid-js@1.7.12): + resolution: {integrity: sha512-ps8UIFiGsNxZaWBKSH0Py0Nx5PDd7NtUGHkN/04SNRYgtTvlPF768rk0ksPlDgpIwYmBLIoC9qvQmQPaHF4F5w==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/event-listener': 2.3.0(solid-js@1.7.12) + '@solid-primitives/rootless': 1.4.2(solid-js@1.7.12) + '@solid-primitives/static-store': 0.0.5(solid-js@1.7.12) + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/rootless@1.4.2(solid-js@1.7.12): + resolution: {integrity: sha512-ynI/2aEOPyc14IKCX6yDBqnsAYCoLbaP9V/jejEWMVKOT2ZdV2ZxdftaLimOpWPpvjyti5DUJIGTOfLaNb7jlg==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/scheduled@1.4.1(solid-js@1.7.12): + resolution: {integrity: sha512-OLcNXwYpX7HUOEqNPcmR31dkyI1E2imkMDBRlqsGT0ZhJV1L2g0TEREpo4nm/kUhh8LVQzkfnxS+GONx9kh90A==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + solid-js: 1.7.12 + dev: true + + /@solid-primitives/static-store@0.0.4(solid-js@1.7.12): + resolution: {integrity: sha512-NcLtDNA6H+Z9LmqaUe4SKfMx0YbszIMXEqfV15cB34t5XyEeOM5TihYwsVJ/dpkmpHYzflm0SwAL+P9uwyzvWQ==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/static-store@0.0.5(solid-js@1.7.12): + resolution: {integrity: sha512-ssQ+s/wrlFAEE4Zw8GV499yBfvWx7SMm+ZVc11wvao4T5xg9VfXCL9Oa+x4h+vPMvSV/Knv5LrsLiUa+wlJUXQ==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/styles@0.0.110(solid-js@1.7.12): + resolution: {integrity: sha512-PSaM1Rl4+zwpOfxil8KlY87UC+R1rQy8b2EiCMjgTWakRK1TjvFM78KY5/ohFg42bp2V/DWRx2QaL/Unjm3HMg==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + '@solid-primitives/rootless': 1.4.2(solid-js@1.7.12) + '@solid-primitives/utils': 6.2.1(solid-js@1.7.12) + solid-js: 1.7.12 + dev: true + + /@solid-primitives/utils@6.2.1(solid-js@1.7.12): + resolution: {integrity: sha512-TsecNzxiO5bLfzqb4OOuzfUmdOROcssuGqgh5rXMMaasoFZ3GoveUgdY1wcf17frMJM7kCNGNuK34EjErneZkg==} + peerDependencies: + solid-js: ^1.6.12 + dependencies: + solid-js: 1.7.12 + dev: true + /@types/babel__core@7.20.1: resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==} dependencies: @@ -2708,6 +2896,29 @@ packages: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} dev: true + /solid-devtools@0.27.7(solid-js@1.7.12)(vite@4.4.9): + resolution: {integrity: sha512-eRUk+mzszEM6nt+TNT2iU2J6T1F0NSJCRFPP4Y78Wt8HVAepnwB6H2WAE1S/5EH8PL0+NIHsVdHI/+6ReZPO5g==} + peerDependencies: + solid-js: ^1.7.0 + solid-start: ^0.2.20 + vite: ^2.2.3 || ^3.0.0 || ^4.0.0 + peerDependenciesMeta: + solid-start: + optional: true + vite: + optional: true + dependencies: + '@babel/core': 7.23.0 + '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.23.0) + '@babel/types': 7.23.0 + '@solid-devtools/debugger': 0.22.4(solid-js@1.7.12) + '@solid-devtools/shared': 0.12.3(solid-js@1.7.12) + solid-js: 1.7.12 + vite: 4.4.9(@types/node@18.17.4) + transitivePeerDependencies: + - supports-color + dev: true + /solid-js@1.7.11: resolution: {integrity: sha512-JkuvsHt8jqy7USsy9xJtT18aF9r2pFO+GB8JQ2XGTvtF49rGTObB46iebD25sE3qVNvIbwglXOXdALnJq9IHtQ==} dependencies: diff --git a/vike-solid/package.json b/vike-solid/package.json index f9ba058..9611423 100644 --- a/vike-solid/package.json +++ b/vike-solid/package.json @@ -33,6 +33,7 @@ "bumpp": "^9.2.0", "rollup": "^3.29.4", "rollup-plugin-dts": "^6.0.2", + "solid-devtools": "^0.27.7", "solid-js": "^1.7.12", "tslib": "^2.6.2", "typescript": "^5.2.2", diff --git a/vike-solid/renderer/+onRenderClient.tsx b/vike-solid/renderer/+onRenderClient.tsx index f73db5c..247d5e1 100644 --- a/vike-solid/renderer/+onRenderClient.tsx +++ b/vike-solid/renderer/+onRenderClient.tsx @@ -6,6 +6,8 @@ import type { PageContextClient } from "vike/types"; import { getPageElement } from "./getPageElement"; import { createStore, reconcile } from "solid-js/store"; +import "solid-devtools/setup"; // LA_TEMP + const [pageContextStore, setPageContext] = createStore( {} as PageContextClient );