jamespot-react-components 1.0.146 → 1.0.147

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.
Files changed (48) hide show
  1. package/build/assets/gif.605d1d151a01356b376d5c4ac2f40d19.png +0 -0
  2. package/build/jamespot-react-components.js +538 -571
  3. package/build/jamespot-react-components.js.map +1 -1
  4. package/build/src/components/Common/FastCss.d.ts +1 -0
  5. package/build/src/components/Editors/components/EditorInput.d.ts +2 -1
  6. package/build/src/components/Editors/components/EditorSelect.d.ts +2 -1
  7. package/build/src/components/Editors/components/EditorUploader.d.ts +2 -2
  8. package/build/src/components/Form/Input/JRCFormFile/File.d.ts +2 -2
  9. package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.d.ts +3 -3
  10. package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.styles.d.ts +1 -1
  11. package/build/src/components/Form/Input/JRCFormFile/file.api.d.ts +15 -2
  12. package/build/src/components/Form/Input/JRCInputFile/JRCInputFile.d.ts +5 -5
  13. package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.d.ts +3 -5
  14. package/build/src/components/JRCButton/JRCButton.d.ts +2 -2
  15. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +1 -1
  16. package/build/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +12 -0
  17. package/build/src/components/JRCEmptySpace/JRCEmptySpace.stories.d.ts +4 -0
  18. package/build/src/components/JRCFile/JRCFileImage.d.ts +3 -0
  19. package/build/src/components/JRCFileViewer/JRCFileViewer.d.ts +13 -2
  20. package/build/src/components/JRCFileViewer/JRCFileViewer.styles.d.ts +1 -0
  21. package/build/src/components/JRCFileViewer/JRCFileViewerArrows.d.ts +6 -2
  22. package/build/src/components/JRCFileViewer/JRCFileViewerContent.d.ts +5 -4
  23. package/build/src/components/JRCFileViewer/JRCFileViewerContentApplication.d.ts +3 -2
  24. package/build/src/components/JRCFileViewer/JRCFileViewerOpenWithOptions.d.ts +3 -2
  25. package/build/src/components/JRCFileViewer/types.d.ts +3 -9
  26. package/build/src/components/JRCFileViewer/utils.d.ts +4 -4
  27. package/build/src/components/JRCHref/JRCHref.d.ts +2 -1
  28. package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.styles.d.ts +1 -1
  29. package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.d.ts +4 -4
  30. package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.stories.d.ts +7 -0
  31. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.d.ts +6 -16
  32. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.stories.d.ts +8 -0
  33. package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.d.ts +5 -5
  34. package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.stories.d.ts +8 -0
  35. package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +7 -0
  36. package/build/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitle.d.ts +6 -3
  37. package/build/src/components/Widgets/const.d.ts +0 -4
  38. package/build/src/components/Widgets/utils.d.ts +3 -3
  39. package/build/src/hooks/useRefSize.d.ts +6 -0
  40. package/build/src/index.d.ts +3 -0
  41. package/build/src/styles/theme.d.ts +1 -1
  42. package/build/src/types.d.ts +1 -0
  43. package/build/src/utils/index.d.ts +4 -2
  44. package/build/src/utils/utils.color.d.ts +2 -0
  45. package/build/src/utils/utils.files.d.ts +113 -2
  46. package/package.json +2 -2
  47. package/build/src/components/Widgets/components/Attachment.d.ts +0 -34
  48. package/build/src/components/Widgets/components/Image.d.ts +0 -10
