@copilotkit/react-ui 1.4.1-pre.2 → 1.4.1-pre.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import "./chunk-EFZPSZWO.mjs";
3
- import "./chunk-JD7BAH7U.mjs";
3
+ import "./chunk-MMVDU6DF.mjs";
4
4
  import "./chunk-MRFF7GSQ.mjs";
5
5
  import {
6
6
  CopilotSidebar
7
- } from "./chunk-M2NVAJQA.mjs";
7
+ } from "./chunk-ECPBML4L.mjs";
8
8
  import "./chunk-WB3YULQ4.mjs";
9
9
  import {
10
10
  CopilotPopup
11
- } from "./chunk-PY7YBFPA.mjs";
11
+ } from "./chunk-TSIFZ5N5.mjs";
12
12
  import "./chunk-H5CXJBR5.mjs";
13
13
  import "./chunk-YAGE7RCE.mjs";
14
14
  import "./chunk-VEC45H6Q.mjs";
@@ -22,8 +22,12 @@ import "./chunk-ZABXREBH.mjs";
22
22
  import "./chunk-6INMITFA.mjs";
23
23
  import "./chunk-RU73BEZM.mjs";
24
24
  import "./chunk-RJCZRKTV.mjs";
25
- import "./chunk-RS6UPR5N.mjs";
26
- import "./chunk-4FIGRRFS.mjs";
25
+ import {
26
+ CopilotDevConsole
27
+ } from "./chunk-RS6UPR5N.mjs";
28
+ import {
29
+ shouldShowDevConsole
30
+ } from "./chunk-4FIGRRFS.mjs";
27
31
  import "./chunk-OTPAZXVR.mjs";
28
32
  import "./chunk-4LUMV4YO.mjs";
29
33
  import "./chunk-YQFVRDNC.mjs";
@@ -45,8 +49,10 @@ import "./chunk-S5MBUNGN.mjs";
45
49
  import "./chunk-MRXNTQOX.mjs";
46
50
  export {
47
51
  CopilotChat,
52
+ CopilotDevConsole,
48
53
  CopilotPopup,
49
54
  CopilotSidebar,
55
+ shouldShowDevConsole,
50
56
  useChatContext,
51
57
  useCopilotChatSuggestions
52
58
  };
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "1.4.1-pre.2",
12
+ "version": "1.4.1-pre.6",
13
13
  "sideEffects": [
14
14
  "**/*.css"
15
15
  ],
@@ -40,9 +40,9 @@
40
40
  "ts-jest": "^29.1.1",
41
41
  "tsup": "^6.7.0",
42
42
  "typescript": "^5.2.3",
43
- "eslint-config-custom": "1.4.1-pre.2",
44
- "tailwind-config": "1.4.1-pre.2",
45
- "tsconfig": "1.4.1-pre.2"
43
+ "eslint-config-custom": "1.4.1-pre.6",
44
+ "tailwind-config": "1.4.1-pre.6",
45
+ "tsconfig": "1.4.1-pre.6"
46
46
  },
47
47
  "dependencies": {
48
48
  "@headlessui/react": "^2.1.3",
@@ -50,9 +50,9 @@
50
50
  "react-syntax-highlighter": "^15.5.0",
51
51
  "remark-gfm": "^3.0.1",
52
52
  "remark-math": "^5.1.1",
53
- "@copilotkit/react-core": "1.4.1-pre.2",
54
- "@copilotkit/runtime-client-gql": "1.4.1-pre.2",
55
- "@copilotkit/shared": "1.4.1-pre.2"
53
+ "@copilotkit/react-core": "1.4.1-pre.6",
54
+ "@copilotkit/runtime-client-gql": "1.4.1-pre.6",
55
+ "@copilotkit/shared": "1.4.1-pre.6"
56
56
  },
57
57
  "keywords": [
58
58
  "copilotkit",
@@ -5,7 +5,7 @@
5
5
  * A chatbot popup component for the CopilotKit framework. The component allows for a high degree
6
6
  * of customization through various props and custom CSS.
7
7
  *
8
- * See [CopilotSidebar](/reference/components/CopilotSidebar) for a sidebar version of this component.
8
+ * See [CopilotSidebar](/reference/components/chat/CopilotSidebar) for a sidebar version of this component.
9
9
  *
10
10
  * ## Install Dependencies
11
11
  *
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * A chatbot sidebar component for the CopilotKit framework. Highly customizable through various props and custom CSS.
6
6
  *
7
- * See [CopilotPopup](/reference/components/CopilotPopup) for a popup version of this component.
7
+ * See [CopilotPopup](/reference/components/chat/CopilotPopup) for a popup version of this component.
8
8
  *
9
9
  * ## Install Dependencies
10
10
  *
@@ -1 +1,2 @@
1
1
  export * from "./chat";
2
+ export * from "./dev-console";
@@ -42,6 +42,11 @@
42
42
  font-size: 0.8em;
43
43
  }
44
44
 
45
+ .copilotKitMarkdown p {
46
+ padding: 0px;
47
+ margin: 0px;
48
+ }
49
+
45
50
  .copilotKitMarkdown p:not(:last-child),
46
51
  .copilotKitMarkdown pre:not(:last-child),
