@walkeros/explorer 2.1.1 → 2.1.2

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 CHANGED
@@ -16,6 +16,11 @@ 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`**: Use lazy `require()` accessors (cached in a
20
+ module variable) instead of top-level imports. Monaco accesses `window` at
21
+ module evaluation time, which crashes SSR. See `monaco-json-schema.ts` and
22
+ `code-box.tsx` for the pattern. `@monaco-editor/react` and `import type` from
23
+ `monaco-editor` are both SSR-safe.
19
24
  - Use proper type imports: `import type { Monaco } from '@monaco-editor/react';`
20
25
 
21
26
  ## Development Commands
@@ -1,4 +1,10 @@
1
1
  "use client"
2
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
3
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
4
+ }) : x)(function(x) {
5
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
+ throw Error('Dynamic require of "' + x + '" is not supported');
7
+ });
2
8
 
3
9
  // src/utils/monaco-context-types.ts
4
10
  var FN_CONTEXT_TYPES = `
@@ -555,6 +561,7 @@ function clearAllTypeLibraries() {
555
561
  }
556
562
 
557
563
  export {
564
+ __require,
558
565
  configureMonacoTypeScript,
559
566
  addTypeLibrary,
560
567
  removeTypeLibrary,
@@ -570,4 +577,4 @@ export {
570
577
  getLoadedTypeLibraries,
571
578
  clearAllTypeLibraries
572
579
  };
573
- //# sourceMappingURL=chunk-4AJX6MFW.mjs.map
580
+ //# sourceMappingURL=chunk-3TPAJIVM.mjs.map