@airalogy/aimd-recorder 1.16.0 → 1.18.0
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/README.md +11 -10
- package/README.zh-CN.md +11 -10
- package/dist/AimdCodeField-BQUuM-EF.js +182 -0
- package/dist/{AimdDnaSequenceField-CPyMqIVh.js → AimdDnaSequenceField-KZU2Zj3E.js} +2 -2
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-lyHIpch9.js → AimdEditor.vue_vue_type_style_index_0_lang-CzfYPp5r.js} +3924 -3831
- package/dist/AimdMarkdownField-t2d8uOeU.js +254 -0
- package/dist/AimdMarkdownNoteField-_h1oZSwH.js +259 -0
- package/dist/{_commonjsHelpers-CZXJ37nu.js → _commonjsHelpers-B5RozER-.js} +2 -2
- package/dist/aimd-recorder.css +1 -1
- package/dist/arc-DS_ocYoe.js +83 -0
- package/dist/architectureDiagram-3BPJPVTR-Dq2W8_tb.js +4692 -0
- package/dist/blockDiagram-GPEHLZMM-B4hnSAF_.js +2425 -0
- package/dist/c4Diagram-AAUBKEIU-CbffqNLY.js +1577 -0
- package/dist/channel-CtXnYrAk.js +5 -0
- package/dist/chunk-2J33WTMH-CROScrt5.js +19 -0
- package/dist/chunk-4BX2VUAB-DTmsQu5_.js +8 -0
- package/dist/chunk-55IACEB6-B5wDJzeX.js +8 -0
- package/dist/chunk-727SXJPM-CfyltY6o.js +1528 -0
- package/dist/chunk-AQP2D5EJ-B8274EYy.js +1387 -0
- package/dist/chunk-FMBD7UC4-CT_FK-SH.js +19 -0
- package/dist/chunk-ND2GUHAM-g9GulPi-.js +68 -0
- package/dist/chunk-QZHKN3VN-Di5HEktz.js +15 -0
- package/dist/classDiagram-4FO5ZUOK-BVUr246k.js +16 -0
- package/dist/classDiagram-v2-Q7XG4LA2-BVUr246k.js +16 -0
- package/dist/components.js +3365 -2216
- package/dist/composables.js +92 -68
- package/dist/cose-bilkent-S5V4N54A-GJ4IOO6v.js +2609 -0
- package/dist/cytoscape.esm-r59gEWFs.js +18710 -0
- package/dist/dagre-BM42HDAG-oL7Br44o.js +445 -0
- package/dist/defaultLocale-BgPVtth8.js +171 -0
- package/dist/diagram-2AECGRRQ-DtoCG_N4.js +217 -0
- package/dist/diagram-5GNKFQAL-f8QNdS7L.js +123 -0
- package/dist/diagram-KO2AKTUF-CsJOW_AX.js +461 -0
- package/dist/diagram-LMA3HP47-xmEKNZ7y.js +142 -0
- package/dist/diagram-OG6HWLK6-unpC7vo8.js +528 -0
- package/dist/erDiagram-TEJ5UH35-BGzFnCJD.js +899 -0
- package/dist/flowDiagram-I6XJVG4X-LBFhDnOs.js +1628 -0
- package/dist/ganttDiagram-6RSMTGT7-CFBc-jPD.js +2707 -0
- package/dist/gitGraphDiagram-PVQCEYII-BLduh-Rb.js +815 -0
- package/dist/graph-DdlKE625.js +1510 -0
- package/dist/index.js +104 -80
- package/dist/infoDiagram-5YYISTIA-CLQQI6zM.js +24 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/ishikawaDiagram-YF4QCWOH-CStdYBmW.js +621 -0
- package/dist/journeyDiagram-JHISSGLW-B6mRTzoE.js +834 -0
- package/dist/kanban-definition-UN3LZRKU-C-vnN5v4.js +724 -0
- package/dist/katex-DNob3HGn.js +11690 -0
- package/dist/layout-DDt0fz-M.js +1703 -0
- package/dist/linear-C-IAFdOt.js +259 -0
- package/dist/mermaid.core-CuZ3nINf.js +15940 -0
- package/dist/mindmap-definition-RKZ34NQL-TSZ1Vb3z.js +827 -0
- package/dist/ordinal-B6-f3MAq.js +61 -0
- package/dist/pieDiagram-4H26LBE5-DYok-1-k.js +163 -0
- package/dist/quadrantDiagram-W4KKPZXB-Cg856sbH.js +1024 -0
- package/dist/requirementDiagram-4Y6WPE33-BN9fGdlJ.js +882 -0
- package/dist/sankeyDiagram-5OEKKPKP-CDqTgonY.js +847 -0
- package/dist/sequenceDiagram-3UESZ5HK-Chjrc0-W.js +2891 -0
- package/dist/stateDiagram-AJRCARHV-DRyLHrdr.js +263 -0
- package/dist/stateDiagram-v2-BHNVJYJU-CZTIDHid.js +16 -0
- package/dist/timeline-definition-PNZ67QCA-Bc3D9AAG.js +1055 -0
- package/dist/{useFieldRendering-Dh6Kib_0.js → useCodeBlockRendering-qA6gj4vz.js} +3041 -2255
- package/dist/useMonacoAutoHeight-D4T-El3J.js +66 -0
- package/dist/vennDiagram-CIIHVFJN-CYAul48m.js +1557 -0
- package/dist/wardley-L42UT6IY-D7b2ujEZ.js +22512 -0
- package/dist/wardleyDiagram-YWT4CUSO-B7Tg0MG9.js +675 -0
- package/dist/xychartDiagram-2RQKCTM6-xWYVEqth.js +1342 -0
- package/package.json +8 -7
- package/src/__tests__/assigner-runner-dependent-data.test.ts +32 -0
- package/src/__tests__/markdown-field.test.ts +150 -1
- package/src/__tests__/markdown-note-field.test.ts +86 -3
- package/src/__tests__/quiz-recorder.test.ts +47 -0
- package/src/__tests__/recorder-assigner-control.test.ts +844 -0
- package/src/__tests__/recorder-check-field.test.ts +103 -0
- package/src/__tests__/recorder-editor.test.ts +17 -0
- package/src/__tests__/recorder-markdown-assigner-integration.test.ts +49 -0
- package/src/__tests__/step-field.test.ts +87 -4
- package/src/__tests__/type-plugins.test.ts +1 -0
- package/src/__tests__/var-field-render.test.ts +741 -1
- package/src/components/AimdCodeField.vue +24 -5
- package/src/components/AimdMarkdownField.vue +548 -11
- package/src/components/AimdMarkdownNoteField.vue +241 -30
- package/src/components/AimdQuizOptionFollowups.vue +121 -0
- package/src/components/AimdQuizRecorder.vue +79 -148
- package/src/components/AimdRecorder.vue +1620 -98
- package/src/components/AimdRecorderEditor.vue +276 -8
- package/src/components/AimdRecorderWysiwygFieldHost.vue +6 -0
- package/src/components/AimdRecorderWysiwygSurface.vue +32 -0
- package/src/components/AimdStepCheckField.vue +205 -51
- package/src/components/AimdVarField.vue +694 -25
- package/src/components/AimdVarTableField.vue +283 -110
- package/src/components/icons/AimdAssignerCalculatorIcon.vue +18 -0
- package/src/components/icons/AimdAssignerCloudStatusIcon.vue +22 -0
- package/src/components/recorderMilkdownPlugin.ts +14 -0
- package/src/composables/__tests__/useRecordState.test.ts +114 -0
- package/src/composables/__tests__/useVarHelpers.test.ts +133 -0
- package/src/composables/index.ts +27 -1
- package/src/composables/useAssignerRunner.ts +376 -0
- package/src/composables/useCodeBlockRendering.ts +51 -0
- package/src/composables/useFieldRendering.ts +32 -4
- package/src/composables/useMonacoAutoHeight.ts +127 -0
- package/src/composables/useRecordState.ts +40 -14
- package/src/composables/useVarHelpers.ts +377 -9
- package/src/index.ts +13 -0
- package/src/locales.ts +47 -2
- package/src/styles/aimd.css +171 -6
- package/src/type-plugins.ts +7 -0
- package/src/types.ts +93 -2
- package/dist/AimdCodeField-DC3DPvgc.js +0 -172
- package/dist/AimdMarkdownField-CX71bOdX.js +0 -67
- package/dist/AimdMarkdownNoteField--ssNIQfG.js +0 -186
|
@@ -436,6 +436,34 @@ describe('getQuizDefaultValue', () => {
|
|
|
436
436
|
} as any)).toBe(false)
|
|
437
437
|
})
|
|
438
438
|
|
|
439
|
+
it('returns structured defaults for true/false quiz with followups', () => {
|
|
440
|
+
const quiz = {
|
|
441
|
+
id: 'q1',
|
|
442
|
+
type: 'true_false',
|
|
443
|
+
stem: 'Q?',
|
|
444
|
+
options: [
|
|
445
|
+
{
|
|
446
|
+
key: 'true',
|
|
447
|
+
text: 'Yes',
|
|
448
|
+
followups: [
|
|
449
|
+
{ key: 'color', type: 'str', required: true, default: 'white' },
|
|
450
|
+
],
|
|
451
|
+
},
|
|
452
|
+
{ key: 'false', text: 'No' },
|
|
453
|
+
],
|
|
454
|
+
default: true,
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
expect(getQuizDefaultValue(quiz as any)).toEqual({
|
|
458
|
+
selected: true,
|
|
459
|
+
followups: {
|
|
460
|
+
true: {
|
|
461
|
+
color: 'white',
|
|
462
|
+
},
|
|
463
|
+
},
|
|
464
|
+
})
|
|
465
|
+
})
|
|
466
|
+
|
|
439
467
|
it('returns blank map for blank quiz', () => {
|
|
440
468
|
const quiz = {
|
|
441
469
|
id: 'q1', type: 'blank', stem: 'Fill ____',
|
|
@@ -619,6 +647,92 @@ describe('ensureDefaultsFromFields', () => {
|
|
|
619
647
|
expect(record.quiz.q1).toBe('')
|
|
620
648
|
})
|
|
621
649
|
|
|
650
|
+
it('adds missing var table defaults from extracted AIMD fields', () => {
|
|
651
|
+
const record = createEmptyProtocolRecordData()
|
|
652
|
+
const fields = {
|
|
653
|
+
step: [],
|
|
654
|
+
check: [],
|
|
655
|
+
quiz: [],
|
|
656
|
+
var: [],
|
|
657
|
+
subvar: [],
|
|
658
|
+
assigner: [],
|
|
659
|
+
ref: [],
|
|
660
|
+
fig: [],
|
|
661
|
+
cite: [],
|
|
662
|
+
var_table: [{
|
|
663
|
+
id: 'monitoring_sites',
|
|
664
|
+
scope: 'var_table',
|
|
665
|
+
subvars: [{ id: 'site_id' }, { id: 'elevation_m' }],
|
|
666
|
+
default: [
|
|
667
|
+
{ site_id: 'S01', elevation_m: 128 },
|
|
668
|
+
{ site_id: 'S02', elevation_m: 82 },
|
|
669
|
+
],
|
|
670
|
+
}],
|
|
671
|
+
}
|
|
672
|
+
const changed = ensureDefaultsFromFields(record, fields as any)
|
|
673
|
+
expect(changed).toBe(true)
|
|
674
|
+
expect(record.var.monitoring_sites).toEqual([
|
|
675
|
+
{ site_id: 'S01', elevation_m: '128' },
|
|
676
|
+
{ site_id: 'S02', elevation_m: '82' },
|
|
677
|
+
])
|
|
678
|
+
})
|
|
679
|
+
|
|
680
|
+
it('replaces a generated empty var table placeholder with extracted defaults', () => {
|
|
681
|
+
const record = createEmptyProtocolRecordData()
|
|
682
|
+
record.var.monitoring_sites = [{ site_id: '', elevation_m: '' }]
|
|
683
|
+
const fields = {
|
|
684
|
+
step: [],
|
|
685
|
+
check: [],
|
|
686
|
+
quiz: [],
|
|
687
|
+
var: [],
|
|
688
|
+
subvar: [],
|
|
689
|
+
assigner: [],
|
|
690
|
+
ref: [],
|
|
691
|
+
fig: [],
|
|
692
|
+
cite: [],
|
|
693
|
+
var_table: [{
|
|
694
|
+
id: 'monitoring_sites',
|
|
695
|
+
scope: 'var_table',
|
|
696
|
+
subvars: [{ id: 'site_id' }, { id: 'elevation_m' }],
|
|
697
|
+
default: [
|
|
698
|
+
{ site_id: 'S01', elevation_m: 128 },
|
|
699
|
+
{ site_id: 'S02', elevation_m: 82 },
|
|
700
|
+
],
|
|
701
|
+
}],
|
|
702
|
+
}
|
|
703
|
+
const changed = ensureDefaultsFromFields(record, fields as any)
|
|
704
|
+
expect(changed).toBe(true)
|
|
705
|
+
expect(record.var.monitoring_sites).toEqual([
|
|
706
|
+
{ site_id: 'S01', elevation_m: '128' },
|
|
707
|
+
{ site_id: 'S02', elevation_m: '82' },
|
|
708
|
+
])
|
|
709
|
+
})
|
|
710
|
+
|
|
711
|
+
it('does not overwrite existing var table rows with extracted defaults', () => {
|
|
712
|
+
const record = createEmptyProtocolRecordData()
|
|
713
|
+
record.var.monitoring_sites = [{ site_id: 'USER', elevation_m: '10' }]
|
|
714
|
+
const fields = {
|
|
715
|
+
step: [],
|
|
716
|
+
check: [],
|
|
717
|
+
quiz: [],
|
|
718
|
+
var: [],
|
|
719
|
+
subvar: [],
|
|
720
|
+
assigner: [],
|
|
721
|
+
ref: [],
|
|
722
|
+
fig: [],
|
|
723
|
+
cite: [],
|
|
724
|
+
var_table: [{
|
|
725
|
+
id: 'monitoring_sites',
|
|
726
|
+
scope: 'var_table',
|
|
727
|
+
subvars: [{ id: 'site_id' }, { id: 'elevation_m' }],
|
|
728
|
+
default: [{ site_id: 'S01', elevation_m: 128 }],
|
|
729
|
+
}],
|
|
730
|
+
}
|
|
731
|
+
const changed = ensureDefaultsFromFields(record, fields as any)
|
|
732
|
+
expect(changed).toBe(false)
|
|
733
|
+
expect(record.var.monitoring_sites).toEqual([{ site_id: 'USER', elevation_m: '10' }])
|
|
734
|
+
})
|
|
735
|
+
|
|
622
736
|
it('returns false when nothing changes', () => {
|
|
623
737
|
const record = createEmptyProtocolRecordData()
|
|
624
738
|
const fields = { step: [], check: [], quiz: [], var: [], var_table: [], subvar: [], assigner: [], ref: [], fig: [], cite: [] }
|
|
@@ -9,6 +9,8 @@ import {
|
|
|
9
9
|
formatDateTimeWithTimezone,
|
|
10
10
|
normalizeDateTimeValueWithTimezone,
|
|
11
11
|
formatDateForInput,
|
|
12
|
+
getFileDisplayName,
|
|
13
|
+
getFileInputConfig,
|
|
12
14
|
getVarInputDisplayValue,
|
|
13
15
|
parseVarInputValue,
|
|
14
16
|
getNumericConstraintViolation,
|
|
@@ -16,6 +18,8 @@ import {
|
|
|
16
18
|
getNumericInputAttributes,
|
|
17
19
|
calculateVarStackWidth,
|
|
18
20
|
syncAutoWrapTextareaHeight,
|
|
21
|
+
measureVarLabelWidth,
|
|
22
|
+
createSelectedFileValue,
|
|
19
23
|
} from '../useVarHelpers'
|
|
20
24
|
|
|
21
25
|
// ---------------------------------------------------------------------------
|
|
@@ -111,6 +115,74 @@ describe('getVarInputKind', () => {
|
|
|
111
115
|
expect(getVarInputKind('str', { inputType: 'yaml' })).toBe('code')
|
|
112
116
|
expect(getVarInputKind('str', { codeLanguage: 'sql' })).toBe('code')
|
|
113
117
|
})
|
|
118
|
+
|
|
119
|
+
it('returns "file" for file-like AIMD types and metadata overrides', () => {
|
|
120
|
+
expect(getVarInputKind('FileIdCSV')).toBe('file')
|
|
121
|
+
expect(getVarInputKind('csv')).toBe('file')
|
|
122
|
+
expect(getVarInputKind('FileIdPNG')).toBe('file')
|
|
123
|
+
expect(getVarInputKind('image')).toBe('file')
|
|
124
|
+
expect(getVarInputKind('str', { inputType: 'audio' })).toBe('file')
|
|
125
|
+
expect(getVarInputKind('str', { kwargs: { file_extension: 'xlsx' } })).toBe('file')
|
|
126
|
+
expect(getVarInputKind('str', { fieldMeta: { accept: '.pdf' } })).toBe('file')
|
|
127
|
+
})
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
// ---------------------------------------------------------------------------
|
|
131
|
+
// File-like vars
|
|
132
|
+
// ---------------------------------------------------------------------------
|
|
133
|
+
|
|
134
|
+
describe('file-like var helpers', () => {
|
|
135
|
+
it('resolves accept strings and display badges for built-in file aliases', () => {
|
|
136
|
+
expect(getFileInputConfig('FileIdCSV')).toMatchObject({
|
|
137
|
+
kind: 'csv',
|
|
138
|
+
accept: '.csv,text/csv',
|
|
139
|
+
badge: 'CSV',
|
|
140
|
+
})
|
|
141
|
+
expect(getFileInputConfig('FileIdPNG')).toMatchObject({
|
|
142
|
+
kind: 'image',
|
|
143
|
+
accept: '.png,image/png',
|
|
144
|
+
badge: 'IMG',
|
|
145
|
+
})
|
|
146
|
+
expect(getFileInputConfig('str', undefined, { inputType: 'image' })).toMatchObject({
|
|
147
|
+
kind: 'image',
|
|
148
|
+
accept: 'image/*',
|
|
149
|
+
badge: 'IMG',
|
|
150
|
+
})
|
|
151
|
+
})
|
|
152
|
+
|
|
153
|
+
it('honors explicit accept and file extension metadata', () => {
|
|
154
|
+
expect(getFileInputConfig('str', { file_extension: 'xlsx' })).toMatchObject({
|
|
155
|
+
kind: 'document',
|
|
156
|
+
accept: '.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
157
|
+
badge: 'DOC',
|
|
158
|
+
})
|
|
159
|
+
expect(getFileInputConfig('FileIdCSV', undefined, { accept: '.tsv,text/tab-separated-values' })).toMatchObject({
|
|
160
|
+
kind: 'csv',
|
|
161
|
+
accept: '.tsv,text/tab-separated-values',
|
|
162
|
+
badge: 'CSV',
|
|
163
|
+
})
|
|
164
|
+
})
|
|
165
|
+
|
|
166
|
+
it('extracts display names from file ids and structured file values', () => {
|
|
167
|
+
expect(getFileDisplayName('file-123')).toBe('file-123')
|
|
168
|
+
expect(getFileDisplayName({ name: 'dose.csv' })).toBe('dose.csv')
|
|
169
|
+
expect(getFileDisplayName({ value: { file_name: 'chart.svg' } })).toBe('chart.svg')
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
it('creates serializable selected-file metadata when no host upload handler is provided', () => {
|
|
173
|
+
const file = new File(['a,b\n1,2'], 'dose.csv', {
|
|
174
|
+
type: 'text/csv',
|
|
175
|
+
lastModified: 123,
|
|
176
|
+
})
|
|
177
|
+
|
|
178
|
+
expect(createSelectedFileValue(file)).toEqual({
|
|
179
|
+
format: 'airalogy_selected_file_v1',
|
|
180
|
+
name: 'dose.csv',
|
|
181
|
+
type: 'text/csv',
|
|
182
|
+
size: 7,
|
|
183
|
+
lastModified: 123,
|
|
184
|
+
})
|
|
185
|
+
})
|
|
114
186
|
})
|
|
115
187
|
|
|
116
188
|
// ---------------------------------------------------------------------------
|
|
@@ -414,6 +486,67 @@ describe('calculateVarStackWidth', () => {
|
|
|
414
486
|
})
|
|
415
487
|
})
|
|
416
488
|
|
|
489
|
+
// ---------------------------------------------------------------------------
|
|
490
|
+
// measureVarLabelWidth
|
|
491
|
+
// ---------------------------------------------------------------------------
|
|
492
|
+
|
|
493
|
+
describe('measureVarLabelWidth', () => {
|
|
494
|
+
afterEach(() => {
|
|
495
|
+
vi.restoreAllMocks()
|
|
496
|
+
document.body.innerHTML = ''
|
|
497
|
+
})
|
|
498
|
+
|
|
499
|
+
it('measures visible label tokens without letting metadata popovers expand the field', () => {
|
|
500
|
+
vi.spyOn(HTMLCanvasElement.prototype, 'getContext').mockImplementation(() => ({
|
|
501
|
+
measureText: (text: string) => ({ width: text.length * 8 }),
|
|
502
|
+
} as unknown as CanvasRenderingContext2D))
|
|
503
|
+
vi.spyOn(window, 'getComputedStyle').mockImplementation((element: Element) => {
|
|
504
|
+
const classList = (element as HTMLElement).classList
|
|
505
|
+
const horizontalPadding = classList.contains('aimd-field__name')
|
|
506
|
+
? '16px'
|
|
507
|
+
: classList.contains('aimd-field__scope--var')
|
|
508
|
+
? '14px'
|
|
509
|
+
: '0px'
|
|
510
|
+
return {
|
|
511
|
+
fontSize: '14px',
|
|
512
|
+
fontFamily: 'sans-serif',
|
|
513
|
+
fontWeight: '500',
|
|
514
|
+
fontStyle: 'normal',
|
|
515
|
+
paddingLeft: horizontalPadding,
|
|
516
|
+
paddingRight: '0px',
|
|
517
|
+
borderLeftWidth: '0px',
|
|
518
|
+
borderRightWidth: '0px',
|
|
519
|
+
marginLeft: '0px',
|
|
520
|
+
marginRight: '0px',
|
|
521
|
+
} as CSSStyleDeclaration
|
|
522
|
+
})
|
|
523
|
+
|
|
524
|
+
const wrapper = document.createElement('span')
|
|
525
|
+
wrapper.className = 'aimd-rec-inline--var-stacked'
|
|
526
|
+
wrapper.innerHTML = `
|
|
527
|
+
<span class="aimd-field__label">
|
|
528
|
+
<span class="aimd-field__scope aimd-field__scope--var">var</span>
|
|
529
|
+
<span class="aimd-field__name aimd-field__metadata-host">
|
|
530
|
+
<span class="aimd-field__title">Sample Name</span>
|
|
531
|
+
<span class="aimd-field__key">sample_name</span>
|
|
532
|
+
<span class="aimd-field__metadata-popover">Human-readable label used throughout this protocol</span>
|
|
533
|
+
</span>
|
|
534
|
+
</span>
|
|
535
|
+
`
|
|
536
|
+
Object.defineProperty(wrapper.querySelector('.aimd-field__label'), 'scrollWidth', {
|
|
537
|
+
configurable: true,
|
|
538
|
+
get: () => 720,
|
|
539
|
+
})
|
|
540
|
+
Object.defineProperty(wrapper.querySelector('.aimd-field__metadata-popover'), 'scrollWidth', {
|
|
541
|
+
configurable: true,
|
|
542
|
+
get: () => 680,
|
|
543
|
+
})
|
|
544
|
+
document.body.appendChild(wrapper)
|
|
545
|
+
|
|
546
|
+
expect(measureVarLabelWidth(wrapper)).toBeLessThan(240)
|
|
547
|
+
})
|
|
548
|
+
})
|
|
549
|
+
|
|
417
550
|
// ---------------------------------------------------------------------------
|
|
418
551
|
// syncAutoWrapTextareaHeight
|
|
419
552
|
// ---------------------------------------------------------------------------
|
package/src/composables/index.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { captureFocusSnapshot, restoreFocusSnapshot } from './useFocusManagement'
|
|
2
2
|
export type { FocusSnapshot } from './useFocusManagement'
|
|
3
|
+
export { createChainedElementRenderer, useCodeBlockRendering } from './useCodeBlockRendering'
|
|
4
|
+
export { createMonacoAutoHeight, estimateMonacoVisualLineCount } from './useMonacoAutoHeight'
|
|
5
|
+
export type { MonacoAutoHeightController, MonacoAutoHeightEditor, MonacoAutoHeightOptions } from './useMonacoAutoHeight'
|
|
3
6
|
|
|
4
7
|
export {
|
|
5
8
|
cloneRecordData,
|
|
@@ -47,6 +50,12 @@ export {
|
|
|
47
50
|
formatDateTimeWithTimezone,
|
|
48
51
|
normalizeDateTimeValueWithTimezone,
|
|
49
52
|
formatDateForInput,
|
|
53
|
+
getFileDisplayName,
|
|
54
|
+
getFileInputConfig,
|
|
55
|
+
isFileLikeVarType,
|
|
56
|
+
createSelectedFileValue,
|
|
57
|
+
getVarEnumSelectValue,
|
|
58
|
+
getVarEnumValueFromSelectValue,
|
|
50
59
|
getVarInputDisplayValue,
|
|
51
60
|
parseVarInputValue,
|
|
52
61
|
calculateVarStackWidth,
|
|
@@ -55,7 +64,7 @@ export {
|
|
|
55
64
|
syncAutoWrapTextareaHeight,
|
|
56
65
|
applyVarStackWidth,
|
|
57
66
|
} from './useVarHelpers'
|
|
58
|
-
export type { VarInputKind } from './useVarHelpers'
|
|
67
|
+
export type { AimdVarEnumOption, FileInputConfig, FileInputDisplayKind, VarInputKind } from './useVarHelpers'
|
|
59
68
|
|
|
60
69
|
export {
|
|
61
70
|
AIMD_DNA_SEQUENCE_FORMAT,
|
|
@@ -77,6 +86,23 @@ export {
|
|
|
77
86
|
export { useClientAssignerRunner } from './useClientAssignerRunner'
|
|
78
87
|
export type { ClientAssignerRunnerOptions } from './useClientAssignerRunner'
|
|
79
88
|
|
|
89
|
+
export {
|
|
90
|
+
applyAimdAssignedFieldsToRecord,
|
|
91
|
+
buildAimdAssignerDependentData,
|
|
92
|
+
extractAimdAssignedFields,
|
|
93
|
+
getAimdAssignerDependentFields,
|
|
94
|
+
getAimdAssignerFieldKey,
|
|
95
|
+
getAimdAssignerFieldNameSets,
|
|
96
|
+
getAimdAssignerMode,
|
|
97
|
+
getAimdAssignerPayloadFieldKey,
|
|
98
|
+
isReadonlyAimdAssignerMode,
|
|
99
|
+
normalizeAimdAssignerDependentData,
|
|
100
|
+
normalizeAimdAssignerDependentValue,
|
|
101
|
+
normalizeAimdAssignerMode,
|
|
102
|
+
resolveAimdAssigners,
|
|
103
|
+
} from './useAssignerRunner'
|
|
104
|
+
export type { AimdResolvedAssigner } from './useAssignerRunner'
|
|
105
|
+
|
|
80
106
|
export {
|
|
81
107
|
useVarTableDragDrop,
|
|
82
108
|
getVarTableRowKey,
|