@collabchron/notiq 1.0.2 → 1.0.4
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/README.md +6 -17
- package/dist/{FloatingTextFormatToolbarPlugin-F2GY6LMI.mjs → FloatingTextFormatToolbarPlugin-XGVUIG42.mjs} +2 -2
- package/dist/{SlashCommand-GMT5JI33.mjs → SlashCommand-DTHJZRRO.mjs} +3 -3
- package/dist/{chunk-GYIOYVCN.mjs → chunk-56XWNIVH.mjs} +2 -2
- package/dist/{chunk-WJRHXI2C.mjs → chunk-DSFQHA7I.mjs} +0 -1
- package/dist/{chunk-LQN3CMKV.mjs → chunk-FNYPGJZQ.mjs} +1 -1
- package/dist/{chunk-6RNZQOH2.mjs → chunk-KLBJT6EH.mjs} +1 -1
- package/dist/{chunk-XLER2DHM.mjs → chunk-UNMJLVGC.mjs} +2 -2
- package/dist/index.js +1 -2
- package/dist/index.mjs +5 -5
- package/dist/{stepper-FSARL6X6.mjs → stepper-WC3QI3D4.mjs} +5 -5
- package/dist/styles/notiq.css +2 -1149
- package/package.json +5 -6
- package/src/styles/notiq.css +1 -0
package/README.md
CHANGED
|
@@ -66,23 +66,12 @@ npm install @collabchron/notiq
|
|
|
66
66
|
|
|
67
67
|
### Integration
|
|
68
68
|
|
|
69
|
-
#### 1.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
import
|
|
75
|
-
|
|
76
|
-
export default {
|
|
77
|
-
content: [
|
|
78
|
-
// ... your content paths
|
|
79
|
-
"./node_modules/@collabchron/notiq/dist/**/*.{js,mjs}",
|
|
80
|
-
],
|
|
81
|
-
plugins: [
|
|
82
|
-
notiqPlugin,
|
|
83
|
-
require('@tailwindcss/typography'),
|
|
84
|
-
],
|
|
85
|
-
}
|
|
69
|
+
#### 1. Import Styles
|
|
70
|
+
|
|
71
|
+
Import the CSS file in your root layout file (e.g., `app/layout.tsx` or `pages/_app.tsx`):
|
|
72
|
+
|
|
73
|
+
```tsx
|
|
74
|
+
import "@collabchron/notiq/styles.css";
|
|
86
75
|
```
|
|
87
76
|
|
|
88
77
|
#### 2. Usage in your component
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FloatingTextFormatToolbarPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FNYPGJZQ.mjs";
|
|
4
4
|
import "./chunk-Z4EWP7BI.mjs";
|
|
5
5
|
import "./chunk-4HBCVSE6.mjs";
|
|
6
6
|
import "./chunk-K36V4SIW.mjs";
|
|
@@ -12,7 +12,7 @@ import "./chunk-KJ6AJ44Q.mjs";
|
|
|
12
12
|
import "./chunk-64Z3FI7T.mjs";
|
|
13
13
|
import "./chunk-2FNEAMSP.mjs";
|
|
14
14
|
import "./chunk-YUDCJRJM.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-KLBJT6EH.mjs";
|
|
16
16
|
import "./chunk-GXYD4VZM.mjs";
|
|
17
17
|
import "./chunk-ZB5LZQKC.mjs";
|
|
18
18
|
import "./chunk-PZSUSXQG.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SlashCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-56XWNIVH.mjs";
|
|
4
4
|
import "./chunk-KJ6AJ44Q.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-DSFQHA7I.mjs";
|
|
6
6
|
import "./chunk-U47ABU5Z.mjs";
|
|
7
7
|
import "./chunk-AMMKBSST.mjs";
|
|
8
8
|
import "./chunk-5QSNIVIG.mjs";
|
|
9
9
|
import "./chunk-LGG4IUIA.mjs";
|
|
10
10
|
import "./chunk-5BAKY5KN.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-KLBJT6EH.mjs";
|
|
12
12
|
import "./chunk-GXYD4VZM.mjs";
|
|
13
13
|
import "./chunk-ZB5LZQKC.mjs";
|
|
14
14
|
import "./chunk-N3WN46VL.mjs";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
InsertEquationDialog,
|
|
13
13
|
InsertInlineImageDialog,
|
|
14
14
|
createDefaultDynamicBlock
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DSFQHA7I.mjs";
|
|
16
16
|
import {
|
|
17
17
|
INSERT_POLL_COMMAND
|
|
18
18
|
} from "./chunk-U47ABU5Z.mjs";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
INSERT_STEPPER_COMMAND,
|
|
35
35
|
initialEditorState
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KLBJT6EH.mjs";
|
|
37
37
|
import {
|
|
38
38
|
SHORTCUTS
|
|
39
39
|
} from "./chunk-ZB5LZQKC.mjs";
|
|
@@ -545,7 +545,6 @@ function getDragSelection(event) {
|
|
|
545
545
|
|
|
546
546
|
// src/components/editor/plugins/EquationsPlugin/index.tsx
|
|
547
547
|
init_react_shim();
|
|
548
|
-
import "katex/dist/katex.css";
|
|
549
548
|
import { useLexicalComposerContext as useLexicalComposerContext4 } from "@lexical/react/LexicalComposerContext";
|
|
550
549
|
import { $wrapNodeInElement as $wrapNodeInElement3 } from "@lexical/utils";
|
|
551
550
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InlineImageNode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DSFQHA7I.mjs";
|
|
4
4
|
import {
|
|
5
5
|
FigmaNode,
|
|
6
6
|
LayoutContainerNode,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-5BAKY5KN.mjs";
|
|
14
14
|
import {
|
|
15
15
|
StepperNode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KLBJT6EH.mjs";
|
|
17
17
|
import {
|
|
18
18
|
CollapsibleContainerNode,
|
|
19
19
|
CollapsibleContentNode,
|
package/dist/index.js
CHANGED
|
@@ -11821,12 +11821,11 @@ function EquationsPlugin() {
|
|
|
11821
11821
|
}, [editor]);
|
|
11822
11822
|
return null;
|
|
11823
11823
|
}
|
|
11824
|
-
var
|
|
11824
|
+
var import_LexicalComposerContext29, import_utils54, import_lexical51, import_react63, React66, INSERT_EQUATION_COMMAND;
|
|
11825
11825
|
var init_EquationsPlugin = __esm({
|
|
11826
11826
|
"src/components/editor/plugins/EquationsPlugin/index.tsx"() {
|
|
11827
11827
|
"use strict";
|
|
11828
11828
|
init_react_shim();
|
|
11829
|
-
import_katex3 = require("katex/dist/katex.css");
|
|
11830
11829
|
import_LexicalComposerContext29 = require("@lexical/react/LexicalComposerContext");
|
|
11831
11830
|
import_utils54 = require("@lexical/utils");
|
|
11832
11831
|
import_lexical51 = require("lexical");
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
LexicalAutoLinkPlugin,
|
|
7
7
|
LinkWithMetaDataPlugin,
|
|
8
8
|
nodes_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UNMJLVGC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Progress,
|
|
12
12
|
UploadProvider,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
EquationsPlugin,
|
|
18
18
|
InlineImagePlugin,
|
|
19
19
|
StoryBuilderPlugin
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DSFQHA7I.mjs";
|
|
21
21
|
import {
|
|
22
22
|
PollPlugin
|
|
23
23
|
} from "./chunk-U47ABU5Z.mjs";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-YUDCJRJM.mjs";
|
|
42
42
|
import {
|
|
43
43
|
StepperPlugin
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-KLBJT6EH.mjs";
|
|
45
45
|
import "./chunk-GXYD4VZM.mjs";
|
|
46
46
|
import {
|
|
47
47
|
CAN_USE_DOM,
|
|
@@ -1278,7 +1278,7 @@ function ContentAnalyticsPlugin() {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
1280
|
// src/components/editor/Core.tsx
|
|
1281
|
-
var SlashCommand = dynamic(() => import("./SlashCommand-
|
|
1281
|
+
var SlashCommand = dynamic(() => import("./SlashCommand-DTHJZRRO.mjs"), { ssr: false });
|
|
1282
1282
|
var ToolbarPlugin = dynamic(() => import("./ToolbarPlugin-YKYA4NB4.mjs"), {
|
|
1283
1283
|
ssr: false,
|
|
1284
1284
|
loading: () => /* @__PURE__ */ React.createElement("div", { className: "hidden md:block fixed top-14 md:top-20 left-0 right-0 z-50 flex justify-center p-4" }, /* @__PURE__ */ React.createElement(Skeleton, { className: "h-12 w-full max-w-6xl rounded-2xl" }))
|
|
@@ -1299,7 +1299,7 @@ var TableHoverActionsPlugin = dynamic(() => import("./TableHoverActionsPlugin-GJ
|
|
|
1299
1299
|
});
|
|
1300
1300
|
var CodeActionMenuPlugin = dynamic(() => import("./CodeActionMenuPlugin-EINOY4U4.mjs"), { ssr: false });
|
|
1301
1301
|
var FloatingTextFormatToolbarPlugin = dynamic(
|
|
1302
|
-
() => import("./FloatingTextFormatToolbarPlugin-
|
|
1302
|
+
() => import("./FloatingTextFormatToolbarPlugin-XGVUIG42.mjs"),
|
|
1303
1303
|
{ ssr: false }
|
|
1304
1304
|
);
|
|
1305
1305
|
var QUOTES = [
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from "./chunk-QHIQKMVN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
SlashCommand
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-56XWNIVH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
FloatingTextFormatToolbarPlugin
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FNYPGJZQ.mjs";
|
|
15
15
|
import "./chunk-Z4EWP7BI.mjs";
|
|
16
16
|
import "./chunk-4HBCVSE6.mjs";
|
|
17
17
|
import "./chunk-K36V4SIW.mjs";
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
LexicalAutoLinkPlugin,
|
|
28
28
|
LinkWithMetaDataPlugin,
|
|
29
29
|
nestedNodes
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-UNMJLVGC.mjs";
|
|
31
|
+
import "./chunk-DSFQHA7I.mjs";
|
|
32
32
|
import "./chunk-U47ABU5Z.mjs";
|
|
33
33
|
import "./chunk-AMMKBSST.mjs";
|
|
34
34
|
import "./chunk-5QSNIVIG.mjs";
|
|
@@ -40,7 +40,7 @@ import "./chunk-YUDCJRJM.mjs";
|
|
|
40
40
|
import {
|
|
41
41
|
$isStepperNode,
|
|
42
42
|
initialEditorState
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KLBJT6EH.mjs";
|
|
44
44
|
import "./chunk-GXYD4VZM.mjs";
|
|
45
45
|
import "./chunk-ZB5LZQKC.mjs";
|
|
46
46
|
import "./chunk-PZSUSXQG.mjs";
|