@modern-js/main-doc 0.0.0-nightly-20240611170659 → 0.0.0-nightly-20240613170702

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.
@@ -455,8 +455,8 @@ export const init = (context: RuntimeContext) => {
455
455
  import { useRuntimeContext } from '@modern-js/runtime';
456
456
 
457
457
  export default () => {
458
- const { context } = useRuntimeContext();
459
- const { message } = context.getInitData();
458
+ const context = useRuntimeContext();
459
+ const { message } = context.initialData;
460
460
 
461
461
  return <div>{message}</div>;
462
462
  };
@@ -460,8 +460,8 @@ export const init = (context: RuntimeContext) => {
460
460
  import { useRuntimeContext } from '@modern-js/runtime';
461
461
 
462
462
  export default () => {
463
- const { context } = useRuntimeContext();
464
- const { message } = context.getInitData();
463
+ const context = useRuntimeContext();
464
+ const { message } = context.initialData;
465
465
 
466
466
  return <div>{message}</div>;
467
467
  };
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240611170659",
18
+ "version": "0.0.0-nightly-20240613170702",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public",
22
22
  "provenance": true
23
23
  },
24
24
  "dependencies": {
25
- "@modern-js/sandpack-react": "0.0.0-nightly-20240611170659"
25
+ "@modern-js/sandpack-react": "0.0.0-nightly-20240613170702"
26
26
  },
27
27
  "peerDependencies": {
28
- "@modern-js/builder-doc": "0.0.0-nightly-20240611170659"
28
+ "@modern-js/builder-doc": "0.0.0-nightly-20240613170702"
29
29
  },
30
30
  "devDependencies": {
31
31
  "classnames": "^2",
@@ -39,8 +39,8 @@
39
39
  "@rspress/shared": "1.18.2",
40
40
  "@types/node": "^16",
41
41
  "@types/fs-extra": "9.0.13",
42
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20240611170659",
43
- "@modern-js/builder-doc": "0.0.0-nightly-20240611170659"
42
+ "@modern-js/builder-doc": "0.0.0-nightly-20240613170702",
43
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20240613170702"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "rspress dev",