@nyuccl/smile 0.2.0-beta.4 → 0.2.0-beta.41
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/module.json +1 -1
- package/dist/module.mjs +109 -21
- package/dist/runtime/components/builtins/AdvertisementView.d.vue.ts +13 -1
- package/dist/runtime/components/builtins/AdvertisementView.vue +7 -3
- package/dist/runtime/components/builtins/AdvertisementView.vue.d.ts +13 -1
- package/dist/runtime/components/builtins/DebriefView.vue +3 -1
- package/dist/runtime/components/builtins/DemographicSurveyView.vue +8 -6
- package/dist/runtime/components/builtins/DeviceSurveyView.vue +5 -3
- package/dist/runtime/components/builtins/ExpView.vue +4 -2
- package/dist/runtime/components/builtins/ExperimentStatusBar.vue +3 -0
- package/dist/runtime/components/builtins/FavoriteColor.vue +3 -1
- package/dist/runtime/components/builtins/FavoriteNumber.vue +3 -1
- package/dist/runtime/components/builtins/InformedConsentModal.vue +5 -3
- package/dist/runtime/components/builtins/InformedConsentView.vue +3 -2
- package/dist/runtime/components/builtins/InstructionsQuiz.vue +7 -5
- package/dist/runtime/components/builtins/InstructionsView.vue +5 -3
- package/dist/runtime/components/builtins/LocalDevBanner.vue +16 -0
- package/dist/runtime/components/builtins/MTurkRecruitView.vue +4 -3
- package/dist/runtime/components/builtins/PresentationModeView.vue +9 -8
- package/dist/runtime/components/builtins/StatusBar.vue +7 -4
- package/dist/runtime/components/builtins/StudyPreviewText.vue +12 -10
- package/dist/runtime/components/builtins/TaskFeedbackSurveyView.vue +3 -1
- package/dist/runtime/components/builtins/ThanksView.vue +22 -21
- package/dist/runtime/components/builtins/WindowSizerView.vue +5 -3
- package/dist/runtime/components/builtins/WithdrawModal.vue +9 -7
- package/dist/runtime/components/builtins/WithdrawView.vue +4 -2
- package/dist/runtime/components/dev/RecruitmentChooserView.vue +532 -224
- package/dist/runtime/components/dev/ResponsiveDeviceContainer.vue +17 -8
- package/dist/runtime/components/dev/SmileDevPresentationView.vue +83 -0
- package/dist/runtime/components/dev/console/ConfigList.vue +14 -11
- package/dist/runtime/components/dev/console/ConsoleConfigPanel.vue +28 -7
- package/dist/runtime/components/dev/console/ConsoleDatabaseBrowsePanel.vue +6 -4
- package/dist/runtime/components/dev/console/ConsoleLogPanel.vue +68 -23
- package/dist/runtime/components/dev/console/DatabaseList.vue +9 -7
- package/dist/runtime/components/dev/console/SmileDevConsole.vue +7 -5
- package/dist/runtime/components/dev/devicePresets.d.ts +4 -4
- package/dist/runtime/components/dev/devicePresets.js +4 -4
- package/dist/runtime/components/dev/menu/DevConfigPanel.vue +3 -1
- package/dist/runtime/components/dev/menu/ResponsiveDeviceSelect.vue +1 -0
- package/dist/runtime/components/dev/menu/SmileDevAppMenu.vue +27 -24
- package/dist/runtime/components/dev/navbar/ColorModeButton.vue +5 -3
- package/dist/runtime/components/dev/navbar/DatabaseButtonGroup.vue +8 -6
- package/dist/runtime/components/dev/navbar/FullScreenButton.vue +4 -2
- package/dist/runtime/components/dev/navbar/KeyCommandNotification.vue +1 -1
- package/dist/runtime/components/dev/navbar/PanelButtonGroup.d.vue.ts +3 -0
- package/dist/runtime/components/dev/navbar/PanelButtonGroup.vue +79 -0
- package/dist/runtime/components/dev/navbar/PanelButtonGroup.vue.d.ts +3 -0
- package/dist/runtime/components/dev/navbar/ReloadButton.vue +3 -1
- package/dist/runtime/components/dev/navbar/ResetButton.vue +3 -1
- package/dist/runtime/components/dev/navbar/RouteJumper.vue +9 -5
- package/dist/runtime/components/dev/navbar/SmileDevNavBar.vue +19 -27
- package/dist/runtime/components/dev/navbar/StepInfoButtonGroup.vue +5 -3
- package/dist/runtime/components/dev/navbar/ViewInfoButtonGroup.vue +13 -10
- package/dist/runtime/components/dev/presentation/DarkModeButton.vue +5 -3
- package/dist/runtime/components/dev/presentation/LogoutButton.vue +2 -1
- package/dist/runtime/components/dev/presentation/PresentationModeResetButton.vue +11 -2
- package/dist/runtime/components/dev/presentation/PresentationNavBar.d.vue.ts +13 -1
- package/dist/runtime/components/dev/presentation/PresentationNavBar.vue +13 -6
- package/dist/runtime/components/dev/presentation/PresentationNavBar.vue.d.ts +13 -1
- package/dist/runtime/components/dev/presentation/QRCodeButton.vue +4 -2
- package/dist/runtime/components/dev/sidebar/AppProgressPanel.vue +23 -21
- package/dist/runtime/components/dev/sidebar/ConfigurationVariablesPanel.vue +7 -5
- package/dist/runtime/components/dev/sidebar/DatabaseStatusInfoPanel.vue +27 -7
- package/dist/runtime/components/dev/sidebar/RandomizationSidebarPanel.vue +9 -5
- package/dist/runtime/components/dev/sidebar/SmileDevSideBar.vue +12 -5
- package/dist/runtime/components/dev/sidebar/StepDataViewer.d.vue.ts +2 -2
- package/dist/runtime/components/dev/sidebar/StepDataViewer.vue +1 -1
- package/dist/runtime/components/dev/sidebar/StepDataViewer.vue.d.ts +2 -2
- package/dist/runtime/components/dev/sidebar/StepExplorerPanel.vue +13 -8
- package/dist/runtime/components/dev/sidebar/StepNode.vue +7 -5
- package/dist/runtime/components/dev/sidebar/StudyInfoPanel.vue +3 -2
- package/dist/runtime/components/forms/MonthYearDayPicker.vue +1 -0
- package/dist/runtime/components/layouts/ConstrainedPage.d.vue.ts +1 -1
- package/dist/runtime/components/layouts/ConstrainedPage.vue.d.ts +1 -1
- package/dist/runtime/components/layouts/ConstrainedTaskWindow.d.vue.ts +2 -2
- package/dist/runtime/components/layouts/ConstrainedTaskWindow.vue +1 -1
- package/dist/runtime/components/layouts/ConstrainedTaskWindow.vue.d.ts +2 -2
- package/dist/runtime/components/layouts/TitleTwoCol.d.vue.ts +1 -1
- package/dist/runtime/components/layouts/TitleTwoCol.vue.d.ts +1 -1
- package/dist/runtime/components/layouts/TwoCol.d.vue.ts +1 -1
- package/dist/runtime/components/layouts/TwoCol.vue.d.ts +1 -1
- package/dist/runtime/components/ui/avatar/Avatar.vue +1 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue +1 -0
- package/dist/runtime/components/ui/badge/Badge.vue +1 -0
- package/dist/runtime/components/ui/badge/index.d.ts +1 -1
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +1 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +1 -0
- package/dist/runtime/components/ui/button/Button.vue +1 -0
- package/dist/runtime/components/ui/button/index.d.ts +2 -2
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue +1 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupItem.vue +1 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +1 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +1 -0
- package/dist/runtime/components/ui/card/Card.vue +1 -0
- package/dist/runtime/components/ui/card/CardAction.vue +1 -0
- package/dist/runtime/components/ui/card/CardContent.vue +1 -0
- package/dist/runtime/components/ui/card/CardDescription.vue +1 -0
- package/dist/runtime/components/ui/card/CardFooter.vue +1 -0
- package/dist/runtime/components/ui/card/CardHeader.vue +1 -0
- package/dist/runtime/components/ui/card/CardTitle.vue +1 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +6 -6
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +1 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +6 -6
- package/dist/runtime/components/ui/checkbox/index.d.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +3 -3
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +3 -3
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +1 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +3 -3
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue +1 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +3 -3
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +1 -0
- package/dist/runtime/components/ui/input/Input.d.vue.ts +4 -4
- package/dist/runtime/components/ui/input/Input.vue +1 -0
- package/dist/runtime/components/ui/input/Input.vue.d.ts +4 -4
- package/dist/runtime/components/ui/label/Label.vue +1 -0
- package/dist/runtime/components/ui/multiselect/MultiSelect.d.vue.ts +1 -1
- package/dist/runtime/components/ui/multiselect/MultiSelect.vue +1 -0
- package/dist/runtime/components/ui/multiselect/MultiSelect.vue.d.ts +1 -1
- package/dist/runtime/components/ui/pagination/Pagination.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue +1 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue +1 -0
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/popover/PopoverContent.vue +1 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/progress/Progress.vue +1 -0
- package/dist/runtime/components/ui/resizable/ResizableHandle.vue +1 -0
- package/dist/runtime/components/ui/resizable/ResizablePanel.d.vue.ts +1 -1
- package/dist/runtime/components/ui/resizable/ResizablePanel.vue.d.ts +1 -1
- package/dist/runtime/components/ui/resizable/ResizablePanelGroup.vue +1 -0
- package/dist/runtime/components/ui/select/Select.d.vue.ts +1 -1
- package/dist/runtime/components/ui/select/Select.vue.d.ts +1 -1
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/select/SelectContent.vue +1 -0
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/select/SelectItem.vue +1 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue +1 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +1 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +1 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue +1 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue +1 -0
- package/dist/runtime/components/ui/separator/Separator.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +1 -1
- package/dist/runtime/components/ui/sheet/SheetContent.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +1 -1
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +1 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +1 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.d.vue.ts +1 -1
- package/dist/runtime/components/ui/sidebar/Sidebar.vue +1 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.d.vue.ts +1 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +1 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.d.vue.ts +1 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue +1 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +1 -0
- package/dist/runtime/components/ui/sidebar/index.d.ts +1 -1
- package/dist/runtime/components/ui/skeleton/Skeleton.vue +1 -0
- package/dist/runtime/components/ui/sonner/Sonner.d.vue.ts +4 -4
- package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +4 -4
- package/dist/runtime/components/ui/stepper/Stepper.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperDescription.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperIndicator.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperItem.d.vue.ts +1 -1
- package/dist/runtime/components/ui/stepper/StepperItem.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperItem.vue.d.ts +1 -1
- package/dist/runtime/components/ui/stepper/StepperSeparator.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperTitle.vue +1 -0
- package/dist/runtime/components/ui/stepper/StepperTrigger.vue +1 -0
- package/dist/runtime/components/ui/switch/Switch.d.vue.ts +2 -2
- package/dist/runtime/components/ui/switch/Switch.vue +1 -0
- package/dist/runtime/components/ui/switch/Switch.vue.d.ts +2 -2
- package/dist/runtime/components/ui/switch/index.d.ts +2 -2
- package/dist/runtime/components/ui/table/Table.vue +1 -0
- package/dist/runtime/components/ui/table/TableBody.vue +1 -0
- package/dist/runtime/components/ui/table/TableCaption.vue +1 -0
- package/dist/runtime/components/ui/table/TableCell.vue +1 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue +1 -0
- package/dist/runtime/components/ui/table/TableFooter.vue +1 -0
- package/dist/runtime/components/ui/table/TableHead.vue +1 -0
- package/dist/runtime/components/ui/table/TableHeader.vue +1 -0
- package/dist/runtime/components/ui/table/TableRow.vue +1 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue +1 -0
- package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/tabs/TabsContent.vue +1 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/tabs/TabsList.d.vue.ts +1 -1
- package/dist/runtime/components/ui/tabs/TabsList.vue +1 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +1 -1
- package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +2 -2
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +1 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +2 -2
- package/dist/runtime/components/ui/tags-input/TagsInput.d.vue.ts +3 -3
- package/dist/runtime/components/ui/tags-input/TagsInput.vue +1 -0
- package/dist/runtime/components/ui/tags-input/TagsInput.vue.d.ts +3 -3
- package/dist/runtime/components/ui/tags-input/TagsInputInput.vue +1 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue +1 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue +1 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemText.vue +1 -0
- package/dist/runtime/components/ui/textarea/Textarea.d.vue.ts +4 -4
- package/dist/runtime/components/ui/textarea/Textarea.vue +1 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +4 -4
- package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +2 -2
- package/dist/runtime/components/ui/toggle/Toggle.vue +1 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +2 -2
- package/dist/runtime/components/ui/toggle/index.d.ts +1 -1
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.d.vue.ts +2 -2
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue +1 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +2 -2
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue +1 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue +1 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +2 -2
- package/dist/runtime/composables/useAPI.d.ts +2 -2
- package/dist/runtime/composables/useAPI.js +6 -11
- package/dist/runtime/composables/useViewAPI.d.ts +1 -0
- package/dist/runtime/composables/useViewAPI.js +20 -4
- package/dist/runtime/composables/useWindowSizer.d.ts +14 -0
- package/dist/runtime/composables/useWindowSizer.js +48 -0
- package/dist/runtime/core/config.d.ts +78 -48
- package/dist/runtime/core/config.js +21 -27
- package/dist/runtime/core/stepper/Stepper.d.ts +13 -10
- package/dist/runtime/core/stepper/Stepper.js +70 -55
- package/dist/runtime/core/stepper/StepperSerializer.js +32 -14
- package/dist/runtime/core/timeline/Timeline.js +1 -2
- package/dist/runtime/css/main.css +1 -1
- package/dist/runtime/css/smile.css +1 -1
- package/dist/runtime/layouts/development.vue +38 -78
- package/dist/runtime/layouts/experiment.d.vue.ts +7 -10
- package/dist/runtime/layouts/experiment.vue +13 -0
- package/dist/runtime/layouts/experiment.vue.d.ts +7 -10
- package/dist/runtime/layouts/presentation.vue +24 -3
- package/dist/runtime/middleware/timeline.global.js +2 -4
- package/dist/runtime/pages/[...slug].vue +2 -0
- package/dist/runtime/pages/dev/[...slug].vue +2 -0
- package/dist/runtime/pages/dev-login.vue +5 -3
- package/dist/runtime/pages/presentation/[...slug].vue +2 -0
- package/dist/runtime/plugins/dev-sync.client.js +0 -2
- package/dist/runtime/plugins/seed.client.js +1 -3
- package/dist/runtime/plugins/store-sync.client.js +8 -10
- package/dist/runtime/public/images/helpus.png +0 -0
- package/dist/runtime/public/images/smile.svg +78 -0
- package/dist/runtime/public/images/universitylogo.png +0 -0
- package/dist/runtime/server/api/auth/login.post.js +11 -2
- package/dist/runtime/server/api/db-info.get.d.ts +5 -0
- package/dist/runtime/server/api/db-info.get.js +10 -0
- package/dist/runtime/server/api/qr.get.js +1 -2
- package/dist/runtime/server/middleware/dev-auth.js +10 -5
- package/dist/runtime/stores/log.js +4 -7
- package/dist/runtime/stores/smilestore.d.ts +161 -1014
- package/dist/runtime/stores/smilestore.js +39 -7
- package/dist/runtime/utils/utils.js +7 -0
- package/package.json +5 -3
- package/dist/runtime/components/dev/navbar/ViewButton.vue +0 -159
- package/dist/runtime/pages/info.vue +0 -462
- /package/dist/runtime/components/{dev/navbar/ViewButton.d.vue.ts → builtins/LocalDevBanner.d.vue.ts} +0 -0
- /package/dist/runtime/components/{dev/navbar/ViewButton.vue.d.ts → builtins/LocalDevBanner.vue.d.ts} +0 -0
- /package/dist/runtime/{pages/info.d.vue.ts → components/dev/SmileDevPresentationView.d.vue.ts} +0 -0
- /package/dist/runtime/{pages/info.vue.d.ts → components/dev/SmileDevPresentationView.vue.d.ts} +0 -0
|
@@ -39,8 +39,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
39
39
|
required: false;
|
|
40
40
|
};
|
|
41
41
|
}>> & Readonly<{}>, {
|
|
42
|
-
asChild: boolean;
|
|
43
42
|
loop: boolean;
|
|
43
|
+
asChild: boolean;
|
|
44
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
45
|
type __VLS_Slots = {
|
|
46
46
|
default?: ((props: {}) => any) | undefined;
|
|
@@ -39,8 +39,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
39
39
|
required: false;
|
|
40
40
|
};
|
|
41
41
|
}>> & Readonly<{}>, {
|
|
42
|
-
asChild: boolean;
|
|
43
42
|
loop: boolean;
|
|
43
|
+
asChild: boolean;
|
|
44
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
45
|
type __VLS_Slots = {
|
|
46
46
|
default?: ((props: {}) => any) | undefined;
|
|
@@ -6,7 +6,7 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
6
6
|
});
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
value: {
|
|
9
|
-
type: (
|
|
9
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
disabled: {
|
|
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
27
27
|
};
|
|
28
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
value: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
31
31
|
required: true;
|
|
32
32
|
};
|
|
33
33
|
disabled: {
|
|
@@ -6,7 +6,7 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
6
6
|
});
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
value: {
|
|
9
|
-
type: (
|
|
9
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
disabled: {
|
|
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
27
27
|
};
|
|
28
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
value: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
31
31
|
required: true;
|
|
32
32
|
};
|
|
33
33
|
disabled: {
|
|
@@ -78,8 +78,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
78
78
|
required: false;
|
|
79
79
|
};
|
|
80
80
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
81
|
-
"update:modelValue": (...args: any[]) => void;
|
|
82
81
|
invalid: (...args: any[]) => void;
|
|
82
|
+
"update:modelValue": (...args: any[]) => void;
|
|
83
83
|
addTag: (...args: any[]) => void;
|
|
84
84
|
removeTag: (...args: any[]) => void;
|
|
85
85
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -156,13 +156,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
156
156
|
required: false;
|
|
157
157
|
};
|
|
158
158
|
}>> & Readonly<{
|
|
159
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
160
159
|
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
160
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
161
161
|
onAddTag?: ((...args: any[]) => any) | undefined;
|
|
162
162
|
onRemoveTag?: ((...args: any[]) => any) | undefined;
|
|
163
163
|
}>, {
|
|
164
|
-
required: boolean;
|
|
165
164
|
disabled: boolean;
|
|
165
|
+
required: boolean;
|
|
166
166
|
asChild: boolean;
|
|
167
167
|
addOnPaste: boolean;
|
|
168
168
|
addOnTab: boolean;
|
|
@@ -78,8 +78,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
78
78
|
required: false;
|
|
79
79
|
};
|
|
80
80
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
81
|
-
"update:modelValue": (...args: any[]) => void;
|
|
82
81
|
invalid: (...args: any[]) => void;
|
|
82
|
+
"update:modelValue": (...args: any[]) => void;
|
|
83
83
|
addTag: (...args: any[]) => void;
|
|
84
84
|
removeTag: (...args: any[]) => void;
|
|
85
85
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -156,13 +156,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
156
156
|
required: false;
|
|
157
157
|
};
|
|
158
158
|
}>> & Readonly<{
|
|
159
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
160
159
|
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
160
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
161
161
|
onAddTag?: ((...args: any[]) => any) | undefined;
|
|
162
162
|
onRemoveTag?: ((...args: any[]) => any) | undefined;
|
|
163
163
|
}>, {
|
|
164
|
-
required: boolean;
|
|
165
164
|
disabled: boolean;
|
|
165
|
+
required: boolean;
|
|
166
166
|
asChild: boolean;
|
|
167
167
|
addOnPaste: boolean;
|
|
168
168
|
addOnTab: boolean;
|
|
@@ -6,7 +6,7 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
6
6
|
});
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
value: {
|
|
9
|
-
type: (
|
|
9
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
disabled: {
|
|
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
27
27
|
};
|
|
28
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
value: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
31
31
|
required: true;
|
|
32
32
|
};
|
|
33
33
|
disabled: {
|
|
@@ -6,7 +6,7 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
6
6
|
});
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
value: {
|
|
9
|
-
type: (
|
|
9
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
disabled: {
|
|
@@ -27,7 +27,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
27
27
|
};
|
|
28
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
value: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
31
31
|
required: true;
|
|
32
32
|
};
|
|
33
33
|
disabled: {
|
|
@@ -6,11 +6,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
6
6
|
required: false;
|
|
7
7
|
};
|
|
8
8
|
defaultValue: {
|
|
9
|
-
type: (
|
|
9
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
10
10
|
required: false;
|
|
11
11
|
};
|
|
12
12
|
modelValue: {
|
|
13
|
-
type: (
|
|
13
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
14
14
|
required: false;
|
|
15
15
|
};
|
|
16
16
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -21,11 +21,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
21
21
|
required: false;
|
|
22
22
|
};
|
|
23
23
|
defaultValue: {
|
|
24
|
-
type: (
|
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
25
25
|
required: false;
|
|
26
26
|
};
|
|
27
27
|
modelValue: {
|
|
28
|
-
type: (
|
|
28
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
29
29
|
required: false;
|
|
30
30
|
};
|
|
31
31
|
}>> & Readonly<{
|
|
@@ -6,11 +6,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
6
6
|
required: false;
|
|
7
7
|
};
|
|
8
8
|
defaultValue: {
|
|
9
|
-
type: (
|
|
9
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
10
10
|
required: false;
|
|
11
11
|
};
|
|
12
12
|
modelValue: {
|
|
13
|
-
type: (
|
|
13
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
14
14
|
required: false;
|
|
15
15
|
};
|
|
16
16
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -21,11 +21,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
21
21
|
required: false;
|
|
22
22
|
};
|
|
23
23
|
defaultValue: {
|
|
24
|
-
type: (
|
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
25
25
|
required: false;
|
|
26
26
|
};
|
|
27
27
|
modelValue: {
|
|
28
|
-
type: (
|
|
28
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
29
29
|
required: false;
|
|
30
30
|
};
|
|
31
31
|
}>> & Readonly<{
|
|
@@ -97,12 +97,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
97
97
|
}>> & Readonly<{
|
|
98
98
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
}>, {
|
|
100
|
-
variant: any;
|
|
101
|
-
required: boolean;
|
|
102
100
|
size: any;
|
|
103
101
|
disabled: boolean;
|
|
102
|
+
required: boolean;
|
|
104
103
|
defaultValue: boolean;
|
|
105
104
|
asChild: boolean;
|
|
105
|
+
variant: any;
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
107
107
|
type __VLS_Slots = {
|
|
108
108
|
default?: ((props: {
|
|
@@ -97,12 +97,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
97
97
|
}>> & Readonly<{
|
|
98
98
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
}>, {
|
|
100
|
-
variant: any;
|
|
101
|
-
required: boolean;
|
|
102
100
|
size: any;
|
|
103
101
|
disabled: boolean;
|
|
102
|
+
required: boolean;
|
|
104
103
|
defaultValue: boolean;
|
|
105
104
|
asChild: boolean;
|
|
105
|
+
variant: any;
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
107
107
|
type __VLS_Slots = {
|
|
108
108
|
default?: ((props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as Toggle } from "./Toggle.vue.js";
|
|
2
2
|
export const toggleVariants: (props?: ({
|
|
3
3
|
variant?: "default" | "outline" | null | undefined;
|
|
4
|
-
size?: "default" | "
|
|
4
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -131,10 +131,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
131
131
|
}>> & Readonly<{
|
|
132
132
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
133
133
|
}>, {
|
|
134
|
-
|
|
134
|
+
loop: boolean;
|
|
135
135
|
disabled: boolean;
|
|
136
|
+
required: boolean;
|
|
136
137
|
asChild: boolean;
|
|
137
|
-
loop: boolean;
|
|
138
138
|
rovingFocus: boolean;
|
|
139
139
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
140
140
|
type __VLS_Slots = {
|
|
@@ -131,10 +131,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
131
131
|
}>> & Readonly<{
|
|
132
132
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
133
133
|
}>, {
|
|
134
|
-
|
|
134
|
+
loop: boolean;
|
|
135
135
|
disabled: boolean;
|
|
136
|
+
required: boolean;
|
|
136
137
|
asChild: boolean;
|
|
137
|
-
loop: boolean;
|
|
138
138
|
rovingFocus: boolean;
|
|
139
139
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
140
140
|
type __VLS_Slots = {
|
|
@@ -47,7 +47,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
47
47
|
required: false;
|
|
48
48
|
};
|
|
49
49
|
collisionPadding: {
|
|
50
|
-
type: (
|
|
50
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
51
51
|
required: false;
|
|
52
52
|
};
|
|
53
53
|
arrowPadding: {
|
|
@@ -120,7 +120,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
120
120
|
required: false;
|
|
121
121
|
};
|
|
122
122
|
collisionPadding: {
|
|
123
|
-
type: (
|
|
123
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
124
124
|
required: false;
|
|
125
125
|
};
|
|
126
126
|
arrowPadding: {
|
|
@@ -47,7 +47,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
47
47
|
required: false;
|
|
48
48
|
};
|
|
49
49
|
collisionPadding: {
|
|
50
|
-
type: (
|
|
50
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
51
51
|
required: false;
|
|
52
52
|
};
|
|
53
53
|
arrowPadding: {
|
|
@@ -120,7 +120,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
120
120
|
required: false;
|
|
121
121
|
};
|
|
122
122
|
collisionPadding: {
|
|
123
|
-
type: (
|
|
123
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
124
124
|
required: false;
|
|
125
125
|
};
|
|
126
126
|
arrowPadding: {
|
|
@@ -20,8 +20,8 @@ export default function useAPI(): SmileAPI;
|
|
|
20
20
|
* @property {object} private - Private data from store
|
|
21
21
|
* @property {object} all_data - Combined private and public data
|
|
22
22
|
* @property {object} all_config - Combined bro, dev, github and main configs
|
|
23
|
-
* @property {
|
|
24
|
-
* @property {
|
|
23
|
+
* @property {object} urls - Global URL configurations
|
|
24
|
+
* @property {object} log - Logging methods interface
|
|
25
25
|
*/
|
|
26
26
|
export class SmileAPI {
|
|
27
27
|
/**
|
|
@@ -20,11 +20,11 @@ import { useRoute, useRouter, useRuntimeConfig, useNuxtApp } from '#imports'
|
|
|
20
20
|
import useSmileStore from '../stores/smilestore.js'
|
|
21
21
|
import useLog from '../stores/log.js'
|
|
22
22
|
import useTimeline from './useTimeline.js'
|
|
23
|
-
import
|
|
23
|
+
import seedrandom from 'seedrandom'
|
|
24
24
|
import { v4 as uuidv4 } from 'uuid'
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
25
|
+
import sha256 from 'crypto-js/sha256'
|
|
26
|
+
import Base64url from 'crypto-js/enc-base64'
|
|
27
|
+
import stringify from 'json-stable-stringify'
|
|
28
28
|
import {
|
|
29
29
|
randomInt,
|
|
30
30
|
shuffle,
|
|
@@ -33,11 +33,6 @@ import {
|
|
|
33
33
|
fakerDistributions,
|
|
34
34
|
} from '../utils/randomization.js'
|
|
35
35
|
|
|
36
|
-
const seedrandom = _seedrandom.default || _seedrandom
|
|
37
|
-
const sha256 = _sha256.default || _sha256
|
|
38
|
-
const Base64url = _Base64url.default || _Base64url
|
|
39
|
-
const stringify = _stringify.default || _stringify
|
|
40
|
-
|
|
41
36
|
/**
|
|
42
37
|
* SmileAPI class provides core functionality for SMILE experiments
|
|
43
38
|
* @class
|
|
@@ -55,8 +50,8 @@ const stringify = _stringify.default || _stringify
|
|
|
55
50
|
* @property {object} private - Private data from store
|
|
56
51
|
* @property {object} all_data - Combined private and public data
|
|
57
52
|
* @property {object} all_config - Combined bro, dev, github and main configs
|
|
58
|
-
* @property {
|
|
59
|
-
* @property {
|
|
53
|
+
* @property {object} urls - Global URL configurations
|
|
54
|
+
* @property {object} log - Logging methods interface
|
|
60
55
|
*/
|
|
61
56
|
export class SmileAPI {
|
|
62
57
|
/**
|
|
@@ -34,6 +34,7 @@ declare class ViewAPI extends SmileAPI {
|
|
|
34
34
|
_stateMachine: import("vue").Ref<null, null>;
|
|
35
35
|
_gvars: import("vue").Ref<{}, {}>;
|
|
36
36
|
componentRegistry: Map<any, any>;
|
|
37
|
+
_appContext: import("vue").AppContext | undefined;
|
|
37
38
|
onKeyDown: typeof onKeyDown;
|
|
38
39
|
onKeyPressed: typeof onKeyPressed;
|
|
39
40
|
onKeyUp: typeof onKeyUp;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* - All methods and properties from the core API
|
|
6
6
|
* - All methods and properties from the stepper
|
|
7
7
|
*/
|
|
8
|
-
import { ref, reactive, computed, watch } from 'vue'
|
|
8
|
+
import { ref, reactive, computed, watch, getCurrentInstance } from 'vue'
|
|
9
9
|
import { SmileAPI } from './useAPI.js'
|
|
10
10
|
import useSmileStore from '../stores/smilestore.js'
|
|
11
11
|
import { useStepper } from './useStepper.js'
|
|
@@ -57,9 +57,13 @@ class ViewAPI extends SmileAPI {
|
|
|
57
57
|
this._stateMachine = ref(null)
|
|
58
58
|
this._gvars = ref({})
|
|
59
59
|
|
|
60
|
-
// Component registry
|
|
60
|
+
// Component registry (deprecated - now stored on the Stepper's _componentRegistry)
|
|
61
|
+
// Kept for backwards compatibility but no longer populated
|
|
61
62
|
this.componentRegistry = new Map()
|
|
62
63
|
|
|
64
|
+
// Capture the Vue app context for resolving globally registered components
|
|
65
|
+
this._appContext = getCurrentInstance()?.appContext
|
|
66
|
+
|
|
63
67
|
// Watch for stepper changes and update internal state
|
|
64
68
|
watch(
|
|
65
69
|
this._stepper,
|
|
@@ -672,10 +676,22 @@ class ViewAPI extends SmileAPI {
|
|
|
672
676
|
|
|
673
677
|
return this._dataAlongPath.value.map((item) => {
|
|
674
678
|
if (item?.type?.__vueComponent) {
|
|
679
|
+
const name = item.type.componentName
|
|
680
|
+
// Try stepper's component registry first (captures user-imported components)
|
|
681
|
+
const stepperRegistry = this._stepper.value?._componentRegistry
|
|
682
|
+
let resolved = stepperRegistry?.get(name)
|
|
683
|
+
// Fallback to globally registered components (Nuxt auto-imports)
|
|
684
|
+
if (!resolved && this._appContext) {
|
|
685
|
+
const globalResolved = this._appContext.components?.[name]
|
|
686
|
+
|| this._appContext.app?.component?.(name)
|
|
687
|
+
if (globalResolved) {
|
|
688
|
+
resolved = globalResolved
|
|
689
|
+
}
|
|
690
|
+
}
|
|
675
691
|
return {
|
|
676
692
|
...item,
|
|
677
|
-
type:
|
|
678
|
-
template: `<div>Component ${
|
|
693
|
+
type: resolved || {
|
|
694
|
+
template: `<div>Component ${name} not found</div>`,
|
|
679
695
|
},
|
|
680
696
|
}
|
|
681
697
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monitors the viewport size and updates `browserEphemeral.tooSmall`.
|
|
3
|
+
*
|
|
4
|
+
* @param {{ useDeviceContainer?: boolean }} options
|
|
5
|
+
* - useDeviceContainer: when true, checks against the responsive device
|
|
6
|
+
* container dimensions (for the development layout). When false or
|
|
7
|
+
* omitted, checks against the browser window dimensions.
|
|
8
|
+
* @returns {{ showAggressiveOverlay: import('vue').ComputedRef<boolean> }}
|
|
9
|
+
*/
|
|
10
|
+
export default function useWindowSizer({ useDeviceContainer }?: {
|
|
11
|
+
useDeviceContainer?: boolean;
|
|
12
|
+
}): {
|
|
13
|
+
showAggressiveOverlay: import("vue").ComputedRef<boolean>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
|
2
|
+
import useAPI from './useAPI.js'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Monitors the viewport size and updates `browserEphemeral.tooSmall`.
|
|
6
|
+
*
|
|
7
|
+
* @param {{ useDeviceContainer?: boolean }} options
|
|
8
|
+
* - useDeviceContainer: when true, checks against the responsive device
|
|
9
|
+
* container dimensions (for the development layout). When false or
|
|
10
|
+
* omitted, checks against the browser window dimensions.
|
|
11
|
+
* @returns {{ showAggressiveOverlay: import('vue').ComputedRef<boolean> }}
|
|
12
|
+
*/
|
|
13
|
+
export default function useWindowSizer({ useDeviceContainer = false } = {}) {
|
|
14
|
+
const api = useAPI()
|
|
15
|
+
|
|
16
|
+
const windowWidth = ref(typeof window !== 'undefined' ? window.innerWidth : 0)
|
|
17
|
+
const windowHeight = ref(typeof window !== 'undefined' ? window.innerHeight : 0)
|
|
18
|
+
|
|
19
|
+
function updateWindowDimensions() {
|
|
20
|
+
windowWidth.value = window.innerWidth
|
|
21
|
+
windowHeight.value = window.innerHeight
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
onMounted(() => {
|
|
25
|
+
updateWindowDimensions()
|
|
26
|
+
window.addEventListener('resize', updateWindowDimensions)
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
onUnmounted(() => {
|
|
30
|
+
window.removeEventListener('resize', updateWindowDimensions)
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const effectiveWidth = computed(() => {
|
|
34
|
+
return useDeviceContainer ? api.store.dev.deviceWidth : windowWidth.value
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
const effectiveHeight = computed(() => {
|
|
38
|
+
return useDeviceContainer ? api.store.dev.deviceHeight : windowHeight.value
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
const showAggressiveOverlay = computed(() => {
|
|
42
|
+
const val = api.isBrowserTooSmall(effectiveWidth.value, effectiveHeight.value)
|
|
43
|
+
api.store.browserEphemeral.tooSmall = val
|
|
44
|
+
return val
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
return { showAggressiveOverlay }
|
|
48
|
+
}
|