You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-bootstrap-editor

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap-editor - npm Package Compare versions

Package version was removed
This package version has been unpublished, mostly likely due to security reasons

Comparing version

to
1.0.0-rc.7

10

dist/index.d.ts

@@ -1,3 +0,4 @@

import React, { RefObject, PropsWithoutRef, PureComponent } from "react";
import React, { RefObject, PropsWithoutRef, PureComponent, ClipboardEvent, DragEvent } from "react";
import { Tool, BoldTool as _BoldTool1, ItalicTool as _ItalicTool1, UnderlineTool as _UnderlineTool1, StrikeThroughTool as _StrikeThroughTool1, H1Tool as _H1Tool1, H2Tool as _H2Tool1, H3Tool as _H3Tool1, FontSizeDownTool as _FontSizeDownTool1, FontSizeUpTool as _FontSizeUpTool1, SubscriptTool as _SubscriptTool1, SuperscriptTool as _SuperscriptTool1, LinkTool as _LinkTool1, ColorName, ColorTool, ForeColorTool as _ForeColorTool1, BackColorTool as _BackColorTool1, AlignLeftTool as _AlignLeftTool1, AlignCenterTool as _AlignCenterTool1, AlignRightTool as _AlignRightTool1, AlignFullTool as _AlignFullTool1, OrderedListTool as _OrderedListTool1, UnorderedListTool as _UnorderedListTool1, HorizontalRuleTool as _HorizontalRuleTool1, IFrameTool as _IFrameTool1, ImageTool as _ImageTool1, AudioTool as _AudioTool1, VideoTool as _VideoTool1, UndoTool as _UndoTool1, RedoTool as _RedoTool1, ResetTool as _ResetTool1, ClearTool as _ClearTool1 } from "edkit";
import { Constructor } from "web-utility";
export function renderTool(this: Tool, editor: RefObject<HTMLElement>): JSX.Element;

@@ -141,3 +142,3 @@ export class BoldTool extends _BoldTool1 {

}[];
value?: string;
defaultValue?: string;
onChange?(value: string): any;

@@ -156,6 +157,9 @@ }>;

};
static getDerivedStateFromProps({ tools, value }: EditorProps, { toolList, data }: EditorState): EditorState;
static getDerivedStateFromProps({ tools, defaultValue }: EditorProps, { toolList, data }: EditorState): EditorState;
componentDidMount(): void;
componentWillUnmount(): void;
updateTools: () => void;
uploadFile(Type: Constructor<ImageTool> | Constructor<AudioTool> | Constructor<VideoTool>, data: string | Blob): Promise<string>;
clearHTML(markup: string): Promise<DocumentFragment>;
handlePasteDrop: (event: ClipboardEvent | DragEvent) => Promise<void>;
render(): JSX.Element;

@@ -162,0 +166,0 @@ }

@@ -1,5 +0,6 @@

import {jsx as $13t2B$jsx, jsxs as $13t2B$jsxs, Fragment as $13t2B$Fragment} from "react/jsx-runtime";
import {createRef as $13t2B$createRef, PureComponent as $13t2B$PureComponent} from "react";
import {defineProperty as $13t2B$defineProperty} from "@swc/helpers";
import {BoldTool as $13t2B$BoldTool, ItalicTool as $13t2B$ItalicTool, UnderlineTool as $13t2B$UnderlineTool, StrikeThroughTool as $13t2B$StrikeThroughTool, H1Tool as $13t2B$H1Tool, H2Tool as $13t2B$H2Tool, H3Tool as $13t2B$H3Tool, FontSizeDownTool as $13t2B$FontSizeDownTool, FontSizeUpTool as $13t2B$FontSizeUpTool, SubscriptTool as $13t2B$SubscriptTool, SuperscriptTool as $13t2B$SuperscriptTool, LinkTool as $13t2B$LinkTool, ForeColorTool as $13t2B$ForeColorTool, BackColorTool as $13t2B$BackColorTool, AlignLeftTool as $13t2B$AlignLeftTool, AlignCenterTool as $13t2B$AlignCenterTool, AlignRightTool as $13t2B$AlignRightTool, AlignFullTool as $13t2B$AlignFullTool, OrderedListTool as $13t2B$OrderedListTool, UnorderedListTool as $13t2B$UnorderedListTool, HorizontalRuleTool as $13t2B$HorizontalRuleTool, IFrameTool as $13t2B$IFrameTool, ImageTool as $13t2B$ImageTool, AudioTool as $13t2B$AudioTool, VideoTool as $13t2B$VideoTool, UndoTool as $13t2B$UndoTool, RedoTool as $13t2B$RedoTool, ResetTool as $13t2B$ResetTool, ClearTool as $13t2B$ClearTool} from "edkit";
import {jsx as $QdH60$jsx, jsxs as $QdH60$jsxs, Fragment as $QdH60$Fragment} from "react/jsx-runtime";
import {createRef as $QdH60$createRef, PureComponent as $QdH60$PureComponent} from "react";
import $QdH60$swchelperssrc_define_propertymjs from "@swc/helpers/src/_define_property.mjs";
import {BoldTool as $QdH60$BoldTool, ItalicTool as $QdH60$ItalicTool, UnderlineTool as $QdH60$UnderlineTool, StrikeThroughTool as $QdH60$StrikeThroughTool, H1Tool as $QdH60$H1Tool, H2Tool as $QdH60$H2Tool, H3Tool as $QdH60$H3Tool, FontSizeDownTool as $QdH60$FontSizeDownTool, FontSizeUpTool as $QdH60$FontSizeUpTool, SubscriptTool as $QdH60$SubscriptTool, SuperscriptTool as $QdH60$SuperscriptTool, LinkTool as $QdH60$LinkTool, ForeColorTool as $QdH60$ForeColorTool, BackColorTool as $QdH60$BackColorTool, AlignLeftTool as $QdH60$AlignLeftTool, AlignCenterTool as $QdH60$AlignCenterTool, AlignRightTool as $QdH60$AlignRightTool, AlignFullTool as $QdH60$AlignFullTool, OrderedListTool as $QdH60$OrderedListTool, UnorderedListTool as $QdH60$UnorderedListTool, HorizontalRuleTool as $QdH60$HorizontalRuleTool, IFrameTool as $QdH60$IFrameTool, ImageTool as $QdH60$ImageTool, AudioTool as $QdH60$AudioTool, VideoTool as $QdH60$VideoTool, UndoTool as $QdH60$UndoTool, RedoTool as $QdH60$RedoTool, ResetTool as $QdH60$ResetTool, ClearTool as $QdH60$ClearTool} from "edkit";
import {blobOf as $QdH60$blobOf, parseDOM as $QdH60$parseDOM, walkDOM as $QdH60$walkDOM, insertToCursor as $QdH60$insertToCursor} from "web-utility";

