@nyuccl/smile 0.2.0-beta.5 → 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 (121) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +7 -7
  3. package/dist/runtime/components/builtins/AdvertisementView.vue +1 -0
  4. package/dist/runtime/components/builtins/DemographicSurveyView.vue +1 -0
  5. package/dist/runtime/components/builtins/DeviceSurveyView.vue +1 -0
  6. package/dist/runtime/components/builtins/ExpView.vue +1 -0
  7. package/dist/runtime/components/builtins/ExperimentStatusBar.vue +3 -0
  8. package/dist/runtime/components/builtins/FavoriteColor.vue +1 -0
  9. package/dist/runtime/components/builtins/FavoriteNumber.vue +1 -0
  10. package/dist/runtime/components/builtins/InformedConsentModal.vue +1 -0
  11. package/dist/runtime/components/builtins/InformedConsentView.vue +1 -0
  12. package/dist/runtime/components/builtins/InstructionsQuiz.vue +1 -0
  13. package/dist/runtime/components/builtins/InstructionsView.vue +1 -0
  14. package/dist/runtime/components/builtins/MTurkRecruitView.vue +1 -0
  15. package/dist/runtime/components/builtins/PresentationModeView.d.vue.ts +1 -1
  16. package/dist/runtime/components/builtins/PresentationModeView.vue +1 -0
  17. package/dist/runtime/components/builtins/PresentationModeView.vue.d.ts +1 -1
  18. package/dist/runtime/components/builtins/StatusBar.vue +2 -0
  19. package/dist/runtime/components/builtins/StudyPreviewText.vue +1 -0
  20. package/dist/runtime/components/builtins/TaskFeedbackSurveyView.vue +1 -0
  21. package/dist/runtime/components/builtins/ThanksView.vue +1 -0
  22. package/dist/runtime/components/builtins/WindowSizerView.vue +1 -0
  23. package/dist/runtime/components/builtins/WithdrawModal.vue +1 -0
  24. package/dist/runtime/components/builtins/WithdrawView.vue +1 -0
  25. package/dist/runtime/components/dev/RecruitmentChooserView.vue +1 -0
  26. package/dist/runtime/components/dev/ResponsiveDeviceContainer.vue +1 -0
  27. package/dist/runtime/components/dev/console/ConfigList.vue +1 -0
  28. package/dist/runtime/components/dev/console/ConsoleConfigPanel.vue +1 -0
  29. package/dist/runtime/components/dev/console/ConsoleDatabaseBrowsePanel.vue +1 -0
  30. package/dist/runtime/components/dev/console/ConsoleLogPanel.vue +2 -0
  31. package/dist/runtime/components/dev/console/DatabaseList.vue +1 -0
  32. package/dist/runtime/components/dev/console/SmileDevConsole.vue +1 -0
  33. package/dist/runtime/components/dev/menu/DevConfigPanel.vue +1 -0
  34. package/dist/runtime/components/dev/menu/ResponsiveDeviceSelect.vue +1 -0
  35. package/dist/runtime/components/dev/menu/SmileDevAppMenu.vue +1 -0
  36. package/dist/runtime/components/dev/navbar/DatabaseButtonGroup.vue +1 -0
  37. package/dist/runtime/components/dev/navbar/FullScreenButton.vue +1 -0
  38. package/dist/runtime/components/dev/navbar/ReloadButton.vue +1 -0
  39. package/dist/runtime/components/dev/navbar/ResetButton.vue +1 -0
  40. package/dist/runtime/components/dev/navbar/RouteJumper.vue +2 -0
  41. package/dist/runtime/components/dev/navbar/SmileDevNavBar.vue +1 -0
  42. package/dist/runtime/components/dev/navbar/StepInfoButtonGroup.vue +1 -0
  43. package/dist/runtime/components/dev/navbar/ViewButton.vue +1 -0
  44. package/dist/runtime/components/dev/navbar/ViewInfoButtonGroup.vue +1 -0
  45. package/dist/runtime/components/dev/presentation/QRCodeButton.vue +1 -0
  46. package/dist/runtime/components/dev/sidebar/DatabaseStatusInfoPanel.vue +1 -0
  47. package/dist/runtime/components/dev/sidebar/RandomizationSidebarPanel.vue +1 -0
  48. package/dist/runtime/components/dev/sidebar/SmileDevSideBar.vue +1 -0
  49. package/dist/runtime/components/dev/sidebar/StepDataViewer.d.vue.ts +2 -2
  50. package/dist/runtime/components/dev/sidebar/StepDataViewer.vue.d.ts +2 -2
  51. package/dist/runtime/components/dev/sidebar/StepExplorerPanel.vue +1 -0
  52. package/dist/runtime/components/layouts/ConstrainedPage.d.vue.ts +1 -1
  53. package/dist/runtime/components/layouts/ConstrainedPage.vue.d.ts +1 -1
  54. package/dist/runtime/components/layouts/ConstrainedTaskWindow.d.vue.ts +2 -2
  55. package/dist/runtime/components/layouts/ConstrainedTaskWindow.vue.d.ts +2 -2
  56. package/dist/runtime/components/layouts/TitleTwoCol.d.vue.ts +1 -1
  57. package/dist/runtime/components/layouts/TitleTwoCol.vue.d.ts +1 -1
  58. package/dist/runtime/components/layouts/TwoCol.d.vue.ts +1 -1
  59. package/dist/runtime/components/layouts/TwoCol.vue.d.ts +1 -1
  60. package/dist/runtime/components/ui/button/index.d.ts +1 -1
  61. package/dist/runtime/components/ui/button-group/ButtonGroup.d.vue.ts +1 -1
  62. package/dist/runtime/components/ui/button-group/ButtonGroup.vue.d.ts +1 -1
  63. package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +5 -5
  64. package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +5 -5
  65. package/dist/runtime/components/ui/checkbox/index.d.ts +1 -1
  66. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.d.vue.ts +4 -4
  67. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +4 -4
  68. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +2 -2
  69. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +2 -2
  70. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +1 -1
  71. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
  72. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.d.vue.ts +1 -1
  73. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +1 -1
  74. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +2 -2
  75. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
  76. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.d.vue.ts +1 -1
  77. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
  78. package/dist/runtime/components/ui/input/Input.d.vue.ts +4 -4
  79. package/dist/runtime/components/ui/input/Input.vue.d.ts +4 -4
  80. package/dist/runtime/components/ui/multiselect/MultiSelect.d.vue.ts +1 -1
  81. package/dist/runtime/components/ui/multiselect/MultiSelect.vue.d.ts +1 -1
  82. package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +2 -2
  83. package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +2 -2
  84. package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +2 -2
  85. package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +2 -2
  86. package/dist/runtime/components/ui/separator/Separator.d.vue.ts +1 -1
  87. package/dist/runtime/components/ui/separator/Separator.vue.d.ts +1 -1
  88. package/dist/runtime/components/ui/sidebar/SidebarMenuButton.d.vue.ts +1 -1
  89. package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +1 -1
  90. package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.d.vue.ts +1 -1
  91. package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
  92. package/dist/runtime/components/ui/sonner/Sonner.d.vue.ts +4 -4
  93. package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +4 -4
  94. package/dist/runtime/components/ui/stepper/StepperItem.d.vue.ts +1 -1
  95. package/dist/runtime/components/ui/stepper/StepperItem.vue.d.ts +1 -1
  96. package/dist/runtime/components/ui/switch/Switch.d.vue.ts +1 -1
  97. package/dist/runtime/components/ui/switch/Switch.vue.d.ts +1 -1
  98. package/dist/runtime/components/ui/switch/index.d.ts +1 -1
  99. package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +2 -2
  100. package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +2 -2
  101. package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +2 -2
  102. package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +2 -2
  103. package/dist/runtime/components/ui/tags-input/TagsInput.d.vue.ts +2 -2
  104. package/dist/runtime/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
  105. package/dist/runtime/components/ui/tags-input/TagsInputItem.d.vue.ts +2 -2
  106. package/dist/runtime/components/ui/tags-input/TagsInputItem.vue.d.ts +2 -2
  107. package/dist/runtime/components/ui/textarea/Textarea.d.vue.ts +4 -4
  108. package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +4 -4
  109. package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +1 -1
  110. package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +1 -1
  111. package/dist/runtime/components/ui/toggle-group/ToggleGroup.d.vue.ts +1 -1
  112. package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +1 -1
  113. package/dist/runtime/components/ui/tooltip/TooltipContent.d.vue.ts +2 -2
  114. package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +2 -2
  115. package/dist/runtime/layouts/development.vue +1 -0
  116. package/dist/runtime/layouts/presentation.vue +1 -0
  117. package/dist/runtime/pages/[...slug].vue +2 -0
  118. package/dist/runtime/pages/dev/[...slug].vue +2 -0
  119. package/dist/runtime/pages/info.vue +1 -0
  120. package/dist/runtime/pages/presentation/[...slug].vue +2 -0
  121. 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.5",
