@snack-uikit/list 0.27.8-preview-352c392a.0 → 0.27.8-preview-a01e5edb.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/README.md CHANGED
@@ -87,7 +87,6 @@
87
87
  | untouchableScrollbars | `boolean` | - | Отключает возможность взаимодействовать со скролбарами мышью. |
88
88
  | barHideStrategy | enum BarHideStrategy: `"scroll"`, `"move"`, `"never"`, `"leave"` | - | Управление скрытием скролл баров: <br> - `Never` - показывать всегда <br> - `Leave` - скрывать когда курсор покидает компонент <br> - `Scroll` - показывать только когда происходит скроллинг <br> - `Move` - показывать при движении курсора над компонентом |
89
89
  | onScroll | `(event?: Event) => void` | - | Колбек на скролл прокручиваемого списка |
90
- | nonce | `string` | - | Nonce атрибут (требуется для корректной работы overlayscrollbars-react) |
91
90
  | dataFiltered | `boolean` | - | |
92
91
  | dataError | `boolean` | - | |
93
92
  | noDataState | `EmptyStateProps` | - | Экран при отстутствии данных |
@@ -123,7 +122,6 @@
123
122
  | untouchableScrollbars | `boolean` | - | Отключает возможность взаимодействовать со скролбарами мышью. |
124
123
  | barHideStrategy | enum BarHideStrategy: `"scroll"`, `"move"`, `"never"`, `"leave"` | - | Управление скрытием скролл баров: <br> - `Never` - показывать всегда <br> - `Leave` - скрывать когда курсор покидает компонент <br> - `Scroll` - показывать только когда происходит скроллинг <br> - `Move` - показывать при движении курсора над компонентом |
125
124
  | onScroll | `(event?: Event) => void` | - | Колбек на скролл прокручиваемого списка |
126
- | nonce | `string` | - | Nonce атрибут (требуется для корректной работы overlayscrollbars-react) |
127
125
  | dataFiltered | `boolean` | - | |
128
126
  | dataError | `boolean` | - | |
129
127
  | noDataState | `EmptyStateProps` | - | Экран при отстутствии данных |