@@ -25,11 +26,11 @@ function $parcel$export(e, n, v, s) {

}
var $43d566ad2fe8cba8$exports = {};
var $9e8d201707fc0f31$exports = {};
$parcel$export($43d566ad2fe8cba8$exports, "renderTool", function () { return $43d566ad2fe8cba8$export$56ccecc1dac11363; });
$parcel$export($9e8d201707fc0f31$exports, "renderTool", function () { return $9e8d201707fc0f31$export$56ccecc1dac11363; });
function $43d566ad2fe8cba8$export$56ccecc1dac11363(editor) {
function $9e8d201707fc0f31$export$56ccecc1dac11363(editor) {
const { title: title , active: active , icon: icon , usable: usable } = this;
const Class = `btn btn-${(active ? '' : 'outline-') + 'secondary'} me-2 mb-2`;
return /*#__PURE__*/ $13t2B$jsx("button", {
const Class = `btn btn-${(active ? "" : "outline-") + "secondary"} me-2 mb-2`;
return /*#__PURE__*/ (0, $QdH60$jsx)("button", {
type: "button",

@@ -39,3 +40,3 @@ title: title,

style: {
cursor: usable ? 'pointer' : 'not-allowed'
cursor: usable ? "pointer" : "not-allowed"
},

@@ -47,3 +48,3 @@ disabled: !usable,

},
children: /*#__PURE__*/ $13t2B$jsx("i", {
children: /*#__PURE__*/ (0, $QdH60$jsx)("i", {
className: `bi-${icon}`

@@ -55,110 +56,110 @@ })

var $1a9e4a89b237a23e$exports = {};
var $e38b04d9d2c72891$exports = {};
$parcel$export($1a9e4a89b237a23e$exports, "TextTools", function () { return $1a9e4a89b237a23e$export$e252ba763eff5cdc; });
$parcel$export($1a9e4a89b237a23e$exports, "ColorTools", function () { return $1a9e4a89b237a23e$export$bdef6e97a10dbad4; });
$parcel$export($1a9e4a89b237a23e$exports, "LayoutTools", function () { return $1a9e4a89b237a23e$export$145c1b37c0810d7; });
$parcel$export($1a9e4a89b237a23e$exports, "MediaTools", function () { return $1a9e4a89b237a23e$export$999636c6e25075fb; });
$parcel$export($1a9e4a89b237a23e$exports, "ControlTools", function () { return $1a9e4a89b237a23e$export$f35db4b82786c3a4; });
$parcel$export($1a9e4a89b237a23e$exports, "OriginalTools", function () { return $1a9e4a89b237a23e$export$9ddb256264948609; });
$parcel$export($1a9e4a89b237a23e$exports, "DefaultTools", function () { return $1a9e4a89b237a23e$export$aa718db1466ce312; });
var $eaf87102ba547294$exports = {};
$parcel$export($e38b04d9d2c72891$exports, "TextTools", function () { return $e38b04d9d2c72891$export$e252ba763eff5cdc; });
$parcel$export($e38b04d9d2c72891$exports, "ColorTools", function () { return $e38b04d9d2c72891$export$bdef6e97a10dbad4; });
$parcel$export($e38b04d9d2c72891$exports, "LayoutTools", function () { return $e38b04d9d2c72891$export$145c1b37c0810d7; });
$parcel$export($e38b04d9d2c72891$exports, "MediaTools", function () { return $e38b04d9d2c72891$export$999636c6e25075fb; });
$parcel$export($e38b04d9d2c72891$exports, "ControlTools", function () { return $e38b04d9d2c72891$export$f35db4b82786c3a4; });
$parcel$export($e38b04d9d2c72891$exports, "OriginalTools", function () { return $e38b04d9d2c72891$export$9ddb256264948609; });
$parcel$export($e38b04d9d2c72891$exports, "DefaultTools", function () { return $e38b04d9d2c72891$export$aa718db1466ce312; });
var $84e1677d856194d7$exports = {};
$parcel$export($eaf87102ba547294$exports, "BoldTool", function () { return $eaf87102ba547294$export$10056a49e3b218eb; });
$parcel$export($eaf87102ba547294$exports, "ItalicTool", function () { return $eaf87102ba547294$export$edf99d0f51bacb1e; });
$parcel$export($eaf87102ba547294$exports, "UnderlineTool", function () { return $eaf87102ba547294$export$4b6d9c17188960d2; });
$parcel$export($eaf87102ba547294$exports, "StrikeThroughTool", function () { return $eaf87102ba547294$export$a35bffaeae8fdda0; });
$parcel$export($eaf87102ba547294$exports, "H1Tool", function () { return $eaf87102ba547294$export$30e8c6b428f8749f; });
$parcel$export($eaf87102ba547294$exports, "H2Tool", function () { return $eaf87102ba547294$export$58443375efa91029; });
$parcel$export($eaf87102ba547294$exports, "H3Tool", function () { return $eaf87102ba547294$export$75d24d6b8b747307; });
$parcel$export($eaf87102ba547294$exports, "FontSizeDownTool", function () { return $eaf87102ba547294$export$a20806c6ef6938f8; });
$parcel$export($eaf87102ba547294$exports, "FontSizeUpTool", function () { return $eaf87102ba547294$export$744da7e24e4a7382; });
$parcel$export($eaf87102ba547294$exports, "SubscriptTool", function () { return $eaf87102ba547294$export$6137518b4e998008; });
$parcel$export($eaf87102ba547294$exports, "SuperscriptTool", function () { return $eaf87102ba547294$export$7217f06c61ebd4fc; });
$parcel$export($eaf87102ba547294$exports, "LinkTool", function () { return $eaf87102ba547294$export$f6c54364b5332e66; });
$parcel$export($84e1677d856194d7$exports, "BoldTool", function () { return $84e1677d856194d7$export$10056a49e3b218eb; });
$parcel$export($84e1677d856194d7$exports, "ItalicTool", function () { return $84e1677d856194d7$export$edf99d0f51bacb1e; });
$parcel$export($84e1677d856194d7$exports, "UnderlineTool", function () { return $84e1677d856194d7$export$4b6d9c17188960d2; });
$parcel$export($84e1677d856194d7$exports, "StrikeThroughTool", function () { return $84e1677d856194d7$export$a35bffaeae8fdda0; });
$parcel$export($84e1677d856194d7$exports, "H1Tool", function () { return $84e1677d856194d7$export$30e8c6b428f8749f; });
$parcel$export($84e1677d856194d7$exports, "H2Tool", function () { return $84e1677d856194d7$export$58443375efa91029; });
$parcel$export($84e1677d856194d7$exports, "H3Tool", function () { return $84e1677d856194d7$export$75d24d6b8b747307; });
$parcel$export($84e1677d856194d7$exports, "FontSizeDownTool", function () { return $84e1677d856194d7$export$a20806c6ef6938f8; });
$parcel$export($84e1677d856194d7$exports, "FontSizeUpTool", function () { return $84e1677d856194d7$export$744da7e24e4a7382; });
$parcel$export($84e1677d856194d7$exports, "SubscriptTool", function () { return $84e1677d856194d7$export$6137518b4e998008; });
$parcel$export($84e1677d856194d7$exports, "SuperscriptTool", function () { return $84e1677d856194d7$export$7217f06c61ebd4fc; });
$parcel$export($84e1677d856194d7$exports, "LinkTool", function () { return $84e1677d856194d7$export$f6c54364b5332e66; });
class $eaf87102ba547294$export$10056a49e3b218eb extends $13t2B$BoldTool {
class $84e1677d856194d7$export$10056a49e3b218eb extends (0, $QdH60$BoldTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'type-bold');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "type-bold");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$edf99d0f51bacb1e extends $13t2B$ItalicTool {
class $84e1677d856194d7$export$edf99d0f51bacb1e extends (0, $QdH60$ItalicTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'type-italic');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "type-italic");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$4b6d9c17188960d2 extends $13t2B$UnderlineTool {
class $84e1677d856194d7$export$4b6d9c17188960d2 extends (0, $QdH60$UnderlineTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'type-underline');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "type-underline");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$a35bffaeae8fdda0 extends $13t2B$StrikeThroughTool {
class $84e1677d856194d7$export$a35bffaeae8fdda0 extends (0, $QdH60$StrikeThroughTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'type-strikethrough');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "type-strikethrough");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$30e8c6b428f8749f extends $13t2B$H1Tool {
class $84e1677d856194d7$export$30e8c6b428f8749f extends (0, $QdH60$H1Tool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'type-h1');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "type-h1");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$58443375efa91029 extends $13t2B$H2Tool {
class $84e1677d856194d7$export$58443375efa91029 extends (0, $QdH60$H2Tool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'type-h2');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "type-h2");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$75d24d6b8b747307 extends $13t2B$H3Tool {
class $84e1677d856194d7$export$75d24d6b8b747307 extends (0, $QdH60$H3Tool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'type-h3');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "type-h3");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$a20806c6ef6938f8 extends $13t2B$FontSizeDownTool {
class $84e1677d856194d7$export$a20806c6ef6938f8 extends (0, $QdH60$FontSizeDownTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'sort-alpha-down');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "sort-alpha-down");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$744da7e24e4a7382 extends $13t2B$FontSizeUpTool {
class $84e1677d856194d7$export$744da7e24e4a7382 extends (0, $QdH60$FontSizeUpTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'sort-alpha-up');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "sort-alpha-up");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$6137518b4e998008 extends $13t2B$SubscriptTool {
class $84e1677d856194d7$export$6137518b4e998008 extends (0, $QdH60$SubscriptTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'box-arrow-down-right');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "box-arrow-down-right");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$7217f06c61ebd4fc extends $13t2B$SuperscriptTool {
class $84e1677d856194d7$export$7217f06c61ebd4fc extends (0, $QdH60$SuperscriptTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'box-arrow-up-right');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "box-arrow-up-right");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $eaf87102ba547294$export$f6c54364b5332e66 extends $13t2B$LinkTool {
class $84e1677d856194d7$export$f6c54364b5332e66 extends (0, $QdH60$LinkTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'link');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "link");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}

@@ -168,8 +169,8 @@ }

var $531f464768a4571c$exports = {};
var $f79fbcb932e44ba2$exports = {};
$parcel$export($531f464768a4571c$exports, "ColorSelector", function () { return $531f464768a4571c$export$9012acaf449cdfcb; });
$parcel$export($531f464768a4571c$exports, "renderColorTool", function () { return $531f464768a4571c$export$e913fac2ab7b6f29; });
$parcel$export($531f464768a4571c$exports, "ForeColorTool", function () { return $531f464768a4571c$export$cab0e15cfb8489d7; });
$parcel$export($531f464768a4571c$exports, "BackColorTool", function () { return $531f464768a4571c$export$92bb6183e7459be2; });
$parcel$export($f79fbcb932e44ba2$exports, "ColorSelector", function () { return $f79fbcb932e44ba2$export$9012acaf449cdfcb; });
$parcel$export($f79fbcb932e44ba2$exports, "renderColorTool", function () { return $f79fbcb932e44ba2$export$e913fac2ab7b6f29; });
$parcel$export($f79fbcb932e44ba2$exports, "ForeColorTool", function () { return $f79fbcb932e44ba2$export$cab0e15cfb8489d7; });
$parcel$export($f79fbcb932e44ba2$exports, "BackColorTool", function () { return $f79fbcb932e44ba2$export$92bb6183e7459be2; });

@@ -179,8 +180,8 @@

function $531f464768a4571c$export$9012acaf449cdfcb({ className: className , title: title , type: type , value: value1 , onChange: onChange , icon: icon }) {
return /*#__PURE__*/ $13t2B$jsxs("span", {
function $f79fbcb932e44ba2$export$9012acaf449cdfcb({ className: className , title: title , type: type , value: value1 , onChange: onChange , icon: icon }) {
return /*#__PURE__*/ (0, $QdH60$jsxs)("span", {
className: `d-inline-block align-middle position-relative ${className}`,
title: title,
children: [
/*#__PURE__*/ $13t2B$jsx("input", {
/*#__PURE__*/ (0, $QdH60$jsx)("input", {
className: "position-absolute w-100 h-100 rounded-3",

@@ -194,11 +195,9 @@ style: {

value: value1,
onChange: ({ target: { value: value } })=>{
return onChange === null || onChange === void 0 ? void 0 : onChange(value);
}
onChange: ({ target: { value: value } })=>onChange?.(value)
}),
/*#__PURE__*/ $13t2B$jsx("button", {
/*#__PURE__*/ (0, $QdH60$jsx)("button", {
className: "btn",
style: {
color: type === 'color' ? value1 : 'lightgray',
backgroundColor: type === 'color' ? 'white' : value1,
color: type === "color" ? value1 : "lightgray",
backgroundColor: type === "color" ? "white" : value1,
borderColor: value1

@@ -210,3 +209,3 @@ },

},
children: /*#__PURE__*/ $13t2B$jsx("i", {
children: /*#__PURE__*/ (0, $QdH60$jsx)("i", {
className: `bi-${icon}`

@@ -218,5 +217,5 @@ })

}
function $531f464768a4571c$export$e913fac2ab7b6f29(editor) {
function $f79fbcb932e44ba2$export$e913fac2ab7b6f29(editor) {
const { icon: icon , name: name , colorName: colorName } = this;
return /*#__PURE__*/ $13t2B$jsx($531f464768a4571c$export$9012acaf449cdfcb, {
return /*#__PURE__*/ (0, $QdH60$jsx)($f79fbcb932e44ba2$export$9012acaf449cdfcb, {
className: "me-2 mb-2",

@@ -230,14 +229,14 @@ title: name,

}
class $531f464768a4571c$export$cab0e15cfb8489d7 extends $13t2B$ForeColorTool {
class $f79fbcb932e44ba2$export$cab0e15cfb8489d7 extends (0, $QdH60$ForeColorTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'file-earmark-font');
$13t2B$defineProperty(this, "render", $531f464768a4571c$export$e913fac2ab7b6f29);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "file-earmark-font");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", $f79fbcb932e44ba2$export$e913fac2ab7b6f29);
}
}
class $531f464768a4571c$export$92bb6183e7459be2 extends $13t2B$BackColorTool {
class $f79fbcb932e44ba2$export$92bb6183e7459be2 extends (0, $QdH60$BackColorTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'file-earmark-font-fill');
$13t2B$defineProperty(this, "render", $531f464768a4571c$export$e913fac2ab7b6f29);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "file-earmark-font-fill");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", $f79fbcb932e44ba2$export$e913fac2ab7b6f29);
}

@@ -247,61 +246,61 @@ }

var $e325b99ac86e8052$exports = {};
var $ca6c6c0974c8160e$exports = {};
$parcel$export($e325b99ac86e8052$exports, "AlignLeftTool", function () { return $e325b99ac86e8052$export$42a444ebfdcfe7b9; });
$parcel$export($e325b99ac86e8052$exports, "AlignCenterTool", function () { return $e325b99ac86e8052$export$9a2e6e0294a984eb; });
$parcel$export($e325b99ac86e8052$exports, "AlignRightTool", function () { return $e325b99ac86e8052$export$22363f91860fc258; });
$parcel$export($e325b99ac86e8052$exports, "AlignFullTool", function () { return $e325b99ac86e8052$export$42827b1362fed748; });
$parcel$export($e325b99ac86e8052$exports, "OrderedListTool", function () { return $e325b99ac86e8052$export$faf4e70f09f43a15; });
$parcel$export($e325b99ac86e8052$exports, "UnorderedListTool", function () { return $e325b99ac86e8052$export$cf4030b57a3fbe37; });
$parcel$export($e325b99ac86e8052$exports, "HorizontalRuleTool", function () { return $e325b99ac86e8052$export$dce8a7d6279fc201; });
$parcel$export($ca6c6c0974c8160e$exports, "AlignLeftTool", function () { return $ca6c6c0974c8160e$export$42a444ebfdcfe7b9; });
$parcel$export($ca6c6c0974c8160e$exports, "AlignCenterTool", function () { return $ca6c6c0974c8160e$export$9a2e6e0294a984eb; });
$parcel$export($ca6c6c0974c8160e$exports, "AlignRightTool", function () { return $ca6c6c0974c8160e$export$22363f91860fc258; });
$parcel$export($ca6c6c0974c8160e$exports, "AlignFullTool", function () { return $ca6c6c0974c8160e$export$42827b1362fed748; });
$parcel$export($ca6c6c0974c8160e$exports, "OrderedListTool", function () { return $ca6c6c0974c8160e$export$faf4e70f09f43a15; });
$parcel$export($ca6c6c0974c8160e$exports, "UnorderedListTool", function () { return $ca6c6c0974c8160e$export$cf4030b57a3fbe37; });
$parcel$export($ca6c6c0974c8160e$exports, "HorizontalRuleTool", function () { return $ca6c6c0974c8160e$export$dce8a7d6279fc201; });
class $e325b99ac86e8052$export$42a444ebfdcfe7b9 extends $13t2B$AlignLeftTool {
class $ca6c6c0974c8160e$export$42a444ebfdcfe7b9 extends (0, $QdH60$AlignLeftTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'text-left');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "text-left");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $e325b99ac86e8052$export$9a2e6e0294a984eb extends $13t2B$AlignCenterTool {
class $ca6c6c0974c8160e$export$9a2e6e0294a984eb extends (0, $QdH60$AlignCenterTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'text-center');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "text-center");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $e325b99ac86e8052$export$22363f91860fc258 extends $13t2B$AlignRightTool {
class $ca6c6c0974c8160e$export$22363f91860fc258 extends (0, $QdH60$AlignRightTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'text-right');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "text-right");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $e325b99ac86e8052$export$42827b1362fed748 extends $13t2B$AlignFullTool {
class $ca6c6c0974c8160e$export$42827b1362fed748 extends (0, $QdH60$AlignFullTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'justify');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "justify");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $e325b99ac86e8052$export$faf4e70f09f43a15 extends $13t2B$OrderedListTool {
class $ca6c6c0974c8160e$export$faf4e70f09f43a15 extends (0, $QdH60$OrderedListTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'list-ol');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "list-ol");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $e325b99ac86e8052$export$cf4030b57a3fbe37 extends $13t2B$UnorderedListTool {
class $ca6c6c0974c8160e$export$cf4030b57a3fbe37 extends (0, $QdH60$UnorderedListTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'list-ul');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "list-ul");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $e325b99ac86e8052$export$dce8a7d6279fc201 extends $13t2B$HorizontalRuleTool {
class $ca6c6c0974c8160e$export$dce8a7d6279fc201 extends (0, $QdH60$HorizontalRuleTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'reception-0');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "reception-0");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}

@@ -311,37 +310,37 @@ }

var $fe0ddf31161b8e51$exports = {};
var $3ae781e262cfa361$exports = {};
$parcel$export($fe0ddf31161b8e51$exports, "IFrameTool", function () { return $fe0ddf31161b8e51$export$3e557574863db086; });
$parcel$export($fe0ddf31161b8e51$exports, "ImageTool", function () { return $fe0ddf31161b8e51$export$982f47444a2f88da; });
$parcel$export($fe0ddf31161b8e51$exports, "AudioTool", function () { return $fe0ddf31161b8e51$export$6024938f37e646f8; });
$parcel$export($fe0ddf31161b8e51$exports, "VideoTool", function () { return $fe0ddf31161b8e51$export$932111b8028f79ed; });
$parcel$export($3ae781e262cfa361$exports, "IFrameTool", function () { return $3ae781e262cfa361$export$3e557574863db086; });
$parcel$export($3ae781e262cfa361$exports, "ImageTool", function () { return $3ae781e262cfa361$export$982f47444a2f88da; });
$parcel$export($3ae781e262cfa361$exports, "AudioTool", function () { return $3ae781e262cfa361$export$6024938f37e646f8; });
$parcel$export($3ae781e262cfa361$exports, "VideoTool", function () { return $3ae781e262cfa361$export$932111b8028f79ed; });
class $fe0ddf31161b8e51$export$3e557574863db086 extends $13t2B$IFrameTool {
class $3ae781e262cfa361$export$3e557574863db086 extends (0, $QdH60$IFrameTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'window');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "window");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $fe0ddf31161b8e51$export$982f47444a2f88da extends $13t2B$ImageTool {
class $3ae781e262cfa361$export$982f47444a2f88da extends (0, $QdH60$ImageTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'image');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "image");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $fe0ddf31161b8e51$export$6024938f37e646f8 extends $13t2B$AudioTool {
class $3ae781e262cfa361$export$6024938f37e646f8 extends (0, $QdH60$AudioTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'voicemail');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "voicemail");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $fe0ddf31161b8e51$export$932111b8028f79ed extends $13t2B$VideoTool {
class $3ae781e262cfa361$export$932111b8028f79ed extends (0, $QdH60$VideoTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'camera-video');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "camera-video");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}

@@ -351,37 +350,37 @@ }

var $c165247acc4b6a48$exports = {};
var $65ad161bf0bd24b9$exports = {};
$parcel$export($c165247acc4b6a48$exports, "UndoTool", function () { return $c165247acc4b6a48$export$65235875731ff287; });
$parcel$export($c165247acc4b6a48$exports, "RedoTool", function () { return $c165247acc4b6a48$export$b60f30d254d1e1a6; });
$parcel$export($c165247acc4b6a48$exports, "ResetTool", function () { return $c165247acc4b6a48$export$6f46dc3d81fbb4bd; });
$parcel$export($c165247acc4b6a48$exports, "ClearTool", function () { return $c165247acc4b6a48$export$25eb377ce1feaada; });
$parcel$export($65ad161bf0bd24b9$exports, "UndoTool", function () { return $65ad161bf0bd24b9$export$65235875731ff287; });
$parcel$export($65ad161bf0bd24b9$exports, "RedoTool", function () { return $65ad161bf0bd24b9$export$b60f30d254d1e1a6; });
$parcel$export($65ad161bf0bd24b9$exports, "ResetTool", function () { return $65ad161bf0bd24b9$export$6f46dc3d81fbb4bd; });
$parcel$export($65ad161bf0bd24b9$exports, "ClearTool", function () { return $65ad161bf0bd24b9$export$25eb377ce1feaada; });
class $c165247acc4b6a48$export$65235875731ff287 extends $13t2B$UndoTool {
class $65ad161bf0bd24b9$export$65235875731ff287 extends (0, $QdH60$UndoTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'arrow-counterclockwise');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "arrow-counterclockwise");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $c165247acc4b6a48$export$b60f30d254d1e1a6 extends $13t2B$RedoTool {
class $65ad161bf0bd24b9$export$b60f30d254d1e1a6 extends (0, $QdH60$RedoTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'arrow-clockwise');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "arrow-clockwise");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $c165247acc4b6a48$export$6f46dc3d81fbb4bd extends $13t2B$ResetTool {
class $65ad161bf0bd24b9$export$6f46dc3d81fbb4bd extends (0, $QdH60$ResetTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'eraser');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "eraser");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}
}
class $c165247acc4b6a48$export$25eb377ce1feaada extends $13t2B$ClearTool {
class $65ad161bf0bd24b9$export$25eb377ce1feaada extends (0, $QdH60$ClearTool) {
constructor(...args){
super(...args);
$13t2B$defineProperty(this, "icon", 'file-earmark-x');
$13t2B$defineProperty(this, "render", $43d566ad2fe8cba8$export$56ccecc1dac11363);
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "icon", "file-earmark-x");
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "render", (0, $9e8d201707fc0f31$export$56ccecc1dac11363));
}

@@ -396,82 +395,82 @@ }

const $1a9e4a89b237a23e$export$e252ba763eff5cdc = [
$eaf87102ba547294$export$10056a49e3b218eb,
$eaf87102ba547294$export$edf99d0f51bacb1e,
$eaf87102ba547294$export$4b6d9c17188960d2,
$eaf87102ba547294$export$a35bffaeae8fdda0,
$eaf87102ba547294$export$30e8c6b428f8749f,
$eaf87102ba547294$export$58443375efa91029,
$eaf87102ba547294$export$75d24d6b8b747307,
$eaf87102ba547294$export$a20806c6ef6938f8,
$eaf87102ba547294$export$744da7e24e4a7382,
$eaf87102ba547294$export$6137518b4e998008,
$eaf87102ba547294$export$7217f06c61ebd4fc,
$eaf87102ba547294$export$f6c54364b5332e66
const $e38b04d9d2c72891$export$e252ba763eff5cdc = [
(0, $84e1677d856194d7$export$10056a49e3b218eb),
(0, $84e1677d856194d7$export$edf99d0f51bacb1e),
(0, $84e1677d856194d7$export$4b6d9c17188960d2),
(0, $84e1677d856194d7$export$a35bffaeae8fdda0),
(0, $84e1677d856194d7$export$30e8c6b428f8749f),
(0, $84e1677d856194d7$export$58443375efa91029),
(0, $84e1677d856194d7$export$75d24d6b8b747307),
(0, $84e1677d856194d7$export$a20806c6ef6938f8),
(0, $84e1677d856194d7$export$744da7e24e4a7382),
(0, $84e1677d856194d7$export$6137518b4e998008),
(0, $84e1677d856194d7$export$7217f06c61ebd4fc),
(0, $84e1677d856194d7$export$f6c54364b5332e66)
];
const $1a9e4a89b237a23e$export$bdef6e97a10dbad4 = [
$531f464768a4571c$export$cab0e15cfb8489d7,
$531f464768a4571c$export$92bb6183e7459be2
const $e38b04d9d2c72891$export$bdef6e97a10dbad4 = [
(0, $f79fbcb932e44ba2$export$cab0e15cfb8489d7),
(0, $f79fbcb932e44ba2$export$92bb6183e7459be2)
];
const $1a9e4a89b237a23e$export$145c1b37c0810d7 = [
$e325b99ac86e8052$export$42a444ebfdcfe7b9,
$e325b99ac86e8052$export$9a2e6e0294a984eb,
$e325b99ac86e8052$export$22363f91860fc258,
$e325b99ac86e8052$export$42827b1362fed748,
$e325b99ac86e8052$export$faf4e70f09f43a15,
$e325b99ac86e8052$export$cf4030b57a3fbe37,
$e325b99ac86e8052$export$dce8a7d6279fc201
const $e38b04d9d2c72891$export$145c1b37c0810d7 = [
(0, $ca6c6c0974c8160e$export$42a444ebfdcfe7b9),
(0, $ca6c6c0974c8160e$export$9a2e6e0294a984eb),
(0, $ca6c6c0974c8160e$export$22363f91860fc258),
(0, $ca6c6c0974c8160e$export$42827b1362fed748),
(0, $ca6c6c0974c8160e$export$faf4e70f09f43a15),
(0, $ca6c6c0974c8160e$export$cf4030b57a3fbe37),
(0, $ca6c6c0974c8160e$export$dce8a7d6279fc201)
];
const $1a9e4a89b237a23e$export$999636c6e25075fb = [
$fe0ddf31161b8e51$export$3e557574863db086,
$fe0ddf31161b8e51$export$982f47444a2f88da,
$fe0ddf31161b8e51$export$6024938f37e646f8,
$fe0ddf31161b8e51$export$932111b8028f79ed
const $e38b04d9d2c72891$export$999636c6e25075fb = [
(0, $3ae781e262cfa361$export$3e557574863db086),
(0, $3ae781e262cfa361$export$982f47444a2f88da),
(0, $3ae781e262cfa361$export$6024938f37e646f8),
(0, $3ae781e262cfa361$export$932111b8028f79ed)
];
const $1a9e4a89b237a23e$export$f35db4b82786c3a4 = [
$c165247acc4b6a48$export$65235875731ff287,
$c165247acc4b6a48$export$b60f30d254d1e1a6,
$c165247acc4b6a48$export$6f46dc3d81fbb4bd,
$c165247acc4b6a48$export$25eb377ce1feaada
const $e38b04d9d2c72891$export$f35db4b82786c3a4 = [
(0, $65ad161bf0bd24b9$export$65235875731ff287),
(0, $65ad161bf0bd24b9$export$b60f30d254d1e1a6),
(0, $65ad161bf0bd24b9$export$6f46dc3d81fbb4bd),
(0, $65ad161bf0bd24b9$export$25eb377ce1feaada)
];
const $1a9e4a89b237a23e$export$9ddb256264948609 = [
...$1a9e4a89b237a23e$export$e252ba763eff5cdc,
...$1a9e4a89b237a23e$export$bdef6e97a10dbad4,
...$1a9e4a89b237a23e$export$145c1b37c0810d7,
...$1a9e4a89b237a23e$export$999636c6e25075fb,
...$1a9e4a89b237a23e$export$f35db4b82786c3a4
const $e38b04d9d2c72891$export$9ddb256264948609 = [
...$e38b04d9d2c72891$export$e252ba763eff5cdc,
...$e38b04d9d2c72891$export$bdef6e97a10dbad4,
...$e38b04d9d2c72891$export$145c1b37c0810d7,
...$e38b04d9d2c72891$export$999636c6e25075fb,
...$e38b04d9d2c72891$export$f35db4b82786c3a4
];
const $1a9e4a89b237a23e$export$aa718db1466ce312 = [
$eaf87102ba547294$export$10056a49e3b218eb,
$eaf87102ba547294$export$edf99d0f51bacb1e,
$eaf87102ba547294$export$4b6d9c17188960d2,
$eaf87102ba547294$export$a35bffaeae8fdda0,
$eaf87102ba547294$export$30e8c6b428f8749f,
$eaf87102ba547294$export$58443375efa91029,
$eaf87102ba547294$export$75d24d6b8b747307,
$eaf87102ba547294$export$6137518b4e998008,
$eaf87102ba547294$export$7217f06c61ebd4fc,
$531f464768a4571c$export$cab0e15cfb8489d7,
$531f464768a4571c$export$92bb6183e7459be2,
$e325b99ac86e8052$export$42a444ebfdcfe7b9,
$e325b99ac86e8052$export$9a2e6e0294a984eb,
$e325b99ac86e8052$export$22363f91860fc258,
$e325b99ac86e8052$export$42827b1362fed748,
$e325b99ac86e8052$export$faf4e70f09f43a15,
$e325b99ac86e8052$export$cf4030b57a3fbe37,
$e325b99ac86e8052$export$dce8a7d6279fc201,
$fe0ddf31161b8e51$export$982f47444a2f88da,
$c165247acc4b6a48$export$65235875731ff287,
$c165247acc4b6a48$export$b60f30d254d1e1a6,
$c165247acc4b6a48$export$25eb377ce1feaada
const $e38b04d9d2c72891$export$aa718db1466ce312 = [
(0, $84e1677d856194d7$export$10056a49e3b218eb),
(0, $84e1677d856194d7$export$edf99d0f51bacb1e),
(0, $84e1677d856194d7$export$4b6d9c17188960d2),
(0, $84e1677d856194d7$export$a35bffaeae8fdda0),
(0, $84e1677d856194d7$export$30e8c6b428f8749f),
(0, $84e1677d856194d7$export$58443375efa91029),
(0, $84e1677d856194d7$export$75d24d6b8b747307),
(0, $84e1677d856194d7$export$6137518b4e998008),
(0, $84e1677d856194d7$export$7217f06c61ebd4fc),
(0, $f79fbcb932e44ba2$export$cab0e15cfb8489d7),
(0, $f79fbcb932e44ba2$export$92bb6183e7459be2),
(0, $ca6c6c0974c8160e$export$42a444ebfdcfe7b9),
(0, $ca6c6c0974c8160e$export$9a2e6e0294a984eb),
(0, $ca6c6c0974c8160e$export$22363f91860fc258),
(0, $ca6c6c0974c8160e$export$42827b1362fed748),
(0, $ca6c6c0974c8160e$export$faf4e70f09f43a15),
(0, $ca6c6c0974c8160e$export$cf4030b57a3fbe37),
(0, $ca6c6c0974c8160e$export$dce8a7d6279fc201),
(0, $3ae781e262cfa361$export$982f47444a2f88da),
(0, $65ad161bf0bd24b9$export$65235875731ff287),
(0, $65ad161bf0bd24b9$export$b60f30d254d1e1a6),
(0, $65ad161bf0bd24b9$export$25eb377ce1feaada)
];
$parcel$exportWildcard($1a9e4a89b237a23e$exports, $eaf87102ba547294$exports);
$parcel$exportWildcard($1a9e4a89b237a23e$exports, $531f464768a4571c$exports);
$parcel$exportWildcard($1a9e4a89b237a23e$exports, $e325b99ac86e8052$exports);
$parcel$exportWildcard($1a9e4a89b237a23e$exports, $fe0ddf31161b8e51$exports);
$parcel$exportWildcard($1a9e4a89b237a23e$exports, $c165247acc4b6a48$exports);
$parcel$exportWildcard($e38b04d9d2c72891$exports, $84e1677d856194d7$exports);
$parcel$exportWildcard($e38b04d9d2c72891$exports, $f79fbcb932e44ba2$exports);
$parcel$exportWildcard($e38b04d9d2c72891$exports, $ca6c6c0974c8160e$exports);
$parcel$exportWildcard($e38b04d9d2c72891$exports, $3ae781e262cfa361$exports);
$parcel$exportWildcard($e38b04d9d2c72891$exports, $65ad161bf0bd24b9$exports);
var $de23b760ca33f560$exports = {};
var $efab9e4a497112b9$exports = {};
$parcel$export($de23b760ca33f560$exports, "Editor", function () { return $de23b760ca33f560$export$7cda8d932e2f33c0; });
$parcel$export($efab9e4a497112b9$exports, "Editor", function () { return $efab9e4a497112b9$export$7cda8d932e2f33c0; });

@@ -481,25 +480,50 @@

class $de23b760ca33f560$export$7cda8d932e2f33c0 extends $13t2B$PureComponent {
static getDerivedStateFromProps({ tools: tools = $1a9e4a89b237a23e$export$aa718db1466ce312 , value: value }, { toolList: toolList , data: data }) {
class $efab9e4a497112b9$export$7cda8d932e2f33c0 extends (0, $QdH60$PureComponent) {
static getDerivedStateFromProps({ tools: tools = (0, $e38b04d9d2c72891$export$aa718db1466ce312) , defaultValue: defaultValue }, { toolList: toolList , data: data }) {
return {
toolList: toolList[0] ? toolList : tools.map((ToolButton)=>new ToolButton()
),
data: data || value
toolList: toolList[0] ? toolList : tools.map((ToolButton)=>new ToolButton()),
data: data || defaultValue
};
}
componentDidMount() {
document.addEventListener('selectionchange', this.updateTools);
document.addEventListener("selectionchange", this.updateTools);
}
componentWillUnmount() {
document.removeEventListener('selectionchange', this.updateTools);
document.removeEventListener("selectionchange", this.updateTools);
}
async uploadFile(Type, data) {
if (typeof data === "string" && !/^(data|blob):/.test(data)) return data;
const tool1 = this.state.toolList.find((tool)=>tool instanceof Type);
try {
return await tool1?.save(typeof data === "string" ? await (0, $QdH60$blobOf)(data) : data);
} catch (error) {
console.error(error);
if (typeof data === "string") return data;
}
}
async clearHTML(markup) {
const fragment = document.createDocumentFragment();
fragment.append(...(0, $QdH60$parseDOM)(markup));
for (const element of (0, $QdH60$walkDOM)(fragment, Node.ELEMENT_NODE)){
const { style: style , dataset: dataset } = element;
if ([
"nowrap",
"pre"
].includes(style.whiteSpace)) style.whiteSpace = "normal";
for(const key in dataset)delete dataset[key];
if (element instanceof HTMLImageElement) element.src = await this.uploadFile((0, $3ae781e262cfa361$export$982f47444a2f88da), element.src);
else if (element instanceof HTMLAudioElement) element.src = await this.uploadFile((0, $3ae781e262cfa361$export$6024938f37e646f8), element.src);
else if (element instanceof HTMLVideoElement) element.src = await this.uploadFile((0, $3ae781e262cfa361$export$932111b8028f79ed), element.src);
}
return fragment;
}
render() {
const { toolList: toolList , data: data } = this.state, { onChange: onChange } = this.props;
return /*#__PURE__*/ $13t2B$jsxs($13t2B$Fragment, {
return /*#__PURE__*/ (0, $QdH60$jsxs)((0, $QdH60$Fragment), {
children: [
/*#__PURE__*/ $13t2B$jsx("header", {
children: toolList.map((tool)=>tool.render(this.box)
)
/*#__PURE__*/ (0, $QdH60$jsx)("header", {
children: toolList.map((tool)=>tool.render(this.box))
}),
/*#__PURE__*/ $13t2B$jsx("div", {
/*#__PURE__*/ (0, $QdH60$jsx)("div", {
ref: this.box,

@@ -511,5 +535,5 @@ className: "form-control h-auto",

},
onInput: ({ target: target })=>{
return onChange === null || onChange === void 0 ? void 0 : onChange(target.innerHTML);
}
onPaste: this.handlePasteDrop,
onDrop: this.handlePasteDrop,
onInput: ({ currentTarget: { innerHTML: innerHTML } })=>onChange?.(innerHTML)
})

@@ -521,8 +545,8 @@ ]

super(...args);
$13t2B$defineProperty(this, "box", /*#__PURE__*/ $13t2B$createRef());
$13t2B$defineProperty(this, "state", {
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "box", /*#__PURE__*/ (0, $QdH60$createRef)());
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "state", {
toolList: [],
data: ''
data: ""
});
$13t2B$defineProperty(this, "updateTools", ()=>{
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "updateTools", ()=>{
if (this.box.current === document.activeElement) this.setState({

@@ -534,5 +558,28 @@ toolList: [

});
(0, $QdH60$swchelperssrc_define_propertymjs)(this, "handlePasteDrop", async (event)=>{
event.preventDefault();
const { currentTarget: currentTarget } = event;
const list = event.type === "paste" ? [
...event.clipboardData.items
] : [
...event.dataTransfer.items
];
for (const item of list)if (item.type === "text/html") {
const raw = await new Promise((resolve)=>item.getAsString(resolve));
(0, $QdH60$insertToCursor)(await this.clearHTML(raw));
} else if (item.type.startsWith("image/")) {
const URI = await this.uploadFile((0, $3ae781e262cfa361$export$982f47444a2f88da), item.getAsFile());
if (URI) (0, $QdH60$insertToCursor)(...(0, $QdH60$parseDOM)(`<img src="${URI}" />`));
} else if (item.type.startsWith("audio/")) {
const URI = await this.uploadFile((0, $3ae781e262cfa361$export$6024938f37e646f8), item.getAsFile());
if (URI) (0, $QdH60$insertToCursor)(...(0, $QdH60$parseDOM)(`<audio src="${URI}" />`));
} else if (item.type.startsWith("video/")) {
const URI = await this.uploadFile((0, $3ae781e262cfa361$export$932111b8028f79ed), item.getAsFile());
if (URI) (0, $QdH60$insertToCursor)(...(0, $QdH60$parseDOM)(`<video src="${URI}" />`));
}
this.props.onChange?.(currentTarget.innerHTML);
});
}
}
$13t2B$defineProperty($de23b760ca33f560$export$7cda8d932e2f33c0, "displayName", 'Editor');
(0, $QdH60$swchelperssrc_define_propertymjs)($efab9e4a497112b9$export$7cda8d932e2f33c0, "displayName", "Editor");

@@ -542,3 +589,3 @@

export {$43d566ad2fe8cba8$export$56ccecc1dac11363 as renderTool, $1a9e4a89b237a23e$export$e252ba763eff5cdc as TextTools, $1a9e4a89b237a23e$export$bdef6e97a10dbad4 as ColorTools, $1a9e4a89b237a23e$export$145c1b37c0810d7 as LayoutTools, $1a9e4a89b237a23e$export$999636c6e25075fb as MediaTools, $1a9e4a89b237a23e$export$f35db4b82786c3a4 as ControlTools, $1a9e4a89b237a23e$export$9ddb256264948609 as OriginalTools, $1a9e4a89b237a23e$export$aa718db1466ce312 as DefaultTools, $eaf87102ba547294$export$10056a49e3b218eb as BoldTool, $eaf87102ba547294$export$edf99d0f51bacb1e as ItalicTool, $eaf87102ba547294$export$4b6d9c17188960d2 as UnderlineTool, $eaf87102ba547294$export$a35bffaeae8fdda0 as StrikeThroughTool, $eaf87102ba547294$export$30e8c6b428f8749f as H1Tool, $eaf87102ba547294$export$58443375efa91029 as H2Tool, $eaf87102ba547294$export$75d24d6b8b747307 as H3Tool, $eaf87102ba547294$export$a20806c6ef6938f8 as FontSizeDownTool, $eaf87102ba547294$export$744da7e24e4a7382 as FontSizeUpTool, $eaf87102ba547294$export$6137518b4e998008 as SubscriptTool, $eaf87102ba547294$export$7217f06c61ebd4fc as SuperscriptTool, $eaf87102ba547294$export$f6c54364b5332e66 as LinkTool, $531f464768a4571c$export$9012acaf449cdfcb as ColorSelector, $531f464768a4571c$export$e913fac2ab7b6f29 as renderColorTool, $531f464768a4571c$export$cab0e15cfb8489d7 as ForeColorTool, $531f464768a4571c$export$92bb6183e7459be2 as BackColorTool, $e325b99ac86e8052$export$42a444ebfdcfe7b9 as AlignLeftTool, $e325b99ac86e8052$export$9a2e6e0294a984eb as AlignCenterTool, $e325b99ac86e8052$export$22363f91860fc258 as AlignRightTool, $e325b99ac86e8052$export$42827b1362fed748 as AlignFullTool, $e325b99ac86e8052$export$faf4e70f09f43a15 as OrderedListTool, $e325b99ac86e8052$export$cf4030b57a3fbe37 as UnorderedListTool, $e325b99ac86e8052$export$dce8a7d6279fc201 as HorizontalRuleTool, $fe0ddf31161b8e51$export$3e557574863db086 as IFrameTool, $fe0ddf31161b8e51$export$982f47444a2f88da as ImageTool, $fe0ddf31161b8e51$export$6024938f37e646f8 as AudioTool, $fe0ddf31161b8e51$export$932111b8028f79ed as VideoTool, $c165247acc4b6a48$export$65235875731ff287 as UndoTool, $c165247acc4b6a48$export$b60f30d254d1e1a6 as RedoTool, $c165247acc4b6a48$export$6f46dc3d81fbb4bd as ResetTool, $c165247acc4b6a48$export$25eb377ce1feaada as ClearTool, $de23b760ca33f560$export$7cda8d932e2f33c0 as Editor};
export {$9e8d201707fc0f31$export$56ccecc1dac11363 as renderTool, $e38b04d9d2c72891$export$e252ba763eff5cdc as TextTools, $e38b04d9d2c72891$export$bdef6e97a10dbad4 as ColorTools, $e38b04d9d2c72891$export$145c1b37c0810d7 as LayoutTools, $e38b04d9d2c72891$export$999636c6e25075fb as MediaTools, $e38b04d9d2c72891$export$f35db4b82786c3a4 as ControlTools, $e38b04d9d2c72891$export$9ddb256264948609 as OriginalTools, $e38b04d9d2c72891$export$aa718db1466ce312 as DefaultTools, $84e1677d856194d7$export$10056a49e3b218eb as BoldTool, $84e1677d856194d7$export$edf99d0f51bacb1e as ItalicTool, $84e1677d856194d7$export$4b6d9c17188960d2 as UnderlineTool, $84e1677d856194d7$export$a35bffaeae8fdda0 as StrikeThroughTool, $84e1677d856194d7$export$30e8c6b428f8749f as H1Tool, $84e1677d856194d7$export$58443375efa91029 as H2Tool, $84e1677d856194d7$export$75d24d6b8b747307 as H3Tool, $84e1677d856194d7$export$a20806c6ef6938f8 as FontSizeDownTool, $84e1677d856194d7$export$744da7e24e4a7382 as FontSizeUpTool, $84e1677d856194d7$export$6137518b4e998008 as SubscriptTool, $84e1677d856194d7$export$7217f06c61ebd4fc as SuperscriptTool, $84e1677d856194d7$export$f6c54364b5332e66 as LinkTool, $f79fbcb932e44ba2$export$9012acaf449cdfcb as ColorSelector, $f79fbcb932e44ba2$export$e913fac2ab7b6f29 as renderColorTool, $f79fbcb932e44ba2$export$cab0e15cfb8489d7 as ForeColorTool, $f79fbcb932e44ba2$export$92bb6183e7459be2 as BackColorTool, $ca6c6c0974c8160e$export$42a444ebfdcfe7b9 as AlignLeftTool, $ca6c6c0974c8160e$export$9a2e6e0294a984eb as AlignCenterTool, $ca6c6c0974c8160e$export$22363f91860fc258 as AlignRightTool, $ca6c6c0974c8160e$export$42827b1362fed748 as AlignFullTool, $ca6c6c0974c8160e$export$faf4e70f09f43a15 as OrderedListTool, $ca6c6c0974c8160e$export$cf4030b57a3fbe37 as UnorderedListTool, $ca6c6c0974c8160e$export$dce8a7d6279fc201 as HorizontalRuleTool, $3ae781e262cfa361$export$3e557574863db086 as IFrameTool, $3ae781e262cfa361$export$982f47444a2f88da as ImageTool, $3ae781e262cfa361$export$6024938f37e646f8 as AudioTool, $3ae781e262cfa361$export$932111b8028f79ed as VideoTool, $65ad161bf0bd24b9$export$65235875731ff287 as UndoTool, $65ad161bf0bd24b9$export$b60f30d254d1e1a6 as RedoTool, $65ad161bf0bd24b9$export$6f46dc3d81fbb4bd as ResetTool, $65ad161bf0bd24b9$export$25eb377ce1feaada as ClearTool, $efab9e4a497112b9$export$7cda8d932e2f33c0 as Editor};
//# sourceMappingURL=index.esm.js.map

@@ -1,5 +0,6 @@

var $6Lvvy$reactjsxruntime = require("react/jsx-runtime");
var $6Lvvy$react = require("react");
var $6Lvvy$swchelpers = require("@swc/helpers");
var $6Lvvy$edkit = require("edkit");
var $4Pi8L$reactjsxruntime = require("react/jsx-runtime");
var $4Pi8L$react = require("react");
var $4Pi8L$swchelperslib_define_propertyjs = require("@swc/helpers/lib/_define_property.js");
var $4Pi8L$edkit = require("edkit");
var $4Pi8L$webutility = require("web-utility");

@@ -25,12 +26,14 @@ function $parcel$exportWildcard(dest, source) {

}
var $e6d4b3ebb29c3ec4$exports = {};
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
var $783b6726ddd1ea56$exports = {};
$parcel$export($e6d4b3ebb29c3ec4$exports, "renderTool", function () { return $e6d4b3ebb29c3ec4$export$56ccecc1dac11363; });
$parcel$export($783b6726ddd1ea56$exports, "renderTool", function () { return $783b6726ddd1ea56$export$56ccecc1dac11363; });
function $e6d4b3ebb29c3ec4$export$56ccecc1dac11363(editor) {
var _this = this;
var ref = this, title = ref.title, active = ref.active, icon = ref.icon, usable = ref.usable;
var Class = "btn btn-".concat((active ? '' : 'outline-') + 'secondary', " me-2 mb-2");
return /*#__PURE__*/ $6Lvvy$reactjsxruntime.jsx("button", {
function $783b6726ddd1ea56$export$56ccecc1dac11363(editor) {
const { title: title , active: active , icon: icon , usable: usable } = this;
const Class = `btn btn-${(active ? "" : "outline-") + "secondary"} me-2 mb-2`;
return /*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsx)("button", {
type: "button",

@@ -40,11 +43,11 @@ title: title,

style: {
cursor: usable ? 'pointer' : 'not-allowed'
cursor: usable ? "pointer" : "not-allowed"
},
disabled: !usable,
onClick: function(event) {
onClick: (event)=>{
event.preventDefault();
if (editor.current) _this.execute(editor.current);
if (editor.current) this.execute(editor.current);
},
children: /*#__PURE__*/ $6Lvvy$reactjsxruntime.jsx("i", {
className: "bi-".concat(icon)
children: /*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsx)("i", {
className: `bi-${icon}`
})

@@ -55,205 +58,120 @@ }, icon);

var $9d49801ddb6619aa$exports = {};
var $ee8be56859ec8fb7$exports = {};
$parcel$export($9d49801ddb6619aa$exports, "TextTools", function () { return $9d49801ddb6619aa$export$e252ba763eff5cdc; });
$parcel$export($9d49801ddb6619aa$exports, "ColorTools", function () { return $9d49801ddb6619aa$export$bdef6e97a10dbad4; });
$parcel$export($9d49801ddb6619aa$exports, "LayoutTools", function () { return $9d49801ddb6619aa$export$145c1b37c0810d7; });
$parcel$export($9d49801ddb6619aa$exports, "MediaTools", function () { return $9d49801ddb6619aa$export$999636c6e25075fb; });
$parcel$export($9d49801ddb6619aa$exports, "ControlTools", function () { return $9d49801ddb6619aa$export$f35db4b82786c3a4; });
$parcel$export($9d49801ddb6619aa$exports, "OriginalTools", function () { return $9d49801ddb6619aa$export$9ddb256264948609; });
$parcel$export($9d49801ddb6619aa$exports, "DefaultTools", function () { return $9d49801ddb6619aa$export$aa718db1466ce312; });
$parcel$export($ee8be56859ec8fb7$exports, "TextTools", function () { return $ee8be56859ec8fb7$export$e252ba763eff5cdc; });
$parcel$export($ee8be56859ec8fb7$exports, "ColorTools", function () { return $ee8be56859ec8fb7$export$bdef6e97a10dbad4; });
$parcel$export($ee8be56859ec8fb7$exports, "LayoutTools", function () { return $ee8be56859ec8fb7$export$145c1b37c0810d7; });
$parcel$export($ee8be56859ec8fb7$exports, "MediaTools", function () { return $ee8be56859ec8fb7$export$999636c6e25075fb; });
$parcel$export($ee8be56859ec8fb7$exports, "ControlTools", function () { return $ee8be56859ec8fb7$export$f35db4b82786c3a4; });
$parcel$export($ee8be56859ec8fb7$exports, "OriginalTools", function () { return $ee8be56859ec8fb7$export$9ddb256264948609; });
$parcel$export($ee8be56859ec8fb7$exports, "DefaultTools", function () { return $ee8be56859ec8fb7$export$aa718db1466ce312; });
var $9a2bbe5526331901$exports = {};
var $82be45805e629b6c$exports = {};
$parcel$export($9a2bbe5526331901$exports, "BoldTool", function () { return $9a2bbe5526331901$export$10056a49e3b218eb; });
$parcel$export($9a2bbe5526331901$exports, "ItalicTool", function () { return $9a2bbe5526331901$export$edf99d0f51bacb1e; });
$parcel$export($9a2bbe5526331901$exports, "UnderlineTool", function () { return $9a2bbe5526331901$export$4b6d9c17188960d2; });
$parcel$export($9a2bbe5526331901$exports, "StrikeThroughTool", function () { return $9a2bbe5526331901$export$a35bffaeae8fdda0; });
$parcel$export($9a2bbe5526331901$exports, "H1Tool", function () { return $9a2bbe5526331901$export$30e8c6b428f8749f; });
$parcel$export($9a2bbe5526331901$exports, "H2Tool", function () { return $9a2bbe5526331901$export$58443375efa91029; });
$parcel$export($9a2bbe5526331901$exports, "H3Tool", function () { return $9a2bbe5526331901$export$75d24d6b8b747307; });
$parcel$export($9a2bbe5526331901$exports, "FontSizeDownTool", function () { return $9a2bbe5526331901$export$a20806c6ef6938f8; });
$parcel$export($9a2bbe5526331901$exports, "FontSizeUpTool", function () { return $9a2bbe5526331901$export$744da7e24e4a7382; });
$parcel$export($9a2bbe5526331901$exports, "SubscriptTool", function () { return $9a2bbe5526331901$export$6137518b4e998008; });
$parcel$export($9a2bbe5526331901$exports, "SuperscriptTool", function () { return $9a2bbe5526331901$export$7217f06c61ebd4fc; });
$parcel$export($9a2bbe5526331901$exports, "LinkTool", function () { return $9a2bbe5526331901$export$f6c54364b5332e66; });
$parcel$export($82be45805e629b6c$exports, "BoldTool", function () { return $82be45805e629b6c$export$10056a49e3b218eb; });
$parcel$export($82be45805e629b6c$exports, "ItalicTool", function () { return $82be45805e629b6c$export$edf99d0f51bacb1e; });
$parcel$export($82be45805e629b6c$exports, "UnderlineTool", function () { return $82be45805e629b6c$export$4b6d9c17188960d2; });
$parcel$export($82be45805e629b6c$exports, "StrikeThroughTool", function () { return $82be45805e629b6c$export$a35bffaeae8fdda0; });
$parcel$export($82be45805e629b6c$exports, "H1Tool", function () { return $82be45805e629b6c$export$30e8c6b428f8749f; });
$parcel$export($82be45805e629b6c$exports, "H2Tool", function () { return $82be45805e629b6c$export$58443375efa91029; });
$parcel$export($82be45805e629b6c$exports, "H3Tool", function () { return $82be45805e629b6c$export$75d24d6b8b747307; });
$parcel$export($82be45805e629b6c$exports, "FontSizeDownTool", function () { return $82be45805e629b6c$export$a20806c6ef6938f8; });
$parcel$export($82be45805e629b6c$exports, "FontSizeUpTool", function () { return $82be45805e629b6c$export$744da7e24e4a7382; });
$parcel$export($82be45805e629b6c$exports, "SubscriptTool", function () { return $82be45805e629b6c$export$6137518b4e998008; });
$parcel$export($82be45805e629b6c$exports, "SuperscriptTool", function () { return $82be45805e629b6c$export$7217f06c61ebd4fc; });
$parcel$export($82be45805e629b6c$exports, "LinkTool", function () { return $82be45805e629b6c$export$f6c54364b5332e66; });
var $82be45805e629b6c$export$10056a49e3b218eb = /*#__PURE__*/ function(BT) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$10056a49e3b218eb, BT);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$10056a49e3b218eb);
function $82be45805e629b6c$export$10056a49e3b218eb() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$10056a49e3b218eb);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'type-bold');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
class $9a2bbe5526331901$export$10056a49e3b218eb extends (0, $4Pi8L$edkit.BoldTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "type-bold");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$10056a49e3b218eb;
}($6Lvvy$edkit.BoldTool);
var $82be45805e629b6c$export$edf99d0f51bacb1e = /*#__PURE__*/ function(IT) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$edf99d0f51bacb1e, IT);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$edf99d0f51bacb1e);
function $82be45805e629b6c$export$edf99d0f51bacb1e() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$edf99d0f51bacb1e);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'type-italic');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$edf99d0f51bacb1e extends (0, $4Pi8L$edkit.ItalicTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "type-italic");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$edf99d0f51bacb1e;
}($6Lvvy$edkit.ItalicTool);
var $82be45805e629b6c$export$4b6d9c17188960d2 = /*#__PURE__*/ function(UT) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$4b6d9c17188960d2, UT);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$4b6d9c17188960d2);
function $82be45805e629b6c$export$4b6d9c17188960d2() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$4b6d9c17188960d2);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'type-underline');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$4b6d9c17188960d2 extends (0, $4Pi8L$edkit.UnderlineTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "type-underline");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$4b6d9c17188960d2;
}($6Lvvy$edkit.UnderlineTool);
var $82be45805e629b6c$export$a35bffaeae8fdda0 = /*#__PURE__*/ function(STT) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$a35bffaeae8fdda0, STT);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$a35bffaeae8fdda0);
function $82be45805e629b6c$export$a35bffaeae8fdda0() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$a35bffaeae8fdda0);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'type-strikethrough');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$a35bffaeae8fdda0 extends (0, $4Pi8L$edkit.StrikeThroughTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "type-strikethrough");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$a35bffaeae8fdda0;
}($6Lvvy$edkit.StrikeThroughTool);
var $82be45805e629b6c$export$30e8c6b428f8749f = /*#__PURE__*/ function(H1T) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$30e8c6b428f8749f, H1T);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$30e8c6b428f8749f);
function $82be45805e629b6c$export$30e8c6b428f8749f() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$30e8c6b428f8749f);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'type-h1');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$30e8c6b428f8749f extends (0, $4Pi8L$edkit.H1Tool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "type-h1");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$30e8c6b428f8749f;
}($6Lvvy$edkit.H1Tool);
var $82be45805e629b6c$export$58443375efa91029 = /*#__PURE__*/ function(H2T) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$58443375efa91029, H2T);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$58443375efa91029);
function $82be45805e629b6c$export$58443375efa91029() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$58443375efa91029);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'type-h2');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$58443375efa91029 extends (0, $4Pi8L$edkit.H2Tool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "type-h2");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$58443375efa91029;
}($6Lvvy$edkit.H2Tool);
var $82be45805e629b6c$export$75d24d6b8b747307 = /*#__PURE__*/ function(H3T) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$75d24d6b8b747307, H3T);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$75d24d6b8b747307);
function $82be45805e629b6c$export$75d24d6b8b747307() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$75d24d6b8b747307);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'type-h3');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$75d24d6b8b747307 extends (0, $4Pi8L$edkit.H3Tool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "type-h3");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$75d24d6b8b747307;
}($6Lvvy$edkit.H3Tool);
var $82be45805e629b6c$export$a20806c6ef6938f8 = /*#__PURE__*/ function(FSDT) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$a20806c6ef6938f8, FSDT);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$a20806c6ef6938f8);
function $82be45805e629b6c$export$a20806c6ef6938f8() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$a20806c6ef6938f8);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'sort-alpha-down');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$a20806c6ef6938f8 extends (0, $4Pi8L$edkit.FontSizeDownTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "sort-alpha-down");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$a20806c6ef6938f8;
}($6Lvvy$edkit.FontSizeDownTool);
var $82be45805e629b6c$export$744da7e24e4a7382 = /*#__PURE__*/ function(FSUT) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$744da7e24e4a7382, FSUT);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$744da7e24e4a7382);
function $82be45805e629b6c$export$744da7e24e4a7382() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$744da7e24e4a7382);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'sort-alpha-up');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$744da7e24e4a7382 extends (0, $4Pi8L$edkit.FontSizeUpTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "sort-alpha-up");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$744da7e24e4a7382;
}($6Lvvy$edkit.FontSizeUpTool);
var $82be45805e629b6c$export$6137518b4e998008 = /*#__PURE__*/ function(SubST) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$6137518b4e998008, SubST);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$6137518b4e998008);
function $82be45805e629b6c$export$6137518b4e998008() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$6137518b4e998008);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'box-arrow-down-right');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$6137518b4e998008 extends (0, $4Pi8L$edkit.SubscriptTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "box-arrow-down-right");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$6137518b4e998008;
}($6Lvvy$edkit.SubscriptTool);
var $82be45805e629b6c$export$7217f06c61ebd4fc = /*#__PURE__*/ function(SupST) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$7217f06c61ebd4fc, SupST);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$7217f06c61ebd4fc);
function $82be45805e629b6c$export$7217f06c61ebd4fc() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$7217f06c61ebd4fc);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'box-arrow-up-right');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$7217f06c61ebd4fc extends (0, $4Pi8L$edkit.SuperscriptTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "box-arrow-up-right");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$7217f06c61ebd4fc;
}($6Lvvy$edkit.SuperscriptTool);
var $82be45805e629b6c$export$f6c54364b5332e66 = /*#__PURE__*/ function(LT) {
"use strict";
$6Lvvy$swchelpers.inherits($82be45805e629b6c$export$f6c54364b5332e66, LT);
var _super = $6Lvvy$swchelpers.createSuper($82be45805e629b6c$export$f6c54364b5332e66);
function $82be45805e629b6c$export$f6c54364b5332e66() {
$6Lvvy$swchelpers.classCallCheck(this, $82be45805e629b6c$export$f6c54364b5332e66);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'link');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $9a2bbe5526331901$export$f6c54364b5332e66 extends (0, $4Pi8L$edkit.LinkTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "link");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $82be45805e629b6c$export$f6c54364b5332e66;
}($6Lvvy$edkit.LinkTool);
}
var $20ba76a3836ba1c1$exports = {};
var $4c1cbb15589101a6$exports = {};
$parcel$export($20ba76a3836ba1c1$exports, "ColorSelector", function () { return $20ba76a3836ba1c1$export$9012acaf449cdfcb; });
$parcel$export($20ba76a3836ba1c1$exports, "renderColorTool", function () { return $20ba76a3836ba1c1$export$e913fac2ab7b6f29; });
$parcel$export($20ba76a3836ba1c1$exports, "ForeColorTool", function () { return $20ba76a3836ba1c1$export$cab0e15cfb8489d7; });
$parcel$export($20ba76a3836ba1c1$exports, "BackColorTool", function () { return $20ba76a3836ba1c1$export$92bb6183e7459be2; });
$parcel$export($4c1cbb15589101a6$exports, "ColorSelector", function () { return $4c1cbb15589101a6$export$9012acaf449cdfcb; });
$parcel$export($4c1cbb15589101a6$exports, "renderColorTool", function () { return $4c1cbb15589101a6$export$e913fac2ab7b6f29; });
$parcel$export($4c1cbb15589101a6$exports, "ForeColorTool", function () { return $4c1cbb15589101a6$export$cab0e15cfb8489d7; });
$parcel$export($4c1cbb15589101a6$exports, "BackColorTool", function () { return $4c1cbb15589101a6$export$92bb6183e7459be2; });

