@bigbinary/neeto-molecules 1.0.44 → 1.0.46

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.44",
3
+ "version": "1.0.46",
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>",
@@ -245,7 +245,6 @@
245
245
  "browserSupport": {
246
246
  "unsupportedBrowserVersion": "You are using {{browserName}} {{browserVersion}}. neeto requires {{browserName}} {{requiredMinBrowserVersion}} or later to perform reliably. <downloadLink></downloadLink><contactUs></contactUs>",
247
247
  "unsupportedBrowser": "You are using {{browserName}} {{browserVersion}}. neeto requires a modern browser to perform reliably. <contactUs></contactUs>",
248
- "yourBrowserIsFine": "This is how the <tag>BrowserSupport</tag> component will look if the user's browser is out of date.<br/><strong>Your browser is just fine.</strong>",
249
248
  "downloadLink": {
250
249
  "main": "Please <button></button> the latest browser.",
251
250
  "buttonLabel": "download and install"
@@ -327,10 +326,9 @@
327
326
  "viewFullListOfShortcuts": "View full list of shortcuts",
328
327
  "global": {
329
328
  "categoryName": "GLOBAL",
330
- "openKeyboardShortcutsPane": "Open the keyboard shortcuts pane",
329
+ "openKeyboardShortcutsPane": "See keyboard shortcuts",
331
330
  "close": "Close modals, panes",
332
- "submitForm": "Submit form or text input",
333
- "addNewLineOrSubmitForm": "Add new line in textarea or submit form"
331
+ "submitForm": "Submit form or text input"
334
332
  }
335
333
  },
336
334
  "emailPreview": {
@@ -1,33 +1,20 @@
1
1
  import React from "react";
2
2
  /**
3
3
  *
4
- * A common component for managing custom domains.
4
+ * A common component for managing custom domain. This component can be used when you have a single custom domain.
5
5
  *
6
6
  * @example
7
7
  *
8
8
  * import CustomDomain from "@bigbinary/neeto-molecules/CustomDomain";
9
9
  *
10
- * const SETTINGS_BREADCRUMBS = [
11
- * {
12
- * text: "Settings",
13
- * link: "/admin/settings",
14
- * },
15
- * ];
16
- *
17
- * <CustomDomain headerProps={{ breadcrumbs: SETTINGS_BREADCRUMBS }} />;
10
+ * <CustomDomain
11
+ * url="api/v1/admin/custom_domain"
12
+ * iconOnly
13
+ * />;
18
14
  * @endexample
19
- * headerProps is the prop that will be passed on to the NeetoUI Header
20
- *
21
- * component used inside the component and it can be used to set props like
22
- *
23
- * breadcrumbs in the Header component.
24
- *
25
- * ![Screenshot](https://user-images.githubusercontent.com/47141466/198322719-80cccd00-7bc3-44b6-845b-b3ad61e2635a.png|height=200|width=300)
26
- *
27
15
  */
28
16
  const CustomDomain: React.FC<{
29
- headerProps: {
30
- [key: string]: any;
31
- };
17
+ url: string;
18
+ iconOnly: boolean;
32
19
  }>;
33
20
  export default CustomDomain;
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ /**
3
+ *
4
+ * A full page common component for managing custom domains. This component can be used when you have multiple associated custom domains.
5
+ *
6
+ * @example
7
+ *
8
+ * import CustomDomainDashboard from "@bigbinary/neeto-molecules/CustomDomainDashboard";
9
+ *
10
+ * const SETTINGS_BREADCRUMBS = [
11
+ * {
12
+ * text: "Settings",
13
+ * link: "/admin/settings",
14
+ * },
15
+ * ];
16
+ *
17
+ * <CustomDomainDashboard
18
+ * headerProps={{ breadcrumbs: SETTINGS_BREADCRUMBS }}
19
+ * url="api/v1/admin/custom_domains"
20
+ * />;
21
+ * @endexample
22
+ * ![Screenshot](https://user-images.githubusercontent.com/47141466/198322719-80cccd00-7bc3-44b6-845b-b3ad61e2635a.png|height=200|width=300)
23
+ *
24
+ */
25
+ const CustomDomainDashboard: React.FC<{
26
+ headerProps: {
27
+ [key: string]: any;
28
+ };
29
+ url: string;
30
+ }>;
31
+ export default CustomDomainDashboard;