@streamscloud/embeddable 2.6.0 → 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.
|
@@ -20,7 +20,7 @@ export const toPriceRepresentation = (amount, currency, includeCurrency = true)
|
|
|
20
20
|
}
|
|
21
21
|
case Currency.Usd: {
|
|
22
22
|
const value = formatNumber(amount);
|
|
23
|
-
return includeCurrency ?
|
|
23
|
+
return includeCurrency ? `$ ${value}` : value;
|
|
24
24
|
}
|
|
25
25
|
default: {
|
|
26
26
|
Utils.assertUnreachable(currency);
|
|
@@ -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}>
|
|
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>
|
|
@@ -20,7 +20,7 @@ export declare class StreamPlayerLocalization {
|
|
|
20
20
|
streamPageViewerLocalization: IStreamPageViewerLocalization | Locale;
|
|
21
21
|
shortVideoAttachmentsLocalization: IShortVideoAttachmentsLocalization | Locale;
|
|
22
22
|
shortVideoDetailsLocalization: IShortVideoDetailsLocalization | Locale;
|
|
23
|
-
shortVideoViewerLocalization:
|
|
23
|
+
shortVideoViewerLocalization: IShortVideoViewerLocalization | Locale;
|
|
24
24
|
swipeIndicatorLocalization: ISwipeIndicatorLocalization | Locale;
|
|
25
25
|
constructor(init: IStreamPlayerLocalization | Locale);
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamscloud/embeddable",
|
|
3
|
-
"version": "2.6.
|
|
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",
|
|
13
14
|
"uad": "graphql-codegen --config codegen.yml && prettier --write src/**/*.generated.ts src/gql/*",
|
|
14
|
-
"uad-types-only": "graphql-codegen --config codegen.types-only.yml
|
|
15
|
+
"uad-types-only": "graphql-codegen --config codegen.types-only.yml && prettier --write src/gql/*",
|
|
15
16
|
"lint": "prettier --check --plugin prettier-plugin-svelte . && eslint .",
|
|
16
17
|
"lint-format": "prettier --write --plugin prettier-plugin-svelte . && eslint --fix .",
|
|
17
18
|
"format": "prettier --write --plugin prettier-plugin-svelte ."
|