@xh/hoist 71.0.0-SNAPSHOT.1735324944017 → 71.0.0-SNAPSHOT.1735325329103

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.
@@ -4,4 +4,4 @@ import '@xh/hoist/desktop/register';
4
4
  * Desktop implementation of ErrorMessage.
5
5
  * @internal
6
6
  */
7
- export declare const errorMessageImpl: import("@xh/hoist/core").ElementFactory<ErrorMessageProps>;
7
+ export declare const errorMessageImpl: import("@xh/hoist/core").ElementFactory<Omit<ErrorMessageProps, "error" | "actionFn" | "detailsFn">>;
@@ -4,4 +4,4 @@ import '@xh/hoist/mobile/register';
4
4
  * Mobile implementation of ErrorMessage.
5
5
  * @internal
6
6
  */
7
- export declare const errorMessageImpl: import("@xh/hoist/core").ElementFactory<ErrorMessageProps>;
7
+ export declare const errorMessageImpl: import("@xh/hoist/core").ElementFactory<Omit<ErrorMessageProps, "error" | "actionFn" | "detailsFn">>;
@@ -97,14 +97,12 @@ export const [ErrorMessage, errorMessage] = hoistCmp.withFactory<ErrorMessagePro
97
97
  ...rest,
98
98
  item: XH.isMobileApp
99
99
  ? mobileErrorMessageImpl({
100
- error,
101
100
  message,
102
101
  title,
103
102
  actionButtonProps,
104
103
  detailsButtonProps
105
104
  })
106
105
  : desktopErrorMessageImpl({
107
- error,
108
106
  message,
109
107
  title,
110
108
  actionButtonProps,
@@ -17,8 +17,10 @@ import '@xh/hoist/desktop/register';
17
17
  * Desktop implementation of ErrorMessage.
18
18
  * @internal
19
19
  */
20
- export const errorMessageImpl = hoistCmp.factory<ErrorMessageProps>({
21
- render({error, message, title, actionButtonProps, detailsButtonProps}) {
20
+ export const errorMessageImpl = hoistCmp.factory<
21
+ Omit<ErrorMessageProps, 'error' | 'actionFn' | 'detailsFn'>
22
+ >({
23
+ render({message, title, actionButtonProps, detailsButtonProps}) {
22
24
  let buttons = [],
23
25
  buttonBar = null;
24
26
  if (detailsButtonProps) buttons.push(detailsButton(detailsButtonProps as ButtonProps));
@@ -31,7 +33,7 @@ export const errorMessageImpl = hoistCmp.factory<ErrorMessageProps>({
31
33
 
32
34
  return div({
33
35
  className: 'xh-error-message__inner',
34
- items: [titleCmp({title}), messageCmp({message, error}), buttonBar]
36
+ items: [titleCmp({title}), messageCmp({message}), buttonBar]
35
37
  });
36
38
  }
37
39
  });
@@ -17,8 +17,10 @@ import '@xh/hoist/mobile/register';
17
17
  * Mobile implementation of ErrorMessage.
18
18
  * @internal
19
19
  */
20
- export const errorMessageImpl = hoistCmp.factory<ErrorMessageProps>({
21
- render({error, message, title, actionButtonProps, detailsButtonProps}) {
20
+ export const errorMessageImpl = hoistCmp.factory<
21
+ Omit<ErrorMessageProps, 'error' | 'actionFn' | 'detailsFn'>
22
+ >({
23
+ render({message, title, actionButtonProps, detailsButtonProps}) {
22
24
  let buttons = [],
23
25
  buttonBar = null;
24
26
  if (detailsButtonProps) buttons.push(detailsButton(detailsButtonProps as ButtonProps));
@@ -31,7 +33,7 @@ export const errorMessageImpl = hoistCmp.factory<ErrorMessageProps>({
31
33
 
32
34
  return div({
33
35
  className: 'xh-error-message__inner',
34
- items: [titleCmp({title}), messageCmp({message, error}), buttonBar]
36
+ items: [titleCmp({title}), messageCmp({message}), buttonBar]
35
37
  });
36
38
  }
37
39
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "71.0.0-SNAPSHOT.1735324944017",
3
+ "version": "71.0.0-SNAPSHOT.1735325329103",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",