@bigbinary/neeto-molecules 1.0.40 → 1.0.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "A package of reusable molecular components for neeto products.",
5
5
  "repository": "git@github.com:bigbinary/neeto-molecules.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -49,7 +49,7 @@
49
49
  "@bigbinary/babel-preset-neeto": "^1.0.3",
50
50
  "@bigbinary/eslint-plugin-neeto": "^1.0.50",
51
51
  "@bigbinary/neeto-commons-frontend": "2.0.74",
52
- "@bigbinary/neeto-editor": "^1.23.3",
52
+ "@bigbinary/neeto-editor": "1.27.0-beta.1",
53
53
  "@bigbinary/neeto-filters-frontend": "^2.9.7",
54
54
  "@bigbinary/neeto-icons": "^1.11.0",
55
55
  "@bigbinary/neeto-molecules": "^1.0.5",
@@ -284,6 +284,9 @@
284
284
  "header": "Check how it behaves",
285
285
  "continue": "Continue"
286
286
  },
287
+ "integrationDisconnectAlert": {
288
+ "disconnect": "Disconnect"
289
+ },
287
290
  "publishBlock": {
288
291
  "viewDraftVersion": "View draft version",
289
292
  "deleteDraftVersion": "Delete draft version. It'll not impact the published version",
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ /**
3
+ *
4
+ * A common component used for disconnect UI of integrations across neeto products.
5
+ *
6
+ * @example
7
+ *
8
+ * import IntegrationDisconnectAlert from "@bigbinary/neeto-molecules/IntegrationDisconnectAlert";
9
+ *
10
+ * const Integration = () => {
11
+ * const [isOpen, setIsOpen] = useState(false);
12
+ * const [isDisconnecting, setIsDisconnecting] = useState(false);
13
+ *
14
+ * return (
15
+ * <IntegrationDisconnectAlert
16
+ * isOpen={isOpen}
17
+ * isDisconnecting={isDisconnecting}
18
+ * title="Disconnect Slack integration"
19
+ * message="This will disconnect the slack integration"
20
+ * onClose={() => setIsOpen(false)}
21
+ * onDisconnect={() => console.log("Disconnect the integration")}
22
+ * />
23
+ * );
24
+ * };
25
+ * @endexample
26
+ */
27
+ const IntegrationDisconnectAlert: React.FC<{
28
+ isOpen: boolean;
29
+ isDisconnecting: boolean;
30
+ title: string;
31
+ message?: string;
32
+ onClose: (...args: any[]) => any;
33
+ onDisconnect: (...args: any[]) => any;
34
+ }>;
35
+ export default IntegrationDisconnectAlert;
@@ -1,6 +1,9 @@
1
1
  import React from "react";
2
2
  type EmbedCode = React.FC<{
3
+ maxWidth?: string;
3
4
  primaryApp?: string;
5
+ showSessionContext?: boolean;
6
+ showUserIdentity?: boolean;
4
7
  }>;
5
8
  /**
6
9
  *
@@ -40,12 +40,14 @@ import React from "react";
40
40
  * const { mutate: regenerateURL, isLoading: isRegenerating } =
41
41
  * useRegenerateUrl();
42
42
  *
43
- * const { mutate: updateUrl, isLoading: isUpdating } =
44
- * useUpdateUrl();
43
+ * const { mutate: updateUrl, isLoading: isUpdating } = useUpdateUrl();
45
44
  *
46
45
  * return (
47
46
  * <ShareViaLink
48
- * editUrlProps={{ prefix: `${window.location.origin}/`, editablePath: window.location.pathname }}
47
+ * editUrlProps={{
48
+ * prefix: `${window.location.origin}/`,
49
+ * editablePath: window.location.pathname,
50
+ * }}
49
51
  * enabledOptions={{ regenerate: true, edit: true }}
50
52
  * entity={quiz}
51
53
  * entityName="quiz"