@wix/editor-react-components 1.2189.0 → 1.2191.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.
@@ -403,14 +403,11 @@ const Repeater = (props) => {
403
403
  a11y,
404
404
  renderItem = () => /* @__PURE__ */ jsx(Fragment, {}),
405
405
  items = DEFAULT_ITEMS,
406
- isLoadingFunc,
407
- hasMoreFunc,
408
- onLoadMoreFunc,
406
+ isLoading = false,
407
+ hasMore = false,
408
+ onLoadMore,
409
409
  emptyState
410
410
  } = props;
411
- const isLoading = isLoadingFunc !== void 0 ? isLoadingFunc() : props.isLoading ?? false;
412
- const hasMore = hasMoreFunc !== void 0 ? hasMoreFunc() : props.hasMore ?? false;
413
- const onLoadMore = onLoadMoreFunc ?? props.onLoadMore;
414
411
  const presetsWrapperProps = ((_a = props.wix) == null ? void 0 : _a.presetsWrapperProps) || {};
415
412
  const loadMoreEnabled = !!onLoadMore;
416
413
  const sentinelRef = useLoadMoreObserver({
@@ -39,9 +39,9 @@ const manifest = {
39
39
  "emptyState",
40
40
  "direction",
41
41
  "renderItem",
42
- "isLoading",
43
- "hasMore",
44
- "onLoadMore"
42
+ "isLoadingFunc",
43
+ "hasMoreFunc",
44
+ "onLoadMoreFunc"
45
45
  ]
46
46
  },
47
47
  actions: {
@@ -72,13 +72,16 @@ const manifest = {
72
72
  }
73
73
  },
74
74
  isLoading: {
75
+ displayName: DisplayNames.root.data.isLoading,
75
76
  dataType: DATA.DATA_TYPE.booleanValue
76
77
  },
77
78
  hasMore: {
79
+ displayName: DisplayNames.root.data.hasMore,
78
80
  dataType: DATA.DATA_TYPE.booleanValue,
79
81
  defaultValue: false
80
82
  },
81
83
  onLoadMore: {
84
+ displayName: DisplayNames.root.data.loadMore,
82
85
  dataType: DATA.DATA_TYPE.function,
83
86
  [DATA.DATA_TYPE.function]: {}
84
87
  },
@@ -13,9 +13,6 @@ export interface RepeaterProps {
13
13
  isLoading?: boolean;
14
14
  hasMore?: boolean;
15
15
  onLoadMore?: () => void;
16
- isLoadingFunc?: () => boolean;
17
- hasMoreFunc?: () => boolean;
18
- onLoadMoreFunc?: () => void;
19
16
  emptyState?: EmptyState;
20
17
  wix?: {
21
18
  presetsWrapperProps?: Record<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2189.0",
3
+ "version": "1.2191.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -188,5 +188,5 @@
188
188
  "registry": "https://registry.npmjs.org/",
189
189
  "access": "public"
190
190
  },
191
- "falconPackageHash": "7996c30b4962897958963bdb07f124d59259c82a87f16f422dd95a0e"
191
+ "falconPackageHash": "d11acae6b75aab56216349ec79f57fbdd4433c774496050ca14e3304"
192
192
  }