@morscherlab/mint-sdk 1.4.2 → 1.4.3

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.
@@ -90,7 +90,7 @@ var _hoisted_15$3 = [
90
90
  "aria-label",
91
91
  "aria-expanded"
92
92
  ];
93
- var _hoisted_16$2 = { class: "mint-collapsible-card__body" };
93
+ var _hoisted_16$3 = { class: "mint-collapsible-card__body" };
94
94
  var _hoisted_17$2 = { class: "mint-collapsible-card__content" };
95
95
  //#endregion
96
96
  //#region src/components/CollapsibleCard.vue
@@ -247,7 +247,7 @@ var CollapsibleCard_default = /* @__PURE__ */ defineComponent({
247
247
  "aria-hidden": "true"
248
248
  }, [..._cache[2] || (_cache[2] = [createElementVNode("path", { d: "m6 9 6 6 6-6" }, null, -1)])], 2))], 8, _hoisted_15$3)
249
249
  ])]), createVNode(Transition, { name: "collapse" }, {
250
- default: withCtx(() => [withDirectives(createElementVNode("div", _hoisted_16$2, [createElementVNode("div", _hoisted_17$2, [renderSlot(_ctx.$slots, "default")])], 512), [[vShow, isOpen.value]])]),
250
+ default: withCtx(() => [withDirectives(createElementVNode("div", _hoisted_16$3, [createElementVNode("div", _hoisted_17$2, [renderSlot(_ctx.$slots, "default")])], 512), [[vShow, isOpen.value]])]),
251
251
  _: 3
252
252
  })], 2);
253
253
  };
@@ -2052,31 +2052,35 @@ var OnboardingLayerInternal_default = /* @__PURE__ */ defineComponent({
2052
2052
  });
2053
2053
  //#endregion
2054
2054
  //#region src/components/internal/AppTopBarOnboardingInternal.vue?vue&type=script&setup=true&lang.ts
2055
- var _hoisted_1$5 = ["aria-expanded"];
2056
- var _hoisted_2$3 = { class: "mint-onboarding-help__count" };
2057
- var _hoisted_3$3 = {
2055
+ var _hoisted_1$5 = {
2056
+ key: 0,
2057
+ class: "mint-onboarding-help__chip-group"
2058
+ };
2059
+ var _hoisted_2$3 = ["aria-expanded"];
2060
+ var _hoisted_3$3 = { class: "mint-onboarding-help__count" };
2061
+ var _hoisted_4$3 = {
2058
2062
  class: "mint-onboarding-help__bar",
2059
2063
  "aria-hidden": "true"
2060
2064
  };
2061
- var _hoisted_4$3 = ["aria-label", "aria-expanded"];
2062
- var _hoisted_5$3 = {
2065
+ var _hoisted_5$3 = ["aria-label", "aria-expanded"];
2066
+ var _hoisted_6$2 = {
2063
2067
  key: 0,
2064
2068
  class: "mint-onboarding-help__badge",
2065
2069
  "aria-hidden": "true"
2066
2070
  };
2067
- var _hoisted_6$2 = { class: "mint-onboarding-help__header" };
2068
- var _hoisted_7$2 = { class: "mint-onboarding-help__count" };
2069
- var _hoisted_8$2 = {
2071
+ var _hoisted_7$2 = { class: "mint-onboarding-help__header" };
2072
+ var _hoisted_8$2 = { class: "mint-onboarding-help__count" };
2073
+ var _hoisted_9$2 = {
2070
2074
  class: "mint-onboarding-help__progress",
2071
2075
  "aria-hidden": "true"
2072
2076
  };
2073
- var _hoisted_9$2 = { class: "mint-onboarding-help__todos" };
2074
- var _hoisted_10$2 = ["aria-label"];
2075
- var _hoisted_11$2 = { class: "mint-onboarding-help__todo-title" };
2076
- var _hoisted_12$2 = ["onClick"];
2077
+ var _hoisted_10$2 = { class: "mint-onboarding-help__todos" };
2078
+ var _hoisted_11$2 = ["aria-label"];
2079
+ var _hoisted_12$2 = { class: "mint-onboarding-help__todo-title" };
2077
2080
  var _hoisted_13$2 = ["onClick"];
2078
2081
  var _hoisted_14$2 = ["onClick"];
2079
- var _hoisted_15$2 = {
2082
+ var _hoisted_15$2 = ["onClick"];
2083
+ var _hoisted_16$2 = {
2080
2084
  key: 0,
2081
2085
  class: "mint-onboarding-help__new"
2082
2086
  };
@@ -2130,6 +2134,10 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2130
2134
  });
2131
2135
  });
2132
2136
  onBeforeUnmount(() => stopAutoUpdate?.());
