@bigbinary/neeto-commons-frontend 2.0.35 → 2.0.36
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 +5 -6
- package/configs/eslint/helpers/index.js +2 -1
- package/initializers.cjs.js +9 -32
- package/initializers.js +9 -32
- package/package.json +3 -1
- package/pure.cjs.js +5 -5
- package/pure.js +5 -5
- package/react-utils.cjs.js +331 -236
- package/react-utils.d.ts +17 -0
- package/react-utils.js +345 -251
- package/utils.cjs.js +15 -33
- package/utils.d.ts +2 -0
- package/utils.js +15 -34
package/react-utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
+
AlertProps,
|
|
4
5
|
AvatarProps,
|
|
5
6
|
CheckboxProps,
|
|
6
7
|
DropdownProps,
|
|
@@ -10,6 +11,7 @@ import {
|
|
|
10
11
|
} from "@bigbinary/neetoui";
|
|
11
12
|
import { LinkType, NavLinkItemType } from "@bigbinary/neetoui/layouts";
|
|
12
13
|
import { RouteProps } from "react-router-dom";
|
|
14
|
+
import { UseMutationResult } from "react-query";
|
|
13
15
|
import { Notice } from "@honeybadger-io/js/dist/server/types/core/types";
|
|
14
16
|
import { ObjectAndPrimitives } from "./pure";
|
|
15
17
|
import { DateTimeType, timeFormat } from "./utils";
|
|
@@ -146,6 +148,21 @@ export const CustomDomain: React.FC<{
|
|
|
146
148
|
|
|
147
149
|
export const IpRestriction: React.FC<{}>;
|
|
148
150
|
|
|
151
|
+
export const PublishBlock: React.FC<{
|
|
152
|
+
entityId: string;
|
|
153
|
+
publishMutation: () => UseMutationResult<any, any, any, any>;
|
|
154
|
+
resetDraftMutation: () => UseMutationResult<any, any, any, any>;
|
|
155
|
+
renderDraftButtons: (props: {
|
|
156
|
+
ViewDraftButton: JSX.Element;
|
|
157
|
+
ResetDraftButton: JSX.Element;
|
|
158
|
+
}) => React.ReactNode;
|
|
159
|
+
renderPublishButtons: (props: {
|
|
160
|
+
PublishButton: JSX.Element;
|
|
161
|
+
PublishPreviewButton: JSX.Element;
|
|
162
|
+
}) => React.ReactNode;
|
|
163
|
+
resetAlertProps?: AlertProps;
|
|
164
|
+
}>;
|
|
165
|
+
|
|
149
166
|
export function useFieldSubmit(onSubmit: () => any): {
|
|
150
167
|
current: HTMLInputElement & HTMLTextAreaElement;
|
|
151
168
|
};
|