소스 검색

Extract all components

Extract all components from showcase to their own packages.
pull/1/head
부모
커밋
5c688edb3b
36개의 변경된 파일848개의 추가작업 그리고 276개의 파일을 삭제
  1. +22
    -0
      categories/action/swift-ui/Package.swift
  2. +4
    -0
      categories/action/swift-ui/src/components/ActionButton/ActionButton.swift
  3. +5
    -1
      categories/multichoice/react/package.json
  4. +9
    -2
      categories/multichoice/react/pridepack.json
  5. +0
    -0
      packages/react-binary-data-canvas/src/components/BinaryDataCanvas/index.tsx
  6. +1
    -1
      packages/react-binary-data-canvas/src/index.ts
  7. +9
    -0
      packages/react-refractor/.eslintrc
  8. +107
    -0
      packages/react-refractor/.gitignore
  9. +7
    -0
      packages/react-refractor/LICENSE
  10. +85
    -0
      packages/react-refractor/package.json
  11. +7
    -0
      packages/react-refractor/pridepack.json
  12. +13
    -0
      packages/react-refractor/scripts/build.ts
  13. +6
    -6
      packages/react-refractor/src/components/Refractor/Refractor.css
  14. +6
    -7
      packages/react-refractor/src/components/Refractor/index.tsx
  15. +1
    -0
      packages/react-refractor/src/index.ts
  16. +5
    -0
      packages/react-refractor/src/react-refractor.d.ts
  17. +21
    -0
      packages/react-refractor/tsconfig.eslint.json
  18. +21
    -0
      packages/react-refractor/tsconfig.json
  19. +8
    -0
      packages/react-refractor/vitest.config.ts
  20. +9
    -0
      packages/react-wavesurfer/.eslintrc
  21. +107
    -0
      packages/react-wavesurfer/.gitignore
  22. +7
    -0
      packages/react-wavesurfer/LICENSE
  23. +85
    -0
      packages/react-wavesurfer/package.json
  24. +3
    -0
      packages/react-wavesurfer/pridepack.json
  25. +0
    -0
      packages/react-wavesurfer/src/components/SpectrogramCanvas/index.tsx
  26. +0
    -0
      packages/react-wavesurfer/src/components/WaveformCanvas/index.tsx
  27. +2
    -0
      packages/react-wavesurfer/src/index.ts
  28. +21
    -0
      packages/react-wavesurfer/tsconfig.eslint.json
  29. +21
    -0
      packages/react-wavesurfer/tsconfig.json
  30. +8
    -0
      packages/react-wavesurfer/vitest.config.ts
  31. +226
    -69
      pnpm-lock.yaml
  32. +20
    -29
      showcases/web-kitchensink-reactnext/package.json
  33. +0
    -2
      showcases/web-kitchensink-reactnext/src/packages/react-wavesurfer/index.ts
  34. +2
    -0
      showcases/web-kitchensink-reactnext/src/pages/_app.tsx
  35. +0
    -105
      showcases/web-kitchensink-reactnext/src/utils/blob.ts
  36. +0
    -54
      showcases/web-kitchensink-reactnext/src/utils/numeral.ts

+ 22
- 0
categories/action/swift-ui/Package.swift 파일 보기

@@ -0,0 +1,22 @@
import PackageDescription

let package = Package(
name: "Action",
platforms: [
.macOS(.v11),
.iOS(.v13)
],
products: [
.library(
name: "Action",
targets: ["Action"]),
],
dependencies: [],
targets: [
.target(
name: "Action",
dependencies: [],
path: "src",
),
]
)

+ 4
- 0
categories/action/swift-ui/src/components/ActionButton/ActionButton.swift 파일 보기

@@ -0,0 +1,4 @@
import SwiftUI

public struct ActionButton: View {
}

+ 5
- 1
categories/multichoice/react/package.json 파일 보기

@@ -76,7 +76,11 @@
"require": "./dist/cjs/production/index.js",
"import": "./dist/esm/production/index.js",
"types": "./dist/types/index.d.ts"
}
},
"./dist/TagInput.css": "./dist/TagInput.css",
"./dist/ToggleButton.css": "./dist/ToggleButton.css",
"./dist/ToggleSwitch.css": "./dist/ToggleSwitch.css",
"./dist/ToggleTickBox.css": "./dist/ToggleTickBox.css"
},
"typesVersions": {
"*": {}


+ 9
- 2
categories/multichoice/react/pridepack.json 파일 보기

@@ -1,3 +1,10 @@
{
"target": "es2018"
}
"target": "es2018",
"entryPoints": {
".": "src/index.ts",
"./dist/TagInput.css": "./dist/TagInput/TagInput.css",
"./dist/ToggleButton.css": "./dist/ToggleButton/ToggleButton.css",
"./dist/ToggleSwitch.css": "./dist/ToggleSwitch/ToggleSwitch.css",
"./dist/ToggleTickBox.css": "./dist/ToggleTickBox/ToggleTickBox.css"
}
}

packages/react-binary-data-canvas/src/BinaryDataCanvas.tsx → packages/react-binary-data-canvas/src/components/BinaryDataCanvas/index.tsx 파일 보기


