@baseplate-dev/plugin-auth 1.0.5 → 1.0.6

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 (51) hide show
  1. package/dist/auth/core/node.d.ts.map +1 -1
  2. package/dist/auth/core/node.js +9 -17
  3. package/dist/auth/core/node.js.map +1 -1
  4. package/dist/auth0/core/node.d.ts.map +1 -1
  5. package/dist/auth0/core/node.js +13 -21
  6. package/dist/auth0/core/node.js.map +1 -1
  7. package/dist/placeholder-auth/core/node.d.ts.map +1 -1
  8. package/dist/placeholder-auth/core/node.js +6 -14
  9. package/dist/placeholder-auth/core/node.js.map +1 -1
  10. package/dist/web/assets/{__federation_expose_auth0CoreCommon-BXcKWfCq.js → __federation_expose_auth0CoreCommon-CSWdt8d_.js} +3 -3
  11. package/dist/web/assets/{__federation_expose_auth0CoreCommon-BXcKWfCq.js.map → __federation_expose_auth0CoreCommon-CSWdt8d_.js.map} +1 -1
  12. package/dist/web/assets/{__federation_expose_auth0CoreWeb-VnxlQY01.js → __federation_expose_auth0CoreWeb-DjVw47sM.js} +6 -6
  13. package/dist/web/assets/{__federation_expose_auth0CoreWeb-VnxlQY01.js.map → __federation_expose_auth0CoreWeb-DjVw47sM.js.map} +1 -1
  14. package/dist/web/assets/{__federation_expose_authCoreCommon-LrPwgIpw.js → __federation_expose_authCoreCommon-CvHJZFIq.js} +3 -3
  15. package/dist/web/assets/{__federation_expose_authCoreCommon-LrPwgIpw.js.map → __federation_expose_authCoreCommon-CvHJZFIq.js.map} +1 -1
  16. package/dist/web/assets/{__federation_expose_authCoreWeb-CGWfg0Fb.js → __federation_expose_authCoreWeb-CrFEmZp3.js} +6 -6
  17. package/dist/web/assets/{__federation_expose_authCoreWeb-CGWfg0Fb.js.map → __federation_expose_authCoreWeb-CrFEmZp3.js.map} +1 -1
  18. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-DCZZPRb7.js → __federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js} +3 -3
  19. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-DCZZPRb7.js.map → __federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js.map} +1 -1
  20. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-BunerD5g.js → __federation_expose_placeholder-authCoreWeb-CpxfTdxv.js} +6 -6
  21. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-BunerD5g.js.map → __federation_expose_placeholder-authCoreWeb-CpxfTdxv.js.map} +1 -1
  22. package/dist/web/assets/{__federation_fn_import-BDimcZUI.js → __federation_fn_import-CGvRdRVe.js} +2 -2
  23. package/dist/web/assets/{__federation_fn_import-BDimcZUI.js.map → __federation_fn_import-CGvRdRVe.js.map} +1 -1
  24. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-oq9zm9eN.js → web-D1kBtwsm.js} +5 -5
  25. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-oq9zm9eN.js.map → web-D1kBtwsm.js.map} +1 -1
  26. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-DqkNAXn3.js → project-builder-lib-B7442OYh.js} +246 -208
  27. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js.map +1 -0
  28. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-BxXhpJ04.js → ui-components-X318M5Ml.js} +41 -27
  29. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-BxXhpJ04.js.map → ui-components-X318M5Ml.js.map} +1 -1
  30. package/dist/web/assets/{index-D4PxvJ0z.js → index-ydDQKauE.js} +2 -2
  31. package/dist/web/assets/{index-D4PxvJ0z.js.map → index-ydDQKauE.js.map} +1 -1
  32. package/dist/web/assets/{index.esm-qm5h2Bmg.js → index.esm-DYWXRkn-.js} +2 -2
  33. package/dist/web/assets/{index.esm-qm5h2Bmg.js.map → index.esm-DYWXRkn-.js.map} +1 -1
  34. package/dist/web/assets/{model-merger-CA2yaVFd.js → model-merger-BVBtbNAj.js} +39 -15
  35. package/dist/web/assets/model-merger-BVBtbNAj.js.map +1 -0
  36. package/dist/web/assets/{plugin-definition-CoiivnNt.js → plugin-definition-Bdhuga1j.js} +3 -3
  37. package/dist/web/assets/{plugin-definition-CoiivnNt.js.map → plugin-definition-Bdhuga1j.js.map} +1 -1
  38. package/dist/web/assets/{plugin-definition-X0d5-H4U.js → plugin-definition-C9d7ykhX.js} +3 -3
  39. package/dist/web/assets/{plugin-definition-X0d5-H4U.js.map → plugin-definition-C9d7ykhX.js.map} +1 -1
  40. package/dist/web/assets/{plugin-definition-BEHZirWF.js → plugin-definition-QzgXWr1I.js} +3 -3
  41. package/dist/web/assets/{plugin-definition-BEHZirWF.js.map → plugin-definition-QzgXWr1I.js.map} +1 -1
  42. package/dist/web/assets/{react-BLL9qrdY.js → react-B23vKoD0.js} +2 -2
  43. package/dist/web/assets/{react-BLL9qrdY.js.map → react-B23vKoD0.js.map} +1 -1
  44. package/dist/web/assets/remoteEntry.js +6 -6
  45. package/dist/web/assets/{role-editor-form-lOkPZX7S.js → role-editor-form-BkcoVwtU.js} +4 -4
  46. package/dist/web/assets/{role-editor-form-lOkPZX7S.js.map → role-editor-form-BkcoVwtU.js.map} +1 -1
  47. package/dist/web/assets/{styles-B6SRrcui.js → styles-Dfjm_ApH.js} +3 -3
  48. package/dist/web/assets/{styles-B6SRrcui.js.map → styles-Dfjm_ApH.js.map} +1 -1
  49. package/package.json +10 -10
  50. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DqkNAXn3.js.map +0 -1
  51. package/dist/web/assets/model-merger-CA2yaVFd.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { importShared } from '../__federation_fn_import-BDimcZUI.js';
