Rename packages (#190)

To set under @waku npmjs organisation.
This commit is contained in:
Franck R 2022-01-14 22:44:41 +11:00 committed by GitHub
parent 0e14bd68d1
commit 7581693fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 183 additions and 180 deletions

View File

@ -7,7 +7,7 @@
"fix:prettier": "prettier \"./*.json\" --write",
"build": "wsrun -e -c -s build",
"test": "wsrun -e -c -s test",
"sc": "yarn workspace status-communities"
"sc": "yarn workspace @waku/status-communities"
},
"devDependencies": {
"npm-run-all": "^4.1.5",

View File

@ -1,5 +1,5 @@
{
"name": "@dappconnect/preview-proxy",
"name": "@waku/preview-proxy",
"version": "0.1.0",
"main": "index.js",
"license": "MIT",

View File

@ -1,5 +1,5 @@
{
"name": "@dappconnect/react-chat-example",
"name": "@waku/react-chat-sdk-example",
"main": "index.js",
"version": "0.1.0",
"repository": "https://github.com/status-im/dappconnect-chat-sdk/",
@ -18,7 +18,7 @@
"test:prettier": "prettier './{src,test}/**/*.{ts,tsx}' \"./*.json\" --list-different"
},
"dependencies": {
"@dappconnect/react-chat": "^0.1.0",
"@waku/react-chat-sdk": "^0.1.0",
"assert": "^2.0.0",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",

View File

@ -1,4 +1,4 @@
import { darkTheme, lightTheme, ReactChat } from "@dappconnect/react-chat";
import { darkTheme, lightTheme, ReactChat } from "@waku/react-chat-sdk";
import React, { useRef, useState } from "react";
import ReactDOM from "react-dom";
import styled from "styled-components";

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{
"name": "@dappconnect/react-chat",
"name": "@waku/react-chat-sdk",
"main": "dist/cjs/src/index.js",
"module": "dist/esm/src/index.js",
"types": "dist/esm/src/index.d.ts",
@ -48,13 +48,13 @@
"typescript": "^4.3.5"
},
"dependencies": {
"@waku/status-communities": "^0.1.0",
"emoji-mart": "^3.0.1",
"html-entities": "^2.3.2",
"js-sha3": "^0.8.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"status-communities": "^0.1.0",
"styled-components": "^5.3.1"
}
}

View File

@ -1,5 +1,5 @@
import { utils } from "@waku/status-communities/dist/cjs";
import React, { useMemo } from "react";
import { utils } from "status-communities/dist/cjs";
import styled from "styled-components";
import { useIdentity } from "../../contexts/identityProvider";

View File

@ -1,5 +1,5 @@
import { bufToHex } from "@waku/status-communities/dist/cjs/utils";
import React, { useCallback, useState } from "react";
import { bufToHex } from "status-communities/dist/cjs/utils";
import styled from "styled-components";
import { ChatState, useChatState } from "../../contexts/chatStateProvider";

View File

@ -1,6 +1,6 @@
import { utils } from "@waku/status-communities/dist/cjs";
import { decode } from "html-entities";
import React, { useEffect, useMemo, useState } from "react";
import { utils } from "status-communities/dist/cjs";
import styled from "styled-components";
import { useFetchMetadata } from "../../contexts/fetchMetadataProvider";

View File

@ -1,5 +1,5 @@
import { bufToHex } from "@waku/status-communities/dist/cjs/utils";
import React, { useMemo } from "react";
import { bufToHex } from "status-communities/dist/cjs/utils";
import styled from "styled-components";
import { useIdentity } from "../../contexts/identityProvider";

View File

@ -1,5 +1,5 @@
import { Identity } from "@waku/status-communities/dist/cjs";
import React, { useCallback, useEffect, useState } from "react";
import { Identity } from "status-communities/dist/cjs";
import styled from "styled-components";
import { useSetIdentity } from "../../contexts/identityProvider";

View File

@ -1,6 +1,6 @@
import { utils } from "@waku/status-communities/dist/cjs";
import { bufToHex } from "@waku/status-communities/dist/cjs/utils";
import React, { useMemo } from "react";
import { utils } from "status-communities/dist/cjs";
import { bufToHex } from "status-communities/dist/cjs/utils";
import styled from "styled-components";
import { useIdentity } from "../../contexts/identityProvider";

View File

@ -1,6 +1,6 @@
import { utils } from "@waku/status-communities/dist/cjs";
import { BaseEmoji } from "emoji-mart";
import React, { useEffect, useMemo, useState } from "react";
import { utils } from "status-communities/dist/cjs";
import styled from "styled-components";
import { useActivities } from "../../contexts/activityProvider";

View File

@ -1,5 +1,5 @@
import { utils } from "@waku/status-communities/dist/cjs";
import React from "react";
import { utils } from "status-communities/dist/cjs";
import styled from "styled-components";
import {

View File

@ -1,5 +1,5 @@
import { Identity, utils } from "@waku/status-communities/dist/cjs";
import React, { useEffect, useMemo, useState } from "react";
import { Identity, utils } from "status-communities/dist/cjs";
import styled from "styled-components";
import { useNickname, useSetIdentity } from "../../contexts/identityProvider";

View File

@ -1,5 +1,5 @@
import { bufToHex } from "@waku/status-communities/dist/cjs/utils";
import React, { useEffect, useMemo, useState } from "react";
import { bufToHex } from "status-communities/dist/cjs/utils";
import styled from "styled-components";
import { useActivities } from "../../contexts/activityProvider";

View File

@ -1,5 +1,5 @@
import { Identity } from "@waku/status-communities/dist/cjs";
import React, { useState } from "react";
import { Identity } from "status-communities/dist/cjs";
import styled from "styled-components";
import {

View File

@ -1,6 +1,6 @@
import { Identity } from "@waku/status-communities/dist/cjs";
import { genPrivateKeyWithEntropy } from "@waku/status-communities/dist/cjs/utils";
import React, { useCallback } from "react";
import { Identity } from "status-communities/dist/cjs";
import { genPrivateKeyWithEntropy } from "status-communities/dist/cjs/utils";
import styled from "styled-components";
import {

View File

@ -1,5 +1,5 @@
import { Identity } from "@waku/status-communities/dist/cjs";
import React, { createContext, useContext, useState } from "react";
import { Identity } from "status-communities/dist/cjs";
const IdentityContext = createContext<{
identity: Identity | undefined;

View File

@ -1,10 +1,10 @@
import { useEffect, useMemo, useState } from "react";
import {
Contacts as ContactsClass,
Identity,
Messenger,
} from "status-communities/dist/cjs";
import { bufToHex } from "status-communities/dist/cjs/utils";
} from "@waku/status-communities/dist/cjs";
import { bufToHex } from "@waku/status-communities/dist/cjs/utils";
import { useEffect, useMemo, useState } from "react";
import { Contacts } from "../../models/Contact";

View File

@ -1,11 +1,11 @@
import { useCallback, useMemo } from "react";
import {
GroupChat,
GroupChats,
Identity,
Messenger,
ChatMessage as StatusChatMessage,
} from "status-communities/dist/cjs";
} from "@waku/status-communities/dist/cjs";
import { useCallback, useMemo } from "react";
import { ChannelData, ChannelsData } from "../../models/ChannelData";
import { ChatMessage } from "../../models/ChatMessage";

View File

@ -1,5 +1,5 @@
import { GroupChats, Messenger } from "@waku/status-communities/dist/cjs";
import { useCallback, useEffect, useRef, useState } from "react";
import { GroupChats, Messenger } from "status-communities/dist/cjs";
const _MS_PER_DAY = 1000 * 60 * 60 * 24;

View File

@ -1,10 +1,10 @@
import { useCallback, useMemo, useState } from "react";
import {
ApplicationMetadataMessage,
Contacts,
Identity,
} from "status-communities/dist/cjs";
import { bufToHex } from "status-communities/dist/cjs/utils";
} from "@waku/status-communities/dist/cjs";
import { bufToHex } from "@waku/status-communities/dist/cjs/utils";
import { useCallback, useMemo, useState } from "react";
import { ChatMessage } from "../../models/ChatMessage";
import { binarySetInsert } from "../../utils";

View File

@ -1,12 +1,12 @@
// import { StoreCodec } from "js-waku";
import { useCallback, useEffect, useMemo, useState } from "react";
import {
ApplicationMetadataMessage,
Community,
Contacts as ContactsClass,
Identity,
Messenger,
} from "status-communities/dist/cjs";
} from "@waku/status-communities/dist/cjs";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useConfig } from "../../contexts/configProvider";
import { ChannelData, ChannelsData } from "../../models/ChannelData";

View File

@ -1,5 +1,8 @@
import {
ApplicationMetadataMessage,
utils,
} from "@waku/status-communities/dist/cjs";
import { keccak256 } from "js-sha3";
import { ApplicationMetadataMessage, utils } from "status-communities/dist/cjs";
import { uintToImgUrl } from "../utils";

View File

@ -1,5 +1,5 @@
import { Community, Messenger } from "status-communities/dist/cjs";
import { ApplicationMetadataMessage } from "status-communities/dist/cjs";
import { Community, Messenger } from "@waku/status-communities/dist/cjs";
import { ApplicationMetadataMessage } from "@waku/status-communities/dist/cjs";
export async function createCommunity(
communityKey: string,

View File

@ -1,5 +1,5 @@
import { Identity, Messenger } from "@waku/status-communities/dist/cjs";
import { getBootstrapNodes, StoreCodec } from "js-waku";
import { Identity, Messenger } from "status-communities/dist/cjs";
function createWakuOptions(env: string) {
let bootstrap: any = true;

View File

@ -1,5 +1,5 @@
import { Identity } from "@waku/status-communities/dist/cjs";
import { bufToHex, hexToBuf } from "js-waku/build/main/lib/utils";
import { Identity } from "status-communities/dist/cjs";
export async function saveIdentity(identity: Identity, password: string) {
const salt = window.crypto.getRandomValues(new Uint8Array(16));

View File

@ -1,5 +1,5 @@
{
"name": "status-communities",
"name": "@waku/status-communities",
"main": "dist/cjs/src/index.js",
"module": "dist/esm/src/index.js",
"types": "dist/esm/src/index.d.ts",

280
yarn.lock
View File

@ -209,107 +209,6 @@ __metadata:
languageName: node
linkType: hard
"@dappconnect/preview-proxy@workspace:packages/preview-proxy":
version: 0.0.0-use.local
resolution: "@dappconnect/preview-proxy@workspace:packages/preview-proxy"
dependencies:
node-fetch: ^2.6.0
languageName: unknown
linkType: soft
"@dappconnect/react-chat-example@workspace:packages/react-chat-example":
version: 0.0.0-use.local
resolution: "@dappconnect/react-chat-example@workspace:packages/react-chat-example"
dependencies:
"@dappconnect/react-chat": ^0.1.0
"@testing-library/react-hooks": ^7.0.1
"@types/chai": ^4.2.21
"@types/mocha": ^9.0.0
"@types/node": ^16.4.12
"@types/react": ^17.0.15
"@types/react-dom": ^17.0.9
"@types/react-router": ^5.1.16
"@types/react-router-dom": ^5.1.8
"@types/styled-components": ^5.1.12
"@typescript-eslint/eslint-plugin": ^4.29.0
"@typescript-eslint/parser": ^4.29.0
assert: ^2.0.0
browserify-zlib: ^0.2.0
buffer: ^6.0.3
chai: ^4.3.4
crypto-browserify: ^3.12.0
css-loader: ^6.3.0
esbuild-loader: ^2.15.1
eslint: ^7.32.0
eslint-plugin-hooks: ^0.2.0
eslint-plugin-react: ^7.24.0
file-loader: ^6.2.0
fork-ts-checker-webpack-plugin: ^6.3.1
html-webpack-plugin: ^5.3.2
https-browserify: ^1.0.0
jsdom: ^16.7.0
jsdom-global: ^3.0.2
mocha: ^9.0.3
npm-run-all: ^4.1.5
prettier: ^2.3.2
process: ^0.11.10
react: ^17.0.2
react-dom: ^17.0.2
react-router-dom: ^5.2.0
rimraf: ^3.0.2
source-map-loader: ^3.0.0
stream-browserify: ^3.0.0
stream-http: ^3.2.0
style-loader: ^3.3.0
styled-components: ^5.3.1
ts-loader: ^9.2.5
ts-node: ^10.1.0
typescript: ^4.3.5
webpack: ^5.48.0
webpack-cli: ^4.7.2
webpack-dev-server: ^3.11.2
languageName: unknown
linkType: soft
"@dappconnect/react-chat@^0.1.0, @dappconnect/react-chat@workspace:packages/react-chat":
version: 0.0.0-use.local
resolution: "@dappconnect/react-chat@workspace:packages/react-chat"
dependencies:
"@hcaptcha/react-hcaptcha": ^1.0.0
"@types/chai": ^4.2.21
"@types/emoji-mart": ^3.0.6
"@types/hcaptcha__react-hcaptcha": ^0.1.5
"@types/mocha": ^9.0.0
"@types/node": ^16.9.6
"@types/qrcode.react": ^1.0.2
"@types/react": ^17.0.16
"@types/styled-components": ^5.1.12
"@typescript-eslint/eslint-plugin": ^4.29.0
"@typescript-eslint/parser": ^4.29.0
chai: ^4.3.4
copyfiles: ^2.4.1
emoji-mart: ^3.0.1
eslint: ^7.32.0
html-entities: ^2.3.2
js-sha3: ^0.8.0
jsdom: ^16.7.0
jsdom-global: ^3.0.2
mocha: ^9.0.3
npm-run-all: ^4.1.5
npm-watch: ^0.11.0
prettier: ^2.3.2
qrcode.react: ^1.0.1
react: ^17.0.2
react-dom: ^17.0.2
react-is: ^17.0.2
rimraf: ^3.0.2
status-communities: ^0.1.0
styled-components: ^5.3.1
ts-node: ^10.1.0
typescript: ^4.3.5
languageName: unknown
linkType: soft
"@discoveryjs/json-ext@npm:^0.5.0":
version: 0.5.5
resolution: "@discoveryjs/json-ext@npm:0.5.5"
@ -1343,6 +1242,146 @@ __metadata:
languageName: node
linkType: hard
"@waku/preview-proxy@workspace:packages/preview-proxy":
version: 0.0.0-use.local
resolution: "@waku/preview-proxy@workspace:packages/preview-proxy"
dependencies:
node-fetch: ^2.6.0
languageName: unknown
linkType: soft
"@waku/react-chat-sdk-example@workspace:packages/react-chat-example":
version: 0.0.0-use.local
resolution: "@waku/react-chat-sdk-example@workspace:packages/react-chat-example"
dependencies:
"@testing-library/react-hooks": ^7.0.1
"@types/chai": ^4.2.21
"@types/mocha": ^9.0.0
"@types/node": ^16.4.12
"@types/react": ^17.0.15
"@types/react-dom": ^17.0.9
"@types/react-router": ^5.1.16
"@types/react-router-dom": ^5.1.8
"@types/styled-components": ^5.1.12
"@typescript-eslint/eslint-plugin": ^4.29.0
"@typescript-eslint/parser": ^4.29.0
"@waku/react-chat-sdk": ^0.1.0
assert: ^2.0.0
browserify-zlib: ^0.2.0
buffer: ^6.0.3
chai: ^4.3.4
crypto-browserify: ^3.12.0
css-loader: ^6.3.0
esbuild-loader: ^2.15.1
eslint: ^7.32.0
eslint-plugin-hooks: ^0.2.0
eslint-plugin-react: ^7.24.0
file-loader: ^6.2.0
fork-ts-checker-webpack-plugin: ^6.3.1
html-webpack-plugin: ^5.3.2
https-browserify: ^1.0.0
jsdom: ^16.7.0
jsdom-global: ^3.0.2
mocha: ^9.0.3
npm-run-all: ^4.1.5
prettier: ^2.3.2
process: ^0.11.10
react: ^17.0.2
react-dom: ^17.0.2
react-router-dom: ^5.2.0
rimraf: ^3.0.2
source-map-loader: ^3.0.0
stream-browserify: ^3.0.0
stream-http: ^3.2.0
style-loader: ^3.3.0
styled-components: ^5.3.1
ts-loader: ^9.2.5
ts-node: ^10.1.0
typescript: ^4.3.5
webpack: ^5.48.0
webpack-cli: ^4.7.2
webpack-dev-server: ^3.11.2
languageName: unknown
linkType: soft
"@waku/react-chat-sdk@^0.1.0, @waku/react-chat-sdk@workspace:packages/react-chat":
version: 0.0.0-use.local
resolution: "@waku/react-chat-sdk@workspace:packages/react-chat"
dependencies:
"@hcaptcha/react-hcaptcha": ^1.0.0
"@types/chai": ^4.2.21
"@types/emoji-mart": ^3.0.6
"@types/hcaptcha__react-hcaptcha": ^0.1.5
"@types/mocha": ^9.0.0
"@types/node": ^16.9.6
"@types/qrcode.react": ^1.0.2
"@types/react": ^17.0.16
"@types/styled-components": ^5.1.12
"@typescript-eslint/eslint-plugin": ^4.29.0
"@typescript-eslint/parser": ^4.29.0
"@waku/status-communities": ^0.1.0
chai: ^4.3.4
copyfiles: ^2.4.1
emoji-mart: ^3.0.1
eslint: ^7.32.0
html-entities: ^2.3.2
js-sha3: ^0.8.0
jsdom: ^16.7.0
jsdom-global: ^3.0.2
mocha: ^9.0.3
npm-run-all: ^4.1.5
npm-watch: ^0.11.0
prettier: ^2.3.2
qrcode.react: ^1.0.1
react: ^17.0.2
react-dom: ^17.0.2
react-is: ^17.0.2
rimraf: ^3.0.2
styled-components: ^5.3.1
ts-node: ^10.1.0
typescript: ^4.3.5
languageName: unknown
linkType: soft
"@waku/status-communities@^0.1.0, @waku/status-communities@workspace:packages/status-communities":
version: 0.0.0-use.local
resolution: "@waku/status-communities@workspace:packages/status-communities"
dependencies:
"@types/bn.js": ^5.1.0
"@types/chai": ^4.2.22
"@types/elliptic": ^6.4.14
"@types/mocha": ^9.0.0
"@types/pbkdf2": ^3.1.0
"@types/secp256k1": ^4.0.3
"@types/uuid": ^8.3.3
"@typescript-eslint/eslint-plugin": ^4.31.1
"@typescript-eslint/parser": ^4.31.1
bn.js: ^5.2.0
buffer: ^6.0.3
chai: ^4.3.4
ecies-geth: ^1.5.3
elliptic: ^6.5.4
eslint: ^7.32.0
eslint-config-prettier: ^8.3.0
eslint-import-resolver-node: ^0.3.6
eslint-plugin-eslint-comments: ^3.2.0
eslint-plugin-functional: ^3.7.0
eslint-plugin-import: ^2.24.2
js-sha3: ^0.8.0
js-waku: ^0.14.2
mocha: ^9.1.1
npm-run-all: ^4.1.5
pbkdf2: ^3.1.2
prettier: ^2.4.0
protobufjs: ^6.11.2
secp256k1: ^4.0.2
ts-node: ^10.2.1
ts-proto: ^1.83.0
typescript: ^4.4.3
uuid: ^8.3.2
languageName: unknown
linkType: soft
"@webassemblyjs/ast@npm:1.11.1":
version: 1.11.1
resolution: "@webassemblyjs/ast@npm:1.11.1"
@ -10586,45 +10625,6 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"status-communities@^0.1.0, status-communities@workspace:packages/status-communities":
version: 0.0.0-use.local
resolution: "status-communities@workspace:packages/status-communities"
dependencies:
"@types/bn.js": ^5.1.0
"@types/chai": ^4.2.22
"@types/elliptic": ^6.4.14
"@types/mocha": ^9.0.0
"@types/pbkdf2": ^3.1.0
"@types/secp256k1": ^4.0.3
"@types/uuid": ^8.3.3
"@typescript-eslint/eslint-plugin": ^4.31.1
"@typescript-eslint/parser": ^4.31.1
bn.js: ^5.2.0
buffer: ^6.0.3
chai: ^4.3.4
ecies-geth: ^1.5.3
elliptic: ^6.5.4
eslint: ^7.32.0
eslint-config-prettier: ^8.3.0
eslint-import-resolver-node: ^0.3.6
eslint-plugin-eslint-comments: ^3.2.0
eslint-plugin-functional: ^3.7.0
eslint-plugin-import: ^2.24.2
js-sha3: ^0.8.0
js-waku: ^0.14.2
mocha: ^9.1.1
npm-run-all: ^4.1.5
pbkdf2: ^3.1.2
prettier: ^2.4.0
protobufjs: ^6.11.2
secp256k1: ^4.0.2
ts-node: ^10.2.1
ts-proto: ^1.83.0
typescript: ^4.4.3
uuid: ^8.3.2
languageName: unknown
linkType: soft
"statuses@npm:>= 1.4.0 < 2, statuses@npm:>= 1.5.0 < 2, statuses@npm:~1.5.0":
version: 1.5.0
resolution: "statuses@npm:1.5.0"