Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ import Button from '@leafygreen-ui/button';
| [@leafygreen-ui/avatar](./packages/avatar) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/avatar)](https://www.npmjs.com/package/@leafygreen-ui/avatar) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/avatar?color=white) | [Live Example](http://mongodb.design/component/avatar/live-example) |
| [@leafygreen-ui/badge](./packages/badge) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/badge)](https://www.npmjs.com/package/@leafygreen-ui/badge) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/badge?color=white) | [Live Example](http://mongodb.design/component/badge/live-example) |
| [@leafygreen-ui/banner](./packages/banner) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/banner)](https://www.npmjs.com/package/@leafygreen-ui/banner) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/banner?color=white) | [Live Example](http://mongodb.design/component/banner/live-example) |
| [@leafygreen-ui/box](./packages/box) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/box)](https://www.npmjs.com/package/@leafygreen-ui/box) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/box?color=white) | [Live Example](http://mongodb.design/component/box/live-example) |
| [@leafygreen-ui/button](./packages/button) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/button)](https://www.npmjs.com/package/@leafygreen-ui/button) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/button?color=white) | [Live Example](http://mongodb.design/component/button/live-example) |
| [@leafygreen-ui/callout](./packages/callout) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/callout)](https://www.npmjs.com/package/@leafygreen-ui/callout) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/callout?color=white) | [Live Example](http://mongodb.design/component/callout/live-example) |
| [@leafygreen-ui/card](./packages/card) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/card)](https://www.npmjs.com/package/@leafygreen-ui/card) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/card?color=white) | [Live Example](http://mongodb.design/component/card/live-example) |
Expand Down Expand Up @@ -149,14 +148,12 @@ import Button from '@leafygreen-ui/button';
| [@lg-charts/legend](./charts/legend) | [![version](https://img.shields.io/npm/v/@lg-charts/legend)](https://www.npmjs.com/package/@lg-charts/legend) | ![downloads](https://img.shields.io/npm/dm/@lg-charts/legend?color=white) | [Live Example](http://mongodb.design/component/legend/live-example) |
| [@lg-charts/series-provider](./charts/series-provider) | [![version](https://img.shields.io/npm/v/@lg-charts/series-provider)](https://www.npmjs.com/package/@lg-charts/series-provider) | ![downloads](https://img.shields.io/npm/dm/@lg-charts/series-provider?color=white) | [Live Example](http://mongodb.design/component/series-provider/live-example) |
| [@lg-chat/avatar](./chat/avatar) | [![version](https://img.shields.io/npm/v/@lg-chat/avatar)](https://www.npmjs.com/package/@lg-chat/avatar) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/avatar?color=white) | [Live Example](http://mongodb.design/component/avatar/live-example) |
| [@lg-chat/chat-disclaimer](./chat/chat-disclaimer) | [![version](https://img.shields.io/npm/v/@lg-chat/chat-disclaimer)](https://www.npmjs.com/package/@lg-chat/chat-disclaimer) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/chat-disclaimer?color=white) | [Live Example](http://mongodb.design/component/chat-disclaimer/live-example) |
| [@lg-chat/chat-window](./chat/chat-window) | [![version](https://img.shields.io/npm/v/@lg-chat/chat-window)](https://www.npmjs.com/package/@lg-chat/chat-window) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/chat-window?color=white) | [Live Example](http://mongodb.design/component/chat-window/live-example) |
| [@lg-chat/fixed-chat-window](./chat/fixed-chat-window) | [![version](https://img.shields.io/npm/v/@lg-chat/fixed-chat-window)](https://www.npmjs.com/package/@lg-chat/fixed-chat-window) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/fixed-chat-window?color=white) | [Live Example](http://mongodb.design/component/fixed-chat-window/live-example) |
| [@lg-chat/input-bar](./chat/input-bar) | [![version](https://img.shields.io/npm/v/@lg-chat/input-bar)](https://www.npmjs.com/package/@lg-chat/input-bar) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/input-bar?color=white) | [Live Example](http://mongodb.design/component/input-bar/live-example) |
| [@lg-chat/leafygreen-chat-provider](./chat/leafygreen-chat-provider) | [![version](https://img.shields.io/npm/v/@lg-chat/leafygreen-chat-provider)](https://www.npmjs.com/package/@lg-chat/leafygreen-chat-provider) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/leafygreen-chat-provider?color=white) | [Live Example](http://mongodb.design/component/leafygreen-chat-provider/live-example) |
| [@lg-chat/lg-markdown](./chat/lg-markdown) | [![version](https://img.shields.io/npm/v/@lg-chat/lg-markdown)](https://www.npmjs.com/package/@lg-chat/lg-markdown) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/lg-markdown?color=white) | [Live Example](http://mongodb.design/component/lg-markdown/live-example) |
| [@lg-chat/message](./chat/message) | [![version](https://img.shields.io/npm/v/@lg-chat/message)](https://www.npmjs.com/package/@lg-chat/message) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/message?color=white) | [Live Example](http://mongodb.design/component/message/live-example) |
| [@lg-chat/message-actions](./chat/message-actions) | [![version](https://img.shields.io/npm/v/@lg-chat/message-actions)](https://www.npmjs.com/package/@lg-chat/message-actions) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/message-actions?color=white) | [Live Example](http://mongodb.design/component/message-actions/live-example) |
| [@lg-chat/message-feed](./chat/message-feed) | [![version](https://img.shields.io/npm/v/@lg-chat/message-feed)](https://www.npmjs.com/package/@lg-chat/message-feed) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/message-feed?color=white) | [Live Example](http://mongodb.design/component/message-feed/live-example) |
| [@lg-chat/message-feedback](./chat/message-feedback) | [![version](https://img.shields.io/npm/v/@lg-chat/message-feedback)](https://www.npmjs.com/package/@lg-chat/message-feedback) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/message-feedback?color=white) | [Live Example](http://mongodb.design/component/message-feedback/live-example) |
| [@lg-chat/message-prompts](./chat/message-prompts) | [![version](https://img.shields.io/npm/v/@lg-chat/message-prompts)](https://www.npmjs.com/package/@lg-chat/message-prompts) | ![downloads](https://img.shields.io/npm/dm/@lg-chat/message-prompts?color=white) | [Live Example](http://mongodb.design/component/message-prompts/live-example) |
Expand Down
2 changes: 0 additions & 2 deletions chat/message-feed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
"react-keyed-flatten-children": "^2.2.1"
},
"devDependencies": {
"@leafygreen-ui/typography": "workspace:^",
"@lg-chat/chat-disclaimer": "workspace:^",
"@lg-chat/message-prompts": "workspace:^",
"@lg-tools/build": "workspace:^"
},
Expand Down
37 changes: 5 additions & 32 deletions chat/message-feed/src/MessageFeed.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { ChangeEvent, Fragment, useState } from 'react';
import { Avatar } from '@lg-chat/avatar';
import { DisclaimerText } from '@lg-chat/chat-disclaimer';
import {
LeafyGreenChatProvider,
Variant,
Expand All @@ -12,7 +11,6 @@ import { storybookArgTypes, StoryMetaType } from '@lg-tools/storybook-utils';
import { StoryFn, StoryObj } from '@storybook/react';

import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider';
import { Link } from '@leafygreen-ui/typography';

import {
baseMessages,
Expand Down Expand Up @@ -92,19 +90,10 @@ const Template: StoryFn<MessageFeedStoryProps> = ({
}) => (
<LeafyGreenChatProvider variant={variant}>
<MessageFeed style={{ width: 700, height: 400 }} {...rest}>
{children ?? (
<>
{variant === Variant.Spacious && (
<DisclaimerText title="Terms and Conditions">
This is a test description. There&apos;s also a{' '}
<Link>link inside of it</Link>.
</DisclaimerText>
)}
{baseMessages.map(messageFields => (
<MyMessage key={messageFields.id} {...messageFields} />
))}
</>
)}
{children ??
baseMessages.map(messageFields => (
<MyMessage key={messageFields.id} {...messageFields} />
))}
</MessageFeed>
</LeafyGreenChatProvider>
);
Expand All @@ -121,15 +110,7 @@ export const LiveExample: StoryObj<MessageFeedStoryProps> = {
export const OneMessage: StoryObj<MessageFeedStoryProps> = {
render: Template,
args: {
children: (
<>
<DisclaimerText title="Terms and Conditions">
This is a test description. There&apos;s also a{' '}
<Link>link inside of it</Link>.
</DisclaimerText>
<MyMessage {...baseMessages[0]} />
</>
),
children: <MyMessage {...baseMessages[0]} />,
},
};

Expand Down Expand Up @@ -175,10 +156,6 @@ const ChangingMessagesComponent = ({
<div>
<LeafyGreenChatProvider variant={variant}>
<MessageFeed style={{ width: 700, height: 400 }} {...rest}>
<DisclaimerText title="Terms and Conditions">
This is a test description. There&apos;s also a{' '}
<Link>link inside of it</Link>.
</DisclaimerText>
{messages.map(message => {
const { id, isMongo, messageBody, userName } =
message as MessageFields;
Expand Down Expand Up @@ -244,10 +221,6 @@ export const SpaciousVariant: StoryObj<MessageFeedStoryProps> = {
args: {
children: (
<>
<DisclaimerText title="Terms and Conditions">
This is a test description. There&apos;s also a{' '}
<Link>link inside of it</Link>.
</DisclaimerText>
{baseMessages.map(messageFields => (
<MyMessage key={messageFields.id} {...messageFields} />
))}
Expand Down
6 changes: 0 additions & 6 deletions chat/message-feed/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
{
"path": "../avatar"
},
{
"path": "../chat-disclaimer"
},
{
"path": "../message"
},
Expand Down Expand Up @@ -59,9 +56,6 @@
{
"path": "../../packages/tokens"
},
{
"path": "../../packages/typography"
},
{
"path": "../../packages/leafygreen-provider"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { StoryFn } from '@storybook/react';
import { MessagePromotion, MessagePromotionProps } from '.';

const meta: StoryMetaType<typeof MessagePromotion> = {
title: 'Composition/Chat/MessagePromotion',
title: 'Composition/Chat/Message/Promotion',
component: MessagePromotion,
parameters: {
default: 'WithPromotionTextAndUrl',
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "@leafygreen-ui/box",
"version": "5.0.2",
"private": true,
"deprecated": "This package is deprecated and will be removed in a future version. Use `@leafygreen-ui/polymorphic` instead.",
"description": "leafyGreen UI Kit Box",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "@lg-chat/chat-disclaimer",
"version": "5.0.1",
"private": true,
"deprecated": "This package is deprecated and will be removed in a future version. Use `@lg-chat/input-bar` v10.1.0 or greater instead.",
"description": "LeafyGreen UI Kit Chat Disclaimer",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "@lg-chat/message-actions",
"version": "1.1.3",
"private": true,
"deprecated": "This package is deprecated and will be removed in a future version. Use `@lg-chat/message` v8.1.0 or greater instead.",
"description": "LeafyGreen UI Kit Message Actions",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand Down
83 changes: 0 additions & 83 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions tools/install/src/ALL_PACKAGES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const ALL_PACKAGES = [
'@leafygreen-ui/avatar',
'@leafygreen-ui/badge',
'@leafygreen-ui/banner',
'@leafygreen-ui/box',
'@leafygreen-ui/button',
'@leafygreen-ui/callout',
'@leafygreen-ui/card',
Expand Down Expand Up @@ -84,14 +83,12 @@ export const ALL_PACKAGES = [
'@lg-charts/legend',
'@lg-charts/series-provider',
'@lg-chat/avatar',
'@lg-chat/chat-disclaimer',
'@lg-chat/chat-window',
'@lg-chat/fixed-chat-window',
'@lg-chat/input-bar',
'@lg-chat/leafygreen-chat-provider',
'@lg-chat/lg-markdown',
'@lg-chat/message',
'@lg-chat/message-actions',
'@lg-chat/message-feed',
'@lg-chat/message-feedback',
'@lg-chat/message-prompts',
Expand Down
Loading