+ 1
- 1
packages/react-binary-data-canvas/src/index.ts 파일 보기

@@ -1 +1 @@
export * from './BinaryDataCanvas';
export * from './components/BinaryDataCanvas';

+ 9
- 0
packages/react-refractor/.eslintrc 파일 보기

@@ -0,0 +1,9 @@
{
"root": true,
"extends": [
"lxsmnsyc/typescript/react"
],
"parserOptions": {
"project": "./tsconfig.eslint.json"
}
}

+ 107
- 0
packages/react-refractor/.gitignore 파일 보기

@@ -0,0 +1,107 @@
# 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

+ 7
- 0
packages/react-refractor/LICENSE 파일 보기

@@ -0,0 +1,7 @@
MIT License Copyright (c) 2023 TheoryOfNekomata <allan.crisostomo@outlook.com>

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.

+ 85
- 0
packages/react-refractor/package.json 파일 보기

@@ -0,0 +1,85 @@
{
"name": "@modal-sh/react-refractor",
"version": "0.0.0",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=12"
},
"license": "MIT",
"keywords": [
"pridepack"
],
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/node": "^18.14.1",
"@types/react": "^18.0.27",
"eslint": "^8.35.0",
"eslint-config-lxsmnsyc": "^0.5.0",
"jsdom": "^21.1.0",
"pridepack": "2.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"tslib": "^2.5.0",
"tsx": "^3.12.7",
"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 && tsx scripts/build.ts",
"type-check": "pridepack check",
"lint": "pridepack lint",
"clean": "pridepack clean",
"watch": "pridepack watch",
"start": "pridepack start",
"dev": "pridepack dev",
"test": "vitest"
},
"private": false,
"description": "Display code blocks.",
"repository": {
"url": "",
"type": "git"
},
"homepage": "",
"bugs": {
"url": ""
},
"author": "TheoryOfNekomata <allan.crisostomo@outlook.com>",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@tesseract-design/web-base": "workspace:*",
"clsx": "^1.2.1",
"react-refractor": "^2.1.7",
"refractor": "^4.8.1"
},
"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"
},
"./dist/Refractor.css": "./dist/Refractor.css"
},
"typesVersions": {
"*": {}
}
}

+ 7
- 0
packages/react-refractor/pridepack.json 파일 보기

@@ -0,0 +1,7 @@
{
"target": "es2018",
"entryPoints": {
".": "src/index.ts",
"./dist/Refractor.css": "./dist/Refractor.css"
}
}

+ 13
- 0
packages/react-refractor/scripts/build.ts 파일 보기

@@ -0,0 +1,13 @@
import { copyFileSync } from 'fs';
import { resolve } from 'path';

const doCopy = (src: string, dest: string) => {
const trueSrc = resolve(src);
const trueDest = resolve(dest);
console.log('Copying...');
console.log(`${trueSrc} -> ${trueDest}`);
copyFileSync(trueSrc, trueDest);
console.log('Done');
}

doCopy('./src/components/Refractor/Refractor.css', './dist/Refractor.css');

showcases/web-kitchensink-reactnext/src/packages/react-refractor/style.module.css → packages/react-refractor/src/components/Refractor/Refractor.css 파일 보기

@@ -5,32 +5,32 @@
line-height: 1.2;
}