@@ -1,6 +1,117 @@
1
- export declare function fileExtension(mimetype: string): string;
2
1
  export declare function fileAvatar(mimetype: string): {
3
- ext: string;
2
+ path: any;
3
+ colors: {
4
+ primary: string;
5
+ light: string;
6
+ dark: string;
7
+ };
8
+ ext: "jpg" | "jpeg" | "png";
9
+ } | {
10
+ ext: "gif";
11
+ path: string;
12
+ colors: {
13
+ primary: string;
14
+ light: string;
15
+ dark: string;
16
+ };
17
+ } | {
18
+ ext: "docx" | "odt";
19
+ path: string;
20
+ colors: {
21
+ primary: string;
22
+ light: string;
23
+ dark: string;
24
+ };
25
+ } | {
26
+ ext: "xlsx" | "csv";
27
+ path: string;
28
+ colors: {
29
+ primary: string;
30
+ light: string;
31
+ dark: string;
32
+ };
33
+ } | {
34
+ ext: "pptx";
35
+ path: string;
36
+ colors: {
37
+ primary: string;
38
+ light: string;
39
+ dark: string;
40
+ };
41
+ } | {
42
+ ext: "pdf";
43
+ path: string;
44
+ colors: {
45
+ primary: string;
46
+ light: string;
47
+ dark: string;
48
+ };
49
+ } | {
50
+ ext: "zip";
51
+ path: string;
52
+ colors: {
53
+ primary: string;
54
+ light: string;
55
+ dark: string;
56
+ };
57
+ } | {
58
+ ext: "mp3" | "mpeg";
59
+ path: string;
60
+ colors: {
61
+ primary: string;
62
+ light: string;
63
+ dark: string;
64
+ };
65
+ } | {
66
+ ext: "mp4";
67
+ path: string;
68
+ colors: {
69
+ primary: string;
70
+ light: string;
71
+ dark: string;
72
+ };
73
+ } | {
74
+ ext: "svg";
75
+ path: string;
76
+ colors: {
77
+ primary: string;
78
+ light: string;
79
+ dark: string;
80
+ };
81
+ } | {
82
+ ext: "psd";
83
+ path: string;
84
+ colors: {
85
+ primary: string;
86
+ light: string;
87
+ dark: string;
88
+ };
89
+ } | {
90
+ ext: "ttf" | "otf";
91
+ path: string;
92
+ colors: {
93
+ primary: string;
94
+ light: string;
95
+ dark: string;
96
+ };
97
+ } | {
98
+ ext: "ai";
99
+ path: string;
100
+ colors: {
101
+ primary: string;
102
+ light: string;
103
+ dark: string;
104
+ };
105
+ } | {
106
+ ext: "txt";
107
+ path: string;
108
+ colors: {
109
+ primary: string;
110
+ light: string;
111
+ dark: string;
112
+ };
113
+ } | {
114
+ ext: "webm";
4
115
  path: string;
5
116
  colors: {
6
117
  primary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.146",
3
+ "version": "1.0.147",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -89,7 +89,7 @@
89
89
  "chroma-js": "^2.1.1",
90
90
  "classnames": "^2.3.1",
91
91
  "dompurify": "^3.0.5",
92
- "jamespot-user-api": "^1.0.116",
92
+ "jamespot-user-api": "^1.0.119",
93
93
  "moment": "^2.29.1",
94
94
  "react": "^17.x",
95
95
  "react-beautiful-dnd": "^13.1.1",
@@ -1,34 +0,0 @@
1
- import { WidgetFileType } from 'jamespot-user-api';
2
- import React from 'react';
3
- export declare const CSSAttachment: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
4
- export declare const CSSAttachmentImage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5
- width: number;
6
- height: number;
7
- backgroundColor: string;
8
- }, never>;
9
- export declare const CSSAttachmentLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
- export declare const CSSAttachmentOption: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
11
- width: number;
12
- height: number;
13
- }, never>;
14
- export declare const AttachmentImage: ({ width, height, file, }: {
15
- width: number;
16
- height: number;
17
- file: WidgetFileType;
18
- }) => React.JSX.Element;
19
- export declare const AttachmentLabel: ({ file }: {
20
- file: WidgetFileType;
21
- }) => React.JSX.Element;
22
- export declare const AttachmentOption: ({ name, width, height, onClick, }: {
23
- name: string;
24
- width: number;
25
- height: number;
26
- onClick?: (() => void) | undefined;
27
- }) => React.JSX.Element;
28
- export declare const Attachment: ({ file, width, onClickRemove, onClickDownload, }: {
29
- file: WidgetFileType;
30
- width?: number | undefined;
31
- onClickRemove?: (() => void) | undefined;
32
- onClickRemoveWithPrompt?: (() => void) | undefined;
33
- onClickDownload?: (() => void) | undefined;
34
- }) => React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { CSSBackgroundPosition, CSSBackgroundSize } from 'jamespot-user-api';
3
- type ImageProps = {
4
- url: string;
5
- displayAs?: 'image' | 'background';
6
- backgroundPosition?: CSSBackgroundPosition;
7
- backgroundSize?: CSSBackgroundSize;
8
- };
9
- export declare const Image: ({ url, displayAs, backgroundPosition, backgroundSize, }: ImageProps) => React.JSX.Element;
10
- export {};