From 1198ce95a826f214ee4922b9dfb2d94264d3db04 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Mon, 6 May 2024 05:12:26 +0800 Subject: [PATCH] Update dependencies Extract react-utils to separate project, update imports. --- categories/web/blob/react/package.json | 2 +- categories/web/choice/react/package.json | 2 +- categories/web/formatted/react/package.json | 4 +- categories/web/freeform/react/package.json | 2 +- categories/web/multichoice/react/package.json | 2 +- categories/web/number/react/package.json | 2 +- categories/web/temporal/react/package.json | 2 +- package.json | 9 ++ packages/react-blob-previews/package.json | 5 +- packages/react-utils/.eslintrc | 9 -- packages/react-utils/.gitignore | 107 ------------------ packages/react-utils/LICENSE | 7 -- packages/react-utils/package.json | 77 ------------- packages/react-utils/pridepack.json | 3 - packages/react-utils/src/event.ts | 37 ------ packages/react-utils/src/hooks/browser.ts | 16 --- packages/react-utils/src/hooks/client-side.ts | 18 --- packages/react-utils/src/hooks/form.ts | 94 --------------- packages/react-utils/src/hooks/id.ts | 6 - packages/react-utils/src/index.ts | 4 - packages/react-utils/tsconfig.eslint.json | 21 ---- packages/react-utils/tsconfig.json | 21 ---- packages/react-utils/vitest.config.ts | 8 -- pnpm-lock.yaml | 97 ++++++---------- 24 files changed, 58 insertions(+), 497 deletions(-) create mode 100644 package.json delete mode 100644 packages/react-utils/.eslintrc delete mode 100644 packages/react-utils/.gitignore delete mode 100644 packages/react-utils/LICENSE delete mode 100644 packages/react-utils/package.json delete mode 100644 packages/react-utils/pridepack.json delete mode 100644 packages/react-utils/src/event.ts delete mode 100644 packages/react-utils/src/hooks/browser.ts delete mode 100644 packages/react-utils/src/hooks/client-side.ts delete mode 100644 packages/react-utils/src/hooks/form.ts delete mode 100644 packages/react-utils/src/hooks/id.ts delete mode 100644 packages/react-utils/src/index.ts delete mode 100644 packages/react-utils/tsconfig.eslint.json delete mode 100644 packages/react-utils/tsconfig.json delete mode 100644 packages/react-utils/vitest.config.ts diff --git a/categories/web/blob/react/package.json b/categories/web/blob/react/package.json index df5760d..6491e60 100644 --- a/categories/web/blob/react/package.json +++ b/categories/web/blob/react/package.json @@ -62,7 +62,7 @@ "access": "public" }, "dependencies": { - "@modal-sh/react-utils": "workspace:*", + "@modal-sh/react-utils": "0.0.0", "@tesseract-design/web-base": "workspace:*" }, "types": "./dist/types/index.d.ts", diff --git a/categories/web/choice/react/package.json b/categories/web/choice/react/package.json index 33e7f93..6367374 100644 --- a/categories/web/choice/react/package.json +++ b/categories/web/choice/react/package.json @@ -62,7 +62,7 @@ "access": "public" }, "dependencies": { - "@modal-sh/react-utils": "workspace:*", + "@modal-sh/react-utils": "0.0.0", "@tesseract-design/web-base": "workspace:*" }, "types": "./dist/types/index.d.ts", diff --git a/categories/web/formatted/react/package.json b/categories/web/formatted/react/package.json index 32618c1..917d533 100644 --- a/categories/web/formatted/react/package.json +++ b/categories/web/formatted/react/package.json @@ -62,9 +62,9 @@ "access": "public" }, "dependencies": { - "@modal-sh/react-utils": "workspace:*", + "@modal-sh/react-utils": "0.0.0", "@tesseract-design/web-base": "workspace:*", - "react-phone-number-input": "^3.3.0" + "react-phone-number-input": "3.3.0" }, "types": "./dist/types/index.d.ts", "main": "./dist/cjs/production/index.js", diff --git a/categories/web/freeform/react/package.json b/categories/web/freeform/react/package.json index a857666..83cfd38 100644 --- a/categories/web/freeform/react/package.json +++ b/categories/web/freeform/react/package.json @@ -62,7 +62,7 @@ "access": "public" }, "dependencies": { - "@modal-sh/react-utils": "workspace:*", + "@modal-sh/react-utils": "0.0.0", "@tesseract-design/web-base": "workspace:*" }, "types": "./dist/types/index.d.ts", diff --git a/categories/web/multichoice/react/package.json b/categories/web/multichoice/react/package.json index 32cc14e..f8c650a 100644 --- a/categories/web/multichoice/react/package.json +++ b/categories/web/multichoice/react/package.json @@ -62,7 +62,7 @@ "access": "public" }, "dependencies": { - "@modal-sh/react-utils": "workspace:*", + "@modal-sh/react-utils": "0.0.0", "@tesseract-design/web-base": "workspace:*" }, "types": "./dist/types/index.d.ts", diff --git a/categories/web/number/react/package.json b/categories/web/number/react/package.json index e8eb271..cb91190 100644 --- a/categories/web/number/react/package.json +++ b/categories/web/number/react/package.json @@ -62,7 +62,7 @@ "access": "public" }, "dependencies": { - "@modal-sh/react-utils": "workspace:*", + "@modal-sh/react-utils": "0.0.0", "@tesseract-design/web-base": "workspace:*" }, "types": "./dist/types/index.d.ts", diff --git a/categories/web/temporal/react/package.json b/categories/web/temporal/react/package.json index 00ed7be..ab1eb35 100644 --- a/categories/web/temporal/react/package.json +++ b/categories/web/temporal/react/package.json @@ -62,7 +62,7 @@ "access": "public" }, "dependencies": { - "@modal-sh/react-utils": "workspace:*", + "@modal-sh/react-utils": "0.0.0", "@tesseract-design/web-base": "workspace:*" }, "types": "./dist/types/index.d.ts", diff --git a/package.json b/package.json new file mode 100644 index 0000000..e2c6c0c --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "@tesseract-design/web", + "version": "1.0.0", + "pnpm": { + "overrides": { + "@modal-sh/react-utils": "file:../react-utils" + } + } +} diff --git a/packages/react-blob-previews/package.json b/packages/react-blob-previews/package.json index 86189e7..abe54de 100644 --- a/packages/react-blob-previews/package.json +++ b/packages/react-blob-previews/package.json @@ -1,5 +1,5 @@ { - "name": "@modal-sh/react-utils", + "name": "@modal-sh/react-blob-previews", "version": "0.0.0", "files": [ "dist", @@ -12,6 +12,9 @@ "keywords": [ "pridepack" ], + "dependencies": { + "@modal-sh/react-utils": "0.0.0" + }, "devDependencies": { "@storybook/react": "^7.3.2", "@testing-library/jest-dom": "^5.16.5", diff --git a/packages/react-utils/.eslintrc b/packages/react-utils/.eslintrc deleted file mode 100644 index 7d22244..0000000 --- a/packages/react-utils/.eslintrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "root": true, - "extends": [ - "lxsmnsyc/typescript/react" - ], - "parserOptions": { - "project": "./tsconfig.eslint.json" - } -} diff --git a/packages/react-utils/.gitignore b/packages/react-utils/.gitignore deleted file mode 100644 index 53992de..0000000 --- a/packages/react-utils/.gitignore +++ /dev/null @@ -1,107 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.production -.env.development - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Next.js build output -.next - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and *not* Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -.npmrc diff --git a/packages/react-utils/LICENSE b/packages/react-utils/LICENSE deleted file mode 100644 index f24dd21..0000000 --- a/packages/react-utils/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -MIT License Copyright (c) 2023 TheoryOfNekomata - -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 (including the next paragraph) 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/react-utils/package.json b/packages/react-utils/package.json deleted file mode 100644 index 86189e7..0000000 --- a/packages/react-utils/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@modal-sh/react-utils", - "version": "0.0.0", - "files": [ - "dist", - "src" - ], - "engines": { - "node": ">=12" - }, - "license": "MIT", - "keywords": [ - "pridepack" - ], - "devDependencies": { - "@storybook/react": "^7.3.2", - "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^13.4.0", - "@types/node": "^18.14.1", - "@types/react": "^18.2.18", - "eslint": "^8.35.0", - "eslint-config-lxsmnsyc": "^0.5.0", - "pridepack": "2.4.4", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-test-renderer": "^18.2.0", - "tslib": "^2.5.0", - "typescript": "^4.9.5", - "vitest": "^0.28.1" - }, - "peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" - }, - "scripts": { - "prepublishOnly": "pridepack clean && pridepack build", - "build": "pridepack build", - "type-check": "pridepack check", - "lint": "pridepack lint", - "clean": "pridepack clean", - "watch": "pridepack watch", - "start": "pridepack start", - "dev": "pridepack dev", - "test": "vitest" - }, - "private": false, - "description": "Utilities for React.", - "repository": { - "url": "", - "type": "git" - }, - "homepage": "", - "bugs": { - "url": "" - }, - "author": "TheoryOfNekomata ", - "publishConfig": { - "access": "public" - }, - "types": "./dist/types/index.d.ts", - "main": "./dist/cjs/production/index.js", - "module": "./dist/esm/production/index.js", - "exports": { - ".": { - "development": { - "require": "./dist/cjs/development/index.js", - "import": "./dist/esm/development/index.js" - }, - "require": "./dist/cjs/production/index.js", - "import": "./dist/esm/production/index.js", - "types": "./dist/types/index.d.ts" - } - }, - "typesVersions": { - "*": {} - } -} diff --git a/packages/react-utils/pridepack.json b/packages/react-utils/pridepack.json deleted file mode 100644 index 841fb58..0000000 --- a/packages/react-utils/pridepack.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "target": "es2018" -} \ No newline at end of file diff --git a/packages/react-utils/src/event.ts b/packages/react-utils/src/event.ts deleted file mode 100644 index a818c00..0000000 --- a/packages/react-utils/src/event.ts +++ /dev/null @@ -1,37 +0,0 @@ -export const delegateTriggerEvent = ( - eventName: string, - target: T, - value?: unknown, -) => { - if (typeof window === 'undefined') { - return; - } - - const TAG_NAME_ELEMENT_CONSTRUCTOR = { - 'INPUT': window.HTMLInputElement, - 'SELECT': window.HTMLSelectElement, - 'TEXTAREA': window.HTMLTextAreaElement, - } as const; - - const { - [target.tagName as keyof typeof TAG_NAME_ELEMENT_CONSTRUCTOR]: elementCtor, - } = TAG_NAME_ELEMENT_CONSTRUCTOR; - - if (!elementCtor) { - return; - } - - if (eventName === 'change') { - const nativeInputValueSetter = Object.getOwnPropertyDescriptor(elementCtor.prototype, 'value')?.set; - if (nativeInputValueSetter) { - if ( - (target.tagName === 'INPUT' && (target as unknown as HTMLInputElement).type !== 'file') - || target.tagName !== 'INPUT' - ) { - nativeInputValueSetter.call(target, value); - } - const simulatedEvent = new Event(eventName, {bubbles: true}); - target.dispatchEvent(simulatedEvent); - } - } -}; diff --git a/packages/react-utils/src/hooks/browser.ts b/packages/react-utils/src/hooks/browser.ts deleted file mode 100644 index b215b4a..0000000 --- a/packages/react-utils/src/hooks/browser.ts +++ /dev/null @@ -1,16 +0,0 @@ -import * as React from 'react'; - -export const useBrowser = () => { - const [browser, setBrowser] = React.useState(); - React.useEffect(() => { - const isFirefox = typeof (window as unknown as Record).InstallTrigger !== 'undefined'; - if (isFirefox) { - setBrowser('firefox'); - } else { - // TODO - detect other browsers - setBrowser('chrome'); - } - }, []); - - return React.useMemo(() => browser, [browser]); -}; diff --git a/packages/react-utils/src/hooks/client-side.ts b/packages/react-utils/src/hooks/client-side.ts deleted file mode 100644 index 77a8813..0000000 --- a/packages/react-utils/src/hooks/client-side.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as React from 'react'; - -export interface UseEnhancedOptions { - clientSide: boolean; - initial?: boolean; -} - -export const useClientSide = (options: UseEnhancedOptions) => { - const { clientSide: enhancedProp, initial = false } = options; - const [enhanced, setEnhanced] = React.useState(initial); - React.useEffect(() => { - setEnhanced(enhancedProp); - }, [enhancedProp]); - - return React.useMemo(() => ({ - clientSide: enhanced, - }), [enhanced]); -}; diff --git a/packages/react-utils/src/hooks/form.ts b/packages/react-utils/src/hooks/form.ts deleted file mode 100644 index 17cc3f5..0000000 --- a/packages/react-utils/src/hooks/form.ts +++ /dev/null @@ -1,94 +0,0 @@ -import * as React from 'react'; -import { delegateTriggerEvent } from '../event'; - -type ValueType = string | number | readonly string[]; - -interface HTMLElementWithValue extends HTMLElement { - value: ValueType; -} - -export interface UseProxyInputOptions< - ForwardedRef extends HTMLElementWithValue, - Value = ValueType, -> { - forwardedRef: React.Ref; - valueSetterFn: (value: Value) => void; - transformChangeHandlerArgs?: (value: Value) => ValueType; -} - -export const useProxyInput = < - TheValueType = ValueType, - ForwardedRefType extends HTMLElementWithValue = HTMLElementWithValue, - DefaultRefType extends HTMLElementWithValue = ForwardedRefType, ->(options: UseProxyInputOptions) => { - const { - forwardedRef, - valueSetterFn, - transformChangeHandlerArgs = (e) => e as ValueType, - } = options; - const defaultRef = React.useRef(null); - - React.useEffect(() => { - const { current: currentRaw } = defaultRef; - const current = currentRaw as unknown as ForwardedRefType; - const forwardedRefProxy = new Proxy(current, { - get(target, prop, receiver) { - return Reflect.get(target, prop, receiver) as unknown; - }, - set(target, prop, newValue, receiver) { - if (prop === 'value') { - const thisNewValue = newValue as TheValueType; - const actualNewValue = ( - Array.isArray(thisNewValue) ? thisNewValue.join('') : thisNewValue?.toString() ?? '' - ) as TheValueType; - valueSetterFn(actualNewValue); - current.value = actualNewValue as string; - return true; - } - return Reflect.set(target, prop, newValue, receiver); - }, - }) as unknown as ForwardedRefType; - - if (typeof forwardedRef === 'function') { - forwardedRef(forwardedRefProxy); - return; - } - - if (typeof forwardedRef === 'object' && forwardedRef) { - const mutableForwardedRef = forwardedRef as React.MutableRefObject; - mutableForwardedRef.current = forwardedRefProxy; - } - }); - - // todo Handle input event - - // do we need to expose this? or is defaultref enough? - // maybe we could attach the event listener to the defaultRef instead of exposing a handler (as - // long as target element exposes a ref) - - // why do we have to do all this? because we want to proxy event handlers to fallback elements. - // fallback elements ensure server-side compatibility--with this, we can serialize every value - // that can be inputted in every custom control. (see graceful degradation) - const handleChange = React.useCallback((e: TheValueType) => { - if (!(typeof defaultRef === 'object' && defaultRef)) { - return; - } - const { current: input } = defaultRef; - if (!input) { - return; - } - const transformedValue = transformChangeHandlerArgs(e); - valueSetterFn(e); - setTimeout(() => { - delegateTriggerEvent('change', input, transformedValue); - }); - }, [valueSetterFn, transformChangeHandlerArgs, defaultRef]); - - return React.useMemo(() => ({ - defaultRef, - handleChange, - }), [ - defaultRef, - handleChange, - ]); -}; diff --git a/packages/react-utils/src/hooks/id.ts b/packages/react-utils/src/hooks/id.ts deleted file mode 100644 index c006644..0000000 --- a/packages/react-utils/src/hooks/id.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as React from 'react'; - -export const useFallbackId = (id?: string) => { - const defaultId = React.useId(); - return id || defaultId; -}; diff --git a/packages/react-utils/src/index.ts b/packages/react-utils/src/index.ts deleted file mode 100644 index 46d8a33..0000000 --- a/packages/react-utils/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './hooks/browser'; -export * from './hooks/client-side'; -export * from './hooks/form'; -export * from './hooks/id'; diff --git a/packages/react-utils/tsconfig.eslint.json b/packages/react-utils/tsconfig.eslint.json deleted file mode 100644 index 16f2e87..0000000 --- a/packages/react-utils/tsconfig.eslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "exclude": ["node_modules"], - "include": ["src", "types", "test"], - "compilerOptions": { - "module": "ESNext", - "lib": ["DOM", "ESNext"], - "importHelpers": true, - "declaration": true, - "sourceMap": true, - "rootDir": "./", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "moduleResolution": "node", - "jsx": "react", - "esModuleInterop": true, - "target": "es2018" - } -} diff --git a/packages/react-utils/tsconfig.json b/packages/react-utils/tsconfig.json deleted file mode 100644 index 0ed68f4..0000000 --- a/packages/react-utils/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "exclude": ["node_modules"], - "include": ["src", "types"], - "compilerOptions": { - "module": "ESNext", - "lib": ["DOM", "ESNext"], - "importHelpers": true, - "declaration": true, - "sourceMap": true, - "rootDir": "./src", - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "moduleResolution": "node", - "jsx": "react", - "esModuleInterop": true, - "target": "es2018" - } -} diff --git a/packages/react-utils/vitest.config.ts b/packages/react-utils/vitest.config.ts deleted file mode 100644 index a104d21..0000000 --- a/packages/react-utils/vitest.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// - -export default ({ - test: { - global: true, - environment: 'jsdom', - }, -}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8937b30..06eddaa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,8 +4,13 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + '@modal-sh/react-utils': file:../react-utils + importers: + .: {} + base: dependencies: clsx: @@ -107,8 +112,8 @@ importers: categories/web/blob/react: dependencies: '@modal-sh/react-utils': - specifier: workspace:* - version: link:../../../../packages/react-utils + specifier: file:/Users/theoryofnekomata/Projects/react-utils + version: file:../react-utils(react-dom@18.2.0)(react@18.2.0) '@tesseract-design/web-base': specifier: workspace:* version: link:../../../../base @@ -171,8 +176,8 @@ importers: categories/web/choice/react: dependencies: '@modal-sh/react-utils': - specifier: workspace:* - version: link:../../../../packages/react-utils + specifier: file:/Users/theoryofnekomata/Projects/react-utils + version: file:../react-utils(react-dom@18.2.0)(react@18.2.0) '@tesseract-design/web-base': specifier: workspace:* version: link:../../../../base @@ -308,13 +313,13 @@ importers: categories/web/formatted/react: dependencies: '@modal-sh/react-utils': - specifier: workspace:* - version: link:../../../../packages/react-utils + specifier: file:/Users/theoryofnekomata/Projects/react-utils + version: file:../react-utils(react-dom@18.2.0)(react@18.2.0) '@tesseract-design/web-base': specifier: workspace:* version: link:../../../../base react-phone-number-input: - specifier: ^3.3.0 + specifier: 3.3.0 version: 3.3.0(react-dom@18.2.0)(react@18.2.0) devDependencies: '@storybook/react': @@ -375,8 +380,8 @@ importers: categories/web/freeform/react: dependencies: '@modal-sh/react-utils': - specifier: workspace:* - version: link:../../../../packages/react-utils + specifier: file:/Users/theoryofnekomata/Projects/react-utils + version: file:../react-utils(react-dom@18.2.0)(react@18.2.0) '@tesseract-design/web-base': specifier: workspace:* version: link:../../../../base @@ -500,8 +505,8 @@ importers: categories/web/multichoice/react: dependencies: '@modal-sh/react-utils': - specifier: workspace:* - version: link:../../../../packages/react-utils + specifier: file:/Users/theoryofnekomata/Projects/react-utils + version: file:../react-utils(react-dom@18.2.0)(react@18.2.0) '@tesseract-design/web-base': specifier: workspace:* version: link:../../../../base @@ -625,8 +630,8 @@ importers: categories/web/number/react: dependencies: '@modal-sh/react-utils': - specifier: workspace:* - version: link:../../../../packages/react-utils + specifier: file:/Users/theoryofnekomata/Projects/react-utils + version: file:../react-utils(react-dom@18.2.0)(react@18.2.0) '@tesseract-design/web-base': specifier: workspace:* version: link:../../../../base @@ -689,8 +694,8 @@ importers: categories/web/temporal/react: dependencies: '@modal-sh/react-utils': - specifier: workspace:* - version: link:../../../../packages/react-utils + specifier: file:/Users/theoryofnekomata/Projects/react-utils + version: file:../react-utils(react-dom@18.2.0)(react@18.2.0) '@tesseract-design/web-base': specifier: workspace:* version: link:../../../../base @@ -953,6 +958,10 @@ importers: version: 0.28.1 packages/react-blob-previews: + dependencies: + '@modal-sh/react-utils': + specifier: file:/Users/theoryofnekomata/Projects/react-utils + version: file:../react-utils(react-dom@18.2.0)(react@18.2.0) devDependencies: '@storybook/react': specifier: ^7.3.2 @@ -1058,51 +1067,6 @@ importers: specifier: ^0.28.1 version: 0.28.1 - packages/react-utils: - devDependencies: - '@storybook/react': - specifier: ^7.3.2 - version: 7.4.0(react-dom@18.2.0)(react@18.2.0)(typescript@4.9.5) - '@testing-library/jest-dom': - specifier: ^5.16.5 - version: 5.16.5 - '@testing-library/react': - specifier: ^13.4.0 - version: 13.4.0(react-dom@18.2.0)(react@18.2.0) - '@types/node': - specifier: ^18.14.1 - version: 18.14.1 - '@types/react': - specifier: ^18.2.18 - version: 18.2.18 - eslint: - specifier: ^8.35.0 - version: 8.43.0 - eslint-config-lxsmnsyc: - specifier: ^0.5.0 - version: 0.5.0(eslint@8.43.0)(typescript@4.9.5) - pridepack: - specifier: 2.4.4 - version: 2.4.4(eslint@8.43.0)(tslib@2.6.0)(typescript@4.9.5) - react: - specifier: ^18.2.0 - version: 18.2.0 - react-dom: - specifier: ^18.2.0 - version: 18.2.0(react@18.2.0) - react-test-renderer: - specifier: ^18.2.0 - version: 18.2.0(react@18.2.0) - tslib: - specifier: ^2.5.0 - version: 2.6.0 - typescript: - specifier: ^4.9.5 - version: 4.9.5 - vitest: - specifier: ^0.28.1 - version: 0.28.1 - packages/react-wavesurfer: dependencies: '@tesseract-design/web-base': @@ -9395,3 +9359,16 @@ packages: resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} engines: {node: '>=12.20'} dev: true + + file:../react-utils(react-dom@18.2.0)(react@18.2.0): + resolution: {directory: ../react-utils, type: directory} + id: file:../react-utils + name: '@modal-sh/react-utils' + engines: {node: '>=12'} + peerDependencies: + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + dependencies: + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + dev: false