@baishuyun/ai-design 1.0.0 → 1.0.2

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,5 +1,19 @@
1
1
  # @baishuyun/ai-design
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix missing style
8
+
9
+ ## 1.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - bump
14
+ - Updated dependencies
15
+ - @baishuyun/types@2.0.1
16
+
3
17
  ## 1.0.0
4
18
 
5
19
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ai-design",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "AI 功能 UI 组件库 - 所有 AI 功能的 UI 表现唯一真相来源",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -49,7 +49,7 @@
49
49
  "tailwind-merge": "^3.4.0",
50
50
  "tailwindcss-animate": "^1.0.7",
51
51
  "tw-animate-css": "^1.4.0",
52
- "@baishuyun/types": "2.0.0"
52
+ "@baishuyun/types": "2.0.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@storybook/addon-docs": "^10.1.11",
@@ -64,9 +64,9 @@
64
64
  "typescript": "^5.5.0",
65
65
  "vite": "^5.1.4",
66
66
  "vite-plugin-dts": "^4.5.4",
67
- "@baishuyun/tailwind-config": "2.0.0",
68
- "@baishuyun/types": "2.0.0",
69
- "@baishuyun/typescript-config": "1.0.0"
67
+ "@baishuyun/typescript-config": "1.0.1",
68
+ "@baishuyun/tailwind-config": "2.0.1",
69
+ "@baishuyun/types": "2.0.1"
70
70
  },
71
71
  "keywords": [],
72
72
  "author": "",
@@ -38,6 +38,13 @@ const injectStylesIntoShadow = (currentElement: Node) => {
38
38
  cloned.setAttribute(STYLE_INJECTED_ATTR, '');
39
39
  shadowRoot!.appendChild(cloned);
40
40
  });
41
+
42
+ // if style is loaded by link tag, we also need to copy it into shadow DOM
43
+ document.head.querySelectorAll('link[rel="stylesheet"]').forEach((linkEl) => {
44
+ const cloned = linkEl.cloneNode(true) as HTMLElement;
45
+ cloned.setAttribute(STYLE_INJECTED_ATTR, '');
46
+ shadowRoot!.appendChild(cloned);
47
+ });
41
48
  };
42
49
 
43
50
  export function LegacySlot({