Skip to content

Commit 19f6319

Browse files
committed
re-add package.json
1 parent 616e4ec commit 19f6319

File tree

29 files changed

+2603
-22
lines changed

29 files changed

+2603
-22
lines changed

package-lock.json

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

packages/compass-assistant/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@
7373
"@lg-chat/message": "file:src/vendor/@lg-chat/message",
7474
"@lg-chat/rich-links": "file:src/vendor/@lg-chat/rich-links",
7575
"@lg-chat/suggestions": "file:src/vendor/@lg-chat/suggestions",
76-
"@lg-chat/title-bar": "file:src/vendor/@lg-chat/title-bar"
76+
"@lg-chat/title-bar": "file:src/vendor/@lg-chat/title-bar",
77+
"react-keyed-flatten-children": "^2.2.1",
78+
"react-transition-group": "^4.4.5",
79+
"lodash": "^4.17.21",
80+
"react-textarea-autosize": "^8.3.2",
81+
"use-resize-observer": "^9.1.0",
82+
"react-markdown": "^8.0.7",
83+
"react-intersection-observer": "^8.25.1",
84+
"react-dom": "^17.0.2"
7785
},
7886
"devDependencies": {
7987
"@mongodb-js/eslint-config-compass": "^1.4.6",
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@lg-chat/avatar",
3+
"version": "6.0.0",
4+
"description": "lg-chat Avatar",
5+
"main": "src/index.ts",
6+
"typesVersions": {},
7+
"scripts": {
8+
"build": "lg-build bundle",
9+
"tsc": "lg-build tsc"
10+
},
11+
"license": "Apache-2.0",
12+
"publishConfig": {
13+
"access": "public"
14+
},
15+
"dependencies": {
16+
"@leafygreen-ui/avatar": "workspace:^",
17+
"@leafygreen-ui/emotion": "workspace:^",
18+
"@leafygreen-ui/lib": "workspace:^",
19+
"@leafygreen-ui/palette": "workspace:^",
20+
"@leafygreen-ui/tokens": "workspace:^"
21+
},
22+
"peerDependencies": {
23+
"@leafygreen-ui/leafygreen-provider": "workspace:^",
24+
"@lg-chat/leafygreen-chat-provider": "workspace:^"
25+
},
26+
"devDependencies": {
27+
"@lg-tools/build": "workspace:^"
28+
}
29+
}