.line-numbers {
.react-refractor .line-numbers {
text-align: right;
user-select: none;
}

.header {
.react-refractor .header {
display: flex;
align-items: center;
justify-content: space-between;
}

.language {
.react-refractor .language {
text-transform: uppercase;
font-size: 0.875em;
}

.content-wrapper {
.react-refractor .content-wrapper {
display: flex;
align-items: flex-start;
}

.code-wrapper {
.react-refractor .code-wrapper {
flex: auto;
}

.code-wrapper-scroll {
.react-refractor .code-wrapper-scroll {
overflow-x: auto;
overflow-y: hidden;
}

showcases/web-kitchensink-reactnext/src/packages/react-refractor/index.tsx → packages/react-refractor/src/components/Refractor/index.tsx 파일 보기

@@ -1,6 +1,5 @@
import * as React from 'react';
import RefractorCore from 'react-refractor/all';
import styles from './style.module.css';
import {Marker} from 'react-refractor';

export type RefractorDerivedElement = HTMLDivElement;
@@ -34,24 +33,24 @@ export const Refractor = React.forwardRef<RefractorDerivedElement, RefractorProp
return (
<div
{...etcProps}
className={`${styles['react-refractor']} ${className ?? ''}`.trim()}
className={`react-refractor ${className ?? ''}`.trim()}
style={style}
ref={forwardedRef}
>
{header && (
<div className={styles['header']}>
<div className={styles['language']}>
<div className={'header'}>
<div className={'language'}>
{language}
</div>
{actions}
</div>
)}
<div
className={styles['content-wrapper']}
className={'content-wrapper'}
>
{lineNumbers && (
<pre
className={styles['line-numbers']}
className={'line-numbers'}
>
<code>
{code.split('\n').map((_, i) => (
@@ -65,7 +64,7 @@ export const Refractor = React.forwardRef<RefractorDerivedElement, RefractorProp
</pre>
)}
<div
className={`${styles['code-wrapper']} ${scroll ? styles['code-wrapper-scroll'] : ''}`.trim()}
className={`code-wrapper ${scroll ? 'code-wrapper-scroll' : ''}`.trim()}
>
<RefractorCore
markers={markers}

+ 1
- 0
packages/react-refractor/src/index.ts 파일 보기

@@ -0,0 +1 @@
export * from './components/Refractor';

+ 5
- 0
packages/react-refractor/src/react-refractor.d.ts 파일 보기

@@ -0,0 +1,5 @@
declare module 'react-refractor/all' {
import { Props } from 'react-refractor';

export default function Refractor(props: Props): JSX.Element;
}

+ 21
- 0
packages/react-refractor/tsconfig.eslint.json 파일 보기

@@ -0,0 +1,21 @@
{
"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"
}
}

+ 21
- 0
packages/react-refractor/tsconfig.json 파일 보기

@@ -0,0 +1,21 @@
{
"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"
}
}

+ 8
- 0
packages/react-refractor/vitest.config.ts 파일 보기

@@ -0,0 +1,8 @@
/// <reference types="vitest" />

export default ({
test: {
global: true,
environment: 'jsdom',
},
});

+ 9
- 0
packages/react-wavesurfer/.eslintrc 파일 보기

@@ -0,0 +1,9 @@
{
"root": true,
"extends": [
"lxsmnsyc/typescript/react"
],
"parserOptions": {
"project": "./tsconfig.eslint.json"
}
}

+ 107
- 0
packages/react-wavesurfer/.gitignore 파일 보기

@@ -0,0 +1,107 @@
# 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

+ 7
- 0
packages/react-wavesurfer/LICENSE 파일 보기

@@ -0,0 +1,7 @@
MIT License Copyright (c) 2023 TheoryOfNekomata <allan.crisostomo@outlook.com>

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.

+ 85
- 0
packages/react-wavesurfer/package.json 파일 보기

@@ -0,0 +1,85 @@
{
"name": "@modal-sh/react-wavesurfer",
"version": "0.0.0",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=12"
},
"license": "MIT",
"keywords": [
"pridepack"
],
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/node": "^18.14.1",
"@types/react": "^18.0.27",
"eslint": "^8.35.0",
"eslint-config-lxsmnsyc": "^0.5.0",
"jsdom": "^21.1.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": "Use Wavesurfer in React.",
"repository": {
"url": "",
"type": "git"
},
"homepage": "",
"bugs": {
"url": ""
},
"author": "TheoryOfNekomata <allan.crisostomo@outlook.com>",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@tesseract-design/web-base": "workspace:*",
"@theoryofnekomata/formxtra": "^1.0.3",
"clsx": "^1.2.1",
"react-refractor": "^2.1.7",
"refractor": "^4.8.1",
"wavesurfer.js": "7.0.0-beta.15"
},
"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": {
"*": {}
}
}

+ 3
- 0
packages/react-wavesurfer/pridepack.json 파일 보기

@@ -0,0 +1,3 @@
{
"target": "es2018"
}

showcases/web-kitchensink-reactnext/src/packages/react-wavesurfer/SpectrogramCanvas/index.tsx → packages/react-wavesurfer/src/components/SpectrogramCanvas/index.tsx 파일 보기


showcases/web-kitchensink-reactnext/src/packages/react-wavesurfer/WaveformCanvas/index.tsx → packages/react-wavesurfer/src/components/WaveformCanvas/index.tsx 파일 보기


+ 2
- 0
packages/react-wavesurfer/src/index.ts 파일 보기

@@ -0,0 +1,2 @@
export * from './components/WaveformCanvas';
export * from './components/SpectrogramCanvas';

+ 21
- 0
packages/react-wavesurfer/tsconfig.eslint.json 파일 보기

@@ -0,0 +1,21 @@
{
"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"
}
}

+ 21
- 0
packages/react-wavesurfer/tsconfig.json 파일 보기

@@ -0,0 +1,21 @@
{
"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"
}
}

+ 8
- 0
packages/react-wavesurfer/vitest.config.ts 파일 보기

@@ -0,0 +1,8 @@
/// <reference types="vitest" />

export default ({
test: {
global: true,
environment: 'jsdom',
},
});

+ 226
- 69
pnpm-lock.yaml 파일 보기

@@ -745,6 +745,67 @@ importers:
specifier: ^0.28.1
version: 0.28.1(jsdom@21.1.0)

packages/react-refractor:
dependencies:
'@tesseract-design/web-base':
specifier: workspace:*
version: link:../../base
clsx:
specifier: ^1.2.1
version: 1.2.1
react-refractor:
specifier: ^2.1.7
version: 2.1.7(react@18.2.0)
refractor:
specifier: ^4.8.1
version: 4.8.1
devDependencies:
'@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.0.27
version: 18.2.14
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)
jsdom:
specifier: ^21.1.0
version: 21.1.0
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
tsx:
specifier: ^3.12.7
version: 3.12.7
typescript:
specifier: ^4.9.5
version: 4.9.5
vitest:
specifier: ^0.28.1
version: 0.28.1(jsdom@21.1.0)

packages/react-utils:
devDependencies:
'@testing-library/jest-dom':
@@ -790,6 +851,70 @@ importers:
specifier: ^0.28.1
version: 0.28.1(jsdom@21.1.0)

packages/react-wavesurfer:
dependencies:
'@tesseract-design/web-base':
specifier: workspace:*
version: link:../../base
'@theoryofnekomata/formxtra':
specifier: ^1.0.3
version: 1.0.3
clsx:
specifier: ^1.2.1
version: 1.2.1
react-refractor:
specifier: ^2.1.7
version: 2.1.7(react@18.2.0)
refractor:
specifier: ^4.8.1
version: 4.8.1
wavesurfer.js:
specifier: 7.0.0-beta.15
version: 7.0.0-beta.15
devDependencies:
'@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.0.27
version: 18.2.14
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)
jsdom:
specifier: ^21.1.0
version: 21.1.0
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(jsdom@21.1.0)

packages/text-utils:
dependencies:
languagedetect:
@@ -859,6 +984,9 @@ importers:
'@modal-sh/react-binary-data-canvas':
specifier: workspace:*
version: link:../../packages/react-binary-data-canvas
'@modal-sh/react-refractor':
specifier: workspace:*
version: link:../../packages/react-refractor
'@modal-sh/react-utils':
specifier: workspace:*
version: link:../../packages/react-utils
@@ -919,30 +1047,18 @@ importers:
clsx:
specifier: ^1.2.1
version: 1.2.1
colorthief:
specifier: ^2.4.0
version: 2.4.0
eslint:
specifier: 8.43.0
version: 8.43.0
eslint-config-next:
specifier: 13.4.7
version: 13.4.7(eslint@8.43.0)(typescript@5.1.3)
languagedetect:
specifier: ^2.0.0
version: 2.0.0
mime-types:
specifier: ^2.1.35
version: 2.1.35
next:
specifier: 13.4.7
version: 13.4.7(react-dom@18.2.0)(react@18.2.0)
postcss:
specifier: 8.4.24
version: 8.4.24
prismjs:
specifier: ^1.29.0
version: 1.29.0
react:
specifier: 18.2.0
version: 18.2.0
@@ -952,25 +1068,12 @@ importers:
react-refractor:
specifier: ^2.1.7
version: 2.1.7(react@18.2.0)
react-tag-input-component:
specifier: ^2.0.2
version: 2.0.2(react-dom@18.2.0)(react@18.2.0)
tailwindcss:
specifier: 3.3.2
version: 3.3.2
typescript:
specifier: 5.1.3
version: 5.1.3
wavesurfer.js:
specifier: 7.0.0-beta.11
version: 7.0.0-beta.11
devDependencies:
'@types/mime-types':
specifier: ^2.1.1
version: 2.1.1
'@types/prismjs':
specifier: ^1.26.0
version: 1.26.0

packages:

@@ -1851,7 +1954,6 @@ packages:

/@types/prismjs@1.26.0:
resolution: {integrity: sha512-ZTaqn/qSqUuAq1YwvOFQfVW1AR/oQJlLSZVustdjwI+GZ8kr0MSHBj0tsXPW1EqHubx50gtBEjbPGsdZwQwCjQ==}
dev: true

/@types/prop-types@15.7.5:
resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==}
@@ -1958,6 +2060,7 @@ packages:
typescript: 4.9.5
transitivePeerDependencies:
- supports-color
dev: true

/@typescript-eslint/parser@5.60.1(eslint@8.43.0)(typescript@5.1.3):
resolution: {integrity: sha512-pHWlc3alg2oSMGwsU/Is8hbm3XFbcrb6P5wIxcQW9NsYBfnrubl/GhVVD/Jm/t8HXhA2WncoIRfBtnCgRGV96Q==}
@@ -1977,7 +2080,6 @@ packages:
typescript: 5.1.3
transitivePeerDependencies:
- supports-color
dev: false

/@typescript-eslint/scope-manager@5.60.1:
resolution: {integrity: sha512-Dn/LnN7fEoRD+KspEOV0xDMynEmR3iSHdgNsarlXNLGGtcUok8L4N71dxUgt3YvlO8si7E+BJ5Fe3wb5yUw7DQ==}
@@ -2029,6 +2131,7 @@ packages:
typescript: 4.9.5
transitivePeerDependencies:
- supports-color
dev: true

/@typescript-eslint/typescript-estree@5.60.1(typescript@5.1.3):
resolution: {integrity: sha512-hkX70J9+2M2ZT6fhti5Q2FoU9zb+GeZK2SLP1WZlvUDqdMbEKhexZODD1WodNRyO8eS+4nScvT0dts8IdaBzfw==}
@@ -2049,7 +2152,6 @@ packages:
typescript: 5.1.3
transitivePeerDependencies:
- supports-color
dev: false

/@typescript-eslint/utils@5.60.1(eslint@8.43.0)(typescript@4.9.5):
resolution: {integrity: sha512-tiJ7FFdFQOWssFa3gqb94Ilexyw0JVxj6vBzaSpfN/8IhoKkDuSAenUKvsSHw2A/TMpJb26izIszTXaqygkvpQ==}
@@ -2491,14 +2593,26 @@ packages:
resolution: {integrity: sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==}
dev: false

/character-entities-legacy@3.0.0:
resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==}
dev: false

