@tdesign/site-components 0.18.2 → 0.18.3

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/lib/site.es.js CHANGED
@@ -8221,7 +8221,10 @@ function Ql(e) {
8221
8221
  return So(n);
8222
8222
  }
8223
8223
  function So(e) {
8224
- return e.replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g, '<a href="$2" target="_blank">$1</a>').replace(new RegExp("(?<!`)@([a-zA-Z0-9-_]+)(?!`)", "g"), '<a href="https://github.com/$1" target="_blank">@$1</a>').replace(/`([^`]+)`/g, (t, n) => `<td-code text="${n}"></td-code>`);
8224
+ return e.replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g, '<a href="$2" target="_blank">$1</a>').replace(new RegExp("(?<!`)@([a-zA-Z0-9-_]+)(?!`)", "g"), '<a href="https://github.com/$1" target="_blank">@$1</a>').replace(
8225
+ /`([^`]+)`/g,
8226
+ (t, n) => `<td-code text="${n.replace(/&/g, "&amp;").replace(/"/g, "&quot;")}"></td-code>`
8227
+ );
8225
8228
  }
8226
8229
  ie({
8227
8230
  tag: "td-doc-changelog",
@@ -8579,7 +8582,8 @@ const Ll = ":host{position:absolute;right:24px;top:calc(100% - 60px);z-index:500
8579
8582
  uniapp: "https://github.com/Tencent/tdesign-miniprogram/issues",
8580
8583
  "uniapp-chat": "https://github.com/Tencent/tdesign-miniprogram/issues",
8581
8584
  flutter: "https://github.com/Tencent/tdesing-flutter/issues",
8582
- chat: "https://github.com/Tencent/tdesign-vue-next/issues"
8585
+ chat: "https://github.com/Tencent/tdesign-vue-next/issues",
8586
+ "react-chat": "https://github.com/Tencent/tdesign-react/issues"
8583
8587
  };
8584
8588
  function Ft() {
8585
8589
  let e = location.pathname;
package/lib/site.umd.js CHANGED
@@ -546,7 +546,7 @@ ${bo(a,w.index)}`),T}}C.prevArgs=v}}const tn=new WeakMap;function Si(e,t,n=200){
546
546
  </ul>
547
547
  </div>
548
548
  `:""}function Pl(e){const t=e.split(`
549
- `).map(o=>o.trim()).filter(Boolean);if(t.length>1){const[o,...r]=t,i=r.map(s=>`<li>${s}</li>`).join(""),a=`<li>${o}</li><ul>${i}</ul>`;return hr(a)}const n=t.map(o=>`<li>${o}</li>`).join("");return hr(n)}function hr(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g,'<a href="$2" target="_blank">$1</a>').replace(new RegExp("(?<!`)@([a-zA-Z0-9-_]+)(?!`)","g"),'<a href="https://github.com/$1" target="_blank">@$1</a>').replace(/`([^`]+)`/g,(t,n)=>`<td-code text="${n}"></td-code>`)}ie({tag:"td-doc-changelog",changelogEn:{get:(e,t)=>Me(t,!1),set:(e,t)=>t},visible:{value:!1,observe:(e,t)=>{t&&El(e)}},render:e=>{const t=()=>{e.visible=!1};return L`
549
+ `).map(o=>o.trim()).filter(Boolean);if(t.length>1){const[o,...r]=t,i=r.map(s=>`<li>${s}</li>`).join(""),a=`<li>${o}</li><ul>${i}</ul>`;return hr(a)}const n=t.map(o=>`<li>${o}</li>`).join("");return hr(n)}function hr(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g,'<a href="$2" target="_blank">$1</a>').replace(new RegExp("(?<!`)@([a-zA-Z0-9-_]+)(?!`)","g"),'<a href="https://github.com/$1" target="_blank">@$1</a>').replace(/`([^`]+)`/g,(t,n)=>`<td-code text="${n.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}"></td-code>`)}ie({tag:"td-doc-changelog",changelogEn:{get:(e,t)=>Me(t,!1),set:(e,t)=>t},visible:{value:!1,observe:(e,t)=>{t&&El(e)}},render:e=>{const t=()=>{e.visible=!1};return L`
550
550
  <div class="${e.visible?"visible":"hidden"}">
551
551
  <div class="${nt}__overlay" onclick="${t}"></div>
552
552
  <div class="${nt}__drawer">
@@ -641,7 +641,7 @@ ${bo(a,w.index)}`),T}}C.prevArgs=v}}const tn=new WeakMap;function Si(e,t,n=200){
641
641
  `,Fl=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
642
642
  <path fill="currentColor" d="M7.34998 8.64998V12.5H8.64998V8.64998H12.5V7.34998H8.64998V3.5H7.34998V7.34998H3.5V8.64998H7.34998Z" />
643
643
  </svg>
644
- `,En={vue:"https://github.com/Tencent/tdesign-vue/issues",react:"https://github.com/Tencent/tdesign-react/issues","vue-next":"https://github.com/Tencent/tdesign-vue-next/issues","mobile-vue":"https://github.com/Tencent/tdesign-mobile-vue/issues","mobile-react":"https://github.com/Tencent/tdesign-mobile-react/issues",miniprogram:"https://github.com/Tencent/tdesign-miniprogram/issues","miniprogram-chat":"https://github.com/Tencent/tdesign-miniprogram/issues",uniapp:"https://github.com/Tencent/tdesign-miniprogram/issues","uniapp-chat":"https://github.com/Tencent/tdesign-miniprogram/issues",flutter:"https://github.com/Tencent/tdesing-flutter/issues",chat:"https://github.com/Tencent/tdesign-vue-next/issues"};function Xt(){let e=location.pathname;return location.pathname==="/"&&location.hash&&(e=location.hash.slice(1)),e.match(/([\w-]+)\/components\/([\w-]+)/)||[]}function Nl(){const[,e,t]=Xt();return{newUrl:`${En[e]}/new/choose`,openUrl:`${En[e]}?q=is:issue+is:open+${t}`,closedUrl:`${En[e]}?q=is:issue+is:closed+${t}`}}function Qn(e,t,n){e.preventDefault();const o=t[`${n}Url`];window.open(o,"_blank")}function Xl(e){const{openNum:t,closedNum:n}=e,[,,o]=Xt(),r={openNum:t,closedNum:n,componentName:o,...Nl()};return o?L`
644
+ `,En={vue:"https://github.com/Tencent/tdesign-vue/issues",react:"https://github.com/Tencent/tdesign-react/issues","vue-next":"https://github.com/Tencent/tdesign-vue-next/issues","mobile-vue":"https://github.com/Tencent/tdesign-mobile-vue/issues","mobile-react":"https://github.com/Tencent/tdesign-mobile-react/issues",miniprogram:"https://github.com/Tencent/tdesign-miniprogram/issues","miniprogram-chat":"https://github.com/Tencent/tdesign-miniprogram/issues",uniapp:"https://github.com/Tencent/tdesign-miniprogram/issues","uniapp-chat":"https://github.com/Tencent/tdesign-miniprogram/issues",flutter:"https://github.com/Tencent/tdesing-flutter/issues",chat:"https://github.com/Tencent/tdesign-vue-next/issues","react-chat":"https://github.com/Tencent/tdesign-react/issues"};function Xt(){let e=location.pathname;return location.pathname==="/"&&location.hash&&(e=location.hash.slice(1)),e.match(/([\w-]+)\/components\/([\w-]+)/)||[]}function Nl(){const[,e,t]=Xt();return{newUrl:`${En[e]}/new/choose`,openUrl:`${En[e]}?q=is:issue+is:open+${t}`,closedUrl:`${En[e]}?q=is:issue+is:closed+${t}`}}function Qn(e,t,n){e.preventDefault();const o=t[`${n}Url`];window.open(o,"_blank")}function Xl(e){const{openNum:t,closedNum:n}=e,[,,o]=Xt(),r={openNum:t,closedNum:n,componentName:o,...Nl()};return o?L`
645
645
  <section id="issue" class="TDesign-component-issue">
646
646
  <a onclick="${(i,a)=>Qn(a,r,"new")}" class="item">
647
647
  <i innerHTML=${Fl}></i>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tdesign/site-components",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "license": "MIT",
5
5
  "main": "lib/site.es.js",
6
6
  "type": "module",
@@ -10,7 +10,8 @@
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git+https://github.com/Tencent/tdesign.git"
13
+ "url": "git+https://github.com/Tencent/tdesign.git",
14
+ "directory": "packages/site-components"
14
15
  },
15
16
  "homepage": "https://github.com/Tencent/tdesign/blob/main/packages/site-components/README.md",
16
17
  "keywords": [