Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 84a4f91

Browse files
authored
Merge pull request #45 from pubnub/develop
release: v0.10.0
2 parents 1989b92 + 3e70320 commit 84a4f91

27 files changed

+21866
-34
lines changed

.pubnub.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,23 @@ files:
77
- lib/dist/index.js
88
- lib/dist/index.es.js
99
changelog:
10-
- date: 2022-05-17
10+
- date: 2022-05-18
1111
version: v0.10.0
1212
changes:
1313
- type: bug
1414
text: "MessageInput - user metadata not attached to File messages with senderInfo option enabled."
1515
- type: bug
1616
text: "Channel/MemberList - disable default flex shrinking of some UI elements (e.g. avatars)."
17+
- date: 2022-05-18
18+
version: v0.10.0
19+
changes:
20+
- type: fix
21+
text:
22+
"MessageInput - user metadata not attached to File messages with senderInfo option
23+
enabled."
24+
- type: fix
25+
text:
26+
"Channel/MemberList - disable default flex shrinking of some UI elements (e.g. avatars)."
1727
- changes:
1828
- text: Channel/MemberList - added option for custom sorting
1929
type: feature

lib/docs/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { PubNubProvider } from "pubnub-react";
33

44
import { Chat } from "../src";
55
import { PubNubMock } from "../mock/pubnub-mock";
6-
import { users } from "@pubnub/react-chat-data";
6+
import users from "../../data/users/users.json";
77

88
const pubnub = new PubNubMock();
99

lib/docs/stories/components/ChannelList.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { Story, Meta } from "@storybook/react";
33
import { ChannelList, ChannelListProps } from "../../../src";
4-
import { workChannels as channels } from "@pubnub/react-chat-data";
4+
import channels from "../../../../data/channels/work.json";
55

66
export default {
77
title: "Components/Channel List",

lib/docs/stories/components/MemberList.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { Story, Meta } from "@storybook/react";
33
import { MemberList, MemberListProps } from "../../../src";
4-
import { users } from "@pubnub/react-chat-data";
4+
import users from "../../../../data/users/users.json";
55

66
export default {
77
title: "Components/Member List",

lib/mock/pubnub-mock.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ import type {
88
SignalResponse,
99
SendFileResponse,
1010
} from "pubnub";
11-
import {
12-
users,
13-
loremMessages as messages,
14-
workChannels as channels,
15-
} from "@pubnub/react-chat-data";
11+
import users from "../../data/users/users.json";
12+
import messages from "../../data/messages/lorem.json";
13+
import channels from "../../data/channels/work.json";
1614

1715
export interface PubNubMockOptions {
1816
uuid?: string;

lib/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
},
3030
"devDependencies": {
3131
"@babel/core": "^7.12.9",
32-
"@pubnub/react-chat-data": "^1.0.0",
3332
"@rollup/plugin-commonjs": "^15.1.0",
3433
"@rollup/plugin-json": "^4.1.0",
3534
"@rollup/plugin-node-resolve": "^9.0.0",

lib/rollup.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export default {
2929
__VERSION__: pkg.version,
3030
}),
3131
peerDepsExternal(),
32-
resolve(),
32+
resolve({
33+
browser: true,
34+
}),
3335
commonjs(),
3436
postcss(),
3537
svgr(),

lib/test/channel-list.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22

33
import { ChannelList } from "../src/channel-list/channel-list";
4-
import { workChannels as channels } from "@pubnub/react-chat-data";
4+
import channels from "../../data/channels/work.json";
55
import { render, screen } from "../mock/custom-renderer";
66
import userEvent from "@testing-library/user-event";
77

lib/test/member-list.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22

33
import { MemberList } from "../src/member-list/member-list";
4-
import { users as members } from "@pubnub/react-chat-data";
4+
import members from "../../data/users/users.json";
55
import { render, screen } from "../mock/custom-renderer";
66

77
describe("Member List", () => {

0 commit comments

Comments
 (0)