@devtron-labs/devtron-fe-common-lib 0.0.9-beta-3 → 0.0.9-beta-5

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.
@@ -218,6 +218,7 @@ export interface FormType {
218
218
  postBuildStage?: BuildStageType;
219
219
  isDockerConfigOverridden?: boolean;
220
220
  dockerConfigOverride?: DockerConfigOverrideType;
221
+ isOffendingMandatoryPlugin?: boolean;
221
222
  }
222
223
  export interface ErrorObj {
223
224
  isValid: boolean;
@@ -47,7 +47,7 @@ export interface TippyCustomizedProps {
47
47
  theme: TippyTheme;
48
48
  visible?: boolean;
49
49
  heading?: ReactNode | string;
50
- headingInfo?: string;
50
+ headingInfo?: ReactNode | string;
51
51
  noHeadingBorder?: boolean;
52
52
  infoTextHeading?: string;
53
53
  placement: Placement;
@@ -304,7 +304,7 @@ export declare enum PluginRequiredStage {
304
304
  POST_CI = "postBuildStage",
305
305
  PRE_OR_POST_CI = "PRE_OR_POST_CI"
306
306
  }
307
- interface DefinitionSourceType {
307
+ export interface DefinitionSourceType {
308
308
  projectName: string;
309
309
  isDueToProductionEnvironment: boolean;
310
310
  isDueToLinkedPipeline: boolean;
package/dist/index.js CHANGED
@@ -8694,7 +8694,7 @@ function TippyCustomized(props) {
8694
8694
  var Icon = props.Icon, iconPath = props.iconPath, iconClass = props.iconClass, iconSize = props.iconSize, onImageLoadError = props.onImageLoadError, heading = props.heading, headingInfo = props.headingInfo, infoTextHeading = props.infoTextHeading, infoText = props.infoText, showCloseButton = props.showCloseButton, additionalContent = props.additionalContent, documentationLink = props.documentationLink, documentationLinkText = props.documentationLinkText;
8695
8695
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: "dc__word-break dc__hyphens-auto flex left ".concat(isWhiteTheme
8696
8696
  ? "p-12 cn-9 ".concat(props.noHeadingBorder ? '' : 'dc__border-bottom-n1')
8697
- : 'pt-20 pb-12 pr-20 pl-20 cn-0 top') }, { children: [iconPath ? (jsxRuntime.jsx("img", { className: "icon-dim-".concat(iconSize || 20, " mr-6 ").concat(iconClass || ''), src: iconPath, alt: "Heading", onError: onImageLoadError })) : (Icon && (jsxRuntime.jsx("div", __assign({ className: "icon-dim-".concat(iconSize || 20, " mr-6") }, { children: jsxRuntime.jsx(Icon, { className: "icon-dim-".concat(iconSize || 20, " ").concat(iconClass || '') }) })))), heading && jsxRuntime.jsx("span", __assign({ className: "fs-14 fw-6 lh-20 ".concat(showCloseButton ? 'mr-6' : '') }, { children: heading })), headingInfo && (jsxRuntime.jsx("div", __assign({ className: "icon-dim-20 cursor", onClick: toggleHeadingInfo }, { children: jsxRuntime.jsx(SvgIcHelp, { className: "icon-dim-20" }) }))), showCloseButton && (jsxRuntime.jsx("div", __assign({ className: "icon-dim-16 ml-auto" }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-16 cursor ".concat(isWhiteTheme ? 'fcn-9' : 'fcn-0'), onClick: closeTippy }) })))] })), showHeadingInfo && (jsxRuntime.jsxs("div", __assign({ className: "flex left bcv-1 fs-13 fw-4 lh-20 pt-8 pb-8 ".concat(isWhiteTheme ? 'pl-12 pr-12' : 'pl-20 pr-20') }, { children: [jsxRuntime.jsx("div", __assign({ className: "icon-dim-20 mr-8" }, { children: jsxRuntime.jsx(SvgIcHelp, { className: "icon-dim-20 fcv-5" }) })), jsxRuntime.jsx("div", __assign({ className: "dc__word-break dc__hyphens-auto" }, { children: headingInfo }))] }))), infoTextHeading && (jsxRuntime.jsx("div", __assign({ className: "dc__word-break dc__hyphens-auto fs-14 fw-6 lh-20 ".concat(isWhiteTheme ? 'pl-12 pr-12' : 'pl-20 pr-20') }, { children: infoTextHeading }))), infoText && (jsxRuntime.jsx("div", __assign({ className: "dc__word-break dc__hyphens-auto fs-13 fw-4 lh-20 ".concat(isWhiteTheme
8697
+ : 'pt-20 pb-12 pr-20 pl-20 cn-0 top') }, { children: [iconPath ? (jsxRuntime.jsx("img", { className: "icon-dim-".concat(iconSize || 20, " mr-6 ").concat(iconClass || ''), src: iconPath, alt: "Heading", onError: onImageLoadError })) : (Icon && (jsxRuntime.jsx("div", __assign({ className: "icon-dim-".concat(iconSize || 20, " mr-6") }, { children: jsxRuntime.jsx(Icon, { className: "icon-dim-".concat(iconSize || 20, " ").concat(iconClass || '') }) })))), heading && jsxRuntime.jsx("span", __assign({ className: "fs-14 fw-6 lh-20 ".concat(showCloseButton ? 'mr-6' : '') }, { children: heading })), headingInfo && (jsxRuntime.jsx("div", __assign({ className: "icon-dim-20 cursor", onClick: toggleHeadingInfo }, { children: jsxRuntime.jsx(SvgIcHelp, { className: "icon-dim-20" }) }))), showCloseButton && (jsxRuntime.jsx("div", __assign({ className: "icon-dim-16 ml-auto" }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-16 cursor ".concat(isWhiteTheme ? 'fcn-9' : 'fcn-0'), onClick: closeTippy }) })))] })), showHeadingInfo && (jsxRuntime.jsxs("div", __assign({ className: "flex left top bcv-1 fs-13 fw-4 lh-20 pt-8 pb-8 ".concat(isWhiteTheme ? 'pl-12 pr-12' : 'pl-20 pr-20') }, { children: [jsxRuntime.jsx("div", __assign({ className: "icon-dim-20 mr-8" }, { children: jsxRuntime.jsx(SvgIcHelp, { className: "icon-dim-20 fcv-5" }) })), jsxRuntime.jsx("div", __assign({ className: "dc__word-break dc__hyphens-auto" }, { children: headingInfo }))] }))), infoTextHeading && (jsxRuntime.jsx("div", __assign({ className: "dc__word-break dc__hyphens-auto fs-14 fw-6 lh-20 ".concat(isWhiteTheme ? 'pl-12 pr-12' : 'pl-20 pr-20') }, { children: infoTextHeading }))), infoText && (jsxRuntime.jsx("div", __assign({ className: "dc__word-break dc__hyphens-auto fs-13 fw-4 lh-20 ".concat(isWhiteTheme
8698
8698
  ? 'p-12'
8699
8699
  : "pl-20 pr-20 pt-4 ".concat(additionalContent && documentationLink ? 'pb-12' : 'pb-20')) }, { children: infoText }))), additionalContent, documentationLink && (jsxRuntime.jsx("div", __assign({ className: "pl-12 pb-12" }, { children: jsxRuntime.jsx("a", __assign({ href: documentationLink, target: "_blank", rel: "noreferrer noopener", className: "fs-13 cb-5", onClick: closeTippy }, { children: documentationLinkText || 'Learn more' })) })))] }));
8700
8700
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.9-beta-3",
3
+ "version": "0.0.9-beta-5",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -235,6 +235,7 @@ export interface FormType {
235
235
  postBuildStage?: BuildStageType
236
236
  isDockerConfigOverridden?: boolean
237
237
  dockerConfigOverride?: DockerConfigOverrideType
238
+ isOffendingMandatoryPlugin?: boolean
238
239
  }
239
240
 
240
241
  export interface ErrorObj {
@@ -265,12 +266,12 @@ export interface FormErrorObjectType {
265
266
  }
266
267
 
267
268
  export interface PluginDetailType {
268
- id: number
269
- name: string
270
- type: string
271
- description: string
272
- icon: string
273
- tags: string[]
274
- inputVariables?: VariableType[]
275
- outputVariables?: VariableType[]
269
+ id: number
270
+ name: string
271
+ type: string
272
+ description: string
273
+ icon: string
274
+ tags: string[]
275
+ inputVariables?: VariableType[]
276
+ outputVariables?: VariableType[]
276
277
  }
@@ -96,7 +96,7 @@ export function TippyCustomized(props: TippyCustomizedProps) {
96
96
  </div>
97
97
  {showHeadingInfo && (
98
98
  <div
99
- className={`flex left bcv-1 fs-13 fw-4 lh-20 pt-8 pb-8 ${
99
+ className={`flex left top bcv-1 fs-13 fw-4 lh-20 pt-8 pb-8 ${
100
100
  isWhiteTheme ? 'pl-12 pr-12' : 'pl-20 pr-20'
101
101
  }`}
102
102
  >
@@ -53,7 +53,7 @@ export interface TippyCustomizedProps {
53
53
  theme: TippyTheme
54
54
  visible?: boolean
55
55
  heading?: ReactNode | string
56
- headingInfo?: string
56
+ headingInfo?: ReactNode | string
57
57
  noHeadingBorder?: boolean
58
58
  infoTextHeading?: string
59
59
  placement: Placement
@@ -335,7 +335,7 @@ export enum PluginRequiredStage {
335
335
  PRE_OR_POST_CI = 'PRE_OR_POST_CI',
336
336
  }
337
337
 
338
- interface DefinitionSourceType {
338
+ export interface DefinitionSourceType {
339
339
  projectName: string
340
340
  isDueToProductionEnvironment: boolean
341
341
  isDueToLinkedPipeline: boolean