2137
+ function hideChecklist() {
2138
+ props.state.setChecklistHidden(true);
2139
+ nextTick(() => helpButton.value?.focus());
2140
+ }
2133
2141
  function run(action) {
2134
2142
  open.value = false;
2135
2143
  action();
@@ -2148,8 +2156,7 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2148
2156
  ref: root,
2149
2157
  class: "mint-onboarding-help"
2150
2158
  }, [
2151
- __props.state.checklistVisible.value ? (openBlock(), createElementBlock("button", {
2152
- key: 0,
2159
+ __props.state.checklistVisible.value ? (openBlock(), createElementBlock("span", _hoisted_1$5, [createElementVNode("button", {
2153
2160
  type: "button",
2154
2161
  class: normalizeClass(["mint-onboarding-help__chip", { "mint-onboarding-help__chip--open": open.value }]),
2155
2162
  "data-onboarding": "topbar-checklist",
@@ -2157,9 +2164,18 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2157
2164
  onClick: toggle
2158
2165
  }, [
2159
2166
  _cache[1] || (_cache[1] = createTextVNode(" Getting started ", -1)),
2160
- createElementVNode("span", _hoisted_2$3, toDisplayString(__props.state.tasksDone.value) + "/" + toDisplayString(__props.state.tasks.value.length), 1),
2161
- createElementVNode("span", _hoisted_3$3, [createElementVNode("span", { style: normalizeStyle({ width: `${progress.value}%` }) }, null, 4)])
2162
- ], 10, _hoisted_1$5)) : createCommentVNode("", true),
2167
+ createElementVNode("span", _hoisted_3$3, toDisplayString(__props.state.tasksDone.value) + "/" + toDisplayString(__props.state.tasks.value.length), 1),
2168
+ createElementVNode("span", _hoisted_4$3, [createElementVNode("span", { style: normalizeStyle({ width: `${progress.value}%` }) }, null, 4)])
2169
+ ], 10, _hoisted_2$3), createElementVNode("button", {
2170
+ type: "button",
2171
+ class: "mint-onboarding-help__chip-close",
2172
+ "aria-label": "Hide checklist",
2173
+ title: "Hide checklist (Help can show it again)",
2174
+ onClick: hideChecklist
2175
+ }, [createVNode(unref(X), {
2176
+ size: 12,
2177
+ "aria-hidden": "true"
2178
+ })])])) : createCommentVNode("", true),
2163
2179
  createElementVNode("button", {
2164
2180
  ref_key: "helpButton",
2165
2181
  ref: helpButton,
@@ -2172,7 +2188,7 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2172
2188
  }, [createVNode(unref(CircleHelp), {
2173
2189
  class: "mint-topbar__settings-icon",
2174
2190
  "aria-hidden": "true"
2175
- }), __props.state.unseenNews.value ? (openBlock(), createElementBlock("span", _hoisted_5$3, toDisplayString(__props.state.unseenNews.value), 1)) : createCommentVNode("", true)], 10, _hoisted_4$3),
2191
+ }), __props.state.unseenNews.value ? (openBlock(), createElementBlock("span", _hoisted_6$2, toDisplayString(__props.state.unseenNews.value), 1)) : createCommentVNode("", true)], 10, _hoisted_5$3),
2176
2192
  (openBlock(), createBlock(Teleport, { to: "body" }, [open.value ? (openBlock(), createElementBlock("div", {
2177
2193
  key: 0,
2178
2194
  ref_key: "panel",
@@ -2186,9 +2202,9 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2186
2202
  })
2187
2203
  }, [
2188
2204
  __props.state.tasks.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2189
- createElementVNode("div", _hoisted_6$2, [_cache[2] || (_cache[2] = createElementVNode("span", { class: "mint-onboarding-help__heading" }, "Getting started", -1)), createElementVNode("span", _hoisted_7$2, toDisplayString(__props.state.tasksDone.value) + "/" + toDisplayString(__props.state.tasks.value.length), 1)]),
2190
- createElementVNode("div", _hoisted_8$2, [createElementVNode("span", { style: normalizeStyle({ width: `${progress.value}%` }) }, null, 4)]),
2191
- createElementVNode("ul", _hoisted_9$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.state.tasks.value, (task) => {
2205
+ createElementVNode("div", _hoisted_7$2, [_cache[2] || (_cache[2] = createElementVNode("span", { class: "mint-onboarding-help__heading" }, "Getting started", -1)), createElementVNode("span", _hoisted_8$2, toDisplayString(__props.state.tasksDone.value) + "/" + toDisplayString(__props.state.tasks.value.length), 1)]),
2206
+ createElementVNode("div", _hoisted_9$2, [createElementVNode("span", { style: normalizeStyle({ width: `${progress.value}%` }) }, null, 4)]),
2207
+ createElementVNode("ul", _hoisted_10$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.state.tasks.value, (task) => {
2192
2208
  return openBlock(), createElementBlock("li", {
2193
2209
  key: task.id,
2194
2210
  class: normalizeClass(["mint-onboarding-help__todo", { "mint-onboarding-help__todo--done": task.done }])
@@ -2202,14 +2218,14 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2202
2218
  size: 10,
2203
2219
  "stroke-width": 3,
2204
2220
  "aria-hidden": "true"
2205
- })) : createCommentVNode("", true)], 8, _hoisted_10$2),
2206
- createElementVNode("span", _hoisted_11$2, toDisplayString(task.title), 1),
2221
+ })) : createCommentVNode("", true)], 8, _hoisted_11$2),
2222
+ createElementVNode("span", _hoisted_12$2, toDisplayString(task.title), 1),
2207
2223
  task.action && !task.done ? (openBlock(), createElementBlock("button", {
2208
2224
  key: 0,
2209
2225
  type: "button",
2210
2226
  class: "mint-onboarding-help__link",
2211
2227
  onClick: ($event) => run(task.action.run)
2212
- }, toDisplayString(task.action.label), 9, _hoisted_12$2)) : createCommentVNode("", true)
2228
+ }, toDisplayString(task.action.label), 9, _hoisted_13$2)) : createCommentVNode("", true)
2213
2229
  ], 2);
