@celljs/ta-3d 4.16.0 → 4.18.0
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/extension/index.mjs +1 -0
- package/package.json +4 -3
- package/web/index.js +6 -5
package/extension/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-3d",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.0",
|
|
4
4
|
"description": "A pi package for Ta: 3D scenes and models of replies, drawn by the 3D engine of the page and turned by dragging",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@celljs/ta-protocol": "4.
|
|
30
|
-
"@celljs/ta-web": "4.
|
|
29
|
+
"@celljs/ta-protocol": "4.18.0",
|
|
30
|
+
"@celljs/ta-web": "4.18.0",
|
|
31
31
|
"@types/react": "^19.3.0",
|
|
32
32
|
"@types/three": "^0.187.0"
|
|
33
33
|
},
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"web": [
|
|
52
52
|
"./web/index.js"
|
|
53
53
|
],
|
|
54
|
+
"shared": true,
|
|
54
55
|
"extensions": [
|
|
55
56
|
"./extension/index.mjs"
|
|
56
57
|
]
|
package/web/index.js
CHANGED
|
@@ -579,6 +579,7 @@ function sceneCard(pi) {
|
|
|
579
579
|
}
|
|
580
580
|
return function SceneBlock({ code, closed }) {
|
|
581
581
|
const words = SceneWords.of(pi.ui.language);
|
|
582
|
+
const Loading = pi.ui.Loading ?? pi.ui.Skeleton;
|
|
582
583
|
const read = React.useMemo(() => {
|
|
583
584
|
if (!closed) {
|
|
584
585
|
return;
|
|
@@ -591,10 +592,11 @@ function sceneCard(pi) {
|
|
|
591
592
|
}, [code, closed]);
|
|
592
593
|
if (!read) {
|
|
593
594
|
return /* @__PURE__ */ React.createElement("div", {
|
|
594
|
-
className: "t3d-card
|
|
595
|
-
}, /* @__PURE__ */ React.createElement(
|
|
596
|
-
|
|
597
|
-
|
|
595
|
+
className: "t3d-card"
|
|
596
|
+
}, /* @__PURE__ */ React.createElement(Loading, {
|
|
597
|
+
compact: true,
|
|
598
|
+
label: words.building
|
|
599
|
+
}));
|
|
598
600
|
}
|
|
599
601
|
if (!read.scene) {
|
|
600
602
|
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -633,7 +635,6 @@ var STYLE = `
|
|
|
633
635
|
.t3d-view:active { cursor: grabbing; }
|
|
634
636
|
.t3d-view > * { position: absolute; inset: 0; }
|
|
635
637
|
.t3d-hint, .t3d-failed { margin-top: 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale, 1)); }
|
|
636
|
-
.t3d-writing { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); }
|
|
637
638
|
`;
|
|
638
639
|
function injectStyle() {
|
|
639
640
|
const element = document.createElement("style");
|