@blocklet/pages-kit 0.2.268 → 0.2.271
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/lib/cjs/builtin/async/image-preview.js +1 -1
- package/lib/cjs/builtin/async/react-markdown.js +1 -1
- package/lib/cjs/builtin/async/react-scroll-to-bottom.js +7 -1
- package/lib/esm/builtin/async/image-preview.js +1 -1
- package/lib/esm/builtin/async/react-markdown.js +1 -1
- package/lib/esm/builtin/async/react-scroll-to-bottom.js +8 -1
- package/lib/types/builtin/async/image-preview.d.ts +1 -1
- package/lib/types/builtin/async/react-markdown.d.ts +1 -1
- package/lib/types/builtin/async/react-scroll-to-bottom.d.ts +55 -1
- package/package.json +1 -1
|
@@ -23,4 +23,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.default = Promise.resolve().then(() => __importStar(require('@blocklet/ai-kit/components/image-preview')));
|
|
26
|
+
exports.default = () => Promise.resolve().then(() => __importStar(require('@blocklet/ai-kit/components/image-preview')));
|
|
@@ -23,4 +23,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.default = Promise.resolve().then(() => __importStar(require('react-markdown')));
|
|
26
|
+
exports.default = () => Promise.resolve().then(() => __importStar(require('react-markdown')));
|
|
@@ -23,4 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.default =
|
|
26
|
+
exports.default = () => Promise.all([
|
|
27
|
+
Promise.resolve().then(() => __importStar(require('react-scroll-to-bottom'))),
|
|
28
|
+
typeof window !== 'undefined'
|
|
29
|
+
? // @ts-ignore
|
|
30
|
+
Promise.resolve().then(() => __importStar(require('react-scroll-to-bottom/lib/esm/hooks/internal/useInternalContext'))) : // @ts-ignore
|
|
31
|
+
Promise.resolve().then(() => __importStar(require('react-scroll-to-bottom/lib/hooks/internal/useInternalContext'))),
|
|
32
|
+
]).then(([mod, { default: useInternalContext }]) => (Object.assign(Object.assign({}, mod), { useInternalContext })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default import('@blocklet/ai-kit/components/image-preview');
|
|
1
|
+
export default () => import('@blocklet/ai-kit/components/image-preview');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default import('react-markdown');
|
|
1
|
+
export default () => import('react-markdown');
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
export default
|
|
1
|
+
export default () => Promise.all([
|
|
2
|
+
import('react-scroll-to-bottom'),
|
|
3
|
+
typeof window !== 'undefined'
|
|
4
|
+
? // @ts-ignore
|
|
5
|
+
import('react-scroll-to-bottom/lib/esm/hooks/internal/useInternalContext')
|
|
6
|
+
: // @ts-ignore
|
|
7
|
+
import('react-scroll-to-bottom/lib/hooks/internal/useInternalContext'),
|
|
8
|
+
]).then(([mod, { default: useInternalContext }]) => (Object.assign(Object.assign({}, mod), { useInternalContext })));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: Promise<typeof import("@blocklet/ai-kit/components/image-preview")>;
|
|
1
|
+
declare const _default: () => Promise<typeof import("@blocklet/ai-kit/components/image-preview")>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: Promise<typeof import("react-markdown")>;
|
|
1
|
+
declare const _default: () => Promise<typeof import("react-markdown")>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: () => Promise<{
|
|
3
|
+
useInternalContext: any;
|
|
4
|
+
default(props: import("react").PropsWithChildren<{
|
|
5
|
+
checkInterval?: number | undefined;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
debounce?: number | undefined;
|
|
8
|
+
debug?: boolean | undefined;
|
|
9
|
+
followButtonClassName?: string | undefined;
|
|
10
|
+
initialScrollBehavior?: "auto" | "smooth" | undefined;
|
|
11
|
+
mode?: "top" | "bottom" | undefined;
|
|
12
|
+
nonce?: string | undefined;
|
|
13
|
+
scroller?: ((values: {
|
|
14
|
+
maxValue: number;
|
|
15
|
+
minValue: number;
|
|
16
|
+
offsetHeight: number;
|
|
17
|
+
scrollHeight: number;
|
|
18
|
+
scrollTop: number;
|
|
19
|
+
}) => number) | undefined;
|
|
20
|
+
scrollViewClassName?: string | undefined;
|
|
21
|
+
}>): null;
|
|
22
|
+
useScrollTo(): (scrollTop: number | "100%") => void;
|
|
23
|
+
useScrollToBottom(): (option?: import("react-scroll-to-bottom").ScrollOption | undefined) => void;
|
|
24
|
+
useScrollToEnd(): (option?: import("react-scroll-to-bottom").ScrollOption | undefined) => void;
|
|
25
|
+
useScrollToStart(): (option?: import("react-scroll-to-bottom").ScrollOption | undefined) => void;
|
|
26
|
+
useScrollToTop(): (option?: import("react-scroll-to-bottom").ScrollOption | undefined) => void;
|
|
27
|
+
useObserveScrollPosition(observer: false | (({ scrollTop }: {
|
|
28
|
+
scrollTop: number;
|
|
29
|
+
}) => void)): void;
|
|
30
|
+
useAnimating(): [boolean];
|
|
31
|
+
useAnimatingToEnd(): [boolean];
|
|
32
|
+
useAtBottom(): [boolean];
|
|
33
|
+
useAtEnd(): [boolean];
|
|
34
|
+
useAtStart(): [boolean];
|
|
35
|
+
useAtTop(): [boolean];
|
|
36
|
+
useMode(): ["top" | "bottom"];
|
|
37
|
+
useSticky(): [boolean];
|
|
38
|
+
FunctionContext: import("react").Context<{
|
|
39
|
+
scrollTo: (scrollTop: number | "100%") => void;
|
|
40
|
+
scrollToBottom: (option?: import("react-scroll-to-bottom").ScrollOption | undefined) => void;
|
|
41
|
+
scrollToEnd: (option?: import("react-scroll-to-bottom").ScrollOption | undefined) => void;
|
|
42
|
+
scrollToStart: (option?: import("react-scroll-to-bottom").ScrollOption | undefined) => void;
|
|
43
|
+
scrollToTop: (option?: import("react-scroll-to-bottom").ScrollOption | undefined) => void;
|
|
44
|
+
}>;
|
|
45
|
+
StateContext: import("react").Context<{
|
|
46
|
+
animating: boolean;
|
|
47
|
+
animatingToEnd: boolean;
|
|
48
|
+
atBottom: boolean;
|
|
49
|
+
atEnd: boolean;
|
|
50
|
+
atStart: boolean;
|
|
51
|
+
atTop: boolean;
|
|
52
|
+
mode: string;
|
|
53
|
+
sticky: boolean;
|
|
54
|
+
}>;
|
|
55
|
+
}>;
|
|
2
56
|
export default _default;
|