/character-entities@1.2.4:
resolution: {integrity: sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==}
dev: false

/character-entities@2.0.2:
resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==}
dev: false

/character-reference-invalid@1.1.4:
resolution: {integrity: sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==}
dev: false

/character-reference-invalid@2.0.1:
resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==}
dev: false

/check-error@1.0.2:
resolution: {integrity: sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==}
dev: true
@@ -2636,6 +2750,10 @@ packages:
resolution: {integrity: sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==}
dev: false

/comma-separated-tokens@2.0.3:
resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==}
dev: false

/commander@4.1.1:
resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
engines: {node: '>= 6'}
@@ -2780,6 +2898,12 @@ packages:
resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==}
dev: true

/decode-named-character-reference@1.0.2:
resolution: {integrity: sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==}
dependencies:
character-entities: 2.0.2
dev: false

/deep-eql@4.1.3:
resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==}
engines: {node: '>=6'}
@@ -3203,7 +3327,7 @@ packages:
eslint: 8.43.0
eslint-import-resolver-node: 0.3.7
eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.60.1)(eslint-import-resolver-node@0.3.7)(eslint-plugin-import@2.27.5)(eslint@8.43.0)
eslint-plugin-import: 2.27.5(eslint@8.43.0)
eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.60.1)(eslint-import-resolver-typescript@3.5.5)(eslint@8.43.0)
eslint-plugin-jsx-a11y: 6.7.1(eslint@8.43.0)
eslint-plugin-react: 7.32.2(eslint@8.43.0)
eslint-plugin-react-hooks: 4.6.0(eslint@8.43.0)
@@ -3288,7 +3412,7 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
'@typescript-eslint/parser': 5.60.1(eslint@8.43.0)(typescript@4.9.5)
'@typescript-eslint/parser': 5.60.1(eslint@8.43.0)(typescript@5.1.3)
debug: 3.2.7
eslint: 8.43.0
eslint-import-resolver-node: 0.3.7
@@ -3323,38 +3447,7 @@ packages:
'@typescript-eslint/parser':
optional: true
dependencies:
'@typescript-eslint/parser': 5.60.1(eslint@8.43.0)(typescript@4.9.5)
array-includes: 3.1.6
array.prototype.flat: 1.3.1
array.prototype.flatmap: 1.3.1
debug: 3.2.7
doctrine: 2.1.0
eslint: 8.43.0
eslint-import-resolver-node: 0.3.7
eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.60.1)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.43.0)
has: 1.0.3
is-core-module: 2.12.1
is-glob: 4.0.3
minimatch: 3.1.2
object.values: 1.1.6
resolve: 1.22.2
semver: 6.3.0
tsconfig-paths: 3.14.2
transitivePeerDependencies:
- eslint-import-resolver-typescript
- eslint-import-resolver-webpack
- supports-color

