@burdenoff/microfe-eventfullymanaged 2026.1102.4 → 2026.1108.1
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/dev/main.d.ts +0 -2
- package/dist/eventfullymanaged/EventfullyManagedRoot.d.ts +1 -3
- package/dist/eventfullymanaged/EventfullyManagedRoot.js +6 -6
- package/dist/eventfullymanaged/EventfullyManagedRoot.js.map +1 -1
- package/dist/eventfullymanaged/EventfullyManagedRoutes.d.ts +1 -2
- package/dist/eventfullymanaged/api/eventApi.d.ts +0 -2
- package/dist/eventfullymanaged/components/ActionMenu.d.ts +1 -3
- package/dist/eventfullymanaged/components/AttendanceForecast.d.ts +1 -3
- package/dist/eventfullymanaged/components/EntityFormShell.d.ts +1 -3
- package/dist/eventfullymanaged/components/EntityTagsField.d.ts +1 -2
- package/dist/eventfullymanaged/components/EventCharts.d.ts +4 -5
- package/dist/eventfullymanaged/components/EventDraftAssistant.d.ts +1 -3
- package/dist/eventfullymanaged/components/FloorPlanZoneEditor.d.ts +1 -3
- package/dist/eventfullymanaged/components/ImageUploadField.d.ts +8 -7
- package/dist/eventfullymanaged/components/ImageUploadField.js +39 -48
- package/dist/eventfullymanaged/components/ImageUploadField.js.map +1 -1
- package/dist/eventfullymanaged/components/PageLayout.d.ts +1 -3
- package/dist/eventfullymanaged/components/Pagination.d.ts +1 -2
- package/dist/eventfullymanaged/components/ResolvedImage.d.ts +14 -0
- package/dist/eventfullymanaged/components/ResolvedImage.js +18 -0
- package/dist/eventfullymanaged/components/ResolvedImage.js.map +1 -0
- package/dist/eventfullymanaged/components/SafeLink.d.ts +1 -3
- package/dist/eventfullymanaged/components/floorPlanEditor/ZoneCanvas.d.ts +1 -3
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.d.ts +3 -5
- package/dist/eventfullymanaged/components/floorPlanEditor/useZoneEditorState.d.ts +0 -2
- package/dist/eventfullymanaged/components/index.d.ts +0 -1
- package/dist/eventfullymanaged/context/EventfullyManagedContext.d.ts +1 -3
- package/dist/eventfullymanaged/hooks/index.d.ts +0 -1
- package/dist/eventfullymanaged/hooks/useEventDelete.d.ts +0 -1
- package/dist/eventfullymanaged/hooks/useEvmSubscription.d.ts +0 -1
- package/dist/eventfullymanaged/hooks/useResolvedImageUrl.d.ts +42 -0
- package/dist/eventfullymanaged/hooks/useResolvedImageUrl.js +106 -0
- package/dist/eventfullymanaged/hooks/useResolvedImageUrl.js.map +1 -0
- package/dist/eventfullymanaged/hooks/useVirtualCall.d.ts +0 -1
- package/dist/eventfullymanaged/index.d.ts +0 -1
- package/dist/eventfullymanaged/lib/eventDraft.d.ts +0 -1
- package/dist/eventfullymanaged/lib/fileRef.d.ts +24 -0
- package/dist/eventfullymanaged/lib/fileRef.js +15 -0
- package/dist/eventfullymanaged/lib/fileRef.js.map +1 -0
- package/dist/eventfullymanaged/lib/floorPlanZones.d.ts +0 -1
- package/dist/eventfullymanaged/lib/format.d.ts +0 -1
- package/dist/eventfullymanaged/lib/mutationResult.d.ts +0 -2
- package/dist/eventfullymanaged/lib/offlineCheckInQueue.d.ts +0 -1
- package/dist/eventfullymanaged/lib/toast.d.ts +0 -2
- package/dist/eventfullymanaged/lib/useOfflineCheckInSync.d.ts +0 -2
- package/dist/eventfullymanaged/pages/dashboard/DashboardPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/events/EventDetailPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/events/EventFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/events/SessionFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/events/TicketTypeFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +3 -3
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/eventFormUtils.d.ts +0 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/EntityListSection.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/EventsPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/KioskPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +1 -1
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +81 -80
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +1 -1
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/networking/MeetingFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/networking/NetworkingProfileFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/registration/AttendeeFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +73 -73
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +97 -96
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +173 -134
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +96 -94
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueFormPage.d.ts +1 -2
- package/dist/eventfullymanaged/pages/venues/VenueListPage.d.ts +1 -2
- package/dist/eventfullymanaged/store/eventfullyManagedStore.d.ts +0 -1
- package/dist/eventfullymanaged/types/index.d.ts +0 -2
- package/dist/eventfullymanaged/utils/cn.d.ts +0 -1
- package/dist/eventfullymanaged/utils/constants.d.ts +0 -1
- package/dist/eventfullymanaged/utils/navigation.d.ts +0 -1
- package/dist/eventfullymanaged/utils/shellBridge.d.ts +0 -1
- package/dist/generated/global-operations.d.ts +0 -1
- package/dist/generated/global-types.d.ts +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -1
- package/dist/generated/wspace-types.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/node_modules/@apollo/client/react/hooks/useQuery.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/useSyncExternalStore.js.map +1 -1
- package/dist/node_modules/@apollo/client/version.js +1 -1
- package/dist/node_modules/@apollo/client/version.js.map +1 -1
- package/dist/node_modules/d3-array/dist/d3-array.js +204 -0
- package/dist/node_modules/d3-array/dist/d3-array.js.map +1 -0
- package/dist/node_modules/d3-color/dist/d3-color.js +388 -0
- package/dist/node_modules/d3-color/dist/d3-color.js.map +1 -0
- package/dist/node_modules/d3-format/dist/d3-format.js +186 -0
- package/dist/node_modules/d3-format/dist/d3-format.js.map +1 -0
- package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +185 -0
- package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js.map +1 -0
- package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +33 -9
- package/dist/node_modules/d3-path/dist/d3-path.js.map +1 -0
- package/dist/node_modules/d3-scale/dist/d3-scale.js +622 -0
- package/dist/node_modules/d3-scale/dist/d3-scale.js.map +1 -0
- package/dist/node_modules/d3-shape/dist/d3-shape.js +901 -0
- package/dist/node_modules/d3-shape/dist/d3-shape.js.map +1 -0
- package/dist/node_modules/d3-time/dist/d3-time.js +241 -0
- package/dist/node_modules/d3-time/dist/d3-time.js.map +1 -0
- package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +229 -173
- package/dist/node_modules/d3-time-format/dist/d3-time-format.js.map +1 -0
- package/dist/node_modules/fast-equals/dist/es/index.js +107 -76
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/node_modules/graphql/error/GraphQLError.js +5 -2
- package/dist/node_modules/graphql/error/GraphQLError.js.map +1 -1
- package/dist/node_modules/graphql/language/ast.js.map +1 -1
- package/dist/node_modules/graphql/language/lexer.js +14 -8
- package/dist/node_modules/graphql/language/lexer.js.map +1 -1
- package/dist/node_modules/graphql/language/location.js +30 -11
- package/dist/node_modules/graphql/language/location.js.map +1 -1
- package/dist/node_modules/graphql/language/parser.js +9 -7
- package/dist/node_modules/graphql/language/parser.js.map +1 -1
- package/dist/node_modules/graphql/language/printLocation.js.map +1 -1
- package/dist/node_modules/graphql/language/source.js.map +1 -1
- package/dist/node_modules/graphql-tag/lib/index.js +2 -1
- package/dist/node_modules/graphql-tag/lib/index.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Curve.js +22 -32
- package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -8
- package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +7 -13
- package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +1 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js +51 -0
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +4 -51
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/victory-vendor/es/d3-scale.js +27 -43
- package/dist/node_modules/victory-vendor/es/d3-scale.js.map +1 -1
- package/dist/services/createSandboxAssistantTransport.d.ts +0 -1
- package/dist/shared/hooks/index.d.ts +0 -1
- package/dist/shared/hooks/useTr.d.ts +0 -1
- package/dist/stories/ActionMenu.stories.d.ts +0 -2
- package/dist/stories/Pagination.stories.d.ts +0 -2
- package/dist/stories/SafeLink.stories.d.ts +0 -2
- package/dist/test/happydom.d.ts +1 -0
- package/dist/utils/pageContext.d.ts +0 -1
- package/dist/utils/pageContext.js +1 -1
- package/package.json +69 -58
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/eventfullymanaged/EventfullyManagedRoot.d.ts.map +0 -1
- package/dist/eventfullymanaged/EventfullyManagedRoutes.d.ts.map +0 -1
- package/dist/eventfullymanaged/api/eventApi.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/ActionMenu.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/AttendanceForecast.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/EntityFormShell.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/EntityTagsField.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/EventCharts.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/EventDraftAssistant.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/FloorPlanZoneEditor.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/ImageUploadField.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/PageLayout.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/Pagination.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/SafeLink.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/floorPlanEditor/ZoneCanvas.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/floorPlanEditor/useZoneEditorState.d.ts.map +0 -1
- package/dist/eventfullymanaged/components/index.d.ts.map +0 -1
- package/dist/eventfullymanaged/context/EventfullyManagedContext.d.ts.map +0 -1
- package/dist/eventfullymanaged/hooks/index.d.ts.map +0 -1
- package/dist/eventfullymanaged/hooks/useEventDelete.d.ts.map +0 -1
- package/dist/eventfullymanaged/hooks/useEvmSubscription.d.ts.map +0 -1
- package/dist/eventfullymanaged/hooks/useVirtualCall.d.ts.map +0 -1
- package/dist/eventfullymanaged/index.d.ts.map +0 -1
- package/dist/eventfullymanaged/lib/eventDraft.d.ts.map +0 -1
- package/dist/eventfullymanaged/lib/floorPlanZones.d.ts.map +0 -1
- package/dist/eventfullymanaged/lib/format.d.ts.map +0 -1
- package/dist/eventfullymanaged/lib/mutationResult.d.ts.map +0 -1
- package/dist/eventfullymanaged/lib/offlineCheckInQueue.d.ts.map +0 -1
- package/dist/eventfullymanaged/lib/toast.d.ts.map +0 -1
- package/dist/eventfullymanaged/lib/useOfflineCheckInSync.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/dashboard/DashboardPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/events/EventDetailPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/events/EventFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/events/SessionFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/events/TicketTypeFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/events/eventFormUtils.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/EntityListSection.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/EventsPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/KioskPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/networking/MeetingFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/networking/NetworkingProfileFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/registration/AttendeeFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/venues/VenueFormPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/pages/venues/VenueListPage.d.ts.map +0 -1
- package/dist/eventfullymanaged/store/eventfullyManagedStore.d.ts.map +0 -1
- package/dist/eventfullymanaged/types/index.d.ts.map +0 -1
- package/dist/eventfullymanaged/utils/cn.d.ts.map +0 -1
- package/dist/eventfullymanaged/utils/constants.d.ts.map +0 -1
- package/dist/eventfullymanaged/utils/navigation.d.ts.map +0 -1
- package/dist/eventfullymanaged/utils/shellBridge.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/node_modules/d3-array/src/ascending.js +0 -7
- package/dist/node_modules/d3-array/src/ascending.js.map +0 -1
- package/dist/node_modules/d3-array/src/bisect.js +0 -9
- package/dist/node_modules/d3-array/src/bisect.js.map +0 -1
- package/dist/node_modules/d3-array/src/bisector.js +0 -42
- package/dist/node_modules/d3-array/src/bisector.js.map +0 -1
- package/dist/node_modules/d3-array/src/descending.js +0 -7
- package/dist/node_modules/d3-array/src/descending.js.map +0 -1
- package/dist/node_modules/d3-array/src/max.js +0 -13
- package/dist/node_modules/d3-array/src/max.js.map +0 -1
- package/dist/node_modules/d3-array/src/min.js +0 -13
- package/dist/node_modules/d3-array/src/min.js.map +0 -1
- package/dist/node_modules/d3-array/src/number.js +0 -14
- package/dist/node_modules/d3-array/src/number.js.map +0 -1
- package/dist/node_modules/d3-array/src/quantile.js +0 -24
- package/dist/node_modules/d3-array/src/quantile.js.map +0 -1
- package/dist/node_modules/d3-array/src/quickselect.js +0 -25
- package/dist/node_modules/d3-array/src/quickselect.js.map +0 -1
- package/dist/node_modules/d3-array/src/range.js +0 -9
- package/dist/node_modules/d3-array/src/range.js.map +0 -1
- package/dist/node_modules/d3-array/src/sort.js +0 -16
- package/dist/node_modules/d3-array/src/sort.js.map +0 -1
- package/dist/node_modules/d3-array/src/ticks.js +0 -34
- package/dist/node_modules/d3-array/src/ticks.js.map +0 -1
- package/dist/node_modules/d3-color/src/color.js +0 -290
- package/dist/node_modules/d3-color/src/color.js.map +0 -1
- package/dist/node_modules/d3-color/src/define.js +0 -12
- package/dist/node_modules/d3-color/src/define.js.map +0 -1
- package/dist/node_modules/d3-format/src/defaultLocale.js +0 -14
- package/dist/node_modules/d3-format/src/defaultLocale.js.map +0 -1
- package/dist/node_modules/d3-format/src/exponent.js +0 -8
- package/dist/node_modules/d3-format/src/exponent.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatDecimal.js +0 -12
- package/dist/node_modules/d3-format/src/formatDecimal.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatGroup.js +0 -10
- package/dist/node_modules/d3-format/src/formatGroup.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatNumerals.js +0 -11
- package/dist/node_modules/d3-format/src/formatNumerals.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -12
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatRounded.js +0 -11
- package/dist/node_modules/d3-format/src/formatRounded.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -28
- package/dist/node_modules/d3-format/src/formatSpecifier.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatTrim.js +0 -18
- package/dist/node_modules/d3-format/src/formatTrim.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatTypes.js +0 -22
- package/dist/node_modules/d3-format/src/formatTypes.js.map +0 -1
- package/dist/node_modules/d3-format/src/identity.js +0 -7
- package/dist/node_modules/d3-format/src/identity.js.map +0 -1
- package/dist/node_modules/d3-format/src/locale.js +0 -83
- package/dist/node_modules/d3-format/src/locale.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionFixed.js +0 -8
- package/dist/node_modules/d3-format/src/precisionFixed.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -8
- package/dist/node_modules/d3-format/src/precisionPrefix.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionRound.js +0 -8
- package/dist/node_modules/d3-format/src/precisionRound.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/array.js +0 -13
- package/dist/node_modules/d3-interpolate/src/array.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/basis.js +0 -15
- package/dist/node_modules/d3-interpolate/src/basis.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -12
- package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/color.js +0 -24
- package/dist/node_modules/d3-interpolate/src/color.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/constant.js +0 -5
- package/dist/node_modules/d3-interpolate/src/constant.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/date.js +0 -10
- package/dist/node_modules/d3-interpolate/src/date.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/number.js +0 -9
- package/dist/node_modules/d3-interpolate/src/number.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -15
- package/dist/node_modules/d3-interpolate/src/numberArray.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/object.js +0 -13
- package/dist/node_modules/d3-interpolate/src/object.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -13
- package/dist/node_modules/d3-interpolate/src/piecewise.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/rgb.js +0 -18
- package/dist/node_modules/d3-interpolate/src/rgb.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/round.js +0 -9
- package/dist/node_modules/d3-interpolate/src/round.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/string.js +0 -27
- package/dist/node_modules/d3-interpolate/src/string.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/value.js +0 -17
- package/dist/node_modules/d3-interpolate/src/value.js.map +0 -1
- package/dist/node_modules/d3-path/src/path.js.map +0 -1
- package/dist/node_modules/d3-scale/src/band.js +0 -51
- package/dist/node_modules/d3-scale/src/band.js.map +0 -1
- package/dist/node_modules/d3-scale/src/constant.js +0 -9
- package/dist/node_modules/d3-scale/src/constant.js.map +0 -1
- package/dist/node_modules/d3-scale/src/continuous.js +0 -72
- package/dist/node_modules/d3-scale/src/continuous.js.map +0 -1
- package/dist/node_modules/d3-scale/src/diverging.js +0 -81
- package/dist/node_modules/d3-scale/src/diverging.js.map +0 -1
- package/dist/node_modules/d3-scale/src/identity.js +0 -19
- package/dist/node_modules/d3-scale/src/identity.js.map +0 -1
- package/dist/node_modules/d3-scale/src/init.js +0 -24
- package/dist/node_modules/d3-scale/src/init.js.map +0 -1
- package/dist/node_modules/d3-scale/src/linear.js +0 -35
- package/dist/node_modules/d3-scale/src/linear.js.map +0 -1
- package/dist/node_modules/d3-scale/src/log.js +0 -76
- package/dist/node_modules/d3-scale/src/log.js.map +0 -1
- package/dist/node_modules/d3-scale/src/nice.js +0 -9
- package/dist/node_modules/d3-scale/src/nice.js.map +0 -1
- package/dist/node_modules/d3-scale/src/number.js +0 -7
- package/dist/node_modules/d3-scale/src/number.js.map +0 -1
- package/dist/node_modules/d3-scale/src/ordinal.js +0 -30
- package/dist/node_modules/d3-scale/src/ordinal.js.map +0 -1
- package/dist/node_modules/d3-scale/src/pow.js +0 -36
- package/dist/node_modules/d3-scale/src/pow.js.map +0 -1
- package/dist/node_modules/d3-scale/src/quantile.js +0 -36
- package/dist/node_modules/d3-scale/src/quantile.js.map +0 -1
- package/dist/node_modules/d3-scale/src/quantize.js +0 -32
- package/dist/node_modules/d3-scale/src/quantize.js.map +0 -1
- package/dist/node_modules/d3-scale/src/radial.js +0 -38
- package/dist/node_modules/d3-scale/src/radial.js.map +0 -1
- package/dist/node_modules/d3-scale/src/sequential.js +0 -66
- package/dist/node_modules/d3-scale/src/sequential.js.map +0 -1
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -29
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +0 -1
- package/dist/node_modules/d3-scale/src/symlog.js +0 -29
- package/dist/node_modules/d3-scale/src/symlog.js.map +0 -1
- package/dist/node_modules/d3-scale/src/threshold.js +0 -24
- package/dist/node_modules/d3-scale/src/threshold.js.map +0 -1
- package/dist/node_modules/d3-scale/src/tickFormat.js +0 -28
- package/dist/node_modules/d3-scale/src/tickFormat.js.map +0 -1
- package/dist/node_modules/d3-scale/src/time.js +0 -46
- package/dist/node_modules/d3-scale/src/time.js.map +0 -1
- package/dist/node_modules/d3-scale/src/utcTime.js +0 -18
- package/dist/node_modules/d3-scale/src/utcTime.js.map +0 -1
- package/dist/node_modules/d3-shape/src/area.js +0 -56
- package/dist/node_modules/d3-shape/src/area.js.map +0 -1
- package/dist/node_modules/d3-shape/src/array.js +0 -7
- package/dist/node_modules/d3-shape/src/array.js.map +0 -1
- package/dist/node_modules/d3-shape/src/constant.js +0 -9
- package/dist/node_modules/d3-shape/src/constant.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basis.js +0 -44
- package/dist/node_modules/d3-shape/src/curve/basis.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -45
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -43
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/bump.js +0 -37
- package/dist/node_modules/d3-shape/src/curve/bump.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linear.js +0 -33
- package/dist/node_modules/d3-shape/src/curve/linear.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -24
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -89
- package/dist/node_modules/d3-shape/src/curve/monotone.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/natural.js +0 -40
- package/dist/node_modules/d3-shape/src/curve/natural.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/step.js +0 -44
- package/dist/node_modules/d3-shape/src/curve/step.js.map +0 -1
- package/dist/node_modules/d3-shape/src/line.js +0 -29
- package/dist/node_modules/d3-shape/src/line.js.map +0 -1
- package/dist/node_modules/d3-shape/src/math.js +0 -7
- package/dist/node_modules/d3-shape/src/math.js.map +0 -1
- package/dist/node_modules/d3-shape/src/noop.js +0 -5
- package/dist/node_modules/d3-shape/src/noop.js.map +0 -1
- package/dist/node_modules/d3-shape/src/offset/expand.js +0 -14
- package/dist/node_modules/d3-shape/src/offset/expand.js.map +0 -1
- package/dist/node_modules/d3-shape/src/offset/none.js +0 -7
- package/dist/node_modules/d3-shape/src/offset/none.js.map +0 -1
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -14
- package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +0 -1
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -20
- package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/order/none.js +0 -8
- package/dist/node_modules/d3-shape/src/order/none.js.map +0 -1
- package/dist/node_modules/d3-shape/src/path.js +0 -18
- package/dist/node_modules/d3-shape/src/path.js.map +0 -1
- package/dist/node_modules/d3-shape/src/point.js +0 -10
- package/dist/node_modules/d3-shape/src/point.js.map +0 -1
- package/dist/node_modules/d3-shape/src/stack.js +0 -33
- package/dist/node_modules/d3-shape/src/stack.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -9
- package/dist/node_modules/d3-shape/src/symbol/circle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -9
- package/dist/node_modules/d3-shape/src/symbol/cross.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -9
- package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/square.js +0 -9
- package/dist/node_modules/d3-shape/src/symbol/square.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/star.js +0 -14
- package/dist/node_modules/d3-shape/src/symbol/star.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -9
- package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -9
- package/dist/node_modules/d3-shape/src/symbol/wye.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol.js +0 -22
- package/dist/node_modules/d3-shape/src/symbol.js.map +0 -1
- package/dist/node_modules/d3-time/src/day.js +0 -20
- package/dist/node_modules/d3-time/src/day.js.map +0 -1
- package/dist/node_modules/d3-time/src/duration.js +0 -5
- package/dist/node_modules/d3-time/src/duration.js.map +0 -1
- package/dist/node_modules/d3-time/src/hour.js +0 -18
- package/dist/node_modules/d3-time/src/hour.js.map +0 -1
- package/dist/node_modules/d3-time/src/interval.js +0 -29
- package/dist/node_modules/d3-time/src/interval.js.map +0 -1
- package/dist/node_modules/d3-time/src/millisecond.js +0 -13
- package/dist/node_modules/d3-time/src/millisecond.js.map +0 -1
- package/dist/node_modules/d3-time/src/minute.js +0 -18
- package/dist/node_modules/d3-time/src/minute.js.map +0 -1
- package/dist/node_modules/d3-time/src/month.js +0 -17
- package/dist/node_modules/d3-time/src/month.js.map +0 -1
- package/dist/node_modules/d3-time/src/second.js +0 -12
- package/dist/node_modules/d3-time/src/second.js.map +0 -1
- package/dist/node_modules/d3-time/src/ticks.js +0 -124
- package/dist/node_modules/d3-time/src/ticks.js.map +0 -1
- package/dist/node_modules/d3-time/src/week.js +0 -24
- package/dist/node_modules/d3-time/src/week.js.map +0 -1
- package/dist/node_modules/d3-time/src/year.js +0 -25
- package/dist/node_modules/d3-time/src/year.js.map +0 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -61
- package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +0 -1
- package/dist/node_modules/d3-time-format/src/locale.js.map +0 -1
- package/dist/node_modules/graphql/jsutils/invariant.js +0 -7
- package/dist/node_modules/graphql/jsutils/invariant.js.map +0 -1
- package/dist/node_modules/internmap/src/index.js +0 -39
- package/dist/node_modules/internmap/src/index.js.map +0 -1
- package/dist/services/createSandboxAssistantTransport.d.ts.map +0 -1
- package/dist/shared/hooks/index.d.ts.map +0 -1
- package/dist/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/stories/ActionMenu.stories.d.ts.map +0 -1
- package/dist/stories/Pagination.stories.d.ts.map +0 -1
- package/dist/stories/SafeLink.stories.d.ts.map +0 -1
- package/dist/test/setup.d.ts +0 -11
- package/dist/test/setup.d.ts.map +0 -1
- package/dist/utils/pageContext.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueResourcesPage.js","names":["VenueResourcesPage","useParams","useEventfullyManaged","venueQuery","useVenueQuery","id","venue","floorPlans","useMemo","PagePurpose","EmphasisPanel","GradientText","GlassCard","EntityListSection","floorPlan","amenity","NextSteps","Building2","navigate","SquareStack","Map"],"sources":["../../../../src/eventfullymanaged/pages/modules/VenueResourcesPage.tsx"],"sourcesContent":["import { Building2, Map, SquareStack } from 'lucide-react';\nimport { EmphasisPanel, GlassCard, GradientText, NextSteps, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useMemo } from 'react';\nimport { useParams } from 'react-router';\n\nimport { useVenueQuery } from '../../api/eventApi';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { EntityListSection } from './EntityListSection';\n\ntype FloorPlanRow = {\n id: string;\n name: string;\n imageUrl?: string | null;\n};\n\nexport default function VenueResourcesPage() {\n const { id = '' } = useParams();\n const { navigate } = useEventfullyManaged();\n const venueQuery = useVenueQuery(id);\n const venue = venueQuery.data?.venue;\n const floorPlans = useMemo(() => (venueQuery.data?.floorPlans.items ?? []) as FloorPlanRow[], [venueQuery.data]);\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n A capacity-and-layout view of a single venue. It rolls up the practical resources you need to run an event in\n this space — how many people fit, what amenities are on offer, and which floor plans are mapped. Use it when\n deciding whether a venue can host your event and what still needs setting up.\n </PagePurpose>\n\n <EmphasisPanel>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Venue</GradientText> Resources\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n {venueQuery.loading\n ? 'Loading venue resources...'\n : `Resource view for ${venue?.name ?? 'selected venue'} from live backend data.`}\n </p>\n <div className=\"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4\">\n <GlassCard treatment=\"glass\" glow className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Status</p>\n <p className=\"mt-1 font-medium text-text-primary\">{venue?.status ?? 'unknown'}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Capacity</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{venue?.capacity?.toLocaleString() ?? 0}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Amenities</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{venue?.amenities.length ?? 0}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Floor Plans</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{floorPlans.length}</p>\n </GlassCard>\n </div>\n </EmphasisPanel>\n\n <EntityListSection\n heading={venueQuery.loading ? 'Loading floor plans...' : `Floor Plans (${floorPlans.length})`}\n emptyLabel=\"No floor plans configured for this venue.\"\n emptyIllustration=\"empty-files\"\n rows={floorPlans.map((floorPlan) => ({\n id: floorPlan.id,\n title: floorPlan.name,\n subtitle: floorPlan.imageUrl
|
|
1
|
+
{"version":3,"file":"VenueResourcesPage.js","names":["VenueResourcesPage","useParams","useEventfullyManaged","venueQuery","useVenueQuery","id","venue","floorPlans","useMemo","PagePurpose","EmphasisPanel","GradientText","GlassCard","EntityListSection","floorPlan","amenity","NextSteps","Building2","navigate","SquareStack","Map"],"sources":["../../../../src/eventfullymanaged/pages/modules/VenueResourcesPage.tsx"],"sourcesContent":["import { Building2, Map, SquareStack } from 'lucide-react';\nimport { EmphasisPanel, GlassCard, GradientText, NextSteps, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useMemo } from 'react';\nimport { useParams } from 'react-router';\n\nimport { useVenueQuery } from '../../api/eventApi';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { EntityListSection } from './EntityListSection';\n\ntype FloorPlanRow = {\n id: string;\n name: string;\n imageUrl?: string | null;\n};\n\nexport default function VenueResourcesPage() {\n const { id = '' } = useParams();\n const { navigate } = useEventfullyManaged();\n const venueQuery = useVenueQuery(id);\n const venue = venueQuery.data?.venue;\n const floorPlans = useMemo(() => (venueQuery.data?.floorPlans.items ?? []) as FloorPlanRow[], [venueQuery.data]);\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n A capacity-and-layout view of a single venue. It rolls up the practical resources you need to run an event in\n this space — how many people fit, what amenities are on offer, and which floor plans are mapped. Use it when\n deciding whether a venue can host your event and what still needs setting up.\n </PagePurpose>\n\n <EmphasisPanel>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Venue</GradientText> Resources\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n {venueQuery.loading\n ? 'Loading venue resources...'\n : `Resource view for ${venue?.name ?? 'selected venue'} from live backend data.`}\n </p>\n <div className=\"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4\">\n <GlassCard treatment=\"glass\" glow className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Status</p>\n <p className=\"mt-1 font-medium text-text-primary\">{venue?.status ?? 'unknown'}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Capacity</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{venue?.capacity?.toLocaleString() ?? 0}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Amenities</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{venue?.amenities.length ?? 0}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Floor Plans</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{floorPlans.length}</p>\n </GlassCard>\n </div>\n </EmphasisPanel>\n\n <EntityListSection\n heading={venueQuery.loading ? 'Loading floor plans...' : `Floor Plans (${floorPlans.length})`}\n emptyLabel=\"No floor plans configured for this venue.\"\n emptyIllustration=\"empty-files\"\n rows={floorPlans.map((floorPlan) => ({\n id: floorPlan.id,\n title: floorPlan.name,\n subtitle: floorPlan.imageUrl ? 'Map attached' : 'No image yet',\n }))}\n />\n\n <EntityListSection\n heading=\"Amenities\"\n emptyLabel=\"No amenities listed.\"\n rows={(venue?.amenities ?? []).map((amenity) => ({\n id: amenity,\n title: amenity,\n }))}\n />\n\n <NextSteps\n storageKey=\"eventfullymanaged-venue-resources\"\n title=\"Get this venue event-ready\"\n steps={[\n {\n id: 'venue-detail',\n label: 'Open venue details',\n description: 'Edit capacity, address, status and amenities.',\n icon: <Building2 className=\"h-4 w-4\" />,\n onClick: () => navigate(id ? `/venues/${id}` : '/venues'),\n },\n {\n id: 'manage-floor-plans',\n label: 'Manage floor plans',\n description: 'Add or update layouts so attendees can find their way.',\n icon: <SquareStack className=\"h-4 w-4\" />,\n onClick: () => navigate(id ? `/venues/${id}/floor-plans` : '/venues'),\n },\n {\n id: 'all-venues',\n label: 'Compare with other venues',\n description: 'Browse the full venue list to pick the best fit.',\n icon: <Map className=\"h-4 w-4\" />,\n onClick: () => navigate('/venues'),\n },\n ]}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAeA,SAAwBA,IAAqB;CAC3C,IAAM,EAAE,QAAK,OAAOC,EAAU,GACxB,EAAE,gBAAaC,EAAqB,GACpCC,IAAaC,EAAcC,CAAE,GAC7BC,IAAQH,EAAW,MAAM,OACzBI,IAAaC,QAAeL,EAAW,MAAM,WAAW,SAAS,CAAC,GAAsB,CAACA,EAAW,IAAI,CAAC;CAE/G,OACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,kBAACM,GAAD,EAAA,UAAa,2SAIA,CAAA;GAEb,kBAACC,GAAD,EAAA,UAAA;IACE,kBAAC,MAAD;KAAI,WAAU;KAAd,UAAA,CACE,kBAACC,GAAD,EAAA,UAAc,QAAmB,CAAA,GAAC,YAChC;;IACJ,kBAAC,KAAD;KAAG,WAAU;KACV,UAAAR,EAAW,UACR,+BACA,qBAAqBG,GAAO,QAAQ,iBAAiB;IACxD,CAAA;IACH,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA;MACE,kBAACM,GAAD;OAAW,WAAU;OAAQ,MAAA;OAAK,WAAU;OAA5C,UAAA,CACE,kBAAC,KAAD;QAAG,WAAU;QAAsD,UAAA;OAAS,CAAA,GAC5E,kBAAC,KAAD;QAAG,WAAU;QAAsC,UAAAN,GAAO,UAAU;OAAa,CAAA,CACxE;;MACX,kBAACM,GAAD;OAAW,WAAU;OAAS,WAAU;OAAxC,UAAA,CACE,kBAAC,KAAD;QAAG,WAAU;QAAsD,UAAA;OAAW,CAAA,GAC9E,kBAAC,KAAD;QAAG,WAAU;QAAmD,UAAAN,G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;MAChC,eAAeF,EAAS,SAAS;KACnC;IACF;GACD,CAAA;EACE;;AAET"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function WorkflowsPage(): import(
|
|
2
|
-
//# sourceMappingURL=WorkflowsPage.d.ts.map
|
|
1
|
+
export default function WorkflowsPage(): import('react').JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function MeetingFormPage(): import(
|
|
2
|
-
//# sourceMappingURL=MeetingFormPage.d.ts.map
|
|
1
|
+
export default function MeetingFormPage(): import('react').JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function NetworkingProfileFormPage(): import(
|
|
2
|
-
//# sourceMappingURL=NetworkingProfileFormPage.d.ts.map
|
|
1
|
+
export default function NetworkingProfileFormPage(): import('react').JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function AttendeeFormPage(): import(
|
|
2
|
-
//# sourceMappingURL=AttendeeFormPage.d.ts.map
|
|
1
|
+
export default function AttendeeFormPage(): import('react').JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function PromoCodeFormPage(): import(
|
|
2
|
-
//# sourceMappingURL=PromoCodeFormPage.d.ts.map
|
|
1
|
+
export default function PromoCodeFormPage(): import('react').JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function RegisterAttendeePage(): import(
|
|
2
|
-
//# sourceMappingURL=RegisterAttendeePage.d.ts.map
|
|
1
|
+
export default function RegisterAttendeePage(): import('react').JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function SpeakerFormPage(): import(
|
|
2
|
-
//# sourceMappingURL=SpeakerFormPage.d.ts.map
|
|
1
|
+
export default function SpeakerFormPage(): import('react').JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function SpeakersPage(): import(
|
|
2
|
-
//# sourceMappingURL=SpeakersPage.d.ts.map
|
|
1
|
+
export default function SpeakersPage(): import('react').JSX.Element;
|
|
@@ -3,14 +3,15 @@ import { useQuery as t } from "../../../node_modules/@apollo/client/react/hooks/
|
|
|
3
3
|
import { useDeleteSpeakerMutation as n, useEntityTagsQuery as r } from "../../api/eventApi.js";
|
|
4
4
|
import { ActionMenu as i } from "../../components/ActionMenu.js";
|
|
5
5
|
import { Pagination as a, usePagination as o } from "../../components/Pagination.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { ResolvedImage as s } from "../../components/ResolvedImage.js";
|
|
7
|
+
import { useEventfullyManaged as c } from "../../context/EventfullyManagedContext.js";
|
|
8
|
+
import { notify as l } from "../../lib/toast.js";
|
|
9
|
+
import { useMemo as u, useState as d } from "react";
|
|
10
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
import { Plus as m, Search as h } from "lucide-react";
|
|
12
|
+
import { Badge as g, Button as _, GlassCard as v, GradientText as y, IllustratedEmptyState as b, Input as x, PagePurpose as S, Skeleton as C } from "@burdenoff/fe-libs/ui";
|
|
12
13
|
// src/eventfullymanaged/pages/speakers/SpeakersPage.tsx
|
|
13
|
-
var
|
|
14
|
+
var w = e`
|
|
14
15
|
query EventfullymanagedSpeakerGrid($limit: Int, $offset: Int) {
|
|
15
16
|
speakers: eventfullyManagedSpeakers(limit: $limit, offset: $offset) {
|
|
16
17
|
total
|
|
@@ -25,42 +26,41 @@ var C = e`
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
`;
|
|
28
|
-
function
|
|
29
|
+
function T(e) {
|
|
29
30
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
30
31
|
return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
return /* @__PURE__ */ d("span", {
|
|
33
|
+
function E({ speaker: e }) {
|
|
34
|
+
return /* @__PURE__ */ f("span", {
|
|
35
35
|
className: "relative flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-full bg-bg-sunken ring-1 ring-border-subtle",
|
|
36
|
-
children:
|
|
37
|
-
|
|
36
|
+
children: /* @__PURE__ */ f(s, {
|
|
37
|
+
value: e.avatarUrl,
|
|
38
38
|
alt: e.fullName,
|
|
39
39
|
loading: "lazy",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
className: "h-full w-full object-cover",
|
|
41
|
+
fallback: /* @__PURE__ */ f("span", {
|
|
42
|
+
className: "text-base font-semibold text-text-secondary",
|
|
43
|
+
children: T(e.fullName)
|
|
44
|
+
})
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function D({ speakerId: e }) {
|
|
49
49
|
let { data: t } = r({ input: {
|
|
50
50
|
entityType: "EVENTFULLYMANAGED_SPEAKER",
|
|
51
51
|
entityId: e
|
|
52
52
|
} }), n = t?.eventfullyManagedEntityTags ?? [];
|
|
53
|
-
return n.length === 0 ? null : /* @__PURE__ */
|
|
53
|
+
return n.length === 0 ? null : /* @__PURE__ */ f("div", {
|
|
54
54
|
className: "mt-3 flex flex-wrap gap-1.5",
|
|
55
55
|
role: "list",
|
|
56
56
|
"aria-label": "Topics",
|
|
57
57
|
children: n.slice(0, 4).map((e) => {
|
|
58
58
|
let t = e.tagInfo, n = t?.color ?? void 0;
|
|
59
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ p(g, {
|
|
60
60
|
variant: "secondary",
|
|
61
61
|
className: "gap-1.5",
|
|
62
62
|
role: "listitem",
|
|
63
|
-
children: [n ? /* @__PURE__ */
|
|
63
|
+
children: [n ? /* @__PURE__ */ f("span", {
|
|
64
64
|
className: "h-2 w-2 rounded-full",
|
|
65
65
|
style: { backgroundColor: n },
|
|
66
66
|
"aria-hidden": "true"
|
|
@@ -69,144 +69,144 @@ function E({ speakerId: e }) {
|
|
|
69
69
|
})
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return /* @__PURE__ */
|
|
72
|
+
function O() {
|
|
73
|
+
return /* @__PURE__ */ f(v, {
|
|
74
74
|
treatment: "plain",
|
|
75
75
|
className: "border-border-seam p-5",
|
|
76
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ p("div", {
|
|
77
77
|
className: "flex items-start gap-4",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
78
|
+
children: [/* @__PURE__ */ f(C, { className: "h-16 w-16 shrink-0 rounded-full" }), /* @__PURE__ */ p("div", {
|
|
79
79
|
className: "min-w-0 flex-1 space-y-2",
|
|
80
80
|
children: [
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ f(C, { className: "h-5 w-32" }),
|
|
82
|
+
/* @__PURE__ */ f(C, { className: "h-4 w-40" }),
|
|
83
|
+
/* @__PURE__ */ f(C, { className: "h-4 w-full" }),
|
|
84
|
+
/* @__PURE__ */ p("div", {
|
|
85
85
|
className: "flex gap-1.5 pt-1",
|
|
86
|
-
children: [/* @__PURE__ */
|
|
86
|
+
children: [/* @__PURE__ */ f(C, { className: "h-5 w-12 rounded-full" }), /* @__PURE__ */ f(C, { className: "h-5 w-16 rounded-full" })]
|
|
87
87
|
})
|
|
88
88
|
]
|
|
89
89
|
})]
|
|
90
90
|
})
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
let { navigate: e } =
|
|
93
|
+
function k() {
|
|
94
|
+
let { navigate: e } = c(), r = o({ pageSize: 12 }), [s, g] = d(""), { data: C, loading: T, refetch: k } = t(w, { variables: {
|
|
95
95
|
limit: r.limit,
|
|
96
96
|
offset: r.offset
|
|
97
|
-
} }), [A] = n(), j =
|
|
98
|
-
let e =
|
|
97
|
+
} }), [A] = n(), j = C?.speakers?.total ?? 0, M = u(() => C?.speakers?.items ?? [], [C]), N = u(() => {
|
|
98
|
+
let e = s.trim().toLowerCase();
|
|
99
99
|
return e ? M.filter((t) => [
|
|
100
100
|
t.fullName,
|
|
101
101
|
t.title,
|
|
102
102
|
t.organization,
|
|
103
103
|
t.bio
|
|
104
104
|
].filter(Boolean).some((t) => t.toLowerCase().includes(e))) : M;
|
|
105
|
-
}, [M,
|
|
105
|
+
}, [M, s]), P = async (e) => {
|
|
106
106
|
let t = await A({ variables: { id: e.id } });
|
|
107
|
-
if (t.error) throw
|
|
108
|
-
if (!t.data?.deleteSpeaker) throw
|
|
109
|
-
|
|
107
|
+
if (t.error) throw l.error("Could not delete speaker", t.error.message), t.error;
|
|
108
|
+
if (!t.data?.deleteSpeaker) throw l.error("Could not delete speaker", "The server did not confirm the change."), Error("delete-unconfirmed");
|
|
109
|
+
l.success("Speaker deleted", e.fullName), await k();
|
|
110
110
|
};
|
|
111
|
-
return /* @__PURE__ */
|
|
111
|
+
return /* @__PURE__ */ p("div", {
|
|
112
112
|
className: "space-y-6 p-6",
|
|
113
113
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ f(S, { children: "Speakers are the people who present your sessions. Keep a roster here — their name, role, company and bio — so that when you build the agenda you can assign a speaker to each session in a couple of clicks. A good speaker profile also gives attendees a reason to attend." }),
|
|
115
|
+
/* @__PURE__ */ p("div", {
|
|
116
116
|
className: "flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f(y, {
|
|
118
118
|
as: "h1",
|
|
119
119
|
className: "text-2xl font-bold",
|
|
120
120
|
children: "Speakers"
|
|
121
|
-
}), /* @__PURE__ */
|
|
121
|
+
}), /* @__PURE__ */ f("p", {
|
|
122
122
|
className: "mt-1 text-sm text-text-secondary",
|
|
123
123
|
children: "Manage your speaker roster with live API data."
|
|
124
|
-
})] }), /* @__PURE__ */
|
|
124
|
+
})] }), /* @__PURE__ */ p("div", {
|
|
125
125
|
className: "flex flex-col gap-2 sm:flex-row sm:items-center",
|
|
126
|
-
children: [/* @__PURE__ */
|
|
126
|
+
children: [/* @__PURE__ */ p("div", {
|
|
127
127
|
className: "relative",
|
|
128
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ f(h, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-muted" }), /* @__PURE__ */ f(x, {
|
|
129
129
|
type: "search",
|
|
130
|
-
value:
|
|
131
|
-
onChange: (e) =>
|
|
130
|
+
value: s,
|
|
131
|
+
onChange: (e) => g(e.target.value),
|
|
132
132
|
placeholder: "Search speakers…",
|
|
133
133
|
"aria-label": "Search speakers on this page",
|
|
134
134
|
className: "pl-10 sm:w-64"
|
|
135
135
|
})]
|
|
136
|
-
}), /* @__PURE__ */
|
|
136
|
+
}), /* @__PURE__ */ p(_, {
|
|
137
137
|
type: "button",
|
|
138
138
|
onClick: () => e("/speakers/create"),
|
|
139
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ f(m, { className: "h-4 w-4" }), "Add Speaker"]
|
|
140
140
|
})]
|
|
141
141
|
})]
|
|
142
142
|
}),
|
|
143
|
-
|
|
143
|
+
T ? /* @__PURE__ */ f("div", {
|
|
144
144
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3",
|
|
145
|
-
children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */
|
|
146
|
-
}) : M.length === 0 ? /* @__PURE__ */
|
|
145
|
+
children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */ f(O, {}, t))
|
|
146
|
+
}) : M.length === 0 ? /* @__PURE__ */ f(v, {
|
|
147
147
|
treatment: "plain",
|
|
148
148
|
className: "border-border-seam",
|
|
149
|
-
children: /* @__PURE__ */
|
|
149
|
+
children: /* @__PURE__ */ f(b, {
|
|
150
150
|
illustration: "empty-people",
|
|
151
151
|
title: "No speakers yet.",
|
|
152
152
|
description: "Add your first speaker to start building the agenda.",
|
|
153
|
-
action: /* @__PURE__ */
|
|
153
|
+
action: /* @__PURE__ */ p(_, {
|
|
154
154
|
type: "button",
|
|
155
155
|
onClick: () => e("/speakers/create"),
|
|
156
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ f(m, { className: "h-4 w-4" }), "Add Speaker"]
|
|
157
157
|
})
|
|
158
158
|
})
|
|
159
|
-
}) : N.length === 0 ? /* @__PURE__ */
|
|
159
|
+
}) : N.length === 0 ? /* @__PURE__ */ f(v, {
|
|
160
160
|
treatment: "plain",
|
|
161
161
|
className: "border-border-seam",
|
|
162
|
-
children: /* @__PURE__ */
|
|
162
|
+
children: /* @__PURE__ */ f(b, {
|
|
163
163
|
illustration: "empty-search",
|
|
164
164
|
title: "No speakers match your search.",
|
|
165
165
|
description: "Try a different name, title or company."
|
|
166
166
|
})
|
|
167
|
-
}) : /* @__PURE__ */
|
|
167
|
+
}) : /* @__PURE__ */ p("div", {
|
|
168
168
|
className: "space-y-4",
|
|
169
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ f("div", {
|
|
170
170
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3",
|
|
171
171
|
children: N.map((t) => {
|
|
172
172
|
let n = [t.title, t.organization].filter(Boolean).join(", ");
|
|
173
|
-
return /* @__PURE__ */
|
|
173
|
+
return /* @__PURE__ */ p(v, {
|
|
174
174
|
treatment: "plain",
|
|
175
175
|
className: "group flex flex-col border-border-seam p-5 transition-shadow duration-200 hover:shadow-elevation-1",
|
|
176
176
|
children: [
|
|
177
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ p("div", {
|
|
178
178
|
className: "flex items-start gap-4",
|
|
179
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ f(E, { speaker: t }), /* @__PURE__ */ p("div", {
|
|
180
180
|
className: "min-w-0 flex-1",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ p("div", {
|
|
182
182
|
className: "flex items-start justify-between gap-2",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ f("button", {
|
|
184
184
|
type: "button",
|
|
185
185
|
onClick: () => e(`/speakers/${t.id}/edit`),
|
|
186
186
|
className: "rounded-button text-left text-base font-semibold text-text-primary transition-colors hover:text-text-link focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus",
|
|
187
187
|
children: t.fullName
|
|
188
|
-
}), /* @__PURE__ */
|
|
188
|
+
}), /* @__PURE__ */ f(i, {
|
|
189
189
|
ariaLabel: `Speaker actions for ${t.fullName}`,
|
|
190
190
|
entityName: t.fullName,
|
|
191
191
|
deleteLabel: "Delete speaker",
|
|
192
192
|
onEdit: () => e(`/speakers/${t.id}/edit`),
|
|
193
193
|
onDelete: () => P(t)
|
|
194
194
|
})]
|
|
195
|
-
}), /* @__PURE__ */
|
|
195
|
+
}), /* @__PURE__ */ f("p", {
|
|
196
196
|
className: "mt-0.5 truncate text-sm text-text-secondary",
|
|
197
197
|
children: n || "Speaker"
|
|
198
198
|
})]
|
|
199
199
|
})]
|
|
200
200
|
}),
|
|
201
|
-
t.bio ? /* @__PURE__ */
|
|
201
|
+
t.bio ? /* @__PURE__ */ f("p", {
|
|
202
202
|
className: "mt-3 line-clamp-2 text-sm text-text-secondary",
|
|
203
203
|
children: t.bio
|
|
204
204
|
}) : null,
|
|
205
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ f(D, { speakerId: t.id })
|
|
206
206
|
]
|
|
207
207
|
}, t.id);
|
|
208
208
|
})
|
|
209
|
-
}),
|
|
209
|
+
}), s.trim() ? null : /* @__PURE__ */ f(a, {
|
|
210
210
|
offset: r.offset,
|
|
211
211
|
limit: r.limit,
|
|
212
212
|
loadedCount: M.length,
|
|
@@ -214,12 +214,12 @@ function O() {
|
|
|
214
214
|
onPrev: r.prevPage,
|
|
215
215
|
onNext: r.nextPage,
|
|
216
216
|
itemLabel: "speakers",
|
|
217
|
-
loading:
|
|
217
|
+
loading: T
|
|
218
218
|
})]
|
|
219
219
|
})
|
|
220
220
|
]
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
export {
|
|
223
|
+
export { k as default };
|
|
224
224
|
|
|
225
225
|
//# sourceMappingURL=SpeakersPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpeakersPage.js","names":["Badge","Badge$1","SPEAKER_GRID_QUERY","initials","parts","name","SpeakerAvatar","failed","setFailed","useState","showImage","speaker","SpeakerTopics","useEntityTagsQuery","speakerId","assignments","data","info","assignment","color","SpeakerCardSkeleton","GlassCard","Skeleton","SpeakersPage","useEventfullyManaged","pagination","usePagination","search","setSearch","useQuery","deleteSpeaker","useDeleteSpeakerMutation","total","speakers","useMemo","filtered","term","field","onDelete","response","notify","refetch","PagePurpose","GradientText","Search","Input","event","Button","navigate","Plus","loading","index","IllustratedEmptyState","roleLine","ActionMenu","Pagination"],"sources":["../../../../src/eventfullymanaged/pages/speakers/SpeakersPage.tsx"],"sourcesContent":["import { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Plus, Search } from 'lucide-react';\nimport {\n Badge,\n Button,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n Input,\n PagePurpose,\n Skeleton,\n} from '@burdenoff/fe-libs/ui';\nimport { useMemo, useState } from 'react';\n\nimport { useDeleteSpeakerMutation, useEntityTagsQuery } from '../../api/eventApi';\nimport { ActionMenu } from '../../components/ActionMenu';\nimport { Pagination, usePagination } from '../../components/Pagination';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { notify } from '../../lib/toast';\n\n// The foundation SPEAKERS_QUERY only selects the columns other screens need\n// (id/name/title/org/email). The roster grid additionally shows the headshot\n// and the one-line talk abstract, so it reads from this fuller selection rather\n// than mutating the shared hook that Event/Session pages also consume.\nconst SPEAKER_GRID_QUERY = gql`\n query EventfullymanagedSpeakerGrid($limit: Int, $offset: Int) {\n speakers: eventfullyManagedSpeakers(limit: $limit, offset: $offset) {\n total\n items {\n id\n fullName\n title\n organization\n bio\n avatarUrl\n }\n }\n }\n`;\n\ntype SpeakerRow = {\n id: string;\n fullName: string;\n title?: string | null;\n organization?: string | null;\n bio?: string | null;\n avatarUrl?: string | null;\n};\n\ntype SpeakerGridResponse = { speakers: { total: number; items: SpeakerRow[] } };\n\nfunction initials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) {\n return '?';\n }\n if (parts.length === 1) {\n return parts[0].slice(0, 2).toUpperCase();\n }\n return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();\n}\n\nfunction SpeakerAvatar({ speaker }: { speaker: SpeakerRow }) {\n const [failed, setFailed] = useState(false);\n const showImage = Boolean(speaker.avatarUrl) && !failed;\n return (\n <span className=\"relative flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-full bg-bg-sunken ring-1 ring-border-subtle\">\n {showImage ? (\n <img\n src={speaker.avatarUrl ?? ''}\n alt={speaker.fullName}\n loading=\"lazy\"\n onError={() => setFailed(true)}\n className=\"h-full w-full object-cover\"\n />\n ) : (\n <span className=\"text-base font-semibold text-text-secondary\">{initials(speaker.fullName)}</span>\n )}\n </span>\n );\n}\n\n// Read-only topic chips sourced from the platform tags service for this speaker.\n// The mock shows two topic tags per speaker; these are the real assignments.\nfunction SpeakerTopics({ speakerId }: { speakerId: string }) {\n const { data } = useEntityTagsQuery({ input: { entityType: 'EVENTFULLYMANAGED_SPEAKER', entityId: speakerId } });\n const assignments = data?.eventfullyManagedEntityTags ?? [];\n if (assignments.length === 0) {\n return null;\n }\n return (\n <div className=\"mt-3 flex flex-wrap gap-1.5\" role=\"list\" aria-label=\"Topics\">\n {assignments.slice(0, 4).map((assignment) => {\n const info = assignment.tagInfo;\n const color = info?.color ?? undefined;\n return (\n <Badge key={assignment.id} variant=\"secondary\" className=\"gap-1.5\" role=\"listitem\">\n {color ? (\n <span className=\"h-2 w-2 rounded-full\" style={{ backgroundColor: color }} aria-hidden=\"true\" />\n ) : null}\n {info?.label ?? info?.key ?? 'Topic'}\n </Badge>\n );\n })}\n </div>\n );\n}\n\nfunction SpeakerCardSkeleton() {\n return (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-5\">\n <div className=\"flex items-start gap-4\">\n <Skeleton className=\"h-16 w-16 shrink-0 rounded-full\" />\n <div className=\"min-w-0 flex-1 space-y-2\">\n <Skeleton className=\"h-5 w-32\" />\n <Skeleton className=\"h-4 w-40\" />\n <Skeleton className=\"h-4 w-full\" />\n <div className=\"flex gap-1.5 pt-1\">\n <Skeleton className=\"h-5 w-12 rounded-full\" />\n <Skeleton className=\"h-5 w-16 rounded-full\" />\n </div>\n </div>\n </div>\n </GlassCard>\n );\n}\n\nexport default function SpeakersPage() {\n const { navigate } = useEventfullyManaged();\n const pagination = usePagination({ pageSize: 12 });\n const [search, setSearch] = useState('');\n const { data, loading, refetch } = useQuery<SpeakerGridResponse, { limit?: number; offset?: number }>(\n SPEAKER_GRID_QUERY,\n { variables: { limit: pagination.limit, offset: pagination.offset } }\n );\n const [deleteSpeaker] = useDeleteSpeakerMutation();\n\n const total = data?.speakers?.total ?? 0;\n const speakers = useMemo(() => data?.speakers?.items ?? [], [data]);\n\n const filtered = useMemo(() => {\n const term = search.trim().toLowerCase();\n if (!term) {\n return speakers;\n }\n return speakers.filter((speaker) =>\n [speaker.fullName, speaker.title, speaker.organization, speaker.bio]\n .filter(Boolean)\n .some((field) => (field as string).toLowerCase().includes(term))\n );\n }, [speakers, search]);\n\n const onDelete = async (speaker: SpeakerRow) => {\n const response = await deleteSpeaker({ variables: { id: speaker.id } });\n if (response.error) {\n notify.error('Could not delete speaker', response.error.message);\n throw response.error;\n }\n if (!response.data?.deleteSpeaker) {\n notify.error('Could not delete speaker', 'The server did not confirm the change.');\n throw new Error('delete-unconfirmed');\n }\n notify.success('Speaker deleted', speaker.fullName);\n await refetch();\n };\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n Speakers are the people who present your sessions. Keep a roster here — their name, role, company and bio — so\n that when you build the agenda you can assign a speaker to each session in a couple of clicks. A good speaker\n profile also gives attendees a reason to attend.\n </PagePurpose>\n\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n <div>\n <GradientText as=\"h1\" className=\"text-2xl font-bold\">\n Speakers\n </GradientText>\n <p className=\"mt-1 text-sm text-text-secondary\">Manage your speaker roster with live API data.</p>\n </div>\n <div className=\"flex flex-col gap-2 sm:flex-row sm:items-center\">\n <div className=\"relative\">\n <Search className=\"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-muted\" />\n <Input\n type=\"search\"\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n placeholder=\"Search speakers…\"\n aria-label=\"Search speakers on this page\"\n className=\"pl-10 sm:w-64\"\n />\n </div>\n <Button type=\"button\" onClick={() => navigate('/speakers/create')}>\n <Plus className=\"h-4 w-4\" />\n Add Speaker\n </Button>\n </div>\n </div>\n\n {loading ? (\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3\">\n {Array.from({ length: 6 }).map((_, index) => (\n <SpeakerCardSkeleton key={index} />\n ))}\n </div>\n ) : speakers.length === 0 ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam\">\n <IllustratedEmptyState\n illustration=\"empty-people\"\n title=\"No speakers yet.\"\n description=\"Add your first speaker to start building the agenda.\"\n action={\n <Button type=\"button\" onClick={() => navigate('/speakers/create')}>\n <Plus className=\"h-4 w-4\" />\n Add Speaker\n </Button>\n }\n />\n </GlassCard>\n ) : filtered.length === 0 ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam\">\n <IllustratedEmptyState\n illustration=\"empty-search\"\n title=\"No speakers match your search.\"\n description=\"Try a different name, title or company.\"\n />\n </GlassCard>\n ) : (\n <div className=\"space-y-4\">\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3\">\n {filtered.map((speaker) => {\n const roleLine = [speaker.title, speaker.organization].filter(Boolean).join(', ');\n return (\n <GlassCard\n key={speaker.id}\n treatment=\"plain\"\n className=\"group flex flex-col border-border-seam p-5 transition-shadow duration-200 hover:shadow-elevation-1\"\n >\n <div className=\"flex items-start gap-4\">\n <SpeakerAvatar speaker={speaker} />\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-start justify-between gap-2\">\n <button\n type=\"button\"\n onClick={() => navigate(`/speakers/${speaker.id}/edit`)}\n className=\"rounded-button text-left text-base font-semibold text-text-primary transition-colors hover:text-text-link focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus\"\n >\n {speaker.fullName}\n </button>\n <ActionMenu\n ariaLabel={`Speaker actions for ${speaker.fullName}`}\n entityName={speaker.fullName}\n deleteLabel=\"Delete speaker\"\n onEdit={() => navigate(`/speakers/${speaker.id}/edit`)}\n onDelete={() => onDelete(speaker)}\n />\n </div>\n <p className=\"mt-0.5 truncate text-sm text-text-secondary\">{roleLine || 'Speaker'}</p>\n </div>\n </div>\n\n {speaker.bio ? <p className=\"mt-3 line-clamp-2 text-sm text-text-secondary\">{speaker.bio}</p> : null}\n\n <SpeakerTopics speakerId={speaker.id} />\n </GlassCard>\n );\n })}\n </div>\n\n {search.trim() ? null : (\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={speakers.length}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel=\"speakers\"\n loading={loading}\n />\n )}\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAyBA,IAAME,IAAqB,CAAG;;;;;;;;;;;;;;;AA2B9B,SAAS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C,EAAQ,GAAG,MAAM;YACrD,gBAAgB2B,EAAS3B,CAAO;WACjC,CAAA,CACE;UACL,CAAA,GAAA,kBAAC,KAAD;WAAG,WAAU;WAA+C,UAAA0C,KAAY;UAAa,CAAA,CAClF;SACF,CAAA,CAAA;;QAEJ1C,EAAQ,MAAM,kBAAC,KAAD;SAAG,WAAU;SAAiD,UAAAA,EAAQ;QAAO,CAAA,IAAI;QAEhG,kBAACC,GAAD,EAAe,WAAWD,EAAQ,GAAK,CAAA;OAC9B;MA9BJ,GAAAA,EAAQ,EA8BJ;KAEf,CAAC;IACE,CAAA,GAEJgB,EAAO,KAAK,IAAI,OACf,kBAAC4B,GAAD;KACE,QAAQ9B,EAAW;KACnB,OAAOA,EAAW;KAClB,aAAaQ,EAAS;KACf;KACP,QAAQR,EAAW;KACnB,QAAQA,EAAW;KACnB,WAAU;KACD;IACV,CAAA,CAEA;;EAEJ;;AAET"}
|
|
1
|
+
{"version":3,"file":"SpeakersPage.js","names":["Badge","Badge$1","SPEAKER_GRID_QUERY","initials","parts","name","SpeakerAvatar","ResolvedImage","speaker","SpeakerTopics","useEntityTagsQuery","speakerId","assignments","data","info","assignment","color","SpeakerCardSkeleton","GlassCard","Skeleton","SpeakersPage","useEventfullyManaged","pagination","usePagination","search","setSearch","useState","useQuery","deleteSpeaker","useDeleteSpeakerMutation","total","speakers","useMemo","filtered","term","field","onDelete","response","notify","refetch","PagePurpose","GradientText","Search","Input","event","Button","navigate","Plus","loading","index","IllustratedEmptyState","roleLine","ActionMenu","Pagination"],"sources":["../../../../src/eventfullymanaged/pages/speakers/SpeakersPage.tsx"],"sourcesContent":["import { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Plus, Search } from 'lucide-react';\nimport {\n Badge,\n Button,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n Input,\n PagePurpose,\n Skeleton,\n} from '@burdenoff/fe-libs/ui';\nimport { useMemo, useState } from 'react';\n\nimport { useDeleteSpeakerMutation, useEntityTagsQuery } from '../../api/eventApi';\nimport { ActionMenu } from '../../components/ActionMenu';\nimport { Pagination, usePagination } from '../../components/Pagination';\nimport { ResolvedImage } from '../../components/ResolvedImage';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { notify } from '../../lib/toast';\n\n// The foundation SPEAKERS_QUERY only selects the columns other screens need\n// (id/name/title/org/email). The roster grid additionally shows the headshot\n// and the one-line talk abstract, so it reads from this fuller selection rather\n// than mutating the shared hook that Event/Session pages also consume.\nconst SPEAKER_GRID_QUERY = gql`\n query EventfullymanagedSpeakerGrid($limit: Int, $offset: Int) {\n speakers: eventfullyManagedSpeakers(limit: $limit, offset: $offset) {\n total\n items {\n id\n fullName\n title\n organization\n bio\n avatarUrl\n }\n }\n }\n`;\n\ntype SpeakerRow = {\n id: string;\n fullName: string;\n title?: string | null;\n organization?: string | null;\n bio?: string | null;\n avatarUrl?: string | null;\n};\n\ntype SpeakerGridResponse = { speakers: { total: number; items: SpeakerRow[] } };\n\nfunction initials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) {\n return '?';\n }\n if (parts.length === 1) {\n return parts[0].slice(0, 2).toUpperCase();\n }\n return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();\n}\n\nfunction SpeakerAvatar({ speaker }: { speaker: SpeakerRow }) {\n return (\n <span className=\"relative flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-full bg-bg-sunken ring-1 ring-border-subtle\">\n <ResolvedImage\n value={speaker.avatarUrl}\n alt={speaker.fullName}\n loading=\"lazy\"\n className=\"h-full w-full object-cover\"\n fallback={<span className=\"text-base font-semibold text-text-secondary\">{initials(speaker.fullName)}</span>}\n />\n </span>\n );\n}\n\n// Read-only topic chips sourced from the platform tags service for this speaker.\n// The mock shows two topic tags per speaker; these are the real assignments.\nfunction SpeakerTopics({ speakerId }: { speakerId: string }) {\n const { data } = useEntityTagsQuery({ input: { entityType: 'EVENTFULLYMANAGED_SPEAKER', entityId: speakerId } });\n const assignments = data?.eventfullyManagedEntityTags ?? [];\n if (assignments.length === 0) {\n return null;\n }\n return (\n <div className=\"mt-3 flex flex-wrap gap-1.5\" role=\"list\" aria-label=\"Topics\">\n {assignments.slice(0, 4).map((assignment) => {\n const info = assignment.tagInfo;\n const color = info?.color ?? undefined;\n return (\n <Badge key={assignment.id} variant=\"secondary\" className=\"gap-1.5\" role=\"listitem\">\n {color ? (\n <span className=\"h-2 w-2 rounded-full\" style={{ backgroundColor: color }} aria-hidden=\"true\" />\n ) : null}\n {info?.label ?? info?.key ?? 'Topic'}\n </Badge>\n );\n })}\n </div>\n );\n}\n\nfunction SpeakerCardSkeleton() {\n return (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-5\">\n <div className=\"flex items-start gap-4\">\n <Skeleton className=\"h-16 w-16 shrink-0 rounded-full\" />\n <div className=\"min-w-0 flex-1 space-y-2\">\n <Skeleton className=\"h-5 w-32\" />\n <Skeleton className=\"h-4 w-40\" />\n <Skeleton className=\"h-4 w-full\" />\n <div className=\"flex gap-1.5 pt-1\">\n <Skeleton className=\"h-5 w-12 rounded-full\" />\n <Skeleton className=\"h-5 w-16 rounded-full\" />\n </div>\n </div>\n </div>\n </GlassCard>\n );\n}\n\nexport default function SpeakersPage() {\n const { navigate } = useEventfullyManaged();\n const pagination = usePagination({ pageSize: 12 });\n const [search, setSearch] = useState('');\n const { data, loading, refetch } = useQuery<SpeakerGridResponse, { limit?: number; offset?: number }>(\n SPEAKER_GRID_QUERY,\n { variables: { limit: pagination.limit, offset: pagination.offset } }\n );\n const [deleteSpeaker] = useDeleteSpeakerMutation();\n\n const total = data?.speakers?.total ?? 0;\n const speakers = useMemo(() => data?.speakers?.items ?? [], [data]);\n\n const filtered = useMemo(() => {\n const term = search.trim().toLowerCase();\n if (!term) {\n return speakers;\n }\n return speakers.filter((speaker) =>\n [speaker.fullName, speaker.title, speaker.organization, speaker.bio]\n .filter(Boolean)\n .some((field) => (field as string).toLowerCase().includes(term))\n );\n }, [speakers, search]);\n\n const onDelete = async (speaker: SpeakerRow) => {\n const response = await deleteSpeaker({ variables: { id: speaker.id } });\n if (response.error) {\n notify.error('Could not delete speaker', response.error.message);\n throw response.error;\n }\n if (!response.data?.deleteSpeaker) {\n notify.error('Could not delete speaker', 'The server did not confirm the change.');\n throw new Error('delete-unconfirmed');\n }\n notify.success('Speaker deleted', speaker.fullName);\n await refetch();\n };\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n Speakers are the people who present your sessions. Keep a roster here — their name, role, company and bio — so\n that when you build the agenda you can assign a speaker to each session in a couple of clicks. A good speaker\n profile also gives attendees a reason to attend.\n </PagePurpose>\n\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\">\n <div>\n <GradientText as=\"h1\" className=\"text-2xl font-bold\">\n Speakers\n </GradientText>\n <p className=\"mt-1 text-sm text-text-secondary\">Manage your speaker roster with live API data.</p>\n </div>\n <div className=\"flex flex-col gap-2 sm:flex-row sm:items-center\">\n <div className=\"relative\">\n <Search className=\"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-muted\" />\n <Input\n type=\"search\"\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n placeholder=\"Search speakers…\"\n aria-label=\"Search speakers on this page\"\n className=\"pl-10 sm:w-64\"\n />\n </div>\n <Button type=\"button\" onClick={() => navigate('/speakers/create')}>\n <Plus className=\"h-4 w-4\" />\n Add Speaker\n </Button>\n </div>\n </div>\n\n {loading ? (\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3\">\n {Array.from({ length: 6 }).map((_, index) => (\n <SpeakerCardSkeleton key={index} />\n ))}\n </div>\n ) : speakers.length === 0 ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam\">\n <IllustratedEmptyState\n illustration=\"empty-people\"\n title=\"No speakers yet.\"\n description=\"Add your first speaker to start building the agenda.\"\n action={\n <Button type=\"button\" onClick={() => navigate('/speakers/create')}>\n <Plus className=\"h-4 w-4\" />\n Add Speaker\n </Button>\n }\n />\n </GlassCard>\n ) : filtered.length === 0 ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam\">\n <IllustratedEmptyState\n illustration=\"empty-search\"\n title=\"No speakers match your search.\"\n description=\"Try a different name, title or company.\"\n />\n </GlassCard>\n ) : (\n <div className=\"space-y-4\">\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3\">\n {filtered.map((speaker) => {\n const roleLine = [speaker.title, speaker.organization].filter(Boolean).join(', ');\n return (\n <GlassCard\n key={speaker.id}\n treatment=\"plain\"\n className=\"group flex flex-col border-border-seam p-5 transition-shadow duration-200 hover:shadow-elevation-1\"\n >\n <div className=\"flex items-start gap-4\">\n <SpeakerAvatar speaker={speaker} />\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-start justify-between gap-2\">\n <button\n type=\"button\"\n onClick={() => navigate(`/speakers/${speaker.id}/edit`)}\n className=\"rounded-button text-left text-base font-semibold text-text-primary transition-colors hover:text-text-link focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus\"\n >\n {speaker.fullName}\n </button>\n <ActionMenu\n ariaLabel={`Speaker actions for ${speaker.fullName}`}\n entityName={speaker.fullName}\n deleteLabel=\"Delete speaker\"\n onEdit={() => navigate(`/speakers/${speaker.id}/edit`)}\n onDelete={() => onDelete(speaker)}\n />\n </div>\n <p className=\"mt-0.5 truncate text-sm text-text-secondary\">{roleLine || 'Speaker'}</p>\n </div>\n </div>\n\n {speaker.bio ? <p className=\"mt-3 line-clamp-2 text-sm text-text-secondary\">{speaker.bio}</p> : null}\n\n <SpeakerTopics speakerId={speaker.id} />\n </GlassCard>\n );\n })}\n </div>\n\n {search.trim() ? null : (\n <Pagination\n offset={pagination.offset}\n limit={pagination.limit}\n loadedCount={speakers.length}\n total={total}\n onPrev={pagination.prevPage}\n onNext={pagination.nextPage}\n itemLabel=\"speakers\"\n loading={loading}\n />\n )}\n </div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D,gBAAgB4B,EAAS5B,CAAO;WACjC,CAAA,CACE;UACL,CAAA,GAAA,kBAAC,KAAD;WAAG,WAAU;WAA+C,UAAA2C,KAAY;UAAa,CAAA,CAClF;SACF,CAAA,CAAA;;QAEJ3C,EAAQ,MAAM,kBAAC,KAAD;SAAG,WAAU;SAAiD,UAAAA,EAAQ;QAAO,CAAA,IAAI;QAEhG,kBAACC,GAAD,EAAe,WAAWD,EAAQ,GAAK,CAAA;OAC9B;MA9BJ,GAAAA,EAAQ,EA8BJ;KAEf,CAAC;IACE,CAAA,GAEJgB,EAAO,KAAK,IAAI,OACf,kBAAC6B,GAAD;KACE,QAAQ/B,EAAW;KACnB,OAAOA,EAAW;KAClB,aAAaS,EAAS;KACf;KACP,QAAQT,EAAW;KACnB,QAAQA,EAAW;KACnB,WAAU;KACD;IACV,CAAA,CAEA;;EAEJ;;AAET"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function SponsorFormPage(): import(
|
|
2
|
-
//# sourceMappingURL=SponsorFormPage.d.ts.map
|
|
1
|
+
export default function SponsorFormPage(): import('react').JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export default function SponsorsListPage(): import(
|
|
2
|
-
//# sourceMappingURL=SponsorsListPage.d.ts.map
|
|
1
|
+
export default function SponsorsListPage(): import('react').JSX.Element;
|