@ifc-lite/viewer 1.14.1 → 1.14.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.
Files changed (90) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/assets/{Arrow.dom-HLSMJR_v.js → Arrow.dom-BgkZDIQm.js} +1 -1
  3. package/dist/assets/basketViewActivator-h_M3YbMW.js +1 -0
  4. package/dist/assets/{browser-Ch0OnmZN.js → browser-CRQ0bPh1.js} +1 -1
  5. package/dist/assets/ifc-lite_bg-DyBKoGgk.wasm +0 -0
  6. package/dist/assets/{index-DJbbSLF9.js → index-Be6XjVeM.js} +94767 -83465
  7. package/dist/assets/index-C4VVJRL-.js +229 -0
  8. package/dist/assets/index-DdwD4c-E.css +1 -0
  9. package/dist/assets/{native-bridge-BzC7HkDs.js → native-bridge-DtcJqlOi.js} +1 -1
  10. package/dist/assets/{wasm-bridge-B_7dPwOa.js → wasm-bridge-BJJVu9P2.js} +1 -1
  11. package/dist/index.html +2 -2
  12. package/package.json +21 -20
  13. package/src/App.tsx +17 -1
  14. package/src/components/viewer/AxisHelper.tsx +57 -2
  15. package/src/components/viewer/BasketPresentationDock.tsx +8 -4
  16. package/src/components/viewer/BulkPropertyEditor.tsx +3 -14
  17. package/src/components/viewer/ChatPanel.tsx +1402 -0
  18. package/src/components/viewer/CodeEditor.tsx +70 -4
  19. package/src/components/viewer/DataConnector.tsx +3 -14
  20. package/src/components/viewer/ExportChangesButton.tsx +3 -14
  21. package/src/components/viewer/ExportDialog.tsx +3 -14
  22. package/src/components/viewer/HierarchyPanel.tsx +68 -11
  23. package/src/components/viewer/MainToolbar.tsx +1 -1
  24. package/src/components/viewer/PropertiesPanel.tsx +245 -77
  25. package/src/components/viewer/PropertyEditor.tsx +80 -18
  26. package/src/components/viewer/ScriptPanel.tsx +351 -184
  27. package/src/components/viewer/UpgradePage.tsx +69 -0
  28. package/src/components/viewer/ViewerLayout.tsx +2 -2
  29. package/src/components/viewer/Viewport.tsx +23 -0
  30. package/src/components/viewer/ViewportOverlays.tsx +7 -6
  31. package/src/components/viewer/chat/ChatMessage.tsx +144 -0
  32. package/src/components/viewer/chat/ExecutableCodeBlock.tsx +416 -0
  33. package/src/components/viewer/chat/ModelSelector.tsx +102 -0
  34. package/src/components/viewer/chat/renderTextContent.test.ts +23 -0
  35. package/src/components/viewer/chat/renderTextContent.ts +19 -0
  36. package/src/components/viewer/hierarchy/HierarchyNode.tsx +1 -0
  37. package/src/components/viewer/hierarchy/treeDataBuilder.ts +153 -1
  38. package/src/components/viewer/hierarchy/types.ts +3 -0
  39. package/src/components/viewer/hierarchy/useHierarchyTree.ts +7 -3
  40. package/src/components/viewer/properties/PropertySetCard.tsx +20 -4
  41. package/src/components/viewer/properties/encodingUtils.ts +2 -0
  42. package/src/hooks/useIfcCache.ts +1 -2
  43. package/src/hooks/useSandbox.ts +122 -6
  44. package/src/index.css +106 -0
  45. package/src/lib/attachments.ts +46 -0
  46. package/src/lib/llm/ClerkChatSync.tsx +74 -0
  47. package/src/lib/llm/clerk-auth.ts +62 -0
  48. package/src/lib/llm/code-extractor.ts +50 -0
  49. package/src/lib/llm/context-builder.test.ts +18 -0
  50. package/src/lib/llm/context-builder.ts +305 -0
  51. package/src/lib/llm/free-models.test.ts +118 -0
  52. package/src/lib/llm/message-capabilities.test.ts +131 -0
  53. package/src/lib/llm/message-capabilities.ts +94 -0
  54. package/src/lib/llm/models.ts +197 -0
  55. package/src/lib/llm/repair-loop.test.ts +91 -0
  56. package/src/lib/llm/repair-loop.ts +76 -0
  57. package/src/lib/llm/script-diagnostics.ts +445 -0
  58. package/src/lib/llm/script-edit-ops.test.ts +399 -0
  59. package/src/lib/llm/script-edit-ops.ts +954 -0
  60. package/src/lib/llm/script-preflight.test.ts +513 -0
  61. package/src/lib/llm/script-preflight.ts +990 -0
  62. package/src/lib/llm/script-preservation.test.ts +128 -0
  63. package/src/lib/llm/script-preservation.ts +152 -0
  64. package/src/lib/llm/stream-client.test.ts +97 -0
  65. package/src/lib/llm/stream-client.ts +410 -0
  66. package/src/lib/llm/system-prompt.test.ts +181 -0
  67. package/src/lib/llm/system-prompt.ts +665 -0
  68. package/src/lib/llm/types.ts +150 -0
  69. package/src/lib/scripts/templates/bim-globals.d.ts +226 -7
  70. package/src/lib/scripts/templates/create-building.ts +12 -12
  71. package/src/main.tsx +10 -1
  72. package/src/sdk/adapters/export-adapter.test.ts +24 -0
  73. package/src/sdk/adapters/export-adapter.ts +40 -16
  74. package/src/sdk/adapters/files-adapter.ts +39 -0
  75. package/src/sdk/adapters/model-compat.ts +1 -1
  76. package/src/sdk/adapters/mutate-adapter.ts +20 -6
  77. package/src/sdk/adapters/mutation-view.ts +112 -0
  78. package/src/sdk/adapters/query-adapter.ts +100 -4
  79. package/src/sdk/local-backend.ts +4 -0
  80. package/src/store/index.ts +15 -1
  81. package/src/store/slices/chatSlice.test.ts +325 -0
  82. package/src/store/slices/chatSlice.ts +468 -0
  83. package/src/store/slices/scriptSlice.test.ts +75 -0
  84. package/src/store/slices/scriptSlice.ts +256 -9
  85. package/src/utils/configureMutationView.ts +37 -0
  86. package/src/vite-env.d.ts +10 -0
  87. package/vite.config.ts +21 -2
  88. package/dist/assets/ifc-lite_bg-BOvNXJA_.wasm +0 -0
  89. package/dist/assets/index-JPFMj8C9.js +0 -216
  90. package/dist/assets/index-Qp8stcGO.css +0 -1

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.