@texonom/nreact 1.4.4 → 1.4.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/build/.tsbuildinfo +1 -1
- package/build/chunk-IMWLLIUB.js +1182 -0
- package/build/components/graceful-image.d.ts.map +1 -1
- package/build/components/header.d.ts.map +1 -1
- package/build/components/search-dialog.d.ts +1 -0
- package/build/components/search-dialog.d.ts.map +1 -1
- package/build/context.d.ts +1 -0
- package/build/context.d.ts.map +1 -1
- package/build/dev/chunk-P3V5A3W4.js +1183 -0
- package/build/dev/chunk-P3V5A3W4.js.map +1 -0
- package/build/dev/index.js +150 -2
- package/build/dev/index.js.map +1 -1
- package/build/dev/third-party/code.js +3 -3
- package/build/dev/third-party/code.js.map +1 -1
- package/build/dev/third-party/collection.js +1 -1
- package/build/dev/third-party/equation.js +1 -1
- package/build/icons/chevron-down-icon.d.ts.map +1 -1
- package/build/icons/clear-icon.d.ts.map +1 -1
- package/build/icons/default-page-icon.d.ts.map +1 -1
- package/build/icons/empty-icon.d.ts.map +1 -1
- package/build/icons/file-icon.d.ts.map +1 -1
- package/build/icons/link-icon.d.ts.map +1 -1
- package/build/icons/loading-icon.d.ts.map +1 -1
- package/build/icons/search-icon.d.ts.map +1 -1
- package/build/index.js +150 -2
- package/build/next.d.ts.map +1 -1
- package/build/third-party/code.js +3 -3
- package/build/third-party/collection.js +1 -1
- package/build/third-party/equation.js +1 -1
- package/build/utils.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/styles.css +5 -3
package/build/next.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,aAAa,GAAI,WAAW,GAAG,KAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CA+B1D,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,UAAU,GAAG,KAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAetD,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Text,
|
|
3
3
|
useNotionContext
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IMWLLIUB.js";
|
|
5
5
|
import {
|
|
6
6
|
__async,
|
|
7
7
|
__commonJS,
|
|
@@ -101,12 +101,12 @@ var copy_default = SvgCopy;
|
|
|
101
101
|
var Code = ({ block, defaultLanguage = "typescript", className }) => {
|
|
102
102
|
var _a, _b, _c;
|
|
103
103
|
const [isCopied, setIsCopied] = React2.useState(false);
|
|
104
|
-
const copyTimeout = React2.useRef();
|
|
104
|
+
const copyTimeout = React2.useRef(null);
|
|
105
105
|
const { recordMap } = useNotionContext();
|
|
106
106
|
const content = getBlockTitle(block, recordMap);
|
|
107
107
|
const language = (((_c = (_b = (_a = block.properties) == null ? void 0 : _a.language) == null ? void 0 : _b[0]) == null ? void 0 : _c[0]) || defaultLanguage).toLowerCase();
|
|
108
108
|
const caption = block.properties.caption;
|
|
109
|
-
const codeRef = React2.useRef();
|
|
109
|
+
const codeRef = React2.useRef(null);
|
|
110
110
|
React2.useEffect(() => {
|
|
111
111
|
if (codeRef.current)
|
|
112
112
|
try {
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AA8BzE,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AA8BzE,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,EAAE,UAAU,QAAQ,WAOhE,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,WAE/C,CAAA;AAED,eAAO,MAAM,SAAS,SAAgC,CAAA;AAUtD,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,IAcnD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texonom/nreact",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Fast and accurate React renderer for Notion.",
|
|
6
6
|
"repository": "texonom/notion-node",
|
|
@@ -15,32 +15,32 @@
|
|
|
15
15
|
"src/styles.css"
|
|
16
16
|
],
|
|
17
17
|
"engines": {
|
|
18
|
-
"node": ">=
|
|
18
|
+
"node": ">=22.16.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@fisch0920/medium-zoom": "^1.0.7",
|
|
22
22
|
"@matejmazur/react-katex": "^3.1.3",
|
|
23
|
-
"katex": "^0.16.
|
|
24
|
-
"prismjs": "^1.
|
|
23
|
+
"katex": "^0.16.22",
|
|
24
|
+
"prismjs": "^1.30.0",
|
|
25
25
|
"react-fast-compare": "^3.2.2",
|
|
26
|
-
"react-hotkeys-hook": "^
|
|
26
|
+
"react-hotkeys-hook": "^5.1.0",
|
|
27
27
|
"react-image": "^4.1.0",
|
|
28
28
|
"react-modal": "^3.16.3",
|
|
29
29
|
"react-pdf": "^9.2.1",
|
|
30
30
|
"react-use": "^17.6.0",
|
|
31
|
-
"@texonom/ntypes": "^1.4.
|
|
32
|
-
"@texonom/nutils": "^1.4.
|
|
31
|
+
"@texonom/ntypes": "^1.4.5",
|
|
32
|
+
"@texonom/nutils": "^1.4.5"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/lodash.throttle": "^4.1.9",
|
|
36
|
-
"@types/node": "^
|
|
37
|
-
"@types/react": "^
|
|
36
|
+
"@types/node": "^22.15.30",
|
|
37
|
+
"@types/react": "^19.1.6",
|
|
38
38
|
"clipboard-copy": "^4.0.1",
|
|
39
39
|
"date-fns": "^2.30.0",
|
|
40
40
|
"format-number": "^3.0.0",
|
|
41
41
|
"lodash.throttle": "^4.1.1",
|
|
42
|
-
"react": "^
|
|
43
|
-
"react-dom": "^
|
|
42
|
+
"react": "^19.1.0",
|
|
43
|
+
"react-dom": "^19.1.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=16",
|
package/src/styles.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--notion-font:
|
|
3
|
-
|
|
2
|
+
--notion-font:
|
|
3
|
+
ui-sans-serif, system-ui, apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial,
|
|
4
|
+
sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
4
5
|
--fg-color: rgb(55, 53, 47);
|
|
5
6
|
--fg-color-0: rgba(55, 53, 47, 0.09);
|
|
6
7
|
--fg-color-1: rgba(55, 53, 47, 0.16);
|
|
@@ -604,7 +605,8 @@
|
|
|
604
605
|
}
|
|
605
606
|
|
|
606
607
|
.notion-page-icon {
|
|
607
|
-
font-family:
|
|
608
|
+
font-family:
|
|
609
|
+
'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Noto Color Emoji', 'Segoe UI Symbol', 'Android Emoji',
|
|
608
610
|
EmojiSymbols;
|
|
609
611
|
font-size: 1.1em;
|
|
610
612
|
fill: var(--fg-color-6);
|