@zipify/wysiwyg 1.3.0 → 1.3.1

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.
@@ -24,7 +24,11 @@ export class ToJsonCommand extends Command {
24
24
  }
25
25
 
26
26
  #formatInputHtml(html) {
27
- return html.replace(/\\(["'])/g, '$1');
27
+ return html
28
+ .replace(/\\(["'])/g, '$1')
29
+ .replace(/rgba\(\d{1,3}, ?\d{1,3}, ?\d{1,3}, (\d{1,2}%)\)/g, (substring, alpha) => {
30
+ return substring.replace(alpha, parseFloat(alpha) / 100);
31
+ });
28
32
  }
29
33
 
30
34
  #formatOutputJson(object) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "bin": {
@@ -20,7 +20,8 @@
20
20
  "lib:build": "vite build --config config/build/lib.config.js",
21
21
  "lib:pre-release": "run-s lint:js lint:css test:unit",
22
22
  "lib:release": "export $(cat ./.env | xargs) && run-s lib:pre-release lib:build cli:build && release-it",
23
- "cli:build": "rollup --config config/build/cli.config.js",
23
+ "cli:build": "NODE_ENV=production rollup --config config/build/cli.config.js",
24
+ "cli:dev": "NODE_ENV=development rollup --config config/build/cli.config.js --watch",
24
25
  "example:start": "NODE_ENV=development vite serve --config config/build/example.config.js",
25
26
  "example:build": "NODE_ENV=production vite build --config config/build/example.config.js",
26
27
  "test:unit": "jest .",