Skip to content

Commit

Permalink
Rename all packages to @storacha/*
Browse files Browse the repository at this point in the history
  • Loading branch information
Peeja committed Feb 12, 2025
1 parent ea0bdfa commit 1799124
Show file tree
Hide file tree
Showing 30 changed files with 91 additions and 138 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "w3up",
"name": "storacha",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@10.1.0+sha512.c89847b0667ddab50396bbbd008a2a43cf3b581efd59cf5d9aa8923ea1fb4b8106c041d540d08acb095037594d73ebc51e1ec89ee40c88b30b8a66c0fae0ac1b",
Expand Down
43 changes: 0 additions & 43 deletions packages/w3ui/eslint.packages.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/w3ui/examples/react/components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Reusable components for react examples
## Install

```sh
npm install @w3ui/react
npm install @storacha/ui-react
```

## Usage
Expand Down
8 changes: 4 additions & 4 deletions packages/w3ui/examples/react/components/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@w3ui/example-react-components",
"name": "@storacha/ui-example-react-components",
"version": "1.2.0",
"description": "Components for React examples",
"type": "module",
Expand All @@ -9,8 +9,8 @@
"scripts": {
"build": "bunchee",
"clean": "rm -rf dist *.tsbuildinfo",
"lint": "echo 'Linting in @w3ui/example-react-components is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @w3ui/example-react-components is temporarily disabled while we resolve version issues.'"
"lint": "echo 'Linting in @storacha/ui-example-react-components is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @storacha/ui-example-react-components is temporarily disabled while we resolve version issues.'"
},
"files": [
"dist",
Expand All @@ -24,7 +24,7 @@
"license": "Apache-2.0 OR MIT",
"dependencies": {
"@heroicons/react": "catalog:",
"@w3ui/react": "workspace:^",
"@storacha/ui-react": "workspace:^",
"react": "catalog:"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactNode } from 'react'
import { Authenticator, useAuthenticator } from '@w3ui/react'
import { Authenticator, useAuthenticator } from '@storacha/ui-react'
import { Loader } from './Loader.js'

export function AuthenticationForm(): ReactNode {
Expand Down
2 changes: 1 addition & 1 deletion packages/w3ui/examples/react/components/src/Loader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactNode } from 'react'
import { ArrowPathIcon } from '@heroicons/react/20/solid'
import { ProgressStatus, UploadProgress } from '@w3ui/react'
import { ProgressStatus, UploadProgress } from '@storacha/ui-react'

function StatusLoader({
progressStatus,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useW3 } from '@w3ui/react'
import { useW3 } from '@storacha/ui-react'
import { useEffect, ReactNode } from 'react'
import { Loader } from './Loader.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/w3ui/examples/react/components/src/Uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
CARMetadata,
UploadProgress,
AnyLink,
} from '@w3ui/react'
} from '@storacha/ui-react'
import { UploadLoader } from './Loader.js'

function humanFileSize(bytes: number): string {
Expand Down
6 changes: 3 additions & 3 deletions packages/w3ui/examples/react/file-upload/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@w3ui/example-react-file-upload",
"name": "@storacha/ui-example-react-file-upload",
"private": true,
"version": "0.0.0",
"type": "module",
Expand All @@ -13,8 +13,8 @@
},
"dependencies": {
"@heroicons/react": "catalog:",
"@w3ui/example-react-components": "workspace:^",
"@w3ui/react": "workspace:^",
"@storacha/ui-example-react-components": "workspace:^",
"@storacha/ui-react": "workspace:^",
"react": "catalog:",
"react-dom": "catalog:"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/w3ui/examples/react/file-upload/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Authenticator, Provider, Uploader } from '@w3ui/react'
import { Authenticator, Provider, Uploader } from '@storacha/ui-react'
import {
AuthenticationEnsurer,
SpaceEnsurer,
UploaderForm,
} from '@w3ui/example-react-components'
} from '@storacha/ui-example-react-components'

function App() {
return (
Expand Down
10 changes: 5 additions & 5 deletions packages/w3ui/examples/react/multi-file-upload/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@w3ui/example-react-multi-file-upload",
"name": "@storacha/ui-example-react-multi-file-upload",
"private": true,
"version": "0.0.0",
"type": "module",
Expand All @@ -8,13 +8,13 @@
"build": "vite build",
"start": "vite preview",
"clean": "rm -rf dist *.tsbuildinfo",
"lint": "echo 'Linting in @w3ui/example-react-multi-file-upload is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @w3ui/example-react-multi-file-upload is temporarily disabled while we resolve version issues.'"
"lint": "echo 'Linting in @storacha/ui-example-react-multi-file-upload is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @storacha/ui-example-react-multi-file-upload is temporarily disabled while we resolve version issues.'"
},
"dependencies": {
"@heroicons/react": "catalog:",
"@w3ui/example-react-components": "workspace:^",
"@w3ui/react": "workspace:^",
"@storacha/ui-example-react-components": "workspace:^",
"@storacha/ui-react": "workspace:^",
"react": "catalog:",
"react-dom": "catalog:"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/w3ui/examples/react/multi-file-upload/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {
Uploader,
WrapInDirectoryCheckbox,
useUploader,
} from '@w3ui/react'
} from '@storacha/ui-react'
import {
AuthenticationEnsurer,
SpaceEnsurer,
UploaderForm,
} from '@w3ui/example-react-components'
} from '@storacha/ui-example-react-components'
import { useState } from 'react'

function Options({
Expand Down
6 changes: 3 additions & 3 deletions packages/w3ui/examples/react/sign-up-in/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@w3ui/example-react-sign-up-in",
"name": "@storacha/ui-example-react-sign-up-in",
"private": true,
"version": "0.0.0",
"type": "module",
Expand All @@ -13,8 +13,8 @@
},
"dependencies": {
"@heroicons/react": "catalog:",
"@w3ui/example-react-components": "workspace:^",
"@w3ui/react": "workspace:^",
"@storacha/ui-example-react-components": "workspace:^",
"@storacha/ui-react": "workspace:^",
"react": "catalog:",
"react-dom": "catalog:"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/w3ui/examples/react/sign-up-in/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Authenticator, Provider, useW3 } from '@w3ui/react'
import { AuthenticationEnsurer } from '@w3ui/example-react-components'
import { Authenticator, Provider, useW3 } from '@storacha/ui-react'
import { AuthenticationEnsurer } from '@storacha/ui-example-react-components'

function Identity() {
const [{ client, accounts }] = useW3()
Expand Down
10 changes: 5 additions & 5 deletions packages/w3ui/examples/react/uploads-list/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@w3ui/example-react-uploads-list",
"name": "@storacha/ui-example-react-uploads-list",
"private": true,
"version": "0.0.0",
"type": "module",
Expand All @@ -8,13 +8,13 @@
"build": "vite build",
"start": "vite preview",
"clean": "rm -rf dist *.tsbuildinfo",
"lint": "echo 'Linting in @w3ui/example-react-uploads-list is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @w3ui/example-react-uploads-list is temporarily disabled while we resolve version issues.'"
"lint": "echo 'Linting in @storacha/ui-example-react-uploads-list is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @storacha/ui-example-react-uploads-list is temporarily disabled while we resolve version issues.'"
},
"dependencies": {
"@heroicons/react": "catalog:",
"@w3ui/example-react-components": "workspace:^",
"@w3ui/react": "workspace:^",
"@storacha/ui-example-react-components": "workspace:^",
"@storacha/ui-react": "workspace:^",
"react": "catalog:",
"react-dom": "catalog:",
"swr": "catalog:"
Expand Down
4 changes: 2 additions & 2 deletions packages/w3ui/examples/react/uploads-list/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import {
Uploader,
useW3,
UploadListSuccess,
} from '@w3ui/react'
} from '@storacha/ui-react'
import {
AuthenticationEnsurer,
Loader,
SpaceEnsurer,
UploaderForm,
} from '@w3ui/example-react-components'
} from '@storacha/ui-example-react-components'
import useSWR from 'swr'

interface PageProps {
Expand Down
12 changes: 6 additions & 6 deletions packages/w3ui/examples/test/playwright/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@w3ui/example-test-playwright",
"name": "@storacha/ui-example-test-playwright",
"private": true,
"version": "1.0.0",
"type": "module",
Expand All @@ -16,10 +16,10 @@
"serve": "catalog:"
},
"dependencies": {
"@w3ui/example-react-components": "workspace:^",
"@w3ui/example-react-file-upload": "workspace:^",
"@w3ui/example-react-multi-file-upload": "workspace:^",
"@w3ui/example-react-sign-up-in": "workspace:^",
"@w3ui/example-react-uploads-list": "workspace:^"
"@storacha/ui-example-react-components": "workspace:^",
"@storacha/ui-example-react-file-upload": "workspace:^",
"@storacha/ui-example-react-multi-file-upload": "workspace:^",
"@storacha/ui-example-react-sign-up-in": "workspace:^",
"@storacha/ui-example-react-uploads-list": "workspace:^"
}
}
8 changes: 0 additions & 8 deletions packages/w3ui/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions packages/w3ui/packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ W3UI core - utilities useful in any UI framework.
## Install

```sh
npm install @w3ui/core
```
npm install @storacha/ui-core
```

## Usage

Expand Down
9 changes: 5 additions & 4 deletions packages/w3ui/packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@w3ui/core",
"name": "@storacha/ui-core",
"version": "2.4.3",
"description": "w3ui core.",
"type": "module",
Expand All @@ -10,8 +10,8 @@
"dev": "bunchee --watch",
"build": "bunchee",
"clean": "rm -rf dist *.tsbuildinfo",
"lint": "echo 'Linting in @w3ui/core is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @w3ui/core is temporarily disabled while we resolve version issues.'",
"lint": "echo 'Linting in @storacha/ui-core is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @storacha/ui-core is temporarily disabled while we resolve version issues.'",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand Down Expand Up @@ -41,14 +41,15 @@
},
"eslintConfig": {
"extends": [
"../../eslint.packages.js"
"@storacha/ui-eslint-config"
]
},
"eslintIgnore": [
"node_modules",
"dist"
],
"devDependencies": {
"@storacha/ui-eslint-config": "workspace:^",
"bunchee": "catalog:",
"fake-indexeddb": "catalog:",
"happy-dom": "catalog:",
Expand Down
3 changes: 0 additions & 3 deletions packages/w3ui/packages/react/.force-a-release

This file was deleted.

2 changes: 1 addition & 1 deletion packages/w3ui/packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ React adapter for W3UI.
## Install

```sh
npm install @w3ui/react
npm install @storacha/ui-react
```

## Usage
Expand Down
10 changes: 5 additions & 5 deletions packages/w3ui/packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@w3ui/react",
"name": "@storacha/ui-react",
"version": "2.5.5",
"description": "React adapter for w3ui.",
"type": "module",
Expand All @@ -8,8 +8,8 @@
"scripts": {
"dev": "bunchee --watch",
"clean": "rm -rf dist *.tsbuildinfo",
"lint": "echo 'Linting in @w3ui/react is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @w3ui/react is temporarily disabled while we resolve version issues.'",
"lint": "echo 'Linting in @storacha/ui-react is temporarily disabled while we resolve version issues.'",
"lint:fix": "echo 'Linting in @storacha/ui-react is temporarily disabled while we resolve version issues.'",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand All @@ -30,7 +30,7 @@
"dependencies": {
"@ariakit/react": "catalog:",
"@ariakit/react-core": "catalog:",
"@w3ui/core": "workspace:^",
"@storacha/ui-core": "workspace:^",
"ariakit-react-utils": "catalog:"
},
"devDependencies": {
Expand All @@ -57,7 +57,7 @@
},
"eslintConfig": {
"extends": [
"../../eslint.packages.js",
"@storacha/ui-eslint-config",
"plugin:react-hooks/recommended"
]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/w3ui/packages/react/src/Uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
HTMLProps,
} from 'ariakit-react-utils'
import type { ChangeEvent, FormEventHandler } from 'react'
import type { AnyLink, CARMetadata, ProgressStatus } from '@w3ui/core'
import type { AnyLink, CARMetadata, ProgressStatus } from '@storacha/ui-core'

import React, {
useContext,
Expand Down
Loading

0 comments on commit 1799124

Please sign in to comment.