@streamscloud/embeddable 2.6.1 → 2.6.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.
@@ -1,5 +1,6 @@
1
1
  <script lang="ts">var _a;
2
2
  import { toPriceRepresentation } from '../../../products/price-helper';
3
+ import { LineClamp } from '../../../ui/line-clamp';
3
4
  import { PriceStreamElementLocalization } from './price-stream-element-localization';
4
5
  import { default as StockElementView } from './cmp.stock-stream-element.svelte';
5
6
  import { mapFlexJustifyContent, mapFontFamily, mapFontWeight, transformColorValue, transformFontSizeValue, transformNumericValue } from '../styles-transformer';
@@ -91,7 +92,9 @@ const stockElementHeight = $derived(elementHeight * 0.23);
91
92
  </div>
92
93
  {/if}
93
94
  {#if model.textAfter}
94
- <div class="price-stream-element__text-after" style={textAfterCustomStyles}>{model.textAfter}</div>
95
+ <div class="price-stream-element__text-after" style={textAfterCustomStyles}>
96
+ <LineClamp value={model.textAfter} maxLines={1} />
97
+ </div>
95
98
  {/if}
96
99
  </div>
97
100
  {#if model.stock}
@@ -115,4 +118,7 @@ const stockElementHeight = $derived(elementHeight * 0.23);
115
118
  height: 100%;
116
119
  flex-direction: column;
117
120
  justify-content: space-between;
121
+ }
122
+ .price-stream-element__price, .price-stream-element__save, .price-stream-element__before-price {
123
+ white-space: nowrap;
118
124
  }</style>
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@streamscloud/embeddable",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "author": "StreamsCloud",
5
5
  "repository": "https://github.com/StreamsCloud/streamscloud-frontend-packages.git",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "dev": "vite dev --port 3010",
9
9
  "build": "svelte-package --tsconfig ./tsconfig.app.json && prettier --write --plugin prettier-plugin-svelte . && eslint --fix .",
10
+ "publish": "npm publish --access public",
10
11
  "pack": "npm run build && npm pack",
11
12
  "preview": "vite preview",
12
13
  "check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json",