@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.
@@ -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,cAAe,GAAG,KAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CA+B1D,CAAA;AAED,eAAO,MAAM,YAAY,aAAc,GAAG,KAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAetD,CAAA"}
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-72RHNPWF.js";
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 {
@@ -12,7 +12,7 @@ import {
12
12
  dummyLink,
13
13
  formatDate,
14
14
  useNotionContext
15
- } from "../chunk-72RHNPWF.js";
15
+ } from "../chunk-IMWLLIUB.js";
16
16
  import {
17
17
  __commonJS,
18
18
  __objRest,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useNotionContext
3
- } from "../chunk-72RHNPWF.js";
3
+ } from "../chunk-IMWLLIUB.js";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadValues
@@ -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,YAAa,MAAM,YAAY,QAAQ,WAOhE,CAAA;AAED,eAAO,MAAM,oBAAoB,QAAS,MAAM,WAE/C,CAAA;AAED,eAAO,MAAM,SAAS,SAAgC,CAAA;AAUtD,eAAO,MAAM,YAAY,QAAS,MAAM,KAAG,MAAM,GAAG,IAcnD,CAAA"}
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.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": ">=20.18.1"
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.19",
24
- "prismjs": "^1.29.0",
23
+ "katex": "^0.16.22",
24
+ "prismjs": "^1.30.0",
25
25
  "react-fast-compare": "^3.2.2",
26
- "react-hotkeys-hook": "^4.6.1",
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.4",
32
- "@texonom/nutils": "^1.4.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": "^20.17.12",
37
- "@types/react": "^18.3.18",
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": "^18.3.1",
43
- "react-dom": "^18.3.1"
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: ui-sans-serif, system-ui, apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, 'Apple Color Emoji',
3
- Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol';
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: 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Noto Color Emoji', 'Segoe UI Symbol', 'Android Emoji',
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);