@morscherlab/mint-sdk 1.4.0-beta.10 → 1.4.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/runtime.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { i as AuthenticationRequiredError, o as useApi } from "./experiment-43OJtH7R.js";
2
2
  import { c as isTerminalJobStatus, d as normalizeJobState, f as resolveJobCapabilities, l as jobStatusLabel, o as resolveCurrentPluginId, s as isActiveJobStatus, u as normalizeJobPercent } from "./records-B6gpM_3e.js";
3
3
  import { A as createGeneratedAnalysisTransport, D as GeneratedPathInput_default, _ as getFieldRegistryEntry, j as useJobsEndpoint, v as getTypeDefault } from "./useListReorder-BitdUhxn.js";
4
- import { a as GeneratedPlotlyResult_default, c as downloadEndpoint, d as useEventStream, f as useSettingsEndpoint, i as GeneratedResultRenderer_default, l as pluginFormDataFromPayload, m as resolvePluginBaseUrl, o as createClient, p as buildEndpointUrl, u as uploadEndpoint } from "./useRackEditor-DiwCt77M.js";
5
- import { a as ComponentBindingRenderer_default, c as generatedJobFormSchema, f as useControlWorkspace, i as RuntimeUpdateNotice_default, l as normalizeGeneratedJobInput, n as PresenceAvatars_default, o as GeneratedPluginView_default, r as usePresence, s as generatedJobDefaults } from "./runtime-8bs8EogX.js";
4
+ import { a as GeneratedPlotlyResult_default, c as downloadEndpoint, d as useEventStream, f as useSettingsEndpoint, i as GeneratedResultRenderer_default, l as pluginFormDataFromPayload, m as resolvePluginBaseUrl, o as createClient, p as buildEndpointUrl, u as uploadEndpoint } from "./useRackEditor-Q8xO-cCy.js";
5
+ import { a as ComponentBindingRenderer_default, c as generatedJobFormSchema, f as useControlWorkspace, i as RuntimeUpdateNotice_default, l as normalizeGeneratedJobInput, n as PresenceAvatars_default, o as GeneratedPluginView_default, r as usePresence, s as generatedJobDefaults } from "./runtime-D7vKpfbF.js";
6
6
  import { A as getDefaultControlView, C as controlBindings, D as controlsTo, S as useControlSchema, b as defineControls, d as useForm, l as useFormBuilder, u as evaluateCondition, x as getControlDefaults, y as defineControlComponentBindings } from "./AppSidebar-mvm--GxN.js";
7
7
  import { a as combinePluginJobSources, o as useJobCenter, r as useRealtime } from "./useRealtime-C3iy9QkU.js";
8
8
  export { AuthenticationRequiredError, ComponentBindingRenderer_default as ComponentBindingRenderer, GeneratedPathInput_default as GeneratedPathInput, GeneratedPlotlyResult_default as GeneratedPlotlyResult, GeneratedPluginView_default as GeneratedPluginView, GeneratedResultRenderer_default as GeneratedResultRenderer, PresenceAvatars_default as PresenceAvatars, RuntimeUpdateNotice_default as RuntimeUpdateNotice, buildEndpointUrl, combinePluginJobSources, controlBindings, controlsTo, createClient, createGeneratedAnalysisTransport, defineControlComponentBindings, defineControls, downloadEndpoint, evaluateCondition, generatedJobDefaults, generatedJobFormSchema, getControlDefaults, getDefaultControlView, getFieldRegistryEntry, getTypeDefault, isActiveJobStatus, isTerminalJobStatus, jobStatusLabel, normalizeGeneratedJobInput, normalizeJobPercent, normalizeJobState, pluginFormDataFromPayload, resolveCurrentPluginId, resolveJobCapabilities, resolvePluginBaseUrl, uploadEndpoint, useApi, useControlSchema, useControlWorkspace, useEventStream, useForm, useFormBuilder, useJobCenter, useJobsEndpoint, usePresence, useRealtime, useSettingsEndpoint };
package/dist/styles.css CHANGED
@@ -48,36 +48,35 @@
48
48
  margin: 0 auto;
49
49
  }
50
50
 
