diff --git a/README.md b/README.md index 979169dd9..be62a870f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![pnpm](https://img.shields.io/badge/maintained%20with-pnpm-cc00ff.svg?style=for-the-badge&logo=pnpm)](https://pnpm.io/) [![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/) -[![combined-downloads](https://img.shields.io/endpoint?style=for-the-badge&url=https://combined-npm-downloads.deno.dev/@solid-primitives/analytics,@solid-primitives/broadcast-channel,@solid-primitives/context,@solid-primitives/devices,@solid-primitives/event-dispatcher,@solid-primitives/event-props,@solid-primitives/fetch,@solid-primitives/fullscreen,@solid-primitives/gestures,@solid-primitives/i18n,@solid-primitives/idle,@solid-primitives/input-mask,@solid-primitives/keyed,@solid-primitives/permission,@solid-primitives/platform,@solid-primitives/scheduled,@solid-primitives/script-loader,@solid-primitives/selection,@solid-primitives/share,@solid-primitives/storage,@solid-primitives/timer,@solid-primitives/tween,@solid-primitives/utils,@solid-primitives/websocket,@solid-primitives/workers)](https://dash.deno.com/playground/combined-npm-downloads) +[![combined-downloads](https://img.shields.io/endpoint?style=for-the-badge&url=https://combined-npm-downloads.deno.dev/@solid-primitives/analytics,@solid-primitives/broadcast-channel,@solid-primitives/context,@solid-primitives/devices,@solid-primitives/event-dispatcher,@solid-primitives/event-props,@solid-primitives/fetch,@solid-primitives/fullscreen,@solid-primitives/gestures,@solid-primitives/i18n,@solid-primitives/idle,@solid-primitives/input-mask,@solid-primitives/jsx-parser,@solid-primitives/keyed,@solid-primitives/permission,@solid-primitives/platform,@solid-primitives/scheduled,@solid-primitives/script-loader,@solid-primitives/selection,@solid-primitives/share,@solid-primitives/storage,@solid-primitives/timer,@solid-primitives/tween,@solid-primitives/utils,@solid-primitives/websocket,@solid-primitives/workers)](https://dash.deno.com/playground/combined-npm-downloads) A project that strives to develop high-quality, community contributed Solid primitives. All utilities are well tested and continuously maintained. Every contribution to the repository is checked for quality and maintained to the highest degree of excellence. The ultimate goal is to extend Solid's primary and secondary primitives with a set of tertiary primitives. @@ -66,6 +66,7 @@ The goal of Solid Primitives is to wrap client and server side functionality to |[event-dispatcher](https://github.com/solidjs-community/solid-primitives/tree/main/packages/event-dispatcher#readme)|[![STAGE](https://img.shields.io/endpoint?style=for-the-badge&label=&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-0.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)|[createEventDispatcher](https://github.com/solidjs-community/solid-primitives/tree/main/packages/event-dispatcher#createeventdispatcher)|[![SIZE](https://img.shields.io/bundlephobia/minzip/@solid-primitives/event-dispatcher?style=for-the-badge&label=)](https://bundlephobia.com/package/@solid-primitives/event-dispatcher)|[![VERSION](https://img.shields.io/npm/v/@solid-primitives/event-dispatcher?style=for-the-badge&label=)](https://www.npmjs.com/package/@solid-primitives/event-dispatcher)| |[i18n](https://github.com/solidjs-community/solid-primitives/tree/main/packages/i18n#readme)|[![STAGE](https://img.shields.io/endpoint?style=for-the-badge&label=&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-3.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)|[createI18nContext](https://github.com/solidjs-community/solid-primitives/tree/main/packages/i18n#createi18ncontext)
[useI18n](https://github.com/solidjs-community/solid-primitives/tree/main/packages/i18n#usei18n)|[![SIZE](https://img.shields.io/bundlephobia/minzip/@solid-primitives/i18n?style=for-the-badge&label=)](https://bundlephobia.com/package/@solid-primitives/i18n)|[![VERSION](https://img.shields.io/npm/v/@solid-primitives/i18n?style=for-the-badge&label=)](https://www.npmjs.com/package/@solid-primitives/i18n)| |[immutable](https://github.com/solidjs-community/solid-primitives/tree/main/packages/immutable#readme)|[![STAGE](https://img.shields.io/endpoint?style=for-the-badge&label=&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-2.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)|[List of functions](https://github.com/solidjs-community/solid-primitives/tree/main/packages/immutable#list-of-functions)|[![SIZE](https://img.shields.io/bundlephobia/minzip/@solid-primitives/immutable?style=for-the-badge&label=)](https://bundlephobia.com/package/@solid-primitives/immutable)|[![VERSION](https://img.shields.io/npm/v/@solid-primitives/immutable?style=for-the-badge&label=)](https://www.npmjs.com/package/@solid-primitives/immutable)| +|[jsx-parser](https://github.com/solidjs-community/solid-primitives/tree/main/packages/jsx-parser#readme)|[![STAGE](https://img.shields.io/endpoint?style=for-the-badge&label=&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-0.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)|[createJSXParser](https://github.com/solidjs-community/solid-primitives/tree/main/packages/jsx-parser#createjsxparser)|[![SIZE](https://img.shields.io/bundlephobia/minzip/@solid-primitives/jsx-parser?style=for-the-badge&label=)](https://bundlephobia.com/package/@solid-primitives/jsx-parser)|[![VERSION](https://img.shields.io/npm/v/@solid-primitives/jsx-parser?style=for-the-badge&label=)](https://www.npmjs.com/package/@solid-primitives/jsx-parser)| |[map](https://github.com/solidjs-community/solid-primitives/tree/main/packages/map#readme)|[![STAGE](https://img.shields.io/endpoint?style=for-the-badge&label=&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-2.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)|[ReactiveMap](https://github.com/solidjs-community/solid-primitives/tree/main/packages/map#reactivemap)
[ReactiveWeakMap](https://github.com/solidjs-community/solid-primitives/tree/main/packages/map#reactiveweakmap)|[![SIZE](https://img.shields.io/bundlephobia/minzip/@solid-primitives/map?style=for-the-badge&label=)](https://bundlephobia.com/package/@solid-primitives/map)|[![VERSION](https://img.shields.io/npm/v/@solid-primitives/map?style=for-the-badge&label=)](https://www.npmjs.com/package/@solid-primitives/map)| |[pagination](https://github.com/solidjs-community/solid-primitives/tree/main/packages/pagination#readme)|[![STAGE](https://img.shields.io/endpoint?style=for-the-badge&label=&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-0.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)|[createPagination](https://github.com/solidjs-community/solid-primitives/tree/main/packages/pagination#createpagination)|[![SIZE](https://img.shields.io/bundlephobia/minzip/@solid-primitives/pagination?style=for-the-badge&label=)](https://bundlephobia.com/package/@solid-primitives/pagination)|[![VERSION](https://img.shields.io/npm/v/@solid-primitives/pagination?style=for-the-badge&label=)](https://www.npmjs.com/package/@solid-primitives/pagination)| |[platform](https://github.com/solidjs-community/solid-primitives/tree/main/packages/platform#readme)|[![STAGE](https://img.shields.io/endpoint?style=for-the-badge&label=&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-1.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)|[List of variables](https://github.com/solidjs-community/solid-primitives/tree/main/packages/platform#list-of-variables)|[![SIZE](https://img.shields.io/bundlephobia/minzip/@solid-primitives/platform?style=for-the-badge&label=)](https://bundlephobia.com/package/@solid-primitives/platform)|[![VERSION](https://img.shields.io/npm/v/@solid-primitives/platform?style=for-the-badge&label=)](https://www.npmjs.com/package/@solid-primitives/platform)| diff --git a/packages/jsx-parser/LICENSE b/packages/jsx-parser/LICENSE new file mode 100644 index 000000000..38b41d975 --- /dev/null +++ b/packages/jsx-parser/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Solid Primitives Working Group + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/packages/jsx-parser/README.md b/packages/jsx-parser/README.md new file mode 100644 index 000000000..3095cb93b --- /dev/null +++ b/packages/jsx-parser/README.md @@ -0,0 +1,134 @@ +

+ Solid Primitives JSX Parser +

+ +# @solid-primitives/parser + +A primitive to extend the types of values JSX can return. These JSX-elements are named `tokens`. + +- [`createJSXParser`](#createJSXParser) — Provides the tools to create and identify `tokens`: `createToken`, `childrenTokens`, `isToken` and `id`. +- [`createToken`](#createToken) — Instantiates a `token` associated with the corresponding jsx-parser. +- [`childrenTokens`](#childrenTokens) — A function similar to Solid's `children()`, but that will only return valid `tokens` created by the corresponding jsx-parser's `createToken` +- [`isToken`](#isToken) — A function to validate if an element is a `token` created by the corresponding jsx-parser's `createToken` +- [`id`](#id) — The symbol unique to the corresponding jsx-parser + +## Installation + +```bash +npm install @solid-primitives/jsx-parser +# or +yarn add @solid-primitives/jsx-parser +# or +pnpm add @solid-primitives/jsx-parser +``` + +## `createJSXParser` + +Provides the tools to create and identify `tokens`. + +### How to use it + +`createJSXParser` takes an optional id as argument, and returns the following functions `createToken`, `childrenTokens`, `isToken` and the symbol associated with the jsx-parser `id`. + +It also takes as a generic the union of accepted token-types. + +```tsx +import { createJSXParser } from "@solid-primitives/jsx-parser"; + +type UnionOfAcceptedTokens = Token1 | Token2 | ... + +const {createToken, childrenTokens, isToken, id} = createJSXParser('parser-example'); +``` + +## `createToken` + +A function to create a `token` associated with the corresponding jsx-parser. + +### How to use it + +`createToken` takes two callback-arguments: the first callback returns the token, an optional second callback returns a JSXElement. This second callback is used when the token is being rendered by Solid. If the second callback is not present, the following error will be shown instead: `tokens can only be rendered inside a Parser with id ...` + +It takes as generic two types: the props of the associated JSX-element and the return-value of the token. + +```tsx +type Props = { + id: string; +}; + +type Token = { + props: Props; + value: number; +}; + +const TokenExample = createToken( + props => { + const value = Math.random(); + return { + props, + value + }; + }, + props => { + return {props.id}; + } +); +``` + +This token can then be used as a JSX-element inside your solid-code: + +```tsx +const App = () => { + return ; +}; +``` + +TokenExample is typed as a JSXElement, this is so TokenExample can be used in JSX without causing type-errors. + +## `childrenTokens` + +A function similar to Solid's [`children()`](https://www.solidjs.com/docs/latest#children), but that will only return valid `tokens` created by the corresponding jsx-parser's `createToken` + +### How to use it + +`childrenTokens` takes a callback returning `props.children`, and will return all tokens associated with the corresponding jsx-parser. Just like Solid's `children`, `childrenTokens` will resolve the tokens: multiple `childrenTokens` of the same `props.children` will execute the token-callback multiple times! + +```tsx +const tokens = childrenTokens(() => props.children); +``` + +## `isToken` + +A function to validate if a value is a token created by the corresponding jsx-parser, by checking if the value contains the `id`-symbol. + +### How to use it + +`isToken` takes a value, often this would be a JSXElement. The function returns `false` in case the value is not a token created by the corresponding jsx-parser. In case the value is a token `isToken` returns the value cast to a `token`. + +```tsx +const value = props.children[0]; // value is typed as a JSXElement +const token = isToken(value); +if (!token) return; +token; // token is typed as UnionOfAcceptedTokens +``` + +## `id` + +The symbol which is attached to all tokens of the corresponding jsx-parser. This is internally used in `childrenTokens` and `isToken` to validate if a value is a token. + +### How to use it + +`id` can be used for validation. + +```tsx +const value = props.children[0]; +if (!(id in value)) return; +const token = value as UnionOfAcceptedTokens; +``` + +## Demo + +TODO + +## Changelog + +See [CHANGELOG.md](./CHANGELOG.md) diff --git a/packages/jsx-parser/dev/index.html b/packages/jsx-parser/dev/index.html new file mode 100644 index 000000000..38e477282 --- /dev/null +++ b/packages/jsx-parser/dev/index.html @@ -0,0 +1,42 @@ + + + + + + + Solid App + + + + + +
+ + + + diff --git a/packages/jsx-parser/dev/index.tsx b/packages/jsx-parser/dev/index.tsx new file mode 100644 index 000000000..a3c49461c --- /dev/null +++ b/packages/jsx-parser/dev/index.tsx @@ -0,0 +1,86 @@ +import { Component, JSX, ParentComponent } from "solid-js"; +import { render } from "solid-js/web"; +import "uno.css"; +import { createJSXParser } from "../src"; + +type Props = { + value: number; + children?: JSX.Element | JSX.Element[]; +}; + +const { createToken, childrenTokens } = createJSXParser<{ + id: "Value" | "Add" | "Subtract"; + props: Props; +}>({ name: "calculator" }); + +const Calculator: ParentComponent = props => { + const tokens = childrenTokens(() => props.children); + + const calculation = () => { + let result = 0; + tokens().forEach(token => { + console.info("token is ", token); + if (token.id === "Value") { + result = token.props.value; + } else if (token.id === "Add") { + result += token.props.value; + } else if (token.id === "Subtract") { + result -= token.props.value; + } + console.info("result is", result); + }); + return result; + }; + + return ( +
+ {tokens()} = {calculation()} +
+ ); +}; + +const Value = createToken( + (props: Props) => ({ + props, + id: "Value" + }), + props => <>{props.value} +); + +const Add = createToken( + (props: Props) => ({ + props, + id: "Add" + }), + props => <> + {props.value} +); + +const Subtract = createToken( + (props: Props) => ({ + props, + id: "Subtract" + }), + props => <> - {props.value} +); + +const App: Component = () => { + return ( +
+ +

This is a calculator

+ + + +
+
+ ); +}; + +render(() => , document.getElementById("root")!); diff --git a/packages/jsx-parser/dev/vite.config.ts b/packages/jsx-parser/dev/vite.config.ts new file mode 100644 index 000000000..7ca66a520 --- /dev/null +++ b/packages/jsx-parser/dev/vite.config.ts @@ -0,0 +1,2 @@ +import { viteConfig } from "../../../configs/vite.config"; +export default viteConfig; diff --git a/packages/jsx-parser/package.json b/packages/jsx-parser/package.json new file mode 100644 index 000000000..e8d02a8ab --- /dev/null +++ b/packages/jsx-parser/package.json @@ -0,0 +1,64 @@ +{ + "name": "@solid-primitives/jsx-parser", + "version": "0.0.1", + "description": "A primitive to tokenize your solid-components to enable custom parsing.", + "author": "Vincent Van Dijck ", + "contributors": [], + "license": "MIT", + "homepage": "https://github.com/solidjs-community/solid-primitives/tree/main/packages/parser#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/solidjs-community/solid-primitives.git" + }, + "bugs": { + "url": "https://github.com/solidjs-community/solid-primitives/issues" + }, + "primitive": { + "name": "jsx-parser", + "stage": 0, + "list": [ + "createJSXParser" + ], + "category": "Utilities" + }, + "keywords": [ + "solid", + "primitives", + "jsx-parser" + ], + "private": false, + "sideEffects": false, + "files": [ + "dist" + ], + "type": "module", + "main": "./dist/index.cjs", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "browser": {}, + "exports": { + "development": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/dev.js" + }, + "require": "./dist/dev.cjs" + }, + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "require": "./dist/index.cjs" + }, + "typesVersions": {}, + "scripts": { + "dev": "vite serve dev", + "build": "jiti ../../scripts/build.ts --dev", + "test": "vitest -c ../../configs/vitest.config.ts", + "test:ssr": "pnpm run test --mode ssr" + }, + "dependencies": {}, + "peerDependencies": { + "solid-js": "^1.6.0" + } +} diff --git a/packages/jsx-parser/src/index.ts b/packages/jsx-parser/src/index.ts new file mode 100644 index 000000000..2695df677 --- /dev/null +++ b/packages/jsx-parser/src/index.ts @@ -0,0 +1,76 @@ +import { Accessor, createMemo, JSX, untrack } from "solid-js"; + +function resolveChildren(resolved: unknown[], children: unknown, symbol: symbol): void { + if (typeof children === "function" && !children.length) { + if (symbol in children) resolved.push(children); + else resolveChildren(resolved, children(), symbol); + } + if (Array.isArray(children)) + for (let i = 0; i < children.length; i++) resolveChildren(resolved, children[i], symbol); +} + +export type TokenComponent = (() => JSX.Element) & T; + +/** + * Provides the tools to create tokenized components, parse and identify tokens in JSX Elements. + * + * @param options - Additional options for the parser + * @param options.name - The name of the parser, used for debugging + * @returns functions `createToken`, `childrenTokens`, `isToken` and the symbol associated with the jsx-parser `id`. + * @example + * ```tsx + * const { createToken, childrenTokens } = createJSXParser(); + * + * const MyToken = createToken(props => ({ type: "my-token", props })); + * + * const MyComponent = (props) => { + * const tokens = childrenTokens(() => props.children); + * return
    {tokens().map(token =>
  • token.type
  • )}
; + * } + * + * + * + * + * + * ``` + */ +export function createJSXParser(options?: { name: string }) { + const name = options?.name || process.env.DEV ? "jsx-parser" : ""; + const id = Symbol(name); + + function createToken( + tokenCallback: (props: Props) => Token, + component?: (props: Props) => JSX.Element + ): (props: Props) => JSX.Element { + return (props: Props) => + Object.assign( + component + ? () => untrack(() => component(props)) + : () => { + process.env.DEV && + // eslint-disable-next-line no-console + console.warn(`tokens can only be rendered inside a Parser with id '${name}'`); + return ""; + }, + { + [id]: true, + ...tokenCallback(props) + } + ); + } + + function childrenTokens(fn: Accessor) { + const children = createMemo(fn); + return createMemo(() => { + const tokens: TokenComponent[] = []; + resolveChildren(tokens, children(), id); + return tokens; + }); + } + + function isToken(value: unknown | TokenComponent): value is TokenComponent { + return typeof value === "function" && !value.length && id in value; + } + + return { createToken, childrenTokens, isToken, id }; +} diff --git a/packages/jsx-parser/test/index.test.tsx b/packages/jsx-parser/test/index.test.tsx new file mode 100644 index 000000000..f8bded0ce --- /dev/null +++ b/packages/jsx-parser/test/index.test.tsx @@ -0,0 +1,72 @@ +import { children, createRoot, createSignal, Show } from "solid-js"; +import { describe, expect, it } from "vitest"; +import { createJSXParser } from "../src"; + +describe("jsx-parser", () => { + const parser1 = createJSXParser<{ + type: "my-token"; + props: { text: string }; + }>(); + + const MyToken1 = parser1.createToken((props: { text: string }) => ({ + type: "my-token", + props + })); + + it("should work", () => { + createRoot(() => { + const tokens = parser1.childrenTokens(() => ( + <> + + + + )); + + expect(tokens()).toHaveLength(2); + tokens().forEach(token => expect(token.type).toBe("my-token")); + expect(tokens()[0].props.text).toBe("foo"); + expect(tokens()[1].props.text).toBe("bar"); + + // shouldn't throw + <>{tokens()}; + }); + }); + + it("handled reactive children", () => { + createRoot(() => { + const [show, setShow] = createSignal(true); + + const tokens = parser1.childrenTokens(() => ( + <> + + + + + + )); + + expect(tokens()).toHaveLength(2); + + setShow(false); + + expect(tokens()).toHaveLength(1); + }); + }); + + it("should render tokens", () => { + createRoot(() => { + const parser2 = createJSXParser(); + + const MyToken2 = parser2.createToken( + () => ({}), + (props: { text: string }) =>
{props.text}
+ ); + + const rendered1 = children(() => ); + const rendered2 = children(() => ); + + expect((rendered1() as HTMLElement).outerHTML).toBe("
foo
"); + expect((rendered2() as HTMLElement).outerHTML).toBe("
bar
"); + }); + }); +}); diff --git a/packages/jsx-parser/test/server.test.tsx b/packages/jsx-parser/test/server.test.tsx new file mode 100644 index 000000000..d5ccb843a --- /dev/null +++ b/packages/jsx-parser/test/server.test.tsx @@ -0,0 +1,47 @@ +import { renderToString } from "solid-js/web"; +import { describe, expect, it } from "vitest"; +import { createJSXParser } from "../src"; + +describe("jsx-parser", () => { + const parser1 = createJSXParser<{ + type: "my-token"; + props: { text: string }; + }>(); + + const MyToken1 = parser1.createToken((props: { text: string }) => ({ + type: "my-token", + props + })); + + it("should work", () => { + const tokens = parser1.childrenTokens(() => ( + <> + + + + )); + + expect(tokens()).toHaveLength(2); + tokens().forEach(token => expect(token.type).toBe("my-token")); + expect(tokens()[0].props.text).toBe("foo"); + expect(tokens()[1].props.text).toBe("bar"); + + // shouldn't throw + <>{tokens()}; + }); + + it("should render tokens", () => { + const parser2 = createJSXParser(); + + const MyToken2 = parser2.createToken( + () => ({}), + (props: { text: string }) =>
{props.text}
+ ); + + const rendered1 = renderToString(() => ); + const rendered2 = renderToString(() => ); + + expect(rendered1).toBe("
foo
"); + expect(rendered2).toBe("
bar
"); + }); +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0be5e2106..9d6172c8f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -314,6 +314,12 @@ importers: devDependencies: '@solid-primitives/range': link:../range + packages/jsx-parser: + specifiers: + solid-js: ^1.6.0 + dependencies: + solid-js: 1.6.9 + packages/keyboard: specifiers: '@solid-primitives/event-listener': workspace:^2.2.5