@texonom/nreact 1.4.4 → 1.4.6
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-H4QYS6CQ.js +1185 -0
- 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 +2 -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/chunk-ZJAJPWJX.js +1186 -0
- package/build/dev/chunk-ZJAJPWJX.js.map +1 -0
- package/build/dev/index.js +153 -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 +153 -2
- package/build/next.d.ts.map +1 -1
- package/build/renderer.d.ts +1 -0
- package/build/renderer.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/index.js
CHANGED
|
@@ -30,16 +30,164 @@ import {
|
|
|
30
30
|
getYoutubeId,
|
|
31
31
|
isBrowser,
|
|
32
32
|
isUrl,
|
|
33
|
-
require_lodash,
|
|
34
33
|
useNotionContext
|
|
35
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-H4QYS6CQ.js";
|
|
36
35
|
import {
|
|
36
|
+
__commonJS,
|
|
37
37
|
__objRest,
|
|
38
38
|
__spreadProps,
|
|
39
39
|
__spreadValues,
|
|
40
40
|
__toESM
|
|
41
41
|
} from "./chunk-C6BUIPAM.js";
|
|
42
42
|
|
|
43
|
+
// ../../node_modules/.pnpm/lodash.throttle@4.1.1/node_modules/lodash.throttle/index.js
|
|
44
|
+
var require_lodash = __commonJS({
|
|
45
|
+
"../../node_modules/.pnpm/lodash.throttle@4.1.1/node_modules/lodash.throttle/index.js"(exports, module) {
|
|
46
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
47
|
+
var NAN = 0 / 0;
|
|
48
|
+
var symbolTag = "[object Symbol]";
|
|
49
|
+
var reTrim = /^\s+|\s+$/g;
|
|
50
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
51
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
52
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
53
|
+
var freeParseInt = parseInt;
|
|
54
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
55
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
56
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
57
|
+
var objectProto = Object.prototype;
|
|
58
|
+
var objectToString = objectProto.toString;
|
|
59
|
+
var nativeMax = Math.max;
|
|
60
|
+
var nativeMin = Math.min;
|
|
61
|
+
var now = function() {
|
|
62
|
+
return root.Date.now();
|
|
63
|
+
};
|
|
64
|
+
function debounce(func, wait, options) {
|
|
65
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
66
|
+
if (typeof func != "function") {
|
|
67
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
68
|
+
}
|
|
69
|
+
wait = toNumber(wait) || 0;
|
|
70
|
+
if (isObject(options)) {
|
|
71
|
+
leading = !!options.leading;
|
|
72
|
+
maxing = "maxWait" in options;
|
|
73
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
74
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
75
|
+
}
|
|
76
|
+
function invokeFunc(time) {
|
|
77
|
+
var args = lastArgs, thisArg = lastThis;
|
|
78
|
+
lastArgs = lastThis = void 0;
|
|
79
|
+
lastInvokeTime = time;
|
|
80
|
+
result = func.apply(thisArg, args);
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
function leadingEdge(time) {
|
|
84
|
+
lastInvokeTime = time;
|
|
85
|
+
timerId = setTimeout(timerExpired, wait);
|
|
86
|
+
return leading ? invokeFunc(time) : result;
|
|
87
|
+
}
|
|
88
|
+
function remainingWait(time) {
|
|
89
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
|
|
90
|
+
return maxing ? nativeMin(result2, maxWait - timeSinceLastInvoke) : result2;
|
|
91
|
+
}
|
|
92
|
+
function shouldInvoke(time) {
|
|
93
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
94
|
+
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
95
|
+
}
|
|
96
|
+
function timerExpired() {
|
|
97
|
+
var time = now();
|
|
98
|
+
if (shouldInvoke(time)) {
|
|
99
|
+
return trailingEdge(time);
|
|
100
|
+
}
|
|
101
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
102
|
+
}
|
|
103
|
+
function trailingEdge(time) {
|
|
104
|
+
timerId = void 0;
|
|
105
|
+
if (trailing && lastArgs) {
|
|
106
|
+
return invokeFunc(time);
|
|
107
|
+
}
|
|
108
|
+
lastArgs = lastThis = void 0;
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
function cancel() {
|
|
112
|
+
if (timerId !== void 0) {
|
|
113
|
+
clearTimeout(timerId);
|
|
114
|
+
}
|
|
115
|
+
lastInvokeTime = 0;
|
|
116
|
+
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
117
|
+
}
|
|
118
|
+
function flush() {
|
|
119
|
+
return timerId === void 0 ? result : trailingEdge(now());
|
|
120
|
+
}
|
|
121
|
+
function debounced() {
|
|
122
|
+
var time = now(), isInvoking = shouldInvoke(time);
|
|
123
|
+
lastArgs = arguments;
|
|
124
|
+
lastThis = this;
|
|
125
|
+
lastCallTime = time;
|
|
126
|
+
if (isInvoking) {
|
|
127
|
+
if (timerId === void 0) {
|
|
128
|
+
return leadingEdge(lastCallTime);
|
|
129
|
+
}
|
|
130
|
+
if (maxing) {
|
|
131
|
+
timerId = setTimeout(timerExpired, wait);
|
|
132
|
+
return invokeFunc(lastCallTime);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (timerId === void 0) {
|
|
136
|
+
timerId = setTimeout(timerExpired, wait);
|
|
137
|
+
}
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
debounced.cancel = cancel;
|
|
141
|
+
debounced.flush = flush;
|
|
142
|
+
return debounced;
|
|
143
|
+
}
|
|
144
|
+
function throttle2(func, wait, options) {
|
|
145
|
+
var leading = true, trailing = true;
|
|
146
|
+
if (typeof func != "function") {
|
|
147
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
148
|
+
}
|
|
149
|
+
if (isObject(options)) {
|
|
150
|
+
leading = "leading" in options ? !!options.leading : leading;
|
|
151
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
152
|
+
}
|
|
153
|
+
return debounce(func, wait, {
|
|
154
|
+
"leading": leading,
|
|
155
|
+
"maxWait": wait,
|
|
156
|
+
"trailing": trailing
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function isObject(value) {
|
|
160
|
+
var type = typeof value;
|
|
161
|
+
return !!value && (type == "object" || type == "function");
|
|
162
|
+
}
|
|
163
|
+
function isObjectLike(value) {
|
|
164
|
+
return !!value && typeof value == "object";
|
|
165
|
+
}
|
|
166
|
+
function isSymbol(value) {
|
|
167
|
+
return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
|
168
|
+
}
|
|
169
|
+
function toNumber(value) {
|
|
170
|
+
if (typeof value == "number") {
|
|
171
|
+
return value;
|
|
172
|
+
}
|
|
173
|
+
if (isSymbol(value)) {
|
|
174
|
+
return NAN;
|
|
175
|
+
}
|
|
176
|
+
if (isObject(value)) {
|
|
177
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
178
|
+
value = isObject(other) ? other + "" : other;
|
|
179
|
+
}
|
|
180
|
+
if (typeof value != "string") {
|
|
181
|
+
return value === 0 ? value : +value;
|
|
182
|
+
}
|
|
183
|
+
value = value.replace(reTrim, "");
|
|
184
|
+
var isBinary = reIsBinary.test(value);
|
|
185
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
186
|
+
}
|
|
187
|
+
module.exports = throttle2;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
|
|
43
191
|
// src/renderer.tsx
|
|
44
192
|
import React9 from "react";
|
|
45
193
|
import mediumZoom from "@fisch0920/medium-zoom";
|
|
@@ -603,6 +751,7 @@ var NotionRenderer = (_a) => {
|
|
|
603
751
|
fullPage,
|
|
604
752
|
rootPageId,
|
|
605
753
|
rootDomain,
|
|
754
|
+
rootSpaceId,
|
|
606
755
|
darkMode,
|
|
607
756
|
previewImages,
|
|
608
757
|
forceCustomImages,
|
|
@@ -626,6 +775,7 @@ var NotionRenderer = (_a) => {
|
|
|
626
775
|
"fullPage",
|
|
627
776
|
"rootPageId",
|
|
628
777
|
"rootDomain",
|
|
778
|
+
"rootSpaceId",
|
|
629
779
|
"darkMode",
|
|
630
780
|
"previewImages",
|
|
631
781
|
"forceCustomImages",
|
|
@@ -660,6 +810,7 @@ var NotionRenderer = (_a) => {
|
|
|
660
810
|
fullPage,
|
|
661
811
|
rootPageId,
|
|
662
812
|
rootDomain,
|
|
813
|
+
rootSpaceId,
|
|
663
814
|
darkMode,
|
|
664
815
|
previewImages,
|
|
665
816
|
forceCustomImages,
|
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"}
|
package/build/renderer.d.ts
CHANGED
package/build/renderer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAIxD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAEvF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,SAAS,EAAE,iBAAiB,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAEtC,UAAU,CAAC,EAAE,YAAY,CA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"../chunk-
|
|
4
|
+
} from "../chunk-H4QYS6CQ.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.6",
|
|
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.6",
|
|
32
|
+
"@texonom/nutils": "^1.4.6"
|
|
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);
|