@pie-lib/editable-html 12.1.0-next.2 → 12.1.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/block-tags.js +24 -0
- package/lib/block-tags.js.map +1 -0
- package/lib/constants.js +11 -0
- package/lib/constants.js.map +1 -0
- package/lib/editor.js +1224 -0
- package/lib/editor.js.map +1 -0
- package/lib/index.js +208 -0
- package/lib/index.js.map +1 -0
- package/lib/parse-html.js +16 -0
- package/lib/parse-html.js.map +1 -0
- package/lib/plugins/characters/custom-popper.js +57 -0
- package/lib/plugins/characters/custom-popper.js.map +1 -0
- package/lib/plugins/characters/index.js +265 -0
- package/lib/plugins/characters/index.js.map +1 -0
- package/lib/plugins/characters/utils.js +378 -0
- package/lib/plugins/characters/utils.js.map +1 -0
- package/lib/plugins/css/icons/index.js +25 -0
- package/lib/plugins/css/icons/index.js.map +1 -0
- package/lib/plugins/css/index.js +338 -0
- package/lib/plugins/css/index.js.map +1 -0
- package/lib/plugins/customPlugin/index.js +98 -0
- package/lib/plugins/customPlugin/index.js.map +1 -0
- package/lib/plugins/html/icons/index.js +30 -0
- package/lib/plugins/html/icons/index.js.map +1 -0
- package/lib/plugins/html/index.js +71 -0
- package/lib/plugins/html/index.js.map +1 -0
- package/lib/plugins/image/alt-dialog.js +100 -0
- package/lib/plugins/image/alt-dialog.js.map +1 -0
- package/lib/plugins/image/component.js +343 -0
- package/lib/plugins/image/component.js.map +1 -0
- package/lib/plugins/image/image-toolbar.js +137 -0
- package/lib/plugins/image/image-toolbar.js.map +1 -0
- package/lib/plugins/image/index.js +223 -0
- package/lib/plugins/image/index.js.map +1 -0
- package/lib/plugins/image/insert-image-handler.js +140 -0
- package/lib/plugins/image/insert-image-handler.js.map +1 -0
- package/lib/plugins/index.js +342 -0
- package/lib/plugins/index.js.map +1 -0
- package/lib/plugins/list/index.js +288 -0
- package/lib/plugins/list/index.js.map +1 -0
- package/lib/plugins/math/index.js +402 -0
- package/lib/plugins/math/index.js.map +1 -0
- package/lib/plugins/media/index.js +330 -0
- package/lib/plugins/media/index.js.map +1 -0
- package/lib/plugins/media/media-dialog.js +594 -0
- package/lib/plugins/media/media-dialog.js.map +1 -0
- package/lib/plugins/media/media-toolbar.js +76 -0
- package/lib/plugins/media/media-toolbar.js.map +1 -0
- package/lib/plugins/media/media-wrapper.js +64 -0
- package/lib/plugins/media/media-wrapper.js.map +1 -0
- package/lib/plugins/rendering/index.js +36 -0
- package/lib/plugins/rendering/index.js.map +1 -0
- package/lib/plugins/respArea/drag-in-the-blank/choice.js +271 -0
- package/lib/plugins/respArea/drag-in-the-blank/choice.js.map +1 -0
- package/lib/plugins/respArea/drag-in-the-blank/index.js +55 -0
- package/lib/plugins/respArea/drag-in-the-blank/index.js.map +1 -0
- package/lib/plugins/respArea/drag-in-the-blank/utils.js +38 -0
- package/lib/plugins/respArea/drag-in-the-blank/utils.js.map +1 -0
- package/lib/plugins/respArea/explicit-constructed-response/index.js +50 -0
- package/lib/plugins/respArea/explicit-constructed-response/index.js.map +1 -0
- package/lib/plugins/respArea/icons/index.js +72 -0
- package/lib/plugins/respArea/icons/index.js.map +1 -0
- package/lib/plugins/respArea/index.js +287 -0
- package/lib/plugins/respArea/index.js.map +1 -0
- package/lib/plugins/respArea/inline-dropdown/index.js +67 -0
- package/lib/plugins/respArea/inline-dropdown/index.js.map +1 -0
- package/lib/plugins/respArea/math-templated/index.js +112 -0
- package/lib/plugins/respArea/math-templated/index.js.map +1 -0
- package/lib/plugins/respArea/utils.js +95 -0
- package/lib/plugins/respArea/utils.js.map +1 -0
- package/lib/plugins/table/CustomTablePlugin.js +116 -0
- package/lib/plugins/table/CustomTablePlugin.js.map +1 -0
- package/lib/plugins/table/icons/index.js +55 -0
- package/lib/plugins/table/icons/index.js.map +1 -0
- package/lib/plugins/table/index.js +413 -0
- package/lib/plugins/table/index.js.map +1 -0
- package/lib/plugins/table/table-toolbar.js +138 -0
- package/lib/plugins/table/table-toolbar.js.map +1 -0
- package/lib/plugins/textAlign/icons/index.js +187 -0
- package/lib/plugins/textAlign/icons/index.js.map +1 -0
- package/lib/plugins/textAlign/index.js +26 -0
- package/lib/plugins/textAlign/index.js.map +1 -0
- package/lib/plugins/toolbar/default-toolbar.js +180 -0
- package/lib/plugins/toolbar/default-toolbar.js.map +1 -0
- package/lib/plugins/toolbar/done-button.js +35 -0
- package/lib/plugins/toolbar/done-button.js.map +1 -0
- package/lib/plugins/toolbar/editor-and-toolbar.js +258 -0
- package/lib/plugins/toolbar/editor-and-toolbar.js.map +1 -0
- package/lib/plugins/toolbar/index.js +29 -0
- package/lib/plugins/toolbar/index.js.map +1 -0
- package/lib/plugins/toolbar/toolbar-buttons.js +145 -0
- package/lib/plugins/toolbar/toolbar-buttons.js.map +1 -0
- package/lib/plugins/toolbar/toolbar.js +307 -0
- package/lib/plugins/toolbar/toolbar.js.map +1 -0
- package/lib/plugins/utils.js +42 -0
- package/lib/plugins/utils.js.map +1 -0
- package/lib/serialization.js +571 -0
- package/lib/serialization.js.map +1 -0
- package/lib/shared/alert-dialog.js +68 -0
- package/lib/theme.js +8 -0
- package/lib/theme.js.map +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _material = require("@mui/material");
|
|
11
|
+
var _styles = require("@mui/material/styles");
|
|
12
|
+
var StyledDialogTitle = (0, _styles.styled)(_material.DialogTitle)(function () {
|
|
13
|
+
return {
|
|
14
|
+
fontSize: 'max(1.25rem, 18px)'
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
var StyledDialogContentText = (0, _styles.styled)(_material.DialogContentText)(function () {
|
|
18
|
+
return {
|
|
19
|
+
fontSize: 'max(1rem, 14px)'
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
var AlertDialog = function AlertDialog(_ref) {
|
|
23
|
+
var text = _ref.text,
|
|
24
|
+
title = _ref.title,
|
|
25
|
+
onClose = _ref.onClose,
|
|
26
|
+
onConfirm = _ref.onConfirm,
|
|
27
|
+
open = _ref.open,
|
|
28
|
+
onCloseText = _ref.onCloseText,
|
|
29
|
+
onConfirmText = _ref.onConfirmText,
|
|
30
|
+
disableAutoFocus = _ref.disableAutoFocus,
|
|
31
|
+
disableEnforceFocus = _ref.disableEnforceFocus,
|
|
32
|
+
disableRestoreFocus = _ref.disableRestoreFocus;
|
|
33
|
+
return /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
|
|
34
|
+
open: open,
|
|
35
|
+
disableAutoFocus: disableAutoFocus,
|
|
36
|
+
disableEnforceFocus: disableEnforceFocus,
|
|
37
|
+
disableRestoreFocus: disableRestoreFocus,
|
|
38
|
+
onClose: onClose
|
|
39
|
+
}, title && /*#__PURE__*/_react["default"].createElement(StyledDialogTitle, null, title), text && /*#__PURE__*/_react["default"].createElement(_material.DialogContent, null, /*#__PURE__*/_react["default"].createElement(StyledDialogContentText, null, text)), /*#__PURE__*/_react["default"].createElement(_material.DialogActions, null, onClose && /*#__PURE__*/_react["default"].createElement(_material.Button, {
|
|
40
|
+
onClick: onClose,
|
|
41
|
+
color: "primary"
|
|
42
|
+
}, onCloseText), onConfirm && /*#__PURE__*/_react["default"].createElement(_material.Button, {
|
|
43
|
+
autoFocus: true,
|
|
44
|
+
onClick: onConfirm,
|
|
45
|
+
color: "primary"
|
|
46
|
+
}, onConfirmText)));
|
|
47
|
+
};
|
|
48
|
+
AlertDialog.defaultProps = {
|
|
49
|
+
onCloseText: 'CANCEL',
|
|
50
|
+
onConfirmText: 'OK',
|
|
51
|
+
disableAutoFocus: false,
|
|
52
|
+
disableEnforceFocus: false,
|
|
53
|
+
disableRestoreFocus: false
|
|
54
|
+
};
|
|
55
|
+
AlertDialog.propTypes = {
|
|
56
|
+
text: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].object]),
|
|
57
|
+
title: _propTypes["default"].string,
|
|
58
|
+
onClose: _propTypes["default"].func,
|
|
59
|
+
onConfirm: _propTypes["default"].func,
|
|
60
|
+
open: _propTypes["default"].bool,
|
|
61
|
+
onConfirmText: _propTypes["default"].string,
|
|
62
|
+
onCloseText: _propTypes["default"].string,
|
|
63
|
+
disableAutoFocus: _propTypes["default"].bool,
|
|
64
|
+
disableEnforceFocus: _propTypes["default"].bool,
|
|
65
|
+
disableRestoreFocus: _propTypes["default"].bool
|
|
66
|
+
};
|
|
67
|
+
var _default = exports["default"] = AlertDialog;
|
|
68
|
+
//# sourceMappingURL=alert-dialog.js.map
|
package/lib/theme.js
ADDED
package/lib/theme.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","names":["primary","exports"],"sources":["../src/theme.js"],"sourcesContent":["export const primary = '#304ffe';\n"],"mappings":";;;;;;AAAO,IAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,SAAS","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/editable-html",
|
|
3
|
-
"version": "12.1.0-next.
|
|
3
|
+
"version": "12.1.0-next.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"@emotion/style": "^0.8.0",
|
|
15
15
|
"@mui/icons-material": "^7.3.4",
|
|
16
16
|
"@mui/material": "^7.3.4",
|
|
17
|
-
"@pie-lib/drag": "3.1.0-next.
|
|
18
|
-
"@pie-lib/math-input": "7.1.0-next.
|
|
19
|
-
"@pie-lib/math-rendering": "4.1.0-next.
|
|
20
|
-
"@pie-lib/math-toolbar": "2.1.0-next.
|
|
21
|
-
"@pie-lib/render-ui": "5.1.0-next.
|
|
17
|
+
"@pie-lib/drag": "3.1.0-next.5",
|
|
18
|
+
"@pie-lib/math-input": "7.1.0-next.4",
|
|
19
|
+
"@pie-lib/math-rendering": "4.1.0-next.4",
|
|
20
|
+
"@pie-lib/math-toolbar": "2.1.0-next.5",
|
|
21
|
+
"@pie-lib/render-ui": "5.1.0-next.5",
|
|
22
22
|
"change-case": "^3.0.2",
|
|
23
23
|
"classnames": "^2.2.6",
|
|
24
24
|
"debug": "^4.1.1",
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "e51620791bab7434375dc0a101c39dc5926a457d",
|
|
56
56
|
"scripts": {}
|
|
57
57
|
}
|