@blocklet/pages-kit 0.6.39 → 0.6.41
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/session.js +2 -2
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/inject-global-components-dump-json.js +5 -5
- package/lib/esm/builtin/session.js +2 -2
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/inject-global-components-dump-json.js +5 -5
- package/lib/types/builtin/session.d.ts +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
|
@@ -492,7 +492,7 @@ export default function Counter() {
|
|
|
492
492
|
code: `
|
|
493
493
|
import { create } from '@blocklet/pages-kit/builtin/zustand';
|
|
494
494
|
import { immer } from '@blocklet/pages-kit/builtin/zustand/middleware/immer';
|
|
495
|
-
|
|
495
|
+
|
|
496
496
|
export interface GlobalLoadingState {
|
|
497
497
|
loading: boolean;
|
|
498
498
|
count: number;
|
|
@@ -758,12 +758,12 @@ export class EventSourceParserStream<T> extends TransformStream<any, T> {
|
|
|
758
758
|
// '@blocklet/pages-kit/builtin/session'
|
|
759
759
|
{
|
|
760
760
|
name: '@blocklet/pages-kit/builtin/session',
|
|
761
|
-
description: 'A session component for pages-kit builtin package, use to manage user session, export from @arcblock/did-connect/lib/Session',
|
|
761
|
+
description: 'A session component for pages-kit builtin package, use to manage user session, export from @arcblock/did-connect-react/lib/Session',
|
|
762
762
|
docs: {
|
|
763
763
|
components: ['useSessionContext'],
|
|
764
764
|
import: "import * as authSession from '@blocklet/pages-kit/builtin/session'",
|
|
765
765
|
export: `
|
|
766
|
-
import { SessionContext } from '@arcblock/did-connect/lib/Session';
|
|
766
|
+
import { SessionContext } from '@arcblock/did-connect-react/lib/Session';
|
|
767
767
|
import { useContext } from 'react';
|
|
768
768
|
|
|
769
769
|
export function useSessionContext(): {
|
|
@@ -774,7 +774,7 @@ export function useSessionContext(): {
|
|
|
774
774
|
};
|
|
775
775
|
} {
|
|
776
776
|
return useContext(SessionContext);
|
|
777
|
-
}
|
|
777
|
+
}
|
|
778
778
|
`,
|
|
779
779
|
examples: [
|
|
780
780
|
{
|
|
@@ -1090,7 +1090,7 @@ export { default as PhotoGalleryItem } from './runtime-components/PhotoGalleryIt
|
|
|
1090
1090
|
import { CustomComponentRenderer } from '@blocklet/pages-kit/builtin/pages-kit';
|
|
1091
1091
|
|
|
1092
1092
|
export default function LocalCustomComponentRendererDemo({ code }) {
|
|
1093
|
-
return (
|
|
1093
|
+
return (
|
|
1094
1094
|
<CustomComponentRenderer
|
|
1095
1095
|
componentId="mock-dev-component"
|
|
1096
1096
|
dev={{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SessionContext } from '@arcblock/did-connect/lib/Session';
|
|
1
|
+
import { SessionContext } from '@arcblock/did-connect-react/lib/Session';
|
|
2
2
|
import { useContext } from 'react';
|
|
3
|
-
export * from '@arcblock/did-connect/lib/Session';
|
|
3
|
+
export * from '@arcblock/did-connect-react/lib/Session';
|
|
4
4
|
export function useSessionContext() {
|
|
5
5
|
return useContext(SessionContext);
|
|
6
6
|
}
|