@@ -52,7 +52,6 @@ exports.ListPrivate = (0, react_1.forwardRef)((_a, ref) => {
52
52
  loading,
53
53
  limitedScrollHeight,
54
54
  untouchableScrollbars,
55
- nonce,
56
55
  className,
57
56
  noDataState,
58
57
  noResultsState,
@@ -64,7 +63,7 @@ exports.ListPrivate = (0, react_1.forwardRef)((_a, ref) => {
64
63
  scrollContainerClassName,
65
64
  barHideStrategy = 'never'
66
65
  } = _a,
67
- props = __rest(_a, ["items", "pinTop", "pinBottom", "onKeyDown", "onBlur", "onFocus", "tabIndex", "active", "scroll", "nested", "search", "searchItem", "scrollRef", "scrollContainerRef", "onScroll", "footer", "loading", "limitedScrollHeight", "untouchableScrollbars", "nonce", "className", "noDataState", "noResultsState", "errorDataState", "dataError", "dataFiltered", "scrollToSelectedItem", "virtualized", "scrollContainerClassName", "barHideStrategy"]);
66
+ props = __rest(_a, ["items", "pinTop", "pinBottom", "onKeyDown", "onBlur", "onFocus", "tabIndex", "active", "scroll", "nested", "search", "searchItem", "scrollRef", "scrollContainerRef", "onScroll", "footer", "loading", "limitedScrollHeight", "untouchableScrollbars", "className", "noDataState", "noResultsState", "errorDataState", "dataError", "dataFiltered", "scrollToSelectedItem", "virtualized", "scrollContainerClassName", "barHideStrategy"]);
68
67
  const {
69
68
  size = 's',
70
69
  flattenItems,
@@ -182,7 +181,6 @@ exports.ListPrivate = (0, react_1.forwardRef)((_a, ref) => {
182
181
  untouchableScrollbars: untouchableScrollbars,
183
182
  onScroll: onScroll,
184
183
  onInitialized: onScrollInitialized,
185
- nonce: nonce,
186
184
  children: [content, (0, jsx_runtime_1.jsx)("div", {
187
185
  className: styles_module_scss_2.default.scrollStub,
188
186
  ref: scrollRef
@@ -4,3 +4,4 @@ export { kindFlattenItems } from './components/Items';
4
4
  export * from './helperComponents/ItemContent';
5
5
  export * from './helpers';
6
6
  export * from './constants';
7
+ export { setNonce } from '@snack-uikit/scroll';
package/dist/cjs/index.js CHANGED
@@ -22,7 +22,7 @@ var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
22
22
  Object.defineProperty(exports, "__esModule", {
23
23
  value: true
24
24
  });
25
- exports.kindFlattenItems = void 0;
25
+ exports.setNonce = exports.kindFlattenItems = void 0;
26
26
  __exportStar(require("./components"), exports);
27
27
  var Items_1 = require("./components/Items");
28
28
  Object.defineProperty(exports, "kindFlattenItems", {
@@ -33,4 +33,11 @@ Object.defineProperty(exports, "kindFlattenItems", {
33
33
  });
34
34
  __exportStar(require("./helperComponents/ItemContent"), exports);
35
35
  __exportStar(require("./helpers"), exports);
36
- __exportStar(require("./constants"), exports);
36
+ __exportStar(require("./constants"), exports);
37
+ var scroll_1 = require("@snack-uikit/scroll");
38
+ Object.defineProperty(exports, "setNonce", {
39
+ enumerable: true,
40
+ get: function () {
41
+ return scroll_1.setNonce;
42
+ }
43
+ });
@@ -25,6 +25,4 @@ export type ScrollProps = {
25
25
  barHideStrategy?: OriginalScrollProps['barHideStrategy'];
26
26
  /** Колбек на скролл прокручиваемого списка */
27
27
  onScroll?: OriginalScrollProps['onScroll'];
28
- /** Nonce атрибут (требуется для корректной работы overlayscrollbars-react) */
29
- nonce?: string;
30
28
  };
@@ -24,7 +24,7 @@ import commonStyles from '../styles.module.css';
24
24
  import { ALL_SIZES } from './constants';
25
25
  import styles from './styles.module.css';
26
26
  export const ListPrivate = forwardRef((_a, ref) => {
27
- var { items, pinTop, pinBottom, onKeyDown, onBlur, onFocus, tabIndex, active, scroll, nested, search, searchItem, scrollRef, scrollContainerRef, onScroll, footer, loading, limitedScrollHeight, untouchableScrollbars, nonce, className, noDataState, noResultsState, errorDataState, dataError, dataFiltered, scrollToSelectedItem = false, virtualized = false, scrollContainerClassName, barHideStrategy = 'never' } = _a, props = __rest(_a, ["items", "pinTop", "pinBottom", "onKeyDown", "onBlur", "onFocus", "tabIndex", "active", "scroll", "nested", "search", "searchItem", "scrollRef", "scrollContainerRef", "onScroll", "footer", "loading", "limitedScrollHeight", "untouchableScrollbars", "nonce", "className", "noDataState", "noResultsState", "errorDataState", "dataError", "dataFiltered", "scrollToSelectedItem", "virtualized", "scrollContainerClassName", "barHideStrategy"]);
27
+ var { items, pinTop, pinBottom, onKeyDown, onBlur, onFocus, tabIndex, active, scroll, nested, search, searchItem, scrollRef, scrollContainerRef, onScroll, footer, loading, limitedScrollHeight, untouchableScrollbars, className, noDataState, noResultsState, errorDataState, dataError, dataFiltered, scrollToSelectedItem = false, virtualized = false, scrollContainerClassName, barHideStrategy = 'never' } = _a, props = __rest(_a, ["items", "pinTop", "pinBottom", "onKeyDown", "onBlur", "onFocus", "tabIndex", "active", "scroll", "nested", "search", "searchItem", "scrollRef", "scrollContainerRef", "onScroll", "footer", "loading", "limitedScrollHeight", "untouchableScrollbars", "className", "noDataState", "noResultsState", "errorDataState", "dataError", "dataFiltered", "scrollToSelectedItem", "virtualized", "scrollContainerClassName", "barHideStrategy"]);
28
28
  const { size = 's', flattenItems, focusFlattenItems } = useNewListContext();
29
29
  const { value, isSelectionSingle } = useSelectionContext();
30
30
  const innerScrollRef = useRef(null);
@@ -82,7 +82,7 @@ export const ListPrivate = forwardRef((_a, ref) => {
82
82
  innerScrollRef.current = ref;
83
83
  if (scrollContainerRef)
84
84
  scrollContainerRef.current = ref;
85
- }, untouchableScrollbars: untouchableScrollbars, onScroll: onScroll, onInitialized: onScrollInitialized, nonce: nonce, children: [content, _jsx("div", { className: styles.scrollStub, ref: scrollRef })] })) : (_jsx(_Fragment, { children: content })), Number(pinBottom === null || pinBottom === void 0 ? void 0 : pinBottom.length) > 0 && _jsx(PinBottomGroupItem, { children: itemsPinBottomJSX }), footer && (_jsx("div", { className: styles.footer, onFocus: stopPropagation, children: footer }))] })));
85
+ }, untouchableScrollbars: untouchableScrollbars, onScroll: onScroll, onInitialized: onScrollInitialized, children: [content, _jsx("div", { className: styles.scrollStub, ref: scrollRef })] })) : (_jsx(_Fragment, { children: content })), Number(pinBottom === null || pinBottom === void 0 ? void 0 : pinBottom.length) > 0 && _jsx(PinBottomGroupItem, { children: itemsPinBottomJSX }), footer && (_jsx("div", { className: styles.footer, onFocus: stopPropagation, children: footer }))] })));
86
86
  if (!nested) {
87
87
  return listJSX;
88
88
  }
@@ -4,3 +4,4 @@ export { kindFlattenItems } from './components/Items';
4
4
  export * from './helperComponents/ItemContent';
5
5
  export * from './helpers';
6
6
  export * from './constants';
7
+ export { setNonce } from '@snack-uikit/scroll';
package/dist/esm/index.js CHANGED
@@ -3,3 +3,4 @@ export { kindFlattenItems } from './components/Items';
3
3
  export * from './helperComponents/ItemContent';
4
4
  export * from './helpers';
5
5
  export * from './constants';
6
+ export { setNonce } from '@snack-uikit/scroll';
@@ -25,6 +25,4 @@ export type ScrollProps = {
25
25
  barHideStrategy?: OriginalScrollProps['barHideStrategy'];
26
26
  /** Колбек на скролл прокручиваемого списка */
27
27
  onScroll?: OriginalScrollProps['onScroll'];
28
- /** Nonce атрибут (требуется для корректной работы overlayscrollbars-react) */
29
- nonce?: string;
30
28
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "List",
7
- "version": "0.27.8-preview-352c392a.0",
7
+ "version": "0.27.8-preview-a01e5edb.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -42,7 +42,7 @@
42
42
  "@snack-uikit/icons": "0.26.2",
43
43
  "@snack-uikit/info-block": "0.6.21",
44
44
  "@snack-uikit/loaders": "0.9.3",
45
- "@snack-uikit/scroll": "0.9.6-preview-352c392a.0",
45
+ "@snack-uikit/scroll": "0.9.6-preview-a01e5edb.0",
46
46
  "@snack-uikit/search-private": "0.4.16",
47
47
  "@snack-uikit/toggles": "0.13.13",
48
48
  "@snack-uikit/truncate-string": "0.6.18",
@@ -54,5 +54,5 @@
54
54
  "peerDependencies": {
55
55
  "@snack-uikit/locale": "*"
56
56
  },
57
- "gitHead": "4ed8ae5fcb2acbf1aa473ae7ae7986b92e158707"
57
+ "gitHead": "296aa13b09725182920874e188588092d9b3d8c9"
58
58
  }
@@ -37,7 +37,6 @@ export const ListPrivate = forwardRef(
37
37
  loading,
38
38
  limitedScrollHeight,
39
39
  untouchableScrollbars,
40
- nonce,
41
40
  className,
42
41
  noDataState,
43
42
  noResultsState,
@@ -199,7 +198,6 @@ export const ListPrivate = forwardRef(
199
198
  untouchableScrollbars={untouchableScrollbars}
200
199
  onScroll={onScroll}
201
200
  onInitialized={onScrollInitialized}
202
- nonce={nonce}
203
201
  >
204
202
  {content}
205
203
 
package/src/index.ts CHANGED
@@ -7,3 +7,5 @@ export * from './helperComponents/ItemContent';
7
7
 
8
8
  export * from './helpers';
9
9
  export * from './constants';
10
+
11
+ export { setNonce } from '@snack-uikit/scroll';
package/src/types.ts CHANGED
@@ -28,6 +28,4 @@ export type ScrollProps = {
28
28
  barHideStrategy?: OriginalScrollProps['barHideStrategy'];
29
29
  /** Колбек на скролл прокручиваемого списка */
30
30
  onScroll?: OriginalScrollProps['onScroll'];
31
- /** Nonce атрибут (требуется для корректной работы overlayscrollbars-react) */
32
- nonce?: string;
33
31
  };