2
- import { j as jsxRuntimeExports, b as useController, u as useFormState, g as get } from '../index.esm-qm5h2Bmg.js';
3
- import { M as MdMoreHoriz, a as MdChevronRight, b as MdChevronLeft, c as MdExpandMore, d as MdCheck, e as MdUnfoldMore, f as MdClose, g as MdSearch, h as MdCalendarMonth, i as MdSchedule, j as MdCircle, k as MdFormatListBulleted, l as MdOutlineErrorOutline, m as MdOutlineSave } from '../index-D4PxvJ0z.js';
4
- import { c as create } from '../react-BLL9qrdY.js';
1
+ import { importShared } from '../__federation_fn_import-CGvRdRVe.js';
2
+ import { j as jsxRuntimeExports, b as useController, u as useFormState, g as get } from '../index.esm-DYWXRkn-.js';
3
+ import { M as MdMoreHoriz, a as MdChevronRight, b as MdChevronLeft, c as MdExpandMore, d as MdCheck, e as MdUnfoldMore, f as MdClose, g as MdSearch, h as MdCalendarMonth, i as MdSchedule, j as MdCircle, k as MdFormatListBulleted, l as MdOutlineErrorOutline, m as MdOutlineSave } from '../index-ydDQKauE.js';
4
+ import { c as create } from '../react-B23vKoD0.js';
5
5
 
6
6
  /**
7
7
  * Type guard to check if a value is not null or undefined.
@@ -4245,7 +4245,7 @@ function assignRef(ref, value) {
4245
4245
  return ref;
4246
4246
  }
4247
4247
 
4248
- const {useState: useState$6} = await importShared('react');
4248
+ const {useState: useState$7} = await importShared('react');
4249
4249
 
4250
4250
  /**
4251
4251
  * creates a MutableRef with ref change callback
@@ -4262,7 +4262,7 @@ const {useState: useState$6} = await importShared('react');
4262
4262
  * @returns {MutableRefObject}
4263
4263
  */
