@morscherlab/mint-sdk 1.4.4 → 1.5.0-beta.2

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$3 = { class: "mint-collapsible-card__body" };
93
+ var _hoisted_16$2 = { 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$3, [createElementVNode("div", _hoisted_17$2, [renderSlot(_ctx.$slots, "default")])], 512), [[vShow, isOpen.value]])]),
250
+ default: withCtx(() => [withDirectives(createElementVNode("div", _hoisted_16$2, [createElementVNode("div", _hoisted_17$2, [renderSlot(_ctx.$slots, "default")])], 512), [[vShow, isOpen.value]])]),
251
251
  _: 3
252
252
  })], 2);
253
253
  };
@@ -2052,35 +2052,31 @@ 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 = {
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 = {
2055
+ var _hoisted_1$5 = ["aria-expanded"];
2056
+ var _hoisted_2$3 = { class: "mint-onboarding-help__count" };
2057
+ var _hoisted_3$3 = {
2062
2058
  class: "mint-onboarding-help__bar",
2063
2059
  "aria-hidden": "true"
2064
2060
  };
2065
- var _hoisted_5$3 = ["aria-label", "aria-expanded"];
2066
- var _hoisted_6$2 = {
2061
+ var _hoisted_4$3 = ["aria-label", "aria-expanded"];
2062
+ var _hoisted_5$3 = {
2067
2063
  key: 0,
2068
2064
  class: "mint-onboarding-help__badge",
2069
2065
  "aria-hidden": "true"
2070
2066
  };
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 = {
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 = {
2074
2070
  class: "mint-onboarding-help__progress",
2075
2071
  "aria-hidden": "true"
2076
2072
  };
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" };
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"];
2080
2077
  var _hoisted_13$2 = ["onClick"];
2081
2078
  var _hoisted_14$2 = ["onClick"];
2082
- var _hoisted_15$2 = ["onClick"];
2083
- var _hoisted_16$2 = {
2079
+ var _hoisted_15$2 = {
2084
2080
  key: 0,
2085
2081
  class: "mint-onboarding-help__new"
2086
2082
  };
@@ -2134,10 +2130,6 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2134
2130
  });
2135
2131
  });
2136
2132
  onBeforeUnmount(() => stopAutoUpdate?.());
2137
- function hideChecklist() {
2138
- props.state.setChecklistHidden(true);
2139
- nextTick(() => helpButton.value?.focus());
2140
- }
2141
2133
  function run(action) {
2142
2134
  open.value = false;
2143
2135
  action();
@@ -2156,7 +2148,8 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2156
2148
  ref: root,
2157
2149
  class: "mint-onboarding-help"
2158
2150
  }, [
2159
- __props.state.checklistVisible.value ? (openBlock(), createElementBlock("span", _hoisted_1$5, [createElementVNode("button", {
2151
+ __props.state.checklistVisible.value ? (openBlock(), createElementBlock("button", {
2152
+ key: 0,
2160
2153
  type: "button",
2161
2154
  class: normalizeClass(["mint-onboarding-help__chip", { "mint-onboarding-help__chip--open": open.value }]),
2162
2155
  "data-onboarding": "topbar-checklist",
@@ -2164,18 +2157,9 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2164
2157
  onClick: toggle
2165
2158
  }, [
2166
2159
  _cache[1] || (_cache[1] = createTextVNode(" Getting started ", -1)),
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),
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),
2179
2163
  createElementVNode("button", {
2180
2164
  ref_key: "helpButton",
2181
2165
  ref: helpButton,
@@ -2188,7 +2172,7 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2188
2172
  }, [createVNode(unref(CircleHelp), {
2189
2173
  class: "mint-topbar__settings-icon",
2190
2174
  "aria-hidden": "true"
2191
- }), __props.state.unseenNews.value ? (openBlock(), createElementBlock("span", _hoisted_6$2, toDisplayString(__props.state.unseenNews.value), 1)) : createCommentVNode("", true)], 10, _hoisted_5$3),
2175
+ }), __props.state.unseenNews.value ? (openBlock(), createElementBlock("span", _hoisted_5$3, toDisplayString(__props.state.unseenNews.value), 1)) : createCommentVNode("", true)], 10, _hoisted_4$3),
2192
2176
  (openBlock(), createBlock(Teleport, { to: "body" }, [open.value ? (openBlock(), createElementBlock("div", {
2193
2177
  key: 0,
2194
2178
  ref_key: "panel",
@@ -2202,9 +2186,9 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2202
2186
  })
2203
2187
  }, [
2204
2188
  __props.state.tasks.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
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) => {
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) => {
2208
2192
  return openBlock(), createElementBlock("li", {
2209
2193
  key: task.id,
2210
2194
  class: normalizeClass(["mint-onboarding-help__todo", { "mint-onboarding-help__todo--done": task.done }])
@@ -2218,14 +2202,14 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2218
2202
  size: 10,
2219
2203
  "stroke-width": 3,
2220
2204
  "aria-hidden": "true"
2221
- })) : createCommentVNode("", true)], 8, _hoisted_11$2),
2222
- createElementVNode("span", _hoisted_12$2, toDisplayString(task.title), 1),
2205
+ })) : createCommentVNode("", true)], 8, _hoisted_10$2),
2206
+ createElementVNode("span", _hoisted_11$2, toDisplayString(task.title), 1),
2223
2207
  task.action && !task.done ? (openBlock(), createElementBlock("button", {
2224
2208
  key: 0,
2225
2209
  type: "button",
2226
2210
  class: "mint-onboarding-help__link",
2227
2211
  onClick: ($event) => run(task.action.run)
2228
- }, toDisplayString(task.action.label), 9, _hoisted_13$2)) : createCommentVNode("", true)
2212
+ }, toDisplayString(task.action.label), 9, _hoisted_12$2)) : createCommentVNode("", true)
2229
2213
  ], 2);
