@opendesign-plus-test/plugins 0.0.1-rc.24 → 0.0.1-rc.25

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/dist/index.d.ts CHANGED
@@ -2,4 +2,3 @@ export * from './core/vite-check-theme-plugin';
2
2
  export * from './analytics/plugin';
3
3
  export * from './analytics/directive';
4
4
  export * from './external-link-guard';
5
- export * from './sitemap/generate-lastmod-changefreq';
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { i as B, o as K, v as O } from "./plugin-lvjNLBe-.js";
2
- import { g as j } from "./generate-lastmod-changefreq-Wk3kOITw.js";
3
- const f = {}, $ = `
2
+ const f = {}, L = `
4
3
  (function () {
5
4
  function getCookie(key) {
6
5
  const name = encodeURIComponent(key) + '=';
@@ -37,7 +36,7 @@ function R(e) {
37
36
  classLightValue: w = t,
38
37
  classDarkValue: p = r,
39
38
  filename: l = "check-theme.js"
40
- } = e, g = $.replace(/\$COOKIE_KEY/g, n).replace(/\$LIGHT_VALUE/g, t).replace(/\$DARK_VALUE/g, r).replace(/\$CLASS_LIGHT_VALUE/g, w).replace(/\$CLASS_DARK_VALUE/g, p).replace(/\$ATTRIBUTE_NAME/g, a).replace(/\$ATTRIBUTE_LIGHT_VALUE/g, s).replace(/\$ATTRIBUTE_DARK_VALUE/g, c);
39
+ } = e, g = L.replace(/\$COOKIE_KEY/g, n).replace(/\$LIGHT_VALUE/g, t).replace(/\$DARK_VALUE/g, r).replace(/\$CLASS_LIGHT_VALUE/g, w).replace(/\$CLASS_DARK_VALUE/g, p).replace(/\$ATTRIBUTE_NAME/g, a).replace(/\$ATTRIBUTE_LIGHT_VALUE/g, s).replace(/\$ATTRIBUTE_DARK_VALUE/g, c);
41
40
  let d = "", h = !1, u = "", m = !1;
42
41
  return {
43
42
  name: "vite-check-theme-plugin",
@@ -254,7 +253,7 @@ function _() {
254
253
  }
255
254
  `, document.head.appendChild(e);
256
255
  }
257
- async function L(e, n) {
256
+ async function $(e, n) {
258
257
  if (n.showCustomConfirm)
259
258
  return C(n.lang || "zh", e, n.community || "");
260
259
  const t = n.message ?? `即将离开本站,前往第三方网站:
@@ -279,7 +278,7 @@ function U(e) {
279
278
  const c = new URL(s, window.location.href);
280
279
  if (A(c.hostname, e.whitelist))
281
280
  return;
282
- t.preventDefault(), await L(c.href, e) && ((a.getAttribute("target") || "_self") === "_blank" ? n.call(window, c.href, "_blank", "noopener,noreferrer") : window.location.href = c.href);
281
+ t.preventDefault(), await $(c.href, e) && ((a.getAttribute("target") || "_self") === "_blank" ? n.call(window, c.href, "_blank", "noopener,noreferrer") : window.location.href = c.href);
283
282
  },
284
283
  !0
285
284
  );
@@ -291,7 +290,7 @@ function S(e) {
291
290
  const a = t.toString();
292
291
  if (b(a)) {
293
292
  const s = new URL(a, window.location.href);
294
- if (!A(s.hostname, e.whitelist) && !await L(s.href, e))
293
+ if (!A(s.hostname, e.whitelist) && !await $(s.href, e))
295
294
  return null;
296
295
  }
297
296
  }
@@ -308,7 +307,6 @@ function I(e = {}) {
308
307
  export {
309
308
  R as CheckThemePlugin,
310
309
  I as createExternalLinkGuard,
311
- j as generateLastmodAndChangefreq,
312
310
  B as initOpenDesignAnalytics,
313
311
  K as oaReport,
314
312
  O as vAnalytics