@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
|
@@ -490,7 +490,7 @@ export default function Counter() {
|
|
|
490
490
|
code: `
|
|
491
491
|
import { create } from '@blocklet/pages-kit/builtin/zustand';
|
|
492
492
|
import { immer } from '@blocklet/pages-kit/builtin/zustand/middleware/immer';
|
|
493
|
-
|
|
493
|
+
|
|
494
494
|
export interface GlobalLoadingState {
|
|
495
495
|
loading: boolean;
|
|
496
496
|
count: number;
|
|
@@ -756,12 +756,12 @@ export class EventSourceParserStream<T> extends TransformStream<any, T> {
|
|
|
756
756
|
// '@blocklet/pages-kit/builtin/session'
|
|
757
757
|
{
|
|
758
758
|
name: '@blocklet/pages-kit/builtin/session',
|
|
759
|
-
description: 'A session component for pages-kit builtin package, use to manage user session, export from @arcblock/did-connect/lib/Session',
|
|
759
|
+
description: 'A session component for pages-kit builtin package, use to manage user session, export from @arcblock/did-connect-react/lib/Session',
|
|
760
760
|
docs: {
|
|
761
761
|
components: ['useSessionContext'],
|
|
762
762
|
import: "import * as authSession from '@blocklet/pages-kit/builtin/session'",
|
|
763
763
|
export: `
|
|
764
|
-
import { SessionContext } from '@arcblock/did-connect/lib/Session';
|
|
764
|
+
import { SessionContext } from '@arcblock/did-connect-react/lib/Session';
|
|
765
765
|
import { useContext } from 'react';
|
|
766
766
|
|
|
767
767
|
export function useSessionContext(): {
|
|
@@ -772,7 +772,7 @@ export function useSessionContext(): {
|
|
|
772
772
|
};
|
|
773
773
|
} {
|
|
774
774
|
return useContext(SessionContext);
|
|
775
|
-
}
|
|
775
|
+
}
|
|
776
776
|
`,
|
|
777
777
|
examples: [
|
|
778
778
|
{
|
|
@@ -1088,7 +1088,7 @@ export { default as PhotoGalleryItem } from './runtime-components/PhotoGalleryIt
|
|
|
1088
1088
|
import { CustomComponentRenderer } from '@blocklet/pages-kit/builtin/pages-kit';
|
|
1089
1089
|
|
|
1090
1090
|
export default function LocalCustomComponentRendererDemo({ code }) {
|
|
1091
|
-
return (
|
|
1091
|
+
return (
|
|
1092
1092
|
<CustomComponentRenderer
|
|
1093
1093
|
componentId="mock-dev-component"
|
|
1094
1094
|
dev={{
|