@selfhelp/shared 1.10.0 → 1.12.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.
@@ -8,7 +8,6 @@ interface ILoginStyle extends IStyleWithSpacing {
8
8
  label_pw_reset?: IContentField<string>;
9
9
  alert_fail?: IContentField<string>;
10
10
  login_title?: IContentField<string>;
11
- type?: IContentField<string>;
12
11
  /** Label of the link that opens the registration page. */
13
12
  label_register?: IContentField<string>;
14
13
  }
@@ -79,11 +78,8 @@ interface IValidateStyle extends IStyleWithSpacing {
79
78
  interface IResetPasswordStyle extends IStyleWithSpacing {
80
79
  style_name: 'reset-password';
81
80
  label_pw_reset?: IContentField<string>;
82
- type?: IContentField<string>;
83
81
  alert_success?: IContentField<string>;
84
82
  placeholder?: IContentField<string>;
85
- subject_user?: IContentField<string>;
86
- is_html?: IContentField<string>;
87
83
  reset_title?: IContentField<string>;
88
84
  reset_label_pw?: IContentField<string>;
89
85
  reset_pw_placeholder?: IContentField<string>;
@@ -202,12 +198,10 @@ interface IContainerStyle extends IStyleWithSpacing {
202
198
  web_fluid?: IContentField<string>;
203
199
  web_px?: IContentField<TMantineSpacing>;
204
200
  web_py?: IContentField<TMantineSpacing>;
205
- use_web_style?: IContentField<string>;
206
201
  }
207
202
  interface IBoxStyle extends IStyleWithSpacing {
208
203
  style_name: 'box';
209
204
  content?: IContentField<string>;
210
- use_web_style?: IContentField<string>;
211
205
  }
212
206
  interface IFlexStyle extends IStyleWithSpacing {
213
207
  style_name: 'flex';
@@ -255,7 +249,6 @@ interface IGridStyle extends IStyleWithSpacing {
255
249
  web_grid_overflow?: IContentField<string>;
256
250
  web_width?: IContentField<TMantineWidth>;
257
251
  web_height?: IContentField<TMantineHeight>;
258
- use_web_style?: IContentField<string>;
259
252
  }
260
253
  interface IGridColumnStyle extends IStyleWithSpacing {
261
254
  style_name: 'grid-column';
@@ -265,7 +258,6 @@ interface IGridColumnStyle extends IStyleWithSpacing {
265
258
  web_grid_grow?: IContentField<string>;
266
259
  web_width?: IContentField<TMantineWidth>;
267
260
  web_height?: IContentField<TMantineHeight>;
268
- use_web_style?: IContentField<string>;
269
261
  }
270
262
  interface ISpaceStyle extends IStyleWithSpacing {
271
263
  style_name: 'space';
@@ -280,7 +272,6 @@ interface IDividerStyle extends IBaseStyle {
280
272
  web_divider_label_position?: IContentField<string>;
281
273
  shared_orientation?: IContentField<TMantineOrientation>;
282
274
  web_color?: IContentField<TMantineColor>;
283
- use_web_style?: IContentField<string>;
284
275
  }
285
276
  interface IPaperStyle extends IStyleWithSpacing {
286
277
  style_name: 'paper';
@@ -289,7 +280,6 @@ interface IPaperStyle extends IStyleWithSpacing {
289
280
  web_px?: IContentField<TMantineSpacing>;
290
281
  web_py?: IContentField<TMantineSpacing>;
291
282
  web_border?: IContentField<TMantineBorder>;
292
- use_web_style?: IContentField<string>;
293
283
  }
294
284
  interface ICenterStyle extends IBaseStyle {
295
285
  style_name: 'center';
@@ -315,22 +305,18 @@ interface ICardStyle extends IStyleWithSpacing {
315
305
  web_card_shadow?: IContentField<TMantineCardShadow>;
316
306
  web_border?: IContentField<TMantineBorder>;
317
307
  shared_radius?: IContentField<TSharedRadius>;
318
- use_web_style?: IContentField<string>;
319
308
  }
320
309
  interface ICardSegmentStyle extends IStyleWithSpacing {
321
310
  style_name: 'card-segment';
322
- use_web_style?: IContentField<string>;
323
311
  }
324
312
  interface IAspectRatioStyle extends IBaseStyle {
325
313
  style_name: 'aspect-ratio';
326
314
  web_aspect_ratio?: IContentField<string>;
327
- use_web_style?: IContentField<string>;
328
315
  }
329
316
  interface IBackgroundImageStyle extends IStyleWithSpacing {
330
317
  style_name: 'background-image';
331
318
  img_src?: IContentField<string>;
332
319
  shared_radius?: IContentField<TSharedRadius>;
333
- use_web_style?: IContentField<string>;
334
320
  }
335
321
  /**
336
322
  * Renders content referenced from another section. Has no own fields; the
@@ -369,7 +355,6 @@ interface ITitleStyle extends IStyleWithSpacing {
369
355
  shared_size?: IContentField<TMantineSize>;
370
356
  web_title_text_wrap?: IContentField<TMantineTitleTextWrap>;
371
357
  web_title_line_clamp?: IContentField<TMantineTitleLineClamp>;
372
- use_web_style?: IContentField<string>;
373
358
  }
374
359
  interface ITextStyle extends IStyleWithSpacing {
375
360
  style_name: 'text';
@@ -387,13 +372,11 @@ interface ITextStyle extends IStyleWithSpacing {
387
372
  web_text_line_clamp?: IContentField<TMantineLineClamp>;
388
373
  web_text_inherit?: IContentField<TMantineTextInherit>;
389
374
  web_text_span?: IContentField<TMantineTextSpan>;
390
- use_web_style?: IContentField<string>;
391
375
  }
392
376
  interface ICodeStyle extends IStyleWithSpacing {
393
377
  style_name: 'code';
394
378
  web_code_block?: IContentField<string>;
395
379
  web_color?: IContentField<TMantineColor>;
396
- use_web_style?: IContentField<string>;
397
380
  content?: IContentField<string>;
398
381
  }
399
382
  interface IHighlightStyle extends IStyleWithSpacing {
@@ -401,7 +384,6 @@ interface IHighlightStyle extends IStyleWithSpacing {
401
384
  text?: IContentField<string>;
402
385
  web_highlight_highlight?: IContentField<string>;
403
386
  web_color?: IContentField<TMantineColor>;
404
- use_web_style?: IContentField<string>;
405
387
  }
406
388
  interface IBlockquoteStyle extends IStyleWithSpacing {
407
389
  style_name: 'blockquote';
@@ -410,7 +392,6 @@ interface IBlockquoteStyle extends IStyleWithSpacing {
410
392
  web_left_icon?: IContentField<string>;
411
393
  web_icon_size?: IContentField<TMantineIconSize>;
412
394
  web_color?: IContentField<TMantineColor>;
413
- use_web_style?: IContentField<string>;
414
395
  }
415
396
  interface IHtmlTagStyle extends IBaseStyle {
416
397
  style_name: 'html-tag';
@@ -421,11 +402,9 @@ interface IKbdStyle extends IStyleWithSpacing {
421
402
  style_name: 'kbd';
422
403
  label?: IContentField<string>;
423
404
  shared_size?: IContentField<TMantineSize>;
424
- use_web_style?: IContentField<string>;
425
405
  }
426
406
  interface ITypographyStyle extends IStyleWithSpacing {
427
407
  style_name: 'typography';
428
- use_web_style?: IContentField<string>;
429
408
  }
430
409
  interface IFieldsetStyle extends IStyleWithSpacing {
431
410
  style_name: 'fieldset';
@@ -433,7 +412,6 @@ interface IFieldsetStyle extends IStyleWithSpacing {
433
412
  legend?: IContentField<string>;
434
413
  web_fieldset_variant?: IContentField<TMantineFieldsetVariant>;
435
414
  shared_radius?: IContentField<TMantineRadius>;
436
- use_web_style?: IContentField<string>;
437
415
  disabled?: IContentField<string>;
438
416
  }
439
417
  interface ISpoilerStyle extends IStyleWithSpacing {
@@ -441,7 +419,6 @@ interface ISpoilerStyle extends IStyleWithSpacing {
441
419
  web_height?: IContentField<TMantineSpoilerMaxHeight>;
442
420
  web_spoiler_show_label?: IContentField<string>;
443
421
  web_spoiler_hide_label?: IContentField<string>;
444
- use_web_style?: IContentField<string>;
445
422
  }
446
423
 
447
424
  type TMantineImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
@@ -457,7 +434,6 @@ interface IImageStyle extends IStyleWithSpacing {
457
434
  web_width?: IContentField<TMantineWidth>;
458
435
  web_height?: IContentField<TMantineHeight>;
459
436
  shared_radius?: IContentField<TMantineRadius>;
460
- use_web_style?: IContentField<string>;
461
437
  }
462
438
  interface IVideoStyle extends IBaseStyle {
463
439
  style_name: 'video';
@@ -497,7 +473,6 @@ interface ICarouselStyle extends IStyleWithSpacing {
497
473
  web_carousel_in_view_threshold?: IContentField<string>;
498
474
  web_carousel_duration?: IContentField<string>;
499
475
  web_carousel_embla_options?: IContentField<string>;
500
- use_web_style?: IContentField<string>;
501
476
  }
502
477
 
503
478
  interface IButtonStyle extends IStyleWithSpacing {
@@ -512,7 +487,6 @@ interface IButtonStyle extends IStyleWithSpacing {
512
487
  web_compact?: IContentField<string>;
513
488
  web_auto_contrast?: IContentField<string>;
514
489
  is_link?: IContentField<string>;
515
- use_web_style?: IContentField<string>;
516
490
  disabled?: IContentField<string>;
517
491
  open_in_new_tab?: IContentField<string>;
518
492
  page_keyword?: IContentField<string>;
@@ -541,19 +515,16 @@ interface IActionIconStyle extends IStyleWithSpacing {
541
515
  page_keyword?: IContentField<string>;
542
516
  open_in_new_tab?: IContentField<string>;
543
517
  disabled?: IContentField<string>;
544
- use_web_style?: IContentField<string>;
545
518
  }
546
519
  interface IAlertStyle extends IStyleWithSpacing {
547
520
  style_name: 'alert';
548
- web_alert_title?: IContentField<string>;
549
- close_button_label?: IContentField<string>;
521
+ alert_title?: IContentField<string>;
550
522
  web_variant?: IContentField<TMantineVariant>;
551
523
  web_color?: IContentField<TMantineColor>;
552
524
  shared_radius?: IContentField<TSharedRadius>;
553
525
  web_left_icon?: IContentField<string>;
554
526
  web_with_close_button?: IContentField<string>;
555
527
  content?: IContentField<string>;
556
- use_web_style?: IContentField<string>;
557
528
  }
558
529
  interface IBadgeStyle extends IStyleWithSpacing {
559
530
  style_name: 'badge';
@@ -563,7 +534,6 @@ interface IBadgeStyle extends IStyleWithSpacing {
563
534
  web_left_icon?: IContentField<string>;
564
535
  shared_radius?: IContentField<TSharedRadius>;
565
536
  web_color?: IContentField<TMantineColor>;
566
- use_web_style?: IContentField<string>;
567
537
  web_right_icon?: IContentField<string>;
568
538
  web_auto_contrast?: IContentField<string>;
569
539
  }
@@ -574,7 +544,6 @@ interface IAvatarStyle extends IStyleWithSpacing {
574
544
  shared_size?: IContentField<TSharedSize>;
575
545
  shared_radius?: IContentField<TSharedRadius>;
576
546
  web_color?: IContentField<TMantineColor>;
577
- use_web_style?: IContentField<string>;
578
547
  web_left_icon?: IContentField<string>;
579
548
  web_avatar_initials?: IContentField<string>;
580
549
  img_src?: IContentField<string>;
@@ -589,7 +558,6 @@ interface IChipStyle extends IStyleWithSpacing {
589
558
  web_chip_checked?: IContentField<string>;
590
559
  web_chip_multiple?: IContentField<string>;
591
560
  disabled?: IContentField<string>;
592
- use_web_style?: IContentField<string>;
593
561
  web_left_icon?: IContentField<string>;
594
562
  web_icon_size?: IContentField<TMantineIconSize>;
595
563
  name?: IContentField<string>;
@@ -615,7 +583,6 @@ interface IIndicatorStyle extends IBaseStyle {
615
583
  web_border?: IContentField<string>;
616
584
  shared_radius?: IContentField<TSharedRadius>;
617
585
  web_color?: IContentField<TMantineColor>;
618
- use_web_style?: IContentField<string>;
619
586
  }
620
587
  interface IThemeIconStyle extends IStyleWithSpacing {
621
588
  style_name: 'theme-icon';
@@ -623,7 +590,6 @@ interface IThemeIconStyle extends IStyleWithSpacing {
623
590
  shared_size?: IContentField<TSharedSize>;
624
591
  shared_radius?: IContentField<TSharedRadius>;
625
592
  web_color?: IContentField<TMantineColor>;
626
- use_web_style?: IContentField<string>;
627
593
  web_left_icon?: IContentField<string>;
628
594
  }
629
595
  interface INotificationStyle extends IStyleWithSpacing {
@@ -636,7 +602,6 @@ interface INotificationStyle extends IStyleWithSpacing {
636
602
  web_notification_with_close_button?: IContentField<string>;
637
603
  web_border?: IContentField<string>;
638
604
  shared_radius?: IContentField<TSharedRadius>;
639
- use_web_style?: IContentField<string>;
640
605
  }
641
606
 
642
607
  type TMantineTextInputVariant = 'default' | 'filled' | 'unstyled';
@@ -652,7 +617,6 @@ interface IFormStyle extends IStyleWithSpacing {
652
617
  btn_save_label?: IContentField<string>;
653
618
  alert_success?: IContentField<string>;
654
619
  name?: IContentField<string>;
655
- is_log?: IContentField<string>;
656
620
  redirect_at_end?: IContentField<string>;
657
621
  btn_cancel_url?: IContentField<string>;
658
622
  btn_cancel_label?: IContentField<string>;
@@ -663,7 +627,6 @@ interface IFormStyle extends IStyleWithSpacing {
663
627
  btn_cancel_color?: IContentField<string>;
664
628
  buttons_variant?: IContentField<string>;
665
629
  buttons_position?: IContentField<string>;
666
- use_web_style?: IContentField<string>;
667
630
  }
668
631
  interface IFormLogStyle extends IFormStyle {
669
632
  style_name: 'form-log';
@@ -696,7 +659,6 @@ interface ITextInputStyle extends IStyleWithSpacing {
696
659
  disabled?: IContentField<string>;
697
660
  web_left_icon?: IContentField<string>;
698
661
  web_right_icon?: IContentField<string>;
699
- use_web_style?: IContentField<string>;
700
662
  shared_size?: IContentField<TSharedSize>;
701
663
  shared_radius?: IContentField<TSharedRadius>;
702
664
  web_text_input_variant?: IContentField<TMantineTextInputVariant>;
@@ -723,7 +685,6 @@ interface ITextareaStyle extends IStyleWithSpacing {
723
685
  shared_size?: IContentField<TSharedSize>;
724
686
  shared_radius?: IContentField<TSharedRadius>;
725
687
  web_textarea_variant?: IContentField<TMantineTextareaVariant>;
726
- use_web_style?: IContentField<string>;
727
688
  translatable?: IContentField<TMantineTranslatable>;
728
689
  }
729
690
  interface IRichTextEditorStyle extends IStyleWithSpacing {
@@ -740,7 +701,6 @@ interface IRichTextEditorStyle extends IStyleWithSpacing {
740
701
  web_rich_text_editor_bubble_menu?: IContentField<string>;
741
702
  web_rich_text_editor_text_color?: IContentField<string>;
742
703
  web_rich_text_editor_task_list?: IContentField<string>;
743
- use_web_style?: IContentField<string>;
744
704
  translatable?: IContentField<TMantineTranslatable>;
745
705
  }
746
706
  interface ISelectStyle extends IBaseStyle {
@@ -777,7 +737,6 @@ interface IRadioStyle extends IStyleWithSpacing {
777
737
  web_tooltip_label?: IContentField<string>;
778
738
  web_tooltip_position?: IContentField<string>;
779
739
  disabled?: IContentField<string>;
780
- use_web_style?: IContentField<string>;
781
740
  web_use_input_wrapper?: IContentField<string>;
782
741
  }
783
742
  interface ICheckboxStyle extends IStyleWithSpacing {
@@ -794,7 +753,6 @@ interface ICheckboxStyle extends IStyleWithSpacing {
794
753
  shared_size?: IContentField<TSharedSize>;
795
754
  shared_radius?: IContentField<TSharedRadius>;
796
755
  web_color?: IContentField<TMantineColor>;
797
- use_web_style?: IContentField<string>;
798
756
  web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
799
757
  }
800
758
  interface ISliderStyle extends IStyleWithSpacing {
@@ -810,7 +768,6 @@ interface ISliderStyle extends IStyleWithSpacing {
810
768
  web_color?: IContentField<TMantineColor>;
811
769
  shared_radius?: IContentField<TSharedRadius>;
812
770
  disabled?: IContentField<string>;
813
- use_web_style?: IContentField<string>;
814
771
  web_slider_marks_values?: IContentField<string>;
815
772
  web_slider_show_label?: IContentField<string>;
816
773
  web_slider_labels_always_on?: IContentField<string>;
@@ -835,7 +792,6 @@ interface IRangeSliderStyle extends IStyleWithSpacing {
835
792
  web_color?: IContentField<TMantineColor>;
836
793
  shared_radius?: IContentField<TSharedRadius>;
837
794
  disabled?: IContentField<string>;
838
- use_web_style?: IContentField<string>;
839
795
  }
840
796
  interface IDatePickerStyle extends IStyleWithSpacing {
841
797
  style_name: 'datepicker';
@@ -867,7 +823,6 @@ interface IDatePickerStyle extends IStyleWithSpacing {
867
823
  web_datepicker_with_seconds?: IContentField<string>;
868
824
  shared_size?: IContentField<TSharedSize>;
869
825
  shared_radius?: IContentField<TSharedRadius>;
870
- use_web_style?: IContentField<string>;
871
826
  }
872
827
  interface ISwitchStyle extends IStyleWithSpacing {
873
828
  style_name: 'switch';
@@ -879,7 +834,6 @@ interface ISwitchStyle extends IStyleWithSpacing {
879
834
  web_color?: IContentField<TMantineColor>;
880
835
  shared_radius?: IContentField<TSharedRadius>;
881
836
  disabled?: IContentField<string>;
882
- use_web_style?: IContentField<string>;
883
837
  name?: IContentField<string>;
884
838
  is_required?: IContentField<string>;
885
839
  web_label_position?: IContentField<string>;
@@ -893,7 +847,6 @@ interface IComboboxStyle extends IStyleWithSpacing {
893
847
  placeholder?: IContentField<string>;
894
848
  web_combobox_options?: IContentField<string>;
895
849
  disabled?: IContentField<string>;
896
- use_web_style?: IContentField<string>;
897
850
  label?: IContentField<string>;
898
851
  description?: IContentField<string>;
899
852
  name?: IContentField<string>;
@@ -919,7 +872,6 @@ interface IColorInputStyle extends IStyleWithSpacing {
919
872
  description?: IContentField<string>;
920
873
  is_required?: IContentField<string>;
921
874
  disabled?: IContentField<string>;
922
- use_web_style?: IContentField<string>;
923
875
  }
924
876
  interface IColorPickerStyle extends IStyleWithSpacing {
925
877
  style_name: 'color-picker';
@@ -939,7 +891,6 @@ interface IColorPickerStyle extends IStyleWithSpacing {
939
891
  value?: IContentField<string>;
940
892
  description?: IContentField<string>;
941
893
  is_required?: IContentField<string>;
942
- use_web_style?: IContentField<string>;
943
894
  }
944
895
  interface IFileInputStyle extends IStyleWithSpacing {
945
896
  style_name: 'file-input';
@@ -955,7 +906,6 @@ interface IFileInputStyle extends IStyleWithSpacing {
955
906
  web_right_icon?: IContentField<string>;
956
907
  placeholder?: IContentField<string>;
957
908
  disabled?: IContentField<string>;
958
- use_web_style?: IContentField<string>;
959
909
  is_required?: IContentField<string>;
960
910
  name?: IContentField<string>;
961
911
  label?: IContentField<string>;
@@ -977,7 +927,6 @@ interface INumberInputStyle extends IStyleWithSpacing {
977
927
  value?: IContentField<string>;
978
928
  is_required?: IContentField<string>;
979
929
  disabled?: IContentField<string>;
980
- use_web_style?: IContentField<string>;
981
930
  }
982
931
  interface ISegmentedControlStyle extends IStyleWithSpacing {
983
932
  style_name: 'segmented-control';
@@ -989,7 +938,6 @@ interface ISegmentedControlStyle extends IStyleWithSpacing {
989
938
  fullwidth?: IContentField<string>;
990
939
  disabled?: IContentField<string>;
991
940
  readonly?: IContentField<string>;
992
- use_web_style?: IContentField<string>;
993
941
  web_segmented_control_item_border?: IContentField<string>;
994
942
  label?: IContentField<string>;
995
943
  description?: IContentField<string>;
@@ -1013,7 +961,6 @@ interface IRatingStyle extends IStyleWithSpacing {
1013
961
  web_rating_highlight_selected_only?: IContentField<string>;
1014
962
  shared_size?: IContentField<TSharedSize>;
1015
963
  web_color?: IContentField<TMantineColor>;
1016
- use_web_style?: IContentField<string>;
1017
964
  }
1018
965
  interface IProgressStyle extends IStyleWithSpacing {
1019
966
  style_name: 'progress';
@@ -1024,13 +971,11 @@ interface IProgressStyle extends IStyleWithSpacing {
1024
971
  web_progress_striped?: IContentField<string>;
1025
972
  web_progress_animated?: IContentField<string>;
1026
973
  web_progress_transition_duration?: IContentField<TMantineProgressTransition>;
1027
- use_web_style?: IContentField<string>;
1028
974
  }
1029
975
  interface IProgressRootStyle extends IBaseStyle {
1030
976
  style_name: 'progress-root';
1031
977
  shared_size?: IContentField<TSharedSize>;
1032
978
  web_progress_auto_contrast?: IContentField<string>;
1033
- use_web_style?: IContentField<string>;
1034
979
  }
1035
980
  interface IProgressSectionStyle extends IBaseStyle {
1036
981
  style_name: 'progress-section';
@@ -1041,7 +986,6 @@ interface IProgressSectionStyle extends IBaseStyle {
1041
986
  label?: IContentField<string>;
1042
987
  web_tooltip_label?: IContentField<string>;
1043
988
  web_tooltip_position?: IContentField<string>;
1044
- use_web_style?: IContentField<string>;
1045
989
  }
1046
990
  interface IShowUserInputEntry {
1047
991
  record_id: number;
@@ -1095,7 +1039,6 @@ interface IAccordionStyle extends IStyleWithSpacing {
1095
1039
  web_accordion_transition_duration?: IContentField<string>;
1096
1040
  web_accordion_default_value?: IContentField<string>;
1097
1041
  shared_radius?: IContentField<TSharedRadius>;
1098
- use_web_style?: IContentField<string>;
1099
1042
  }
1100
1043
  interface IAccordionItemStyle extends IStyleWithSpacing {
1101
1044
  style_name: 'accordion-item';
@@ -1103,7 +1046,6 @@ interface IAccordionItemStyle extends IStyleWithSpacing {
1103
1046
  label?: IContentField<string>;
1104
1047
  web_accordion_item_icon?: IContentField<string>;
1105
1048
  disabled?: IContentField<string>;
1106
- use_web_style?: IContentField<string>;
1107
1049
  }
1108
1050
  interface ITabsStyle extends IStyleWithSpacing {
1109
1051
  style_name: 'tabs';
@@ -1113,7 +1055,6 @@ interface ITabsStyle extends IStyleWithSpacing {
1113
1055
  web_color?: IContentField<TMantineColor>;
1114
1056
  web_width?: IContentField<TMantineWidth>;
1115
1057
  web_height?: IContentField<TMantineHeight>;
1116
- use_web_style?: IContentField<string>;
1117
1058
  }
1118
1059
  interface ITabStyle extends IBaseStyle {
1119
1060
  style_name: 'tab';
@@ -1123,7 +1064,6 @@ interface ITabStyle extends IBaseStyle {
1123
1064
  web_tab_disabled?: IContentField<string>;
1124
1065
  web_width?: IContentField<TMantineWidth>;
1125
1066
  web_height?: IContentField<TMantineHeight>;
1126
- use_web_style?: IContentField<string>;
1127
1067
  }
1128
1068
  interface ITimelineStyle extends IStyleWithSpacing {
1129
1069
  style_name: 'timeline';
@@ -1133,7 +1073,6 @@ interface ITimelineStyle extends IStyleWithSpacing {
1133
1073
  web_timeline_align?: IContentField<TMantineTimelineAlign>;
1134
1074
  web_timeline_line_variant?: IContentField<TMantineTimelineLineVariant>;
1135
1075
  web_color?: IContentField<TMantineColor>;
1136
- use_web_style?: IContentField<string>;
1137
1076
  }
1138
1077
  /**
1139
1078
  * A single entry inside a `timeline`. Child-only style; placement is enforced
@@ -1145,14 +1084,12 @@ interface ITimelineItemStyle extends IBaseStyle {
1145
1084
  web_timeline_item_bullet?: IContentField<string>;
1146
1085
  web_timeline_item_line_variant?: IContentField<TMantineTimelineLineVariant>;
1147
1086
  web_color?: IContentField<TMantineColor>;
1148
- use_web_style?: IContentField<string>;
1149
1087
  }
1150
1088
  interface IListStyle extends IStyleWithSpacing {
1151
1089
  style_name: 'list';
1152
1090
  web_list_type?: IContentField<TMantineListType>;
1153
1091
  web_spacing?: IContentField<TMantineSpacing>;
1154
1092
  shared_size?: IContentField<TSharedSize>;
1155
- use_web_style?: IContentField<string>;
1156
1093
  web_list_list_style_type?: IContentField<TMantineListStyleType>;
1157
1094
  web_list_with_padding?: IContentField<TMantineListWithPadding>;
1158
1095
  web_list_center?: IContentField<TMantineListCenter>;
@@ -1162,7 +1099,6 @@ interface IListItemStyle extends IStyleWithSpacing {
1162
1099
  style_name: 'list-item';
1163
1100
  web_list_item_content?: IContentField<string>;
1164
1101
  web_list_item_icon?: IContentField<string>;
1165
- use_web_style?: IContentField<string>;
1166
1102
  }
1167
1103
  interface IEntryListStyle extends IBaseStyle {
1168
1104
  style_name: 'entry-list';
@@ -1257,7 +1193,6 @@ interface IUnknownStyle {
1257
1193
  fields: Record<string, IContentField<unknown>>;
1258
1194
  css?: string;
1259
1195
  css_mobile?: string;
1260
- use_web_style?: IContentField<string>;
1261
1196
  }
1262
1197
 
1263
1198
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selfhelp/shared",
3
- "version": "1.10.0",
3
+ "version": "1.12.0",
4
4
  "description": "Shared TypeScript package for SelfHelp web frontend and mobile app: style registry, types, API contracts, Mantine theme tokens, condition + interpolation engines, CMS class allow-list.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,80 @@
1
+ /*
2
+ SPDX-FileCopyrightText: 2026 Humdek, University of Bern
3
+ SPDX-License-Identifier: MPL-2.0
4
+ */
5
+ /**
6
+ * Mobile UI adapter contract test (mobile rendering plan, section 14 "Shared":
7
+ * "Mobile adapter contract type tests").
8
+ *
9
+ * The contract is the SINGLE public source both mobile tiers implement, so this
10
+ * locks the milestone-one capability set. A capability added or removed without
11
+ * a deliberate contract change (and matching OSS + Pro implementations) fails
12
+ * here. The shapes themselves are enforced at compile time by the consumers
13
+ * (`ossAdapters`/`proAdapters: IMobileUiAdapters` + the app `tsconfig.pro.json`).
14
+ */
15
+ import { describe, expect, it } from 'vitest';
16
+ import type {
17
+ ComponentType,
18
+ } from 'react';
19
+ import type {
20
+ IMobileButtonProps,
21
+ IMobileCardProps,
22
+ IMobileCheckboxProps,
23
+ IMobileContainerProps,
24
+ IMobileInputProps,
25
+ IMobileModalProps,
26
+ IMobileSelectProps,
27
+ IMobileSwitchProps,
28
+ IMobileTextProps,
29
+ IMobileTextareaProps,
30
+ IMobileUiAdapters,
31
+ } from '../mobile-adapters';
32
+
33
+ /** The milestone-one capability set, as named keys. */
34
+ const CONTRACT_CAPABILITIES = [
35
+ 'MobileButton',
36
+ 'MobileText',
37
+ 'MobileContainer',
38
+ 'MobileCard',
39
+ 'MobileInput',
40
+ 'MobileTextarea',
41
+ 'MobileSwitch',
42
+ 'MobileCheckbox',
43
+ 'MobileSelect',
44
+ 'MobileModal',
45
+ ] as const satisfies ReadonlyArray<keyof IMobileUiAdapters>;
46
+
47
+ /**
48
+ * Compile-time exhaustiveness: every `IMobileUiAdapters` key must appear in the
49
+ * list above and vice versa. If a capability is added to the interface without
50
+ * being listed here (or removed), this assignment fails to type-check.
51
+ */
52
+ type ContractKey = keyof IMobileUiAdapters;
53
+ type ListedKey = (typeof CONTRACT_CAPABILITIES)[number];
54
+ const _exhaustiveForward: ListedKey = '' as ContractKey;
55
+ const _exhaustiveBackward: ContractKey = '' as ListedKey;
56
+ void _exhaustiveForward;
57
+ void _exhaustiveBackward;
58
+
59
+ describe('mobile UI adapter contract', () => {
60
+ it('exposes exactly the milestone-one capability set', () => {
61
+ // A trivial component every capability key can hold; proves a complete
62
+ // implementation set is structurally assignable to the contract.
63
+ const stub: ComponentType<never> = () => null;
64
+ const adapters: IMobileUiAdapters = {
65
+ MobileButton: stub as ComponentType<IMobileButtonProps>,
66
+ MobileText: stub as ComponentType<IMobileTextProps>,
67
+ MobileContainer: stub as ComponentType<IMobileContainerProps>,
68
+ MobileCard: stub as ComponentType<IMobileCardProps>,
69
+ MobileInput: stub as ComponentType<IMobileInputProps>,
70
+ MobileTextarea: stub as ComponentType<IMobileTextareaProps>,
71
+ MobileSwitch: stub as ComponentType<IMobileSwitchProps>,
72
+ MobileCheckbox: stub as ComponentType<IMobileCheckboxProps>,
73
+ MobileSelect: stub as ComponentType<IMobileSelectProps>,
74
+ MobileModal: stub as ComponentType<IMobileModalProps>,
75
+ };
76
+
77
+ expect(Object.keys(adapters).sort()).toEqual([...CONTRACT_CAPABILITIES].sort());
78
+ expect(CONTRACT_CAPABILITIES).toHaveLength(10);
79
+ });
80
+ });
@@ -17,3 +17,4 @@ export * from './auth';
17
17
  export * from './api';
18
18
  export * from './distribution';
19
19
  export * from './mantine/common';
20
+ export * from './mobile-adapters';