@conveyorhq/arrow-ds 1.147.1 → 1.148.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@conveyorhq/arrow-ds",
3
3
  "author": "Conveyor",
4
4
  "license": "MIT",
5
- "version": "1.147.1",
5
+ "version": "1.148.0",
6
6
  "description": "Arrow Design System",
7
7
  "repository": "https://github.com/conveyor/arrow-ds",
8
8
  "publishConfig": {
@@ -9,6 +9,7 @@ export declare enum CUSTOM_ICON_TYPE {
9
9
  COMMENT_ALT_CHECK = "comment-alt-check",
10
10
  CONVEYOR_LOGO = "conveyor-logo",
11
11
  DIALOG_CHECK = "dialog-check",
12
+ DO_NOT_ENTER = "do-not-enter",
12
13
  FOLDERS = "folders",
13
14
  INSERT_END = "insert-end",
14
15
  INSERT_MIDDLE = "insert-middle",
@@ -236,6 +236,7 @@ var CUSTOM_ICON_TYPE;
236
236
  CUSTOM_ICON_TYPE["COMMENT_ALT_CHECK"] = "comment-alt-check";
237
237
  CUSTOM_ICON_TYPE["CONVEYOR_LOGO"] = "conveyor-logo";
238
238
  CUSTOM_ICON_TYPE["DIALOG_CHECK"] = "dialog-check";
239
+ CUSTOM_ICON_TYPE["DO_NOT_ENTER"] = "do-not-enter";
239
240
  CUSTOM_ICON_TYPE["FOLDERS"] = "folders";
240
241
  CUSTOM_ICON_TYPE["INSERT_END"] = "insert-end";
241
242
  CUSTOM_ICON_TYPE["INSERT_MIDDLE"] = "insert-middle";
@@ -254,6 +255,7 @@ const CustomIcons = {
254
255
  [CUSTOM_ICON_TYPE.COMMENT_ALT_CHECK]: svg_1.CommentAltCheck,
255
256
  [CUSTOM_ICON_TYPE.CONVEYOR_LOGO]: svg_1.ConveyorLogoIcon,
256
257
  [CUSTOM_ICON_TYPE.DIALOG_CHECK]: svg_1.DialogCheck,
258
+ [CUSTOM_ICON_TYPE.DO_NOT_ENTER]: svg_1.DoNotEnter,
257
259
  [CUSTOM_ICON_TYPE.FOLDERS]: svg_1.Folders,
258
260
  [CUSTOM_ICON_TYPE.INSERT_END]: svg_1.InsertEnd,
259
261
  [CUSTOM_ICON_TYPE.INSERT_MIDDLE]: svg_1.InsertMiddle,
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SvgProps } from "../../Svg";
3
+ export declare const DoNotEnter: (props: SvgProps) => React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DoNotEnter = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const Svg_1 = require("../../Svg");
9
+ const DoNotEnter = (props) => {
10
+ return (react_1.default.createElement(Svg_1.Svg, { width: "13", height: "13", viewBox: "0 0 13 13", fill: "none", ...props },
11
+ react_1.default.createElement("path", { d: "M6.75488 0.8125C9.96582 0.8125 12.5674 3.41406 12.5674 6.625C12.5674 9.83594 9.96582 12.4375 6.75488 12.4375C3.54395 12.4375 0.942383 9.83594 0.942383 6.625C0.942383 3.41406 3.54395 0.8125 6.75488 0.8125ZM3.66113 7.5625H9.84863C9.98926 7.5625 10.1299 7.44531 10.1299 7.28125V5.96875C10.1299 5.82812 9.98926 5.6875 9.84863 5.6875H3.66113C3.49707 5.6875 3.37988 5.82812 3.37988 5.96875V7.28125C3.37988 7.44531 3.49707 7.5625 3.66113 7.5625Z", fill: "currentColor" })));
12
+ };
13
+ exports.DoNotEnter = DoNotEnter;
@@ -5,6 +5,7 @@ export * from "./BadgeCheck";
5
5
  export * from "./CommentAltCheck";
6
6
  export * from "./ConveyorLogoIcon";
7
7
  export * from "./DialogCheck";
8
+ export * from "./DoNotEnter";
8
9
  export * from "./Folders";
9
10
  export * from "./InsertEnd";
10
11
  export * from "./InsertMiddle";
@@ -21,6 +21,7 @@ __exportStar(require("./BadgeCheck"), exports);
21
21
  __exportStar(require("./CommentAltCheck"), exports);
22
22
  __exportStar(require("./ConveyorLogoIcon"), exports);
23
23
  __exportStar(require("./DialogCheck"), exports);
24
+ __exportStar(require("./DoNotEnter"), exports);
24
25
  __exportStar(require("./Folders"), exports);
25
26
  __exportStar(require("./InsertEnd"), exports);
26
27
  __exportStar(require("./InsertMiddle"), exports);
@@ -20,7 +20,16 @@ const Markdown = ({ children, className, escapeHtml = true, skipHtml = false, re
20
20
  emphasis: TextRenderer("span"),
21
21
  }
22
22
  : undefined;
23
- const linkRenderer = ({ href, children: text, }) => (react_1.default.createElement("a", { href: href, target: "_blank", rel: "noopener noreferrer" }, text));
23
+ const linkRenderer = ({ href, children: text, }) => {
24
+ const externalLinkProps = {
25
+ target: "_blank",
26
+ rel: "noopener noreferrer",
27
+ };
28
+ if (href.startsWith("http")) {
29
+ return (react_1.default.createElement("a", { href: href, ...externalLinkProps }, text));
30
+ }
31
+ return react_1.default.createElement("a", { href: href }, text);
32
+ };
24
33
  return (react_1.default.createElement(react_markdown_1.default, { className: (0, classnames_1.default)((0, bem_1.bem)(cn), className), source: children, escapeHtml: escapeHtml, skipHtml: skipHtml, renderers: {
25
34
  ...plainTextRenderers,
26
35
  link: linkRenderer,
@@ -205,6 +205,7 @@ import {
205
205
  CommentAltCheck,
206
206
  ConveyorLogoIcon,
207
207
  DialogCheck,
208
+ DoNotEnter,
208
209
  Folders,
209
210
  InsertEnd,
210
211
  InsertMiddle,
@@ -423,6 +424,7 @@ export enum CUSTOM_ICON_TYPE {
423
424
  COMMENT_ALT_CHECK = "comment-alt-check",
424
425
  CONVEYOR_LOGO = "conveyor-logo",
425
426
  DIALOG_CHECK = "dialog-check",
427
+ DO_NOT_ENTER = "do-not-enter",
426
428
  FOLDERS = "folders",
427
429
  INSERT_END = "insert-end",
428
430
  INSERT_MIDDLE = "insert-middle",
@@ -446,6 +448,7 @@ const CustomIcons: CustomIconPaths = {
446
448
  [CUSTOM_ICON_TYPE.COMMENT_ALT_CHECK]: CommentAltCheck,
447
449
  [CUSTOM_ICON_TYPE.CONVEYOR_LOGO]: ConveyorLogoIcon,
448
450
  [CUSTOM_ICON_TYPE.DIALOG_CHECK]: DialogCheck,
451
+ [CUSTOM_ICON_TYPE.DO_NOT_ENTER]: DoNotEnter,
449
452
  [CUSTOM_ICON_TYPE.FOLDERS]: Folders,
450
453
  [CUSTOM_ICON_TYPE.INSERT_END]: InsertEnd,
451
454
  [CUSTOM_ICON_TYPE.INSERT_MIDDLE]: InsertMiddle,
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { Svg, SvgProps } from "../../Svg";
3
+
4
+ export const DoNotEnter = (props: SvgProps) => {
5
+ return (
6
+ <Svg width="13" height="13" viewBox="0 0 13 13" fill="none" {...props}>
7
+ <path
8
+ d="M6.75488 0.8125C9.96582 0.8125 12.5674 3.41406 12.5674 6.625C12.5674 9.83594 9.96582 12.4375 6.75488 12.4375C3.54395 12.4375 0.942383 9.83594 0.942383 6.625C0.942383 3.41406 3.54395 0.8125 6.75488 0.8125ZM3.66113 7.5625H9.84863C9.98926 7.5625 10.1299 7.44531 10.1299 7.28125V5.96875C10.1299 5.82812 9.98926 5.6875 9.84863 5.6875H3.66113C3.49707 5.6875 3.37988 5.82812 3.37988 5.96875V7.28125C3.37988 7.44531 3.49707 7.5625 3.66113 7.5625Z"
9
+ fill="currentColor"
10
+ />
11
+ </Svg>
12
+ );
13
+ };
@@ -5,6 +5,7 @@ export * from "./BadgeCheck";
5
5
  export * from "./CommentAltCheck";
6
6
  export * from "./ConveyorLogoIcon";
7
7
  export * from "./DialogCheck";
8
+ export * from "./DoNotEnter";
8
9
  export * from "./Folders";
9
10
  export * from "./InsertEnd";
10
11
  export * from "./InsertMiddle";
@@ -44,11 +44,22 @@ export const Markdown = ({
44
44
  }: {
45
45
  href: string;
46
46
  children: string;
47
- }) => (
48
- <a href={href} target="_blank" rel="noopener noreferrer">
49
- {text}
50
- </a>
51
- );
47
+ }) => {
48
+ const externalLinkProps = {
49
+ target: "_blank",
50
+ rel: "noopener noreferrer",
51
+ };
52
+
53
+ if (href.startsWith("http")) {
54
+ return (
55
+ <a href={href} {...externalLinkProps}>
56
+ {text}
57
+ </a>
58
+ );
59
+ }
60
+
61
+ return <a href={href}>{text}</a>;
62
+ };
52
63
 
53
64
  return (
54
65
  <ReactMarkdown
@@ -39,7 +39,7 @@ MarkdownEditor uses [react-codemirror](https://github.com/JedWatson/react-codemi
39
39
  import { MarkdownEditor } from "@conveyorhq/arrow-ds";
40
40
  ```
41
41
 
42
- export const exampleContent = `[Control: Third Party Access Review Control](/)\n## Third Party Access Reviews Procedure\n\n### Review Access Controls\n\n**To be performed at the following times:**\n* Whenever an ISMS Role Membership is added, updated, or deleted\n* Whenever an Access Control Review is due (Every 7 months)\n\n**In accordance with the following requirements:**\n\n**1. Review Access Grants to Information Systems**\n\nThe Security Team shall ensure that a review of access grants to information systems is completed. To perform an access review, either the Security Team or asset owners shall open the Security Management Tasks and review the access grants to ensure that:\n\n* All users of each information system have a business need for access\n* User permissions are set appropriately based on business needs\n* Multi-factor authentication status is appropriate for relevant systems\n\nThe Security Team or asset owners shall log the following information in the Security Management Tasks:\n\n* The date of the review\n* The information systems that were reviewed\n* The individual(s) who performed the review Notes from the review, including any changes to access as a result of the review\n* If the Security Team has delegated the access reviews to asset owners, the Security Team shall ensure that the reviews are completed.\n\n**2. Review privileged utility programs**\n\nThe Security Officer shall review the access levels of utility programs that can override system and application controls ("privileged utility programs") that have access to Sensitive/Regulated Information to ensure that the permissions granted to them continue to be appropriate.`;
42
+ export const exampleContent = `[Conveyor](https://www.conveyor.com)\n\n[Control: Third Party Access Review Control](/)\n## Third Party Access Reviews Procedure\n\n### Review Access Controls\n\n**To be performed at the following times:**\n* Whenever an ISMS Role Membership is added, updated, or deleted\n* Whenever an Access Control Review is due (Every 7 months)\n\n**In accordance with the following requirements:**\n\n**1. Review Access Grants to Information Systems**\n\nThe Security Team shall ensure that a review of access grants to information systems is completed. To perform an access review, either the Security Team or asset owners shall open the Security Management Tasks and review the access grants to ensure that:\n\n* All users of each information system have a business need for access\n* User permissions are set appropriately based on business needs\n* Multi-factor authentication status is appropriate for relevant systems\n\nThe Security Team or asset owners shall log the following information in the Security Management Tasks:\n\n* The date of the review\n* The information systems that were reviewed\n* The individual(s) who performed the review Notes from the review, including any changes to access as a result of the review\n* If the Security Team has delegated the access reviews to asset owners, the Security Team shall ensure that the reviews are completed.\n\n**2. Review privileged utility programs**\n\nThe Security Officer shall review the access levels of utility programs that can override system and application controls ("privileged utility programs") that have access to Sensitive/Regulated Information to ensure that the permissions granted to them continue to be appropriate.`;
43
43
 
44
44
  ## Basic usage
45
45