@cayuse-test/react 1.0.5 → 1.0.7

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.
@@ -608,6 +608,40 @@ interface UserOption extends Record<string, unknown> {
608
608
  unitName?: string;
609
609
  }>;
610
610
  }
611
+ interface UserSelectOption<T> {
612
+ value: string;
613
+ label: string;
614
+ isExpanded?: boolean;
615
+ user: {
616
+ id: string;
617
+ userAccountId?: string;
618
+ personId?: string;
619
+ firstName: string;
620
+ lastName: string;
621
+ fullName?: string;
622
+ email?: string;
623
+ unitName?: string;
624
+ profileTypes?: string;
625
+ };
626
+ isExpandAll?: boolean;
627
+ }
628
+ declare function normalizeUserToOption<T extends UserOption>(userOrPersonObject: T): {
629
+ value: string;
630
+ label: string;
631
+ isExpanded: false;
632
+ user: {
633
+ id: string;
634
+ userAccountId: string | undefined;
635
+ personId: string | undefined;
636
+ fullName: string | undefined;
637
+ firstName: string;
638
+ lastName: string;
639
+ email: string | undefined;
640
+ unitName: string;
641
+ profileTypes: string;
642
+ };
643
+ };
644
+ declare function UserComboboxOption(props: any): react_jsx_runtime.JSX.Element;
611
645
 
