@bigbinary/neeto-slack-frontend 1.0.0 → 2.0.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/dist/index.cjs.js +145 -168
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +147 -170
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/types.d.ts +22 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-slack-frontend",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Slack integration step UI",
|
|
5
5
|
"author": "Bonnie Simon",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"prepare": "husky install",
|
|
20
20
|
"start": "NODE_ENV=development rm -rf dist && webpack-dev-server --mode development",
|
|
21
21
|
"build": "NODE_ENV=production rollup -c rollup.config.js",
|
|
22
|
-
"build-preview": "NODE_ENV=production webpack"
|
|
22
|
+
"build-preview": "NODE_ENV=production webpack",
|
|
23
|
+
"release": "yarn build && yalc push --sig"
|
|
23
24
|
},
|
|
24
25
|
"lint-staged": {
|
|
25
26
|
"{src,example}/**/*.{js,jsx,json}": [
|
package/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Fn } from "ramda";
|
|
3
|
-
import { ButtonProps } from "neetoui";
|
|
3
|
+
import { ButtonProps, PaneProps } from "neetoui";
|
|
4
4
|
|
|
5
5
|
declare global {
|
|
6
6
|
declare module "assets/*"
|
|
@@ -36,14 +36,31 @@ export function Finish(props: {
|
|
|
36
36
|
onBack: Fn;
|
|
37
37
|
}): JSX.Element;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
interface Field {
|
|
40
|
+
name: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}
|
|
43
|
+
interface SettingsProps {
|
|
41
44
|
children?: Fn | React.ReactNode;
|
|
42
45
|
teamName: string;
|
|
46
|
+
fields: Field[];
|
|
47
|
+
className?: string;
|
|
48
|
+
onEdit: Fn;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface SettingsPaneProps {
|
|
43
52
|
initialFormValues: object;
|
|
44
53
|
handleSubmit: Fn;
|
|
45
54
|
isSubmitting?: boolean;
|
|
46
|
-
className?: string;
|
|
47
55
|
validationSchema?: object;
|
|
48
56
|
channelRefreshHandler?: Fn;
|
|
49
|
-
|
|
57
|
+
title?: string;
|
|
58
|
+
isPaneOpen: boolean;
|
|
59
|
+
children?: Fn | React.ReactNode;
|
|
60
|
+
onClose: Fn;
|
|
61
|
+
paneProps?: Partial<PaneProps>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const Settings: React.FC<SettingsProps> & {
|
|
65
|
+
EditPane: React.FC<SettingsPaneProps>;
|
|
66
|
+
};
|