@modusoperandi/licit 1.0.7 → 1.0.8

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.
Files changed (92) hide show
  1. package/ContentPlaceholderPlugin.js +0 -1
  2. package/ContentPlaceholderPlugin.js.flow +0 -2
  3. package/CursorPlaceholderPlugin.js +0 -1
  4. package/CursorPlaceholderPlugin.js.flow +0 -2
  5. package/HTMLMutator.js +2 -3
  6. package/HTMLMutator.js.flow +2 -3
  7. package/ImageUploadPlaceholderPlugin.js +1 -3
  8. package/ImageUploadPlaceholderPlugin.js.flow +1 -4
  9. package/LinkTooltipPlugin.js +0 -1
  10. package/LinkTooltipPlugin.js.flow +0 -2
  11. package/ListItemMergeCommand.js +2 -2
  12. package/ListItemMergeCommand.js.flow +1 -2
  13. package/SelectionPlaceholderPlugin.js +0 -1
  14. package/SelectionPlaceholderPlugin.js.flow +0 -2
  15. package/TableBackgroundColorCommand.js +1 -2
  16. package/TableBackgroundColorCommand.js.flow +12 -13
  17. package/TableBorderColorCommand.js +1 -2
  18. package/TableBorderColorCommand.js.flow +12 -13
  19. package/TableCellColorCommand.js +1 -2
  20. package/TableCellColorCommand.js.flow +1 -2
  21. package/TableCellMenuPlugin.js +0 -1
  22. package/TableCellMenuPlugin.js.flow +0 -1
  23. package/TableInsertCommand.js +1 -2
  24. package/TableInsertCommand.js.flow +1 -2
  25. package/TableResizePlugin.js +1 -2
  26. package/TableResizePlugin.js.flow +1 -2
  27. package/bom.xml +7850 -9120
  28. package/client/Licit.js +0 -1
  29. package/client/Licit.js.flow +0 -1
  30. package/package.json +8 -7
  31. package/patchListElements.js +2 -3
  32. package/patchListElements.js.flow +2 -3
  33. package/styles.css +32 -3
  34. package/ui/AlertInfo.js +0 -1
  35. package/ui/AlertInfo.js.flow +0 -1
  36. package/ui/BookmarkNodeView.js +0 -1
  37. package/ui/BookmarkNodeView.js.flow +0 -2
  38. package/ui/CommandMenuButton.js +0 -1
  39. package/ui/CommandMenuButton.js.flow +0 -2
  40. package/ui/CustomMenu.js +0 -2
  41. package/ui/CustomMenu.js.flow +0 -3
  42. package/ui/CustomMenuItem.js +0 -1
  43. package/ui/CustomMenuItem.js.flow +0 -1
  44. package/ui/CustomRadioButton.js +0 -1
  45. package/ui/CustomRadioButton.js.flow +0 -1
  46. package/ui/DocLayoutEditor.js +0 -2
  47. package/ui/DocLayoutEditor.js.flow +0 -3
  48. package/ui/Editor.js +0 -3
  49. package/ui/Editor.js.flow +0 -4
  50. package/ui/EditorFrameset.js +0 -1
  51. package/ui/EditorFrameset.js.flow +0 -2
  52. package/ui/EditorToolbar.js +0 -1
  53. package/ui/EditorToolbar.js.flow +0 -2
  54. package/ui/Frag.js +0 -1
  55. package/ui/Frag.js.flow +0 -2
  56. package/ui/Icon.js +0 -6
  57. package/ui/Icon.js.flow +0 -7
  58. package/ui/ImageInlineEditor.js +0 -1
  59. package/ui/ImageInlineEditor.js.flow +0 -1
  60. package/ui/LinkTooltip.js +0 -1
  61. package/ui/LinkTooltip.js.flow +0 -2
  62. package/ui/LinkURLEditor.js +0 -3
  63. package/ui/LinkURLEditor.js.flow +0 -4
  64. package/ui/ListTypeButton.js +0 -1
  65. package/ui/ListTypeButton.js.flow +0 -1
  66. package/ui/ListTypeMenu.js +0 -1
  67. package/ui/ListTypeMenu.js.flow +0 -1
  68. package/ui/LoadingIndicator.js +0 -1
  69. package/ui/LoadingIndicator.js.flow +0 -1
  70. package/ui/MathEditor.js +0 -1
  71. package/ui/MathEditor.js.flow +0 -2
  72. package/ui/MathInlineEditor.js +0 -1
  73. package/ui/MathInlineEditor.js.flow +0 -1
  74. package/ui/MathNodeView.js +0 -1
  75. package/ui/MathNodeView.js.flow +0 -1
  76. package/ui/PasteMenu.js +0 -1
  77. package/ui/PasteMenu.js.flow +0 -1
  78. package/ui/ResizeObserver.js +3 -3
  79. package/ui/ResizeObserver.js.flow +2 -3
  80. package/ui/TableCellMenu.js +0 -1
  81. package/ui/TableCellMenu.js.flow +0 -2
  82. package/ui/TableGridSizeEditor.js +1 -3
  83. package/ui/TableGridSizeEditor.js.flow +1 -3
  84. package/ui/mathquill-editor/MathQuillEditor.js +0 -1
  85. package/ui/mathquill-editor/MathQuillEditor.js.flow +0 -1
  86. package/ui/mathquill-editor/MathQuillEditorSymbolsPanel.js +0 -1
  87. package/ui/mathquill-editor/MathQuillEditorSymbolsPanel.js.flow +0 -1
  88. package/ui/mathquill-editor/mathquill-import-kludge.js +0 -1
  89. package/ui/mathquill-editor/mathquill-import-kludge.js.flow +0 -2
  90. package/ui/renderLaTeXAsHTML.js +0 -4
  91. package/ui/renderLaTeXAsHTML.js.flow +0 -4
  92. package/styles0.css +0 -29
package/client/Licit.js CHANGED
@@ -30,7 +30,6 @@ import { EMPTY_DOC_JSON } from '../createEmptyEditorState.js';
30
30
  import { createPopUp, atViewportCenter } from '@modusoperandi/licit-ui-commands';
31
31
  import AlertInfo from '../ui/AlertInfo.js';
32
32
  import { SetDocAttrStep } from '@modusoperandi/licit-doc-attrs-step';
33
- import './licit.css';
34
33
  import DefaultEditorPlugins from '../buildEditorPlugins.js';
35
34
  import EditorMarks from '../EditorMarks.js';
36
35
  import EditorNodes from '../EditorNodes.js';
@@ -19,7 +19,6 @@ import {
19
19
  } from '@modusoperandi/licit-ui-commands';
20
20
  import AlertInfo from '../ui/AlertInfo.js';
21
21
  import { SetDocAttrStep } from '@modusoperandi/licit-doc-attrs-step';
22
- import './licit.css';
23
22
  import DefaultEditorPlugins from '../buildEditorPlugins.js';
24
23
  import EditorMarks from '../EditorMarks.js';
25
24
  import EditorNodes from '../EditorNodes.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modusoperandi/licit",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "subversion": "1",
6
6
  "description": "Rich text editor built with React and ProseMirror",
@@ -31,7 +31,8 @@
31
31
  "lint": "npm run lint:css & npm run lint:js",
32
32
  "start": "node scripts/webserver.js",
33
33
  "prebuild:style-service-docker": "node utils/build_customstyle_server.js",
34
- "build:style-service-docker": "docker build . -f style-service.Dockerfile -t style-service:latest"
34
+ "build:style-service-docker": "docker build . -f style-service.Dockerfile -t style-service:latest",
35
+ "verify": "npm run lint -- --fix && npm run ci:build && npm run test:coverage && echo 'All Tests Passed!'"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@babel/cli": "^7.19.3",
@@ -66,7 +67,6 @@
66
67
  "copyfiles": "^2.4.1",
67
68
  "cors": "^2.8.5",
68
69
  "css-loader": "^7.1.1",
69
- "enzyme": "^3.11.0",
70
70
  "eslint": "^8.0.0",
71
71
  "eslint-config-prettier": "^9.0.0",
72
72
  "eslint-plugin-jest": "^28.2.0",
@@ -75,7 +75,7 @@
75
75
  "exports-loader": "^5.0.0",
76
76
  "express": "^4.17.1",
77
77
  "file-loader": "^6.2.0",
78
- "flow-bin": "^0.247.1",
78
+ "flow-bin": "^0.254.2",
79
79
  "flow-copy-source": "^2.0.9",
80
80
  "flow-typed": "^4.0.0",
81
81
  "flow-webpack-plugin": "^1.2.0",
@@ -110,7 +110,6 @@
110
110
  "write-file-webpack-plugin": "^4.5.1"
111
111
  },
112
112
  "dependencies": {
113
- "@cfaester/enzyme-adapter-react-18": "^0.8.0",
114
113
  "@modusoperandi/color-picker": "^1.0.1",
115
114
  "body-parser": "^1.19.0",
116
115
  "browserkeymap": "^2.0.2",
@@ -135,7 +134,9 @@
135
134
  "prosemirror-tables": "^1.2.5"
136
135
  },
137
136
  "overrides": {
138
- "libxmljs2": "^1.0.0"
137
+ "libxmljs2": "^1.0.0",
138
+ "react": "^18.3.1",
139
+ "react-dom": "^18.3.1"
139
140
  },
140
141
  "importSort": {
141
142
  ".js": {
@@ -159,4 +160,4 @@
159
160
  "prettier --write"
160
161
  ]
161
162
  }
162
- }
163
+ }
@@ -1,5 +1,4 @@
1
1
  import HTMLMutator from './HTMLMutator.js';
2
- import nullthrows from 'nullthrows';
3
2
  import uuid from './ui/uuid.js';
4
3
  import { ATTRIBUTE_LIST_STYLE_TYPE } from './ListItemNodeSpec.js';
5
4
  import { ATTRIBUTE_INDENT, EMPTY_CSS_VALUE, convertMarginLeftToIndentValue } from './ParagraphNodeSpec.js';
