@juit/vue-tiny-editor 1.0.68 → 1.0.69
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/index.css +2 -1
- package/dist/index.d.ts +91 -95
- package/dist/index.js +600 -633
- package/dist/index.js.map +1 -1
- package/package.json +15 -14
package/dist/index.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.juit-tiny-edit .-jte-root{--jte-curr-border-radius: var(--jte-border-radius, 4px);--jte-curr-text: var(--jte-text, currentColor);--jte-curr-background: var(--jte-background, transparent);--jte-curr-active: var(--jte-active, #009);--jte-curr-mention: var(--jte-mention, #99f);--jte-curr-popup: var(--jte-popup, #fff);--jte-curr-link: var(--jte-link, #009);--jte-curr-error: var(--jte-error, #933);--jte-curr-inactive: var(--jte-inactive, color-mix(in srgb, var(--jte-curr-text) 50%, transparent));--jte-curr-border: var(--jte-border, color-mix(in srgb, var(--jte-curr-text) 12.5%, transparent));--jte-curr-shade: var(--jte-shade, color-mix(in srgb, var(--jte-curr-text) 6.25%, transparent));--jte-curr-active-shade: var(--jte-active-shade, color-mix(in srgb, var(--jte-curr-active) 6.25%, transparent));--jte-curr-button-text: var(--jte-button-text, var(--jte-curr-text));--jte-curr-button-border: var(--jte-button-border, var(--jte-curr-border));--jte-curr-button-background: var(--jte-button-background, var(--jte-curr-background));--jte-curr-button-hovered-text: var(--jte-button-hovered-text, var(--jte-curr-text));--jte-curr-button-hovered-border: var(--jte-button-hovered-border, var(--jte-curr-border));--jte-curr-button-hovered-background: var(--jte-button-hovered-background, var(--jte-curr-shade));--jte-curr-button-active-text: var(--jte-button-active-text, var(--jte-curr-active));--jte-curr-button-active-border: var(--jte-button-active-border, var(--jte-curr-border));--jte-curr-button-active-background: var(--jte-button-active-background, var(--jte-curr-active-shade));--jte-curr-button-disabled-text: var(--jte-button-disabled-text, var(--jte-curr-inactive));--jte-curr-button-disabled-border: var(--jte-button-disabled-border, var(--jte-curr-border));--jte-curr-button-disabled-background: var(--jte-button-disabled-background, var(--jte-curr-shade));--jte-curr-input-text: var(--jte-input-text, var(--jte-curr-text));--jte-curr-input-background: var(--jte-input-background, transparent);--jte-curr-input-border: var(--jte-input-border, var(--jte-curr-border));--jte-curr-input-shade: var(--jte-input-shade, var(--jte-curr-shade))}.juit-tiny-edit.-jte-dark .-jte-root{--jte-curr-text: var(--jte-dark-text, currentColor);--jte-curr-background: var(--jte-dark-background, transparent);--jte-curr-active: var(--jte-dark-active, #99f);--jte-curr-mention: var(--jte-dark-mention, #669);--jte-curr-popup: var(--jte-dark-popup, #111);--jte-curr-link: var(--jte-dark-link, #99f);--jte-curr-error: var(--jte-dark-error, #f99);--jte-curr-inactive: var(--jte-dark-inactive, color-mix(in srgb, var(--jte-curr-text) 50%, transparent));--jte-curr-border: var(--jte-dark-border, color-mix(in srgb, var(--jte-curr-text) 12.5%, transparent));--jte-curr-shade: var(--jte-dark-shade, color-mix(in srgb, var(--jte-curr-text) 12.5%, transparent));--jte-curr-active-shade: var(--jte-dark-active-shade, color-mix(in srgb, var(--jte-curr-active) 6.25%, transparent));--jte-curr-button-text: var(--jte-dark-button-text, var(--jte-curr-text));--jte-curr-button-border: var(--jte-dark-button-border, var(--jte-curr-border));--jte-curr-button-background: var(--jte-dark-button-background, var(--jte-curr-background));--jte-curr-button-hovered-text: var(--jte-dark-button-hovered-text, var(--jte-curr-text));--jte-curr-button-hovered-border: var(--jte-dark-button-hovered-border, var(--jte-curr-border));--jte-curr-button-hovered-background: var(--jte-dark-button-hovered-background, var(--jte-curr-shade));--jte-curr-button-active-text: var(--jte-dark-button-active-text, var(--jte-curr-active));--jte-curr-button-active-border: var(--jte-dark-button-active-border, var(--jte-curr-border));--jte-curr-button-active-background: var(--jte-dark-button-active-background, var(--jte-curr-active-shade));--jte-curr-button-disabled-text: var(--jte-dark-button-disabled-text, var(--jte-curr-inactive));--jte-curr-button-disabled-border: var(--jte-dark-button-disabled-border, var(--jte-curr-border));--jte-curr-button-disabled-background: var(--jte-dark-button-disabled-background, var(--jte-curr-shade));--jte-curr-input-text: var(--jte-dark-input-text, var(--jte-curr-text));--jte-curr-input-background: var(--jte-dark-input-background, transparent);--jte-curr-input-border: var(--jte-dark-input-border, var(--jte-curr-border));--jte-curr-input-shade: var(--jte-dark-input-shade, var(--jte-curr-shade))}.juit-tiny-edit .-jte-root{display:flex;flex-direction:column;align-items:stretch;position:relative;box-sizing:content-box;color:var(--jte-curr-text);background-color:var(--jte-curr-background)}.juit-tiny-edit .-jte-root .-jte-toolbox{display:none;-webkit-user-select:none;user-select:none;position:relative;height:1.75em;overflow:hidden;margin-top:.75em;padding:0 .25em}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon{width:1em;height:1em;padding:.125em .25em;margin:0 .25em;vertical-align:top;color:var(--jte-curr-button-text);background-color:var(--jte-curr-button-background);border:1px solid var(--jte-curr-button-border);border-radius:var(--jte-curr-border-radius)}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon.-jte-icon-mention{margin-left:.125em}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon.-jte-icon-send{margin-left:auto;margin-right:.125em;padding-left:1em;padding-right:1em}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon.-jte-disabled{color:var(--jte-curr-button-disabled-text);border-color:var(--jte-curr-button-disabled-border);background-color:var(--jte-curr-button-disabled-background)}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon.-jte-active{color:var(--jte-curr-button-active-text);border-color:var(--jte-curr-button-active-border);background-color:var(--jte-curr-button-active-background)}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon:active:not(.-jte-disabled){color:var(--jte-curr-button-active-text);border-color:var(--jte-curr-button-active-border);background-color:var(--jte-curr-button-active-background)}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon:hover:not(.-jte-disabled):not(.-jte-active):not(:active){color:var(--jte-curr-button-hovered-text);border-color:var(--jte-curr-button-hovered-border);background-color:var(--jte-curr-button-hovered-background)}.juit-tiny-edit .-jte-root .-jte-placeholder{position:absolute;padding:.25em;pointer-events:none;color:var(--jte-curr-inactive)}.juit-tiny-edit .-jte-root .-jte-editor{width:100%;box-sizing:border-box;padding:.25em;white-space:pre-wrap;border-radius:var(--jte-curr-border-radius);border:1px solid var(--jte-curr-border)}.juit-tiny-edit .-jte-root .-jte-editor:focus{outline:1px solid var(--jte-curr-active);border:1px solid var(--jte-curr-active)}.juit-tiny-edit .-jte-root .-jte-editor a{color:var(--jte-curr-link)}.juit-tiny-edit .-jte-root .-jte-editor link[rel=mention]{display:inline;cursor:default;-webkit-user-select:none;user-select:none;font-weight:400;font-style:normal;text-decoration:none;font-size:.85em;overflow:hidden}.juit-tiny-edit .-jte-root .-jte-editor link[rel=mention]:before{padding:0 .25em;content:"";background-color:var(--jte-curr-mention);border:1px solid var(--jte-curr-border);border-radius:var(--jte-curr-border-radius);border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.juit-tiny-edit .-jte-root .-jte-editor link[rel=mention]:after{content:attr(title);padding:0 .5em 0 .25em;background-color:var(--jte-curr-shade);border:1px solid var(--jte-curr-border);border-radius:var(--jte-curr-border-radius);border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.juit-tiny-edit .-jte-root .-jte-mentions-popup,.juit-tiny-edit .-jte-root .-jte-links-popup{display:none;position:absolute;z-index:1000;font-size:.85em;background-color:var(--jte-curr-popup);border-radius:var(--jte-curr-border-radius);border:1px solid var(--jte-curr-border)}.juit-tiny-edit .-jte-root .-jte-mentions-popup{overflow:hidden;cursor:pointer;min-width:8em}.juit-tiny-edit .-jte-root .-jte-mentions-popup ul{overflow:scroll;max-height:calc(7.5em + 3px);white-space:nowrap;margin:0;padding:0}.juit-tiny-edit .-jte-root .-jte-mentions-popup li{list-style-type:none;border-top:1px solid transparent;border-bottom:1px solid transparent;color:var(--jte-curr-inactive)}.juit-tiny-edit .-jte-root .-jte-mentions-popup li .-jte-mentions-entry{padding-block:.125em;padding-left:.25em;padding-right:1.5em;border-left-width:.5em;border-left-style:solid;border-left-color:transparent}.juit-tiny-edit .-jte-root .-jte-mentions-popup li .-jte-mentions-entry .-jte-mentions-ref{margin-left:.5em;font-size:.85em;font-style:italic}.juit-tiny-edit .-jte-root .-jte-mentions-popup li.-jte-mentions-selected{color:var(--jte-curr-input-text);background-color:var(--jte-curr-shade);border-color:var(--jte-curr-input-border)}.juit-tiny-edit .-jte-root .-jte-mentions-popup li.-jte-mentions-selected .-jte-mentions-entry{border-color:var(--jte-curr-mention)}.juit-tiny-edit .-jte-root .-jte-mentions-popup li:first-child{border-top:none}.juit-tiny-edit .-jte-root .-jte-mentions-popup li:last-child{border-bottom:none}.juit-tiny-edit .-jte-root .-jte-mentions-popup .-jte-mentions-waiting,.juit-tiny-edit .-jte-root .-jte-mentions-popup .-jte-mentions-none{font-size:.85em;color:var(--jte-curr-inactive);border-left-width:.5em;border-left-style:solid;border-color:transparent;padding-block:.125em;padding-inline:.25em}.juit-tiny-edit .-jte-root .-jte-mentions-popup .-jte-mentions-waiting{font-style:italic}.juit-tiny-edit .-jte-root .-jte-mentions-popup .-jte-mentions-none{border-color:var(--jte-curr-shade)}.juit-tiny-edit .-jte-root .-jte-links-popup{-webkit-user-select:none;user-select:none;padding:.125em;width:20em;flex-direction:column}.juit-tiny-edit .-jte-root .-jte-links-popup div{display:flex;flex-direction:row;margin:.25em;position:relative;background-color:var(--jte-curr-input-background);border-radius:var(--jte-curr-border-radius)}.juit-tiny-edit .-jte-root .-jte-links-popup .-jte-icon{display:block;position:absolute;top:1px;left:1px;width:1.25em;height:1.25em;padding:.125em .25em;margin:0;color:var(--jte-curr-input-text);background-color:var(--jte-curr-input-shade);border:none;border-radius:calc(var(--jte-curr-border-radius) - 1px);border-top-right-radius:0;border-bottom-right-radius:0;border-right:none}.juit-tiny-edit .-jte-root .-jte-links-popup input{display:block;flex-grow:1;font-size:1em;height:1.25em;padding:.125em .25em .125em 2.25em;margin:0;color:var(--jte-curr-input-text);border:1px solid var(--jte-curr-input-border);border-radius:var(--jte-curr-border-radius);background-color:transparent}.juit-tiny-edit .-jte-root .-jte-links-popup input:focus{outline:1px solid var(--jte-curr-active);border:1px solid var(--jte-curr-active)}.juit-tiny-edit .-jte-root .-jte-links-popup .-jte-error .-jte-icon,.juit-tiny-edit .-jte-root .-jte-links-popup .-jte-error input{color:var(--jte-curr-error)}.juit-tiny-edit.-jte-editable .-jte-editor{padding-bottom:2.5em;margin-bottom:-2.5em}.juit-tiny-edit.-jte-editable .-jte-toolbox{display:flex}
|
|
1
|
+
.juit-tiny-edit .-jte-root{--jte-curr-border-radius:var(--jte-border-radius,4px);--jte-curr-text:var(--jte-text,currentColor);--jte-curr-background:var(--jte-background,transparent);--jte-curr-active:var(--jte-active,#009);--jte-curr-mention:var(--jte-mention,#99f);--jte-curr-popup:var(--jte-popup,#fff);--jte-curr-link:var(--jte-link,#009);--jte-curr-error:var(--jte-error,#933);--jte-curr-inactive:var(--jte-inactive,color-mix(in srgb, var(--jte-curr-text) 50%, transparent));--jte-curr-border:var(--jte-border,color-mix(in srgb, var(--jte-curr-text) 12.5%, transparent));--jte-curr-shade:var(--jte-shade,color-mix(in srgb, var(--jte-curr-text) 6.25%, transparent));--jte-curr-active-shade:var(--jte-active-shade,color-mix(in srgb, var(--jte-curr-active) 6.25%, transparent));--jte-curr-button-text:var(--jte-button-text,var(--jte-curr-text));--jte-curr-button-border:var(--jte-button-border,var(--jte-curr-border));--jte-curr-button-background:var(--jte-button-background,var(--jte-curr-background));--jte-curr-button-hovered-text:var(--jte-button-hovered-text,var(--jte-curr-text));--jte-curr-button-hovered-border:var(--jte-button-hovered-border,var(--jte-curr-border));--jte-curr-button-hovered-background:var(--jte-button-hovered-background,var(--jte-curr-shade));--jte-curr-button-active-text:var(--jte-button-active-text,var(--jte-curr-active));--jte-curr-button-active-border:var(--jte-button-active-border,var(--jte-curr-border));--jte-curr-button-active-background:var(--jte-button-active-background,var(--jte-curr-active-shade));--jte-curr-button-disabled-text:var(--jte-button-disabled-text,var(--jte-curr-inactive));--jte-curr-button-disabled-border:var(--jte-button-disabled-border,var(--jte-curr-border));--jte-curr-button-disabled-background:var(--jte-button-disabled-background,var(--jte-curr-shade));--jte-curr-input-text:var(--jte-input-text,var(--jte-curr-text));--jte-curr-input-background:var(--jte-input-background,transparent);--jte-curr-input-border:var(--jte-input-border,var(--jte-curr-border));--jte-curr-input-shade:var(--jte-input-shade,var(--jte-curr-shade))}.juit-tiny-edit.-jte-dark .-jte-root{--jte-curr-text:var(--jte-dark-text,currentColor);--jte-curr-background:var(--jte-dark-background,transparent);--jte-curr-active:var(--jte-dark-active,#99f);--jte-curr-mention:var(--jte-dark-mention,#669);--jte-curr-popup:var(--jte-dark-popup,#111);--jte-curr-link:var(--jte-dark-link,#99f);--jte-curr-error:var(--jte-dark-error,#f99);--jte-curr-inactive:var(--jte-dark-inactive,color-mix(in srgb, var(--jte-curr-text) 50%, transparent));--jte-curr-border:var(--jte-dark-border,color-mix(in srgb, var(--jte-curr-text) 12.5%, transparent));--jte-curr-shade:var(--jte-dark-shade,color-mix(in srgb, var(--jte-curr-text) 12.5%, transparent));--jte-curr-active-shade:var(--jte-dark-active-shade,color-mix(in srgb, var(--jte-curr-active) 6.25%, transparent));--jte-curr-button-text:var(--jte-dark-button-text,var(--jte-curr-text));--jte-curr-button-border:var(--jte-dark-button-border,var(--jte-curr-border));--jte-curr-button-background:var(--jte-dark-button-background,var(--jte-curr-background));--jte-curr-button-hovered-text:var(--jte-dark-button-hovered-text,var(--jte-curr-text));--jte-curr-button-hovered-border:var(--jte-dark-button-hovered-border,var(--jte-curr-border));--jte-curr-button-hovered-background:var(--jte-dark-button-hovered-background,var(--jte-curr-shade));--jte-curr-button-active-text:var(--jte-dark-button-active-text,var(--jte-curr-active));--jte-curr-button-active-border:var(--jte-dark-button-active-border,var(--jte-curr-border));--jte-curr-button-active-background:var(--jte-dark-button-active-background,var(--jte-curr-active-shade));--jte-curr-button-disabled-text:var(--jte-dark-button-disabled-text,var(--jte-curr-inactive));--jte-curr-button-disabled-border:var(--jte-dark-button-disabled-border,var(--jte-curr-border));--jte-curr-button-disabled-background:var(--jte-dark-button-disabled-background,var(--jte-curr-shade));--jte-curr-input-text:var(--jte-dark-input-text,var(--jte-curr-text));--jte-curr-input-background:var(--jte-dark-input-background,transparent);--jte-curr-input-border:var(--jte-dark-input-border,var(--jte-curr-border));--jte-curr-input-shade:var(--jte-dark-input-shade,var(--jte-curr-shade))}.juit-tiny-edit .-jte-root{box-sizing:content-box;color:var(--jte-curr-text);background-color:var(--jte-curr-background);flex-direction:column;align-items:stretch;display:flex;position:relative}.juit-tiny-edit .-jte-root .-jte-toolbox{-webkit-user-select:none;user-select:none;height:1.75em;margin-top:.75em;padding:0 .25em;display:none;position:relative;overflow:hidden}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon{vertical-align:top;width:1em;height:1em;color:var(--jte-curr-button-text);background-color:var(--jte-curr-button-background);border:1px solid var(--jte-curr-button-border);border-radius:var(--jte-curr-border-radius);margin:0 .25em;padding:.125em .25em}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon.-jte-icon-mention{margin-left:.125em}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon.-jte-icon-send{margin-left:auto;margin-right:.125em;padding-left:1em;padding-right:1em}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon.-jte-disabled{color:var(--jte-curr-button-disabled-text);border-color:var(--jte-curr-button-disabled-border);background-color:var(--jte-curr-button-disabled-background)}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon.-jte-active,.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon:active:not(.-jte-disabled){color:var(--jte-curr-button-active-text);border-color:var(--jte-curr-button-active-border);background-color:var(--jte-curr-button-active-background)}.juit-tiny-edit .-jte-root .-jte-toolbox .-jte-icon:hover:not(.-jte-disabled):not(.-jte-active):not(:active){color:var(--jte-curr-button-hovered-text);border-color:var(--jte-curr-button-hovered-border);background-color:var(--jte-curr-button-hovered-background)}.juit-tiny-edit .-jte-root .-jte-placeholder{pointer-events:none;color:var(--jte-curr-inactive);padding:.25em;position:absolute}.juit-tiny-edit .-jte-root .-jte-editor{box-sizing:border-box;white-space:pre-wrap;border-radius:var(--jte-curr-border-radius);border:1px solid var(--jte-curr-border);width:100%;padding:.25em}.juit-tiny-edit .-jte-root .-jte-editor:focus{outline:1px solid var(--jte-curr-active);border:1px solid var(--jte-curr-active)}.juit-tiny-edit .-jte-root .-jte-editor a{color:var(--jte-curr-link)}.juit-tiny-edit .-jte-root .-jte-editor link[rel=mention]{cursor:default;-webkit-user-select:none;user-select:none;font-size:.85em;font-style:normal;font-weight:400;text-decoration:none;display:inline;overflow:hidden}.juit-tiny-edit .-jte-root .-jte-editor link[rel=mention]:before{content:"";background-color:var(--jte-curr-mention);border:1px solid var(--jte-curr-border);border-radius:var(--jte-curr-border-radius);border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;padding:0 .25em}.juit-tiny-edit .-jte-root .-jte-editor link[rel=mention]:after{content:attr(title);background-color:var(--jte-curr-shade);border:1px solid var(--jte-curr-border);border-radius:var(--jte-curr-border-radius);border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;padding:0 .5em 0 .25em}.juit-tiny-edit .-jte-root .-jte-mentions-popup,.juit-tiny-edit .-jte-root .-jte-links-popup{z-index:1000;background-color:var(--jte-curr-popup);border-radius:var(--jte-curr-border-radius);border:1px solid var(--jte-curr-border);font-size:.85em;display:none;position:absolute}.juit-tiny-edit .-jte-root .-jte-mentions-popup{cursor:pointer;min-width:8em;overflow:hidden}.juit-tiny-edit .-jte-root .-jte-mentions-popup ul{white-space:nowrap;max-height:calc(7.5em + 3px);margin:0;padding:0;overflow:scroll}.juit-tiny-edit .-jte-root .-jte-mentions-popup li{color:var(--jte-curr-inactive);border-top:1px solid #0000;border-bottom:1px solid #0000;list-style-type:none}.juit-tiny-edit .-jte-root .-jte-mentions-popup li .-jte-mentions-entry{padding-block:.125em;border-left:.5em solid #0000;padding-left:.25em;padding-right:1.5em}.juit-tiny-edit .-jte-root .-jte-mentions-popup li .-jte-mentions-entry .-jte-mentions-ref{margin-left:.5em;font-size:.85em;font-style:italic}.juit-tiny-edit .-jte-root .-jte-mentions-popup li.-jte-mentions-selected{color:var(--jte-curr-input-text);background-color:var(--jte-curr-shade);border-color:var(--jte-curr-input-border)}.juit-tiny-edit .-jte-root .-jte-mentions-popup li.-jte-mentions-selected .-jte-mentions-entry{border-color:var(--jte-curr-mention)}.juit-tiny-edit .-jte-root .-jte-mentions-popup li:first-child{border-top:none}.juit-tiny-edit .-jte-root .-jte-mentions-popup li:last-child{border-bottom:none}.juit-tiny-edit .-jte-root .-jte-mentions-popup .-jte-mentions-waiting,.juit-tiny-edit .-jte-root .-jte-mentions-popup .-jte-mentions-none{color:var(--jte-curr-inactive);border-color:#0000;border-left-style:solid;border-left-width:.5em;padding-block:.125em;padding-inline:.25em;font-size:.85em}.juit-tiny-edit .-jte-root .-jte-mentions-popup .-jte-mentions-waiting{font-style:italic}.juit-tiny-edit .-jte-root .-jte-mentions-popup .-jte-mentions-none{border-color:var(--jte-curr-shade)}.juit-tiny-edit .-jte-root .-jte-links-popup{-webkit-user-select:none;user-select:none;flex-direction:column;width:20em;padding:.125em}.juit-tiny-edit .-jte-root .-jte-links-popup div{background-color:var(--jte-curr-input-background);border-radius:var(--jte-curr-border-radius);flex-direction:row;margin:.25em;display:flex;position:relative}.juit-tiny-edit .-jte-root .-jte-links-popup .-jte-icon{width:1.25em;height:1.25em;color:var(--jte-curr-input-text);background-color:var(--jte-curr-input-shade);border-radius:calc(var(--jte-curr-border-radius) - 1px);border:none;border-top-right-radius:0;border-bottom-right-radius:0;margin:0;padding:.125em .25em;display:block;position:absolute;top:1px;left:1px}.juit-tiny-edit .-jte-root .-jte-links-popup input{height:1.25em;color:var(--jte-curr-input-text);border:1px solid var(--jte-curr-input-border);border-radius:var(--jte-curr-border-radius);background-color:#0000;flex-grow:1;margin:0;padding:.125em .25em .125em 2.25em;font-size:1em;display:block}.juit-tiny-edit .-jte-root .-jte-links-popup input:focus{outline:1px solid var(--jte-curr-active);border:1px solid var(--jte-curr-active)}.juit-tiny-edit .-jte-root .-jte-links-popup .-jte-error .-jte-icon,.juit-tiny-edit .-jte-root .-jte-links-popup .-jte-error input{color:var(--jte-curr-error)}.juit-tiny-edit.-jte-editable .-jte-editor{margin-bottom:-2.5em;padding-bottom:2.5em}.juit-tiny-edit.-jte-editable .-jte-toolbox{display:flex}
|
|
2
|
+
/*$vite$:1*/
|
package/dist/index.d.ts
CHANGED
|
@@ -5,104 +5,100 @@ import { ExtractPropTypes } from 'vue';
|
|
|
5
5
|
import { PropType } from 'vue';
|
|
6
6
|
import { PublicProps } from 'vue';
|
|
7
7
|
|
|
8
|
-
declare const
|
|
9
|
-
/** A flag indicating if content can be edited (default: `true`) */
|
|
10
|
-
editable: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
required: false;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
/** A flag indicating whether dark mode is enabled or not */
|
|
16
|
-
dark: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
required: false;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
/** A placeholder for when no text is available */
|
|
22
|
-
placeholder: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
required: false;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
/** A list of mentions to be used in the editor */
|
|
28
|
-
mentions: {
|
|
29
|
-
type: PropType<Record<string, string> | null>;
|
|
30
|
-
required: false;
|
|
31
|
-
default: () => {};
|
|
32
|
-
};
|
|
33
|
-
/** Used as `@mention="..."`, notify the current mention text (`@abc...`) */
|
|
34
|
-
onMention: {
|
|
35
|
-
type: PropType<((text: string) => any) | undefined>;
|
|
36
|
-
required: false;
|
|
37
|
-
default: undefined;
|
|
38
|
-
};
|
|
39
|
-
/** Used as `@submit="..."`, will display the send button and emit HTML */
|
|
40
|
-
onSubmit: {
|
|
41
|
-
type: PropType<((html: string) => any) | undefined>;
|
|
42
|
-
required: false;
|
|
43
|
-
default: undefined;
|
|
44
|
-
};
|
|
45
|
-
modelValue: {
|
|
46
|
-
type: PropType<string>;
|
|
47
|
-
};
|
|
8
|
+
declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
9
|
+
/** A flag indicating if content can be edited (default: `true`) */
|
|
10
|
+
editable: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
/** A flag indicating whether dark mode is enabled or not */
|
|
16
|
+
dark: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** A placeholder for when no text is available */
|
|
22
|
+
placeholder: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
/** A list of mentions to be used in the editor */
|
|
28
|
+
mentions: {
|
|
29
|
+
type: PropType<Record<string, string> | null>;
|
|
30
|
+
required: false;
|
|
31
|
+
default: () => {};
|
|
32
|
+
};
|
|
33
|
+
/** Used as `@mention="..."`, notify the current mention text (`@abc...`) */
|
|
34
|
+
onMention: {
|
|
35
|
+
type: PropType<((text: string) => any) | undefined>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
/** Used as `@submit="..."`, will display the send button and emit HTML */
|
|
40
|
+
onSubmit: {
|
|
41
|
+
type: PropType<((html: string) => any) | undefined>;
|
|
42
|
+
required: false;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
modelValue: {
|
|
46
|
+
type: PropType<string>;
|
|
47
|
+
};
|
|
48
48
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
49
|
-
"update:modelValue": (value: string) => any;
|
|
50
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<
|
|
51
|
-
/** A flag indicating if content can be edited (default: `true`) */
|
|
52
|
-
editable: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
required: false;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
|
-
/** A flag indicating whether dark mode is enabled or not */
|
|
58
|
-
dark: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
required: false;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
/** A placeholder for when no text is available */
|
|
64
|
-
placeholder: {
|
|
65
|
-
type: StringConstructor;
|
|
66
|
-
required: false;
|
|
67
|
-
default: string;
|
|
68
|
-
};
|
|
69
|
-
/** A list of mentions to be used in the editor */
|
|
70
|
-
mentions: {
|
|
71
|
-
type: PropType<Record<string, string> | null>;
|
|
72
|
-
required: false;
|
|
73
|
-
default: () => {};
|
|
74
|
-
};
|
|
75
|
-
/** Used as `@mention="..."`, notify the current mention text (`@abc...`) */
|
|
76
|
-
onMention: {
|
|
77
|
-
type: PropType<((text: string) => any) | undefined>;
|
|
78
|
-
required: false;
|
|
79
|
-
default: undefined;
|
|
80
|
-
};
|
|
81
|
-
/** Used as `@submit="..."`, will display the send button and emit HTML */
|
|
82
|
-
onSubmit: {
|
|
83
|
-
type: PropType<((html: string) => any) | undefined>;
|
|
84
|
-
required: false;
|
|
85
|
-
default: undefined;
|
|
86
|
-
};
|
|
87
|
-
modelValue: {
|
|
88
|
-
type: PropType<string>;
|
|
89
|
-
};
|
|
49
|
+
"update:modelValue": (value: string) => any;
|
|
50
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
51
|
+
/** A flag indicating if content can be edited (default: `true`) */
|
|
52
|
+
editable: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
required: false;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
/** A flag indicating whether dark mode is enabled or not */
|
|
58
|
+
dark: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
required: false;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
/** A placeholder for when no text is available */
|
|
64
|
+
placeholder: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: false;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
/** A list of mentions to be used in the editor */
|
|
70
|
+
mentions: {
|
|
71
|
+
type: PropType<Record<string, string> | null>;
|
|
72
|
+
required: false;
|
|
73
|
+
default: () => {};
|
|
74
|
+
};
|
|
75
|
+
/** Used as `@mention="..."`, notify the current mention text (`@abc...`) */
|
|
76
|
+
onMention: {
|
|
77
|
+
type: PropType<((text: string) => any) | undefined>;
|
|
78
|
+
required: false;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
81
|
+
/** Used as `@submit="..."`, will display the send button and emit HTML */
|
|
82
|
+
onSubmit: {
|
|
83
|
+
type: PropType<((html: string) => any) | undefined>;
|
|
84
|
+
required: false;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
modelValue: {
|
|
88
|
+
type: PropType<string>;
|
|
89
|
+
};
|
|
90
90
|
}>> & Readonly<{
|
|
91
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
91
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
92
92
|
}>, {
|
|
93
|
-
editable: boolean;
|
|
94
|
-
dark: boolean;
|
|
95
|
-
placeholder: string;
|
|
96
|
-
mentions: Record<string, string> | null;
|
|
97
|
-
onMention: ((text: string) => any) | undefined;
|
|
98
|
-
onSubmit: ((html: string) => any) | undefined;
|
|
99
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
mentionsListRef: HTMLUListElement;
|
|
103
|
-
linksPopupRef: HTMLDivElement;
|
|
104
|
-
editorRef: HTMLDivElement;
|
|
105
|
-
}, HTMLDivElement>;
|
|
93
|
+
editable: boolean;
|
|
94
|
+
dark: boolean;
|
|
95
|
+
placeholder: string;
|
|
96
|
+
mentions: Record<string, string> | null;
|
|
97
|
+
onMention: ((text: string) => any) | undefined;
|
|
98
|
+
onSubmit: ((html: string) => any) | undefined;
|
|
99
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
100
|
+
|
|
101
|
+
declare const _default: typeof __VLS_export;
|
|
106
102
|
export default _default;
|
|
107
103
|
|
|
108
104
|
export { }
|