4
+ "version": "0.2.0-beta.7",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -42,13 +42,13 @@ const module$1 = defineNuxtModule({
42
42
  _nuxt.options.vite.optimizeDeps = _nuxt.options.vite.optimizeDeps || {};
43
43
  _nuxt.options.vite.optimizeDeps.include = _nuxt.options.vite.optimizeDeps.include || [];
44
44
  _nuxt.options.vite.optimizeDeps.include.push(
45
- "seedrandom",
46
- "lodash",
47
- "clipboard",
48
- "crypto-js/sha256",
49
- "crypto-js/enc-base64",
50
- "json-stable-stringify",
51
- "qrcode-svg"
45
+ "@nyuccl/smile > seedrandom",
46
+ "@nyuccl/smile > lodash",
47
+ "@nyuccl/smile > clipboard",
48
+ "@nyuccl/smile > crypto-js/sha256",
49
+ "@nyuccl/smile > crypto-js/enc-base64",
50
+ "@nyuccl/smile > json-stable-stringify",
51
+ "@nyuccl/smile > qrcode-svg"
52
52
  );
53
53
  _nuxt.options.css.push(resolver.resolve("./runtime/css/main.css"));
54
54
  addPlugin(resolver.resolve("./runtime/plugins/store-sync.client"));
@@ -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 | ObjectConstructor | StringConstructor | NumberConstructor | 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 | ObjectConstructor | StringConstructor | NumberConstructor | 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 | ObjectConstructor | StringConstructor | NumberConstructor | 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 | ObjectConstructor | StringConstructor | NumberConstructor | 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) => {
@@ -45,10 +45,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
45
45
  description: string;
46
46
  };
47
47
  }>> & Readonly<{}>, {
48
- class: string;
49
48
  width: number;
50
49
  height: number;
51
50
  responsiveUI: boolean;
51
+ class: string;
52
52
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
53
53
  type __VLS_Slots = {
54
54
  default?: ((props: {}) => any) | undefined;
@@ -45,10 +45,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
45
45
  description: string;
46
46
  };
47
47
  }>> & Readonly<{}>, {
48
- class: string;
49
48
  width: number;
50
49
  height: number;
51
50
  responsiveUI: boolean;
51
+ class: string;
52
52
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
53
53
  type __VLS_Slots = {
54
54
  default?: ((props: {}) => any) | undefined;
@@ -55,11 +55,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
55
55
  description: string;
56
56
  };
57
57
  }>> & Readonly<{}>, {
58
- class: string;
59
58
  width: number;
60
- variant: string;
61
59
  height: number;
62
60
  responsiveUI: boolean;
61
+ class: string;
62
+ variant: string;
63
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
64
64
  type __VLS_Slots = {
65
65
  default?: ((props: {}) => any) | undefined;
@@ -55,11 +55,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
55
55
  description: string;
56
56
  };
57
57
  }>> & Readonly<{}>, {
58
- class: string;
59
58
  width: number;
60
- variant: string;
61
59
  height: number;
62
60
  responsiveUI: boolean;
61
+ class: string;
62
+ variant: string;
63
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
64
64
  type __VLS_Slots = {
65
65
  default?: ((props: {}) => any) | undefined;
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
47
47
  description: string;
48
48
  };
49
49
  }>> & Readonly<{}>, {
50
- class: string;
51
50
  responsiveUI: boolean;
51
+ class: string;
52
52
  leftFirst: boolean;
53
53
  leftWidth: string;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
47
47
  description: string;
48
48
  };
49
49
  }>> & Readonly<{}>, {
50
- class: string;
51
50
  responsiveUI: boolean;
51
+ class: string;
52
52
  leftFirst: boolean;
53
53
  leftWidth: string;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
47
47
  description: string;
48
48
  };
49
49
  }>> & Readonly<{}>, {
50
- class: string;
51
50
  responsiveUI: boolean;
51
+ class: string;
52
52
  leftFirst: boolean;
53
53
  leftWidth: string;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
47
47
  description: string;
48
48
  };
49
49
  }>> & Readonly<{}>, {
50
- class: string;
51
50
  responsiveUI: boolean;
51
+ class: string;
52
52
  leftFirst: boolean;
53
53
  leftWidth: string;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
1
  export { default as Button } from "./Button.vue.js";
2
2
  export const buttonVariants: (props?: ({
3
- variant?: "default" | "link" | "outline" | "success" | "ghost" | "secondary" | "warning-light" | "info" | "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;