2214
2230
  }), 128))]),
2215
2231
  __props.state.tasksDone.value < __props.state.tasks.value.length ? (openBlock(), createElementBlock("button", {
@@ -2228,7 +2244,7 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2228
2244
  }, [createVNode(unref(Play), {
2229
2245
  class: "mint-onboarding-help__icon",
2230
2246
  "aria-hidden": "true"
2231
- }), createTextVNode(" " + toDisplayString(tour.title), 1)], 8, _hoisted_13$2);
2247
+ }), createTextVNode(" " + toDisplayString(tour.title), 1)], 8, _hoisted_14$2);
2232
2248
  }), 128))], 64)) : createCommentVNode("", true),
2233
2249
  __props.state.news.value.length ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [_cache[4] || (_cache[4] = createElementVNode("div", { class: "mint-onboarding-help__section" }, "What's new", -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.state.news.value, (item) => {
2234
2250
  return openBlock(), createElementBlock("button", {
@@ -2236,7 +2252,7 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2236
2252
  type: "button",
2237
2253
  class: "mint-menu-item",
2238
2254
  onClick: ($event) => run(() => __props.state.showNews(item.id))
2239
- }, [createTextVNode(toDisplayString(item.title) + " ", 1), item.unseen ? (openBlock(), createElementBlock("span", _hoisted_15$2, "New")) : createCommentVNode("", true)], 8, _hoisted_14$2);
2255
+ }, [createTextVNode(toDisplayString(item.title) + " ", 1), item.unseen ? (openBlock(), createElementBlock("span", _hoisted_16$2, "New")) : createCommentVNode("", true)], 8, _hoisted_15$2);
2240
2256
  }), 128))], 64)) : createCommentVNode("", true)
2241
2257
  ], 4)) : createCommentVNode("", true)]))
2242
2258
  ], 512)) : createCommentVNode("", true), createVNode(OnboardingLayerInternal_default, { state: __props.state }, null, 8, ["state"])], 64);
@@ -2759,7 +2775,7 @@ var AppTopBar_default = /* @__PURE__ */ defineComponent({
2759
2775
  }, props.spec));
2760
2776
  const settingsConfig = computed(() => toValue(config.value.settings) || void 0);
2761
2777
  const showSettings = computed(() => settingsConfig.value !== void 0);
2762
- const SettingsModal = defineAsyncComponent(() => import("./SettingsModal-C-MSR-bk.js").then((n) => n.n));
2778
+ const SettingsModal = defineAsyncComponent(() => import("./SettingsModal-dC0TCvPr.js").then((n) => n.n));
2763
2779
  const ExperimentPopover = defineAsyncComponent(() => import("./ExperimentPopover-BM92LlrQ.js").then((n) => n.n));
2764
2780
  const ExperimentSelectorModal = defineAsyncComponent(() => import("./ExperimentSelectorModal-LsB1ABmh.js").then((n) => n.n));
2765
2781
  const emit = __emit;
@@ -4521,4 +4537,4 @@ var AppSidebar_default = /* @__PURE__ */ defineComponent({
4521
4537
  //#endregion
4522
4538
  export { controlValuesToComponentBindingsById as A, usePluginWorkspace as C, useControlSchema as D, getControlDefaults as E, getDefaultControlView as F, CollapsibleCard_default as I, ThemeToggle_default as L, controlsTo as M, controlsToFormSchema as N, controlBindings as O, controlsToSettingsSchema as P, useTheme as R, AppLayout_default as S, defineControls as T, provideOnboarding as _, pickExistingRecordKeys as a, normalizeItemInput as b, valuesEqual as c, useForm as d, AppTopBar_default as f, defineOnboarding as g, ONBOARDING_KEY as h, formSchemaFieldNames as i, controlValuesToComponentProps as j, controlValuesToComponentBindings as k, useFormBuilder as l, ANCHOR_WAIT_MS as m, FormSchemaInternal_default as n, pickRecordKeys as o, providePluginIdentity as p, FormFieldRendererInternal_default as r, recordValuesEqualForKeys as s, AppSidebar_default as t, evaluateCondition as u, useOnboarding as v, defineControlComponentBindings as w, normalizeLabelItemInput as x, PluginIcon_default as y };
4523
4539
 
4524
- //# sourceMappingURL=AppSidebar-BDrd7Kwn.js.map
4540
+ //# sourceMappingURL=AppSidebar-BI5r4vg1.js.map