@sensiblestats/widget-react 0.34.0 → 0.35.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/CHANGELOG.md +6 -0
- package/dist/index.cjs +1 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.35.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0e4d098: Remove the "Powered by SensibleStats" attribution footer and the `attribution` config option. The footer no longer renders and `attribution` / `data-attribution` are no longer read.
|
|
8
|
+
|
|
3
9
|
## 0.34.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -207,7 +207,6 @@ function normalizeUi(cfg) {
|
|
|
207
207
|
cta: cfg.cta,
|
|
208
208
|
surface: cfg.surface,
|
|
209
209
|
ink: cfg.ink,
|
|
210
|
-
attribution: cfg.attribution ?? true,
|
|
211
210
|
position: cfg.position ?? "right",
|
|
212
211
|
offset: { x: cfg.offset?.x ?? 20, y: cfg.offset?.y ?? 20 },
|
|
213
212
|
radius: cfg.radius ?? 16,
|
|
@@ -3098,8 +3097,7 @@ function ChatPanel({ controller, ui, slip, onDashboardTap, monitor }) {
|
|
|
3098
3097
|
),
|
|
3099
3098
|
monitor && monitor.activeTab === "matches" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MatchesPanel, { monitor, ui, slip }),
|
|
3100
3099
|
monitor && monitor.activeTab === "odds" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(OddsPanel, { monitor, ui, slip }),
|
|
3101
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ChatInput, { placeholder: ui.placeholder, streaming: state.isStreaming, onSend: handleSend, onStop: stop, stopLabel: ui.stopResponse, sendLabel: ui.sendMessage })
|
|
3102
|
-
ui.attribution !== false ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "ss-w-attribution", children: "Powered by SensibleStats" }) : null
|
|
3100
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ChatInput, { placeholder: ui.placeholder, streaming: state.isStreaming, onSend: handleSend, onStop: stop, stopLabel: ui.stopResponse, sendLabel: ui.sendMessage })
|
|
3103
3101
|
] });
|
|
3104
3102
|
}
|
|
3105
3103
|
|
|
@@ -3387,7 +3385,6 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
|
|
|
3387
3385
|
}
|
|
3388
3386
|
.ss-w-send { width: 36px; height: 36px; flex: none; border: none; border-radius: 50%; background: var(--ss-w-accent); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 16px; }
|
|
3389
3387
|
.ss-w-stop-glyph { width: 11px; height: 11px; background: currentColor; border-radius: 2px; }
|
|
3390
|
-
.ss-w-attribution { flex: 0 0 auto; padding: 6px 12px 8px; text-align: center; font-size: 11px; color: var(--ss-w-faint); }
|
|
3391
3388
|
|
|
3392
3389
|
/* add to slip */
|
|
3393
3390
|
.ss-w-slip { position: relative; display: flex; }
|