@blocklet/pages-kit 0.2.267 → 0.2.269

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.
@@ -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 = Promise.resolve().then(() => __importStar(require('react-scroll-to-bottom')));
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,8 @@
1
- export default import('react-scroll-to-bottom');
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,56 @@
1
- declare const _default: Promise<typeof import("react-scroll-to-bottom")>;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit",
3
- "version": "0.2.267",
3
+ "version": "0.2.269",
4
4
  "description": "Pages Kit components and utils",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -93,7 +93,7 @@
93
93
  "prepare": "npm run build"
94
94
  },
95
95
  "dependencies": {
96
- "@arcblock/did-connect": "^2.9.52",
96
+ "@arcblock/did-connect": "^2.9.58",
97
97
  "@blocklet/ai-kit": "^0.1.24",
98
98
  "@blocklet/sdk": "^1.16.24",
99
99
  "@iconify/react": "^4.1.1",
@@ -109,8 +109,8 @@
109
109
  "react-markdown": "^9.0.1",
110
110
  "react-scroll-to-bottom": "^4.2.0",
111
111
  "react-wrap-balancer": "^1.1.0",
112
- "typescript": "^5.4.2",
113
- "ufo": "^1.5.1",
112
+ "typescript": "^5.4.3",
113
+ "ufo": "^1.5.3",
114
114
  "zustand": "^4.5.2"
115
115
  },
116
116
  "peerDependencies": {
@@ -127,17 +127,17 @@
127
127
  "react-router-dom": "^6.16.0"
128
128
  },
129
129
  "devDependencies": {
130
- "@arcblock/ux": "^2.9.52",
130
+ "@arcblock/ux": "^2.9.58",
131
131
  "@emotion/cache": "^11.11.0",
132
132
  "@emotion/css": "^11.11.2",
133
133
  "@emotion/react": "^11.11.4",
134
- "@mui/icons-material": "^5.15.13",
135
- "@mui/lab": "^5.0.0-alpha.168",
136
- "@mui/material": "^5.15.13",
134
+ "@mui/icons-material": "^5.15.14",
135
+ "@mui/lab": "^5.0.0-alpha.169",
136
+ "@mui/material": "^5.15.14",
137
137
  "@types/lodash": "^4.17.0",
138
138
  "@types/mustache": "^4.2.5",
139
139
  "@types/node-fetch": "^2.6.11",
140
- "@types/react": "^18.2.66",
140
+ "@types/react": "^18.2.67",
141
141
  "@types/react-scroll-to-bottom": "^4.2.5",
142
142
  "axios": "^1.6.8",
143
143
  "npm-run-all": "^4.1.5",