@illuma-ai/codeviz 1.0.11 → 1.0.18

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.
@@ -1,5 +1,19 @@
1
1
  import { ImportMap, PreviewTemplate } from './types';
2
2
 
3
+ /**
4
+ * Deduplicate ES module imports: merge all import declarations targeting the
5
+ * same module specifier into a single declaration. Handles:
6
+ * - default imports: `import React from 'react'`
7
+ * - named imports: `import { useState, useMemo } from 'react'`
8
+ * - combined: `import React, { useState } from 'react'`
9
+ * - aliased: `import { jsxDEV as _jsxDEV } from 'react/...'`
10
+ * - namespace: `import * as R from 'react'`
11
+ * - side-effect: `import 'some-polyfill'`
12
+ *
13
+ * Also strips duplicate `const`/`function` declarations that collide with
14
+ * preamble-provided names (cn, DataTable, MetricCard, etc.).
15
+ */
16
+ export declare function deduplicateESMImports(code: string, preambleNames?: ReadonlySet<string>): string;
3
17
  /**
4
18
  * Generate the srcdoc HTML for the preview iframe.
5
19
  *
@@ -1 +1 @@
1
- {"version":3,"file":"previewTemplate.d.ts","sourceRoot":"","sources":["../src/previewTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAK1D;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,MAAM,CAgET"}
1
+ {"version":3,"file":"previewTemplate.d.ts","sourceRoot":"","sources":["../src/previewTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkC1D;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,aAAa,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAClC,MAAM,CA0GR;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,MAAM,CAgET"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@illuma-ai/codeviz",
3
- "version": "1.0.11",
3
+ "version": "1.0.18",
4
4
  "description": "Multi-format code & content preview — Monaco editor, live React/HTML/Markdown/SVG/CSV/JSON rendering, streaming API, zoom/pan, download",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",