@@ -263,9 +181,8 @@

function $20ba76a3836ba1c1$export$9012acaf449cdfcb(param1) {
var className = param1.className, title = param1.title, type = param1.type, value1 = param1.value, onChange = param1.onChange, icon = param1.icon;
return /*#__PURE__*/ $6Lvvy$reactjsxruntime.jsxs("span", {
className: "d-inline-block align-middle position-relative ".concat(className),
function $4c1cbb15589101a6$export$9012acaf449cdfcb({ className: className , title: title , type: type , value: value1 , onChange: onChange , icon: icon }) {
return /*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsxs)("span", {
className: `d-inline-block align-middle position-relative ${className}`,
title: title,
children: [
/*#__PURE__*/ $6Lvvy$reactjsxruntime.jsx("input", {
/*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsx)("input", {
className: "position-absolute w-100 h-100 rounded-3",

@@ -279,20 +196,19 @@ style: {

value: value1,
onChange: function(param) {
var value = param.target.value;
onChange: ({ target: { value: value } })=>{
return onChange === null || onChange === void 0 ? void 0 : onChange(value);
}
}),
/*#__PURE__*/ $6Lvvy$reactjsxruntime.jsx("button", {
/*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsx)("button", {
className: "btn",
style: {
color: type === 'color' ? value1 : 'lightgray',
backgroundColor: type === 'color' ? 'white' : value1,
color: type === "color" ? value1 : "lightgray",
backgroundColor: type === "color" ? "white" : value1,
borderColor: value1
},
onClick: function(event) {
onClick: (event)=>{
event.preventDefault();
event.currentTarget.previousElementSibling.click();
},
children: /*#__PURE__*/ $6Lvvy$reactjsxruntime.jsx("i", {
className: "bi-".concat(icon)
children: /*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsx)("i", {
className: `bi-${icon}`
})

@@ -303,6 +219,5 @@ })

}
function $20ba76a3836ba1c1$export$e913fac2ab7b6f29(editor) {
var _this = this;
var ref = this, icon = ref.icon, name = ref.name, colorName = ref.colorName;
return /*#__PURE__*/ $6Lvvy$reactjsxruntime.jsx($20ba76a3836ba1c1$export$9012acaf449cdfcb, {
function $4c1cbb15589101a6$export$e913fac2ab7b6f29(editor) {
const { icon: icon , name: name , colorName: colorName } = this;
return /*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsx)($4c1cbb15589101a6$export$9012acaf449cdfcb, {
className: "me-2 mb-2",

@@ -313,281 +228,160 @@ title: name,

value: this.getColor(),
onChange: function(color) {
return editor.current && _this.execute(editor.current, color);
}
onChange: (color)=>editor.current && this.execute(editor.current, color)
}, icon);
}
var $20ba76a3836ba1c1$export$cab0e15cfb8489d7 = /*#__PURE__*/ function(FCT) {
"use strict";
$6Lvvy$swchelpers.inherits($20ba76a3836ba1c1$export$cab0e15cfb8489d7, FCT);
var _super = $6Lvvy$swchelpers.createSuper($20ba76a3836ba1c1$export$cab0e15cfb8489d7);
function $20ba76a3836ba1c1$export$cab0e15cfb8489d7() {
$6Lvvy$swchelpers.classCallCheck(this, $20ba76a3836ba1c1$export$cab0e15cfb8489d7);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'file-earmark-font');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $20ba76a3836ba1c1$export$e913fac2ab7b6f29);
return _this;
class $4c1cbb15589101a6$export$cab0e15cfb8489d7 extends (0, $4Pi8L$edkit.ForeColorTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "file-earmark-font");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", $4c1cbb15589101a6$export$e913fac2ab7b6f29);
}
return $20ba76a3836ba1c1$export$cab0e15cfb8489d7;
}($6Lvvy$edkit.ForeColorTool);
var $20ba76a3836ba1c1$export$92bb6183e7459be2 = /*#__PURE__*/ function(BCT) {
"use strict";
$6Lvvy$swchelpers.inherits($20ba76a3836ba1c1$export$92bb6183e7459be2, BCT);
var _super = $6Lvvy$swchelpers.createSuper($20ba76a3836ba1c1$export$92bb6183e7459be2);
function $20ba76a3836ba1c1$export$92bb6183e7459be2() {
$6Lvvy$swchelpers.classCallCheck(this, $20ba76a3836ba1c1$export$92bb6183e7459be2);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'file-earmark-font-fill');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $20ba76a3836ba1c1$export$e913fac2ab7b6f29);
return _this;
}
class $4c1cbb15589101a6$export$92bb6183e7459be2 extends (0, $4Pi8L$edkit.BackColorTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "file-earmark-font-fill");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", $4c1cbb15589101a6$export$e913fac2ab7b6f29);
}
return $20ba76a3836ba1c1$export$92bb6183e7459be2;
}($6Lvvy$edkit.BackColorTool);
}
var $13550d109688d881$exports = {};
var $2bb487cfecefdbac$exports = {};
$parcel$export($13550d109688d881$exports, "AlignLeftTool", function () { return $13550d109688d881$export$42a444ebfdcfe7b9; });
$parcel$export($13550d109688d881$exports, "AlignCenterTool", function () { return $13550d109688d881$export$9a2e6e0294a984eb; });
$parcel$export($13550d109688d881$exports, "AlignRightTool", function () { return $13550d109688d881$export$22363f91860fc258; });
$parcel$export($13550d109688d881$exports, "AlignFullTool", function () { return $13550d109688d881$export$42827b1362fed748; });
$parcel$export($13550d109688d881$exports, "OrderedListTool", function () { return $13550d109688d881$export$faf4e70f09f43a15; });
$parcel$export($13550d109688d881$exports, "UnorderedListTool", function () { return $13550d109688d881$export$cf4030b57a3fbe37; });
$parcel$export($13550d109688d881$exports, "HorizontalRuleTool", function () { return $13550d109688d881$export$dce8a7d6279fc201; });
$parcel$export($2bb487cfecefdbac$exports, "AlignLeftTool", function () { return $2bb487cfecefdbac$export$42a444ebfdcfe7b9; });
$parcel$export($2bb487cfecefdbac$exports, "AlignCenterTool", function () { return $2bb487cfecefdbac$export$9a2e6e0294a984eb; });
$parcel$export($2bb487cfecefdbac$exports, "AlignRightTool", function () { return $2bb487cfecefdbac$export$22363f91860fc258; });
$parcel$export($2bb487cfecefdbac$exports, "AlignFullTool", function () { return $2bb487cfecefdbac$export$42827b1362fed748; });
$parcel$export($2bb487cfecefdbac$exports, "OrderedListTool", function () { return $2bb487cfecefdbac$export$faf4e70f09f43a15; });
$parcel$export($2bb487cfecefdbac$exports, "UnorderedListTool", function () { return $2bb487cfecefdbac$export$cf4030b57a3fbe37; });
$parcel$export($2bb487cfecefdbac$exports, "HorizontalRuleTool", function () { return $2bb487cfecefdbac$export$dce8a7d6279fc201; });
var $13550d109688d881$export$42a444ebfdcfe7b9 = /*#__PURE__*/ function(ALT) {
"use strict";
$6Lvvy$swchelpers.inherits($13550d109688d881$export$42a444ebfdcfe7b9, ALT);
var _super = $6Lvvy$swchelpers.createSuper($13550d109688d881$export$42a444ebfdcfe7b9);
function $13550d109688d881$export$42a444ebfdcfe7b9() {
$6Lvvy$swchelpers.classCallCheck(this, $13550d109688d881$export$42a444ebfdcfe7b9);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'text-left');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
class $2bb487cfecefdbac$export$42a444ebfdcfe7b9 extends (0, $4Pi8L$edkit.AlignLeftTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "text-left");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $13550d109688d881$export$42a444ebfdcfe7b9;
}($6Lvvy$edkit.AlignLeftTool);
var $13550d109688d881$export$9a2e6e0294a984eb = /*#__PURE__*/ function(ACT) {
"use strict";
$6Lvvy$swchelpers.inherits($13550d109688d881$export$9a2e6e0294a984eb, ACT);
var _super = $6Lvvy$swchelpers.createSuper($13550d109688d881$export$9a2e6e0294a984eb);
function $13550d109688d881$export$9a2e6e0294a984eb() {
$6Lvvy$swchelpers.classCallCheck(this, $13550d109688d881$export$9a2e6e0294a984eb);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'text-center');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $2bb487cfecefdbac$export$9a2e6e0294a984eb extends (0, $4Pi8L$edkit.AlignCenterTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "text-center");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $13550d109688d881$export$9a2e6e0294a984eb;
}($6Lvvy$edkit.AlignCenterTool);
var $13550d109688d881$export$22363f91860fc258 = /*#__PURE__*/ function(ART) {
"use strict";
$6Lvvy$swchelpers.inherits($13550d109688d881$export$22363f91860fc258, ART);
var _super = $6Lvvy$swchelpers.createSuper($13550d109688d881$export$22363f91860fc258);
function $13550d109688d881$export$22363f91860fc258() {
$6Lvvy$swchelpers.classCallCheck(this, $13550d109688d881$export$22363f91860fc258);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'text-right');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $2bb487cfecefdbac$export$22363f91860fc258 extends (0, $4Pi8L$edkit.AlignRightTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "text-right");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $13550d109688d881$export$22363f91860fc258;
}($6Lvvy$edkit.AlignRightTool);
var $13550d109688d881$export$42827b1362fed748 = /*#__PURE__*/ function(AFT) {
"use strict";
$6Lvvy$swchelpers.inherits($13550d109688d881$export$42827b1362fed748, AFT);
var _super = $6Lvvy$swchelpers.createSuper($13550d109688d881$export$42827b1362fed748);
function $13550d109688d881$export$42827b1362fed748() {
$6Lvvy$swchelpers.classCallCheck(this, $13550d109688d881$export$42827b1362fed748);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'justify');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $2bb487cfecefdbac$export$42827b1362fed748 extends (0, $4Pi8L$edkit.AlignFullTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "justify");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $13550d109688d881$export$42827b1362fed748;
}($6Lvvy$edkit.AlignFullTool);
var $13550d109688d881$export$faf4e70f09f43a15 = /*#__PURE__*/ function(OLT) {
"use strict";
$6Lvvy$swchelpers.inherits($13550d109688d881$export$faf4e70f09f43a15, OLT);
var _super = $6Lvvy$swchelpers.createSuper($13550d109688d881$export$faf4e70f09f43a15);
function $13550d109688d881$export$faf4e70f09f43a15() {
$6Lvvy$swchelpers.classCallCheck(this, $13550d109688d881$export$faf4e70f09f43a15);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'list-ol');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $2bb487cfecefdbac$export$faf4e70f09f43a15 extends (0, $4Pi8L$edkit.OrderedListTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "list-ol");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $13550d109688d881$export$faf4e70f09f43a15;
}($6Lvvy$edkit.OrderedListTool);
var $13550d109688d881$export$cf4030b57a3fbe37 = /*#__PURE__*/ function(ULT) {
"use strict";
$6Lvvy$swchelpers.inherits($13550d109688d881$export$cf4030b57a3fbe37, ULT);
var _super = $6Lvvy$swchelpers.createSuper($13550d109688d881$export$cf4030b57a3fbe37);
function $13550d109688d881$export$cf4030b57a3fbe37() {
$6Lvvy$swchelpers.classCallCheck(this, $13550d109688d881$export$cf4030b57a3fbe37);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'list-ul');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $2bb487cfecefdbac$export$cf4030b57a3fbe37 extends (0, $4Pi8L$edkit.UnorderedListTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "list-ul");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $13550d109688d881$export$cf4030b57a3fbe37;
}($6Lvvy$edkit.UnorderedListTool);
var $13550d109688d881$export$dce8a7d6279fc201 = /*#__PURE__*/ function(HRT) {
"use strict";
$6Lvvy$swchelpers.inherits($13550d109688d881$export$dce8a7d6279fc201, HRT);
var _super = $6Lvvy$swchelpers.createSuper($13550d109688d881$export$dce8a7d6279fc201);
function $13550d109688d881$export$dce8a7d6279fc201() {
$6Lvvy$swchelpers.classCallCheck(this, $13550d109688d881$export$dce8a7d6279fc201);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'reception-0');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $2bb487cfecefdbac$export$dce8a7d6279fc201 extends (0, $4Pi8L$edkit.HorizontalRuleTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "reception-0");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $13550d109688d881$export$dce8a7d6279fc201;
}($6Lvvy$edkit.HorizontalRuleTool);
}
var $e2f4a713d50dbe76$exports = {};
var $ee1dbf60aeaab96b$exports = {};
$parcel$export($e2f4a713d50dbe76$exports, "IFrameTool", function () { return $e2f4a713d50dbe76$export$3e557574863db086; });
$parcel$export($e2f4a713d50dbe76$exports, "ImageTool", function () { return $e2f4a713d50dbe76$export$982f47444a2f88da; });
$parcel$export($e2f4a713d50dbe76$exports, "AudioTool", function () { return $e2f4a713d50dbe76$export$6024938f37e646f8; });
$parcel$export($e2f4a713d50dbe76$exports, "VideoTool", function () { return $e2f4a713d50dbe76$export$932111b8028f79ed; });
$parcel$export($ee1dbf60aeaab96b$exports, "IFrameTool", function () { return $ee1dbf60aeaab96b$export$3e557574863db086; });
$parcel$export($ee1dbf60aeaab96b$exports, "ImageTool", function () { return $ee1dbf60aeaab96b$export$982f47444a2f88da; });
$parcel$export($ee1dbf60aeaab96b$exports, "AudioTool", function () { return $ee1dbf60aeaab96b$export$6024938f37e646f8; });
$parcel$export($ee1dbf60aeaab96b$exports, "VideoTool", function () { return $ee1dbf60aeaab96b$export$932111b8028f79ed; });
var $e2f4a713d50dbe76$export$3e557574863db086 = /*#__PURE__*/ function(FT) {
"use strict";
$6Lvvy$swchelpers.inherits($e2f4a713d50dbe76$export$3e557574863db086, FT);
var _super = $6Lvvy$swchelpers.createSuper($e2f4a713d50dbe76$export$3e557574863db086);
function $e2f4a713d50dbe76$export$3e557574863db086() {
$6Lvvy$swchelpers.classCallCheck(this, $e2f4a713d50dbe76$export$3e557574863db086);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'window');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
class $ee1dbf60aeaab96b$export$3e557574863db086 extends (0, $4Pi8L$edkit.IFrameTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "window");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $e2f4a713d50dbe76$export$3e557574863db086;
}($6Lvvy$edkit.IFrameTool);
var $e2f4a713d50dbe76$export$982f47444a2f88da = /*#__PURE__*/ function(IT) {
"use strict";
$6Lvvy$swchelpers.inherits($e2f4a713d50dbe76$export$982f47444a2f88da, IT);
var _super = $6Lvvy$swchelpers.createSuper($e2f4a713d50dbe76$export$982f47444a2f88da);
function $e2f4a713d50dbe76$export$982f47444a2f88da() {
$6Lvvy$swchelpers.classCallCheck(this, $e2f4a713d50dbe76$export$982f47444a2f88da);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'image');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $ee1dbf60aeaab96b$export$982f47444a2f88da extends (0, $4Pi8L$edkit.ImageTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "image");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $e2f4a713d50dbe76$export$982f47444a2f88da;
}($6Lvvy$edkit.ImageTool);
var $e2f4a713d50dbe76$export$6024938f37e646f8 = /*#__PURE__*/ function(AT) {
"use strict";
$6Lvvy$swchelpers.inherits($e2f4a713d50dbe76$export$6024938f37e646f8, AT);
var _super = $6Lvvy$swchelpers.createSuper($e2f4a713d50dbe76$export$6024938f37e646f8);
function $e2f4a713d50dbe76$export$6024938f37e646f8() {
$6Lvvy$swchelpers.classCallCheck(this, $e2f4a713d50dbe76$export$6024938f37e646f8);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'voicemail');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $ee1dbf60aeaab96b$export$6024938f37e646f8 extends (0, $4Pi8L$edkit.AudioTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "voicemail");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $e2f4a713d50dbe76$export$6024938f37e646f8;
}($6Lvvy$edkit.AudioTool);
var $e2f4a713d50dbe76$export$932111b8028f79ed = /*#__PURE__*/ function(VT) {
"use strict";
$6Lvvy$swchelpers.inherits($e2f4a713d50dbe76$export$932111b8028f79ed, VT);
var _super = $6Lvvy$swchelpers.createSuper($e2f4a713d50dbe76$export$932111b8028f79ed);
function $e2f4a713d50dbe76$export$932111b8028f79ed() {
$6Lvvy$swchelpers.classCallCheck(this, $e2f4a713d50dbe76$export$932111b8028f79ed);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'camera-video');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $ee1dbf60aeaab96b$export$932111b8028f79ed extends (0, $4Pi8L$edkit.VideoTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "camera-video");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $e2f4a713d50dbe76$export$932111b8028f79ed;
}($6Lvvy$edkit.VideoTool);
}
var $f2c9a88cd503c93d$exports = {};
var $39dd722b123bef71$exports = {};
$parcel$export($f2c9a88cd503c93d$exports, "UndoTool", function () { return $f2c9a88cd503c93d$export$65235875731ff287; });
$parcel$export($f2c9a88cd503c93d$exports, "RedoTool", function () { return $f2c9a88cd503c93d$export$b60f30d254d1e1a6; });
$parcel$export($f2c9a88cd503c93d$exports, "ResetTool", function () { return $f2c9a88cd503c93d$export$6f46dc3d81fbb4bd; });
$parcel$export($f2c9a88cd503c93d$exports, "ClearTool", function () { return $f2c9a88cd503c93d$export$25eb377ce1feaada; });
$parcel$export($39dd722b123bef71$exports, "UndoTool", function () { return $39dd722b123bef71$export$65235875731ff287; });
$parcel$export($39dd722b123bef71$exports, "RedoTool", function () { return $39dd722b123bef71$export$b60f30d254d1e1a6; });
$parcel$export($39dd722b123bef71$exports, "ResetTool", function () { return $39dd722b123bef71$export$6f46dc3d81fbb4bd; });
$parcel$export($39dd722b123bef71$exports, "ClearTool", function () { return $39dd722b123bef71$export$25eb377ce1feaada; });
var $f2c9a88cd503c93d$export$65235875731ff287 = /*#__PURE__*/ function(UDT) {
"use strict";
$6Lvvy$swchelpers.inherits($f2c9a88cd503c93d$export$65235875731ff287, UDT);
var _super = $6Lvvy$swchelpers.createSuper($f2c9a88cd503c93d$export$65235875731ff287);
function $f2c9a88cd503c93d$export$65235875731ff287() {
$6Lvvy$swchelpers.classCallCheck(this, $f2c9a88cd503c93d$export$65235875731ff287);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'arrow-counterclockwise');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
class $39dd722b123bef71$export$65235875731ff287 extends (0, $4Pi8L$edkit.UndoTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "arrow-counterclockwise");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $f2c9a88cd503c93d$export$65235875731ff287;
}($6Lvvy$edkit.UndoTool);
var $f2c9a88cd503c93d$export$b60f30d254d1e1a6 = /*#__PURE__*/ function(RDT) {
"use strict";
$6Lvvy$swchelpers.inherits($f2c9a88cd503c93d$export$b60f30d254d1e1a6, RDT);
var _super = $6Lvvy$swchelpers.createSuper($f2c9a88cd503c93d$export$b60f30d254d1e1a6);
function $f2c9a88cd503c93d$export$b60f30d254d1e1a6() {
$6Lvvy$swchelpers.classCallCheck(this, $f2c9a88cd503c93d$export$b60f30d254d1e1a6);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'arrow-clockwise');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $39dd722b123bef71$export$b60f30d254d1e1a6 extends (0, $4Pi8L$edkit.RedoTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "arrow-clockwise");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $f2c9a88cd503c93d$export$b60f30d254d1e1a6;
}($6Lvvy$edkit.RedoTool);
var $f2c9a88cd503c93d$export$6f46dc3d81fbb4bd = /*#__PURE__*/ function(RST) {
"use strict";
$6Lvvy$swchelpers.inherits($f2c9a88cd503c93d$export$6f46dc3d81fbb4bd, RST);
var _super = $6Lvvy$swchelpers.createSuper($f2c9a88cd503c93d$export$6f46dc3d81fbb4bd);
function $f2c9a88cd503c93d$export$6f46dc3d81fbb4bd() {
$6Lvvy$swchelpers.classCallCheck(this, $f2c9a88cd503c93d$export$6f46dc3d81fbb4bd);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'eraser');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $39dd722b123bef71$export$6f46dc3d81fbb4bd extends (0, $4Pi8L$edkit.ResetTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "eraser");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $f2c9a88cd503c93d$export$6f46dc3d81fbb4bd;
}($6Lvvy$edkit.ResetTool);
var $f2c9a88cd503c93d$export$25eb377ce1feaada = /*#__PURE__*/ function(CT) {
"use strict";
$6Lvvy$swchelpers.inherits($f2c9a88cd503c93d$export$25eb377ce1feaada, CT);
var _super = $6Lvvy$swchelpers.createSuper($f2c9a88cd503c93d$export$25eb377ce1feaada);
function $f2c9a88cd503c93d$export$25eb377ce1feaada() {
$6Lvvy$swchelpers.classCallCheck(this, $f2c9a88cd503c93d$export$25eb377ce1feaada);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "icon", 'file-earmark-x');
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "render", $e6d4b3ebb29c3ec4$export$56ccecc1dac11363);
return _this;
}
class $39dd722b123bef71$export$25eb377ce1feaada extends (0, $4Pi8L$edkit.ClearTool) {
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "icon", "file-earmark-x");
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "render", (0, $783b6726ddd1ea56$export$56ccecc1dac11363));
}
return $f2c9a88cd503c93d$export$25eb377ce1feaada;
}($6Lvvy$edkit.ClearTool);
}