4264
4264
  function useCallbackRef(initialValue, callback) {
4265
- var ref = useState$6(function () { return ({
4265
+ var ref = useState$7(function () { return ({
4266
4266
  // value
4267
4267
  value: initialValue,
4268
4268
  // last callback
@@ -7495,12 +7495,12 @@ const computePosition = (reference, floating, options) => {
7495
7495
 
7496
7496
  const React$M = await importShared('react');
7497
7497
 
7498
- const {useLayoutEffect: useLayoutEffect$1,useEffect: useEffect$4} = await importShared('react');
7498
+ const {useLayoutEffect: useLayoutEffect$1,useEffect: useEffect$5} = await importShared('react');
7499
7499
 
7500
7500
  const ReactDOM$3 = await importShared('react-dom');
7501
7501
 
7502
7502
 
7503
- var index = typeof document !== 'undefined' ? useLayoutEffect$1 : useEffect$4;
7503
+ var index = typeof document !== 'undefined' ? useLayoutEffect$1 : useEffect$5;
7504
7504
 
7505
7505
  // Fork of `fast-deep-equal` that only does the comparisons we need and compares
7506
7506
  // functions
@@ -20082,7 +20082,7 @@ function getWeeks(months) {
20082
20082
  }, initialWeeks);
20083
20083
  }
20084
20084
 
20085
- const {useState: useState$5} = await importShared('react');
20085
+ const {useState: useState$6} = await importShared('react');
20086
20086
 
20087
20087
  /**
20088
20088
  * A custom hook for managing both controlled and uncontrolled component states.
@@ -20107,12 +20107,12 @@ const {useState: useState$5} = await importShared('react');
20107
20107
  * update the value.
20108
20108
  */
20109
20109
  function useControlledValue(defaultValue, controlledValue) {
20110
- const [uncontrolledValue, setValue] = useState$5(defaultValue);
20110
+ const [uncontrolledValue, setValue] = useState$6(defaultValue);
20111
20111
  const value = controlledValue === undefined ? uncontrolledValue : controlledValue;
20112
20112
  return [value, setValue];
20113
20113
  }
20114
20114
 
20115
- const {useEffect: useEffect$3} = await importShared('react');
20115
+ const {useEffect: useEffect$4} = await importShared('react');
20116
20116
  /**
20117
20117
  * Provides the calendar object to work with the calendar in custom components.
20118
20118
  *
@@ -20129,7 +20129,7 @@ function useCalendar(props, dateLib) {
20129
20129
  const [firstMonth, setFirstMonth] = useControlledValue(initialMonth,
20130
20130
  // initialMonth is always computed from props.month if provided
20131
20131
  props.month ? initialMonth : undefined);
20132
- useEffect$3(() => {
20132
+ useEffect$4(() => {
20133
20133
  const newInitialMonth = getInitialMonth(props, dateLib);
20134
20134
  setFirstMonth(newInitialMonth);
20135
20135
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -20334,7 +20334,7 @@ function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMo
20334
20334
  return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);
20335
20335
  }
20336
20336
 
20337
- const {useState: useState$4} = await importShared('react');
20337
+ const {useState: useState$5} = await importShared('react');
20338
20338
  /**
20339
20339
  * Manages focus behavior for the DayPicker component, including setting,
20340
20340
  * moving, and blurring focus on calendar days.
@@ -20351,9 +20351,9 @@ const {useState: useState$4} = await importShared('react');
20351
20351
  */
20352
20352
  function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
20353
20353
  const { autoFocus } = props;
20354
- const [lastFocused, setLastFocused] = useState$4();
20354
+ const [lastFocused, setLastFocused] = useState$5();
20355
20355
  const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);
20356
- const [focusedDay, setFocused] = useState$4(autoFocus ? focusTarget : undefined);
20356
+ const [focusedDay, setFocused] = useState$5(autoFocus ? focusTarget : undefined);
20357
20357
  const blur = () => {
20358
20358
  setLastFocused(focusedDay);
20359
20359
  setFocused(undefined);
@@ -21319,17 +21319,17 @@ function ColorPickerFieldController({ control, name, ref, ...rest }) {
21319
21319
  return jsxRuntimeExports.jsx(ColorPickerField, { error: error?.message, ...rest, ...fieldProps });
21320
21320
  }
21321
21321
 
21322
- const {useCallback: useCallback$1,useEffect: useEffect$2,useRef: useRef$2,useState: useState$3} = await importShared('react');
21322
+ const {useCallback: useCallback$1,useEffect: useEffect$3,useRef: useRef$2,useState: useState$4} = await importShared('react');
21323
21323
 
21324
21324
  function useControlledState(value, setValue, defaultValue) {
21325
21325
  const isControlled = value !== void 0;
21326
21326
  const isControlledRef = useRef$2(isControlled);
21327
21327
  const setValuePropsRef = useRef$2(setValue);
21328
- const [internalState, setInternalState] = useState$3(defaultValue);
21329
- useEffect$2(() => {
21328
+ const [internalState, setInternalState] = useState$4(defaultValue);
21329
+ useEffect$3(() => {
21330
21330
  isControlledRef.current = isControlled;
21331
21331
  }, [isControlled]);
21332
- useEffect$2(() => {
21332
+ useEffect$3(() => {
21333
21333
  setValuePropsRef.current = setValue;
21334
21334
  }, [setValue]);
21335
21335
  const setState = useCallback$1((value2) => {
@@ -21680,7 +21680,7 @@ function useConfirmDialog() {
21680
21680
  };
21681
21681
  }
21682
21682
 
21683
- const {useEffect: useEffect$1,useRef: useRef$1} = await importShared('react');
21683
+ const {useEffect: useEffect$2,useRef: useRef$1} = await importShared('react');
21684
21684
  /**
21685
21685
  * A confirm dialog that is placed at the top level of the page
21686
21686
  * enabling the use of the useConfirmDialog hook.
@@ -21691,7 +21691,7 @@ function ConfirmDialog() {
21691
21691
  // We need to store the text content in a ref because the Dialog component
21692
21692
  // will transition to fade so we need to cache the text while we close.
21693
21693
  const textOptionsCached = useRef$1(null);
21694
- useEffect$1(() => {
21694
+ useEffect$2(() => {
21695
21695
  if (confirmOptions) {
21696
21696
  textOptionsCached.current = {
21697
21697
  title: confirmOptions.title,
@@ -21721,14 +21721,14 @@ function ConfirmDialog() {
21721
21721
  }, variant: buttonConfirmVariant, children: buttonConfirmText })] })] }) }));
21722
21722
  }
21723
21723
 
21724
- const {useId: useId$2,useState: useState$2} = await importShared('react');
21724
+ const {useId: useId$2,useState: useState$3} = await importShared('react');
21725
21725
  /**
21726
21726
  * Field with label and error states that wraps a Calendar component for single date selection.
21727
21727
  */
21728
21728
  function DatePickerField({ className, wrapperClassName, disabled, placeholder = 'Pick a date', onChange, value, label, error, description, dateFormat = 'PPP', calendarProps, ref, }) {
21729
21729
  const addWrapper = label ?? error ?? description;
21730
21730
  const id = useId$2();
21731
- const [open, setOpen] = useState$2(false);
21731
+ const [open, setOpen] = useState$3(false);
21732
21732
  // Parse string value to Date for Calendar component
21733
21733
  const dateValue = value ? parseISO(value) : undefined;
21734
21734
  const handleSelect = (date) => {
@@ -21767,14 +21767,14 @@ function Input({ className, type, ...props }) {
21767
21767
  return (jsxRuntimeExports.jsx("input", { type: type, "data-slot": "input", className: cn$1(inputVariants(), className), ...props }));
21768
21768
  }
21769
21769
 
21770
- const {useId: useId$1,useState: useState$1} = await importShared('react');
21770
+ const {useId: useId$1,useState: useState$2} = await importShared('react');
21771
21771
  /**
21772
21772
  * Field with label and error states that wraps a Calendar and time input for date-time selection.
21773
21773
  */
21774
21774
  function DateTimePickerField({ className, wrapperClassName, disabled, placeholder = 'Pick date and time', onChange, value, label, error, description, dateTimeFormat = 'PPP pp', showSeconds = false, calendarProps, ref, }) {
21775
21775
  const addWrapper = label ?? error ?? description;
21776
21776
  const id = useId$1();
21777
- const [open, setOpen] = useState$1(false);
21777
+ const [open, setOpen] = useState$2(false);
21778
21778
  // Parse string value to Date for internal operations
21779
21779
  const dateTimeValue = value ? parseISO(value) : undefined;
21780
21780
  const handleDateSelect = (date) => {
@@ -21925,10 +21925,24 @@ function ErrorDisplay({ className, header, error, actions, }) {
21925
21925
  : strings.errorDisplayDefaultContent }), actions] }) }));
21926
21926
  }
21927
21927
 
21928
+ const {useEffect: useEffect$1,useState: useState$1} = await importShared('react');
21928
21929
  /**
21929
21930
  * Loader component that displays a 3-dot loading animation.
21931
+ * Only shows after the specified delay (default: 300ms) to prevent flashing for quick operations.
21930
21932
  */
21931
- function Loader$1({ className }) {
21933
+ function Loader$1({ className, delay = 300 }) {
21934
+ const [isVisible, setIsVisible] = useState$1(false);
21935
+ useEffect$1(() => {
21936
+ const timer = setTimeout(() => {
21937
+ setIsVisible(true);
21938
+ }, delay);
21939
+ return () => {
21940
+ clearTimeout(timer);
21941
+ };
21942
+ }, [delay]);
21943
+ if (!isVisible) {
21944
+ return (jsxRuntimeExports.jsx("div", { className: cn$1('flex h-full items-center justify-center', className) }));
21945
+ }
21932
21946
  return (jsxRuntimeExports.jsx("div", { className: cn$1('flex h-full items-center justify-center', className), role: "progressbar", children: jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-2", children: [jsxRuntimeExports.jsx("div", { className: "size-3 animate-pulse rounded-full bg-muted-foreground" }), jsxRuntimeExports.jsx("div", { className: "size-3 animate-pulse rounded-full bg-muted-foreground delay-300" }), jsxRuntimeExports.jsx("div", { className: "size-3 animate-pulse rounded-full bg-muted-foreground delay-[600ms]" })] }) }));
21933
21947
  }
21934
21948
 
@@ -23620,4 +23634,4 @@ function TooltipContent({ className, sideOffset = 0, children, ...props }) {
23620
23634
  }
23621
23635
 
23622
23636
  export { Alert, AlertDescription, AlertTitle, Badge, BadgeWithIcon, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button$1 as Button, ButtonGroup, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxField, CheckboxFieldController, CircularProgress, ColorPicker, ColorPickerField, ColorPickerFieldController, Combobox, ComboboxAction, ComboboxContent, ComboboxEmpty, ComboboxField, ComboboxFieldController, ComboboxGroup, ComboboxInput, ComboboxItem, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, DatePickerField, DatePickerFieldController, DateTimePickerField, DateTimePickerFieldController, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyDisplay, ErrorDisplay, ErrorableLoader, FormActionBar, FormControl, FormDescription, FormItem, FormLabel, FormMessage, Input, InputField, InputFieldController, Label, Loader$1 as Loader, MultiCombobox, MultiComboboxContent, MultiComboboxEmpty, MultiComboboxField, MultiComboboxFieldController, MultiComboboxGroup, MultiComboboxInput, MultiComboboxItem, MultiSwitchField, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuItemWithLink, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NavigationTabs, NavigationTabsItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, RecordView, RecordViewActions, RecordViewItem, RecordViewItemList, ScrollArea, ScrollBar, SectionList, SectionListSection, SectionListSectionContent, SectionListSectionDescription, SectionListSectionHeader, SectionListSectionTitle, Select, SelectContent, SelectField, SelectFieldController, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SidebarLayout, SidebarLayoutContent, SidebarLayoutSidebar, Switch, SwitchField, SwitchFieldController, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaField, TextareaFieldController, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn$1 as cn, genericForwardRef, inputVariants, mergeRefs, navigationMenuTriggerStyle, selectCheckVariants, selectContentVariants, selectItemVariants, selectTriggerVariants, toast, useComboboxContext, useConfirmDialog, useControlledState, useControllerMerged, useEventCallback, useFormField, useMultiComboboxContext };
23623
- //# sourceMappingURL=ui-components-BxXhpJ04.js.map
23637
+ //# sourceMappingURL=ui-components-X318M5Ml.js.map