2230
2214
  }), 128))]),
2231
2215
  __props.state.tasksDone.value < __props.state.tasks.value.length ? (openBlock(), createElementBlock("button", {
@@ -2244,7 +2228,7 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2244
2228
  }, [createVNode(unref(Play), {
2245
2229
  class: "mint-onboarding-help__icon",
2246
2230
  "aria-hidden": "true"
2247
- }), createTextVNode(" " + toDisplayString(tour.title), 1)], 8, _hoisted_14$2);
2231
+ }), createTextVNode(" " + toDisplayString(tour.title), 1)], 8, _hoisted_13$2);
2248
2232
  }), 128))], 64)) : createCommentVNode("", true),
2249
2233
  __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) => {
2250
2234
  return openBlock(), createElementBlock("button", {
@@ -2252,7 +2236,7 @@ var AppTopBarOnboardingInternal_default = /* @__PURE__ */ defineComponent({
2252
2236
  type: "button",
2253
2237
  class: "mint-menu-item",
2254
2238
  onClick: ($event) => run(() => __props.state.showNews(item.id))
2255
- }, [createTextVNode(toDisplayString(item.title) + " ", 1), item.unseen ? (openBlock(), createElementBlock("span", _hoisted_16$2, "New")) : createCommentVNode("", true)], 8, _hoisted_15$2);
2239
+ }, [createTextVNode(toDisplayString(item.title) + " ", 1), item.unseen ? (openBlock(), createElementBlock("span", _hoisted_15$2, "New")) : createCommentVNode("", true)], 8, _hoisted_14$2);
2256
2240
  }), 128))], 64)) : createCommentVNode("", true)
2257
2241
  ], 4)) : createCommentVNode("", true)]))
2258
2242
  ], 512)) : createCommentVNode("", true), createVNode(OnboardingLayerInternal_default, { state: __props.state }, null, 8, ["state"])], 64);
@@ -2775,7 +2759,7 @@ var AppTopBar_default = /* @__PURE__ */ defineComponent({
2775
2759
  }, props.spec));
2776
2760
  const settingsConfig = computed(() => toValue(config.value.settings) || void 0);
2777
2761
  const showSettings = computed(() => settingsConfig.value !== void 0);
2778
- const SettingsModal = defineAsyncComponent(() => import("./SettingsModal-dC0TCvPr.js").then((n) => n.n));
2762
+ const SettingsModal = defineAsyncComponent(() => import("./SettingsModal-C-MSR-bk.js").then((n) => n.n));
2779
2763
  const ExperimentPopover = defineAsyncComponent(() => import("./ExperimentPopover-BM92LlrQ.js").then((n) => n.n));
2780
2764
  const ExperimentSelectorModal = defineAsyncComponent(() => import("./ExperimentSelectorModal-LsB1ABmh.js").then((n) => n.n));
2781
2765
  const emit = __emit;
@@ -4537,4 +4521,4 @@ var AppSidebar_default = /* @__PURE__ */ defineComponent({
4537
4521
  //#endregion
4538
4522
  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 };
4539
4523
 
4540
- //# sourceMappingURL=AppSidebar-BI5r4vg1.js.map
4524
+ //# sourceMappingURL=AppSidebar-BDrd7Kwn.js.map