47
52
  .copilotKitMarkdown ol:not(:last-child),
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-JD7BAH7U.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/chat/Sidebar.tsx"],"sourcesContent":["/**\n * <br/>\n * <img src=\"/images/CopilotSidebar.gif\" width=\"500\" />\n *\n * A chatbot sidebar component for the CopilotKit framework. Highly customizable through various props and custom CSS.\n *\n * See [CopilotPopup](/reference/components/CopilotPopup) for a popup version of this component.\n *\n * ## Install Dependencies\n *\n * This component is part of the [@copilotkit/react-ui](https://npmjs.com/package/@copilotkit/react-ui) package.\n *\n * ```shell npm2yarn \\\"@copilotkit/react-ui\"\\\n * npm install @copilotkit/react-core @copilotkit/react-ui\n * ```\n *\n * ## Usage\n *\n * ```tsx\n * import { CopilotSidebar } from \"@copilotkit/react-ui\";\n * import \"@copilotkit/react-ui/styles.css\";\n *\n * <CopilotSidebar\n * labels={{\n * title: \"Your Assistant\",\n * initial: \"Hi! 👋 How can I assist you today?\",\n * }}\n * >\n * <YourApp/>\n * </CopilotSidebar>\n * ```\n *\n * ### Look & Feel\n *\n * By default, CopilotKit components do not have any styles. You can import CopilotKit's stylesheet at the root of your project:\n * ```tsx title=\"YourRootComponent.tsx\"\n * ...\n * import \"@copilotkit/react-ui/styles.css\"; // [!code highlight]\n *\n * export function YourRootComponent() {\n * return (\n * <CopilotKit>\n * ...\n * </CopilotKit>\n * );\n * }\n * ```\n * For more information about how to customize the styles, check out the [Customize Look & Feel](/guides/custom-look-and-feel/customize-built-in-ui-components) guide.\n */\nimport React, { useState } from \"react\";\nimport { CopilotModal, CopilotModalProps } from \"./Modal\";\n\nexport function CopilotSidebar(props: CopilotModalProps) {\n props = {\n ...props,\n className: props.className ? props.className + \" copilotKitSidebar\" : \"copilotKitSidebar\",\n };\n const [expandedClassName, setExpandedClassName] = useState(\n props.defaultOpen ? \"sidebarExpanded\" : \"\",\n );\n\n const onSetOpen = (open: boolean) => {\n props.onSetOpen?.(open);\n setExpandedClassName(open ? \"sidebarExpanded\" : \"\");\n };\n\n return (\n <div className={`copilotKitSidebarContentWrapper ${expandedClassName}`}>\n <CopilotModal {...props} {...{ onSetOpen }}>\n {props.children}\n </CopilotModal>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAiDA,SAAgB,gBAAgB;AAmB1B;AAhBC,SAAS,eAAe,OAA0B;AACvD,UAAQ,iCACH,QADG;AAAA,IAEN,WAAW,MAAM,YAAY,MAAM,YAAY,uBAAuB;AAAA,EACxE;AACA,QAAM,CAAC,mBAAmB,oBAAoB,IAAI;AAAA,IAChD,MAAM,cAAc,oBAAoB;AAAA,EAC1C;AAEA,QAAM,YAAY,CAAC,SAAkB;AA7DvC;AA8DI,gBAAM,cAAN,+BAAkB;AAClB,yBAAqB,OAAO,oBAAoB,EAAE;AAAA,EACpD;AAEA,SACE,oBAAC,SAAI,WAAW,mCAAmC,qBACjD,8BAAC,8DAAiB,QAAW,EAAE,UAAU,IAAxC,EACE,gBAAM,WACT,GACF;AAEJ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/chat/Popup.tsx"],"sourcesContent":["/**\n * <br/>\n * <img src=\"/images/CopilotPopup.gif\" width=\"500\" />\n *\n * A chatbot popup component for the CopilotKit framework. The component allows for a high degree\n * of customization through various props and custom CSS.\n *\n * See [CopilotSidebar](/reference/components/CopilotSidebar) for a sidebar version of this component.\n *\n * ## Install Dependencies\n *\n * This component is part of the [@copilotkit/react-ui](https://npmjs.com/package/@copilotkit/react-ui) package.\n *\n * ```shell npm2yarn \\\"@copilotkit/react-ui\"\\\n * npm install @copilotkit/react-core @copilotkit/react-ui\n * ```\n * ## Usage\n *\n * ```tsx\n * import { CopilotPopup } from \"@copilotkit/react-ui\";\n * import \"@copilotkit/react-ui/styles.css\";\n *\n * <CopilotPopup\n * labels={{\n * title: \"Your Assistant\",\n * initial: \"Hi! 👋 How can I assist you today?\",\n * }}\n * />\n * ```\n *\n * ### Look & Feel\n *\n * By default, CopilotKit components do not have any styles. You can import CopilotKit's stylesheet at the root of your project:\n * ```tsx title=\"YourRootComponent.tsx\"\n * ...\n * import \"@copilotkit/react-ui/styles.css\"; // [!code highlight]\n *\n * export function YourRootComponent() {\n * return (\n * <CopilotKit>\n * ...\n * </CopilotKit>\n * );\n * }\n * ```\n * For more information about how to customize the styles, check out the [Customize Look & Feel](/guides/custom-look-and-feel/customize-built-in-ui-components) guide.\n */\n\nimport { CopilotModal, CopilotModalProps } from \"./Modal\";\n\nexport function CopilotPopup(props: CopilotModalProps) {\n props = {\n ...props,\n className: props.className ? props.className + \" copilotKitPopup\" : \"copilotKitPopup\",\n };\n return <CopilotModal {...props}>{props.children}</CopilotModal>;\n}\n"],"mappings":";;;;;;;;;AAuDS;AALF,SAAS,aAAa,OAA0B;AACrD,UAAQ,iCACH,QADG;AAAA,IAEN,WAAW,MAAM,YAAY,MAAM,YAAY,qBAAqB;AAAA,EACtE;AACA,SAAO,oBAAC,+CAAiB,QAAjB,EAAyB,gBAAM,WAAS;AAClD;","names":[]}