@streamscloud/kit 0.2.15 → 0.2.17
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.
|
@@ -54,6 +54,9 @@ export class HtmlHelper {
|
|
|
54
54
|
element.focus();
|
|
55
55
|
}
|
|
56
56
|
static sanitizeSvg(svg) {
|
|
57
|
+
if (typeof window === 'undefined') {
|
|
58
|
+
return svg;
|
|
59
|
+
}
|
|
57
60
|
return dp.sanitize(svg, { USE_PROFILES: { svg: true, svgFilters: true }, ADD_ATTR: ['dominant-baseline'] });
|
|
58
61
|
}
|
|
59
62
|
static sanitizeHtml(html) {
|
|
@@ -45,7 +45,7 @@ const onLoadMore = async () => {
|
|
|
45
45
|
</script>
|
|
46
46
|
|
|
47
47
|
<div class="infinite-scrolling">
|
|
48
|
-
<div bind:this={itemsContainer}>
|
|
48
|
+
<div class="infinite-scrolling__items" bind:this={itemsContainer}>
|
|
49
49
|
{@render children()}
|
|
50
50
|
</div>
|
|
51
51
|
|
|
@@ -68,16 +68,28 @@ Triggers an async `loadMore` callback when a sentinel element scrolls into view,
|
|
|
68
68
|
### CSS Custom Properties
|
|
69
69
|
| Property | Description | Default |
|
|
70
70
|
|---|---|---|
|
|
71
|
+
| `--sc-kit--infinite-scrolling--display` | Display mode for root and items container | `block` |
|
|
72
|
+
| `--sc-kit--infinite-scrolling--flex` | Flex shorthand for root and items container | `initial` |
|
|
71
73
|
| `--sc-kit--infinite-scrolling--overflow-y` | Vertical overflow behavior | `initial` |
|
|
72
74
|
-->
|
|
73
75
|
|
|
74
76
|
<style>.infinite-scrolling {
|
|
77
|
+
--_infinite-scrolling--display: var(--sc-kit--infinite-scrolling--display, block);
|
|
78
|
+
--_infinite-scrolling--flex: var(--sc-kit--infinite-scrolling--flex, initial);
|
|
75
79
|
--_infinite-scrolling--overflow-y: var(--sc-kit--infinite-scrolling--overflow-y, initial);
|
|
80
|
+
display: var(--_infinite-scrolling--display);
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
flex: var(--_infinite-scrolling--flex);
|
|
76
83
|
overflow-y: var(--_infinite-scrolling--overflow-y);
|
|
77
84
|
min-height: 2.625em;
|
|
78
85
|
position: relative;
|
|
79
86
|
width: 100%;
|
|
80
87
|
}
|
|
88
|
+
.infinite-scrolling__items {
|
|
89
|
+
display: var(--_infinite-scrolling--display);
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
flex: var(--_infinite-scrolling--flex);
|
|
92
|
+
}
|
|
81
93
|
.infinite-scrolling__pagination-trigger {
|
|
82
94
|
border: 1px solid transparent;
|
|
83
95
|
}
|
|
@@ -16,6 +16,8 @@ type Props = {
|
|
|
16
16
|
* ### CSS Custom Properties
|
|
17
17
|
* | Property | Description | Default |
|
|
18
18
|
* |---|---|---|
|
|
19
|
+
* | `--sc-kit--infinite-scrolling--display` | Display mode for root and items container | `block` |
|
|
20
|
+
* | `--sc-kit--infinite-scrolling--flex` | Flex shorthand for root and items container | `initial` |
|
|
19
21
|
* | `--sc-kit--infinite-scrolling--overflow-y` | Vertical overflow behavior | `initial` |
|
|
20
22
|
*/
|
|
21
23
|
declare const Cmp: import("svelte").Component<Props, {}, "">;
|