@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/CHANGELOG.md CHANGED
@@ -1,10 +1,56 @@
1
1
  # ui
2
2
 
3
+ ## 1.4.1-pre.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 1721cbd: lower case copilotkit property
8
+ - 1721cbd: add zod conversion
9
+ - 1721cbd: Add convertActionsToDynamicStructuredTools to sdk-js
10
+ - fix assistant message CSS and propagate actions to LG JS
11
+ - Updated dependencies [1721cbd]
12
+ - Updated dependencies [1721cbd]
13
+ - Updated dependencies [1721cbd]
14
+ - Updated dependencies
15
+ - @copilotkit/react-core@1.4.1-pre.6
16
+ - @copilotkit/runtime-client-gql@1.4.1-pre.6
17
+ - @copilotkit/shared@1.4.1-pre.6
18
+
19
+ ## 1.4.1-pre.5
20
+
21
+ ### Patch Changes
22
+
23
+ - bump
24
+ - Updated dependencies
25
+ - @copilotkit/runtime-client-gql@1.4.1-pre.5
26
+ - @copilotkit/react-core@1.4.1-pre.5
27
+ - @copilotkit/shared@1.4.1-pre.5
28
+
29
+ ## 1.4.1-pre.4
30
+
31
+ ### Patch Changes
32
+
33
+ - bump
34
+ - Updated dependencies
35
+ - @copilotkit/runtime-client-gql@1.4.1-pre.4
36
+ - @copilotkit/react-core@1.4.1-pre.4
37
+ - @copilotkit/shared@1.4.1-pre.4
38
+
39
+ ## 1.4.1-pre.3
40
+
41
+ ### Patch Changes
42
+
43
+ - bump
44
+ - Updated dependencies
45
+ - @copilotkit/runtime-client-gql@1.4.1-pre.3
46
+ - @copilotkit/react-core@1.4.1-pre.3
47
+ - @copilotkit/shared@1.4.1-pre.3
48
+
3
49
  ## 1.4.1-pre.2
4
50
 
5
51
  ### Patch Changes
6
52
 
7
- - Add convertActionsToDynamicStructuredTools to sdk-js
53
+ - bump
8
54
  - Updated dependencies
9
55
  - @copilotkit/runtime-client-gql@1.4.1-pre.2
10
56
  - @copilotkit/react-core@1.4.1-pre.2
@@ -14,7 +60,7 @@
14
60
 
15
61
  ### Patch Changes
16
62
 
17
- - add zod conversion
63
+ - bump
18
64
  - Updated dependencies
19
65
  - @copilotkit/runtime-client-gql@1.4.1-pre.1
20
66
  - @copilotkit/react-core@1.4.1-pre.1
@@ -24,10 +70,10 @@
24
70
 
25
71
  ### Patch Changes
26
72
 
27
- - lower case copilotkit property
73
+ - New prerelease
28
74
  - Updated dependencies
29
- - @copilotkit/react-core@1.4.1-pre.0
30
75
  - @copilotkit/runtime-client-gql@1.4.1-pre.0
76
+ - @copilotkit/react-core@1.4.1-pre.0
31
77
  - @copilotkit/shared@1.4.1-pre.0
32
78
 
33
79
  ## 1.4.0
@@ -27,4 +27,4 @@ function CopilotSidebar(props) {
27
27
  export {
28
28
  CopilotSidebar
29
29
  };
30
- //# sourceMappingURL=chunk-M2NVAJQA.mjs.map
30
+ //# sourceMappingURL=chunk-ECPBML4L.mjs.map
@@ -0,0 +1 @@
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/chat/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":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-MMVDU6DF.mjs.map
@@ -18,4 +18,4 @@ function CopilotPopup(props) {
18
18
  export {
19
19
  CopilotPopup
20
20
  };
21
- //# sourceMappingURL=chunk-PY7YBFPA.mjs.map
21
+ //# sourceMappingURL=chunk-TSIFZ5N5.mjs.map
@@ -0,0 +1 @@
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/chat/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":[]}