@clikvn/agent-widget-embedded 1.0.27-dev → 1.0.28-dev

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clikvn/agent-widget-embedded",
3
3
  "description": "This is agent widget",
4
- "version": "1.0.27-dev",
4
+ "version": "1.0.28-dev",
5
5
  "author": "Clik JSC",
6
6
  "license": "ISC",
7
7
  "type": "module",
@@ -23,6 +23,7 @@
23
23
  "@fortawesome/free-regular-svg-icons": "^6.6.0",
24
24
  "@fortawesome/free-solid-svg-icons": "^6.6.0",
25
25
  "@fortawesome/react-fontawesome": "^0.2.2",
26
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
26
27
  "@radix-ui/react-slot": "^1.1.1",
27
28
  "@ts-stack/markdown": "1.4.0",
28
29
  "class-variance-authority": "^0.7.1",
package/rollup.config.js CHANGED
@@ -15,6 +15,17 @@ const extensions = ['.ts', '.tsx', '.js'];
15
15
 
16
16
  const indexConfig = {
17
17
  context: 'this',
18
+ onwarn(warning, warn) {
19
+ // Bỏ qua warning về "use client" directive
20
+ if (
21
+ warning.code === 'MODULE_LEVEL_DIRECTIVE' &&
22
+ warning.message.includes('"use client"')
23
+ ) {
24
+ return;
25
+ }
26
+ // Hiển thị các warning khác
27
+ warn(warning);
28
+ },
18
29
  plugins: [
19
30
  resolve({ extensions, browser: true }),
20
31
  commonjs(),