jamespot-react-components 1.3.113 → 1.3.114

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,7 +1,7 @@
1
1
  export declare const StyleRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
2
  $opacity?: number;
3
3
  }>> & string;
4
- export declare const StyleRowBtn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
4
+ export declare const StyleRowBtn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, never>, never>> & string;
5
5
  export declare const StyleRowLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
6
  export declare const StyleRowTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
7
7
  $color: string | undefined;
@@ -16,6 +16,7 @@ export type JRCFoldersMode = 'view' | 'folder-selection' | 'document-selection'
16
16
  export type JRCFoldersSettings = {
17
17
  hidePreview?: boolean;
18
18
  hideExtension?: boolean;
19
+ hideFolderCount?: boolean;
19
20
  textColor?: string;
20
21
  view?: WidgetDocumentsContent['view'];
21
22
  maxHeight?: number;
@@ -1,11 +1,9 @@
1
1
  import { jArticleView, jFolderList } from 'jamespot-user-api';
2
- import { FolderTree, JRCFoldersMode, PathItem } from './types';
3
- export declare const useFilebankApi: ({ mode, abortController, handleError, }: {
4
- mode: JRCFoldersMode;
2
+ import { FolderTree, PathItem } from './types';
3
+ export declare const useFilebankApi: ({ abortController, handleError, }: {
5
4
  abortController: AbortController;
6
5
  handleError?: (message: string) => void;
7
6
  }) => {
8
- fetchRoot: (uri: string) => Promise<void>;
9
7
  fetchBanks: () => Promise<void>;
10
8
  fetchFolders: (uri: string) => Promise<void>;
11
9
  fetchDocuments: (uri: string) => Promise<void>;
@@ -1,8 +1,7 @@
1
1
  import { jFolderList } from 'jamespot-user-api';
2
- export declare const useFilebankSearchApi: ({ abortController }: {
3
- abortController: AbortController;
4
- }) => {
2
+ export declare const useFilebankSearchApi: () => {
5
3
  isSearchLoading: boolean;
6
4
  searchResult: jFolderList[];
7
5
  searchContent: (query: string, uri: string, isRoot: boolean) => void;
6
+ resetSearch: () => void;
8
7
  };
@@ -0,0 +1,12 @@
1
+ import { ApplicationType, WidgetApplicationItem } from 'jamespot-user-api';
2
+ export type AppPickerModalProps = {
3
+ open: boolean;
4
+ apps: ApplicationType[];
5
+ token?: string;
6
+ initialItem?: WidgetApplicationItem;
7
+ onClose: () => void;
8
+ onConfirm: (item: WidgetApplicationItem) => void;
9
+ onAdd?: (item: WidgetApplicationItem) => void;
10
+ usedAppNames?: string[];
11
+ };
12
+ export declare const AppPickerModal: ({ open, apps, token, initialItem, onClose, onConfirm, onAdd, usedAppNames, }: AppPickerModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { WidgetApplicationSize } from 'jamespot-user-api';
2
+ import { ResolvedTile } from './JRCWidgetApplication.utils';
3
+ export type AppTileProps = {
4
+ tile: ResolvedTile;
5
+ size: WidgetApplicationSize;
6
+ view: 'gallery' | 'list';
7
+ fontColor?: string;
8
+ };
9
+ export declare const AppTile: ({ tile, size, view, fontColor }: AppTileProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,39 @@
1
+ export declare const SIZE_LARGE = 1;
2
+ export declare const SIZE_SMALL = 2;
3
+ export declare const ICON_BOX_SM = 50;
4
+ export declare const ICON_BOX_LG = 72;
5
+ export declare const ICON_MARGIN_SM = 11;
6
+ export declare const ICON_MARGIN_LG = 14;
7
+ export declare const ICON_FONT_SM = 24;
8
+ export declare const ICON_FONT_LG = 38;
9
+ export declare const APP_TEXT_FONT_SM = 11;
10
+ export declare const LIST_ICON_BOX = 50;
11
+ export declare const LIST_APPS_CIRCLE = 50;
12
+ export declare const LIST_LINK_CIRCLE = 40;
13
+ export declare const LIST_IMAGE_BOX = 36;
14
+ export declare const LIST_APPS_FONT = 24;
15
+ export declare const LIST_LINK_FONT = 25;
16
+ export declare const LIST_EXTENSION_PADDING = 7;
17
+ export declare const DEFAULT_APPS_PER_LINE = 1;
18
+ export declare const VIEW_OPTIONS: ({
19
+ label: string;
20
+ value: "list";
21
+ } | {
22
+ label: string;
23
+ value: "gallery";
24
+ })[];
25
+ export declare const SIZE_OPTIONS: {
26
+ label: string;
27
+ value: number;
28
+ }[];
29
+ export declare const YES_NO_OPTIONS: {
30
+ label: string;
31
+ value: boolean;
32
+ }[];
33
+ export type AppExtension = {
34
+ name: string;
35
+ img: string;
36
+ title: string;
37
+ url: string;
38
+ };
39
+ export declare const APP_EXTENSIONS: AppExtension[];
@@ -0,0 +1,8 @@
1
+ import { ApplicationType, WidgetApplicationContent } from 'jamespot-user-api';
2
+ export type JRCWidgetApplicationProps = {
3
+ content: WidgetApplicationContent;
4
+ apps: ApplicationType[];
5
+ isLoading?: boolean;
6
+ unusedAppLabel?: string;
7
+ };
8
+ export declare const JRCWidgetApplication: ({ content, apps, isLoading, unusedAppLabel }: JRCWidgetApplicationProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryFn } from '@storybook/react-vite';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const GallerySmall: StoryFn;
5
+ export declare const GalleryLarge: StoryFn;
6
+ export declare const ListView: StoryFn;
7
+ export declare const Loading: StoryFn;
@@ -0,0 +1,20 @@
1
+ import { ApplicationType, WidgetApplicationItem } from 'jamespot-user-api';
2
+ export type ResolvedTileTab = 'apps' | 'links' | 'default' | 'image' | 'extensions';
3
+ export type ResolvedTile = {
4
+ key: string;
5
+ tab: ResolvedTileTab;
6
+ href: string;
7
+ label: string;
8
+ target: '_blank' | '_self';
9
+ rel?: string;
10
+ hidden: boolean;
11
+ icon?: string;
12
+ color?: string;
13
+ customImageUri?: string;
14
+ backgroundColor?: string;
15
+ iconColor?: string;
16
+ img?: string;
17
+ };
18
+ export declare const generateAppId: () => string;
19
+ export declare const resolveTile: (item: WidgetApplicationItem, apps: ApplicationType[], index: number, unusedAppLabel: string) => ResolvedTile;
20
+ export declare const resolveTiles: (selection: WidgetApplicationItem[], apps: ApplicationType[], unusedAppLabel: string) => ResolvedTile[];
@@ -0,0 +1,8 @@
1
+ import { WidgetApplicationContent } from 'jamespot-user-api';
2
+ export interface JRCWidgetApplicationEditorProps {
3
+ uniqid: string;
4
+ content: WidgetApplicationContent;
5
+ token?: string;
6
+ onChangeContent: (uniqid: string, content: WidgetApplicationContent) => void;
7
+ }
8
+ export declare const JRCWidgetApplicationEditor: ({ uniqid, content, token, onChangeContent, }: JRCWidgetApplicationEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -180,6 +180,8 @@ export { JRCWidgetArticleAttachmentEditor } from './Widgets/JRCWidgetAttachment/
180
180
  export { JRCWidgetAttachment } from './Widgets/JRCWidgetAttachment/JRCWidgetAttachment';
181
181
  export { JRCWidgetBirthday } from './Widgets/JRCWidgetBirthday/JRCWidgetBirthday';
182
182
  export { JRCWidgetBirthdayEditor } from './Widgets/JRCWidgetBirthday/JRCWidgetBirthdayEditor';
183
+ export { JRCWidgetApplication } from './Widgets/JRCWidgetApplication/JRCWidgetApplication';
184
+ export { JRCWidgetApplicationEditor } from './Widgets/JRCWidgetApplication/JRCWidgetApplicationEditor';
183
185
  export { JRCWidgetButton } from './Widgets/JRCWidgetButton/JRCWidgetButton';
184
186
  export { JRCWidgetCalendarCalDav } from './Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDav';
185
187
  export { JRCWidgetCalendarCalDavEditor } from './Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDavEditor';
@@ -296,9 +296,6 @@ declare const _default: {
296
296
  "GLOBAL_Form_SendAlert": "Send the alert email to those who have requested it",
297
297
  "GLOBAL_Go_To_Content": "Go to content",
298
298
  "GLOBAL_Groups": "Groups",
299
- "GLOBAL_IframeVideo_InvalidUrl": "Invalid or unsafe URL",
300
- "GLOBAL_IframeVideo_OpenInNewTab": "Open video in a new tab",
301
- "GLOBAL_IframeVideo_Play": "Play video",
302
299
  "GLOBAL_Image": "Image",
303
300
  "GLOBAL_Image_Format_Image": "Image",
304
301
  "GLOBAL_Image_Format_Banner": "Banner",
@@ -613,7 +610,29 @@ declare const _default: {
613
610
  "WIDGET_Youtube_Url": "Video URL",
614
611
  "WIDGET_Youtube": "Video",
615
612
  "WIDGET_Youtube_Text": "Embed a YouTube video",
616
- "WIDGET_Youtube_InvalidUrl_FieldError": "Enter a valid YouTube URL"
613
+ "WIDGET_Youtube_InvalidUrl_FieldError": "Enter a valid YouTube URL",
614
+ "WIDGET_APPLICATION": "Applications",
615
+ "WIDGET_APPLICATION_TEXT": "Display a grid of shortcuts to your applications, links and tools.",
616
+ "WIDGET_Select_Application": "Select an application",
617
+ "WIDGET_Display": "Display",
618
+ "WIDGET_Application_Number_Per_Line": "Number per line",
619
+ "WIDGET_Application_Unused_App": "Unused application",
620
+ "GLOBAL_List": "List",
621
+ "GLOBAL_Gallery": "Gallery",
622
+ "WIDGET_Gallery": "Gallery",
623
+ "SELECTION_Panel_Text_Color": "Text color",
624
+ "DW_Icon_Title": "Title",
625
+ "DW_Icon_Link": "Link",
626
+ "APP_Selection_Apps": "Applications",
627
+ "APP_Selection_Extensions": "Extensions",
628
+ "ADMIN_Add_Link": "Add a link",
629
+ "SMARTPAGE_Link_Target": "Open in a new tab",
630
+ "GLOBAL_No_Referer_Url": "No referrer",
631
+ "GLOBAL_Background_Color": "Background color",
632
+ "GLOBAL_Icon_Color": "Icon color",
633
+ "GLOBAL_Duplicate": "Duplicate",
634
+ "SPOTIT_Add_Picture": "Add a picture",
635
+ "DW_Add_Icon": "Add icon"
617
636
  }
618
637
  }
619
638
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.113",
3
+ "version": "1.3.114",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.cjs",
6
6
  "module": "dist/jamespot-react-components.js",
@@ -60,8 +60,8 @@
60
60
  "eslint-plugin-storybook": "10.3.6",
61
61
  "globals": "^16.5.0",
62
62
  "html2canvas": "^1.4.1",
63
- "jamespot-front-business": "^1.3.112",
64
- "jamespot-user-api": "^1.3.113",
63
+ "jamespot-front-business": "^1.3.114",
64
+ "jamespot-user-api": "^1.3.114",
65
65
  "jsdom": "^26.1.0",
66
66
  "knip": "^5.88.1",
67
67
  "lint-staged": "^16.4.0",