@illuma-ai/codeviz 1.0.0 → 1.0.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.
Files changed (45) hide show
  1. package/dist/CodeViz.d.ts +1 -1
  2. package/dist/CodeViz.d.ts.map +1 -1
  3. package/dist/ErrorPanel.d.ts +16 -0
  4. package/dist/ErrorPanel.d.ts.map +1 -0
  5. package/dist/PreviewPane.d.ts.map +1 -1
  6. package/dist/StatusBar.d.ts +8 -1
  7. package/dist/StatusBar.d.ts.map +1 -1
  8. package/dist/Toolbar.d.ts +16 -6
  9. package/dist/Toolbar.d.ts.map +1 -1
  10. package/dist/__tests__/transpiler-scenarios.test.d.ts +2 -0
  11. package/dist/__tests__/transpiler-scenarios.test.d.ts.map +1 -0
  12. package/dist/__tests__/transpiler.test.d.ts +2 -0
  13. package/dist/__tests__/transpiler.test.d.ts.map +1 -0
  14. package/dist/__tests__/ui-components.test.d.ts +2 -0
  15. package/dist/__tests__/ui-components.test.d.ts.map +1 -0
  16. package/dist/__tests__/utils.test.d.ts +2 -0
  17. package/dist/__tests__/utils.test.d.ts.map +1 -0
  18. package/dist/agentContext.d.ts +19 -1
  19. package/dist/agentContext.d.ts.map +1 -1
  20. package/dist/constants.d.ts +11 -0
  21. package/dist/constants.d.ts.map +1 -0
  22. package/dist/importMap.d.ts.map +1 -1
  23. package/dist/index.cjs +860 -769
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.ts +7 -2
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +9671 -5428
  28. package/dist/index.js.map +1 -1
  29. package/dist/previewTemplate.d.ts +4 -0
  30. package/dist/previewTemplate.d.ts.map +1 -1
  31. package/dist/templates.d.ts +23 -12
  32. package/dist/templates.d.ts.map +1 -1
  33. package/dist/transpiler.d.ts +26 -4
  34. package/dist/transpiler.d.ts.map +1 -1
  35. package/dist/types.d.ts +26 -4
  36. package/dist/types.d.ts.map +1 -1
  37. package/dist/ui/components.d.ts +21 -0
  38. package/dist/ui/components.d.ts.map +1 -0
  39. package/dist/ui/index.d.ts +9 -0
  40. package/dist/ui/index.d.ts.map +1 -0
  41. package/dist/ui/theme.d.ts +14 -0
  42. package/dist/ui/theme.d.ts.map +1 -0
  43. package/dist/utils.d.ts +17 -0
  44. package/dist/utils.d.ts.map +1 -0
  45. package/package.json +8 -3
package/dist/index.d.ts CHANGED
@@ -4,16 +4,21 @@ export { PreviewPane } from './PreviewPane';
4
4
  export { Loader } from './Loader';
5
5
  export { Toolbar } from './Toolbar';
6
6
  export { StatusBar } from './StatusBar';
7
- export { templates, getTemplate, getTemplateIds, getTemplateSummary, pickTemplate } from './templates';
7
+ export { ErrorPanel } from './ErrorPanel';
8
+ export type { ErrorPanelProps } from './ErrorPanel';
9
+ export { templates, registerTemplate, registerTemplates, unregisterTemplate, clearTemplates, getTemplate, getTemplateIds, getTemplates, getTemplateSummary, pickTemplate, } from './templates';
8
10
  export type { Template } from './templates';
9
11
  export { getRenderableTypes, getAgentSystemPrompt, RENDERABLE_TYPES, } from './agentContext';
10
12
  export type { RenderableType } from './agentContext';
13
+ export { PREVIEW_TEMPLATES, TIMINGS, SPLIT_BREAKPOINT } from './constants';
14
+ export { hasPreviewSupport, inferTemplate, buildDownload } from './utils';
11
15
  export { transpile, transpileFiles } from './transpiler';
12
16
  export { buildImportMap, importMapToScript, getAvailablePackages } from './importMap';
13
17
  export { buildPreviewHtml } from './previewTemplate';
18
+ export { BANKING_THEME_CSS, BUILTIN_COMPONENTS_TSX, BUILTIN_COMPONENT_NAMES } from './ui';
14
19
  export type { CodeVizProps, CodeVizHandle, PreviewTemplate, ImportMap, PreviewError, PreviewErrorCategory, PreviewErrorSeverity, IframeMessage, } from './types';
15
20
  export type { EditorPaneProps } from './EditorPane';
16
21
  export type { PreviewPaneProps } from './PreviewPane';
17
- export type { TranspileResult } from './transpiler';
22
+ export type { TranspileResult, SectionMarker } from './transpiler';
18
23
  export type { ViewMode } from './Toolbar';
19
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACvG,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGrD,YAAY,EACV,YAAY,EACZ,aAAa,EACb,eAAe,EACf,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRo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