jamespot-react-components 1.3.35 → 1.3.36

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.
@@ -12,7 +12,7 @@ export type NativeInputFileProps = DataCy & Omit<ComponentPropsWithoutRef<'input
12
12
  showLoading?: boolean;
13
13
  };
14
14
  export type JRCInputFileProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputFileProps, 'value' | 'onChange'>;
15
- export declare const InputFile: import('react').ForwardRefExoticComponent<DataCy & Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value"> & {
15
+ export declare const InputFile: import('react').ForwardRefExoticComponent<DataCy & Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange"> & {
16
16
  token?: string | undefined;
17
17
  attrName?: string;
18
18
  onLoading?: (state: boolean) => void;
@@ -42,7 +42,7 @@ export declare const FlexBoxTreeDescription: import('styled-components/dist/type
42
42
  export declare const NoResult: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
43
43
  export declare const WrapperList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
44
44
  export declare const ModalContentList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
45
- export declare const NoOptionList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "inline" | "flex" | "position" | "x" | "y" | "padding" | "margin" | "textAlign" | "data-testid" | "direction" | "gap" | "childFull"> & Omit<import('../../../Common/FastCss').FastCssProps, "display"> & {
45
+ export declare const NoOptionList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "margin" | "padding" | "inline" | "flex" | "position" | "x" | "y" | "textAlign" | "data-testid" | "direction" | "gap" | "childFull"> & Omit<import('../../../Common/FastCss').FastCssProps, "display"> & {
46
46
  direction?: import('../../../JRCFlex/JRCFlexBox').FlexDirection;
47
47
  inline?: boolean;
48
48
  flex?: boolean | string;
@@ -1,5 +1,5 @@
1
1
  export declare const mock_api_network_default: Pick<import('jamespot-user-api').Network, "token" | "postFile" | "getUrl">;
2
2
  export declare const mock_api_network_excel: Pick<import('jamespot-user-api').Network, "token" | "postFile" | "getUrl">;
3
- export declare const mock_api_datasource_excel: Omit<import('jamespot-user-api').JDatasourceApi, "jApi" | "network">;
4
- export declare const mock_api_datasource_studio: Omit<import('jamespot-user-api').JDatasourceApi, "jApi" | "network">;
3
+ export declare const mock_api_datasource_excel: Omit<import('jamespot-user-api').JDatasourceApi, "network" | "jApi">;
4
+ export declare const mock_api_datasource_studio: Omit<import('jamespot-user-api').JDatasourceApi, "network" | "jApi">;
5
5
  export declare const mock_api_application: Pick<import('jamespot-user-api').JApplicationApi, "studioGet" | "studioList">;
package/eslint.config.js CHANGED
@@ -47,6 +47,17 @@ export default [
47
47
  'import/no-cycle': 'error',
48
48
  'import/no-unresolved': 'error',
49
49
  'no-console': ['error', { allow: ['warn', 'error'] }],
50
+ 'no-restricted-imports': [
51
+ 'error',
52
+ {
53
+ patterns: [
54
+ {
55
+ group: ['src/*'],
56
+ message: 'Use relative import (./ ou ../)',
57
+ },
58
+ ],
59
+ },
60
+ ],
50
61
  'react/react-in-jsx-scope': 'off',
51
62
  'react-hooks/refs': 'warn',
52
63
  'react-hooks/set-state-in-effect': 'warn',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.35",
3
+ "version": "1.3.36",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.js",
6
6
  "module": "dist/jamespot-react-components.mjs",
@@ -78,7 +78,7 @@
78
78
  "globals": "^16.5.0",
79
79
  "html2canvas": "^1.4.1",
80
80
  "husky": "^9.1.7",
81
- "jamespot-user-api": "^1.3.35",
81
+ "jamespot-user-api": "^1.3.36",
82
82
  "jest": "^30.2.0",
83
83
  "jest-environment-jsdom": "^30.2.0",
84
84
  "knip": "^5.70.0",