vite-plugin-css-position 2.0.3 → 2.0.5

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
@@ -35,10 +35,10 @@ Add the plugin to your `vite.config.ts`:
35
35
 
36
36
  ```typescript
37
37
  ...
38
- import { viteReactCssPosition } from "vite-plugin-css-position";
38
+ import { viteCssPosition } from "vite-plugin-css-position";
39
39
 
40
40
  export default defineConfig({
41
- plugins: [react(), /* or vue(), */ viteReactCssPosition()],
41
+ plugins: [react(), /* or vue(), */ viteCssPosition()],
42
42
  });
43
43
  ```
44
44
 
@@ -82,7 +82,7 @@ That's it! Your stylesheets will now be injected at the position of the `<Styles
82
82
  The plugin accepts optional configuration:
83
83
 
84
84
  ```typescript
85
- viteReactCssPosition({
85
+ viteCssPosition({
86
86
  enableDev: true,
87
87
  });
88
88
  ```
package/dist/index.d.ts CHANGED
@@ -7,5 +7,5 @@ interface ViteCustomCssPositionOptions {
7
7
  }
8
8
  declare function viteCustomCssPosition(options?: ViteCustomCssPositionOptions): Plugin | Plugin[];
9
9
  //#endregion
10
- export { type ViteCustomCssPositionOptions, viteCustomCssPosition as viteReactCssPosition };
10
+ export { type ViteCustomCssPositionOptions, viteCustomCssPosition as viteCssPosition, viteCustomCssPosition as viteReactCssPosition };
11
11
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -13,5 +13,5 @@ import e from"vite-plugin-css-injected-by-js";import{hash as t,randomUUID as n}f
13
13
  window.${a}.set(id, {css, attributes});
14
14
 
15
15
  window.dispatchEvent( new Event('${o}') );
16
- `}});return[{name:`vite-plugin-custom-css-position`,config(e){return{...e,define:{...e.define,__VITE_CSS_POS_GLOBAL_VAR_NAME__:JSON.stringify(a),__VITE_CSS_POS_EVENT_NAME__:JSON.stringify(o)}}}},...Array.isArray(s)?s:[s]]}export{r as viteReactCssPosition};
16
+ `}});return[{name:`vite-plugin-custom-css-position`,config(e){return{...e,define:{...e.define,__VITE_CSS_POS_GLOBAL_VAR_NAME__:JSON.stringify(a),__VITE_CSS_POS_EVENT_NAME__:JSON.stringify(o)}}}},...Array.isArray(s)?s:[s]]}export{r as viteCssPosition,r as viteReactCssPosition};
17
17
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-css-position",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Custom position of vite styles within a vite react app",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,12 +25,12 @@
25
25
  "default": "./dist/index.js"
26
26
  },
27
27
  "./target": {
28
- "types": "./dist/StylesTarget.d.ts",
29
- "default": "./dist/StylesTarget.js"
28
+ "types": "./dist/StylesTargetReact.d.ts",
29
+ "default": "./dist/StylesTargetReact.js"
30
30
  },
31
31
  "./react": {
32
- "types": "./dist/StylesTarget.d.ts",
33
- "default": "./dist/StylesTarget.js"
32
+ "types": "./dist/StylesTargetReact.d.ts",
33
+ "default": "./dist/StylesTargetReact.js"
34
34
  },
35
35
  "./vue": {
36
36
  "types": "./dist/StylesTargetVue.vue.d.ts",