@walkeros/explorer 2.1.1 → 2.1.3
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/AGENT.md +9 -0
- package/dist/chunk-52ELVFJE.mjs +573 -0
- package/dist/chunk-52ELVFJE.mjs.map +1 -0
- package/dist/components/atoms/code.d.ts +8 -2
- package/dist/components/atoms/code.d.ts.map +1 -1
- package/dist/components/atoms/code.js +58 -5
- package/dist/components/atoms/code.js.map +1 -1
- package/dist/components/molecules/code-box.d.ts.map +1 -1
- package/dist/components/molecules/code-box.js +28 -31
- package/dist/components/molecules/code-box.js.map +1 -1
- package/dist/components/molecules/preview.d.ts.map +1 -1
- package/dist/components/molecules/preview.js +3 -0
- package/dist/components/molecules/preview.js.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.mjs +177 -74
- package/dist/index.mjs.map +1 -1
- package/dist/{monaco-types-KN2DINPW.mjs → monaco-types-ZGWM2633.mjs} +2 -2
- package/dist/styles.css +47 -4
- package/dist/utils/monaco-json-schema.d.ts +21 -0
- package/dist/utils/monaco-json-schema.d.ts.map +1 -1
- package/dist/utils/monaco-json-schema.js +28 -3
- package/dist/utils/monaco-json-schema.js.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-4AJX6MFW.mjs +0 -573
- package/dist/chunk-4AJX6MFW.mjs.map +0 -1
- /package/dist/{monaco-types-KN2DINPW.mjs.map → monaco-types-ZGWM2633.mjs.map} +0 -0
package/AGENT.md
CHANGED
|
@@ -16,6 +16,15 @@ configuration.
|
|
|
16
16
|
|
|
17
17
|
- **ALWAYS import modules at the top of files** - Never use inline
|
|
18
18
|
`typeof import()` or dynamic `await import()`
|
|
19
|
+
- **Exception — `monaco-editor`**: Never import `monaco-editor` at runtime
|
|
20
|
+
(top-level or `require()`). Monaco accesses `window` at module evaluation
|
|
21
|
+
time, which crashes SSR. Instead:
|
|
22
|
+
- Use `useMonaco()` hook from `@monaco-editor/react` in components (returns
|
|
23
|
+
`null` during SSR, the CDN-loaded instance after load)
|
|
24
|
+
- For utility modules, accept the monaco instance as a parameter (see
|
|
25
|
+
`initMonacoJson()` in `monaco-json-schema.ts`)
|
|
26
|
+
- `import type` from `monaco-editor` is always safe (erased at compile time)
|
|
27
|
+
- `@monaco-editor/react` imports are always safe (SSR-aware internally)
|
|
19
28
|
- Use proper type imports: `import type { Monaco } from '@monaco-editor/react';`
|
|
20
29
|
|
|
21
30
|
## Development Commands
|