@pikacss/plugin-reset 0.0.52 → 0.0.55

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/README.md CHANGED
@@ -22,7 +22,7 @@ export default defineEngineConfig({
22
22
 
23
23
  ## Documentation
24
24
 
25
- See the [full documentation](https://pikacss.com/official-plugins/reset).
25
+ See the [full documentation](https://pikacss.github.io/official-plugins/reset).
26
26
 
27
27
  ## License
28
28
 
package/dist/index.d.mts CHANGED
@@ -40,9 +40,10 @@ declare module '@pikacss/core' {
40
40
  *
41
41
  * @remarks
42
42
  * The plugin reads the `reset` option from the engine config to select a
43
- * stylesheet. If unset, it defaults to `'modern-normalize'`. A dedicated
44
- * `reset` layer with order `-1` is created so the reset styles always
45
- * appear before utility output.
43
+ * stylesheet. If unset, it defaults to `'modern-normalize'`. The `reset`
44
+ * layer's order defaults to `-1` (set only when `layers.reset` is not
45
+ * already configured), which places the reset styles before utility output
46
+ * unless the config overrides the layer order.
46
47
  *
47
48
  * @example
48
49
  * ```ts
package/dist/index.mjs CHANGED
@@ -918,9 +918,10 @@ const resetStyles = {
918
918
  *
919
919
  * @remarks
920
920
  * The plugin reads the `reset` option from the engine config to select a
921
- * stylesheet. If unset, it defaults to `'modern-normalize'`. A dedicated
922
- * `reset` layer with order `-1` is created so the reset styles always
923
- * appear before utility output.
921
+ * stylesheet. If unset, it defaults to `'modern-normalize'`. The `reset`
922
+ * layer's order defaults to `-1` (set only when `layers.reset` is not
923
+ * already configured), which places the reset styles before utility output
924
+ * unless the config overrides the layer order.
924
925
  *
925
926
  * @example
926
927
  * ```ts
@@ -940,7 +941,7 @@ function reset() {
940
941
  configureRawConfig: (config) => {
941
942
  if (config.reset) style = config.reset;
942
943
  config.layers ??= {};
943
- config.layers.reset = -1;
944
+ config.layers.reset ??= -1;
944
945
  },
945
946
  configureEngine: async (engine) => {
946
947
  const resetCss = resetStyles[style];
package/package.json CHANGED
@@ -4,10 +4,10 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.0.52",
7
+ "version": "0.0.55",
8
8
  "author": "DevilTea <ch19980814@gmail.com>",
9
9
  "license": "MIT",
10
- "homepage": "https://pikacss.com",
10
+ "homepage": "https://pikacss.github.io",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/pikacss/pikacss.git",
@@ -39,10 +39,10 @@
39
39
  "node": ">=22"
40
40
  },
41
41
  "peerDependencies": {
42
- "@pikacss/core": "0.0.52"
42
+ "@pikacss/core": "0.0.55"
43
43
  },
44
44
  "devDependencies": {
45
- "@pikacss/core": "0.0.52"
45
+ "@pikacss/core": "0.0.55"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsdown",