@modusoperandi/licit 1.0.10 → 1.0.11

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/bom.xml CHANGED
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <bom xmlns="http://cyclonedx.org/schema/bom/1.4" version="1" serialNumber="urn:uuid:0841b629-af55-406e-aa90-6793b52de762">
2
+ <bom xmlns="http://cyclonedx.org/schema/bom/1.4" version="1" serialNumber="urn:uuid:00da7b7b-2bbb-4c74-acee-e48d80277764">
3
3
  <metadata>
4
- <timestamp>2025-01-08T00:24:56.601Z</timestamp>
4
+ <timestamp>2025-01-09T23:03:35.273Z</timestamp>
5
5
  <tools>
6
6
  <tool>
7
7
  <name>npm</name>
8
- <version>10.8.2</version>
8
+ <version>10.8.3</version>
9
9
  </tool>
10
10
  <tool>
11
11
  <vendor>@cyclonedx</vendor>
@@ -46,12 +46,12 @@
46
46
  </externalReferences>
47
47
  </tool>
48
48
  </tools>
49
- <component type="application" bom-ref="@modusoperandi/licit@1.0.10">
49
+ <component type="application" bom-ref="@modusoperandi/licit@1.0.11">
50
50
  <group>@modusoperandi</group>
51
51
  <name>licit</name>
52
- <version>1.0.10</version>
52
+ <version>1.0.11</version>
53
53
  <description>Rich text editor built with React and ProseMirror</description>
54
- <purl>pkg:npm/%40modusoperandi/licit@1.0.10</purl>
54
+ <purl>pkg:npm/%40modusoperandi/licit@1.0.11</purl>
55
55
  <externalReferences>
56
56
  <reference type="vcs">
57
57
  <url>git+https://github.com/MO-Movia/licit.git</url>
@@ -9314,12 +9314,12 @@
9314
9314
  <property name="cdx:npm:package:path">node_modules/scheduler</property>
9315
9315
  </properties>
9316
9316
  </component>
9317
- <component type="library" bom-ref="@modusoperandi/licit-ui-commands@1.0.7">
9317
+ <component type="library" bom-ref="@modusoperandi/licit-ui-commands@1.0.8">
9318
9318
  <group>@modusoperandi</group>
9319
9319
  <name>licit-ui-commands</name>
9320
- <version>1.0.7</version>
9320
+ <version>1.0.8</version>
9321
9321
  <description>Module that extend Step, overriding the apply, invert, map, getMap and fromJSON methods, and registering your class with a unique JSON-serialization identifier using Step.jsonID.</description>
9322
- <purl>pkg:npm/%40modusoperandi/licit-ui-commands@1.0.7</purl>
9322
+ <purl>pkg:npm/%40modusoperandi/licit-ui-commands@1.0.8</purl>
9323
9323
  <externalReferences>
9324
9324
  <reference type="vcs">
9325
9325
  <url>git+https://github.com/MO-Movia/licit-ui-components.git</url>
@@ -9334,10 +9334,10 @@
9334
9334
  <comment>as detected from PackageJson property "bugs.url"</comment>
9335
9335
  </reference>
9336
9336
  <reference type="distribution">
9337
- <url>https://registry.npmjs.org/@modusoperandi/licit-ui-commands/-/licit-ui-commands-1.0.7.tgz</url>
9337
+ <url>https://registry.npmjs.org/@modusoperandi/licit-ui-commands/-/licit-ui-commands-1.0.8.tgz</url>
9338
9338
  <comment>as detected from npm-ls property "resolved" and property "integrity"</comment>
9339
9339
  <hashes>
9340
- <hash alg="SHA-512">84b87af77520b1b3a46b121a7a1e11275429b542b276bf1445a58c7076cbba8a49e6fa11da0d512e39deeb0652fff06d6598e45c9b052d90c6eae1b7cfd82af8</hash>
9340
+ <hash alg="SHA-512">ad542581e491c2a3ed5ad1f7769cdf639bac5e58d9b16dd7f5566666c87a5304759d8c98477d2ce3a19147f7f918415e678b05fac17481dd6aebc9da1362fb8c</hash>
9341
9341
  </hashes>
9342
9342
  </reference>
9343
9343
  </externalReferences>
@@ -9345,12 +9345,12 @@
9345
9345
  <property name="cdx:npm:package:path">node_modules/@modusoperandi/licit-ui-commands</property>
9346
9346
  </properties>
9347
9347
  </component>
9348
- <component type="library" bom-ref="@modusoperandi/licit-doc-attrs-step@1.0.2">
9348
+ <component type="library" bom-ref="@modusoperandi/licit-doc-attrs-step@1.0.3">
9349
9349
  <group>@modusoperandi</group>
9350
9350
  <name>licit-doc-attrs-step</name>
9351
- <version>1.0.2</version>
9351
+ <version>1.0.3</version>
9352
9352
  <description>Module that extend Step, overriding the apply, invert, map, getMap and fromJSON methods, and registering your class with a unique JSON-serialization identifier using Step.jsonID.</description>
9353
- <purl>pkg:npm/%40modusoperandi/licit-doc-attrs-step@1.0.2</purl>
9353
+ <purl>pkg:npm/%40modusoperandi/licit-doc-attrs-step@1.0.3</purl>
9354
9354
  <externalReferences>
9355
9355
  <reference type="vcs">
9356
9356
  <url>git+https://github.com/MO-Movia/licit-doc-attrs-step.git</url>
@@ -9365,10 +9365,10 @@
9365
9365
  <comment>as detected from PackageJson property "bugs.url"</comment>
9366
9366
  </reference>
9367
9367
  <reference type="distribution">
9368
- <url>https://registry.npmjs.org/@modusoperandi/licit-doc-attrs-step/-/licit-doc-attrs-step-1.0.2.tgz</url>
9368
+ <url>https://registry.npmjs.org/@modusoperandi/licit-doc-attrs-step/-/licit-doc-attrs-step-1.0.3.tgz</url>
9369
9369
  <comment>as detected from npm-ls property "resolved" and property "integrity"</comment>
9370
9370
  <hashes>
9371
- <hash alg="SHA-512">10edbafeee221f6b2d02c90d9876c24ab4303aa4f1ccd5b71ded6f00bdc590b0cc61291cf94f4eec9ef67bc509cd48c50076a003b480cbc22c439d6544fe5342</hash>
9371
+ <hash alg="SHA-512">bd0630e6aaae6a93f715ae4e1ba2d8112a35b43000f2f8e4d52f44a3068e024b114d3a8e1d261f518a268ff446b20afb205b5cc80154f52e9c70b64011a0d780</hash>
9372
9372
  </hashes>
9373
9373
  </reference>
9374
9374
  </externalReferences>
@@ -39822,81 +39822,6 @@
39822
39822
  <property name="cdx:npm:package:path">node_modules/jquery</property>
39823
39823
  </properties>
39824
39824
  </component>
39825
- <component type="library" bom-ref="katex@0.16.19">
39826
- <name>katex</name>
39827
- <version>0.16.19</version>
39828
- <description>Fast math typesetting for the web.</description>
39829
- <licenses>
39830
- <license>
39831
- <id>MIT</id>
39832
- </license>
39833
- </licenses>
39834
- <purl>pkg:npm/katex@0.16.19</purl>
39835
- <externalReferences>
39836
- <reference type="vcs">
39837
- <url>git+https://github.com/KaTeX/KaTeX.git</url>
39838
- <comment>as detected from PackageJson property "repository.url"</comment>
39839
- </reference>
39840
- <reference type="website">
39841
- <url>https://katex.org</url>
39842
- <comment>as detected from PackageJson property "homepage"</comment>
39843
- </reference>
39844
- <reference type="issue-tracker">
39845
- <url>https://github.com/KaTeX/KaTeX/issues</url>
39846
- <comment>as detected from PackageJson property "bugs.url"</comment>
39847
- </reference>
39848
- <reference type="distribution">
39849
- <url>https://registry.npmjs.org/katex/-/katex-0.16.19.tgz</url>
39850
- <comment>as detected from npm-ls property "resolved" and property "integrity"</comment>
39851
- <hashes>
39852
- <hash alg="SHA-512">dc803a0d8561c6105a6e348b4cd3bd4b8f8e96203742f6fca4141731f0b85b15c980bc198277c3974066078cfa9c131dce706c67e08633c0eb199e61720b8366</hash>
39853
- </hashes>
39854
- </reference>
39855
- </externalReferences>
39856
- <properties>
39857
- <property name="cdx:npm:package:path">node_modules/katex</property>
39858
- <property name="cdx:npm:package:extraneous">true</property>
39859
- </properties>
39860
- <components>
39861
- <component type="library" bom-ref="katex@0.16.19|commander@8.3.0">
39862
- <author>TJ Holowaychuk</author>
39863
- <name>commander</name>
39864
- <version>8.3.0</version>
39865
- <description>the complete solution for node.js command-line programs</description>
39866
- <licenses>
39867
- <license>
39868
- <id>MIT</id>
39869
- </license>
39870
- </licenses>
39871
- <purl>pkg:npm/commander@8.3.0</purl>
39872
- <externalReferences>
39873
- <reference type="vcs">
39874
- <url>git+https://github.com/tj/commander.js.git</url>
39875
- <comment>as detected from PackageJson property "repository.url"</comment>
39876
- </reference>
39877
- <reference type="website">
39878
- <url>https://github.com/tj/commander.js#readme</url>
39879
- <comment>as detected from PackageJson property "homepage"</comment>
39880
- </reference>
39881
- <reference type="issue-tracker">
39882
- <url>https://github.com/tj/commander.js/issues</url>
39883
- <comment>as detected from PackageJson property "bugs.url"</comment>
39884
- </reference>
39885
- <reference type="distribution">
39886
- <url>https://registry.npmjs.org/commander/-/commander-8.3.0.tgz</url>
39887
- <comment>as detected from npm-ls property "resolved" and property "integrity"</comment>
39888
- <hashes>
39889
- <hash alg="SHA-512">3a44cbf6e99ff877b60d9914abc7fc27da1fef22fa449288db875521306635f6419ab8bdcd8650aca92e5e22a1c9f3d2bbcb5486754107588a5debef9e54785b</hash>
39890
- </hashes>
39891
- </reference>
39892
- </externalReferences>
39893
- <properties>
39894
- <property name="cdx:npm:package:path">node_modules/katex/node_modules/commander</property>
39895
- <property name="cdx:npm:package:extraneous">true</property>
39896
- </properties>
39897
- </component>
39898
- </components>
39899
- </component>
39900
39825
  <component type="library" bom-ref="lint-staged@15.3.0">
39901
39826
  <author>Andrey Okonetchnikov</author>
39902
39827
  <name>lint-staged</name>
@@ -41905,42 +41830,6 @@
41905
41830
  <property name="cdx:npm:package:development">true</property>
41906
41831
  </properties>
41907
41832
  </component>
41908
- <component type="library" bom-ref="node-mathquill@0.10.2">
41909
- <name>node-mathquill</name>
41910
- <version>0.10.2</version>
41911
- <description>Easily type math in your webapp (published to npm for node/webpack builds)</description>
41912
- <licenses>
41913
- <license>
41914
- <id>MPL-2.0</id>
41915
- </license>
41916
- </licenses>
41917
- <purl>pkg:npm/node-mathquill@0.10.2</purl>
41918
- <externalReferences>
41919
- <reference type="vcs">
41920
- <url>git+https://github.com/FB-PLP/mathquill.git</url>
41921
- <comment>as detected from PackageJson property "repository.url"</comment>
41922
- </reference>
41923
- <reference type="website">
41924
- <url>https://github.com/FB-PLP/mathquill#readme</url>
41925
- <comment>as detected from PackageJson property "homepage"</comment>
41926
- </reference>
41927
- <reference type="issue-tracker">
41928
- <url>https://github.com/FB-PLP/mathquill/issues</url>
41929
- <comment>as detected from PackageJson property "bugs.url"</comment>
41930
- </reference>
41931
- <reference type="distribution">
41932
- <url>https://registry.npmjs.org/node-mathquill/-/node-mathquill-0.10.2.tgz</url>
41933
- <comment>as detected from npm-ls property "resolved" and property "integrity"</comment>
41934
- <hashes>
41935
- <hash alg="SHA-512">7a8cd3c4405e9a42374390f3aed09ae1639f2a8ff5dcba7a775878f55dc4d068d94226c93759e79e069a7a8274100e0e659982b9227cbcbd3ad76e157f611977</hash>
41936
- </hashes>
41937
- </reference>
41938
- </externalReferences>
41939
- <properties>
41940
- <property name="cdx:npm:package:path">node_modules/node-mathquill</property>
41941
- <property name="cdx:npm:package:extraneous">true</property>
41942
- </properties>
41943
- </component>
41944
41833
  <component type="library" bom-ref="w3c-keyname@2.2.8">
41945
41834
  <author>Marijn Haverbeke</author>
41946
41835
  <name>w3c-keyname</name>
@@ -51106,7 +50995,7 @@
51106
50995
  </component>
51107
50996
  </components>
51108
50997
  <dependencies>
51109
- <dependency ref="@modusoperandi/licit@1.0.10">
50998
+ <dependency ref="@modusoperandi/licit@1.0.11">
51110
50999
  <dependency ref="@babel/cli@7.26.4"/>
51111
51000
  <dependency ref="@babel/core@7.26.0"/>
51112
51001
  <dependency ref="@babel/eslint-parser@7.25.9"/>
@@ -51130,7 +51019,7 @@
51130
51019
  <dependency ref="@babel/preset-react@7.26.3"/>
51131
51020
  <dependency ref="@cyclonedx/cyclonedx-npm@1.19.3"/>
51132
51021
  <dependency ref="@modusoperandi/color-picker@1.0.4"/>
51133
- <dependency ref="@modusoperandi/licit-ui-commands@1.0.7"/>
51022
+ <dependency ref="@modusoperandi/licit-ui-commands@1.0.8"/>
51134
51023
  <dependency ref="babel-jest@29.7.0"/>
51135
51024
  <dependency ref="babel-loader@9.2.1"/>
51136
51025
  <dependency ref="babel-plugin-flow-react-proptypes@26.0.0"/>
@@ -51168,11 +51057,9 @@
51168
51057
  <dependency ref="jest-sonar-reporter@2.0.0"/>
51169
51058
  <dependency ref="jest@29.7.0"/>
51170
51059
  <dependency ref="jquery@3.7.1"/>
51171
- <dependency ref="katex@0.16.19"/>
51172
51060
  <dependency ref="lint-staged@15.3.0"/>
51173
51061
  <dependency ref="mkdirp@3.0.1"/>
51174
51062
  <dependency ref="mv@2.1.1"/>
51175
- <dependency ref="node-mathquill@0.10.2"/>
51176
51063
  <dependency ref="prettier@3.4.2"/>
51177
51064
  <dependency ref="prosemirror-collab@1.3.1"/>
51178
51065
  <dependency ref="prosemirror-tables@1.6.2"/>
@@ -52223,9 +52110,9 @@
52223
52110
  <dependency ref="scheduler@0.23.2">
52224
52111
  <dependency ref="loose-envify@1.4.0"/>
52225
52112
  </dependency>
52226
- <dependency ref="@modusoperandi/licit-ui-commands@1.0.7">
52113
+ <dependency ref="@modusoperandi/licit-ui-commands@1.0.8">
52227
52114
  <dependency ref="@modusoperandi/color-picker@1.0.4"/>
52228
- <dependency ref="@modusoperandi/licit-doc-attrs-step@1.0.2"/>
52115
+ <dependency ref="@modusoperandi/licit-doc-attrs-step@1.0.3"/>
52229
52116
  <dependency ref="classnames@2.5.1"/>
52230
52117
  <dependency ref="color@4.2.3"/>
52231
52118
  <dependency ref="prosemirror-commands@1.6.2"/>
@@ -52239,7 +52126,7 @@
52239
52126
  <dependency ref="react@18.3.1"/>
52240
52127
  <dependency ref="uuid@11.0.4"/>
52241
52128
  </dependency>
52242
- <dependency ref="@modusoperandi/licit-doc-attrs-step@1.0.2">
52129
+ <dependency ref="@modusoperandi/licit-doc-attrs-step@1.0.3">
52243
52130
  <dependency ref="prosemirror-keymap@1.2.2"/>
52244
52131
  <dependency ref="prosemirror-model@1.24.1"/>
52245
52132
  <dependency ref="prosemirror-state@1.4.3"/>
@@ -55348,10 +55235,6 @@
55348
55235
  <dependency ref="sisteransi@1.0.5"/>
55349
55236
  <dependency ref="yargs-parser@21.1.1"/>
55350
55237
  <dependency ref="jquery@3.7.1"/>
55351
- <dependency ref="katex@0.16.19">
55352
- <dependency ref="katex@0.16.19|commander@8.3.0"/>
55353
- </dependency>
55354
- <dependency ref="katex@0.16.19|commander@8.3.0"/>
55355
55238
  <dependency ref="lint-staged@15.3.0">
55356
55239
  <dependency ref="lint-staged@15.3.0|chalk@5.4.1"/>
55357
55240
  <dependency ref="lint-staged@15.3.0|commander@12.1.0"/>
@@ -55492,7 +55375,6 @@
55492
55375
  </dependency>
55493
55376
  <dependency ref="minimist@1.2.8"/>
55494
55377
  <dependency ref="ncp@2.0.0"/>
55495
- <dependency ref="node-mathquill@0.10.2"/>
55496
55378
  <dependency ref="w3c-keyname@2.2.8"/>
55497
55379
  <dependency ref="react-tooltip@5.28.0">
55498
55380
  <dependency ref="@floating-ui/dom@1.6.13"/>
package/client/Licit.js CHANGED
@@ -34,6 +34,7 @@ import DefaultEditorPlugins from '../buildEditorPlugins.js';
34
34
  import EditorMarks from '../EditorMarks.js';
35
35
  import EditorNodes from '../EditorNodes.js';
36
36
  import convertFromHTML from '../convertFromHTML.js';
37
+ import DocLayoutCommand from '../DocLayoutCommand.js';
37
38
  export var DataType = Object.freeze({
38
39
  JSON: Symbol('json'),
39
40
  HTML: Symbol('html')
@@ -211,6 +212,13 @@ var Licit = /*#__PURE__*/function (_React$Component) {
211
212
  view.dispatch(tr.setSelection(TextSelection.atEnd(view.state.doc)).scrollIntoView());
212
213
  view.focus();
213
214
  });
215
+ /**
216
+ * Method to open page layout
217
+ */
218
+ _defineProperty(_this, "pageLayout", function (state) {
219
+ var DOC_LAYOUT = new DocLayoutCommand();
220
+ DOC_LAYOUT.waitForUserInput(state);
221
+ });
214
222
  _this.initialize(_props);
215
223
  return _this;
216
224
  }
@@ -23,6 +23,7 @@ import DefaultEditorPlugins from '../buildEditorPlugins.js';
23
23
  import EditorMarks from '../EditorMarks.js';
24
24
  import EditorNodes from '../EditorNodes.js';
25
25
  import convertFromHTML from '../convertFromHTML.js';
26
+ import DocLayoutCommand from '../DocLayoutCommand.js';
26
27
 
27
28
  export const DataType = Object.freeze({
28
29
  JSON: Symbol('json'),
@@ -605,6 +606,14 @@ class Licit extends React.Component<any, any> {
605
606
  );
606
607
  view.focus();
607
608
  };
609
+
610
+ /**
611
+ * Method to open page layout
612
+ */
613
+ pageLayout = (state: EditorState): void => {
614
+ const DOC_LAYOUT = new DocLayoutCommand();
615
+ DOC_LAYOUT.waitForUserInput(state);
616
+ };
608
617
  }
609
618
 
610
619
  export default Licit;
package/index.d.ts CHANGED
@@ -91,6 +91,8 @@ export class Licit extends React.Component<any, any> {
91
91
  exportPDF();
92
92
 
93
93
  goToEnd(): void;
94
+
95
+ pageLayout(state: EditorState): void;
94
96
  }
95
97
 
96
98
  // from './Types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modusoperandi/licit",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "subversion": "1",
6
6
  "description": "Rich text editor built with React and ProseMirror",
@@ -110,7 +110,7 @@
110
110
  "write-file-webpack-plugin": "^4.5.1"
111
111
  },
112
112
  "dependencies": {
113
- "@modusoperandi/color-picker": "^1.0.1",
113
+ "@modusoperandi/color-picker": "^1.0.4",
114
114
  "body-parser": "^1.19.0",
115
115
  "browserkeymap": "^2.0.2",
116
116
  "flatted": "^3.1.0",
@@ -126,7 +126,7 @@
126
126
  "webfontloader": "^1.6.28"
127
127
  },
128
128
  "peerDependencies": {
129
- "@modusoperandi/licit-ui-commands": "^1.0.0",
129
+ "@modusoperandi/licit-ui-commands": "^1.0.8",
130
130
  "jquery": "^3.5.1",
131
131
  "prosemirror-collab": "^1.2.2",
132
132
  "prosemirror-tables": "^1.2.5"
@@ -31,7 +31,6 @@ export function parseLabel(input) {
31
31
  };
32
32
  }
33
33
  var CLEAR_FORMAT = EditorCommands.CLEAR_FORMAT,
34
- DOC_LAYOUT = EditorCommands.DOC_LAYOUT,
35
34
  EM = EditorCommands.EM,
36
35
  HISTORY_REDO = EditorCommands.HISTORY_REDO,
37
36
  HISTORY_UNDO = EditorCommands.HISTORY_UNDO,
@@ -131,9 +130,12 @@ export var COMMAND_GROUPS = [{
131
130
 
132
131
  // [FS][07-MAY-2020][IRAD-956]
133
132
  // '[format_quote] Block quote': BLOCKQUOTE_TOGGLE,
134
- }, {
135
- '[settings_overscan] Page layout': DOC_LAYOUT
136
- }, {
133
+ },
134
+ // Removed page layout icon from Editor
135
+ // {
136
+ // '[settings_overscan] Page layout': DOC_LAYOUT,
137
+ // },
138
+ {
137
139
  '[undo] Undo': HISTORY_UNDO,
138
140
  '[redo] Redo': HISTORY_REDO
139
141
  }];
@@ -35,7 +35,6 @@ const {
35
35
  // [FS][07-MAY-2020][IRAD-956]
36
36
  // BLOCKQUOTE_TOGGLE,
37
37
  CLEAR_FORMAT,
38
- DOC_LAYOUT,
39
38
  EM,
40
39
  HISTORY_REDO,
41
40
  HISTORY_UNDO,
@@ -152,9 +151,10 @@ export const COMMAND_GROUPS = [
152
151
  // [FS][07-MAY-2020][IRAD-956]
153
152
  // '[format_quote] Block quote': BLOCKQUOTE_TOGGLE,
154
153
  },
155
- {
156
- '[settings_overscan] Page layout': DOC_LAYOUT,
157
- },
154
+ // Removed page layout icon from Editor
155
+ // {
156
+ // '[settings_overscan] Page layout': DOC_LAYOUT,
157
+ // },
158
158
  {
159
159
  '[undo] Undo': HISTORY_UNDO,
160
160
  '[redo] Redo': HISTORY_REDO,