/eslint-plugin-import@2.27.5(eslint@8.43.0):
resolution: {integrity: sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==}
engines: {node: '>=4'}
peerDependencies:
'@typescript-eslint/parser': '*'
eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8
peerDependenciesMeta:
'@typescript-eslint/parser':
optional: true
dependencies:
'@typescript-eslint/parser': 5.60.1(eslint@8.43.0)(typescript@5.1.3)
array-includes: 3.1.6
array.prototype.flat: 1.3.1
array.prototype.flatmap: 1.3.1
@@ -3375,7 +3468,6 @@ packages:
- eslint-import-resolver-typescript
- eslint-import-resolver-webpack
- supports-color
dev: false

/eslint-plugin-jest@25.7.0(@typescript-eslint/eslint-plugin@5.60.1)(eslint@8.43.0)(typescript@4.9.5):
resolution: {integrity: sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==}
@@ -4003,6 +4095,12 @@ packages:
resolution: {integrity: sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==}
dev: false

/hast-util-parse-selector@3.1.1:
resolution: {integrity: sha512-jdlwBjEexy1oGz0aJ2f4GKMaVKkA9jwjr4MjAAI22E5fM/TXVZHuS5OpONtdeIkRKqAaryQ2E9xNQxijoThSZA==}
dependencies:
'@types/hast': 2.3.4
dev: false

/hastscript@6.0.0:
resolution: {integrity: sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==}
dependencies:
@@ -4013,6 +4111,16 @@ packages:
space-separated-tokens: 1.1.5
dev: false

/hastscript@7.2.0:
resolution: {integrity: sha512-TtYPq24IldU8iKoJQqvZOuhi5CyCQRAbvDOX0x1eW6rsHSxa/1i2CCiptNTotGHJ3VoHRGmqiv6/D3q113ikkw==}
dependencies:
'@types/hast': 2.3.4
comma-separated-tokens: 2.0.3
hast-util-parse-selector: 3.1.1
property-information: 6.2.0
space-separated-tokens: 2.0.2
dev: false