packages/compass-assistant/src/vendor/@lg-chat/avatar/src/Avatar/ChatAvatar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export const ChatAvatar = forwardRef(
6060
}: ChatAvatarProps,
6161
fwdRef: ForwardedRef<HTMLDivElement>
6262
) => {
63-
const { theme } = useDarkMode(darkModeProp);
63+
const darkMode = useDarkMode(darkModeProp);
64+
const theme = darkMode ? Theme.Dark : Theme.Light;
6465
const { containerWidth } = useLeafyGreenChatContext();
6566
const size =
6667
sizeProp || (containerWidth && containerWidth < breakpoints.Tablet)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "@lg-chat/chat-disclaimer",
3+
"version": "4.0.4",
4+
"description": "LeafyGreen UI Kit Chat Disclaimer",
5+
"main": "src/index.ts",
6+
"license": "Apache-2.0",
7+
"scripts": {
8+
"build": "lg-build bundle",
9+
"tsc": "lg-build tsc",
10+
"docs": "lg-build docs"
11+
},
12+
"publishConfig": {
13+
"access": "public"
14+
},
15+
"dependencies": {
16+
"@leafygreen-ui/emotion": "workspace:^",
17+
"@leafygreen-ui/lib": "workspace:^",
18+
"@leafygreen-ui/marketing-modal": "workspace:^",
19+
"@leafygreen-ui/tokens": "workspace:^",
20+
"@leafygreen-ui/typography": "workspace:^"
21+
},
22+
"devDependencies": {
23+
"@leafygreen-ui/button": "workspace:^",
24+
"@leafygreen-ui/modal": "workspace:^",
25+
"@lg-tools/build": "workspace:^"
26+
},
27+
"homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/chat-disclaimer",
28+
"repository": {
29+
"type": "git",
30+
"url": "https://github.com/mongodb/leafygreen-ui"
31+
},
32+
"bugs": {
33+
"url": "https://jira.mongodb.org/projects/PD/summary"
34+
}
35+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "@lg-chat/chat-window",
3+
"version": "4.1.0",
4+
"description": "lg-chat Chat Window",
5+
"main": "src/index.ts",
6+
"typesVersions": {},
7+
"scripts": {
8+
"build": "lg-build bundle",
9+
"tsc": "lg-build tsc"
10+
},
11+
"license": "Apache-2.0",
12+
"publishConfig": {
13+
"access": "public"
14+
},
15+
"dependencies": {
16+
"@leafygreen-ui/emotion": "workspace:^",
17+
"@leafygreen-ui/lib": "workspace:^",
18+
"@leafygreen-ui/palette": "workspace:^",
19+
"@leafygreen-ui/tokens": "workspace:^",
20+
"@lg-chat/avatar": "workspace:^",
21+
"@lg-chat/leafygreen-chat-provider": "workspace:^",
22+
"@lg-chat/title-bar": "workspace:^",
23+
"react-keyed-flatten-children": "^2.2.1"
24+
},
25+
"devDependencies": {
26+
"@lg-chat/input-bar": "workspace:^",
27+
"@lg-chat/message": "workspace:^",
28+
"@lg-chat/message-feed": "workspace:^",
29+
"@lg-chat/message-feedback": "workspace:^",
30+
"@lg-chat/message-prompts": "workspace:^",
31+
"@lg-tools/build": "workspace:^"
32+
},
33+
"peerDependencies": {
34+
"@leafygreen-ui/leafygreen-provider": "workspace:^"
35+
}
36+
}

packages/compass-assistant/src/vendor/@lg-chat/chat-window/src/ChatWindow/ChatWindow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { ForwardedRef, forwardRef } from 'react';
22
import {
33
LeafyGreenChatProvider,
44
useLeafyGreenChatContext,
5-
} from '@lg-chat/leafygreen-chat-provider';
5+
} from '../../../leafygreen-chat-provider/src/index';
66

77
import { ChatWindowContents } from './ChatWindowContents';
88
import { ChatWindowProps } from '.';

packages/compass-assistant/src/vendor/@lg-chat/chat-window/src/ChatWindow/ChatWindowContents.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import flattenChildren from 'react-keyed-flatten-children';
33
import {
44
useLeafyGreenChatContext,
55
Variant,
6-
} from '@lg-chat/leafygreen-chat-provider';
7-
import { TitleBar } from '@lg-chat/title-bar';
6+
} from '../../../leafygreen-chat-provider/src/index';
7+
import { TitleBar } from '../../../title-bar/src/index';
88

9-
import { useDarkMode } from '@mongodb-js/compass-components';
9+
import { Theme, useDarkMode } from '@mongodb-js/compass-components';
1010
import { isComponentType } from '@mongodb-js/compass-components';
1111
import { breakpoints } from '@mongodb-js/compass-components';
1212

