@nyuccl/smile 0.2.0-beta.6 → 0.2.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/builtins/AdvertisementView.vue +1 -0
  3. package/dist/runtime/components/builtins/DemographicSurveyView.vue +1 -0
  4. package/dist/runtime/components/builtins/DeviceSurveyView.vue +1 -0
  5. package/dist/runtime/components/builtins/ExpView.vue +1 -0
  6. package/dist/runtime/components/builtins/ExperimentStatusBar.vue +3 -0
  7. package/dist/runtime/components/builtins/FavoriteColor.vue +1 -0
  8. package/dist/runtime/components/builtins/FavoriteNumber.vue +1 -0
  9. package/dist/runtime/components/builtins/InformedConsentModal.vue +1 -0
  10. package/dist/runtime/components/builtins/InformedConsentView.vue +1 -0
  11. package/dist/runtime/components/builtins/InstructionsQuiz.vue +1 -0
  12. package/dist/runtime/components/builtins/InstructionsView.vue +1 -0
  13. package/dist/runtime/components/builtins/MTurkRecruitView.vue +1 -0
  14. package/dist/runtime/components/builtins/PresentationModeView.d.vue.ts +1 -1
  15. package/dist/runtime/components/builtins/PresentationModeView.vue +1 -0
  16. package/dist/runtime/components/builtins/PresentationModeView.vue.d.ts +1 -1
  17. package/dist/runtime/components/builtins/StatusBar.vue +2 -0
  18. package/dist/runtime/components/builtins/StudyPreviewText.vue +1 -0
  19. package/dist/runtime/components/builtins/TaskFeedbackSurveyView.vue +1 -0
  20. package/dist/runtime/components/builtins/ThanksView.vue +1 -0
  21. package/dist/runtime/components/builtins/WindowSizerView.vue +1 -0
  22. package/dist/runtime/components/builtins/WithdrawModal.vue +1 -0
  23. package/dist/runtime/components/builtins/WithdrawView.vue +1 -0
  24. package/dist/runtime/components/dev/RecruitmentChooserView.vue +1 -0
  25. package/dist/runtime/components/dev/ResponsiveDeviceContainer.vue +1 -0
  26. package/dist/runtime/components/dev/console/ConfigList.vue +1 -0
  27. package/dist/runtime/components/dev/console/ConsoleConfigPanel.vue +1 -0
  28. package/dist/runtime/components/dev/console/ConsoleDatabaseBrowsePanel.vue +1 -0
  29. package/dist/runtime/components/dev/console/ConsoleLogPanel.vue +2 -0
  30. package/dist/runtime/components/dev/console/DatabaseList.vue +1 -0
  31. package/dist/runtime/components/dev/console/SmileDevConsole.vue +1 -0
  32. package/dist/runtime/components/dev/menu/DevConfigPanel.vue +1 -0
  33. package/dist/runtime/components/dev/menu/ResponsiveDeviceSelect.vue +1 -0
  34. package/dist/runtime/components/dev/menu/SmileDevAppMenu.vue +1 -0
  35. package/dist/runtime/components/dev/navbar/DatabaseButtonGroup.vue +1 -0
  36. package/dist/runtime/components/dev/navbar/FullScreenButton.vue +1 -0
  37. package/dist/runtime/components/dev/navbar/ReloadButton.vue +1 -0
  38. package/dist/runtime/components/dev/navbar/ResetButton.vue +1 -0
  39. package/dist/runtime/components/dev/navbar/RouteJumper.vue +2 -0
  40. package/dist/runtime/components/dev/navbar/SmileDevNavBar.vue +1 -0
  41. package/dist/runtime/components/dev/navbar/StepInfoButtonGroup.vue +1 -0
  42. package/dist/runtime/components/dev/navbar/ViewButton.vue +1 -0
  43. package/dist/runtime/components/dev/navbar/ViewInfoButtonGroup.vue +1 -0
  44. package/dist/runtime/components/dev/presentation/QRCodeButton.vue +1 -0
  45. package/dist/runtime/components/dev/sidebar/DatabaseStatusInfoPanel.vue +1 -0
  46. package/dist/runtime/components/dev/sidebar/RandomizationSidebarPanel.vue +1 -0
  47. package/dist/runtime/components/dev/sidebar/SmileDevSideBar.vue +1 -0
  48. package/dist/runtime/components/dev/sidebar/StepDataViewer.d.vue.ts +2 -2
  49. package/dist/runtime/components/dev/sidebar/StepDataViewer.vue.d.ts +2 -2
  50. package/dist/runtime/components/dev/sidebar/StepExplorerPanel.vue +1 -0
  51. package/dist/runtime/components/ui/button/index.d.ts +1 -1
  52. package/dist/runtime/components/ui/button-group/ButtonGroup.d.vue.ts +1 -1
  53. package/dist/runtime/components/ui/button-group/ButtonGroup.vue.d.ts +1 -1
  54. package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +5 -5
  55. package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +5 -5
  56. package/dist/runtime/components/ui/checkbox/index.d.ts +1 -1
  57. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.d.vue.ts +2 -2
  58. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +2 -2
  59. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +2 -2
  60. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +2 -2
  61. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.d.vue.ts +1 -1
  62. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +1 -1
  63. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.d.vue.ts +1 -1
  64. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
  65. package/dist/runtime/components/ui/multiselect/MultiSelect.d.vue.ts +1 -1
  66. package/dist/runtime/components/ui/multiselect/MultiSelect.vue.d.ts +1 -1
  67. package/dist/runtime/components/ui/select/Select.d.vue.ts +1 -1
  68. package/dist/runtime/components/ui/select/Select.vue.d.ts +1 -1
  69. package/dist/runtime/components/ui/separator/Separator.d.vue.ts +1 -1
  70. package/dist/runtime/components/ui/separator/Separator.vue.d.ts +1 -1
  71. package/dist/runtime/components/ui/switch/Switch.d.vue.ts +1 -1
  72. package/dist/runtime/components/ui/switch/Switch.vue.d.ts +1 -1
  73. package/dist/runtime/components/ui/switch/index.d.ts +1 -1
  74. package/dist/runtime/components/ui/tags-input/TagsInput.d.vue.ts +1 -1
  75. package/dist/runtime/components/ui/tags-input/TagsInput.vue.d.ts +1 -1
  76. package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +1 -1
  77. package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +1 -1
  78. package/dist/runtime/components/ui/toggle-group/ToggleGroup.d.vue.ts +1 -1
  79. package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +1 -1
  80. package/dist/runtime/layouts/development.vue +1 -0
  81. package/dist/runtime/layouts/presentation.vue +1 -0
  82. package/dist/runtime/pages/[...slug].vue +2 -0
  83. package/dist/runtime/pages/dev/[...slug].vue +2 -0
  84. package/dist/runtime/pages/info.vue +1 -0
  85. package/dist/runtime/pages/presentation/[...slug].vue +2 -0
  86. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nyuccl/smile",