/html-encoding-sniffer@3.0.0:
resolution: {integrity: sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==}
engines: {node: '>=12'}
@@ -4137,6 +4245,10 @@ packages:
resolution: {integrity: sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==}
dev: false

/is-alphabetical@2.0.1:
resolution: {integrity: sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==}
dev: false

/is-alphanumerical@1.0.4:
resolution: {integrity: sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==}
dependencies:
@@ -4144,6 +4256,13 @@ packages:
is-decimal: 1.0.4
dev: false

/is-alphanumerical@2.0.1:
resolution: {integrity: sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==}
dependencies:
is-alphabetical: 2.0.1
is-decimal: 2.0.1
dev: false

/is-arguments@1.1.1:
resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==}
engines: {node: '>= 0.4'}
@@ -4201,6 +4320,10 @@ packages:
resolution: {integrity: sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==}
dev: false

/is-decimal@2.0.1:
resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==}
dev: false

/is-docker@2.2.1:
resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
engines: {node: '>=8'}
@@ -4235,6 +4358,10 @@ packages:
resolution: {integrity: sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==}
dev: false

/is-hexadecimal@2.0.1:
resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==}
dev: false

/is-inside-container@1.0.0:
resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==}
engines: {node: '>=14.16'}
@@ -5087,6 +5214,19 @@ packages:
is-hexadecimal: 1.0.4
dev: false

/parse-entities@4.0.1:
resolution: {integrity: sha512-SWzvYcSJh4d/SGLIOQfZ/CoNv6BTlI6YEQ7Nj82oDVnRpwe/Z/F1EMx42x3JAOwGBlCjeCH0BRJQbQ/opHL17w==}
dependencies:
'@types/unist': 2.0.6
character-entities: 2.0.2
character-entities-legacy: 3.0.0
character-reference-invalid: 2.0.1
decode-named-character-reference: 1.0.2
is-alphanumerical: 2.0.1
is-decimal: 2.0.1
is-hexadecimal: 2.0.1
dev: false

/parse-git-config@3.0.0:
resolution: {integrity: sha512-wXoQGL1D+2COYWCD35/xbiKma1Z15xvZL8cI25wvxzled58V51SJM04Urt/uznS900iQor7QO04SgdfT/XlbuA==}
engines: {node: '>=8'}
@@ -5331,6 +5471,10 @@ packages:
xtend: 4.0.2
dev: false

/property-information@6.2.0:
resolution: {integrity: sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg==}
dev: false

/psl@1.9.0:
resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==}

@@ -5467,6 +5611,15 @@ packages:
prismjs: 1.27.0
dev: false

/refractor@4.8.1:
resolution: {integrity: sha512-/fk5sI0iTgFYlmVGYVew90AoYnNMP6pooClx/XKqyeeCQXrL0Kvgn8V0VEht5ccdljbzzF1i3Q213gcntkRExg==}
dependencies:
'@types/hast': 2.3.4
'@types/prismjs': 1.26.0
hastscript: 7.2.0
parse-entities: 4.0.1
dev: false

/regenerator-runtime@0.13.11:
resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==}

@@ -5690,6 +5843,10 @@ packages:
resolution: {integrity: sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==}
dev: false

/space-separated-tokens@2.0.2:
resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
dev: false

/sshpk@1.17.0:
resolution: {integrity: sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==}
engines: {node: '>=0.10.0'}
@@ -6038,6 +6195,7 @@ packages:
dependencies:
tslib: 1.14.1
typescript: 4.9.5
dev: true

/tsutils@3.21.0(typescript@5.1.3):
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
@@ -6047,7 +6205,6 @@ packages:
dependencies:
tslib: 1.14.1
typescript: 5.1.3
dev: false

/tsx@3.12.7:
resolution: {integrity: sha512-C2Ip+jPmqKd1GWVQDvz/Eyc6QJbGfE7NrR3fx5BpEHMZsEHoIxHL1j+lKdGobr8ovEyqeNkPLSKp6SCSOt7gmw==}
@@ -6102,12 +6259,12 @@ packages:
resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true

/typescript@5.1.3:
resolution: {integrity: sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==}
engines: {node: '>=14.17'}
hasBin: true
dev: false

/ufo@1.1.2:
resolution: {integrity: sha512-TrY6DsjTQQgyS3E3dBaOXf0TpPD8u9FVrVYmKVegJuFw51n/YB9XPt+U6ydzFG5ZIN7+DIjPbNmXoBj9esYhgQ==}
@@ -6343,14 +6500,14 @@ packages:
graceful-fs: 4.2.11
dev: false

/wavesurfer.js@7.0.0-beta.11:
resolution: {integrity: sha512-PwcnEIcV3x8Zi0XMWFkzRy0NsJyTaFITIXByoQn/y6OqtJn9W5jzryTvt/mxv+FcKAWA7yGqkxRGX336D0iWTQ==}
dev: false

/wavesurfer.js@7.0.0-beta.12:
resolution: {integrity: sha512-iwrgX//IjVSplrTjW4pifX2sTAGtCRo875hemdg/2g4YMndagOwpAliNPiFs+4keTKmE7z8tEPHJP6kHJde3MA==}
dev: false

/wavesurfer.js@7.0.0-beta.15:
resolution: {integrity: sha512-VKoz4NaThCQLgPdyfZzOGBbWfQpUJ7Q344nMJY1RfKqc7QCk21f/UxE7/NGbDd6fXPEcIclYvbnj3R/Xia2lvg==}
dev: false

/wcwidth@1.0.1:
resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==}
dependencies:


+ 20
- 29
showcases/web-kitchensink-reactnext/package.json 파일 보기

@@ -1,5 +1,5 @@
{
"name": "web-kitchensink-reactnext",
"name": "@tesseract-design/web-kitchensink-reactnext",
"version": "0.1.0",
"private": true,
"scripts": {
@@ -9,47 +9,38 @@
"lint": "next lint"
},
"dependencies": {
"@modal-sh/audio-utils": "workspace:*",
"@modal-sh/image-utils": "workspace:*",
"@modal-sh/react-binary-data-canvas": "workspace:*",
"@modal-sh/react-refractor": "workspace:*",
"@modal-sh/react-utils": "workspace:*",
"@modal-sh/text-utils": "workspace:*",
"@modal-sh/video-utils": "workspace:*",
"@tesseract-design/web-action-react": "workspace:*",
"@tesseract-design/web-base": "workspace:*",
"@tesseract-design/web-blob-react": "workspace:*",
"@tesseract-design/web-choice-react": "workspace:*",
"@tesseract-design/web-color-react": "workspace:*",
"@tesseract-design/web-formatted-react": "workspace:*",
"@tesseract-design/web-freeform-react": "workspace:*",
"@tesseract-design/web-information-react": "workspace:*",
"@tesseract-design/web-multichoice-react": "workspace:*",
"@tesseract-design/web-navigation-react": "workspace:*",
"@tesseract-design/web-number-react": "workspace:*",
"@theoryofnekomata/formxtra": "^1.0.3",
"@types/node": "20.3.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"autoprefixer": "10.4.14",
"clsx": "^1.2.1",
"colorthief": "^2.4.0",
"eslint": "8.43.0",
"eslint-config-next": "13.4.7",
"languagedetect": "^2.0.0",
"mime-types": "^2.1.35",
"next": "13.4.7",
"postcss": "8.4.24",
"prismjs": "^1.29.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-refractor": "^2.1.7",
"react-tag-input-component": "^2.0.2",
"tailwindcss": "3.3.2",
"typescript": "5.1.3",
"wavesurfer.js": "7.0.0-beta.11",
"@modal-sh/audio-utils": "workspace:*",
"@modal-sh/image-utils": "workspace:*",
"@modal-sh/text-utils": "workspace:*",
"@modal-sh/video-utils": "workspace:*",
"@modal-sh/react-utils": "workspace:*",
"@modal-sh/react-binary-data-canvas": "workspace:*",
"@tesseract-design/web-base": "workspace:*",
"@tesseract-design/web-action-react": "workspace:*",
"@tesseract-design/web-blob-react": "workspace:*",
"@tesseract-design/web-color-react": "workspace:*",
"@tesseract-design/web-choice-react": "workspace:*",
"@tesseract-design/web-formatted-react": "workspace:*",
"@tesseract-design/web-freeform-react": "workspace:*",
"@tesseract-design/web-information-react": "workspace:*",
"@tesseract-design/web-multichoice-react": "workspace:*",
"@tesseract-design/web-navigation-react": "workspace:*",
"@tesseract-design/web-number-react": "workspace:*"
},
"devDependencies": {
"@types/mime-types": "^2.1.1",
"@types/prismjs": "^1.26.0"
"typescript": "5.1.3"
}
}

+ 0
- 2
showcases/web-kitchensink-reactnext/src/packages/react-wavesurfer/index.ts 파일 보기

@@ -1,2 +0,0 @@
export * from './WaveformCanvas';
export * from './SpectrogramCanvas';

+ 2
- 0
showcases/web-kitchensink-reactnext/src/pages/_app.tsx 파일 보기

@@ -12,6 +12,8 @@ import '@tesseract-design/web-multichoice-react/dist/ToggleTickBox.css'
import '@tesseract-design/web-number-react/dist/Slider.css'
import '@tesseract-design/web-number-react/dist/Spinner.css'

import '@modal-sh/react-refractor/dist/Refractor.css'

import type { AppProps } from 'next/app'
import Head from 'next/head';



+ 0
- 105
showcases/web-kitchensink-reactnext/src/utils/blob.ts 파일 보기

@@ -1,105 +0,0 @@
import {getTextMetadata, TextMetadata} from '@modal-sh/text-utils';
import {getMetadataFromUrl as getImageMetadataFromUrl, ImageMetadata} from '@modal-sh/image-utils';
import {getMetadataFromUrl as getAudioMetadataFromUrl, AudioMetadata} from '@modal-sh/audio-utils';
import {getMetadataFromUrl as getVideoMetadataFromUrl, VideoMetadata} from '@modal-sh/video-utils';