@@ -600,76 +394,82 @@

var $9d49801ddb6619aa$export$e252ba763eff5cdc = [
$82be45805e629b6c$export$10056a49e3b218eb,
$82be45805e629b6c$export$edf99d0f51bacb1e,
$82be45805e629b6c$export$4b6d9c17188960d2,
$82be45805e629b6c$export$a35bffaeae8fdda0,
$82be45805e629b6c$export$30e8c6b428f8749f,
$82be45805e629b6c$export$58443375efa91029,
$82be45805e629b6c$export$75d24d6b8b747307,
$82be45805e629b6c$export$a20806c6ef6938f8,
$82be45805e629b6c$export$744da7e24e4a7382,
$82be45805e629b6c$export$6137518b4e998008,
$82be45805e629b6c$export$7217f06c61ebd4fc,
$82be45805e629b6c$export$f6c54364b5332e66
const $ee8be56859ec8fb7$export$e252ba763eff5cdc = [
(0, $9a2bbe5526331901$export$10056a49e3b218eb),
(0, $9a2bbe5526331901$export$edf99d0f51bacb1e),
(0, $9a2bbe5526331901$export$4b6d9c17188960d2),
(0, $9a2bbe5526331901$export$a35bffaeae8fdda0),
(0, $9a2bbe5526331901$export$30e8c6b428f8749f),
(0, $9a2bbe5526331901$export$58443375efa91029),
(0, $9a2bbe5526331901$export$75d24d6b8b747307),
(0, $9a2bbe5526331901$export$a20806c6ef6938f8),
(0, $9a2bbe5526331901$export$744da7e24e4a7382),
(0, $9a2bbe5526331901$export$6137518b4e998008),
(0, $9a2bbe5526331901$export$7217f06c61ebd4fc),
(0, $9a2bbe5526331901$export$f6c54364b5332e66)
];
var $9d49801ddb6619aa$export$bdef6e97a10dbad4 = [
$20ba76a3836ba1c1$export$cab0e15cfb8489d7,
$20ba76a3836ba1c1$export$92bb6183e7459be2
const $ee8be56859ec8fb7$export$bdef6e97a10dbad4 = [
(0, $4c1cbb15589101a6$export$cab0e15cfb8489d7),
(0, $4c1cbb15589101a6$export$92bb6183e7459be2)
];
var $9d49801ddb6619aa$export$145c1b37c0810d7 = [
$13550d109688d881$export$42a444ebfdcfe7b9,
$13550d109688d881$export$9a2e6e0294a984eb,
$13550d109688d881$export$22363f91860fc258,
$13550d109688d881$export$42827b1362fed748,
$13550d109688d881$export$faf4e70f09f43a15,
$13550d109688d881$export$cf4030b57a3fbe37,
$13550d109688d881$export$dce8a7d6279fc201
const $ee8be56859ec8fb7$export$145c1b37c0810d7 = [
(0, $2bb487cfecefdbac$export$42a444ebfdcfe7b9),
(0, $2bb487cfecefdbac$export$9a2e6e0294a984eb),
(0, $2bb487cfecefdbac$export$22363f91860fc258),
(0, $2bb487cfecefdbac$export$42827b1362fed748),
(0, $2bb487cfecefdbac$export$faf4e70f09f43a15),
(0, $2bb487cfecefdbac$export$cf4030b57a3fbe37),
(0, $2bb487cfecefdbac$export$dce8a7d6279fc201)
];
var $9d49801ddb6619aa$export$999636c6e25075fb = [
$e2f4a713d50dbe76$export$3e557574863db086,
$e2f4a713d50dbe76$export$982f47444a2f88da,
$e2f4a713d50dbe76$export$6024938f37e646f8,
$e2f4a713d50dbe76$export$932111b8028f79ed
const $ee8be56859ec8fb7$export$999636c6e25075fb = [
(0, $ee1dbf60aeaab96b$export$3e557574863db086),
(0, $ee1dbf60aeaab96b$export$982f47444a2f88da),
(0, $ee1dbf60aeaab96b$export$6024938f37e646f8),
(0, $ee1dbf60aeaab96b$export$932111b8028f79ed)
];
var $9d49801ddb6619aa$export$f35db4b82786c3a4 = [
$f2c9a88cd503c93d$export$65235875731ff287,
$f2c9a88cd503c93d$export$b60f30d254d1e1a6,
$f2c9a88cd503c93d$export$6f46dc3d81fbb4bd,
$f2c9a88cd503c93d$export$25eb377ce1feaada
const $ee8be56859ec8fb7$export$f35db4b82786c3a4 = [
(0, $39dd722b123bef71$export$65235875731ff287),
(0, $39dd722b123bef71$export$b60f30d254d1e1a6),
(0, $39dd722b123bef71$export$6f46dc3d81fbb4bd),
(0, $39dd722b123bef71$export$25eb377ce1feaada)
];
var $9d49801ddb6619aa$export$9ddb256264948609 = $6Lvvy$swchelpers.toConsumableArray($9d49801ddb6619aa$export$e252ba763eff5cdc).concat($6Lvvy$swchelpers.toConsumableArray($9d49801ddb6619aa$export$bdef6e97a10dbad4), $6Lvvy$swchelpers.toConsumableArray($9d49801ddb6619aa$export$145c1b37c0810d7), $6Lvvy$swchelpers.toConsumableArray($9d49801ddb6619aa$export$999636c6e25075fb), $6Lvvy$swchelpers.toConsumableArray($9d49801ddb6619aa$export$f35db4b82786c3a4));
var $9d49801ddb6619aa$export$aa718db1466ce312 = [
$82be45805e629b6c$export$10056a49e3b218eb,
$82be45805e629b6c$export$edf99d0f51bacb1e,
$82be45805e629b6c$export$4b6d9c17188960d2,
$82be45805e629b6c$export$a35bffaeae8fdda0,
$82be45805e629b6c$export$30e8c6b428f8749f,
$82be45805e629b6c$export$58443375efa91029,
$82be45805e629b6c$export$75d24d6b8b747307,
$82be45805e629b6c$export$6137518b4e998008,
$82be45805e629b6c$export$7217f06c61ebd4fc,
$20ba76a3836ba1c1$export$cab0e15cfb8489d7,
$20ba76a3836ba1c1$export$92bb6183e7459be2,
$13550d109688d881$export$42a444ebfdcfe7b9,
$13550d109688d881$export$9a2e6e0294a984eb,
$13550d109688d881$export$22363f91860fc258,
$13550d109688d881$export$42827b1362fed748,
$13550d109688d881$export$faf4e70f09f43a15,
$13550d109688d881$export$cf4030b57a3fbe37,
$13550d109688d881$export$dce8a7d6279fc201,
$e2f4a713d50dbe76$export$982f47444a2f88da,
$f2c9a88cd503c93d$export$65235875731ff287,
$f2c9a88cd503c93d$export$b60f30d254d1e1a6,
$f2c9a88cd503c93d$export$25eb377ce1feaada
const $ee8be56859ec8fb7$export$9ddb256264948609 = [
...$ee8be56859ec8fb7$export$e252ba763eff5cdc,
...$ee8be56859ec8fb7$export$bdef6e97a10dbad4,
...$ee8be56859ec8fb7$export$145c1b37c0810d7,
...$ee8be56859ec8fb7$export$999636c6e25075fb,
...$ee8be56859ec8fb7$export$f35db4b82786c3a4
];
$parcel$exportWildcard($9d49801ddb6619aa$exports, $82be45805e629b6c$exports);
$parcel$exportWildcard($9d49801ddb6619aa$exports, $20ba76a3836ba1c1$exports);
$parcel$exportWildcard($9d49801ddb6619aa$exports, $13550d109688d881$exports);
$parcel$exportWildcard($9d49801ddb6619aa$exports, $e2f4a713d50dbe76$exports);
$parcel$exportWildcard($9d49801ddb6619aa$exports, $f2c9a88cd503c93d$exports);
const $ee8be56859ec8fb7$export$aa718db1466ce312 = [
(0, $9a2bbe5526331901$export$10056a49e3b218eb),
(0, $9a2bbe5526331901$export$edf99d0f51bacb1e),
(0, $9a2bbe5526331901$export$4b6d9c17188960d2),
(0, $9a2bbe5526331901$export$a35bffaeae8fdda0),
(0, $9a2bbe5526331901$export$30e8c6b428f8749f),
(0, $9a2bbe5526331901$export$58443375efa91029),
(0, $9a2bbe5526331901$export$75d24d6b8b747307),
(0, $9a2bbe5526331901$export$6137518b4e998008),
(0, $9a2bbe5526331901$export$7217f06c61ebd4fc),
(0, $4c1cbb15589101a6$export$cab0e15cfb8489d7),
(0, $4c1cbb15589101a6$export$92bb6183e7459be2),
(0, $2bb487cfecefdbac$export$42a444ebfdcfe7b9),
(0, $2bb487cfecefdbac$export$9a2e6e0294a984eb),
(0, $2bb487cfecefdbac$export$22363f91860fc258),
(0, $2bb487cfecefdbac$export$42827b1362fed748),
(0, $2bb487cfecefdbac$export$faf4e70f09f43a15),
(0, $2bb487cfecefdbac$export$cf4030b57a3fbe37),
(0, $2bb487cfecefdbac$export$dce8a7d6279fc201),
(0, $ee1dbf60aeaab96b$export$982f47444a2f88da),
(0, $39dd722b123bef71$export$65235875731ff287),
(0, $39dd722b123bef71$export$b60f30d254d1e1a6),
(0, $39dd722b123bef71$export$25eb377ce1feaada)
];
$parcel$exportWildcard($ee8be56859ec8fb7$exports, $9a2bbe5526331901$exports);
$parcel$exportWildcard($ee8be56859ec8fb7$exports, $4c1cbb15589101a6$exports);
$parcel$exportWildcard($ee8be56859ec8fb7$exports, $2bb487cfecefdbac$exports);
$parcel$exportWildcard($ee8be56859ec8fb7$exports, $ee1dbf60aeaab96b$exports);
$parcel$exportWildcard($ee8be56859ec8fb7$exports, $39dd722b123bef71$exports);
var $909fab8ca6d5b054$exports = {};
var $6eca4c4d96d9280c$exports = {};
$parcel$export($909fab8ca6d5b054$exports, "Editor", function () { return $909fab8ca6d5b054$export$7cda8d932e2f33c0; });
$parcel$export($6eca4c4d96d9280c$exports, "Editor", function () { return $6eca4c4d96d9280c$export$7cda8d932e2f33c0; });

@@ -679,87 +479,113 @@

var $909fab8ca6d5b054$export$7cda8d932e2f33c0 = /*#__PURE__*/ function(PureComponent) {
"use strict";
$6Lvvy$swchelpers.inherits($909fab8ca6d5b054$export$7cda8d932e2f33c0, PureComponent);
var _super = $6Lvvy$swchelpers.createSuper($909fab8ca6d5b054$export$7cda8d932e2f33c0);
function $909fab8ca6d5b054$export$7cda8d932e2f33c0() {
$6Lvvy$swchelpers.classCallCheck(this, $909fab8ca6d5b054$export$7cda8d932e2f33c0);
var _this;
_this = _super.apply(this, arguments);
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "box", /*#__PURE__*/ $6Lvvy$react.createRef());
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "state", {
class $6eca4c4d96d9280c$export$7cda8d932e2f33c0 extends (0, $4Pi8L$react.PureComponent) {
static getDerivedStateFromProps({ tools: tools = (0, $ee8be56859ec8fb7$export$aa718db1466ce312) , defaultValue: defaultValue }, { toolList: toolList , data: data }) {
return {
toolList: toolList[0] ? toolList : tools.map((ToolButton)=>new ToolButton()),
data: data || defaultValue
};
}
componentDidMount() {
document.addEventListener("selectionchange", this.updateTools);
}
componentWillUnmount() {
document.removeEventListener("selectionchange", this.updateTools);
}
async uploadFile(Type, data) {
if (typeof data === "string" && !/^(data|blob):/.test(data)) return data;
const tool1 = this.state.toolList.find((tool)=>tool instanceof Type);
try {
return await (tool1 === null || tool1 === void 0 ? void 0 : tool1.save(typeof data === "string" ? await (0, $4Pi8L$webutility.blobOf)(data) : data));
} catch (error) {
console.error(error);
if (typeof data === "string") return data;
}
}
async clearHTML(markup) {
const fragment = document.createDocumentFragment();
fragment.append(...(0, $4Pi8L$webutility.parseDOM)(markup));
for (const element of (0, $4Pi8L$webutility.walkDOM)(fragment, Node.ELEMENT_NODE)){
const { style: style , dataset: dataset } = element;
if ([
"nowrap",
"pre"
].includes(style.whiteSpace)) style.whiteSpace = "normal";
for(const key in dataset)delete dataset[key];
if (element instanceof HTMLImageElement) element.src = await this.uploadFile((0, $ee1dbf60aeaab96b$export$982f47444a2f88da), element.src);
else if (element instanceof HTMLAudioElement) element.src = await this.uploadFile((0, $ee1dbf60aeaab96b$export$6024938f37e646f8), element.src);
else if (element instanceof HTMLVideoElement) element.src = await this.uploadFile((0, $ee1dbf60aeaab96b$export$932111b8028f79ed), element.src);
}
return fragment;
}
render() {
const { toolList: toolList , data: data } = this.state, { onChange: onChange } = this.props;
return /*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsxs)((0, $4Pi8L$reactjsxruntime.Fragment), {
children: [
/*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsx)("header", {
children: toolList.map((tool)=>tool.render(this.box))
}),
/*#__PURE__*/ (0, $4Pi8L$reactjsxruntime.jsx)("div", {
ref: this.box,
className: "form-control h-auto",
contentEditable: true,
dangerouslySetInnerHTML: {
__html: data
},
onPaste: this.handlePasteDrop,
onDrop: this.handlePasteDrop,
onInput: ({ currentTarget: { innerHTML: innerHTML } })=>{
return onChange === null || onChange === void 0 ? void 0 : onChange(innerHTML);
}
})
]
});
}
constructor(...args){
super(...args);
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "box", /*#__PURE__*/ (0, $4Pi8L$react.createRef)());
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "state", {
toolList: [],
data: ''
data: ""
});
$6Lvvy$swchelpers.defineProperty($6Lvvy$swchelpers.assertThisInitialized(_this), "updateTools", function() {
if (_this.box.current === document.activeElement) _this.setState({
toolList: $6Lvvy$swchelpers.toConsumableArray(_this.state.toolList)
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "updateTools", ()=>{
if (this.box.current === document.activeElement) this.setState({
toolList: [
...this.state.toolList
]
});
});
return _this;
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))(this, "handlePasteDrop", async (event)=>{
var _props, ref;
event.preventDefault();
const { currentTarget: currentTarget } = event;
const list = event.type === "paste" ? [
...event.clipboardData.items
] : [
...event.dataTransfer.items
];
for (const item of list)if (item.type === "text/html") {
const raw = await new Promise((resolve)=>item.getAsString(resolve));
(0, $4Pi8L$webutility.insertToCursor)(await this.clearHTML(raw));
} else if (item.type.startsWith("image/")) {
const URI = await this.uploadFile((0, $ee1dbf60aeaab96b$export$982f47444a2f88da), item.getAsFile());
if (URI) (0, $4Pi8L$webutility.insertToCursor)(...(0, $4Pi8L$webutility.parseDOM)(`<img src="${URI}" />`));
} else if (item.type.startsWith("audio/")) {
const URI = await this.uploadFile((0, $ee1dbf60aeaab96b$export$6024938f37e646f8), item.getAsFile());
if (URI) (0, $4Pi8L$webutility.insertToCursor)(...(0, $4Pi8L$webutility.parseDOM)(`<audio src="${URI}" />`));
} else if (item.type.startsWith("video/")) {
const URI = await this.uploadFile((0, $ee1dbf60aeaab96b$export$932111b8028f79ed), item.getAsFile());
if (URI) (0, $4Pi8L$webutility.insertToCursor)(...(0, $4Pi8L$webutility.parseDOM)(`<video src="${URI}" />`));
}
(ref = (_props = this.props).onChange) === null || ref === void 0 ? void 0 : ref.call(_props, currentTarget.innerHTML);
});
}
$6Lvvy$swchelpers.createClass($909fab8ca6d5b054$export$7cda8d932e2f33c0, [
{
key: "componentDidMount",
value: function componentDidMount() {
document.addEventListener('selectionchange', this.updateTools);
}
},
{
key: "componentWillUnmount",
value: function componentWillUnmount() {
document.removeEventListener('selectionchange', this.updateTools);
}
},
{
key: "render",
value: function render() {
var _this = this;
var _state = this.state, toolList = _state.toolList, data = _state.data, onChange = this.props.onChange;
return /*#__PURE__*/ $6Lvvy$reactjsxruntime.jsxs($6Lvvy$reactjsxruntime.Fragment, {
children: [
/*#__PURE__*/ $6Lvvy$reactjsxruntime.jsx("header", {
children: toolList.map(function(tool) {
return tool.render(_this.box);
})
}),
/*#__PURE__*/ $6Lvvy$reactjsxruntime.jsx("div", {
ref: this.box,
className: "form-control h-auto",
contentEditable: true,
dangerouslySetInnerHTML: {
__html: data
},
onInput: function(param) {
var target = param.target;
return onChange === null || onChange === void 0 ? void 0 : onChange(target.innerHTML);
}
})
]
});
}
}
], [
{
key: "getDerivedStateFromProps",
value: function getDerivedStateFromProps(param, param1) {
var _tools = param.tools, tools = _tools === void 0 ? $9d49801ddb6619aa$export$aa718db1466ce312 : _tools, value = param.value, toolList = param1.toolList, data = param1.data;
return {
toolList: toolList[0] ? toolList : tools.map(function(ToolButton) {
return new ToolButton();
}),
data: data || value
};
}
}
]);
return $909fab8ca6d5b054$export$7cda8d932e2f33c0;
}($6Lvvy$react.PureComponent);
$6Lvvy$swchelpers.defineProperty($909fab8ca6d5b054$export$7cda8d932e2f33c0, "displayName", 'Editor');
}
(0, ($parcel$interopDefault($4Pi8L$swchelperslib_define_propertyjs)))($6eca4c4d96d9280c$export$7cda8d932e2f33c0, "displayName", "Editor");
$parcel$exportWildcard(module.exports, $e6d4b3ebb29c3ec4$exports);
$parcel$exportWildcard(module.exports, $9d49801ddb6619aa$exports);
$parcel$exportWildcard(module.exports, $909fab8ca6d5b054$exports);
$parcel$exportWildcard(module.exports, $783b6726ddd1ea56$exports);
$parcel$exportWildcard(module.exports, $ee8be56859ec8fb7$exports);
$parcel$exportWildcard(module.exports, $6eca4c4d96d9280c$exports);
//# sourceMappingURL=index.js.map
{
"name": "react-bootstrap-editor",
"version": "1.0.0-rc.5",
"version": "1.0.0-rc.7",
"license": "LGPL-3.0",

@@ -27,12 +27,13 @@ "author": "shiy2008@gmail.com",

"dependencies": {
"@swc/helpers": "^0.3.8",
"edkit": "^1.0.0-rc.5",
"@swc/helpers": "^0.4.14",
"edkit": "^1.0.0-rc.6",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react-dom": "^17.0.2",
"web-utility": "^3.9.9"
},
"devDependencies": {
"@types/react": "^17.0.44",
"@types/react-dom": "^17.0.15",
"parcel": "^2.4.1",
"typescript": "~4.4.4"
"@types/react": "^17.0.52",
"@types/react-dom": "^17.0.18",
"parcel": "~2.6.2",
"typescript": "~4.7.4"
},

@@ -39,0 +40,0 @@ "browserslist": "> 0.5%, last 2 versions, not dead",

@@ -22,3 +22,3 @@ # React Bootstrap editor

```shell
npm install react react-bootstrap-editor
npm install react@17 react-bootstrap-editor
```

@@ -32,7 +32,7 @@

rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
href="https://unpkg.com/bootstrap@5.2.3/dist/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css"
href="https://unpkg.com/bootstrap-icons@1.10.2/font/bootstrap-icons.css"
/>

@@ -50,3 +50,3 @@ </head>

render() {
return <Editor value="<p>test</p>" onChange={console.log} />;
return <Editor defaultValue="<p>test</p>" onChange={console.log} />;
}

@@ -53,0 +53,0 @@ }

@@ -7,4 +7,5 @@ {

"esModuleInterop": true,
"downlevelIteration": true,
"jsx": "react",
"lib": ["ES2021", "DOM"],
"lib": ["ES2021", "DOM", "DOM.Iterable"],
"declaration": true,

@@ -11,0 +12,0 @@ "outDir": "dist/"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet