@activecollab/components 2.0.468 → 2.0.469

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.
@@ -1 +1 @@
1
- {"version":3,"file":"SourceCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/SourceCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,WAAW,EACX,YAAY,EAIb,MAAM,OAAO,CAAC;AA0Gf,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAa1D,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAKD,UAAU,YAAY;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;+CAC2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;CACtD;AAiDD;;;;;;;GAOG;AACH,UAAU,UAAU;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB;0CACsC;IACtC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,KAAK,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;GASG;AACH,UAAU,SAAS;IACjB,IAAI,EAAE,IAAI,GAAG,QAAQ,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAA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,YA8CpD,CAAC;AAwCF,QAAA,MAAM,OAAO,GAAI,2BAGd;IACD,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,KAAG,YA0GH,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,gCAItB;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,KAAG,YAcH,CAAC;AA+JF,KAAK,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC;AAEnD,QAAA,MAAM,iBAAiB,GAAI,yDAOxB;IACD,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;6DAEyD;IACzD,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,KAAG,YA0IH,CAAC;AAEF,YAAY,EACV,UAAU,EACV,KAAK,EACL,YAAY,EACZ,UAAU,EACV,UAAU,EACV,SAAS,EACT,cAAc,GACf,CAAC;AAEF,OAAO,EACL,KAAK,EACL,aAAa,EACb,QAAQ,EACR,OAAO,EACP,eAAe,EACf,iBAAiB,GAClB,CAAC"}
1
+ {"version":3,"file":"SourceCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/SourceCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,WAAW,EACX,YAAY,EAIb,MAAM,OAAO,CAAC;AA0Gf,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAa1D,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,OA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AC;IACzB;;6DAEyD;IACzD,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,KAAG,YA0IH,CAAC;AAEF,YAAY,EACV,UAAU,EACV,KAAK,EACL,YAAY,EACZ,UAAU,EACV,UAAU,EACV,SAAS,EACT,cAAc,GACf,CAAC;AAEF,OAAO,EACL,KAAK,EACL,aAAa,EACb,QAAQ,EACR,OAAO,EACP,eAAe,EACf,iBAAiB,GAClB,CAAC"}
@@ -850,88 +850,94 @@ const StyledHistory = styled.div.withConfig({
850
850
  const HistoryDialog = _ref4 => {
851
851
  let entry = _ref4.entry,
852
852
  onClose = _ref4.onClose;
853
- return /*#__PURE__*/React.createElement(Dialog, {
854
- open: !!entry,
855
- onClose: onClose,
856
- enableBackgroundClick: true
857
- }, /*#__PURE__*/React.createElement(Dialog.Title, {
858
- onClose: onClose
859
- }, (entry == null ? void 0 : entry.kind) === "branch" ? "Branch History" : "Pull Request History"), /*#__PURE__*/React.createElement(Dialog.ContentDivider, null), /*#__PURE__*/React.createElement(Dialog.Content, null, entry && /*#__PURE__*/React.createElement(StyledHistory, null, /*#__PURE__*/React.createElement("div", {
860
- className: "hist-header"
861
- }, /*#__PURE__*/React.createElement("div", {
862
- className: "hist-name"
863
- }, /*#__PURE__*/React.createElement(Body1, {
864
- weight: "medium"
865
- }, entry.status === "deleted" ? entry.title : /*#__PURE__*/React.createElement(TitleLink, {
866
- href: codeUrl(entry),
867
- target: "_blank",
868
- rel: "noopener noreferrer"
869
- }, entry.title)), /*#__PURE__*/React.createElement(CodeStatusChip, {
870
- entry: entry
871
- })), entry.kind === "pr" && entry.sourceBranch && entry.targetBranch && /*#__PURE__*/React.createElement("div", {
872
- className: "hist-branches"
873
- }, /*#__PURE__*/React.createElement("span", {
874
- className: "hist-branch"
875
- }, /*#__PURE__*/React.createElement(GitBranchIcon, {
876
- width: 14,
877
- height: 14
878
- }), entry.sourceBranch), /*#__PURE__*/React.createElement(ArrowRightIcon, {
879
- width: 14,
880
- height: 14
881
- }), /*#__PURE__*/React.createElement("span", {
882
- className: "hist-branch"
883
- }, /*#__PURE__*/React.createElement(GitBranchIcon, {
884
- width: 14,
885
- height: 14
886
- }), entry.targetBranch)), /*#__PURE__*/React.createElement("span", {
887
- className: "hist-repo"
888
- }, /*#__PURE__*/React.createElement(GitRepositoryIcon, {
889
- width: 14,
890
- height: 14
891
- }), entry.repoFull)), [...entry.history].sort((a, b) => a.minutesAgo - b.minutesAgo).map((ev, i) => /*#__PURE__*/React.createElement("div", {
892
- className: "hist-event",
893
- key: ev.title + "-" + i
894
- }, /*#__PURE__*/React.createElement("span", {
895
- className: "hist-icon"
896
- }, /*#__PURE__*/React.createElement(ev.icon, _extends({
897
- width: 22,
898
- height: 22
899
- }, iconColorProps(ev.icon)))), /*#__PURE__*/React.createElement("div", {
900
- className: "hist-body"
901
- }, /*#__PURE__*/React.createElement("div", {
902
- className: "hist-title"
903
- }, /*#__PURE__*/React.createElement(Body1, {
904
- weight: "medium"
905
- }, ev.title), ev.tone === "success" && /*#__PURE__*/React.createElement("span", {
906
- className: "hist-status"
907
- }, /*#__PURE__*/React.createElement(CheckIcon, {
908
- width: 16,
909
- height: 16,
910
- fill: "var(--color-sucess-green)"
911
- })), ev.tone === "danger" && /*#__PURE__*/React.createElement(StatusChip, {
912
- label: "Failed",
913
- tone: "fail",
914
- glyph: /*#__PURE__*/React.createElement(CloseIcon, {
915
- width: 12,
916
- height: 12,
917
- fill: "var(--red-alert)"
918
- })
919
- })), ev.detail && /*#__PURE__*/React.createElement("span", {
920
- className: "hist-line"
921
- }, ev.detail), ev.author && /*#__PURE__*/React.createElement("span", {
922
- className: "hist-line"
923
- }, ev.author)), /*#__PURE__*/React.createElement("div", {
924
- className: "hist-meta"
925
- }, /*#__PURE__*/React.createElement("span", {
926
- className: "hist-line"
927
- }, formatAgo(ev.minutesAgo))))), !entry.pipelineSupported && /*#__PURE__*/React.createElement("div", {
928
- className: "hist-note"
929
- }, /*#__PURE__*/React.createElement(InfoSmallIcon, {
930
- width: 15,
931
- height: 15
932
- }), /*#__PURE__*/React.createElement(Caption1, {
933
- color: "secondary"
934
- }, "No CI or deployment pipeline is configured for this repository.")))));
853
+ return (
854
+ /*#__PURE__*/
855
+ /* Same width as the Source Code dialog, so the two read alike when one opens
856
+ from the other. */
857
+ React.createElement(Dialog, {
858
+ open: !!entry,
859
+ onClose: onClose,
860
+ enableBackgroundClick: true,
861
+ size: "l"
862
+ }, /*#__PURE__*/React.createElement(Dialog.Title, {
863
+ onClose: onClose
864
+ }, (entry == null ? void 0 : entry.kind) === "branch" ? "Branch History" : "Pull Request History"), /*#__PURE__*/React.createElement(Dialog.ContentDivider, null), /*#__PURE__*/React.createElement(Dialog.Content, null, entry && /*#__PURE__*/React.createElement(StyledHistory, null, /*#__PURE__*/React.createElement("div", {
865
+ className: "hist-header"
866
+ }, /*#__PURE__*/React.createElement("div", {
867
+ className: "hist-name"
868
+ }, /*#__PURE__*/React.createElement(Body1, {
869
+ weight: "medium"
870
+ }, entry.status === "deleted" ? entry.title : /*#__PURE__*/React.createElement(TitleLink, {
871
+ href: codeUrl(entry),
872
+ target: "_blank",
873
+ rel: "noopener noreferrer"
874
+ }, entry.title)), /*#__PURE__*/React.createElement(CodeStatusChip, {
875
+ entry: entry
876
+ })), entry.kind === "pr" && entry.sourceBranch && entry.targetBranch && /*#__PURE__*/React.createElement("div", {
877
+ className: "hist-branches"
878
+ }, /*#__PURE__*/React.createElement("span", {
879
+ className: "hist-branch"
880
+ }, /*#__PURE__*/React.createElement(GitBranchIcon, {
881
+ width: 14,
882
+ height: 14
883
+ }), entry.sourceBranch), /*#__PURE__*/React.createElement(ArrowRightIcon, {
884
+ width: 14,
885
+ height: 14
886
+ }), /*#__PURE__*/React.createElement("span", {
887
+ className: "hist-branch"
888
+ }, /*#__PURE__*/React.createElement(GitBranchIcon, {
889
+ width: 14,
890
+ height: 14
891
+ }), entry.targetBranch)), /*#__PURE__*/React.createElement("span", {
892
+ className: "hist-repo"
893
+ }, /*#__PURE__*/React.createElement(GitRepositoryIcon, {
894
+ width: 14,
895
+ height: 14
896
+ }), entry.repoFull)), [...entry.history].sort((a, b) => a.minutesAgo - b.minutesAgo).map((ev, i) => /*#__PURE__*/React.createElement("div", {
897
+ className: "hist-event",
898
+ key: ev.title + "-" + i
899
+ }, /*#__PURE__*/React.createElement("span", {
900
+ className: "hist-icon"
901
+ }, /*#__PURE__*/React.createElement(ev.icon, _extends({
902
+ width: 22,
903
+ height: 22
904
+ }, iconColorProps(ev.icon)))), /*#__PURE__*/React.createElement("div", {
905
+ className: "hist-body"
906
+ }, /*#__PURE__*/React.createElement("div", {
907
+ className: "hist-title"
908
+ }, /*#__PURE__*/React.createElement(Body1, {
909
+ weight: "medium"
910
+ }, ev.title), ev.tone === "success" && /*#__PURE__*/React.createElement("span", {
911
+ className: "hist-status"
912
+ }, /*#__PURE__*/React.createElement(CheckIcon, {
913
+ width: 16,
914
+ height: 16,
915
+ fill: "var(--color-sucess-green)"
916
+ })), ev.tone === "danger" && /*#__PURE__*/React.createElement(StatusChip, {
917
+ label: "Failed",
918
+ tone: "fail",
919
+ glyph: /*#__PURE__*/React.createElement(CloseIcon, {
920
+ width: 12,
921
+ height: 12,
922
+ fill: "var(--red-alert)"
923
+ })
924
+ })), ev.detail && /*#__PURE__*/React.createElement("span", {
925
+ className: "hist-line"
926
+ }, ev.detail), ev.author && /*#__PURE__*/React.createElement("span", {
927
+ className: "hist-line"
928
+ }, ev.author)), /*#__PURE__*/React.createElement("div", {
929
+ className: "hist-meta"
930
+ }, /*#__PURE__*/React.createElement("span", {
931
+ className: "hist-line"
932
+ }, formatAgo(ev.minutesAgo))))), !entry.pipelineSupported && /*#__PURE__*/React.createElement("div", {
933
+ className: "hist-note"
934
+ }, /*#__PURE__*/React.createElement(InfoSmallIcon, {
935
+ width: 15,
936
+ height: 15
937
+ }), /*#__PURE__*/React.createElement(Caption1, {
938
+ color: "secondary"
939
+ }, "No CI or deployment pipeline is configured for this repository.")))))
940
+ );
935
941
  };
936
942
 
937
943
  /* ================================================================== */