@harnessio/ui 0.0.13 → 0.0.14
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/dist/{cssMode-DQvfZV72.js → cssMode-DpMcyheL.js} +2 -2
- package/dist/{cssMode-DQvfZV72.js.map → cssMode-DpMcyheL.js.map} +1 -1
- package/dist/{freemarker2-B-bgDGWS.js → freemarker2-DN93X5cn.js} +2 -2
- package/dist/{freemarker2-B-bgDGWS.js.map → freemarker2-DN93X5cn.js.map} +1 -1
- package/dist/{handlebars-Cb1cbBZi.js → handlebars-CutyExR7.js} +2 -2
- package/dist/{handlebars-Cb1cbBZi.js.map → handlebars-CutyExR7.js.map} +1 -1
- package/dist/{html-B0WWrPCg.js → html-hMoyO9mP.js} +2 -2
- package/dist/{html-B0WWrPCg.js.map → html-hMoyO9mP.js.map} +1 -1
- package/dist/{htmlMode-BptaVgd-.js → htmlMode-9fK30rfz.js} +2 -2
- package/dist/{htmlMode-BptaVgd-.js.map → htmlMode-9fK30rfz.js.map} +1 -1
- package/dist/{index-0FcuMadl.js → index-BPASwTJt.js} +3795 -3790
- package/dist/{index-0FcuMadl.js.map → index-BPASwTJt.js.map} +1 -1
- package/dist/index.d.ts +73 -0
- package/dist/index.js +1 -1
- package/dist/{javascript-B0D85BJv.js → javascript-BGyXIl16.js} +2 -2
- package/dist/{javascript-B0D85BJv.js.map → javascript-BGyXIl16.js.map} +1 -1
- package/dist/{jsonMode-D2GeTwVJ.js → jsonMode-ag0SpsuG.js} +2 -2
- package/dist/{jsonMode-D2GeTwVJ.js.map → jsonMode-ag0SpsuG.js.map} +1 -1
- package/dist/{liquid-Bccgm8uE.js → liquid-B97LnAxc.js} +2 -2
- package/dist/{liquid-Bccgm8uE.js.map → liquid-B97LnAxc.js.map} +1 -1
- package/dist/{python-CtE7ud-7.js → python-BYivuthJ.js} +2 -2
- package/dist/{python-CtE7ud-7.js.map → python-BYivuthJ.js.map} +1 -1
- package/dist/{razor-Cc_OYa2z.js → razor-BHaVcD32.js} +2 -2
- package/dist/{razor-Cc_OYa2z.js.map → razor-BHaVcD32.js.map} +1 -1
- package/dist/{tsMode-DQHKs9Uk.js → tsMode-CrBb3pUf.js} +2 -2
- package/dist/{tsMode-DQHKs9Uk.js.map → tsMode-CrBb3pUf.js.map} +1 -1
- package/dist/{typescript-Doa5WvLF.js → typescript-C-NtWZ3T.js} +2 -2
- package/dist/{typescript-Doa5WvLF.js.map → typescript-C-NtWZ3T.js.map} +1 -1
- package/dist/views.d.ts +76 -0
- package/dist/views.js +117 -115
- package/dist/{xml-BpY1pMe9.js → xml-B0kL663j.js} +2 -2
- package/dist/{xml-BpY1pMe9.js.map → xml-B0kL663j.js.map} +1 -1
- package/dist/{yaml-BEKZTjur.js → yaml-D5-m1fvK.js} +2 -2
- package/dist/{yaml-BEKZTjur.js.map → yaml-D5-m1fvK.js.map} +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ import { NamedExoticComponent } from 'react';
|
|
|
61
61
|
import { NavigateFunction } from 'react-router-dom';
|
|
62
62
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
63
63
|
import { NavLinkProps } from 'react-router-dom';
|
|
64
|
+
import { NodeContent } from '@harnessio/pipeline-graph';
|
|
64
65
|
import { OlHTMLAttributes } from 'react';
|
|
65
66
|
import { OTPInputProps } from 'input-otp';
|
|
66
67
|
import { OutletProps } from 'react-router-dom';
|
|
@@ -1206,6 +1207,14 @@ declare enum CommitToGitRefOption {
|
|
|
1206
1207
|
NEW_BRANCH = "new-branch"
|
|
1207
1208
|
}
|
|
1208
1209
|
|
|
1210
|
+
declare interface CommonNodeDataType {
|
|
1211
|
+
yamlPath: string;
|
|
1212
|
+
yamlChildrenPath?: string;
|
|
1213
|
+
name: string;
|
|
1214
|
+
yamlEntityType: YamlEntityType;
|
|
1215
|
+
executionStatus?: ExecutionStatusType;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1209
1218
|
declare type CompareFormFields = z.infer<typeof pullRequestFormSchema>;
|
|
1210
1219
|
|
|
1211
1220
|
declare namespace components {
|
|
@@ -1574,6 +1583,29 @@ declare interface ContentLayoutWithSidebarProps {
|
|
|
1574
1583
|
sidebarViewportClassName?: string;
|
|
1575
1584
|
}
|
|
1576
1585
|
|
|
1586
|
+
declare const contentNodeBank: ContentNodeFactory;
|
|
1587
|
+
|
|
1588
|
+
declare class ContentNodeFactory {
|
|
1589
|
+
private entityBank;
|
|
1590
|
+
constructor();
|
|
1591
|
+
registerEntity(entityType: ContentNodeType, definition: NodeContent): void;
|
|
1592
|
+
getEntityDefinition(entityType: ContentNodeType): any;
|
|
1593
|
+
getNodesDefinition(): NodeContent[];
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
declare enum ContentNodeType {
|
|
1597
|
+
Add = "Add",
|
|
1598
|
+
Start = "Start",
|
|
1599
|
+
End = "End",
|
|
1600
|
+
Step = "Step",
|
|
1601
|
+
Approval = "Approval",
|
|
1602
|
+
ParallelStageGroup = "ParallelStageGroup",
|
|
1603
|
+
SerialStageGroup = "SerialStageGroup",
|
|
1604
|
+
ParallelStepGroup = "ParallelStepGroup",
|
|
1605
|
+
SerialStepGroup = "SerialStepGroup",
|
|
1606
|
+
Stage = "Stage"
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1577
1609
|
declare interface ContentProps {
|
|
1578
1610
|
children: ReactNode;
|
|
1579
1611
|
className?: string;
|
|
@@ -1616,6 +1648,20 @@ declare namespace context {
|
|
|
1616
1648
|
}
|
|
1617
1649
|
export { context }
|
|
1618
1650
|
|
|
1651
|
+
declare interface ContextMenuData {
|
|
1652
|
+
contextMenu: ({ outsidePosition }: {
|
|
1653
|
+
outsidePosition?: 'before' | 'after';
|
|
1654
|
+
}) => JSX.Element;
|
|
1655
|
+
nodeData: CommonNodeDataType;
|
|
1656
|
+
position: {
|
|
1657
|
+
x: number;
|
|
1658
|
+
y: number;
|
|
1659
|
+
};
|
|
1660
|
+
isIn?: boolean;
|
|
1661
|
+
isOutside?: boolean;
|
|
1662
|
+
outsidePosition?: 'before' | 'after';
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1619
1665
|
declare enum ContrastType {
|
|
1620
1666
|
Standard = "std",
|
|
1621
1667
|
Low = "low",
|
|
@@ -4894,6 +4940,31 @@ declare const PipelineStatus: ({ status, buildTime, createdTime, commit, branch,
|
|
|
4894
4940
|
delegateType?: string;
|
|
4895
4941
|
}) => JSX_2.Element;
|
|
4896
4942
|
|
|
4943
|
+
declare const PipelineStudioNodeContext: Context<PipelineStudioNodeContextProps<any>>;
|
|
4944
|
+
|
|
4945
|
+
declare interface PipelineStudioNodeContextProps<T> {
|
|
4946
|
+
showContextMenu: (props: {
|
|
4947
|
+
contextMenu: (() => React.ReactNode)[] | any;
|
|
4948
|
+
nodeData: CommonNodeDataType;
|
|
4949
|
+
initiator: HTMLElement;
|
|
4950
|
+
isIn?: boolean;
|
|
4951
|
+
isOutside?: boolean;
|
|
4952
|
+
outsidePosition?: 'before' | 'after';
|
|
4953
|
+
}) => void;
|
|
4954
|
+
hideContextMenu: () => void;
|
|
4955
|
+
contextMenuData: ContextMenuData | undefined;
|
|
4956
|
+
selectionPath?: string;
|
|
4957
|
+
setSelectionPath: (path: string) => void;
|
|
4958
|
+
onSelectIntention: (nodeData: CommonNodeDataType) => void;
|
|
4959
|
+
onAddIntention: (nodeData: CommonNodeDataType, position: 'after' | 'before' | 'in', yamlEntityTypeToAdd?: YamlEntityType) => void;
|
|
4960
|
+
onEditIntention: (nodeData: CommonNodeDataType) => void;
|
|
4961
|
+
onDeleteIntention: (nodeData: CommonNodeDataType) => void;
|
|
4962
|
+
onRevealInYaml: (path: string | undefined) => void;
|
|
4963
|
+
globalData?: T;
|
|
4964
|
+
serialContainerConfig?: Partial<SerialContainerConfigType>;
|
|
4965
|
+
parallelContainerConfig?: Partial<ParallelContainerConfigType>;
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4897
4968
|
declare const Popover: {
|
|
4898
4969
|
Root: FC<PopoverPrimitive.PopoverProps>;
|
|
4899
4970
|
Trigger: ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -9891,6 +9962,8 @@ declare namespace views {
|
|
|
9891
9962
|
monacoThemesForBlame,
|
|
9892
9963
|
YamlEntityType,
|
|
9893
9964
|
YamlErrorDataType,
|
|
9965
|
+
PipelineStudioNodeContext,
|
|
9966
|
+
contentNodeBank,
|
|
9894
9967
|
ITemplateListItem,
|
|
9895
9968
|
ITemplateListStore,
|
|
9896
9969
|
UnifiedPipelineStudioProps,
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { i as p } from "./index-B8V8VcUH.js";
|
|
|
4
4
|
import { i as m } from "./index-CByF0fxE.js";
|
|
5
5
|
import { i as f } from "./index-B9NTZWIh.js";
|
|
6
6
|
import { i as l } from "./index-t0aiNM_A.js";
|
|
7
|
-
import { i as h } from "./index-
|
|
7
|
+
import { i as h } from "./index-BPASwTJt.js";
|
|
8
8
|
export {
|
|
9
9
|
t as components,
|
|
10
10
|
p as context,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { conf as t, language as e } from "./typescript-
|
|
1
|
+
import { conf as t, language as e } from "./typescript-C-NtWZ3T.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.40.0(83b3cf23ca80c94cccca7c5b3e48351b220f8e35)
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
i as conf,
|
|
74
74
|
o as language
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=javascript-
|
|
76
|
+
//# sourceMappingURL=javascript-BGyXIl16.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"javascript-
|
|
1
|
+
{"version":3,"file":"javascript-BGyXIl16.js","sources":["../../../node_modules/.pnpm/monaco-editor@0.40.0/node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.js"],"sourcesContent":["/*!-----------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.40.0(83b3cf23ca80c94cccca7c5b3e48351b220f8e35)\n * Released under the MIT license\n * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt\n *-----------------------------------------------------------------------------*/\n\n// src/basic-languages/javascript/javascript.ts\nimport { conf as tsConf, language as tsLanguage } from \"../typescript/typescript.js\";\nvar conf = tsConf;\nvar language = {\n defaultToken: \"invalid\",\n tokenPostfix: \".js\",\n keywords: [\n \"break\",\n \"case\",\n \"catch\",\n \"class\",\n \"continue\",\n \"const\",\n \"constructor\",\n \"debugger\",\n \"default\",\n \"delete\",\n \"do\",\n \"else\",\n \"export\",\n \"extends\",\n \"false\",\n \"finally\",\n \"for\",\n \"from\",\n \"function\",\n \"get\",\n \"if\",\n \"import\",\n \"in\",\n \"instanceof\",\n \"let\",\n \"new\",\n \"null\",\n \"return\",\n \"set\",\n \"static\",\n \"super\",\n \"switch\",\n \"symbol\",\n \"this\",\n \"throw\",\n \"true\",\n \"try\",\n \"typeof\",\n \"undefined\",\n \"var\",\n \"void\",\n \"while\",\n \"with\",\n \"yield\",\n \"async\",\n \"await\",\n \"of\"\n ],\n typeKeywords: [],\n operators: tsLanguage.operators,\n symbols: tsLanguage.symbols,\n escapes: tsLanguage.escapes,\n digits: tsLanguage.digits,\n octaldigits: tsLanguage.octaldigits,\n binarydigits: tsLanguage.binarydigits,\n hexdigits: tsLanguage.hexdigits,\n regexpctl: tsLanguage.regexpctl,\n regexpesc: tsLanguage.regexpesc,\n tokenizer: tsLanguage.tokenizer\n};\nexport {\n conf,\n language\n};\n"],"names":["conf","tsConf","language","tsLanguage"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASG,IAACA,IAAOC,GACPC,IAAW;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AAAA,EACd,UAAU;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAAA,EACD,cAAc,CAAE;AAAA,EAChB,WAAWC,EAAW;AAAA,EACtB,SAASA,EAAW;AAAA,EACpB,SAASA,EAAW;AAAA,EACpB,QAAQA,EAAW;AAAA,EACnB,aAAaA,EAAW;AAAA,EACxB,cAAcA,EAAW;AAAA,EACzB,WAAWA,EAAW;AAAA,EACtB,WAAWA,EAAW;AAAA,EACtB,WAAWA,EAAW;AAAA,EACtB,WAAWA,EAAW;AACxB;","x_google_ignoreList":[0]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
2
|
var Ge = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var C = (e, n, i) => Ge(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-BPASwTJt.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.40.0(83b3cf23ca80c94cccca7c5b3e48351b220f8e35)
|
|
@@ -1864,4 +1864,4 @@ export {
|
|
|
1864
1864
|
A as toRange,
|
|
1865
1865
|
X as toTextEdit
|
|
1866
1866
|
};
|
|
1867
|
-
//# sourceMappingURL=jsonMode-
|
|
1867
|
+
//# sourceMappingURL=jsonMode-ag0SpsuG.js.map
|