jamespot-react-components 1.2.14 → 1.2.16

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.
@@ -277,6 +277,7 @@ export declare const OptionMenu: import("styled-components").StyledComponent<"di
277
277
  theme: import("styled-components").DefaultTheme;
278
278
  } & {
279
279
  sizeVariant?: "s" | "md" | undefined;
280
+ minWidth?: string | false | undefined;
280
281
  }, "slot" | "style" | "title" | "color" | "theme" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">;
281
282
  export declare const SelectedOptionWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
282
283
  export declare const SelectedOption: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
@@ -70,6 +70,7 @@ export type SelectProps<T = any> = DataCy & {
70
70
  loading?: boolean;
71
71
  limit?: number;
72
72
  size?: 'md' | 's';
73
+ minWidth?: string | false;
73
74
  };
74
75
  /**
75
76
  * Autocomplete
@@ -1,3 +1,4 @@
1
1
  export declare const CalendarStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
2
  loading?: boolean | undefined;
3
+ view: 'list' | 'grid';
3
4
  }, never>;
@@ -1,10 +1,16 @@
1
1
  import React from 'react';
2
- import { CalendarEventListAbstractType, CalendarEventWithExtensions } from 'jamespot-user-api';
2
+ import { CalendarEventListAbstractType, CalendarEventWithExtensions, JGlobalApi } from 'jamespot-user-api';
3
3
  export type JRCCalendarProps = {
4
4
  events?: CalendarEventWithExtensions<CalendarEventListAbstractType, ['socialEventRecord']>[];
5
5
  onClickEvent?: (id: number) => void;
6
6
  loading?: boolean;
7
7
  onChangeDates?: (start: Date, end: Date) => void;
8
+ onError: (errorMsg?: string) => void;
9
+ onUpdateActionSuccess: () => void;
10
+ handler: {
11
+ global: Pick<JGlobalApi, 'updateAction'>;
12
+ };
13
+ defaultView: 'calendar' | 'list';
8
14
  };
9
- export type CalendarView = 'dayGridMonth' | 'timeGridWeek' | 'timeGridDay' | 'listWeek';
10
- export declare const JRCCalendar: ({ events, onClickEvent, loading, onChangeDates }: JRCCalendarProps) => React.JSX.Element;
15
+ export type CalendarView = 'dayGridMonth' | 'timeGridWeek' | 'timeGridDay' | 'list';
16
+ export declare const JRCCalendar: ({ events, onClickEvent, loading, onChangeDates, onError, handler, onUpdateActionSuccess, defaultView, }: JRCCalendarProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { CalendarView } from './JRCCalendar';
3
- import { Audience, UserResponseStatus } from 'jamespot-user-api';
3
+ import { Audience, JGlobalApi, UserResponseStatus } from 'jamespot-user-api';
4
4
  export type JRCCalendarMonthEventProps = {
5
5
  id: string;
6
6
  title: string;
@@ -13,5 +13,14 @@ export type JRCCalendarMonthEventProps = {
13
13
  allDay?: boolean;
14
14
  textColor?: string;
15
15
  backgroundColor?: string;
16
+ address?: string;
17
+ image: boolean;
18
+ type: string;
19
+ isVisio?: boolean;
20
+ handler: {
21
+ global: Pick<JGlobalApi, 'updateAction'>;
22
+ };
23
+ onError: (errMsg?: string) => void;
24
+ onUpdateSuccess: () => void;
16
25
  };
17
- export declare const JRCCalendarEvent: ({ status, title, start, end, display, id: stringId, onClick, audience, allDay, textColor, backgroundColor, }: JRCCalendarMonthEventProps) => React.JSX.Element | null;
26
+ export declare const JRCCalendarEvent: ({ status, title, start, end, display, id: stringId, onClick, audience, allDay, textColor, backgroundColor, address, image, type, isVisio, handler, onError, onUpdateSuccess, }: JRCCalendarMonthEventProps) => React.JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -100,7 +100,7 @@
100
100
  "chroma-js": "^2.1.1",
101
101
  "classnames": "^2.3.1",
102
102
  "dompurify": "^3.0.5",
103
- "jamespot-user-api": "^1.2.14",
103
+ "jamespot-user-api": "^1.2.16",
104
104
  "react": "^17.x",
105
105
  "react-beautiful-dnd": "^13.1.1",
106
106
  "react-dnd": "^14.0.4",