@@ -174,8 +173,8 @@ function liftNestedListElements(doc) {
174
173
  els.forEach(function (list) {
175
174
  var indent = findIndentLevel(list);
176
175
  list.setAttribute('data-indent', String(indent));
177
- var parentListItem = nullthrows(list.parentElement);
178
- var parentList = nullthrows(parentListItem.parentElement);
176
+ var parentListItem = list === null || list === void 0 ? void 0 : list.parentElement;
177
+ var parentList = parentListItem === null || parentListItem === void 0 ? void 0 : parentListItem.parentElement;
179
178
  var parentListNodeName = parentList.nodeName.toLowerCase();
180
179
  var isLast = parentList.lastElementChild === parentListItem;
181
180
  var style = parentList.getAttribute('style') || '';
@@ -1,7 +1,6 @@
1
1
  // @flow
2
2
 
3
3
  import HTMLMutator from './HTMLMutator.js';
4
- import nullthrows from 'nullthrows';
5
4
  import uuid from './ui/uuid.js';
6
5
 
7
6
  import { ATTRIBUTE_LIST_STYLE_TYPE } from './ListItemNodeSpec.js';
@@ -211,8 +210,8 @@ function liftNestedListElements(doc: Document): void {
211
210
  const indent = findIndentLevel(list);
212
211
  list.setAttribute('data-indent', String(indent));
213
212
 
214
- const parentListItem = nullthrows(list.parentElement);
215
- const parentList = nullthrows(parentListItem.parentElement);
213
+ const parentListItem = list?.parentElement;
214
+ const parentList = parentListItem?.parentElement;
216
215
  const parentListNodeName = parentList.nodeName.toLowerCase();
217
216
  const isLast = parentList.lastElementChild === parentListItem;
218
217
  const style = parentList.getAttribute('style') || '';
package/styles.css CHANGED
@@ -1,11 +1,35 @@
1
- @import './styles0.css';
1
+ @import './ui/czi-vars.css';
2
+ @import './ui/czi-heading.css';
3
+ @import './ui/czi-indent.css';
4
+ @import './ui/czi-list.css';
5
+ @import './ui/czi-table.css';
6
+ @import '~modusoperandi/licit-ui-commands/styles.css';
7
+ @import './ui/czi-bookmark-view.css';
8
+ @import './ui/czi-body-layout-editor.css';
9
+ @import './ui/czi-cursor-placeholder.css';
10
+ @import './ui/czi-custom-menu.css';
11
+ @import './ui/czi-custom-menu-button.css';
12
+ @import './ui/czi-custom-menu-item.css';
13
+ @import './ui/czi-custom-radio-button.css';
14
+ @import './ui/czi-custom-scrollbar.css';
15
+ @import './ui/czi-editor.css';
16
+ @import './ui/czi-editor-frameset.css';
17
+ @import './ui/czi-editor-toolbar.css';
18
+ @import './ui/czi-form.css';
19
+ @import './ui/czi-frag.css';
20
+ @import './ui/czi-icon.css';
21
+ @import './ui/czi-image-resize-box.css';
22
+ @import './ui/czi-image-upload-editor.css';
23
+ @import './ui/czi-image-upload-placeholder.css';
24
+ @import './ui/czi-image-url-editor.css';
25
+ @import './ui/czi-image-view.css';
26
+ @import './ui/czi-inline-editor.css';
27
+ @import './ui/czi-link-tooltip.css';
2
28
  @import './ui/czi-loading-indicator.css';
3
29
  @import './ui/czi-math-view.css';
4
- @import '@modusoperandi/licit-ui-commands/ui/czi-pop-up.css';
5
30
  @import './ui/czi-selection-placeholder.css';
6
31
  @import './ui/czi-table-cell-menu.css';
7
32
  @import './ui/czi-table-grid-size-editor.css';
8
- @import '@modusoperandi/licit-ui-commands/ui/czi-tooltip-surface.css';
9
33
  @import './ui/mathquill-editor/czi-mathquill-editor.css';
10
34
  @import './ui/mathquill-editor/czi-mathquill-editor-symbols-panel.css';
11
35
  @import './client/licit.css';
@@ -17,3 +41,8 @@
17
41
  @import './ui/icon-font.css';
18
42
  @import '~node-mathquill/build/mathquill.css';
19
43
  @import '~katex/dist/katex.min.css';
44
+
45
+ @import '~prosemirror-gapcursor/style/gapcursor.css';
46
+ @import '~prosemirror-view/style/prosemirror.css';
47
+ @import '~react-tooltip/dist/react-tooltip.css';
48
+ @import './ui/listType.css';
package/ui/AlertInfo.js CHANGED
@@ -16,7 +16,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
16
16
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
17
  import * as React from 'react';
18
18
  import PropTypes from 'prop-types';
19
- import './czi-form.css';
20
19
  var AlertInfo = /*#__PURE__*/function (_React$PureComponent) {
21
20
  function AlertInfo(props) {
22
21
  var _this;
@@ -2,7 +2,6 @@
2
2
 
3
3
  import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
- import './czi-form.css';
6
5
 
7
6
  class AlertInfo extends React.PureComponent<any, any> {
8
7
  _unmounted = false;
@@ -21,7 +21,6 @@ import * as React from 'react';
21
21
  import { ATTRIBUTE_BOOKMARK_ID, ATTRIBUTE_BOOKMARK_VISIBLE } from './../BookmarkNodeSpec.js';
22
22
  import CustomNodeView from './CustomNodeView.js';
23
23
  import Icon from './Icon.js';
24
- import './czi-bookmark-view.css';
25
24
  var BookmarkViewBody = /*#__PURE__*/function (_React$PureComponent) {
26
25
  function BookmarkViewBody() {
27
26
  var _this;
@@ -11,8 +11,6 @@ import {
11
11
  import CustomNodeView from './CustomNodeView.js';
12
12
  import Icon from './Icon.js';
13
13
 
14
- import './czi-bookmark-view.css';
15
-
16
14
  import type { NodeViewProps } from './CustomNodeView.js';
17
15
 
18
16
  class BookmarkViewBody extends React.PureComponent<any, any> {
@@ -23,7 +23,6 @@ import CommandMenu from './CommandMenu.js';
23
23
  import { CustomButton, createPopUp } from '@modusoperandi/licit-ui-commands';
24
24
  import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
25
25
  import uuid from './uuid.js';
26
- import './czi-custom-menu-button.css';
27
26
  var CommandMenuButton = /*#__PURE__*/function (_React$PureComponent) {
28
27
  function CommandMenuButton() {
29
28
  var _this;
@@ -11,8 +11,6 @@ import { CustomButton, createPopUp } from '@modusoperandi/licit-ui-commands';
11
11
  import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
12
12
  import uuid from './uuid.js';
13
13
 
14
- import './czi-custom-menu-button.css';
15
-
16
14
  class CommandMenuButton extends React.PureComponent<any, any> {
17
15
  props: {
18
16
  className?: ?string,
package/ui/CustomMenu.js CHANGED
@@ -12,8 +12,6 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
12
12
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
13
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
14
  import * as React from 'react';
15
- import './czi-custom-menu.css';
16
- import './czi-custom-scrollbar.css';
17
15
  var CustomMenu = /*#__PURE__*/function (_React$Component) {
18
16
  function CustomMenu() {
19
17
  _classCallCheck(this, CustomMenu);
@@ -2,9 +2,6 @@
2
2
 
3
3
  import * as React from 'react';
4
4
 
5
- import './czi-custom-menu.css';
6
- import './czi-custom-scrollbar.css';
7
-
8
5
  class CustomMenu extends React.Component<any, any> {
9
6
  render(): React.Element<any> {
10
7
  const { children } = this.props;
@@ -13,7 +13,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
13
13
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
14
14
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
15
15
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
16
- import './czi-custom-menu-item.css';
17
16
  import { CustomButton } from '@modusoperandi/licit-ui-commands';
18
17
  import * as React from 'react';
19
18
  var CustomMenuItemSeparator = /*#__PURE__*/function (_React$PureComponent) {
@@ -1,6 +1,5 @@
1
1
  // @flow
2
2
 
3
- import './czi-custom-menu-item.css';
4
3
  import { CustomButton } from '@modusoperandi/licit-ui-commands';
5
4
  import * as React from 'react';
6
5
 
@@ -16,7 +16,6 @@ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf
16
16
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
19
- import './czi-custom-radio-button.css';
20
19
  import { PointerSurface, preventEventDefault } from '@modusoperandi/licit-ui-commands';
21
20
  import * as React from 'react';
22
21
  import cx from 'classnames';
@@ -1,6 +1,5 @@
1
1
  // @flow
2
2
 
3
- import './czi-custom-radio-button.css';
4
3
  import { PointerSurface, preventEventDefault } from '@modusoperandi/licit-ui-commands';
5
4
  import * as React from 'react';
6
5
  import cx from 'classnames';
@@ -16,8 +16,6 @@ import * as React from 'react';
16
16
  import { LAYOUT } from '../DocNodeSpec.js';
17
17
  import { CustomButton, preventEventDefault } from '@modusoperandi/licit-ui-commands';
18
18
  import CustomRadioButton from './CustomRadioButton.js';
19
- import './czi-body-layout-editor.css';
20
- import './czi-form.css';
21
19
  var bpfrpt_proptype_DocLayoutEditorValue = {
22
20
  "layout": PropTypes.string,
23
21
  "width": PropTypes.number
@@ -5,9 +5,6 @@ import { LAYOUT } from '../DocNodeSpec.js';
5
5
  import { CustomButton, preventEventDefault } from '@modusoperandi/licit-ui-commands';
6
6
  import CustomRadioButton from './CustomRadioButton.js';
7
7
 
8
- import './czi-body-layout-editor.css';
9
- import './czi-form.css';
10
-
11
8
  export type DocLayoutEditorValue = {
12
9
  layout: ?string,
13
10
  width: ?number,
package/ui/Editor.js CHANGED
@@ -21,8 +21,6 @@ import { Transform } from 'prosemirror-transform';
21
21
  import { EditorView } from 'prosemirror-view';
22
22
  import * as React from 'react';
23
23
  import webfontloader from 'webfontloader';
24
- import 'prosemirror-gapcursor/style/gapcursor.css';
25
- import 'prosemirror-view/style/prosemirror.css';
26
24
  import { exportJSON, registerEditorView, registeryKeys, releaseEditorView } from '../CZIProseMirror.js';
27
25
  import { BOOKMARK, LIST_ITEM, MATH } from '../NodeNames.js';
28
26
  import WebFontLoader from '../WebFontLoader.js';
@@ -38,7 +36,6 @@ import handleEditorDrop from './handleEditorDrop.js';
38
36
  import handleEditorKeyDown from './handleEditorKeyDown.js';
39
37
  import handleEditorPaste from './handleEditorPaste.js';
40
38
  import uuid from './uuid.js';
41
- import './czi-editor.css';
42
39
  var bpfrpt_proptype_EditorProps = {
43
40
  "autoFocus": PropTypes.bool,
44
41
  "disabled": PropTypes.bool,
package/ui/Editor.js.flow CHANGED
@@ -8,9 +8,6 @@ import { EditorView } from 'prosemirror-view';
8
8
  import * as React from 'react';
9
9
  import webfontloader from 'webfontloader';
10
10
 
11
- import 'prosemirror-gapcursor/style/gapcursor.css';
12
- import 'prosemirror-view/style/prosemirror.css';
13
-
14
11
  import {
15
12
  exportJSON,
16
13
  registerEditorView,
@@ -31,7 +28,6 @@ import handleEditorDrop from './handleEditorDrop.js';
31
28
  import handleEditorKeyDown from './handleEditorKeyDown.js';
32
29
  import handleEditorPaste from './handleEditorPaste.js';
33
30
  import uuid from './uuid.js';
34
- import './czi-editor.css';
35
31
  import type { EditorRuntime } from '../Types.js';
36
32
 
37
33
  export type EditorProps = {
@@ -14,7 +14,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
15
  import cx from 'classnames';
16
16
  import * as React from 'react';
17
- import './czi-editor-frameset.css';
18
17
  var bpfrpt_proptype_EditorFramesetProps = {
19
18
  "body": PropTypes.node,
20
19
  "className": PropTypes.string,
@@ -2,8 +2,6 @@
2
2
  import cx from 'classnames';
3
3
  import * as React from 'react';
4
4
 
5
- import './czi-editor-frameset.css';
6
-
7
5
  export type EditorFramesetProps = {
8
6
  body: ?React.Element<any>,
9
7
  className: ?string,
@@ -25,7 +25,6 @@ import Icon from './Icon.js';
25
25
  import ResizeObserver from './ResizeObserver.js';
26
26
  import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
27
27
  import isReactClass from './isReactClass.js';
28
- import './czi-editor-toolbar.css';
29
28
  var EditorToolbar = /*#__PURE__*/function (_React$PureComponent) {
30
29
  function EditorToolbar() {
31
30
  var _this;
@@ -15,8 +15,6 @@ import ResizeObserver from './ResizeObserver.js';
15
15
  import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
16
16
  import isReactClass from './isReactClass.js';
17
17
 
18
- import './czi-editor-toolbar.css';
19
-
20
18
  class EditorToolbar extends React.PureComponent<any, any> {
21
19
  _body = null;
22
20
 
package/ui/Frag.js CHANGED
@@ -12,7 +12,6 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
12
12
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
13
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
14
  import * as React from 'react';
15
- import './czi-frag.css';
16
15
  var Frag = /*#__PURE__*/function (_React$PureComponent) {
17
16
  function Frag() {
18
17
  _classCallCheck(this, Frag);
package/ui/Frag.js.flow CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  import * as React from 'react';
4
4
 
5
- import './czi-frag.css';
6
-
7
5
  class Frag extends React.PureComponent<any, any> {
8
6
  render(): React.Element<any> {
9
7
  return <div className="czi-frag">{this.props.children}</div>;
package/ui/Icon.js CHANGED
@@ -18,12 +18,6 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
18
18
  import cx from 'classnames';
19
19
  import * as React from 'react';
20
20
  import canUseCSSFont from './canUseCSSFont.js';
21
- import './czi-icon.css';
22
-
23
- // [FS] IRAD-1061 2020-09-19
24
- // Now loaded locally, so that it work in closed network as well.
25
- //import injectStyleSheet from './injectStyleSheet';
26
- import './icon-font.css';
27
21
  var VALID_CHARS = /[a-z_]+/;
28
22
  var cached = {};
29
23
  var CSS_CDN_URL = '//fonts.googleapis.com/icon?family=Material+Icons';
package/ui/Icon.js.flow CHANGED
@@ -5,13 +5,6 @@ import * as React from 'react';
5
5
 
6
6
  import canUseCSSFont from './canUseCSSFont.js';
7
7
 
8
- import './czi-icon.css';
9
-
10
- // [FS] IRAD-1061 2020-09-19
11
- // Now loaded locally, so that it work in closed network as well.
12
- //import injectStyleSheet from './injectStyleSheet';
13
- import './icon-font.css';
14
-
15
8
  const VALID_CHARS = /[a-z_]+/;
16
9
  const cached = {};
17
10
 
@@ -12,7 +12,6 @@ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf
12
12
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
- import './czi-inline-editor.css';
16
15
  import { CustomButton } from '@modusoperandi/licit-ui-commands';
17
16
  import * as React from 'react';
18
17
  var bpfrpt_proptype_PropValue = {
@@ -1,6 +1,5 @@
1
1
  // @flow
2
2
 
3
- import './czi-inline-editor.css';
4
3
  import { CustomButton } from '@modusoperandi/licit-ui-commands';
5
4
  import * as React from 'react';
6
5
 
package/ui/LinkTooltip.js CHANGED
@@ -21,7 +21,6 @@ import * as React from 'react';
21
21
  import scrollIntoView from 'smooth-scroll-into-view-if-needed';
22
22
  import sanitizeURL from '../sanitizeURL.js';
23
23
  import { CustomButton } from '@modusoperandi/licit-ui-commands';
24
- import './czi-link-tooltip.css';
25
24
  function isBookMarkHref(href) {
26
25
  return !!href && href.startsWith('#') && href.length >= 2;
27
26
  }
@@ -8,8 +8,6 @@ import scrollIntoView from 'smooth-scroll-into-view-if-needed';
8
8
  import sanitizeURL from '../sanitizeURL.js';
9
9
  import { CustomButton } from '@modusoperandi/licit-ui-commands';
10
10
 
11
- import './czi-link-tooltip.css';
12
-
13
11
  function isBookMarkHref(href: string): boolean {
14
12
  return !!href && href.startsWith('#') && href.length >= 2;
15
13
  }
@@ -18,11 +18,8 @@ import sanitizeURL from '../sanitizeURL.js';
18
18
  import { CustomButton, preventEventDefault } from '@modusoperandi/licit-ui-commands';
19
19
  import { ENTER } from './KeyCodes.js';
20
20
  import uuid from '../uuid.js';
21
- import './czi-form.css';
22
- import './czi-image-url-editor.css';
23
21
  import { EditorView } from 'prosemirror-view';
24
22
  import { INNER_LINK } from '../Types.js';
25
- import 'react-tooltip/dist/react-tooltip.css';
26
23
  import { Tooltip as ReactTooltip } from 'react-tooltip';
27
24
  var BAD_CHARACTER_PATTER = /\s/;
28
25
  var LinkURLEditor = /*#__PURE__*/function (_React$PureComponent) {
@@ -10,12 +10,8 @@ import {
10
10
  } from '@modusoperandi/licit-ui-commands';
11
11
  import { ENTER } from './KeyCodes.js';
12
12
  import uuid from '../uuid.js';
13
-
14
- import './czi-form.css';
15
- import './czi-image-url-editor.css';
16
13
  import { EditorView } from 'prosemirror-view';
17
14
  import { INNER_LINK } from '../Types.js';
18
- import 'react-tooltip/dist/react-tooltip.css';
19
15
  import { Tooltip as ReactTooltip } from 'react-tooltip';
20
16
 
21
17
  const BAD_CHARACTER_PATTER = /\s/;
@@ -26,7 +26,6 @@ import { CustomButton, createPopUp } from '@modusoperandi/licit-ui-commands';
26
26
  import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
27
27
  import uuid from './uuid.js';
28
28
  import ListTypeMenu from './ListTypeMenu.js';
29
- import './czi-custom-menu-button.css';
30
29
  var ListTypeButton = /*#__PURE__*/function (_React$PureComponent) {
31
30
  function ListTypeButton() {
32
31
  var _this;
@@ -12,7 +12,6 @@ import { CustomButton, createPopUp } from '@modusoperandi/licit-ui-commands';
12
12
  import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
13
13
  import uuid from './uuid.js';
14
14
  import ListTypeMenu from './ListTypeMenu.js';
15
- import './czi-custom-menu-button.css';
16
15
 
17
16
  class ListTypeButton extends React.PureComponent<any, any> {
18
17
  props: {
@@ -18,7 +18,6 @@ import { EditorState } from 'prosemirror-state';
18
18
  import { Transform } from 'prosemirror-transform';
19
19
  import { EditorView } from 'prosemirror-view';
20
20
  import uuid from './uuid.js';
21
- import './listType.css';
22
21
 
23
22
  // [FS] IRAD-1039 2020-09-24
24
23
  // UI to show the list buttons
@@ -4,7 +4,6 @@ import { EditorState } from 'prosemirror-state';
4
4
  import { Transform } from 'prosemirror-transform';
5
5
  import { EditorView } from 'prosemirror-view';
6
6
  import uuid from './uuid.js';
7
- import './listType.css';
8
7
 
9
8
  // [FS] IRAD-1039 2020-09-24
10
9
  // UI to show the list buttons
@@ -11,7 +11,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
11
11
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
12
12
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
13
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
- import './czi-loading-indicator.css';
15
14
  import * as React from 'react';
16
15
 
17
16
  // https://loading.io/css/
@@ -1,6 +1,5 @@
1
1
  // @flow
2
2
 
3
- import './czi-loading-indicator.css';
4
3
  import * as React from 'react';
5
4
 
6
5
  // https://loading.io/css/
package/ui/MathEditor.js CHANGED
@@ -16,7 +16,6 @@ import * as React from 'react';
16
16
  import PropTypes from 'prop-types';
17
17
  import { CustomButton, preventEventDefault } from '@modusoperandi/licit-ui-commands';
18
18
  import MathQuillEditor from './mathquill-editor/MathQuillEditor.js';
19
- import './czi-form.css';
20
19
  var MathEditor = /*#__PURE__*/function (_React$PureComponent) {
21
20
  function MathEditor() {
22
21
  var _this;
@@ -5,8 +5,6 @@ import PropTypes from 'prop-types';
5
5
  import { CustomButton, preventEventDefault } from '@modusoperandi/licit-ui-commands';
6
6
  import MathQuillEditor from './mathquill-editor/MathQuillEditor.js';
7
7
 
8
- import './czi-form.css';
9
-
10
8
  class MathEditor extends React.PureComponent<any, any> {
11
9
  // [FS] IRAD-1005 2020-07-07
12
10
  // Upgrade outdated packages.
@@ -14,7 +14,6 @@ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf
14
14
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
- import './czi-inline-editor.css';
18
17
  import { CustomButton, createPopUp } from '@modusoperandi/licit-ui-commands';
19
18
  import CustomEditorView from './CustomEditorView.js';
20
19
  import MathEditor from './MathEditor.js';
@@ -1,6 +1,5 @@
1
1
  // @flow
2
2
 
3
- import './czi-inline-editor.css';
4
3
  import { CustomButton, createPopUp } from '@modusoperandi/licit-ui-commands';
5
4
  import CustomEditorView from './CustomEditorView.js';
6
5
  import MathEditor from './MathEditor.js';
@@ -17,7 +17,6 @@ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf
17
17
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
- import './czi-math-view.css';
21
20
  import CustomNodeView from './CustomNodeView.js';
22
21
  import MathInlineEditor from './MathInlineEditor.js';
23
22
  import * as React from 'react';
@@ -1,6 +1,5 @@
1
1
  // @flow
2
2
 
3
- import './czi-math-view.css';
4
3
  import CustomNodeView from './CustomNodeView.js';
5
4
  import MathInlineEditor from './MathInlineEditor.js';
6
5
  import * as React from 'react';
package/ui/PasteMenu.js CHANGED
@@ -14,7 +14,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
15
  import * as React from 'react';
16
16
  import uuid from './uuid';
17
- import './listType.css';
18
17
 
19
18
  // [FS] IRAD-1076 2020-10-15
20
19
  // Popup menu UI with paste options.
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import uuid from './uuid';
3
- import './listType.css';
4
3
 
5
4
  // [FS] IRAD-1076 2020-10-15
6
5
  // Popup menu UI with paste options.