@unocss/svelte-scoped 0.56.0 → 0.56.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.
@@ -228,14 +228,11 @@ async function generateStyles(rulesToGenerate, uno) {
228
228
  const shortcutsForThisComponent = Object.entries(rulesToGenerate);
229
229
  uno.config.shortcuts.push(...shortcutsForThisComponent);
230
230
  const selectorsToGenerate = Object.keys(rulesToGenerate);
231
- const { css } = await uno.generate(
232
- selectorsToGenerate,
233
- {
234
- preflights: false,
235
- safelist: false,
236
- minify: REMOVE_COMMENTS_TO_MAKE_GLOBAL_WRAPPING_EASY
237
- }
238
- );
231
+ const { css } = await uno.generate(selectorsToGenerate, {
232
+ preflights: false,
233
+ safelist: false,
234
+ minify: REMOVE_COMMENTS_TO_MAKE_GLOBAL_WRAPPING_EASY
235
+ });
239
236
  const cssPreparedForSvelteCompiler = wrapSelectorsWithGlobal(css);
240
237
  return cssPreparedForSvelteCompiler;
241
238
  }
@@ -220,14 +220,11 @@ async function generateStyles(rulesToGenerate, uno) {
220
220
  const shortcutsForThisComponent = Object.entries(rulesToGenerate);
221
221
  uno.config.shortcuts.push(...shortcutsForThisComponent);
222
222
  const selectorsToGenerate = Object.keys(rulesToGenerate);
223
- const { css } = await uno.generate(
224
- selectorsToGenerate,
225
- {
226
- preflights: false,
227
- safelist: false,
228
- minify: REMOVE_COMMENTS_TO_MAKE_GLOBAL_WRAPPING_EASY
229
- }
230
- );
223
+ const { css } = await uno.generate(selectorsToGenerate, {
224
+ preflights: false,
225
+ safelist: false,
226
+ minify: REMOVE_COMMENTS_TO_MAKE_GLOBAL_WRAPPING_EASY
227
+ });
231
228
  const cssPreparedForSvelteCompiler = wrapSelectorsWithGlobal(css);
232
229
  return cssPreparedForSvelteCompiler;
233
230
  }
package/dist/vite.d.cts CHANGED
@@ -10,17 +10,17 @@ interface UnocssSvelteScopedViteOptions extends UnocssSveltePreprocessOptions {
10
10
  */
11
11
  classPrefix?: string
12
12
  /**
13
- * Inject reset to the beginning of the global stylesheet.
14
- *
15
- * You can pass one of the included resets from [@unocss/reset](https://unocss.dev/guide/style-reset):
13
+ * Inject reset to the beginning of the global stylesheet.
14
+ *
15
+ * You can pass one of the included resets from [@unocss/reset](https://unocss.dev/guide/style-reset):
16
16
  * - `@unocss/reset/normalize.css`
17
17
  * - `@unocss/reset/eric-meyer.css`
18
- * - `@unocss/reset/sanitize/sanitize.css`
19
- * - `@unocss/reset/tailwind.css`
18
+ * - `@unocss/reset/sanitize/sanitize.css`
19
+ * - `@unocss/reset/tailwind.css`
20
20
  * - `@unocss/reset/tailwind-compat.css`
21
- *
21
+ *
22
22
  * You can pass your own custom reset by passing the filepath relative to your project root as in `./src/reset.css`
23
- *
23
+ *
24
24
  * You can install a package then pass a path to the CSS file in your node_modules as in `@bob/my-tools/reset.css`.
25
25
  * @default undefined
26
26
  */
package/dist/vite.d.mts CHANGED
@@ -10,17 +10,17 @@ interface UnocssSvelteScopedViteOptions extends UnocssSveltePreprocessOptions {
10
10
  */
11
11
  classPrefix?: string
12
12
  /**
13
- * Inject reset to the beginning of the global stylesheet.
14
- *
15
- * You can pass one of the included resets from [@unocss/reset](https://unocss.dev/guide/style-reset):
13
+ * Inject reset to the beginning of the global stylesheet.
14
+ *
15
+ * You can pass one of the included resets from [@unocss/reset](https://unocss.dev/guide/style-reset):
16
16
  * - `@unocss/reset/normalize.css`
17
17
  * - `@unocss/reset/eric-meyer.css`
18
- * - `@unocss/reset/sanitize/sanitize.css`
19
- * - `@unocss/reset/tailwind.css`
18
+ * - `@unocss/reset/sanitize/sanitize.css`
19
+ * - `@unocss/reset/tailwind.css`
20
20
  * - `@unocss/reset/tailwind-compat.css`
21
- *
21
+ *
22
22
  * You can pass your own custom reset by passing the filepath relative to your project root as in `./src/reset.css`
23
- *
23
+ *
24
24
  * You can install a package then pass a path to the CSS file in your node_modules as in `@bob/my-tools/reset.css`.
25
25
  * @default undefined
26
26
  */
package/dist/vite.d.ts CHANGED
@@ -10,17 +10,17 @@ interface UnocssSvelteScopedViteOptions extends UnocssSveltePreprocessOptions {
10
10
  */
11
11
  classPrefix?: string
12
12
  /**
13
- * Inject reset to the beginning of the global stylesheet.
14
- *
15
- * You can pass one of the included resets from [@unocss/reset](https://unocss.dev/guide/style-reset):
13
+ * Inject reset to the beginning of the global stylesheet.
14
+ *
15
+ * You can pass one of the included resets from [@unocss/reset](https://unocss.dev/guide/style-reset):
16
16
  * - `@unocss/reset/normalize.css`
17
17
  * - `@unocss/reset/eric-meyer.css`
18
- * - `@unocss/reset/sanitize/sanitize.css`
19
- * - `@unocss/reset/tailwind.css`
18
+ * - `@unocss/reset/sanitize/sanitize.css`
19
+ * - `@unocss/reset/tailwind.css`
20
20
  * - `@unocss/reset/tailwind-compat.css`
21
- *
21
+ *
22
22
  * You can pass your own custom reset by passing the filepath relative to your project root as in `./src/reset.css`
23
- *
23
+ *
24
24
  * You can install a package then pass a path to the CSS file in your node_modules as in `@bob/my-tools/reset.css`.
25
25
  * @default undefined
26
26
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/svelte-scoped",
3
3
  "type": "module",
4
- "version": "0.56.0",
4
+ "version": "0.56.2",
5
5
  "description": "Use UnoCSS in a modular fashion with styles being stored only in the Svelte component they are used in: Vite plugin for apps, Svelte preprocessor for component libraries",
6
6
  "author": "Jacob Bowdoin",
7
7
  "license": "MIT",
@@ -54,8 +54,8 @@
54
54
  "dependencies": {
55
55
  "css-tree": "^2.3.1",
56
56
  "magic-string": "^0.30.3",
57
- "@unocss/config": "0.56.0",
58
- "@unocss/reset": "0.56.0"
57
+ "@unocss/config": "0.56.2",
58
+ "@unocss/reset": "0.56.2"
59
59
  },
60
60
  "devDependencies": {
61
61
  "prettier-plugin-svelte": "^2.10.1",