@unocss/preset-tagify 66.6.6-beta.1 → 66.6.7

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -7
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import { definePreset } from "@unocss/core";
2
-
3
2
  //#region src/extractor.ts
4
3
  const MARKER = "__TAGIFY__";
5
4
  const htmlTagRE = /<([\w:-]+)/g;
@@ -24,7 +23,6 @@ function extractorTagify(options) {
24
23
  }
25
24
  };
26
25
  }
27
-
28
26
  //#endregion
29
27
  //#region src/variant.ts
30
28
  function variantTagify(options) {
@@ -37,7 +35,7 @@ function variantTagify(options) {
37
35
  const matcher = input.slice(prefix.length);
38
36
  const handler = {
39
37
  matcher,
40
- selector: (i) => i.slice(MARKER.length + 1)
38
+ selector: (i) => i.slice(11)
41
39
  };
42
40
  if (extraProperties) if (typeof extraProperties === "function") handler.body = (entries) => [...entries, ...Object.entries(extraProperties(matcher) ?? {})];
43
41
  else handler.body = (entries) => [...entries, ...Object.entries(extraProperties)];
@@ -45,7 +43,6 @@ function variantTagify(options) {
45
43
  }
46
44
  };
47
45
  }
48
-
49
46
  //#endregion
50
47
  //#region src/index.ts
51
48
  /**
@@ -60,7 +57,5 @@ const presetTagify = definePreset((options = {}) => {
60
57
  extractorDefault: defaultExtractor ? void 0 : false
61
58
  };
62
59
  });
63
- var src_default = presetTagify;
64
-
65
60
  //#endregion
66
- export { MARKER, src_default as default, extractorTagify, htmlTagRE, presetTagify, variantTagify };
61
+ export { MARKER, presetTagify as default, presetTagify, extractorTagify, htmlTagRE, variantTagify };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-tagify",
3
3
  "type": "module",
4
- "version": "66.6.6-beta.1",
4
+ "version": "66.6.7",
5
5
  "description": "Tagify preset for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@unocss/core": "66.6.6-beta.1"
32
+ "@unocss/core": "66.6.7"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsdown",