@campxdev/react-blueprint 1.0.2 → 1.0.4

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": "@campxdev/react-blueprint",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
package/public/index.html CHANGED
@@ -24,7 +24,18 @@
24
24
  work correctly both with client-side routing and a non-root public URL.
25
25
  Learn how to configure a non-root public URL by running `npm run build`.
26
26
  -->
27
- <title>React App</title>
27
+ <script type="text/javascript" src="https://campx.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/278rlr/b/9/c95134bc67d3a521bb3f4331beb9b804/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-GB&collectorId=5fea0763"></script>
28
+
29
+ <script type="text/javascript">window.ATL_JQ_PAGE_PROPS = {
30
+ "triggerFunction": function(showCollectorDialog) {
31
+ //Requires that jQuery is available!
32
+ jQuery("#jiraIssueCollector").click(function(e) {
33
+ e.preventDefault();
34
+ showCollectorDialog();
35
+ });
36
+ }};</script>
37
+
38
+ <title>React Blueprint | Building Blocks</title>
28
39
  </head>
29
40
  <body>
30
41
  <noscript>You need to enable JavaScript to run this app.</noscript>
@@ -39,5 +50,6 @@
39
50
  To begin the development, run `npm start` or `yarn start`.
40
51
  To create a production bundle, use `npm run build` or `yarn build`.
41
52
  -->
53
+
42
54
  </body>
43
55
  </html>
@@ -67,7 +67,7 @@ export const Tutorial = ({
67
67
  JSON.stringify([...JSON.parse(userTours), tourName])
68
68
  );
69
69
  }
70
- await axios.post("/square/tours/complete", { reqData });
70
+ await axios.post("/square/tours/complete", { ...reqData });
71
71
  } catch (error) {
72
72
  console.error("Error completing the tour:", error);
73
73
  }
@@ -5,6 +5,7 @@ import { Typography } from "../../DataDisplay/Typography/Typography";
5
5
  import { StyledIconButton } from "../../Navigation/DropDownMenu/styles";
6
6
  import UserBox from "./AppHeaderActions/UserBox";
7
7
  import { StyledHeader } from "./styles/styles";
8
+ import { Button } from "../../export";
8
9
 
9
10
  export interface AppHeaderProps {
10
11
  actions?: ReactNode[];
@@ -34,7 +35,7 @@ export const AppHeader = ({
34
35
  <StyledHeader collapsed={collapsed} className="appHeader">
35
36
  <Typography variant={"subtitle2"}>{clientName}</Typography>
36
37
  <Stack alignItems={"center"} gap={"12px"} flexDirection={"row"}>
37
- <StyledIconButton>
38
+ {/* <StyledIconButton>
38
39
  <a
39
40
  href={"https://campx.atlassian.net/servicedesk/customer/portal/2"}
40
41
  target="_blank"
@@ -43,7 +44,10 @@ export const AppHeader = ({
43
44
  >
44
45
  <HelpIcon size={20} />
45
46
  </a>
46
- </StyledIconButton>
47
+ </StyledIconButton> */}
48
+ <Button variant="outlined" id="jiraIssueCollector">
49
+ <Typography variant="button">Report an Issue</Typography>
50
+ </Button>
47
51
  <UserBox
48
52
  fullName={userFullName}
49
53
  actions={[]}