@burdenoff/fe-libs 2026.516.2 → 2026.518.2
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.
- package/dist/button/Button.d.ts +1 -1
- package/dist/button/Button.d.ts.map +1 -1
- package/dist/chrome/AccountSwitcher.d.ts.map +1 -1
- package/dist/chrome/AutoBreadcrumbs.d.ts.map +1 -1
- package/dist/chrome/Breadcrumb.d.ts.map +1 -1
- package/dist/chrome/Breadcrumbs.d.ts.map +1 -1
- package/dist/chrome/CommandPalette.d.ts.map +1 -1
- package/dist/chrome/ContextSwitcher.d.ts.map +1 -1
- package/dist/chrome/DynamicFooter.d.ts.map +1 -1
- package/dist/chrome/Footer.d.ts.map +1 -1
- package/dist/chrome/FooterBar.d.ts +1 -1
- package/dist/chrome/FooterBar.d.ts.map +1 -1
- package/dist/chrome/GeographySwitcher.d.ts.map +1 -1
- package/dist/chrome/GlobalSearch.d.ts.map +1 -1
- package/dist/chrome/HeaderBar.d.ts +1 -1
- package/dist/chrome/HeaderBar.d.ts.map +1 -1
- package/dist/chrome/LanguagePickerSheet.d.ts.map +1 -1
- package/dist/chrome/LanguageSwitcher.d.ts.map +1 -1
- package/dist/chrome/NavLink.d.ts +1 -1
- package/dist/chrome/NavLink.d.ts.map +1 -1
- package/dist/chrome/NotificationCenter.d.ts.map +1 -1
- package/dist/chrome/NotificationCenter.js +2 -8
- package/dist/chrome/PanelContainer.d.ts +1 -1
- package/dist/chrome/PanelContainer.d.ts.map +1 -1
- package/dist/chrome/PluginContextMenuTarget.d.ts.map +1 -1
- package/dist/chrome/PluginFooterStrip.d.ts.map +1 -1
- package/dist/chrome/PluginRoutes.d.ts.map +1 -1
- package/dist/chrome/PluginSettingsPage.d.ts.map +1 -1
- package/dist/chrome/PluginToolbar.d.ts +1 -1
- package/dist/chrome/PluginToolbar.d.ts.map +1 -1
- package/dist/chrome/PluginWidgetGrid.d.ts.map +1 -1
- package/dist/chrome/ProductPickerSheet.d.ts.map +1 -1
- package/dist/chrome/ProductSideNav.d.ts.map +1 -1
- package/dist/chrome/ProductSwitcher.d.ts.map +1 -1
- package/dist/chrome/ProfileSwitcher.d.ts.map +1 -1
- package/dist/chrome/ShortcutHelpDialog.d.ts.map +1 -1
- package/dist/chrome/SideNavigation.d.ts.map +1 -1
- package/dist/chrome/Sidebar.d.ts.map +1 -1
- package/dist/chrome/StatusBar.d.ts.map +1 -1
- package/dist/chrome/Tabs.d.ts +2 -2
- package/dist/chrome/Tabs.d.ts.map +1 -1
- package/dist/chrome/index.d.ts +5 -5
- package/dist/chrome/index.d.ts.map +1 -1
- package/dist/form/Checkbox.d.ts +2 -2
- package/dist/form/Checkbox.d.ts.map +1 -1
- package/dist/form/Form.d.ts +4 -4
- package/dist/form/Form.d.ts.map +1 -1
- package/dist/form/FormDescription.d.ts +1 -1
- package/dist/form/FormDescription.d.ts.map +1 -1
- package/dist/form/FormField.d.ts +1 -1
- package/dist/form/FormField.d.ts.map +1 -1
- package/dist/form/FormLabel.d.ts +2 -2
- package/dist/form/FormMessage.d.ts +1 -1
- package/dist/form/FormMessage.d.ts.map +1 -1
- package/dist/form/Input.d.ts +1 -1
- package/dist/form/Radio.d.ts +2 -2
- package/dist/form/Radio.d.ts.map +1 -1
- package/dist/form/Select.d.ts +3 -3
- package/dist/form/Select.d.ts.map +1 -1
- package/dist/form/Textarea.d.ts +1 -1
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.d.ts.map +1 -1
- package/dist/shared/components/AccessDenied.d.ts +2 -2
- package/dist/shared/components/AccessDenied.d.ts.map +1 -1
- package/dist/shared/components/AppErrorBoundary.d.ts.map +1 -1
- package/dist/shared/components/ConditionalShell.d.ts.map +1 -1
- package/dist/shared/components/ContextConversationWidget.d.ts.map +1 -1
- package/dist/shared/components/ContextConversationWidget.js +6 -23
- package/dist/shared/components/ErrorBoundary.d.ts.map +1 -1
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts +1 -1
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts.map +1 -1
- package/dist/shared/components/LegalPage.d.ts.map +1 -1
- package/dist/shared/components/LoadingFallback.d.ts +1 -1
- package/dist/shared/components/LoadingFallback.d.ts.map +1 -1
- package/dist/shared/components/MicrofrontendErrorBoundary.d.ts.map +1 -1
- package/dist/shared/components/PWAInstallBanner.d.ts.map +1 -1
- package/dist/shared/components/PermissionGate.d.ts +2 -2
- package/dist/shared/components/PermissionGate.d.ts.map +1 -1
- package/dist/shared/components/ProductAccessGuard.d.ts +1 -1
- package/dist/shared/components/ProductAccessGuard.d.ts.map +1 -1
- package/dist/shared/components/QuotaMeter.d.ts.map +1 -1
- package/dist/shared/components/RequireAuth.d.ts +1 -1
- package/dist/shared/components/RequireAuth.d.ts.map +1 -1
- package/dist/shared/components/RequireAuth.js +1 -5
- package/dist/shared/components/SSORedirectGuard.d.ts.map +1 -1
- package/dist/shared/components/SearchPage.d.ts.map +1 -1
- package/dist/shared/components/index.d.ts +2 -2
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/events/index.d.ts +150 -150
- package/dist/shared/events/index.d.ts.map +1 -1
- package/dist/shared/events/metadata.d.ts.map +1 -1
- package/dist/shared/events/sinks/BackendAuditSink.d.ts.map +1 -1
- package/dist/shared/events/sinks/RybbitSink.d.ts.map +1 -1
- package/dist/shared/feature-flags/FeatureFlagProvider.d.ts.map +1 -1
- package/dist/shared/feature-flags/index.d.ts +1 -1
- package/dist/shared/feature-flags/index.d.ts.map +1 -1
- package/dist/shared/feature-flags/types.d.ts +3 -3
- package/dist/shared/feature-flags/types.d.ts.map +1 -1
- package/dist/shared/feature-flags/useFeatureFlag.d.ts.map +1 -1
- package/dist/shared/geography/GeographyProvider.d.ts.map +1 -1
- package/dist/shared/geography/countries.d.ts +3 -3
- package/dist/shared/geography/countries.d.ts.map +1 -1
- package/dist/shared/geography/index.d.ts +1 -1
- package/dist/shared/geography/index.d.ts.map +1 -1
- package/dist/shared/graphql/GatewayContext.d.ts.map +1 -1
- package/dist/shared/graphql/client.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/graphql/index.d.ts +1 -1
- package/dist/shared/graphql/index.d.ts.map +1 -1
- package/dist/shared/graphql/links/sse-link.d.ts.map +1 -1
- package/dist/shared/graphql/security.d.ts.map +1 -1
- package/dist/shared/graphql/workspaceToken.d.ts.map +1 -1
- package/dist/shared/help/HelpButton.d.ts +1 -1
- package/dist/shared/help/HelpButton.d.ts.map +1 -1
- package/dist/shared/help/HelpPanel.d.ts.map +1 -1
- package/dist/shared/help/HelpProvider.d.ts +2 -2
- package/dist/shared/help/HelpProvider.d.ts.map +1 -1
- package/dist/shared/help/index.d.ts +1 -1
- package/dist/shared/help/index.d.ts.map +1 -1
- package/dist/shared/help/types.d.ts +3 -3
- package/dist/shared/hooks/index.d.ts +4 -4
- package/dist/shared/hooks/index.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useBreadcrumbs.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts +3 -3
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts +3 -3
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useLanguages.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useLanguages.js +1 -5
- package/dist/shared/hooks/shell/useProductAccess.d.ts +2 -2
- package/dist/shared/hooks/shell/useProductAccess.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useProducts.d.ts.map +1 -1
- package/dist/shared/hooks/useAsync.d.ts.map +1 -1
- package/dist/shared/hooks/useBreakpoint.d.ts +2 -2
- package/dist/shared/hooks/useBreakpoint.d.ts.map +1 -1
- package/dist/shared/hooks/useCopyToClipboard.d.ts.map +1 -1
- package/dist/shared/hooks/useKeyPress.d.ts.map +1 -1
- package/dist/shared/hooks/useLocalStorage.d.ts.map +1 -1
- package/dist/shared/hooks/usePWA.d.ts.map +1 -1
- package/dist/shared/hooks/useQuotaErrorToast.d.ts.map +1 -1
- package/dist/shared/hooks/useReferralAttribution.d.ts.map +1 -1
- package/dist/shared/hooks/useSessionStorage.d.ts.map +1 -1
- package/dist/shared/keyboard/globalShortcuts.d.ts.map +1 -1
- package/dist/shared/keyboard/index.d.ts +1 -1
- package/dist/shared/keyboard/index.d.ts.map +1 -1
- package/dist/shared/keyboard/types.d.ts +2 -2
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts +2 -2
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts.map +1 -1
- package/dist/shared/keyboard/utils.d.ts.map +1 -1
- package/dist/shared/logger/ConsoleTransport.d.ts.map +1 -1
- package/dist/shared/logger/LogManager.d.ts.map +1 -1
- package/dist/shared/logger/Logger.d.ts.map +1 -1
- package/dist/shared/motion/AnimatedCounter.d.ts.map +1 -1
- package/dist/shared/motion/MotionCard.d.ts.map +1 -1
- package/dist/shared/motion/MotionCollapse.d.ts +1 -1
- package/dist/shared/motion/MotionCollapse.d.ts.map +1 -1
- package/dist/shared/motion/MotionFade.d.ts +2 -2
- package/dist/shared/motion/MotionFade.d.ts.map +1 -1
- package/dist/shared/motion/MotionItem.d.ts +1 -1
- package/dist/shared/motion/MotionItem.d.ts.map +1 -1
- package/dist/shared/motion/MotionList.d.ts.map +1 -1
- package/dist/shared/motion/MotionPage.d.ts +1 -1
- package/dist/shared/motion/MotionPage.d.ts.map +1 -1
- package/dist/shared/native/consumers.d.ts.map +1 -1
- package/dist/shared/native/types.d.ts +6 -6
- package/dist/shared/pages/AiPage.d.ts.map +1 -1
- package/dist/shared/pages/LegalPage.d.ts.map +1 -1
- package/dist/shared/pages/SearchPage.d.ts.map +1 -1
- package/dist/shared/pages/SearchPage.js +2 -4
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts +1 -1
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts.map +1 -1
- package/dist/shared/plugins/context.d.ts +2 -2
- package/dist/shared/plugins/context.d.ts.map +1 -1
- package/dist/shared/plugins/event-bus.d.ts +20 -20
- package/dist/shared/plugins/event-bus.d.ts.map +1 -1
- package/dist/shared/plugins/panels/usePanelManagerStore.d.ts +1 -1
- package/dist/shared/plugins/registries/useCommandRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/usePanelRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useRouteRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useSettingsRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useToolbarRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useWidgetRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/runtime.d.ts.map +1 -1
- package/dist/shared/plugins/types.d.ts +12 -12
- package/dist/shared/plugins/types.d.ts.map +1 -1
- package/dist/shared/providers/AppShellProvider.d.ts +4 -4
- package/dist/shared/providers/AppShellProvider.d.ts.map +1 -1
- package/dist/shared/providers/MicrofrontendProvider.d.ts +1 -1
- package/dist/shared/providers/MicrofrontendProvider.d.ts.map +1 -1
- package/dist/shared/providers/index.d.ts +1 -1
- package/dist/shared/providers/index.d.ts.map +1 -1
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts +1 -1
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts.map +1 -1
- package/dist/shared/providers/shell/AppShellContext.d.ts.map +1 -1
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts +2 -2
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts.map +1 -1
- package/dist/shared/providers/shell/AuthProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/AuthTokenProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts +1 -1
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/GatewayRouter.d.ts +1 -1
- package/dist/shared/providers/shell/GatewayRouter.d.ts.map +1 -1
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts +3 -3
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/I18nProvider.d.ts +1 -1
- package/dist/shared/providers/shell/I18nProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/PageConversationContextProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/PermissionProvider.d.ts +2 -2
- package/dist/shared/providers/shell/PermissionProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts.map +1 -1
- package/dist/shared/providers/shell/ProfileI18nBridge.d.ts.map +1 -1
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts.map +1 -1
- package/dist/shared/providers/shell/ShellUiProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ThemeProvider.d.ts +6 -6
- package/dist/shared/providers/shell/ThemeProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/index.d.ts +10 -10
- package/dist/shared/providers/shell/index.d.ts.map +1 -1
- package/dist/shared/shims/assert.d.ts.map +1 -1
- package/dist/shared/shims/use-sync-external-store-with-selector.d.ts.map +1 -1
- package/dist/shared/shims/util.d.ts.map +1 -1
- package/dist/shared/tours/TourPlayer.d.ts +1 -1
- package/dist/shared/tours/TourPlayer.d.ts.map +1 -1
- package/dist/shared/tours/TourPlayerProvider.d.ts.map +1 -1
- package/dist/shared/tours/TourSpotlight.d.ts.map +1 -1
- package/dist/shared/tours/TourTooltip.d.ts.map +1 -1
- package/dist/shared/tours/TourTrigger.d.ts +3 -3
- package/dist/shared/tours/TourTrigger.d.ts.map +1 -1
- package/dist/shared/tours/ToursContext.d.ts +2 -2
- package/dist/shared/tours/ToursContext.d.ts.map +1 -1
- package/dist/shared/tours/routeCatalog.d.ts.map +1 -1
- package/dist/shared/tours/types.d.ts +7 -7
- package/dist/shared/tours/types.d.ts.map +1 -1
- package/dist/shared/tours/useTourPlayer.d.ts.map +1 -1
- package/dist/shared/types/index.d.ts +4 -4
- package/dist/shared/utils/apollo.d.ts.map +1 -1
- package/dist/shared/utils/appHelpers.d.ts.map +1 -1
- package/dist/shared/utils/authCookie.d.ts.map +1 -1
- package/dist/shared/utils/authErrorHandling.d.ts.map +1 -1
- package/dist/shared/utils/format.d.ts +1 -1
- package/dist/shared/utils/format.d.ts.map +1 -1
- package/dist/shared/utils/gatewayFetchRewrite.d.ts.map +1 -1
- package/dist/shared/utils/index.d.ts +3 -3
- package/dist/shared/utils/index.d.ts.map +1 -1
- package/dist/shared/utils/loggerInit.d.ts.map +1 -1
- package/dist/shared/utils/quotaErrors.d.ts.map +1 -1
- package/dist/shared/utils/tokens.d.ts +3 -3
- package/dist/shared/utils/tokens.d.ts.map +1 -1
- package/dist/storage/StorageFolderPicker.d.ts.map +1 -1
- package/dist/tag/TagBadge.d.ts +1 -1
- package/dist/tag/TagBadge.d.ts.map +1 -1
- package/dist/tag/TagsWidget.d.ts.map +1 -1
- package/dist/tag/TagsWidget.js +1 -5
- package/dist/ui/accordion.d.ts +2 -2
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/alert-dialog.d.ts +4 -4
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/card.d.ts +1 -1
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -2
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/dialog.d.ts +4 -4
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +1 -1
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/index.d.ts +4 -4
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/label.d.ts +1 -1
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/popover.d.ts +2 -2
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/scroll-area.d.ts +2 -2
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/separator.d.ts +2 -2
- package/dist/ui/sheet.d.ts +5 -5
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/spinner.d.ts +1 -1
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/table.d.ts +1 -1
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/tabs.d.ts +2 -2
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/shims/assert.ts +6 -14
- package/src/shared/shims/index.ts +5 -5
- package/src/shared/shims/process.ts +2 -2
- package/src/shared/shims/use-sync-external-store-shim.ts +1 -1
- package/src/shared/shims/use-sync-external-store-with-selector.ts +4 -16
- package/src/shared/shims/util.ts +38 -59
- package/src/vite/index.ts +5 -5
- package/src/vite/mfe.config.ts +28 -37
- package/src/vite/plugins.ts +76 -116
- package/src/vite/shell.config.ts +55 -68
- package/src/vite/types.ts +34 -34
package/dist/ui/sheet.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as SheetPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
3
3
|
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
7
|
-
side?:
|
|
7
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function SheetHeader({ className, ...props }: React.ComponentProps<
|
|
10
|
-
declare function SheetFooter({ className, ...props }: React.ComponentProps<
|
|
9
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
package/dist/ui/sheet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAKzD,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAE5E;AAED,iBAAS,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAKzD,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAE5E;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,2CAEtF;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,2CAElF;AAsBD,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,IAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,GAAG;IACvD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC5C,2CA4BA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,2CAQ7F;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,2CAQzD;AAED,OAAO,EACL,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
|
package/dist/ui/spinner.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
export interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
size?:
|
|
3
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4
4
|
}
|
|
5
5
|
export declare function Spinner({ size, className, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=spinner.d.ts.map
|
package/dist/ui/spinner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/ui/spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAQD,wBAAgB,OAAO,CAAC,EAAE,IAAW,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/ui/spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAQD,wBAAgB,OAAO,CAAC,EAAE,IAAW,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAMzE"}
|
package/dist/ui/switch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as SwitchPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
3
3
|
declare function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { Switch };
|
|
5
5
|
//# sourceMappingURL=switch.d.ts.map
|
package/dist/ui/switch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/ui/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/ui/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAkBzF;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/dist/ui/table.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ declare const TableRow: import('react').ForwardRefExoticComponent<HTMLAttributes
|
|
|
7
7
|
declare const TableHead: import('react').ForwardRefExoticComponent<ThHTMLAttributes<HTMLTableCellElement> & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
8
8
|
declare const TableCell: import('react').ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
9
9
|
declare const TableCaption: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableCaptionElement> & import('react').RefAttributes<HTMLTableCaptionElement>>;
|
|
10
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow
|
|
10
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
11
11
|
//# sourceMappingURL=table.d.ts.map
|
package/dist/ui/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,KAAK,+
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,KAAK,+HAMV,CAAC;AAGF,QAAA,MAAM,WAAW,6IAIhB,CAAC;AAGF,QAAA,MAAM,SAAS,6IAId,CAAC;AAGF,QAAA,MAAM,WAAW,6IAQhB,CAAC;AAGF,QAAA,MAAM,QAAQ,qIAWb,CAAC;AAGF,QAAA,MAAM,SAAS,yIAWd,CAAC;AAGF,QAAA,MAAM,SAAS,yIAQd,CAAC;AAGF,QAAA,MAAM,YAAY,6IAIjB,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/ui/tabs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as TabsPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
3
|
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAItD,iBAAS,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAItD,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,2CAQrF;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,2CAWzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,2CAW/F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,2CAQ/F;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAIhE,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;AAExE,QAAA,MAAM,QAAQ,+
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAIhE,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;AAExE,QAAA,MAAM,QAAQ,+GAWZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/ui/tooltip.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as TooltipPrimitive from
|
|
1
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
2
2
|
declare const TooltipProvider: import('react').FC<TooltipPrimitive.TooltipProviderProps>;
|
|
3
3
|
declare const Tooltip: import('react').FC<TooltipPrimitive.TooltipProps>;
|
|
4
4
|
declare const TooltipTrigger: import('react').ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
package/dist/ui/tooltip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAK5D,QAAA,MAAM,eAAe,2DAA4B,CAAC;AAElD,QAAA,MAAM,OAAO,mDAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc,oIAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,8LAalB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
function assert(condition: unknown, message?: string): asserts condition {
|
|
11
11
|
if (!condition) {
|
|
12
|
-
throw new Error(message ||
|
|
12
|
+
throw new Error(message || 'Assertion failed');
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -20,33 +20,25 @@ assert.strictEqual = (actual: unknown, expected: unknown, message?: string) => {
|
|
|
20
20
|
throw new Error(message || `Expected ${expected} but got ${actual}`);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
assert.notStrictEqual = (
|
|
24
|
-
actual: unknown,
|
|
25
|
-
expected: unknown,
|
|
26
|
-
message?: string,
|
|
27
|
-
) => {
|
|
23
|
+
assert.notStrictEqual = (actual: unknown, expected: unknown, message?: string) => {
|
|
28
24
|
if (actual === expected) {
|
|
29
25
|
throw new Error(message || `Expected ${actual} to not equal ${expected}`);
|
|
30
26
|
}
|
|
31
27
|
};
|
|
32
|
-
assert.deepStrictEqual = (
|
|
33
|
-
actual: unknown,
|
|
34
|
-
expected: unknown,
|
|
35
|
-
message?: string,
|
|
36
|
-
) => {
|
|
28
|
+
assert.deepStrictEqual = (actual: unknown, expected: unknown, message?: string) => {
|
|
37
29
|
if (JSON.stringify(actual) !== JSON.stringify(expected)) {
|
|
38
30
|
throw new Error(message || `Deep equality assertion failed`);
|
|
39
31
|
}
|
|
40
32
|
};
|
|
41
33
|
assert.fail = (message?: string) => {
|
|
42
|
-
throw new Error(message ||
|
|
34
|
+
throw new Error(message || 'Assertion failed');
|
|
43
35
|
};
|
|
44
36
|
|
|
45
37
|
// Set as global for bundled libraries that expect it
|
|
46
|
-
if (typeof window !==
|
|
38
|
+
if (typeof window !== 'undefined') {
|
|
47
39
|
(window as unknown as Record<string, unknown>).assert = assert;
|
|
48
40
|
}
|
|
49
|
-
if (typeof globalThis !==
|
|
41
|
+
if (typeof globalThis !== 'undefined') {
|
|
50
42
|
(globalThis as unknown as Record<string, unknown>).assert = assert;
|
|
51
43
|
}
|
|
52
44
|
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
* @module @burdenoff/fe-libs/shared/shims
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
export { assert } from
|
|
22
|
-
export { default as processShim } from
|
|
23
|
-
export { useSyncExternalStoreWithSelector } from
|
|
24
|
-
export { useSyncExternalStore } from
|
|
21
|
+
export { assert } from './assert';
|
|
22
|
+
export { default as processShim } from './process';
|
|
23
|
+
export { useSyncExternalStoreWithSelector } from './use-sync-external-store-with-selector';
|
|
24
|
+
export { useSyncExternalStore } from './use-sync-external-store-shim';
|
|
25
25
|
|
|
26
26
|
// Re-export for direct use as module aliases
|
|
27
|
-
export * as utilShim from
|
|
27
|
+
export * as utilShim from './util';
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
const processShim = {
|
|
9
9
|
env: {},
|
|
10
10
|
browser: true,
|
|
11
|
-
platform:
|
|
12
|
-
cwd: () =>
|
|
11
|
+
platform: 'browser',
|
|
12
|
+
cwd: () => '/',
|
|
13
13
|
nextTick: (callback: (...args: unknown[]) => void, ...args: unknown[]) => {
|
|
14
14
|
queueMicrotask(() => callback(...args));
|
|
15
15
|
},
|
|
@@ -8,13 +8,7 @@
|
|
|
8
8
|
* @module @burdenoff/fe-libs/shared/shims/use-sync-external-store-with-selector
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import {
|
|
12
|
-
useDebugValue,
|
|
13
|
-
useEffect,
|
|
14
|
-
useMemo,
|
|
15
|
-
useRef,
|
|
16
|
-
useSyncExternalStore,
|
|
17
|
-
} from "react";
|
|
11
|
+
import { useDebugValue, useEffect, useMemo, useRef, useSyncExternalStore } from 'react';
|
|
18
12
|
|
|
19
13
|
type Selector<TSnapshot, TSelection> = (snapshot: TSnapshot) => TSelection;
|
|
20
14
|
type IsEqual<TSelection> = (a: TSelection, b: TSelection) => boolean;
|
|
@@ -31,7 +25,7 @@ export function useSyncExternalStoreWithSelector<TSnapshot, TSelection>(
|
|
|
31
25
|
getSnapshot: () => TSnapshot,
|
|
32
26
|
getServerSnapshot: (() => TSnapshot) | undefined,
|
|
33
27
|
selector: Selector<TSnapshot, TSelection>,
|
|
34
|
-
isEqual?: IsEqual<TSelection
|
|
28
|
+
isEqual?: IsEqual<TSelection>
|
|
35
29
|
): TSelection {
|
|
36
30
|
const instRef = useRef<SelectorInstance<TSelection> | null>(null);
|
|
37
31
|
|
|
@@ -84,18 +78,12 @@ export function useSyncExternalStoreWithSelector<TSnapshot, TSelection>(
|
|
|
84
78
|
|
|
85
79
|
const getSnapshotWithSelector = () => memoizedSelector(getSnapshot());
|
|
86
80
|
const getServerSnapshotWithSelector =
|
|
87
|
-
getServerSnapshot === undefined
|
|
88
|
-
? undefined
|
|
89
|
-
: () => memoizedSelector(getServerSnapshot());
|
|
81
|
+
getServerSnapshot === undefined ? undefined : () => memoizedSelector(getServerSnapshot());
|
|
90
82
|
|
|
91
83
|
return [getSnapshotWithSelector, getServerSnapshotWithSelector] as const;
|
|
92
84
|
}, [getSnapshot, getServerSnapshot, selector, isEqual, inst]);
|
|
93
85
|
|
|
94
|
-
const value = useSyncExternalStore(
|
|
95
|
-
subscribe,
|
|
96
|
-
getSelection,
|
|
97
|
-
getServerSelection,
|
|
98
|
-
);
|
|
86
|
+
const value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
99
87
|
|
|
100
88
|
useEffect(() => {
|
|
101
89
|
inst.hasValue = true;
|
package/src/shared/shims/util.ts
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
export function isPromise(value: unknown): value is Promise<unknown> {
|
|
9
9
|
return (
|
|
10
10
|
value !== null &&
|
|
11
|
-
typeof value ===
|
|
12
|
-
typeof (value as Promise<unknown>).then ===
|
|
13
|
-
typeof (value as Promise<unknown>).catch ===
|
|
11
|
+
typeof value === 'object' &&
|
|
12
|
+
typeof (value as Promise<unknown>).then === 'function' &&
|
|
13
|
+
typeof (value as Promise<unknown>).catch === 'function'
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -47,60 +47,56 @@ export function isNull(value: unknown): value is null {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export function isBoolean(value: unknown): value is boolean {
|
|
50
|
-
return typeof value ===
|
|
50
|
+
return typeof value === 'boolean';
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export function isNumber(value: unknown): value is number {
|
|
54
|
-
return typeof value ===
|
|
54
|
+
return typeof value === 'number';
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export function isString(value: unknown): value is string {
|
|
58
|
-
return typeof value ===
|
|
58
|
+
return typeof value === 'string';
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export function isSymbol(value: unknown): value is symbol {
|
|
62
|
-
return typeof value ===
|
|
62
|
+
return typeof value === 'symbol';
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export function isObject(value: unknown): value is object {
|
|
66
|
-
return typeof value ===
|
|
66
|
+
return typeof value === 'object' && value !== null;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export function isFunction(
|
|
70
|
-
value
|
|
71
|
-
): value is (...args: unknown[]) => unknown {
|
|
72
|
-
return typeof value === "function";
|
|
69
|
+
export function isFunction(value: unknown): value is (...args: unknown[]) => unknown {
|
|
70
|
+
return typeof value === 'function';
|
|
73
71
|
}
|
|
74
72
|
|
|
75
73
|
export function isPrimitive(value: unknown): boolean {
|
|
76
|
-
return (
|
|
77
|
-
value === null || (typeof value !== "object" && typeof value !== "function")
|
|
78
|
-
);
|
|
74
|
+
return value === null || (typeof value !== 'object' && typeof value !== 'function');
|
|
79
75
|
}
|
|
80
76
|
|
|
81
77
|
export const inspect = {
|
|
82
|
-
custom: Symbol.for(
|
|
78
|
+
custom: Symbol.for('nodejs.util.inspect.custom'),
|
|
83
79
|
};
|
|
84
80
|
|
|
85
81
|
export function format(fmt: string, ...args: unknown[]): string {
|
|
86
82
|
let i = 0;
|
|
87
83
|
return fmt.replace(/%[sdjifoO%]/g, (match) => {
|
|
88
|
-
if (match ===
|
|
84
|
+
if (match === '%%') return '%';
|
|
89
85
|
if (i >= args.length) return match;
|
|
90
86
|
const arg = args[i++];
|
|
91
87
|
switch (match) {
|
|
92
|
-
case
|
|
88
|
+
case '%s':
|
|
93
89
|
return String(arg);
|
|
94
|
-
case
|
|
90
|
+
case '%d':
|
|
95
91
|
return String(Number(arg));
|
|
96
|
-
case
|
|
92
|
+
case '%i':
|
|
97
93
|
return String(parseInt(String(arg), 10));
|
|
98
|
-
case
|
|
94
|
+
case '%f':
|
|
99
95
|
return String(parseFloat(String(arg)));
|
|
100
|
-
case
|
|
96
|
+
case '%j':
|
|
101
97
|
return JSON.stringify(arg);
|
|
102
|
-
case
|
|
103
|
-
case
|
|
98
|
+
case '%o':
|
|
99
|
+
case '%O':
|
|
104
100
|
return JSON.stringify(arg, null, 2);
|
|
105
101
|
default:
|
|
106
102
|
return String(arg);
|
|
@@ -110,22 +106,17 @@ export function format(fmt: string, ...args: unknown[]): string {
|
|
|
110
106
|
|
|
111
107
|
export function inherits(
|
|
112
108
|
ctor: { prototype: object; super_?: unknown },
|
|
113
|
-
superCtor: { prototype: object }
|
|
109
|
+
superCtor: { prototype: object }
|
|
114
110
|
): void {
|
|
115
111
|
ctor.super_ = superCtor;
|
|
116
112
|
Object.setPrototypeOf(ctor.prototype, superCtor.prototype);
|
|
117
113
|
}
|
|
118
114
|
|
|
119
|
-
export function deprecate<T extends (...args: unknown[]) => unknown>(
|
|
120
|
-
fn: T,
|
|
121
|
-
_msg: string,
|
|
122
|
-
): T {
|
|
115
|
+
export function deprecate<T extends (...args: unknown[]) => unknown>(fn: T, _msg: string): T {
|
|
123
116
|
return fn;
|
|
124
117
|
}
|
|
125
118
|
|
|
126
|
-
export function promisify<T>(
|
|
127
|
-
fn: (...args: unknown[]) => void,
|
|
128
|
-
): (...args: unknown[]) => Promise<T> {
|
|
119
|
+
export function promisify<T>(fn: (...args: unknown[]) => void): (...args: unknown[]) => Promise<T> {
|
|
129
120
|
return (...args: unknown[]) =>
|
|
130
121
|
new Promise((resolve, reject) => {
|
|
131
122
|
fn(...args, (err: Error | null, result: T) => {
|
|
@@ -136,7 +127,7 @@ export function promisify<T>(
|
|
|
136
127
|
}
|
|
137
128
|
|
|
138
129
|
export function callbackify<T>(
|
|
139
|
-
fn: (...args: unknown[]) => Promise<T
|
|
130
|
+
fn: (...args: unknown[]) => Promise<T>
|
|
140
131
|
): (...args: [...unknown[], (err: Error | null, result?: T) => void]) => void {
|
|
141
132
|
return (...args) => {
|
|
142
133
|
const callback = args.pop() as (err: Error | null, result?: T) => void;
|
|
@@ -151,55 +142,43 @@ export const types = {
|
|
|
151
142
|
isDate,
|
|
152
143
|
isRegExp,
|
|
153
144
|
isArray,
|
|
154
|
-
isArrayBuffer: (value: unknown): value is ArrayBuffer =>
|
|
155
|
-
value instanceof ArrayBuffer,
|
|
145
|
+
isArrayBuffer: (value: unknown): value is ArrayBuffer => value instanceof ArrayBuffer,
|
|
156
146
|
isArrayBufferView: (value: unknown): boolean => ArrayBuffer.isView(value),
|
|
157
147
|
isAsyncFunction: (value: unknown): boolean =>
|
|
158
|
-
typeof value ===
|
|
148
|
+
typeof value === 'function' && value.constructor.name === 'AsyncFunction',
|
|
159
149
|
isBigInt64Array: (value: unknown): boolean => value instanceof BigInt64Array,
|
|
160
|
-
isBigUint64Array: (value: unknown): boolean =>
|
|
161
|
-
value instanceof BigUint64Array,
|
|
150
|
+
isBigUint64Array: (value: unknown): boolean => value instanceof BigUint64Array,
|
|
162
151
|
isBooleanObject: (value: unknown): boolean =>
|
|
163
|
-
typeof value ===
|
|
152
|
+
typeof value === 'object' && value instanceof Boolean,
|
|
164
153
|
isDataView: (value: unknown): value is DataView => value instanceof DataView,
|
|
165
154
|
isFloat32Array: (value: unknown): boolean => value instanceof Float32Array,
|
|
166
155
|
isFloat64Array: (value: unknown): boolean => value instanceof Float64Array,
|
|
167
156
|
isGeneratorFunction: (value: unknown): boolean =>
|
|
168
|
-
typeof value ===
|
|
169
|
-
value.constructor.name === "GeneratorFunction",
|
|
157
|
+
typeof value === 'function' && value.constructor.name === 'GeneratorFunction',
|
|
170
158
|
isGeneratorObject: (value: unknown): boolean =>
|
|
171
|
-
typeof value ===
|
|
172
|
-
value !== null &&
|
|
173
|
-
value.constructor.name === "Generator",
|
|
159
|
+
typeof value === 'object' && value !== null && value.constructor.name === 'Generator',
|
|
174
160
|
isInt8Array: (value: unknown): boolean => value instanceof Int8Array,
|
|
175
161
|
isInt16Array: (value: unknown): boolean => value instanceof Int16Array,
|
|
176
162
|
isInt32Array: (value: unknown): boolean => value instanceof Int32Array,
|
|
177
|
-
isMap: (value: unknown): value is Map<unknown, unknown> =>
|
|
178
|
-
value instanceof Map,
|
|
163
|
+
isMap: (value: unknown): value is Map<unknown, unknown> => value instanceof Map,
|
|
179
164
|
isMapIterator: (_value: unknown): boolean => false,
|
|
180
165
|
isNativeError: isError,
|
|
181
|
-
isNumberObject: (value: unknown): boolean =>
|
|
182
|
-
typeof value === "object" && value instanceof Number,
|
|
166
|
+
isNumberObject: (value: unknown): boolean => typeof value === 'object' && value instanceof Number,
|
|
183
167
|
isSet: (value: unknown): value is Set<unknown> => value instanceof Set,
|
|
184
168
|
isSetIterator: (_value: unknown): boolean => false,
|
|
185
169
|
isSharedArrayBuffer: (value: unknown): boolean =>
|
|
186
|
-
typeof SharedArrayBuffer !==
|
|
187
|
-
|
|
188
|
-
isStringObject: (value: unknown): boolean =>
|
|
189
|
-
typeof value === "object" && value instanceof String,
|
|
170
|
+
typeof SharedArrayBuffer !== 'undefined' && value instanceof SharedArrayBuffer,
|
|
171
|
+
isStringObject: (value: unknown): boolean => typeof value === 'object' && value instanceof String,
|
|
190
172
|
isSymbolObject: (value: unknown): boolean =>
|
|
191
|
-
typeof value ===
|
|
173
|
+
typeof value === 'object' && value !== null && value.constructor === Symbol,
|
|
192
174
|
isTypedArray: (value: unknown): boolean =>
|
|
193
175
|
ArrayBuffer.isView(value) && !(value instanceof DataView),
|
|
194
176
|
isUint8Array: (value: unknown): boolean => value instanceof Uint8Array,
|
|
195
|
-
isUint8ClampedArray: (value: unknown): boolean =>
|
|
196
|
-
value instanceof Uint8ClampedArray,
|
|
177
|
+
isUint8ClampedArray: (value: unknown): boolean => value instanceof Uint8ClampedArray,
|
|
197
178
|
isUint16Array: (value: unknown): boolean => value instanceof Uint16Array,
|
|
198
179
|
isUint32Array: (value: unknown): boolean => value instanceof Uint32Array,
|
|
199
|
-
isWeakMap: (value: unknown): value is WeakMap<object, unknown> =>
|
|
200
|
-
|
|
201
|
-
isWeakSet: (value: unknown): value is WeakSet<object> =>
|
|
202
|
-
value instanceof WeakSet,
|
|
180
|
+
isWeakMap: (value: unknown): value is WeakMap<object, unknown> => value instanceof WeakMap,
|
|
181
|
+
isWeakSet: (value: unknown): value is WeakSet<object> => value instanceof WeakSet,
|
|
203
182
|
};
|
|
204
183
|
|
|
205
184
|
export default {
|
package/src/vite/index.ts
CHANGED
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
// Types
|
|
29
|
-
export type { MicrofrontendConfig, AppShellConfig } from
|
|
29
|
+
export type { MicrofrontendConfig, AppShellConfig } from './types';
|
|
30
30
|
export {
|
|
31
31
|
STANDARD_MFE_EXTERNALS,
|
|
32
32
|
STANDARD_WATCH_IGNORE,
|
|
33
33
|
MFE_PORT_MAP,
|
|
34
34
|
APP_SHELL_PORT_MAP,
|
|
35
|
-
} from
|
|
35
|
+
} from './types';
|
|
36
36
|
|
|
37
37
|
// Plugins
|
|
38
38
|
export {
|
|
@@ -42,8 +42,8 @@ export {
|
|
|
42
42
|
createNodeShimAliases,
|
|
43
43
|
createZustandEsmPlugin,
|
|
44
44
|
createManualChunks,
|
|
45
|
-
} from
|
|
45
|
+
} from './plugins';
|
|
46
46
|
|
|
47
47
|
// Config Factories
|
|
48
|
-
export { createMicrofrontendConfig } from
|
|
49
|
-
export { createAppShellConfig } from
|
|
48
|
+
export { createMicrofrontendConfig } from './mfe.config';
|
|
49
|
+
export { createAppShellConfig } from './shell.config';
|
package/src/vite/mfe.config.ts
CHANGED
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
import { defineConfig, type UserConfig, type Plugin } from
|
|
27
|
-
import react from
|
|
28
|
-
import dts from
|
|
29
|
-
import { resolve, dirname } from
|
|
30
|
-
import { fileURLToPath } from
|
|
26
|
+
import { defineConfig, type UserConfig, type Plugin } from 'vite';
|
|
27
|
+
import react from '@vitejs/plugin-react';
|
|
28
|
+
import dts from 'vite-plugin-dts';
|
|
29
|
+
import { resolve, dirname } from 'path';
|
|
30
|
+
import { fileURLToPath } from 'url';
|
|
31
31
|
import {
|
|
32
32
|
type MicrofrontendConfig,
|
|
33
33
|
STANDARD_MFE_EXTERNALS,
|
|
34
34
|
STANDARD_WATCH_IGNORE,
|
|
35
35
|
MFE_PORT_MAP,
|
|
36
|
-
} from
|
|
37
|
-
import { createContextualAliasPlugin } from
|
|
36
|
+
} from './types';
|
|
37
|
+
import { createContextualAliasPlugin } from './plugins';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Creates a standardized Vite configuration for microfrontends.
|
|
@@ -45,11 +45,11 @@ import { createContextualAliasPlugin } from "./plugins";
|
|
|
45
45
|
*/
|
|
46
46
|
export function createMicrofrontendConfig(
|
|
47
47
|
config: MicrofrontendConfig,
|
|
48
|
-
configPath: string
|
|
48
|
+
configPath: string
|
|
49
49
|
): UserConfig {
|
|
50
50
|
// Resolve __dirname from the config file path
|
|
51
51
|
const __dirname =
|
|
52
|
-
typeof configPath ===
|
|
52
|
+
typeof configPath === 'string' && configPath.startsWith('file://')
|
|
53
53
|
? dirname(fileURLToPath(configPath))
|
|
54
54
|
: configPath;
|
|
55
55
|
|
|
@@ -57,7 +57,7 @@ export function createMicrofrontendConfig(
|
|
|
57
57
|
name,
|
|
58
58
|
port = MFE_PORT_MAP[name] || 5100,
|
|
59
59
|
entry = `${name}/index.ts`,
|
|
60
|
-
feLibsPath =
|
|
60
|
+
feLibsPath = '../../fe-libs/src',
|
|
61
61
|
additionalExternals = [],
|
|
62
62
|
additionalAliases = {},
|
|
63
63
|
additionalPlugins = [],
|
|
@@ -65,13 +65,11 @@ export function createMicrofrontendConfig(
|
|
|
65
65
|
} = config;
|
|
66
66
|
|
|
67
67
|
const resolvedFeLibsPath = resolve(__dirname, feLibsPath);
|
|
68
|
-
const srcPath = resolve(__dirname,
|
|
68
|
+
const srcPath = resolve(__dirname, './src');
|
|
69
69
|
|
|
70
70
|
// Build external array including regex patterns
|
|
71
71
|
const externals: (string | RegExp)[] = [
|
|
72
|
-
...STANDARD_MFE_EXTERNALS.filter(
|
|
73
|
-
(ext): ext is string => typeof ext === "string",
|
|
74
|
-
),
|
|
72
|
+
...STANDARD_MFE_EXTERNALS.filter((ext): ext is string => typeof ext === 'string'),
|
|
75
73
|
...additionalExternals,
|
|
76
74
|
// Include regex patterns
|
|
77
75
|
/^@burdenoff\/fe-libs\/.*/,
|
|
@@ -95,8 +93,8 @@ export function createMicrofrontendConfig(
|
|
|
95
93
|
strictPort: true,
|
|
96
94
|
headers: {
|
|
97
95
|
// Required for OAuth popup flows and SharedArrayBuffer
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
'Cross-Origin-Opener-Policy': 'same-origin-allow-popups',
|
|
97
|
+
'Cross-Origin-Embedder-Policy': 'unsafe-none',
|
|
100
98
|
},
|
|
101
99
|
watch: {
|
|
102
100
|
ignored: [...STANDARD_WATCH_IGNORE],
|
|
@@ -109,7 +107,7 @@ export function createMicrofrontendConfig(
|
|
|
109
107
|
entry: {
|
|
110
108
|
[name]: resolve(__dirname, `src/${entry}`),
|
|
111
109
|
},
|
|
112
|
-
formats: [
|
|
110
|
+
formats: ['es'],
|
|
113
111
|
},
|
|
114
112
|
|
|
115
113
|
// Rolldown options (Vite 8 uses Rolldown instead of Rollup)
|
|
@@ -118,10 +116,10 @@ export function createMicrofrontendConfig(
|
|
|
118
116
|
output: {
|
|
119
117
|
// Preserve module structure for optimal tree-shaking
|
|
120
118
|
preserveModules: true,
|
|
121
|
-
preserveModulesRoot:
|
|
119
|
+
preserveModulesRoot: 'src',
|
|
122
120
|
// Consistent file naming
|
|
123
|
-
entryFileNames:
|
|
124
|
-
chunkFileNames:
|
|
121
|
+
entryFileNames: '[name].js',
|
|
122
|
+
chunkFileNames: 'chunks/[name].js',
|
|
125
123
|
},
|
|
126
124
|
},
|
|
127
125
|
|
|
@@ -137,37 +135,30 @@ export function createMicrofrontendConfig(
|
|
|
137
135
|
|
|
138
136
|
resolve: {
|
|
139
137
|
alias: {
|
|
140
|
-
|
|
138
|
+
'@burdenoff/fe-libs': resolvedFeLibsPath,
|
|
141
139
|
...additionalAliases,
|
|
142
140
|
},
|
|
143
141
|
// Ensure consistent dependency resolution
|
|
144
|
-
dedupe: [
|
|
145
|
-
"react",
|
|
146
|
-
"react-dom",
|
|
147
|
-
"react-router-dom",
|
|
148
|
-
"@apollo/client",
|
|
149
|
-
"graphql",
|
|
150
|
-
"zustand",
|
|
151
|
-
],
|
|
142
|
+
dedupe: ['react', 'react-dom', 'react-router-dom', '@apollo/client', 'graphql', 'zustand'],
|
|
152
143
|
},
|
|
153
144
|
|
|
154
145
|
// Vite 8 uses Oxc for transforms instead of esbuild
|
|
155
146
|
oxc: {
|
|
156
147
|
jsx: {
|
|
157
|
-
runtime:
|
|
148
|
+
runtime: 'automatic',
|
|
158
149
|
},
|
|
159
150
|
},
|
|
160
151
|
|
|
161
152
|
// Optimize dependencies for faster dev startup
|
|
162
153
|
optimizeDeps: {
|
|
163
154
|
include: [
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
155
|
+
'react',
|
|
156
|
+
'react-dom',
|
|
157
|
+
'react-router-dom',
|
|
158
|
+
'@apollo/client',
|
|
159
|
+
'graphql',
|
|
160
|
+
'lucide-react',
|
|
161
|
+
'zustand',
|
|
171
162
|
],
|
|
172
163
|
},
|
|
173
164
|
}) as UserConfig;
|