@devtron-labs/devtron-fe-common-lib 1.0.4-beta-4 → 1.0.4-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.
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "id" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "action" | "disabled" | "name" | "target" | "tagName" | "autoComplete" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "method" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "id" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "action" | "name" | "disabled" | "target" | "tagName" | "autoComplete" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "method" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
@@ -640,7 +640,7 @@ interface CommonTabArgsType {
640
640
  isSelected: boolean;
641
641
  title?: string;
642
642
  isDeleted?: boolean;
643
- position: number;
643
+ type: 'fixed' | 'dynamic';
644
644
  iconPath?: string;
645
645
  dynamicTitle?: string;
646
646
  showNameOnSelect?: boolean;
@@ -667,13 +667,24 @@ interface CommonTabArgsType {
667
667
  */
668
668
  shouldRemainMounted?: boolean;
669
669
  }
670
- export interface InitTabType extends CommonTabArgsType {
670
+ export type InitTabType = Omit<CommonTabArgsType, 'type'> & ({
671
+ type: 'fixed';
672
+ /**
673
+ * Unique identifier for the fixed tab
674
+ *
675
+ * Note: Shouldn't contain '-'
676
+ */
677
+ id: string;
678
+ idPrefix?: never;
679
+ } | {
680
+ type: 'dynamic';
681
+ id?: never;
671
682
  idPrefix: string;
672
- }
683
+ });
673
684
  export interface DynamicTabType extends CommonTabArgsType {
674
685
  id: string;
675
686
  /**
676
- * Id of the tab from which the current tab is opened
687
+ * Id of the last active tab before switching to current tab
677
688
  */
678
689
  lastActiveTabId: string | null;
679
690
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.0.4-beta-4",
3
+ "version": "1.0.4-beta-5",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",