@lark-apaas/client-toolkit 1.1.17-safety-test.0 → 1.1.17-safety-test.1

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.
@@ -0,0 +1,4 @@
1
+ [data-custom-element="safety-close"]:hover, [data-custom-element="safety-more"]:hover {
2
+ background: var(--ud-info-border);
3
+ }
4
+
@@ -24,6 +24,17 @@ const Component = ()=>{
24
24
  setIsInternetVisible(data?.data?.is_internet_visible);
25
25
  });
26
26
  }, []);
27
+ useEffect(()=>{
28
+ if (isMobile) {
29
+ const link = document.createElement('link');
30
+ link.rel = 'preload';
31
+ link.as = 'image';
32
+ link.href = 'https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/logo/miaodacover-mobile.png';
33
+ document.head.appendChild(link);
34
+ }
35
+ }, [
36
+ isMobile
37
+ ]);
27
38
  if (!visible) return null;
28
39
  if (isMobile) return /*#__PURE__*/ jsxs(Sheet, {
29
40
  open: open,
@@ -50,7 +61,7 @@ const Component = ()=>{
50
61
  }),
51
62
  /*#__PURE__*/ jsx(SheetContent, {
52
63
  side: "bottom",
53
- className: "z-[10000001] border-none bg-transparent",
64
+ className: "z-[10000001] border-none bg-transparent outline-0!",
54
65
  children: /*#__PURE__*/ jsxs("div", {
55
66
  className: "flex flex-col bg-white overflow-hidden rounded-t-2xl relative",
56
67
  children: [
@@ -80,7 +91,7 @@ const Component = ()=>{
80
91
  className: "shrink-0 w-3.5 h-3.5"
81
92
  }),
82
93
  /*#__PURE__*/ jsxs("p", {
83
- className: "shrink-0 min-w-[96px] m-0! text-[#a6a6a6] text-sm",
94
+ className: "shrink-0 min-w-[96px] m-0! text-[#646A73] text-sm",
84
95
  children: [
85
96
  userinfo?.name,
86
97
  "运营"
@@ -96,7 +107,7 @@ const Component = ()=>{
96
107
  className: "shrink-0 w-3.5 h-3.5"
97
108
  }),
98
109
  /*#__PURE__*/ jsx("p", {
99
- className: "shrink-0 min-w-[163px] m-0! text-[#a6a6a6] text-sm",
110
+ className: "shrink-0 min-w-[163px] m-0! text-[#646A73] text-sm",
100
111
  children: "包含 AI 生成内容,请注意甄别"
101
112
  })
102
113
  ]
@@ -140,7 +151,7 @@ const Component = ()=>{
140
151
  /*#__PURE__*/ jsx(PopoverTrigger, {
141
152
  asChild: true,
142
153
  children: /*#__PURE__*/ jsxs("div", {
143
- className: "fixed right-3 bottom-3 inline-flex items-center gap-x-1 border-solid border-[#ffffff1a] border px-2.5 py-1.5 bg-[#1f2329e5] backdrop-blur-[5px] shadow-[0px_6px_12px_0px_#41444a0a,0px_8px_24px_8px_#41444a0a] rounded-md text-[#ebebeb)] font-['PingFang_SC'] text-xs leading-[20px] tracking-[0px] z-[10000000]",
154
+ className: "fixed right-3 bottom-3 inline-flex items-center gap-x-1 border-solid border-[#ffffff1a] border px-2.5 py-1.5 bg-[#1f2329e5] backdrop-blur-[5px] shadow-[0px_6px_12px_0px_#41444a0a,0px_8px_24px_8px_#41444a0a] rounded-md text-[#ebebeb)] font-['PingFang_SC'] text-xs leading-[20px] tracking-[0px] z-[10000000] cursor-pointer",
144
155
  onMouseEnter: ()=>{
145
156
  clearTimeout(timeoutRef.current);
146
157
  setOpen(true);
@@ -162,6 +173,9 @@ const Component = ()=>{
162
173
  }),
163
174
  /*#__PURE__*/ jsx(PopoverContent, {
164
175
  className: "overflow-hidden p-0 m-0 border-0",
176
+ style: {
177
+ boxShadow: '0 6px 12px 0 rgba(65, 68, 74, 0.04), 0 8px 24px 0 rgba(65, 68, 74, 0.04)'
178
+ },
165
179
  side: "top",
166
180
  align: "end",
167
181
  sideOffset: 8,
@@ -178,7 +192,7 @@ const Component = ()=>{
178
192
  /*#__PURE__*/ jsx("img", {
179
193
  src: "https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/logo/miaodacover.png",
180
194
  alt: "",
181
- className: "w-72 h-full",
195
+ className: "w-72 h-32 cursor-pointer",
182
196
  onClick: ()=>{
183
197
  window.open('https://miaoda.feishu.cn/landing', '_blank');
184
198
  }
@@ -224,7 +238,8 @@ const Component = ()=>{
224
238
  className: "self-stretch shrink-0 flex items-start gap-x-[8px]",
225
239
  children: [
226
240
  /*#__PURE__*/ jsx("div", {
227
- className: "flex-1 flex rounded-lg h-[34px] items-center justify-center border-[0.5px] bg-none hover:bg-[rgba(255, 255, 255, 0.03)] hover-[#262728]! text-[rgba(235,235,235,0.6)] hover:text-[rgba(235,235,235,0.8)] cursor-pointer border-[rgba(255,255,255,0.11)]",
241
+ className: "flex-1 flex rounded-lg h-[34px] items-center justify-center border-[0.5px] bg-transparent border-solid hover:bg-[#ffffff08] text-[#ebebeb99] hover:text-[#ebebebe6] cursor-pointer border-[#ffffff1c]",
242
+ "data-custom-element": "safety-close",
228
243
  onClick: (e)=>{
229
244
  e.stopPropagation();
230
245
  e.preventDefault();
@@ -234,7 +249,8 @@ const Component = ()=>{
234
249
  children: "不再展示"
235
250
  }),
236
251
  /*#__PURE__*/ jsx("div", {
237
- className: "flex-1 flex rounded-lg items-center justify-center h-[34px] border-[0.5px] border-[rgba(255, 255, 255, 0.11)] hover:border-[rgba(255, 255, 255, 0.20)] bg-[rgba(255, 255, 255, 0.03)] hover:bg-[rgba(255, 255, 255, 0.08)] cursor-pointer text-[#ebebeb]",
252
+ className: "flex-1 flex rounded-lg items-center justify-center h-[34px] border-[0.5px] border-solid border-[#ffffff1c] hover:border-[#ffffff33] bg-[#ffffff08] hover:bg-[#ffffff14] cursor-pointer text-[#ebebeb]",
253
+ "data-custom-element": "safety-more",
238
254
  onClick: ()=>{
239
255
  window.open('https://miaoda.feishu.cn/landing', '_blank');
240
256
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/client-toolkit",
3
- "version": "1.1.17-safety-test.0",
3
+ "version": "1.1.17-safety-test.1",
4
4
  "types": "./lib/index.d.ts",
5
5
  "main": "./lib/index.js",
6
6
  "files": [