3
3
  "configKey": "smile",
4
- "version": "0.2.0-beta.6",
4
+ "version": "0.2.0-beta.7",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { onMounted, ref, onBeforeUnmount } from "vue";
3
3
  import { animate } from "motion";
4
+ import useViewAPI from "../../composables/useViewAPI";
4
5
  const api = useViewAPI();
5
6
  let timer;
6
7
  let clicked = false;
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { reactive, computed, ref } from "vue";
3
3
  import { CalendarIcon } from "lucide-vue-next";
4
+ import useViewAPI from "../../composables/useViewAPI";
4
5
  const api = useViewAPI();
5
6
  api.steps.append([{ id: "survey_page1" }, { id: "survey_page2" }, { id: "survey_page3" }]);
6
7
  const isPopoverOpen = ref(false);
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { reactive, computed } from "vue";
3
+ import useViewAPI from "../../composables/useViewAPI";
3
4
  const api = useViewAPI();
4
5
  api.steps.append([{ id: "device_page1" }, { id: "device_page2" }]);
5
6
  if (!api.persist.isDefined("forminfo")) {
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import useViewAPI from "../../composables/useViewAPI";
2
3
  const api = useViewAPI();
3
4
  function finish() {
4
5
  api.goNextView();
@@ -1,4 +1,7 @@
1
1
  <script setup>
2
+ import { computed } from "vue";
3
+ import { useRoute } from "#imports";
4
+ import useAPI from "../../composables/useAPI";
2
5
  const api = useAPI();
3
6
  const route = useRoute();
4
7
  const showStatusBar = computed(() => {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { ref } from "vue";
3
+ import useViewAPI from "../../composables/useViewAPI";
3
4
  const api = useViewAPI();
4
5
  const faveColor = ref("");
5
6
  function finish() {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { ref } from "vue";
3
+ import useViewAPI from "../../composables/useViewAPI";
3
4
  const api = useViewAPI();
4
5
  const faveNumber = ref("1");
5
6
  function finish() {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { watch, onUnmounted } from "vue";
3
+ import useAPI from "../../composables/useAPI";
3
4
  const props = defineProps({
4
5
  show: {
5
6
  type: Boolean,
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { ref, watch, onBeforeUnmount } from "vue";
3
3
  import { animate } from "motion";
4
+ import useViewAPI from "../../composables/useViewAPI";
4
5
  const _props = defineProps({
5
6
  informedConsentText: {
6
7
  type: Object,
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useViewAPI from "../../composables/useViewAPI";
3
4
  const api = useViewAPI();
4
5
  const props = defineProps({
5
6
  questions: {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useViewAPI from "../../composables/useViewAPI";
3
4
  const api = useViewAPI();
4
5
  const cond = api.getConditionByName("instructionsVersion");
5
6
  const instText = computed(() => {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { onMounted, ref } from "vue";
3
+ import useAPI from "../../composables/useAPI";
3
4
  const api = useAPI();
4
5
  const props = defineProps({
5
6
  estimated_time: {
@@ -84,10 +84,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
84
84
  };
85
85
  }>> & Readonly<{}>, {
86
86
  title: string;
87
- description: string | unknown[];
88
87
  subtitle: string;
89
88
  siteAuthor: Record<string, any>;
90
89
  projectAuthors: unknown[];
91
90
  info: unknown[];
91
+ description: string | unknown[];
92
92
  sections: unknown[];
93
93
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
3
  import { ArrowRight } from "lucide-vue-next";
4
+ import useAPI from "../../composables/useAPI";
4
5
  const api = useAPI();
5
6
  const props = defineProps({
6
7
  title: {
@@ -84,10 +84,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
84
84
  };
85
85
  }>> & Readonly<{}>, {
86
86
  title: string;
87
- description: string | unknown[];
88
87
  subtitle: string;
89
88
  siteAuthor: Record<string, any>;
90
89
  projectAuthors: unknown[];
91
90
  info: unknown[];
91
+ description: string | unknown[];
92
92
  sections: unknown[];
93
93
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,7 @@
1
1
  <script setup>
2
2
  import { ref } from "vue";
3
+ import useSmileStore from "../../stores/smilestore";
4
+ import useAPI from "../../composables/useAPI";
3
5
  const smilestore = useSmileStore();
4
6
  const api = useAPI();
5
7
  const email = ref("");
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import useAPI from "../../composables/useAPI";
2
3
  const api = useAPI();
3
4
  const _props = defineProps({
4
5
  estimated_time: {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { reactive, computed } from "vue";
3
+ import useViewAPI from "../../composables/useViewAPI";
3
4
  const api = useViewAPI();
4
5
  if (!api.persist.isDefined("forminfo")) {
5
6
  api.persist.forminfo = reactive({
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import Clipboard from "clipboard";
3
3
  import { onMounted, ref } from "vue";
4
+ import useAPI from "../../composables/useAPI";
4
5
  const api = useAPI();
5
6
  const alreadyCompleted = !!api.store.cookieState.completionCode;
6
7
  const isUploading = ref(!alreadyCompleted);
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import useViewAPI from "../../composables/useViewAPI";
2
3
  const api = useViewAPI();
3
4
  const props = defineProps(["triggered"]);
4
5
  function finish() {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { reactive, watch, onUnmounted } from "vue";
3
+ import useAPI from "../../composables/useAPI";
3
4
  const props = defineProps({
4
5
  show: {
5
6
  type: Boolean,
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useAPI from "../../composables/useAPI";
3
4
  const api = useAPI();
4
5
  api.saveData(true);
5
6
  const cardContent = {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useViewAPI from "../../composables/useViewAPI";
3
4
  const api = useViewAPI();
4
5
  const devUrls = computed(() => {
5
6
  const urls = {};
@@ -3,6 +3,7 @@ import { ref, computed } from "vue";
3
3
  import ResponsiveDeviceSelect from "./menu/ResponsiveDeviceSelect.vue";
4
4
  import { useElementSize } from "@vueuse/core";
5
5
  import { devicePresets } from "./devicePresets.js";
6
+ import useAPI from "../../composables/useAPI";
6
7
  const api = useAPI();
7
8
  const fullScreenDiv = ref(null);
8
9
  const { width: _fullScreenWidth, height: _fullScreenHeight } = useElementSize(fullScreenDiv);
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useAPI from "../../../composables/useAPI";
3
4
  const props = defineProps(["data", "selected"]);
4
5
  const api = useAPI();
5
6
  const emit = defineEmits(["selected"]);
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { reactive, computed, onMounted } from "vue";
3
3
  import ConfigList from "./ConfigList.vue";
4
+ import useAPI from "../../../composables/useAPI";
4
5
  const api = useAPI();
5
6
  const browse_panels = reactive({ path: ["/", null, null] });
6
7
  onMounted(() => {
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { reactive, computed, onMounted } from "vue";
3
3
  import DatabaseList from "./DatabaseList.vue";
4
+ import useAPI from "../../../composables/useAPI";
4
5
  const api = useAPI();
5
6
  const browse_panels = reactive({ path: ["/", null, null] });
6
7
  onMounted(() => {
@@ -1,5 +1,7 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useLog from "../../../stores/log";
4
+ import useAPI from "../../../composables/useAPI";
3
5
  const api = useAPI();
4
6
  const log = useLog();
5
7
  const height_pct = computed(() => `${api.store.dev.consoleBarHeight - 55}px`);
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useAPI from "../../../composables/useAPI";
3
4
  const props = defineProps(["data", "selected"]);
4
5
  const api = useAPI();
5
6
  const emit = defineEmits(["selected"]);
@@ -2,6 +2,7 @@
2
2
  import ConsoleDatabaseBrowsePanel from "./ConsoleDatabaseBrowsePanel.vue";
3
3
  import ConsoleLogPanel from "./ConsoleLogPanel.vue";
4
4
  import ConsoleConfigPanel from "./ConsoleConfigPanel.vue";
5
+ import useAPI from "../../../composables/useAPI";
5
6
  const api = useAPI();
6
7
  </script>
7
8
 
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import ResponsiveDeviceSelect from "./ResponsiveDeviceSelect.vue";
3
3
  import { devicePresets } from "../devicePresets.js";
4
+ import useAPI from "../../../composables/useAPI";
4
5
  const api = useAPI();
5
6
  const checkForMatchingPreset = () => {
6
7
  for (const [key, preset] of Object.entries(devicePresets)) {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { devicePresets } from "../devicePresets.js";
3
+ import useAPI from "../../../composables/useAPI";
3
4
  const api = useAPI();
4
5
  const handleDeviceChange = (value) => {
5
6
  console.log("handleDeviceChange called with:", value);
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
3
  import DevConfigPanel from "./DevConfigPanel.vue";
4
+ import useAPI from "../../../composables/useAPI";
4
5
  const props = defineProps({
5
6
  side: { type: String, required: false },
6
7
  variant: { type: String, required: false },
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
3
  import CircleProgress from "./CircleProgress.vue";
4
+ import useAPI from "../../../composables/useAPI";
4
5
  const api = useAPI();
5
6
  const database_tooltip = computed(() => {
6
7
  let msg = "";
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import useAPI from "../../../composables/useAPI";
2
3
  const api = useAPI();
3
4
  </script>
4
5
 
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import useAPI from "../../../composables/useAPI";
2
3
  const api = useAPI();
3
4
  </script>
4
5
 
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import useAPI from "../../../composables/useAPI";
2
3
  const api = useAPI();
3
4
  </script>
4
5
 
@@ -1,5 +1,7 @@
1
1
  <script setup>
2
2
  import { watch, ref, computed } from "vue";
3
+ import useLog from "../../../stores/log";
4
+ import useAPI from "../../../composables/useAPI";
3
5
  const api = useAPI();
4
6
  const _props = defineProps(["routeName"]);
5
7
  const log = useLog();
@@ -11,6 +11,7 @@ import KeyCommandNotification from "./KeyCommandNotification.vue";
11
11
  import LogoutButton from "../presentation/LogoutButton.vue";
12
12
  import { ref } from "vue";
13
13
  import { onKeyDown } from "@vueuse/core";
14
+ import useAPI from "../../../composables/useAPI";
14
15
  const api = useAPI();
15
16
  const showNotification = ref(false);
16
17
  const notificationCommand = ref("");
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import useViewAPI from "../../../composables/useViewAPI";
2
3
  const api = useViewAPI();
3
4
  </script>
4
5
 
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useAPI from "../../../composables/useAPI";
3
4
  const api = useAPI();
4
5
  const currentState = computed(() => {
5
6
  const sideBar = api.store.dev.showSideBar;
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
3
  import RouteJumper from "./RouteJumper.vue";
4
+ import useAPI from "../../../composables/useAPI";
4
5
  const api = useAPI();
5
6
  const route = useRoute();
6
7
  const isDevMode = computed(() => route.path.startsWith("/dev/") || route.path === "/dev");
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useAPI from "../../../composables/useAPI";
3
4
  const api = useAPI();
4
5
  const qrUrl = computed(() => {
5
6
  const deployUrl = api.config.deployURL || (import.meta.client ? window.location.origin : "");
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed, ref, onMounted, onBeforeUnmount } from "vue";
3
+ import useAPI from "../../../composables/useAPI";
3
4
  const api = useAPI();
4
5
  const timer = ref(null);
5
6
  const _sync_state = computed(() => {
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { ref, watch } from "vue";
3
+ import useSmileStore from "../../../stores/smilestore";
3
4
  const api = useAPI();
4
5
  const smilestore = useSmileStore();
5
6
  const seed = ref(smilestore.getSeedID);
@@ -5,6 +5,7 @@ import DatabaseStatusInfoPanel from "./DatabaseStatusInfoPanel.vue";
5
5
  import RandomizationSidebarPanel from "./RandomizationSidebarPanel.vue";
6
6
  import StudyInfoPanel from "./StudyInfoPanel.vue";
7
7
  import AppProgressPanel from "./AppProgressPanel.vue";
8
+ import useAPI from "../../../composables/useAPI";
8
9
  const api = useAPI();
9
10
  </script>
10
11
 
@@ -11,12 +11,12 @@ export type Props = {
11
11
  };
12
12
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
13
  data: {
14
- type: (BooleanConstructor | NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor | null)[];
14
+ type: (NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor | BooleanConstructor | null)[];
15
15
  required: true;
16
16
  };
17
17
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
18
  data: {
19
- type: (BooleanConstructor | NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor | null)[];
19
+ type: (NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor | BooleanConstructor | null)[];
20
20
  required: true;
21
21
  };
22
22
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -11,12 +11,12 @@ export type Props = {
11
11
  };
12
12
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
13
  data: {
14
- type: (BooleanConstructor | NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor | null)[];
14
+ type: (NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor | BooleanConstructor | null)[];
15
15
  required: true;
16
16
  };
17
17
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
18
  data: {
19
- type: (BooleanConstructor | NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor | null)[];
19
+ type: (NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor | BooleanConstructor | null)[];
20
20
  required: true;
21
21
  };
22
22
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -2,6 +2,7 @@
2
2
  import { ref, computed, watch } from "vue";
3
3
  import StepNode from "./StepNode.vue";
4
4
  import StepDataViewer from "./StepDataViewer.vue";
5
+ import useViewAPI from "../../../composables/useViewAPI";
5
6
  const api = useViewAPI();
6
7
  const stateMachine = computed(() => api.steps.visualize());
7
8
  const _pathToString = (pathArray) => {
@@ -1,5 +1,5 @@
1
1
  export { default as Button } from "./Button.vue.js";
2
2
  export const buttonVariants: (props?: ({
3
- variant?: "default" | "link" | "success" | "outline" | "ghost" | "secondary" | "info" | "warning-light" | "danger-light" | "destructive" | "primary" | "primary-light" | "button-link" | "button-link-light" | "info-light" | "success-light" | "warning" | "danger" | null | undefined;
3
+ variant?: "success" | "default" | "link" | "outline" | "ghost" | "secondary" | "warning-light" | "info" | "danger-light" | "destructive" | "primary" | "primary-light" | "button-link" | "button-link-light" | "info-light" | "success-light" | "warning" | "danger" | null | undefined;
4
4
  size?: "default" | "menu" | "xs" | "sm" | "icon" | "lg" | "xl" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -76,9 +76,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
76
76
  };
77
77
  }>> & Readonly<{}>, {
78
78
  disabled: boolean;
79
+ orientation: string;
79
80
  asChild: boolean;
80
81
  as: any;
81
- orientation: string;
82
82
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
83
83
  type __VLS_Slots = {
84
84
  default?: ((props: {}) => any) | undefined;
@@ -76,9 +76,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
76
76
  };
77
77
  }>> & Readonly<{}>, {
78
78
  disabled: boolean;
79
+ orientation: string;
79
80
  asChild: boolean;
80
81
  as: any;
81
- orientation: string;
82
82
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
83
83
  type __VLS_Slots = {
84
84
  default?: ((props: {}) => any) | undefined;
@@ -6,11 +6,11 @@ type __VLS_WithSlots<T, S> = T & (new () => {
6
6
  });
7
7
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
8
  defaultValue: {
9
- type: (BooleanConstructor | StringConstructor)[];
9
+ type: (StringConstructor | BooleanConstructor)[];
10
10
  required: false;
11
11
  };
12
12
  modelValue: {
13
- type: (BooleanConstructor | StringConstructor | null)[];
13
+ type: (StringConstructor | BooleanConstructor | null)[];
14
14
  required: false;
15
15
  };
16
16
  disabled: {
@@ -59,11 +59,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
59
59
  "update:modelValue": (...args: any[]) => void;
60
60
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
61
61
  defaultValue: {
62
- type: (BooleanConstructor | StringConstructor)[];
62
+ type: (StringConstructor | BooleanConstructor)[];
63
63
  required: false;
64
64
  };
65
65
  modelValue: {
66
- type: (BooleanConstructor | StringConstructor | null)[];
66
+ type: (StringConstructor | BooleanConstructor | null)[];
67
67
  required: false;
68
68
  };
69
69
  disabled: {
@@ -112,9 +112,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
112
112
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
113
113
  }>, {
114
114
  size: string;
115
- disabled: boolean;
116
115
  variant: string;
117
116
  required: boolean;
117
+ disabled: boolean;
118
118
  asChild: boolean;
119
119
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
120
120
  type __VLS_Slots = {
@@ -6,11 +6,11 @@ type __VLS_WithSlots<T, S> = T & (new () => {
6
6
  });
7
7
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
8
  defaultValue: {
9
- type: (BooleanConstructor | StringConstructor)[];
9
+ type: (StringConstructor | BooleanConstructor)[];
10
10
  required: false;
11
11
  };
12
12
  modelValue: {
13
- type: (BooleanConstructor | StringConstructor | null)[];
13
+ type: (StringConstructor | BooleanConstructor | null)[];
14
14
  required: false;
15
15
  };
16
16
  disabled: {
@@ -59,11 +59,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
59
59
  "update:modelValue": (...args: any[]) => void;
60
60
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
61
61
  defaultValue: {
62
- type: (BooleanConstructor | StringConstructor)[];
62
+ type: (StringConstructor | BooleanConstructor)[];
63
63
  required: false;
64
64
  };
65
65
  modelValue: {
66
- type: (BooleanConstructor | StringConstructor | null)[];
66
+ type: (StringConstructor | BooleanConstructor | null)[];
67
67
  required: false;
68
68
  };
69
69
  disabled: {
@@ -112,9 +112,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
112
112
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
113
113
  }>, {
114
114
  size: string;
115
- disabled: boolean;
116
115
  variant: string;
117
116
  required: boolean;
117
+ disabled: boolean;
118
118
  asChild: boolean;
119
119
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
120
120
  type __VLS_Slots = {
@@ -1,5 +1,5 @@
1
1
  export { default as Checkbox } from "./Checkbox.vue.js";
2
2
  export const checkboxVariants: (props?: ({
3
- variant?: "default" | "success" | "info" | "primary" | "warning" | "danger" | null | undefined;
3
+ variant?: "success" | "default" | "info" | "primary" | "warning" | "danger" | null | undefined;
4
4
  size?: "default" | "xs" | "sm" | "lg" | "xl" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -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
  modelValue: {
9
- type: (BooleanConstructor | StringConstructor)[];
9
+ type: (StringConstructor | BooleanConstructor)[];
10
10
  required: false;
11
11
  };
12
12
  disabled: {
@@ -34,7 +34,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
34
34
  "update:modelValue": (...args: any[]) => void;
35
35
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  modelValue: {
37
- type: (BooleanConstructor | StringConstructor)[];
37
+ type: (StringConstructor | BooleanConstructor)[];
38
38
  required: false;
39
39
  };
40
40
  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
  modelValue: {
9
- type: (BooleanConstructor | StringConstructor)[];
9
+ type: (StringConstructor | BooleanConstructor)[];
10
10
  required: false;
11
11
  };
12
12
  disabled: {
@@ -34,7 +34,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
34
34
  "update:modelValue": (...args: any[]) => void;
35
35
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  modelValue: {
37
- type: (BooleanConstructor | StringConstructor)[];
37
+ type: (StringConstructor | BooleanConstructor)[];
38
38
  required: false;
39
39
  };
40
40
  disabled: {
@@ -65,10 +65,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
65
65
  default: string;
66
66
  };
67
67
  }>> & Readonly<{}>, {
68
- disabled: boolean;
69
68
  variant: string;
70
- asChild: boolean;
69
+ disabled: boolean;
71
70
  inset: boolean;
71
+ asChild: boolean;
72
72
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
73
73
  type __VLS_Slots = {
74
74
  default?: ((props: {}) => any) | undefined;
@@ -65,10 +65,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
65
65
  default: string;
66
66
  };
67
67
  }>> & Readonly<{}>, {
68
- disabled: boolean;
69
68
  variant: string;
70
- asChild: boolean;
69
+ disabled: boolean;
71
70
  inset: boolean;
71
+ asChild: boolean;
72
72
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
73
73
  type __VLS_Slots = {
74
74
  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
  inset: 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
  inset: boolean;
43
+ asChild: boolean;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
45
  type __VLS_Slots = {
46
46
  default?: ((props: {}) => any) | undefined;
@@ -56,8 +56,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
56
56
  };
57
57
  }>> & Readonly<{}>, {
58
58
  disabled: boolean;
59
- asChild: boolean;
60
59
  inset: boolean;
60
+ asChild: boolean;
61
61
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
62
62
  type __VLS_Slots = {
63
63
  default?: ((props: {}) => any) | undefined;
@@ -56,8 +56,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
56
56
  };
57
57
  }>> & Readonly<{}>, {
58
58
  disabled: boolean;
59
- asChild: boolean;
60
59
  inset: boolean;
60
+ asChild: boolean;
61
61
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
62
62
  type __VLS_Slots = {
63
63
  default?: ((props: {}) => any) | undefined;
@@ -74,7 +74,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
74
74
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
75
75
  }>, {
76
76
  size: string;
77
- disabled: boolean;
78
77
  variant: string;
78
+ disabled: boolean;
79
79
  modelValue: unknown[];
80
80
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -74,7 +74,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
74
74
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
75
75
  }>, {
76
76
  size: string;
77
- disabled: boolean;
78
77
  variant: string;
78
+ disabled: boolean;
79
79
  modelValue: unknown[];
80
80
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -101,8 +101,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
101
101
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
102
102
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
103
103
  }>, {
104
- disabled: boolean;
105
104
  required: boolean;
105
+ disabled: boolean;
106
106
  multiple: boolean;
107
107
  defaultOpen: boolean;
108
108
  open: boolean;
@@ -101,8 +101,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
101
101
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
102
102
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
103
103
  }>, {
104
- disabled: boolean;
105
104
  required: boolean;
105
+ disabled: boolean;
106
106
  multiple: boolean;
107
107
  defaultOpen: boolean;
108
108
  open: boolean;
@@ -47,7 +47,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
47
47
  required: false;
48
48
  };
49
49
  }>> & Readonly<{}>, {
50
- asChild: boolean;
51
50
  orientation: string;
51
+ asChild: boolean;
52
52
  decorative: boolean;
53
53
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -47,7 +47,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
47
47
  required: false;
48
48
  };
49
49
  }>> & Readonly<{}>, {
50
- asChild: boolean;
51
50
  orientation: string;
51
+ asChild: boolean;
52
52
  decorative: boolean;
53
53
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -112,9 +112,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
112
112
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
113
113
  }>, {
114
114
  size: string;
115
- disabled: boolean;
116
115
  variant: string;
117
116
  required: boolean;
117
+ disabled: boolean;
118
118
  defaultValue: boolean;
119
119
  asChild: boolean;
120
120
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -112,9 +112,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
112
112
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
113
113
  }>, {
114
114
  size: string;
115
- disabled: boolean;
116
115
  variant: string;
117
116
  required: boolean;
117
+ disabled: boolean;
118
118
  defaultValue: boolean;
119
119
  asChild: boolean;
120
120
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
1
  export { default as Switch } from "./Switch.vue.js";
2
2
  export const switchVariants: (props?: ({
3
- variant?: "default" | "success" | "info" | "primary" | "warning" | "danger" | null | undefined;
3
+ variant?: "success" | "default" | "info" | "primary" | "warning" | "danger" | null | undefined;
4
4
  size?: "default" | "sm" | "lg" | "xl" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -161,8 +161,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
161
161
  onAddTag?: ((...args: any[]) => any) | undefined;
162
162
  onRemoveTag?: ((...args: any[]) => any) | undefined;
163
163
  }>, {
164
- disabled: boolean;
165
164
  required: boolean;
165
+ disabled: boolean;
166
166
  asChild: boolean;
167
167
  addOnPaste: boolean;
168
168
  addOnTab: boolean;
@@ -161,8 +161,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
161
161
  onAddTag?: ((...args: any[]) => any) | undefined;
162
162
  onRemoveTag?: ((...args: any[]) => any) | undefined;
163
163
  }>, {
164
- disabled: boolean;
165
164
  required: boolean;
165
+ disabled: boolean;
166
166
  asChild: boolean;
167
167
  addOnPaste: boolean;
168
168
  addOnTab: boolean;
@@ -98,9 +98,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
98
98
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
99
99
  }>, {
100
100
  size: any;
101
- disabled: boolean;
102
101
  variant: any;
103
102
  required: boolean;
103
+ disabled: boolean;
104
104
  defaultValue: boolean;
105
105
  asChild: boolean;
106
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -98,9 +98,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
98
98
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
99
99
  }>, {
100
100
  size: any;
101
- disabled: boolean;
102
101
  variant: any;
103
102
  required: boolean;
103
+ disabled: boolean;
104
104
  defaultValue: boolean;
105
105
  asChild: boolean;
106
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -132,8 +132,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
132
132
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
133
133
  }>, {
134
134
  loop: boolean;
135
- disabled: boolean;
136
135
  required: boolean;
136
+ disabled: boolean;
137
137
  asChild: boolean;
138
138
  rovingFocus: boolean;
139
139
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -132,8 +132,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
132
132
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
133
133
  }>, {
134
134
  loop: boolean;
135
- disabled: boolean;
136
135
  required: boolean;
136
+ disabled: boolean;
137
137
  asChild: boolean;
138
138
  rovingFocus: boolean;
139
139
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { ref, computed, onMounted } from "vue";
3
+ import useAPI from "../composables/useAPI";
3
4
  import { Toaster } from "vue-sonner";
4
5
  import "vue-sonner/style.css";
5
6
  import SmileDevAppMenu from "#smile-dev/menu/SmileDevAppMenu.vue";
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
+ import useAPI from "../composables/useAPI";
3
4
  import PresentationNavBar from "#smile-dev/presentation/PresentationNavBar.vue";
4
5
  const api = useAPI();
5
6
  const isLoading = computed(() => {
@@ -13,6 +13,8 @@
13
13
  </template>
14
14
 
15
15
  <script setup>
16
+ import { ref, computed, onMounted, watch } from "vue";
17
+ import { useRoute, useNuxtApp, navigateTo } from "#imports";
16
18
  const route = useRoute();
17
19
  const nuxtApp = useNuxtApp();
18
20
  const timelineReady = ref(false);
@@ -17,6 +17,8 @@
17
17
  </template>
18
18
 
19
19
  <script setup>
20
+ import { ref, computed, onMounted, watch } from "vue";
21
+ import { useRoute, useNuxtApp, navigateTo } from "#imports";
20
22
  import RecruitmentChooserView from "#smile-dev/RecruitmentChooserView.vue";
21
23
  const route = useRoute();
22
24
  const nuxtApp = useNuxtApp();
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
2
  import { ref, computed } from "vue";
3
+ import useSmileStore from "../stores/smilestore";
3
4
  const store = useSmileStore();
4
5
  const config = store.config;
5
6
  const baseUrl = computed(() => {
@@ -20,6 +20,8 @@
20
20
  </template>
21
21
 
22
22
  <script setup>
23
+ import { ref, computed, onMounted, watch } from "vue";
24
+ import { useRoute, useNuxtApp, navigateTo } from "#imports";
23
25
  import PresentationModeView from "../../components/builtins/PresentationModeView.vue";
24
26
  import useSmileStore from "../../stores/smilestore";
25
27
  const route = useRoute();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyuccl/smile",
3
- "version": "0.2.0-beta.6",
3
+ "version": "0.2.0-beta.7",
4
4
  "description": "SMILE experiment framework as a Nuxt module",
5
5
  "author": "Todd Gureckis <gureckis@gmail.com>",
6
6
  "license": "MIT",