@celljs/ta-plot 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.
@@ -1,4 +1,5 @@
1
1
  // ../ta-protocol/esm/common/ta-extension-host.js
2
+ var TA_WEBHOOK_MAX_BYTES = 256 * 1024;
2
3
  var TA_HOST_EVENT = "ta:host";
3
4
  var TaHostUtil;
4
5
  (function(TaHostUtil2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-plot",
3
- "version": "4.16.0",
3
+ "version": "4.18.0",
4
4
  "description": "A pi package for Ta: functions and curves of replies drawn as animated plots, with params to drag",
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.16.0",
30
- "@celljs/ta-web": "4.16.0",
29
+ "@celljs/ta-protocol": "4.18.0",
30
+ "@celljs/ta-web": "4.18.0",
31
31
  "@types/react": "^19.3.0"
32
32
  },
33
33
  "publishConfig": {
@@ -50,6 +50,7 @@
50
50
  "web": [
51
51
  "./web/index.js"
52
52
  ],
53
+ "shared": true,
53
54
  "extensions": [
54
55
  "./extension/index.mjs"
55
56
  ]
package/web/index.js CHANGED
@@ -1225,6 +1225,7 @@ function plotView(pi) {
1225
1225
  }
1226
1226
  return function PlotBlock({ code, closed }) {
1227
1227
  const words = PlotWords.of(pi.ui.language);
1228
+ const Loading = pi.ui.Loading ?? pi.ui.Skeleton;
1228
1229
  const read = React.useMemo(() => {
1229
1230
  if (!closed) {
1230
1231
  return;
@@ -1237,10 +1238,11 @@ function plotView(pi) {
1237
1238
  }, [code, closed]);
1238
1239
  if (!read) {
1239
1240
  return /* @__PURE__ */ React.createElement("div", {
1240
- className: "tpl-card tpl-writing"
1241
- }, /* @__PURE__ */ React.createElement("span", {
1242
- className: "ta-spinner"
1243
- }), /* @__PURE__ */ React.createElement("span", null, words.drawing));
1241
+ className: "tpl-card"
1242
+ }, /* @__PURE__ */ React.createElement(Loading, {
1243
+ compact: true,
1244
+ label: words.drawing
1245
+ }));
1244
1246
  }
1245
1247
  if (!read.plot) {
1246
1248
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", {
@@ -1289,7 +1291,6 @@ var STYLE = `
1289
1291
  .tpl-line { width: 14px; height: 0; border-top: 3px solid; border-radius: 2px; }
1290
1292
  .tpl-line[data-dash] { border-top-width: 2px; border-top-style: dashed; }
1291
1293
  .tpl-live { font-variant-numeric: tabular-nums; color: var(--ta-muted); }
1292
- .tpl-writing { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); }
1293
1294
  .tpl-failed { margin-bottom: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale, 1)); }
1294
1295
  `;
1295
1296
  function injectStyle() {