@webjourney/vite-plugins 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/README.md +0 -56
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webjourney/vite-plugins",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Vite plugins for Webjourney WYSIWYG editing",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,6 +33,6 @@
33
33
  "vite": "^5.0.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "vite": "^5.0.0"
36
+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
37
37
  }
38
38
  }
package/README.md DELETED
@@ -1,56 +0,0 @@
1
- # @webjourney/vite-plugins
2
-
3
- Vite plugins for Webjourney WYSIWYG editing functionality.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- yarn add @webjourney/vite-plugins
9
- ```
10
-
11
- ## Usage
12
-
13
- In your `vite.config.ts`:
14
-
15
- ```typescript
16
- import { defineConfig } from 'vite';
17
- import { webjourneyPlugins } from '@webjourney/vite-plugins';
18
-
19
- export default defineConfig({
20
- plugins: [
21
- ...webjourneyPlugins(), // Must run BEFORE react() to see original JSX
22
- // ... other plugins
23
- ],
24
- });
25
- ```
26
-
27
- ## What it does
28
-
29
- This package provides Vite plugins that enable WYSIWYG editing in Webjourney:
30
-
31
- 1. **`webjourneyElementTagger()`** - Injects source mapping attributes (`data-wj-*`) into JSX elements for tracking
32
- 2. **`webjourneyPluginScript()`** - Injects the Webjourney plugin script into the HTML head
33
- 3. **`webjourneyPlugins()`** - Convenience function that returns an array of the above plugins
34
-
35
- ## Features
36
-
37
- - Automatically adds `data-wj-file`, `data-wj-line`, `data-wj-type`, and `data-wj-id` attributes to text and image elements
38
- - Only runs in development mode for performance
39
- - Zero runtime overhead in production builds
40
-
41
- ## Development
42
-
43
- ```bash
44
- # Build the package
45
- yarn build
46
-
47
- # Watch mode
48
- yarn dev
49
-
50
- # Type check
51
- yarn typecheck
52
- ```
53
-
54
- ## License
55
-
56
- Private - Webjourney internal use only