@sensiblestats/widget-react 0.145.0 → 0.145.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.145.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Keep an acca leg's swap button on the same row as its price and add-to-slip button on a narrow panel, and keep it beside the button while the added-to-slip note shows.
8
+
9
+ ## 0.145.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Builder copy: the swap note reads "No other game fits here." in every language, pt-PT names the acca "múltipla", and Turkish leg facts say "üst geldi" / "alt geldi".
14
+
3
15
  ## 0.145.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -263,7 +263,7 @@ var BUNDLED_EN_GB = {
263
263
  "widget.v8BuilderAnother": "Another combo",
264
264
  "widget.v8BuilderSwap": "Swap {leg}",
265
265
  "widget.v8BuilderSwapLeg": "{pair}, {market}",
266
- "widget.v8BuilderSwapNone": "No other game has a price for this slot.",
266
+ "widget.v8BuilderSwapNone": "No other game fits here.",
267
267
  "widget.v8BuilderLoading": "Loading\u2026",
268
268
  "widget.v8BuilderError": "Couldn't load this right now.",
269
269
  "widget.v8BuilderRetry": "Try again",
@@ -1378,7 +1378,7 @@ function parseCustomTotal(text2, format2) {
1378
1378
  }
1379
1379
 
1380
1380
  // src/version.generated.ts
1381
- var WIDGET_REACT_VERSION = "0.145.0";
1381
+ var WIDGET_REACT_VERSION = "0.145.2";
1382
1382
 
1383
1383
  // src/config.ts
1384
1384
  function hostTag(cfg) {
@@ -8478,26 +8478,28 @@ function ComboLegRow({ leg, addToSlipEnabled, ui, slip, monitor, hold, closed, s
8478
8478
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "ss-w-combo-leg-market", children: leg.market }),
8479
8479
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "ss-w-combo-leg-sel", children: leg.selection })
8480
8480
  ] }),
8481
- closed ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "ss-w-combo-leg-price", children: odds }),
8482
- closed ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
8483
- SlipButton,
8484
- {
8485
- selection,
8486
- marketDeveloperName: leg.marketDeveloperName || void 0,
8487
- selectionLabel: leg.selectionLabel,
8488
- line: leg.line,
8489
- slip,
8490
- ui,
8491
- ariaLabel: `${leg.homeTeamName} ${leg.awayTeamName}, ${leg.selection} ${odds}`,
8492
- hold
8493
- }
8494
- ),
8495
- swap ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("button", { type: "button", className: "ss-w-combo-leg-swap", "aria-label": swap.label, "aria-describedby": noteId, "data-focus": swap.focusKey, disabled: swap.disabled, onClick: swap.onSwap, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", children: [
8496
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { d: "M17 3l4 4-4 4" }),
8497
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { d: "M3 7h18" }),
8498
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { d: "M7 21l-4-4 4-4" }),
8499
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { d: "M21 17H3" })
8500
- ] }) }) : null
8481
+ closed && !swap ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "ss-w-combo-leg-act", children: [
8482
+ closed ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "ss-w-combo-leg-price", children: odds }),
8483
+ closed ? null : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
8484
+ SlipButton,
8485
+ {
8486
+ selection,
8487
+ marketDeveloperName: leg.marketDeveloperName || void 0,
8488
+ selectionLabel: leg.selectionLabel,
8489
+ line: leg.line,
8490
+ slip,
8491
+ ui,
8492
+ ariaLabel: `${leg.homeTeamName} ${leg.awayTeamName}, ${leg.selection} ${odds}`,
8493
+ hold
8494
+ }
8495
+ ),
8496
+ swap ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("button", { type: "button", className: "ss-w-combo-leg-swap", "aria-label": swap.label, "aria-describedby": noteId, "data-focus": swap.focusKey, disabled: swap.disabled, onClick: swap.onSwap, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", children: [
8497
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { d: "M17 3l4 4-4 4" }),
8498
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { d: "M3 7h18" }),
8499
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { d: "M7 21l-4-4 4-4" }),
8500
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { d: "M21 17H3" })
8501
+ ] }) }) : null
8502
+ ] })
8501
8503
  ] }),
8502
8504
  swap ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { id: noteId, className: "ss-w-combo-leg-swapnone", "data-kind": "swap-none", role: "status", children: swap.note ?? "" }) : null,
8503
8505
  line ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "ss-w-combo-leg-stat", children: line }) : null
@@ -19334,12 +19336,13 @@ var WIDGET_CSS = `.ss-w-root { all: revert; }
19334
19336
  .ss-w-combo-leg-what { flex: 1 1 7rem; min-width: min(100%, 7rem); display: flex; flex-direction: column; gap: 1px; }
19335
19337
  .ss-w-combo-leg-market { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); overflow-wrap: break-word; }
19336
19338
  .ss-w-combo-leg-sel { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); overflow-wrap: break-word; }
19339
+ .ss-w-combo-leg-act { flex: 0 0 auto; max-width: 100%; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 9px; }
19337
19340
  .ss-w-combo-leg-price { flex: none; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 800; line-height: 1.05; color: var(--ss-w-accent); }
19338
19341
  .ss-w-combo-leg-pick .ss-w-slip { display: contents; }
19339
19342
  .ss-w-combo-leg-pick .ss-w-slip-btn { flex: none; }
19340
19343
  .ss-w-combo-leg .ss-w-bi-team { white-space: normal; text-overflow: clip; overflow-wrap: break-word; line-height: 1.25; }
19341
- .ss-w-combo-leg-pick .ss-w-toast { position: static; flex-basis: 100%; width: auto; max-width: none; box-shadow: none; }
19342
- .ss-w-combo-leg-swap { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px; margin-left: auto; padding: 0; border: 1px solid var(--ss-w-line); border-radius: 50%; background: transparent; color: var(--ss-w-ink); cursor: pointer; }
19344
+ .ss-w-combo-leg-pick .ss-w-toast { position: static; order: 1; flex-basis: 100%; width: 0; max-width: none; box-shadow: none; }
19345
+ .ss-w-combo-leg-swap { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px; padding: 0; border: 1px solid var(--ss-w-line); border-radius: 50%; background: transparent; color: var(--ss-w-ink); cursor: pointer; }
19343
19346
  .ss-w-combo-leg-swap:hover:not(:disabled) { border-color: var(--ss-w-accent); }
19344
19347
  .ss-w-combo-leg-swap:disabled { cursor: default; opacity: .4; }
19345
19348
  .ss-w-combo-leg-swapnone { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ss-w-faint); }