export const readAsDataURL = (blob: Partial<Blob>) => new Promise<string>((resolve, reject) => {
// TODO when to revoke these URLs
// return URL.createObjectURL(blob as Blob);

const reader = new FileReader();
reader.addEventListener('error', () => {
reject(new Error('Could not read file as data URL'));
});

reader.addEventListener('load', (e) => {
if (!e.target) {
reject();
return;
}
resolve(e.target.result as string);
});

reader.readAsDataURL(blob as Blob);
});

export interface FileWithDataUrl extends File {
url?: string;
}

export const addDataUrl = async (f: Partial<File>): Promise<Partial<FileWithDataUrl>> => {
(f as unknown as Record<string, unknown>).url = await readAsDataURL(f);
return f;
}

export interface FileWithResolvedContentType extends Partial<FileWithDataUrl> {
resolvedType: ContentType;
}

export interface TextFile extends FileWithResolvedContentType {
resolvedType: ContentType.TEXT;
metadata?: TextMetadata;
}

export const augmentTextFile = async <T extends Partial<FileWithDataUrl>>(file: T): Promise<TextFile> => {
const contents = typeof file?.text === 'function' ? await file.text() : '';
const fileMutable = file as unknown as Record<string, TextMetadata>;
fileMutable.metadata = await getTextMetadata(contents ?? '', file.name);
return fileMutable as unknown as TextFile;
};

export interface ImageFile extends FileWithResolvedContentType {
resolvedType: ContentType.IMAGE;
metadata?: ImageMetadata;
}

export const augmentImageFile = async <T extends Partial<FileWithDataUrl>>(file: T): Promise<ImageFile> => {
const fileMutable = file as unknown as Record<string, ImageMetadata>;
fileMutable.metadata = await getImageMetadataFromUrl(file.url);
return fileMutable as unknown as ImageFile;
};

export interface AudioFile extends FileWithResolvedContentType {
resolvedType: ContentType.AUDIO;
metadata?: AudioMetadata;
}

export const augmentAudioFile = async <T extends Partial<FileWithDataUrl>>(file: T): Promise<AudioFile> => {
const fileMutable = file as unknown as Record<string, AudioMetadata>;
if (file.type === 'audio/mid') {
fileMutable.metadata = {};
} else {
fileMutable.metadata = await getAudioMetadataFromUrl(file.url);
}
return fileMutable as unknown as AudioFile;
};

export interface BinaryFileMetadata {
contents: ArrayBuffer;
}

export interface BinaryFile extends FileWithResolvedContentType {
resolvedType: ContentType.BINARY;
metadata?: BinaryFileMetadata;
}

export const augmentBinaryFile = async <T extends Partial<FileWithDataUrl>>(file: T): Promise<BinaryFile> => {
const metadata = {} as BinaryFileMetadata;
if (typeof file?.arrayBuffer === 'function') {
metadata.contents = await file.arrayBuffer();
}
const fileMutable = file as unknown as Record<string, BinaryFileMetadata>;
fileMutable.metadata = metadata;
return fileMutable as unknown as BinaryFile;
};

export interface VideoFile extends FileWithResolvedContentType {
resolvedType: ContentType.VIDEO;
metadata?: VideoMetadata;
}

export const augmentVideoFile = async <T extends Partial<FileWithDataUrl>>(file: T): Promise<VideoFile> => {
const fileMutable = file as unknown as Record<string, AudioMetadata>;
fileMutable.metadata = await getVideoMetadataFromUrl(file.url);
return fileMutable as unknown as VideoFile;
};

+ 0
- 54
showcases/web-kitchensink-reactnext/src/utils/numeral.ts 파일 보기

@@ -1,54 +0,0 @@
export const formatNumeral = (n?: number) => {
if (typeof n !== 'number') {
return '';
}

if (!Number.isFinite(n)) {
return '';
}

return new Intl.NumberFormat().format(n);
}

export const formatFileSize = (size?: number) => {
if (typeof size !== 'number') {
return '';
}

if (!Number.isFinite(size)) {
return '';
}

if (size < (2 ** 10)) {
return `${formatNumeral(size)} byte(s)`;
}

if (size < (2 ** 20)) {
return `${(size / (2 ** 10)).toFixed(3)} kiB`;
}

if (size < (2 ** 30)) {
return `${(size / (2 ** 20)).toFixed(3)} MiB`;
}

if (size < (2 ** 40)) {
return `${(size / (2 ** 30)).toFixed(3)} GiB`;
}
};

export const formatSecondsDurationPrecise = (seconds: number) => {
const secondsInt = Math.floor(seconds);
const secondsFrac = seconds - secondsInt;
const hh = Math.floor(secondsInt / 3600).toString().padStart(2, '0');
const mm = Math.floor(secondsInt / 60 % 60).toString().padStart(2, '0');
const ss = (secondsInt % 60).toString().padStart(2, '0');
const sss = Math.floor(secondsFrac * 1000).toString().padStart(3, '0');
return `${hh}:${mm}:${ss}.${sss}`;
};

export const formatSecondsDurationConcise = (seconds: number) => {
const secondsInt = Math.floor(seconds);
const mm = Math.floor(secondsInt / 60).toString().padStart(2, '0');
const ss = (secondsInt % 60).toString().padStart(2, '0');
return `${mm}:${ss}`;
};

불러오는 중...
취소
저장