@zipify/wysiwyg 1.3.0-0 → 1.3.0-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.
package/dist/wysiwyg.css CHANGED
@@ -23,7 +23,7 @@
23
23
  column-gap: var(--zw-offset-xxs);
24
24
  }
25
25
 
26
- .zw-button[data-v-2fa65564] {
26
+ .zw-button[data-v-1ea5f7a2] {
27
27
  display: inline-flex;
28
28
  align-items: center;
29
29
  vertical-align: middle;
@@ -43,21 +43,21 @@
43
43
  transition: 0.1s opacity ease-out;
44
44
  will-change: opacity;
45
45
  }
46
- .zw-button[data-v-2fa65564]::-moz-focus-inner {
46
+ .zw-button[data-v-1ea5f7a2]::-moz-focus-inner {
47
47
  border: 0 !important;
48
48
  }
49
- .zw-button[data-v-2fa65564]:hover,
50
- .zw-button[data-v-2fa65564]:focus {
49
+ .zw-button[data-v-1ea5f7a2]:hover,
50
+ .zw-button[data-v-1ea5f7a2]:focus {
51
51
  text-decoration: none;
52
52
  outline: none;
53
53
  }
54
- .zw-button[data-v-2fa65564]:disabled {
54
+ .zw-button[data-v-1ea5f7a2]:disabled {
55
55
  user-select: none;
56
56
  box-shadow: none;
57
57
  cursor: not-allowed;
58
58
  opacity: 0.35;
59
59
  }
60
- .zw-button--toolbar[data-v-2fa65564] {
60
+ .zw-button--toolbar[data-v-1ea5f7a2] {
61
61
  border-radius: 1px;
62
62
  min-height: 28px;
63
63
  font-weight: var(--zw-font-weight-semibold);
@@ -67,36 +67,35 @@
67
67
  transition-property: background-color, color, opacity;
68
68
  will-change: background-color, color, opacity;
69
69
  }
70
- .zw-button--primary[data-v-2fa65564] {
70
+ .zw-button--primary[data-v-1ea5f7a2] {
71
71
  background-color: rgb(var(--zw-color-green));
72
72
  color: rgb(var(--zw-color-white));
73
73
  padding: var(--zw-offset-xxs) var(--zw-offset-sm);
74
74
  line-height: var(--zw-line-height-md);
75
75
  }
76
- .zw-button--primary[data-v-2fa65564],
77
- .zw-button--secondary[data-v-2fa65564] {
76
+ .zw-button--primary[data-v-1ea5f7a2],
77
+ .zw-button--secondary[data-v-1ea5f7a2] {
78
78
  color: rgb(var(--zw-color-white));
79
79
  padding: var(--zw-offset-xxs) var(--zw-offset-sm);
80
80
  font-weight: 600;
81
81
  font-size: var(--zw-font-size-xs);
82
82
  }
83
- .zw-button--primary[data-v-2fa65564]:not(:disabled):hover,
84
- .zw-button--secondary[data-v-2fa65564]:not(:disabled):hover {
83
+ .zw-button--primary[data-v-1ea5f7a2]:not(:disabled):hover,
84
+ .zw-button--secondary[data-v-1ea5f7a2]:not(:disabled):hover {
85
85
  opacity: 0.9;
86
86
  }
87
- .zw-button--toolbar[data-v-2fa65564]:not(.zw-button--icon) {
87
+ .zw-button--toolbar[data-v-1ea5f7a2]:not(.zw-button--icon) {
88
88
  padding: var(--zw-offset-xxs) var(--zw-offset-xs);
89
89
  }
90
- .zw-button--toolbar[data-v-2fa65564]:not(:disabled):hover,
91
- .zw-button--toolbar[data-v-2fa65564]:not(:disabled):focus,
92
- .zw-button--toolbar.zw-button--active[data-v-2fa65564]:not(:disabled) {
90
+ .zw-button--toolbar[data-v-1ea5f7a2]:not(:disabled):hover,
91
+ .zw-button--toolbar[data-v-1ea5f7a2]:not(:disabled):focus,
92
+ .zw-button--toolbar.zw-button--active[data-v-1ea5f7a2]:not(:disabled) {
93
93
  color: rgb(var(--zw-color-white));
94
94
  background-color: rgb(var(--zw-color-n5));
95
95
  }
96
- .zw-button__customized-indicator[data-v-2fa65564] {
97
- display: inline-block !important;
96
+ .zw-button__customized-indicator[data-v-1ea5f7a2] {
98
97
  position: absolute;
99
- top: calc(0px - var(--zw-offset-xxs));
98
+ top: 0;
100
99
  right: 2px;
101
100
  }
102
101
 
package/dist/wysiwyg.mjs CHANGED
@@ -14286,7 +14286,7 @@ var __component__$F = /* @__PURE__ */ normalizeComponent(
14286
14286
  staticRenderFns$F,
14287
14287
  false,
14288
14288
  __vue2_injectStyles$F,
14289
- "2fa65564",
14289
+ "1ea5f7a2",
14290
14290
  null,
14291
14291
  null
14292
14292
  );
@@ -137,9 +137,8 @@ export default {
137
137
  }
138
138
 
139
139
  .zw-button__customized-indicator {
140
- display: inline-block !important;
141
140
  position: absolute;
142
- top: calc(0px - var(--zw-offset-xxs));
141
+ top: 0;
143
142
  right: 2px;
144
143
  }
145
144
  </style>
package/lib/entry-cli.js CHANGED
@@ -9,6 +9,7 @@ function rubifyJSON(object) {
9
9
  const json = JSON.stringify(object, skipNullValue, 2);
10
10
 
11
11
  return json
12
+ .replace(/'/g, '\'')
12
13
  .replace(/^[\t ]*"[^:\n\r]+(?<!\\)":/gm, (match) => match.replace(/"/g, ''))
13
14
  .replace(/: "(.+)"([,\n])/g, ': \'$1\'$2');
14
15
  }
@@ -19,7 +20,7 @@ program.command('to-json')
19
20
  .action((html, { config }) => {
20
21
  const configPath = resolve(process.cwd(), config);
21
22
  const serializer = ContentSerializer.build(require(configPath).editor);
22
- const json = rubifyJSON(serializer.toJSON(html));
23
+ const json = rubifyJSON(serializer.toJSON(html.replace(/\\"/g, '"')));
23
24
 
24
25
  // eslint-disable-next-line no-console
25
26
  console.log(json);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "1.3.0-0",
3
+ "version": "1.3.0-1",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "bin": {