51
- .mint-generated-result[data-v-d4b8e2aa] {
51
+ .mint-generated-result[data-v-f242a75c] {
52
52
  width: 100%;
53
53
  }
54
- .mint-generated-result__text[data-v-d4b8e2aa],
55
- .mint-generated-result__json[data-v-d4b8e2aa] {
54
+ .mint-generated-result__text[data-v-f242a75c],
55
+ .mint-generated-result__json[data-v-f242a75c] {
56
56
  margin: 0;
57
57
  color: var(--text-primary);
58
58
  }
59
- .mint-generated-result__text[data-v-d4b8e2aa] {
59
+ .mint-generated-result__text[data-v-f242a75c] {
60
60
  max-width: 72ch;
61
61
  white-space: pre-wrap;
62
62
  line-height: 1.65;
63
63
  }
64
- .mint-generated-result__json[data-v-d4b8e2aa] {
64
+ .mint-generated-result__json[data-v-f242a75c] {
65
65
  overflow: auto;
66
- padding: 1rem;
67
- border: 1px solid var(--border-color);
68
- border-radius: 0.75rem;
69
- background: var(--bg-secondary);
66
+ padding: 0.75rem 1rem;
67
+ border-radius: var(--radius-md);
68
+ background: var(--bg-tertiary);
70
69
  font-size: 0.8125rem;
71
70
  line-height: 1.55;
72
71
  white-space: pre-wrap;
73
72
  }
74
- .mint-generated-result__image[data-v-d4b8e2aa] {
73
+ .mint-generated-result__image[data-v-f242a75c] {
75
74
  display: block;
76
75
  max-width: 100%;
77
76
  height: auto;
78
77
  margin: 0 auto;
79
78
  }
80
- .mint-generated-result__artifact[data-v-d4b8e2aa] {
79
+ .mint-generated-result__artifact[data-v-f242a75c] {
81
80
  display: flex;
82
81
  align-items: center;
83
82
  justify-content: space-between;
@@ -303,7 +302,7 @@
303
302
 
304
303
 
305
304
 
306
-
305
+ @layer theme, base, components, utilities;
307
306
  /* MINT SDK Styles - Main entry point
308
307
  * This file combines all SDK styles for proper bundling
309
308
  */
@@ -315,6 +314,9 @@
315
314
  * @import '@morscherlab/mint-sdk/styles';
316
315
  */
317
316
 
317
+ /* Tailwind v4's layer order, declared first so the SDK's base and utilities
318
+ layers sort the same way with or without Tailwind in the host. */
319
+
318
320
  /* ==========================================================================
319
321
  CSS Variables - Light Mode
320
322
  ========================================================================== */
@@ -445,6 +447,8 @@
445
447
  --form-height-md: 2rem;
446
448
  --form-height-lg: 2.5rem;
447
449
  --mint-gutter: 0.5rem;
450
+ /* Distance from the outermost cards to the window edge, in every density. */
451
+ --mint-page-inset: 1rem;
448
452
 
449
453
  /* Semantic colors */
450
454
  --mint-success: #10B981;
@@ -654,6 +658,9 @@ button, input, select, textarea {
654
658
  /* ==========================================================================
655
659
  MINT Utility Classes (for Tailwind v4 compatibility)
656
660
  ========================================================================== */
661
+ /* In Tailwind's utilities layer: unlayered, these beat every layered rule, so a
662
+ host's responsive variant (`lg:flex-row`) lost to the SDK's `.flex-col`. */
663
+ @layer utilities {
657
664
  .bg-bg-hover {
658
665
  background-color: var(--bg-tertiary);
659
666
  }
@@ -1029,6 +1036,7 @@ button, input, select, textarea {
1029
1036
  .max-w-sm {
1030
1037
  max-width: 24rem;
1031
1038
  }
1039
+ } /* @layer utilities */
1032
1040
 
1033
1041
  /* ==========================================================================
1034
1042
  Reduced Motion
@@ -1490,10 +1498,11 @@ button, input, select, textarea {
1490
1498
  }
1491
1499
 
1492
1500
  /* Floating variant: all sections appear as separate cards on a background,
1493
- spaced by the density gutter (8px, 12px comfortable). */
1501
+ 16px from the window edge and spaced by the density gutter (8px, 12px
1502
+ comfortable). */
1494
1503
  .mint-layout--floating {
1495
1504
  background-color: var(--bg-primary);
1496
- padding: var(--mint-gutter);
1505
+ padding: var(--mint-page-inset);
1497
1506
  gap: var(--mint-gutter);
1498
1507
  }
1499
1508
 
@@ -2267,10 +2276,10 @@ button, input, select, textarea {
2267
2276
  padding: 0 0.375rem 0 0;
2268
2277
  }
2269
2278
 
2270
- /* Variant: card - flat floating card, inset by the layout gutter */
2279
+ /* Variant: card - flat floating card, inset 16px from the window edge */
2271
2280
  .mint-topbar--card {
2272
- width: calc(100% - 2 * var(--mint-gutter));
2273
- margin: var(--mint-gutter) var(--mint-gutter) 0;
2281
+ width: calc(100% - 2 * var(--mint-page-inset));
2282
+ margin: var(--mint-page-inset) var(--mint-page-inset) 0;
2274
2283
  padding: 0.375rem 0.5rem 0.375rem 0.625rem;
2275
2284
  border-radius: var(--radius-lg);
2276
2285
  border: 1px solid var(--border-color);
@@ -4815,7 +4824,7 @@ button, input, select, textarea {
4815
4824
  width: 2.5rem;
4816
4825
  height: 3px;
4817
4826
  background-color: var(--border-color);
4818
- border-radius: 9999px;
4827
+ border-radius: var(--radius-sm);
4819
4828
  margin: 0.5rem auto 0;
4820
4829
  flex-shrink: 0;
4821
4830
  }
@@ -4863,7 +4872,7 @@ button, input, select, textarea {
4863
4872
  width: 1.75rem;
4864
4873
  height: 1.75rem;
4865
4874
  padding: 0;
4866
- border-radius: 0.4375rem;
4875
+ border-radius: var(--radius-md);
4867
4876
  color: var(--text-secondary);
4868
4877
  background: none;
4869
4878
  border: none;
@@ -5477,7 +5486,7 @@ button, input, select, textarea {
5477
5486
  /* Horizontal padding matches BaseInput canonical scale (10/12/16) so FormField's
5478
5487
  12px label indent aligns with the numeric text across all input types. */
5479
5488
  .mint-number-input__input--sm { padding: 0.25rem 0.625rem; font-size: 0.8125rem; }
5480
- .mint-number-input__input--md { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
5489
+ .mint-number-input__input--md { padding: 0.375rem 0.75rem; font-size: 0.875rem; }
5481
5490
  .mint-number-input__input--lg { padding: 0.5rem 1rem; font-size: 1rem; }
5482
5491
 
5483
5492
  /* ---------- Unit suffix ---------- */
@@ -6310,7 +6319,9 @@ button, input, select, textarea {
6310
6319
  gap: 0.625rem;
6311
6320
  box-sizing: border-box;
6312
6321
  min-height: 2.5rem;
6313
- padding: 0.375rem 0.625rem 0.375rem 0.75rem;
6322
+ /* 4px block padding: a 28px header control plus padding plus the 1px rule
6323
+ stays inside the 40px strip (6px made it 41px). */
6324
+ padding: 0.25rem 0.625rem 0.25rem 0.75rem;
6314
6325
  border-bottom: 1px solid var(--border-color);
6315
6326
  flex-shrink: 0;
6316
6327
  }
@@ -6407,7 +6418,7 @@ button.mint-section-card__row:hover {
6407
6418
  /* Comfortable density gives the header and rows back their height. */
6408
6419
  [data-density="comfortable"] .mint-section-card__header {
6409
6420
  min-height: 2.75rem;
6410
- padding: 0.5rem 0.75rem 0.5rem 0.875rem;
6421
+ padding: 0.25rem 0.75rem 0.25rem 0.875rem;
6411
6422
  }
6412
6423
 
6413
6424
  [data-density="comfortable"] .mint-section-card__row {
@@ -11204,7 +11215,7 @@ html.dark .mint-pill--soft {
11204
11215
  }
11205
11216
 
11206
11217
  .mint-dataframe__row:last-child .mint-dataframe__td {
11207
- border-bottom: none;
11218
+ border-bottom: none !important;
11208
11219
  }
11209
11220
 
11210
11221
  /* Empty / error placeholder host (content comes from EmptyState) */
@@ -11763,13 +11774,13 @@ html.dark .mint-dataframe__loading {
11763
11774
  }
11764
11775
 
11765
11776
  /* ========================================================================
11766
- Rail variant (default) — single filled track, pill ends
11777
+ Rail variant (default) — single filled track, square-ish ends (v2: no capsules)
11767
11778
  ======================================================================== */
11768
11779
 
11769
11780
  .mint-progress__track {
11770
11781
  width: 100%;
11771
11782
  background-color: var(--bg-tertiary);
11772
- border-radius: 9999px; /* pill ends — spec */
11783
+ border-radius: var(--radius-sm);
11773
11784
  overflow: hidden;
11774
11785
  }
11775
11786
 
@@ -11779,7 +11790,7 @@ html.dark .mint-dataframe__loading {
11779
11790
 
11780
11791
  .mint-progress__bar {
11781
11792
  height: 100%;
11782
- border-radius: 9999px;
11793
+ border-radius: var(--radius-sm);
11783
11794
  transition: width 0.3s ease;
11784
11795
  }
11785
11796
 
@@ -12835,6 +12846,12 @@ html.dark .mint-stale-banner {
12835
12846
  border-bottom-color: var(--border-color);
12836
12847
  }
12837
12848
 
12849
+ /* The pane ends after the last group's last row: no closing hairline there,
12850
+ it would sit on the footer rule with nothing between them. */
12851
+ .mint-settings-modal__group:last-of-type > .mint-settings-modal__group-grid > .mint-settings-modal__row:last-child {
12852
+ border-bottom: none;
12853
+ }
12854
+
12838
12855
  /* The field cell anchors the ↺ reset, which sits just left of the control (5d).
12839
12856
  --_settings-control-w is the control's width; stacked fields (text, custom slots)
12840
12857
  keep 0 and put the reset at the right end of their label line. */
@@ -13453,10 +13470,9 @@ html.dark .mint-stale-banner {
13453
13470
  .mint-settings-modal__density-preview {
13454
13471
  --_density-row: 2.125rem;
13455
13472
 
13473
+ /* A hairline table in the setting row, not a bordered box inside the modal. */
13456
13474
  grid-column: 1 / -1;
13457
13475
  overflow: hidden;
13458
- border: 1px solid var(--border-color);
13459
- border-radius: var(--radius-md);
13460
13476
  font-size: 0.75rem;
13461
13477
  }
13462
13478
 
@@ -4764,7 +4764,7 @@ var GeneratedResultRenderer_default = /*#__PURE__*/ _plugin_vue_export_helper_de
4764
4764
  }, [createElementVNode("span", null, toDisplayString(__props.result.name), 1), createElementVNode("small", null, toDisplayString(__props.result.media_type), 1)], 8, _hoisted_5$1))]);
4765
4765
  };
4766
4766
  }
4767
- }), [["__scopeId", "data-v-d4b8e2aa"]]);
4767
+ }), [["__scopeId", "data-v-f242a75c"]]);
4768
4768
  //#endregion
4769
4769
  //#region src/composables/useScheduleDrag.ts
4770
4770
  /** Handles pointer-driven create, move, and resize drag interactions for the ScheduleCalendar grid. */
@@ -5927,4 +5927,4 @@ function useRackEditor(initialRacks, options) {
5927
5927
  //#endregion
5928
5928
  export { hexToHsl as C, DataFrame_default as D, sampleTypeMarker as E, deriveShade as S, WellPlate_default as T, mintPlotlyTemplate as _, GeneratedPlotlyResult_default as a, PlateEditor_default as b, downloadEndpoint as c, useEventStream as d, useSettingsEndpoint as f, ChartContainer_default as g, PlotlyChart_default as h, GeneratedResultRenderer_default as i, pluginFormDataFromPayload as l, resolvePluginBaseUrl as m, ScheduleCalendar_default as n, createClient as o, buildEndpointUrl as p, useScheduleDrag as r, downloadBlob as s, useRackEditor as t, uploadEndpoint as u, DoseCalculator_default as v, hslToHex as w, SAMPLE_GROUP_TOKENS as x, dose_exports as y };
5929
5929
 
5930
- //# sourceMappingURL=useRackEditor-DiwCt77M.js.map
5930
+ //# sourceMappingURL=useRackEditor-Q8xO-cCy.js.map