@@ -32,7 +32,8 @@ export const ChatWindowContents = forwardRef(
3232
}: ChatWindowProps,
3333
ref: ForwardedRef<HTMLDivElement>
3434
) => {
35-
const { theme } = useDarkMode(darkModeProp);
35+
const darkMode = useDarkMode(darkModeProp);
36+
const theme = darkMode ? Theme.Dark : Theme.Light;
3637
const { containerWidth, variant } = useLeafyGreenChatContext();
3738

3839
const isCompact = variant === Variant.Compact;
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "@lg-chat/fixed-chat-window",
3+
"version": "4.0.4",
4+
"description": "LeafyGreen UI Kit Fixed Chat Window",
5+
"main": "src/index.ts",
6+
"license": "Apache-2.0",
7+
"scripts": {
8+
"build": "lg-build bundle",
9+
"tsc": "lg-build tsc",
10+
"docs": "lg-build docs"
11+
},
12+
"publishConfig": {
13+
"access": "public"
14+
},
15+
"dependencies": {
16+
"@leafygreen-ui/avatar": "workspace:^",
17+
"@leafygreen-ui/emotion": "workspace:^",
18+
"@leafygreen-ui/icon": "workspace:^",
19+
"@leafygreen-ui/lib": "workspace:^",
20+
"@leafygreen-ui/palette": "workspace:^",
21+
"@leafygreen-ui/popover": "workspace:^",
22+
"@leafygreen-ui/tokens": "workspace:^",
23+
"@leafygreen-ui/typography": "workspace:^",
24+
"@lg-chat/chat-window": "workspace:^",
25+
"@lg-chat/title-bar": "workspace:^",
26+
"react-transition-group": "^4.4.5"
27+
},
28+
"devDependencies": {
29+
"@lg-chat/avatar": "workspace:^",
30+
"@lg-chat/input-bar": "workspace:^",
31+
"@lg-chat/leafygreen-chat-provider": "workspace:^",
32+
"@lg-chat/message": "workspace:^",
33+
"@lg-chat/message-feed": "workspace:^",
34+
"@lg-chat/message-feedback": "workspace:^",
35+
"@lg-chat/message-prompts": "workspace:^",
36+
"@lg-tools/build": "workspace:^"
37+
},
38+
"peerDependencies": {
39+
"@leafygreen-ui/leafygreen-provider": "workspace:^"
40+
},
41+
"homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/fixed-chat-window",
42+
"repository": {
43+
"type": "git",
44+
"url": "https://github.com/mongodb/leafygreen-ui"
45+
},
46+
"bugs": {
47+
"url": "https://jira.mongodb.org/projects/PD/summary"
48+
}
49+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@lg-chat/input-bar",
3+
"version": "9.2.0",
4+
"description": "lg-chat Input Bar",
5+
"main": "src/index.ts",
6+
"typesVersions": {},
7+
"scripts": {
8+
"build": "lg-build bundle",
9+
"tsc": "lg-build tsc"
10+
},
11+
"license": "Apache-2.0",
12+
"publishConfig": {
13+
"access": "public"
14+
},
15+
"dependencies": {
16+
"@leafygreen-ui/avatar": "workspace:^",
17+
"@leafygreen-ui/badge": "workspace:^",
18+
"@leafygreen-ui/banner": "workspace:^",
19+
"@leafygreen-ui/button": "workspace:^",
20+
"@leafygreen-ui/emotion": "workspace:^",
21+
"@leafygreen-ui/hooks": "workspace:^",
22+
"@leafygreen-ui/icon": "workspace:^",
23+
"@leafygreen-ui/icon-button": "workspace:^",
24+
"@leafygreen-ui/input-option": "workspace:^",
25+
"@leafygreen-ui/lib": "workspace:^",
26+
"@leafygreen-ui/palette": "workspace:^",
27+
"@leafygreen-ui/polymorphic": "workspace:^",
28+
"@leafygreen-ui/popover": "workspace:^",
29+
"@leafygreen-ui/search-input": "workspace:^",
30+
"@leafygreen-ui/tokens": "workspace:^",
31+
"@leafygreen-ui/typography": "workspace:^",
32+
"lodash": "^4.17.21",
33+
"react-keyed-flatten-children": "^1.3.0",
34+
"react-textarea-autosize": "^8.3.2"
35+
},
36+
"peerDependencies": {
37+
"@leafygreen-ui/leafygreen-provider": "workspace:^",
38+
"@lg-chat/leafygreen-chat-provider": "workspace:^"
39+
},
40+
"devDependencies": {
41+
"@lg-tools/build": "workspace:^"
42+
}
43+
}

0 commit comments

Comments
 (0)