jamespot-react-components 1.0.176 → 1.0.177

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,4 @@
1
+ export declare const InputFileWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
2
  export declare const Grid: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
3
  position?: "right" | "bottom" | undefined;
3
4
  columnCount: number;
@@ -1,10 +1,5 @@
1
1
  import { jFileLittle } from 'jamespot-user-api';
2
2
  import React from 'react';
3
- export type WedocAttachmentOptions = {
4
- active: boolean;
5
- getAccessHash?: (fileId: number) => Promise<string>;
6
- onError: (message?: string) => void;
7
- };
8
3
  export type JRCAttachmentsProps = {
9
4
  files: jFileLittle[];
10
5
  isWedocActive: boolean;
@@ -6,7 +6,10 @@ export type JRCFileViewerProps<T> = {
6
6
  openWithOptions: JRCFileViewerOpenWithOptionsType;
7
7
  children(setIndex: (idFile: number) => void): React.ReactElement<HTMLElement>;
8
8
  };
9
- export type JRCFileViewerOpenWithOptionsType = Record<string, JRCFileViewerOpenWithOptionType[]>;
9
+ export type JRCFileViewerOpenWithOptionsType = Array<{
10
+ condition: (file: jFileLittle) => boolean;
11
+ options: JRCFileViewerOpenWithOptionType[];
12
+ }>;
10
13
  export type JRCFileViewerOpenWithOptionType = {
11
14
  label: string;
12
15
  onClick: (item: jFileLittle | undefined) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.176",
3
+ "version": "1.0.177",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -92,7 +92,7 @@
92
92
  "chroma-js": "^2.1.1",
93
93
  "classnames": "^2.3.1",
94
94
  "dompurify": "^3.0.5",
95
- "jamespot-user-api": "^1.0.147",
95
+ "jamespot-user-api": "^1.0.148",
96
96
  "moment": "2.29.4",
97
97
  "react": "^17.x",
98
98
  "react-beautiful-dnd": "^13.1.1",