@bigbinary/neeto-commons-frontend 2.0.24 → 2.0.26
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 +157 -86
- package/configs/babel.js +42 -0
- package/configs/eslint/globals.js +13 -0
- package/configs/eslint/helpers/index.js +61 -0
- package/configs/eslint/imports/enforced.js +29 -0
- package/configs/eslint/imports/order.js +65 -0
- package/configs/eslint/index.js +156 -0
- package/configs/eslint/overrides.js +24 -0
- package/configs/eslint/promise.js +8 -0
- package/configs/eslint/react.js +92 -0
- package/configs/prettier.js +16 -0
- package/configs/tailwind.js +13 -0
- package/configs/webpack/helpers/customize-default-rules.js +57 -0
- package/configs/webpack/index.js +41 -0
- package/configs/webpack/resolve.js +47 -0
- package/configs/webpack/rules.js +43 -0
- package/initializers.cjs.js +106 -3
- package/initializers.js +106 -3
- package/package.json +19 -7
- package/react-utils.cjs.js +4553 -702
- package/react-utils.d.ts +8 -0
- package/react-utils.js +4556 -708
package/react-utils.d.ts
CHANGED
|
@@ -10,11 +10,13 @@ import {
|
|
|
10
10
|
} from "@bigbinary/neetoui";
|
|
11
11
|
import { LinkType, NavLinkItemType } from "@bigbinary/neetoui/layouts";
|
|
12
12
|
import { RouteProps } from "react-router-dom";
|
|
13
|
+
import { Notice } from "@honeybadger-io/js/dist/server/types/core/types";
|
|
13
14
|
import { ObjectAndPrimitives } from "./pure";
|
|
14
15
|
import { DateTimeType, timeFormat } from "./utils";
|
|
15
16
|
|
|
16
17
|
export const HoneybadgerErrorBoundary: React.FC<{
|
|
17
18
|
ErrorComponent?: React.ReactNode | React.ComponentType<any>;
|
|
19
|
+
filterErrors?: (error: Notice) => boolean;
|
|
18
20
|
}>;
|
|
19
21
|
export function PrivateRoute(
|
|
20
22
|
props: {
|
|
@@ -139,6 +141,8 @@ export declare type ZustandStoreHook = {
|
|
|
139
141
|
|
|
140
142
|
export const CustomDomain: React.FC<{}>;
|
|
141
143
|
|
|
144
|
+
export const IpRestriction: React.FC<{}>;
|
|
145
|
+
|
|
142
146
|
export function useFieldSubmit(onSubmit: () => any): {
|
|
143
147
|
current: HTMLInputElement & HTMLTextAreaElement;
|
|
144
148
|
};
|
|
@@ -177,3 +181,7 @@ export function withTitle(
|
|
|
177
181
|
Component: () => JSX.Element,
|
|
178
182
|
title?: string
|
|
179
183
|
): (props) => JSX.Element;
|
|
184
|
+
|
|
185
|
+
export async function registerBrowserNotifications(): Promise<void>;
|
|
186
|
+
|
|
187
|
+
export async function destroyBrowserSubscription(): Promise<void>;
|