@paroicms/tiptap-editor-plugin 1.2.2 → 1.2.3

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.
@@ -1 +1 @@
1
- .TpField{display:block;width:100%}.TpField-label{display:block;margin-bottom:4px}.TpField>input[type=text],.TpField>input[type=url],.TpField>input[type=email],.TpField>input[type=password],.TpField>input[type=number],.TpField>textarea{display:block;width:100%;min-height:35px;padding:10px;font-size:1rem;color:#4b5563;appearance:none;background:#fff;border:1px solid #d1d5db;border-radius:6px;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}.TpField input[type=number]{width:auto}.TpOption{display:flex;flex-wrap:wrap;gap:5px;width:100%;margin-bottom:5px}.TpCheckbox{&,>label{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-bottom:5px}}.TpCheckbox-input{margin-left:var(--space-2)}.TpBox{display:flex;flex-wrap:wrap;row-gap:5px;column-gap:25px}dl.TpProp{display:inline;margin:0;color:#777}dl.TpProp>dt{display:inline;margin:0 .5em 0 0;font-size:14px;font-weight:700}dl.TpProp>dd{display:inline;margin:0;font-size:14px}.TpMl2{margin-left:.5rem}.TpMr2{margin-right:.5rem}.TpMt4{margin-top:1rem}.TpSpinner{display:flex;align-items:center;justify-content:center;height:100%;&.center{position:absolute;top:50%;left:50%;z-index:10;transform:translate(-50%,-50%)}&:before{width:2rem;height:2rem;margin:auto;content:"";border:.25rem solid #ccc;border-top-color:#ff4a4a;border-radius:50%;animation:spinner-rotate .75s infinite linear}}@keyframes spinner-rotate{to{transform:rotate(360deg)}}
1
+ .TpField{display:block;width:100%}.TpField-label{display:block;margin-bottom:4px}.TpField>input[type=text],.TpField>input[type=url],.TpField>input[type=email],.TpField>input[type=password],.TpField>input[type=number],.TpField>textarea{display:block;width:100%;min-height:35px;padding:10px;font-size:1rem;color:#4b5563;appearance:none;background:#fff;border:1px solid #d1d5db;border-radius:6px;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}.TpField input[type=number]{width:auto}.TpOption{display:flex;flex-wrap:wrap;gap:5px;width:100%;margin-bottom:5px}.TpCheckbox{&,>label{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-bottom:5px}}.TpCheckbox-input{margin-left:var(--space-2)}.TpBox{display:flex;flex-wrap:wrap;row-gap:5px;column-gap:25px}dl.TpProp{display:inline;margin:0;color:#777}dl.TpProp>dt{display:inline;margin:0 .5em 0 0;font-size:14px;font-weight:700}dl.TpProp>dd{display:inline;margin:0;font-size:14px}.TpSpinner{display:flex;align-items:center;justify-content:center;height:100%;&.center{position:absolute;top:50%;left:50%;z-index:10;transform:translate(-50%,-50%)}&:before{width:2rem;height:2rem;margin:auto;content:"";border:.25rem solid #ccc;border-top-color:#ff4a4a;border-radius:50%;animation:spinner-rotate .75s infinite linear}}@keyframes spinner-rotate{to{transform:rotate(360deg)}}
@@ -135,7 +135,7 @@ function Vc(n){return typeof n=="object"&&n!==null&&"j"in n}const jf={en:{en:"En
135
135
  <label class="TpField" style="margin-top: 1rem; flex-direction: row; align-items: center;">
136
136
  <input
137
137
  type="checkbox"
138
- class="TpMr2"
138
+ class="PaMr2"
139
139
  .checked=${l}
140
140
  @change=${g=>{l=g.target.checked,c=!0,u()}}
141
141
  style="width: auto; min-height: auto;"
@@ -241,7 +241,7 @@ function Vc(n){return typeof n=="object"&&n!==null&&"j"in n}const jf={en:{en:"En
241
241
  </dl>
242
242
  </div>
243
243
  </div>
244
- `;Fe(E,p)}async function g(){try{const E=await n.useAdminUiImage(i,{resizeRule:o});E&&(e.source=E.source,u=E,m())}catch(E){n.logger.error("Error fetching media:",E)}}m(),g();const b=document.createElement("div");b.classList.add("ButtonBar","spaceBetween","_paForm"),Fe(z`
244
+ `;Fe(E,p)}async function g(){try{const E=await n.useAdminUiImage(i,{resizeRule:o});E&&(e.source=E.source,u=E,m())}catch(E){n.logger.error("Error fetching media:",E)}}m(),g();const b=document.createElement("div");b.classList.add("PaButtonBar","spaceBetween","_paForm"),Fe(z`
245
245
  <button
246
246
  type="button"
247
247
  class="danger"
@@ -258,7 +258,7 @@ function Vc(n){return typeof n=="object"&&n!==null&&"j"in n}const jf={en:{en:"En
258
258
  </button>
259
259
  `,b);const k=n.createModalDialog({header:r.t("mediaNode.imageProperties"),content:p,footer:b});return await k.open()}async function ME({service:n,i18n:e}){const t=document.createElement("div");Fe(z`
260
260
  <p>${e.t("mediaNode.imageNoLongerExists")}</p>
261
- `,t);const r=document.createElement("div");r.classList.add("ButtonBar","spaceBetween","_paForm"),Fe(z`
261
+ `,t);const r=document.createElement("div");r.classList.add("PaButtonBar","spaceBetween","_paForm"),Fe(z`
262
262
  <button
263
263
  type="button"
264
264
  class="outlined"
@@ -383,7 +383,7 @@ function Vc(n){return typeof n=="object"&&n!==null&&"j"in n}const jf={en:{en:"En
383
383
  <label class="TpField" style="margin-top: 1rem; flex-direction: row; align-items: center;">
384
384
  <input
385
385
  type="checkbox"
386
- class="TpMr2"
386
+ class="M2"
387
387
  .checked=${o}
388
388
  @change=${f=>{o=f.target.checked,l()}}
389
389
  style="width: auto; min-height: auto;"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/tiptap-editor-plugin",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Tiptap editor plugin for ParoiCMS",
5
5
  "keywords": [
6
6
  "paroicms",
@@ -27,8 +27,8 @@
27
27
  "test:watch": "vitest"
28
28
  },
29
29
  "dependencies": {
30
- "@paroicms/markdown-to-tiptap-json": "0.2.6",
31
- "@paroicms/script-lib": "0.3.13",
30
+ "@paroicms/markdown-to-tiptap-json": "0.2.7",
31
+ "@paroicms/script-lib": "0.3.14",
32
32
  "@tiptap/core": "3.15.3",
33
33
  "@tiptap/extension-code": "3.15.3",
34
34
  "@tiptap/extension-code-block-lowlight": "3.15.3",
@@ -45,8 +45,8 @@
45
45
  "@paroicms/public-server-lib": "0"
46
46
  },
47
47
  "devDependencies": {
48
- "@paroicms/public-anywhere-lib": "0.41.1",
49
- "@paroicms/public-server-lib": "0.50.1",
48
+ "@paroicms/public-anywhere-lib": "0.41.2",
49
+ "@paroicms/public-server-lib": "0.50.3",
50
50
  "@types/node": "~24.10.7",
51
51
  "rimraf": "~6.1.2",
52
52
  "typescript": "~5.9.3",