612
646
  interface UserSelectProps<T> extends ComboboxProps {
613
647
  load(params: {
@@ -1468,4 +1502,4 @@ declare const TaskTitleCell: React__default.NamedExoticComponent<TaskTitleCellPr
1468
1502
  */
1469
1503
  declare const dateToTimezoneDate: (date: Date | null, timezone?: string) => Date | null;
1470
1504
 
1471
- export { AccordionAttachmentsForm, AccordionFormWrapper, type AccordionFormWrapperProps, AlertDialog, type Attachment, type AttachmentType, AttachmentsForm, type AttachmentsFormProps, BannerNotifications, BasePadding, type BreadcrumbItem, type BreadcrumbProps, Breadcrumbs, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CayuseCommonHeader, Checkbox, type CheckboxProps, ClockIcon, type Column, Combobox, type ComboboxOption, type ComboboxProps, ConfirmationModal, type ConfirmationModalProps, CovertButton, CustomDropdown, type CustomDropdownProps, DateSelector, Divider, DropdownMenu, type DropdownMenuProps, DynamicTable, type DynamicTableColumn, type DynamicTableProps, type DynamicTableRow, type FileData, FileUpload, type FileUploadProps, FormNoteAttachmentsView, type FormNoteAttachmentsViewProps, FormattedDate, type FormattedDateProps, FormattedDatetime, type FormattedDatetimeProps, FormattedRichText, type FormattedRichTextProps, FormattedValue, type FormattedValueProps, Icon, IconButton, type IconButtonProps, type IconProps, Input, type InputProps, LinkToMilestone, LoadingIndicator, MilestoneForm, MilestoneProgress, MilestoneProgressView, ModalDialog, MultiFileUpload, type MultiFileUploadProps, NavLink, type Note, type NoteWithAttachments, Number, type NumberProps, type OnSortChange, type Option$1 as Option, PaddedCell, Pagination, Pendo, Popup, type PopupProps, PreventLeaveDialog, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RenderCellCallback, RichText, type RichTextProps, type Row, type RowSelectionChangeArgs, SectionHeader, type SectionHeaderProps, SetView, type SetViewProps, type SortDirection, SubHeader, Submenu, Tabs, MemoizedTaskFormComponent as TaskForm, TaskFormHeader, TaskTitleCell, type TaskWithVariables, TextArea, type TextAreaProps, Toggle, type UploadResource, type UseUploadServiceReturn, UserSelect, type UserSelectProps, adminLoadOptions, baseClearIcon, dateToTimezoneDate, findFirstActiveAttachmentType, linkTasksToMilestone, notify, setDictionary, setLoginTenantId, useActiveColumns };
1505
+ export { AccordionAttachmentsForm, AccordionFormWrapper, type AccordionFormWrapperProps, AlertDialog, type Attachment, type AttachmentType, AttachmentsForm, type AttachmentsFormProps, BannerNotifications, BasePadding, type BreadcrumbItem, type BreadcrumbProps, Breadcrumbs, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CayuseCommonHeader, Checkbox, type CheckboxProps, ClockIcon, type Column, Combobox, type ComboboxOption, type ComboboxProps, ConfirmationModal, type ConfirmationModalProps, CovertButton, CustomDropdown, type CustomDropdownProps, DateSelector, Divider, DropdownMenu, type DropdownMenuProps, DynamicTable, type DynamicTableColumn, type DynamicTableProps, type DynamicTableRow, type FileData, FileUpload, type FileUploadProps, FormNoteAttachmentsView, type FormNoteAttachmentsViewProps, FormattedDate, type FormattedDateProps, FormattedDatetime, type FormattedDatetimeProps, FormattedRichText, type FormattedRichTextProps, FormattedValue, type FormattedValueProps, Icon, IconButton, type IconButtonProps, type IconProps, Input, type InputProps, LinkToMilestone, LoadingIndicator, MilestoneForm, MilestoneProgress, MilestoneProgressView, ModalDialog, MultiFileUpload, type MultiFileUploadProps, NavLink, type Note, type NoteWithAttachments, Number, type NumberProps, type OnSortChange, type Option$1 as Option, PaddedCell, Pagination, Pendo, Popup, type PopupProps, PreventLeaveDialog, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RenderCellCallback, RichText, type RichTextProps, type Row, type RowSelectionChangeArgs, SectionHeader, type SectionHeaderProps, SetView, type SetViewProps, type SortDirection, SubHeader, Submenu, Tabs, MemoizedTaskFormComponent as TaskForm, TaskFormHeader, TaskTitleCell, type TaskWithVariables, TextArea, type TextAreaProps, Toggle, type UploadResource, type UseUploadServiceReturn, UserComboboxOption, type UserOption, UserSelect, type UserSelectOption, type UserSelectProps, adminLoadOptions, baseClearIcon, dateToTimezoneDate, findFirstActiveAttachmentType, linkTasksToMilestone, normalizeUserToOption, notify, setDictionary, setLoginTenantId, useActiveColumns };
@@ -55,17 +55,19 @@ import {
55
55
  TaskTitleCell,
56
56
  TextArea,
57
57
  Toggle,
58
+ UserComboboxOption,
58
59
  UserSelect,
59
60
  adminLoadOptions,
60
61
  baseClearIcon,
61
62
  dateToTimezoneDate,
62
63
  findFirstActiveAttachmentType,
63
64
  linkTasksToMilestone,
65
+ normalizeUserToOption,
64
66
  notify,
65
67
  setDictionary,
66
68
  setLoginTenantId,
67
69
  useActiveColumns
68
- } from "../chunk-JKHZBLRB.js";
70
+ } from "../chunk-MLVINKXL.js";
69
71
  import "../chunk-BVB7EXJY.js";
70
72
  import "../chunk-QPEQWFAR.js";
71
73
  import "../chunk-HRVK43NB.js";
@@ -129,12 +131,14 @@ export {
129
131
  TaskTitleCell,
130
132
  TextArea,
131
133
  Toggle,
134
+ UserComboboxOption,
132
135
  UserSelect,
133
136
  adminLoadOptions,
134
137
  baseClearIcon,
135
138
  dateToTimezoneDate,
136
139
  findFirstActiveAttachmentType,
137
140
  linkTasksToMilestone,
141
+ normalizeUserToOption,
138
142
  notify,
139
143
  setDictionary,
140
144
  setLoginTenantId,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { AccordionAttachmentsForm, AccordionFormWrapper, AccordionFormWrapperProps, AlertDialog, Attachment, AttachmentType, AttachmentsForm, AttachmentsFormProps, BannerNotifications, BasePadding, BreadcrumbItem, BreadcrumbProps, Breadcrumbs, Button, ButtonGroup, ButtonGroupProps, ButtonProps, CayuseCommonHeader, Checkbox, CheckboxProps, ClockIcon, Column, Combobox, ComboboxOption, ComboboxProps, ConfirmationModal, ConfirmationModalProps, CovertButton, CustomDropdown, CustomDropdownProps, DateSelector, Divider, DropdownMenu, DropdownMenuProps, DynamicTable, DynamicTableColumn, DynamicTableProps, DynamicTableRow, FileData, FileUpload, FileUploadProps, FormNoteAttachmentsView, FormNoteAttachmentsViewProps, FormattedDate, FormattedDateProps, FormattedDatetime, FormattedDatetimeProps, FormattedRichText, FormattedRichTextProps, FormattedValue, FormattedValueProps, Icon, IconButton, IconButtonProps, IconProps, Input, InputProps, LinkToMilestone, LoadingIndicator, MilestoneForm, MilestoneProgress, MilestoneProgressView, ModalDialog, MultiFileUpload, MultiFileUploadProps, NavLink, Note, NoteWithAttachments, Number, NumberProps, OnSortChange, Option, PaddedCell, Pagination, Pendo, Popup, PopupProps, PreventLeaveDialog, Radio, RadioGroup, RadioGroupProps, RadioProps, RenderCellCallback, RichText, RichTextProps, Row, RowSelectionChangeArgs, SectionHeader, SectionHeaderProps, SetView, SetViewProps, SortDirection, SubHeader, Submenu, Tabs, TaskForm, TaskFormHeader, TaskTitleCell, TaskWithVariables, TextArea, TextAreaProps, Toggle, UploadResource, UseUploadServiceReturn, UserSelect, UserSelectProps, adminLoadOptions, baseClearIcon, dateToTimezoneDate, findFirstActiveAttachmentType, linkTasksToMilestone, notify, setDictionary, setLoginTenantId, useActiveColumns } from './components/index.js';
1
+ export { AccordionAttachmentsForm, AccordionFormWrapper, AccordionFormWrapperProps, AlertDialog, Attachment, AttachmentType, AttachmentsForm, AttachmentsFormProps, BannerNotifications, BasePadding, BreadcrumbItem, BreadcrumbProps, Breadcrumbs, Button, ButtonGroup, ButtonGroupProps, ButtonProps, CayuseCommonHeader, Checkbox, CheckboxProps, ClockIcon, Column, Combobox, ComboboxOption, ComboboxProps, ConfirmationModal, ConfirmationModalProps, CovertButton, CustomDropdown, CustomDropdownProps, DateSelector, Divider, DropdownMenu, DropdownMenuProps, DynamicTable, DynamicTableColumn, DynamicTableProps, DynamicTableRow, FileData, FileUpload, FileUploadProps, FormNoteAttachmentsView, FormNoteAttachmentsViewProps, FormattedDate, FormattedDateProps, FormattedDatetime, FormattedDatetimeProps, FormattedRichText, FormattedRichTextProps, FormattedValue, FormattedValueProps, Icon, IconButton, IconButtonProps, IconProps, Input, InputProps, LinkToMilestone, LoadingIndicator, MilestoneForm, MilestoneProgress, MilestoneProgressView, ModalDialog, MultiFileUpload, MultiFileUploadProps, NavLink, Note, NoteWithAttachments, Number, NumberProps, OnSortChange, Option, PaddedCell, Pagination, Pendo, Popup, PopupProps, PreventLeaveDialog, Radio, RadioGroup, RadioGroupProps, RadioProps, RenderCellCallback, RichText, RichTextProps, Row, RowSelectionChangeArgs, SectionHeader, SectionHeaderProps, SetView, SetViewProps, SortDirection, SubHeader, Submenu, Tabs, TaskForm, TaskFormHeader, TaskTitleCell, TaskWithVariables, TextArea, TextAreaProps, Toggle, UploadResource, UseUploadServiceReturn, UserComboboxOption, UserOption, UserSelect, UserSelectOption, UserSelectProps, adminLoadOptions, baseClearIcon, dateToTimezoneDate, findFirstActiveAttachmentType, linkTasksToMilestone, normalizeUserToOption, notify, setDictionary, setLoginTenantId, useActiveColumns } from './components/index.js';
2
2
  export { Affiliation, ExternalAffiliation, Group, ITenantContext, Person, Tenant, TenantContext, TenantContextData, TenantProduct, TenantProvider, User, useTenantContext } from './context/tenant/index.js';
3
3
  export { APP_ENV, AUTH_DOMAIN, CAYUSE_TYPES, COLUMN_HEADER_KEYS, DATETIME_FORMATS, DateTimeFormat, FIELD_TYPES, FLOWABLE_BASE_URL, KEY_CODES, NEW_RULE_ID, NODE_ENV, RULE_TYPES, SELECT_ANY_KEY, TARGET_WEB_COMPONENTS_BUCKET } from './globals/constants/index.js';
4
4
  export { FileObject, MAX_FILE_SIZE_75_MB, UppyDefaultOptions, UppyEvent, UppyInstance, UppyService, UppyState, UseFileUploaderOptions, api, defaultDictionary, uppyEvents, uppyInitialState, useClickOutside, useConfirmNavigation, useDebounceCallback, useDictionary, useFileUploader, useModalState } from './hooks/index.js';
package/dist/index.js CHANGED
@@ -55,17 +55,19 @@ import {
55
55
  TaskTitleCell,
56
56
  TextArea,
57
57
  Toggle,
58
+ UserComboboxOption,
58
59
  UserSelect,
59
60
  adminLoadOptions,
60
61
  baseClearIcon,
61
62
  dateToTimezoneDate,
62
63
  findFirstActiveAttachmentType,
63
64
  linkTasksToMilestone,
65
+ normalizeUserToOption,
64
66
  notify,
65
67
  setDictionary,
66
68
  setLoginTenantId,
67
69
  useActiveColumns
68
- } from "./chunk-JKHZBLRB.js";
70
+ } from "./chunk-MLVINKXL.js";
69
71
  import {
70
72
  useConfirmNavigation,
71
73
  useDebounceCallback,
@@ -236,6 +238,7 @@ export {
236
238
  UploadError,
237
239
  UploadService,
238
240
  UppyService,
241
+ UserComboboxOption,
239
242
  UserSelect,
240
243
  adminLoadOptions,
241
244
  alphaSortCollectionByKey,
@@ -275,6 +278,7 @@ export {
275
278
  isUrl,
276
279
  linkTasksToMilestone,
277
280
  loginWithRedirect,
281
+ normalizeUserToOption,
278
282
  notify,
279
283
  registerGetTokenSilently,
280
284
  removeDOMNode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cayuse-test/react",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -30,10 +30,24 @@
30
30
  "engines": {
31
31
  "node": ">=20"
32
32
  },
33
+ "packageManager": "pnpm@10.14.0",
33
34
  "repository": {
34
35
  "type": "git",
35
36
  "url": "git+ssh://git@bitbucket.org/cayusellc/cayuse-react-components.git"
36
37
  },
38
+ "scripts": {
39
+ "build": "tsup",
40
+ "dev": "tsup --watch",
41
+ "check-types": "tsc --noEmit",
42
+ "format": "prettier --write \"**/*.{js,ts,tsx,md}\"",
43
+ "prepare": "test -f scripts/install-hooks.sh && bash scripts/install-hooks.sh || true",
44
+ "lint": "eslint .",
45
+ "lint:fix": "eslint . --fix",
46
+ "storybook": "storybook dev -p 6006",
47
+ "build-storybook": "storybook build",
48
+ "test": "vitest",
49
+ "prepublishOnly": "pnpm run build"
50
+ },
37
51
  "dependencies": {
38
52
  "@fortawesome/fontawesome-svg-core": "6.7.2",
39
53
  "@fortawesome/free-solid-svg-icons": "6.7.2",
@@ -100,16 +114,5 @@
100
114
  "typescript-eslint": "^8.35.0",
101
115
  "vite": "^7.1.3",
102
116
  "vitest": "^3.2.4"
103
- },
104
- "scripts": {
105
- "build": "tsup",
106
- "dev": "tsup --watch",
107
- "check-types": "tsc --noEmit",
108
- "format": "prettier --write \"**/*.{js,ts,tsx,md}\"",
109
- "lint": "eslint .",
110
- "lint:fix": "eslint . --fix",
111
- "storybook": "storybook dev -p 6006",
112
- "build-storybook": "storybook build",
113
- "test": "vitest"
114
117
  }
115
- }
118
+ }