@medusajs/admin-bundler 3.0.0-snapshot-20250410112222 → 3.0.0-snapshot-20251104004624

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AdminOptions } from '@medusajs/types';
2
- import * as express_serve_static_core from 'express-serve-static-core';
2
+ import { IRouter } from 'express';
3
3
 
4
4
  type BundlerOptions = Required<Pick<AdminOptions, "path">> & Pick<AdminOptions, "vite" | "backendUrl" | "storefrontUrl"> & {
5
5
  outDir: string;
@@ -9,7 +9,7 @@ type BundlerOptions = Required<Pick<AdminOptions, "path">> & Pick<AdminOptions,
9
9
 
10
10
  declare function build(options: BundlerOptions): Promise<void>;
11
11
 
12
- declare function develop(options: BundlerOptions): Promise<express_serve_static_core.Router>;
12
+ declare function develop(options: BundlerOptions): Promise<IRouter>;
13
13
 
14
14
  interface PluginOptions {
15
15
  root: string;
@@ -20,6 +20,6 @@ declare function plugin(options: PluginOptions): Promise<void>;
20
20
  type ServeOptions = {
21
21
  outDir: string;
22
22
  };
23
- declare function serve(options: ServeOptions): Promise<express_serve_static_core.Router>;
23
+ declare function serve(options: ServeOptions): Promise<IRouter>;
24
24
 
25
25
  export { type BundlerOptions, build, develop, plugin, serve };
package/dist/index.js CHANGED
@@ -583,13 +583,10 @@ var require_dist = __commonJS({
583
583
  }
584
584
  },
585
585
  "boxShadow": {
586
- "borders-interactive-with-active": "var(--borders-interactive-with-active)",
587
586
  "buttons-danger-focus": "var(--buttons-danger-focus)",
588
587
  "details-contrast-on-bg-interactive": "var(--details-contrast-on-bg-interactive)",
589
- "borders-interactive-with-focus": "var(--borders-interactive-with-focus)",
590
588
  "borders-error": "var(--borders-error)",
591
589
  "borders-focus": "var(--borders-focus)",
592
- "borders-interactive-with-shadow": "var(--borders-interactive-with-shadow)",
593
590
  "buttons-danger": "var(--buttons-danger)",
594
591
  "buttons-inverted-focus": "var(--buttons-inverted-focus)",
595
592
  "elevation-card-hover": "var(--elevation-card-hover)",
@@ -605,7 +602,10 @@ var require_dist = __commonJS({
605
602
  "elevation-modal": "var(--elevation-modal)",
606
603
  "elevation-code-block": "var(--elevation-code-block)",
607
604
  "buttons-inverted": "var(--buttons-inverted)",
608
- "elevation-commandbar": "var(--elevation-commandbar)"
605
+ "elevation-commandbar": "var(--elevation-commandbar)",
606
+ "borders-interactive-with-focus": "var(--borders-interactive-with-focus)",
607
+ "borders-interactive-with-shadow": "var(--borders-interactive-with-shadow)",
608
+ "borders-interactive-with-active": "var(--borders-interactive-with-active)"
609
609
  }
610
610
  }
611
611
  };
@@ -791,8 +791,8 @@ var require_dist = __commonJS({
791
791
  "--bg-overlay": "rgba(24, 24, 27, 0.4)",
792
792
  "--fg-disabled": "rgba(161, 161, 170, 1)",
793
793
  "--fg-muted": "rgba(113, 113, 122, 1)",
794
- "--alpha-400": "rgba(24, 24, 27, 0.24)",
795
- "--alpha-250": "rgba(24, 24, 27, 0.1)"
794
+ "--alpha-250": "rgba(24, 24, 27, 0.1)",
795
+ "--alpha-400": "rgba(24, 24, 27, 0.24)"
796
796
  }
797
797
  };
798
798
  var components = {
@@ -801,12 +801,10 @@ var require_dist = __commonJS({
801
801
  };
802
802
  var effects = {
803
803
  "dark": {
804
- "--borders-interactive-with-shadow": "0px 1px 2px 0px rgba(219, 234, 254, 0.5), 0px 0px 0px 1px rgba(96, 165, 250, 1)",
805
804
  "--details-contrast-on-bg-interactive": "0px 1px 2px 0px rgba(30, 58, 138, 0.6)",
806
805
  "--details-switch-handle": "0px 0px 2px 1px rgba(255, 255, 255, 1) inset, 0px 1px 0px 0px rgba(255, 255, 255, 1) inset, 0px 0px 0px 0.5px rgba(0, 0, 0, 0.16), 0px 5px 4px 0px rgba(0, 0, 0, 0.1), 0px 3px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.1), 0px 0px 1px 0px rgba(0, 0, 0, 0.1)",
807
806
  "--borders-interactive-with-active": "0px 0px 0px 1px rgba(96, 165, 250, 1), 0px 0px 0px 4px rgba(59, 130, 246, 0.25)",
808
807
  "--borders-focus": "0px 0px 0px 1px rgba(24, 24, 27, 1), 0px 0px 0px 3px rgba(96, 165, 250, 0.8)",
809
- "--borders-interactive-with-focus": "0px 1px 2px 0px rgba(219, 234, 254, 0.5), 0px 0px 0px 1px rgba(96, 165, 250, 1), 0px 0px 0px 2px rgba(24, 24, 27, 1), 0px 0px 0px 4px rgba(96, 165, 250, 0.8)",
810
808
  "--details-switch-background-focus": "0px 0px 0px 1px rgba(24, 24, 27, 1), 0px 0px 0px 3px rgba(96, 165, 250, 0.8), 0px 1px 1px 0px rgba(0, 0, 0, 0.1) inset, 0px 2px 4px 0px rgba(0, 0, 0, 0.1) inset, 0px 0px 0px 0.75px rgba(255, 255, 255, 0.12) inset, 0px 0px 8px 0px rgba(0, 0, 0, 0.1) inset",
811
809
  "--buttons-danger": "0px -1px 0px 0px rgba(255, 255, 255, 0.16), 0px 0px 0px 1px rgba(255, 255, 255, 0.12), 0px 0px 0px 1px rgba(159, 18, 57, 1), 0px 0px 1px 1.5px rgba(0, 0, 0, 0.24), 0px 2px 2px 0px rgba(0, 0, 0, 0.24)",
812
810
  "--buttons-danger-focus": "0px -1px 0px 0px rgba(255, 255, 255, 0.16), 0px 0px 0px 1px rgba(255, 255, 255, 0.12), 0px 0px 0px 1px rgba(159, 18, 57, 1), 0px 0px 0px 2px rgba(24, 24, 27, 1), 0px 0px 0px 4px rgba(96, 165, 250, 0.8)",
@@ -823,16 +821,15 @@ var require_dist = __commonJS({
823
821
  "--buttons-neutral-focus": "0px -1px 0px 0px rgba(255, 255, 255, 0.06), 0px 0px 0px 1px rgba(255, 255, 255, 0.06), 0px 0px 0px 1px rgba(39, 39, 42, 1), 0px 0px 0px 2px rgba(24, 24, 27, 1), 0px 0px 0px 4px rgba(96, 165, 250, 0.8)",
824
822
  "--elevation-modal": "0px 0px 0px 1px rgba(24, 24, 27, 1) inset, 0px 0px 0px 1.5px rgba(255, 255, 255, 0.06) inset, 0px -1px 0px 0px rgba(255, 255, 255, 0.04), 0px 0px 0px 1px rgba(255, 255, 255, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.32), 0px 8px 16px 0px rgba(0, 0, 0, 0.32)",
825
823
  "--elevation-commandbar": "0px 0px 0px 0.75px rgba(24, 24, 27, 1) inset, 0px 0px 0px 1.25px rgba(255, 255, 255, 0.1) inset, 0px 4px 8px 0px rgba(0, 0, 0, 0.32), 0px 8px 16px 0px rgba(0, 0, 0, 0.32)",
826
- "--elevation-tooltip": "0px -1px 0px 0px rgba(255, 255, 255, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.32), 0px 0px 0px 1px rgba(255, 255, 255, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.32)"
824
+ "--elevation-tooltip": "0px -1px 0px 0px rgba(255, 255, 255, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.32), 0px 0px 0px 1px rgba(255, 255, 255, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.32)",
825
+ "--borders-interactive-with-focus": "0px -1px 2px 0px rgba(219, 234, 254, 0.5), 0px 0px 0px 1px rgba(96, 165, 250, 1), 0px 0px 0px 2px rgba(24, 24, 27, 1), 0px 0px 0px 4px rgba(96, 165, 250, 0.8)",
826
+ "--borders-interactive-with-shadow": "0px -1px 2px 0px rgba(219, 234, 254, 0.5), 0px 0px 0px 1px rgba(96, 165, 250, 1)"
827
827
  },
828
828
  "light": {
829
- "--borders-interactive-with-active": "0px 0px 0px 1px rgba(59, 130, 246, 1), 0px 0px 0px 4px rgba(59, 130, 246, 0.2)",
830
829
  "--buttons-danger-focus": "0px 0.75px 0px 0px rgba(255, 255, 255, 0.2) inset, 0px 1px 2px 0px rgba(190, 18, 60, 0.4), 0px 0px 0px 1px rgba(190, 18, 60, 1), 0px 0px 0px 2px rgba(255, 255, 255, 1), 0px 0px 0px 4px rgba(59, 130, 246, 0.6)",
831
830
  "--details-contrast-on-bg-interactive": "0px 1px 2px 0px rgba(30, 58, 138, 0.6)",
832
- "--borders-interactive-with-focus": "0px 1px 2px 0px rgba(30, 58, 138, 0.5), 0px 0px 0px 1px rgba(59, 130, 246, 1), 0px 0px 0px 2px rgba(255, 255, 255, 1), 0px 0px 0px 4px rgba(59, 130, 246, 0.6)",
833
831
  "--borders-error": "0px 0px 0px 1px rgba(225, 29, 72, 1), 0px 0px 0px 3px rgba(225, 29, 72, 0.15)",
834
832
  "--borders-focus": "0px 0px 0px 1px rgba(255, 255, 255, 1), 0px 0px 0px 3px rgba(59, 130, 246, 0.6)",
835
- "--borders-interactive-with-shadow": "0px 1px 2px 0px rgba(30, 58, 138, 0.5), 0px 0px 0px 1px rgba(59, 130, 246, 1)",
836
833
  "--buttons-danger": "0px 0.75px 0px 0px rgba(255, 255, 255, 0.2) inset, 0px 1px 2px 0px rgba(190, 18, 60, 0.4), 0px 0px 0px 1px rgba(190, 18, 60, 1)",
837
834
  "--buttons-inverted-focus": "0px 0.75px 0px 0px rgba(255, 255, 255, 0.2) inset, 0px 1px 2px 0px rgba(0, 0, 0, 0.4), 0px 0px 0px 1px rgba(24, 24, 27, 1), 0px 0px 0px 2px rgba(255, 255, 255, 1), 0px 0px 0px 4px rgba(59, 130, 246, 0.6)",
838
835
  "--elevation-card-hover": "0px 0px 0px 1px rgba(0, 0, 0, 0.08), 0px 1px 2px -1px rgba(0, 0, 0, 0.08), 0px 2px 8px 0px rgba(0, 0, 0, 0.1)",
@@ -848,7 +845,10 @@ var require_dist = __commonJS({
848
845
  "--elevation-modal": "0px 0px 0px 1px rgba(255, 255, 255, 1) inset, 0px 0px 0px 1.5px rgba(228, 228, 231, 0.6) inset, 0px 0px 0px 1px rgba(0, 0, 0, 0.08), 0px 8px 16px 0px rgba(0, 0, 0, 0.08), 0px 16px 32px 0px rgba(0, 0, 0, 0.08)",
849
846
  "--elevation-code-block": "0px 0px 0px 1px rgba(24, 24, 27, 1) inset, 0px 0px 0px 1.5px rgba(255, 255, 255, 0.2) inset",
850
847
  "--buttons-inverted": "0px 0.75px 0px 0px rgba(255, 255, 255, 0.2) inset, 0px 1px 2px 0px rgba(0, 0, 0, 0.4), 0px 0px 0px 1px rgba(24, 24, 27, 1)",
851
- "--elevation-commandbar": "0px 0px 0px 0.75px rgba(39, 39, 42, 1) inset, 0px 0px 0px 1.25px rgba(255, 255, 255, 0.3) inset, 0px 8px 16px 0px rgba(0, 0, 0, 0.08), 0px 16px 32px 0px rgba(0, 0, 0, 0.08)"
848
+ "--elevation-commandbar": "0px 0px 0px 0.75px rgba(39, 39, 42, 1) inset, 0px 0px 0px 1.25px rgba(255, 255, 255, 0.3) inset, 0px 8px 16px 0px rgba(0, 0, 0, 0.08), 0px 16px 32px 0px rgba(0, 0, 0, 0.08)",
849
+ "--borders-interactive-with-focus": "0px 1px 2px 0px rgba(30, 58, 138, 0.5), 0px 0px 0px 1px rgba(37, 99, 235, 1), 0px 0px 0px 2px rgba(255, 255, 255, 1), 0px 0px 0px 4px rgba(37, 99, 235, 0.6)",
850
+ "--borders-interactive-with-shadow": "0px 1px 2px 0px rgba(30, 58, 138, 0.5), 0px 0px 0px 1px rgba(37, 99, 235, 1)",
851
+ "--borders-interactive-with-active": "0px 0px 0px 4px rgba(37, 99, 235, 0.2), 0px 0px 0px 1px rgba(37, 99, 235, 1)"
852
852
  }
853
853
  };
854
854
  var typography = {
@@ -888,12 +888,6 @@ var require_dist = __commonJS({
888
888
  "fontWeight": "500",
889
889
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
890
890
  },
891
- ".txt-xlarge": {
892
- "fontSize": "1.125rem",
893
- "lineHeight": "1.6875rem",
894
- "fontWeight": "400",
895
- "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
896
- },
897
891
  ".txt-compact-small-plus": {
898
892
  "fontSize": "0.8125rem",
899
893
  "lineHeight": "1.25rem",
@@ -912,12 +906,6 @@ var require_dist = __commonJS({
912
906
  "fontWeight": "500",
913
907
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
914
908
  },
915
- ".txt-medium": {
916
- "fontSize": "0.875rem",
917
- "lineHeight": "1.3125rem",
918
- "fontWeight": "400",
919
- "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
920
- },
921
909
  ".txt-compact-large": {
922
910
  "fontSize": "1rem",
923
911
  "lineHeight": "1.25rem",
@@ -942,107 +930,137 @@ var require_dist = __commonJS({
942
930
  "fontWeight": "400",
943
931
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
944
932
  },
945
- ".txt-xsmall-plus": {
946
- "fontSize": "0.75rem",
947
- "lineHeight": "1.125rem",
933
+ ".h4-webs": {
934
+ "fontSize": "1.5rem",
935
+ "lineHeight": "1.875rem",
948
936
  "fontWeight": "500",
949
937
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
950
938
  },
951
- ".txt-small": {
952
- "fontSize": "0.8125rem",
953
- "lineHeight": "1.21875rem",
954
- "fontWeight": "400",
939
+ ".h2-core": {
940
+ "fontSize": "1rem",
941
+ "lineHeight": "1.5rem",
942
+ "fontWeight": "500",
955
943
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
956
944
  },
957
- ".txt-small-plus": {
958
- "fontSize": "0.8125rem",
959
- "lineHeight": "1.21875rem",
945
+ ".h3-core": {
946
+ "fontSize": "0.875rem",
947
+ "lineHeight": "1.25rem",
960
948
  "fontWeight": "500",
961
949
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
962
950
  },
963
- ".txt-large": {
964
- "fontSize": "1rem",
965
- "lineHeight": "1.5rem",
966
- "fontWeight": "400",
951
+ ".h1-core": {
952
+ "fontSize": "1.125rem",
953
+ "lineHeight": "1.75rem",
954
+ "fontWeight": "500",
967
955
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
968
956
  },
969
- ".txt-medium-plus": {
957
+ ".h1-docs": {
958
+ "fontSize": "1.5rem",
959
+ "lineHeight": "1.875rem",
960
+ "fontWeight": "500",
961
+ "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
962
+ },
963
+ ".h4-docs": {
970
964
  "fontSize": "0.875rem",
971
- "lineHeight": "1.3125rem",
965
+ "lineHeight": "1.399999976158142rem",
972
966
  "fontWeight": "500",
973
967
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
974
968
  },
975
- ".txt-xsmall": {
969
+ ".code-label-plus": {
970
+ "fontSize": "0.75rem",
971
+ "lineHeight": "0.9375rem",
972
+ "fontWeight": "500",
973
+ "fontFamily": "Roboto Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
974
+ },
975
+ ".code-label": {
976
976
  "fontSize": "0.75rem",
977
- "lineHeight": "1.125rem",
977
+ "lineHeight": "0.9375rem",
978
978
  "fontWeight": "400",
979
+ "fontFamily": "Roboto Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
980
+ },
981
+ ".code-paragraph": {
982
+ "fontSize": "0.75rem",
983
+ "lineHeight": "1.2000000476837158rem",
984
+ "fontWeight": "400",
985
+ "fontFamily": "Roboto Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
986
+ },
987
+ ".code-paragraph-plus": {
988
+ "fontSize": "0.75rem",
989
+ "lineHeight": "1.2000000476837158rem",
990
+ "fontWeight": "500",
991
+ "fontFamily": "Roboto Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
992
+ },
993
+ ".txt-xsmall-plus": {
994
+ "fontSize": "0.75rem",
995
+ "lineHeight": "1.2000000476837158rem",
996
+ "fontWeight": "500",
979
997
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
980
998
  },
981
- ".txt-xlarge-plus": {
999
+ ".txt-small": {
1000
+ "fontSize": "0.8125rem",
1001
+ "lineHeight": "1.3000000715255737rem",
1002
+ "fontWeight": "400",
1003
+ "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
1004
+ },
1005
+ ".h2-docs": {
982
1006
  "fontSize": "1.125rem",
983
- "lineHeight": "1.6875rem",
1007
+ "lineHeight": "1.8000000715255737rem",
984
1008
  "fontWeight": "500",
985
1009
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
986
1010
  },
987
- ".txt-large-plus": {
988
- "fontSize": "1rem",
989
- "lineHeight": "1.5rem",
990
- "fontWeight": "500",
1011
+ ".txt-medium": {
1012
+ "fontSize": "0.875rem",
1013
+ "lineHeight": "1.399999976158142rem",
1014
+ "fontWeight": "400",
991
1015
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
992
1016
  },
993
- ".h4-webs": {
994
- "fontSize": "1.5rem",
995
- "lineHeight": "1.875rem",
1017
+ ".txt-small-plus": {
1018
+ "fontSize": "0.8125rem",
1019
+ "lineHeight": "1.3000000715255737rem",
996
1020
  "fontWeight": "500",
997
1021
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
998
1022
  },
999
- ".h2-core": {
1023
+ ".txt-large": {
1000
1024
  "fontSize": "1rem",
1001
- "lineHeight": "1.5rem",
1002
- "fontWeight": "500",
1025
+ "lineHeight": "1.600000023841858rem",
1026
+ "fontWeight": "400",
1003
1027
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
1004
1028
  },
1005
- ".h3-core": {
1029
+ ".txt-medium-plus": {
1006
1030
  "fontSize": "0.875rem",
1007
- "lineHeight": "1.25rem",
1031
+ "lineHeight": "1.399999976158142rem",
1008
1032
  "fontWeight": "500",
1009
1033
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
1010
1034
  },
1011
- ".h1-core": {
1012
- "fontSize": "1.125rem",
1013
- "lineHeight": "1.75rem",
1014
- "fontWeight": "500",
1035
+ ".txt-xsmall": {
1036
+ "fontSize": "0.75rem",
1037
+ "lineHeight": "1.2000000476837158rem",
1038
+ "fontWeight": "400",
1015
1039
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
1016
1040
  },
1017
- ".h1-docs": {
1018
- "fontSize": "1.5rem",
1019
- "lineHeight": "1.875rem",
1041
+ ".h3-docs": {
1042
+ "fontSize": "1rem",
1043
+ "lineHeight": "1.600000023841858rem",
1020
1044
  "fontWeight": "500",
1021
1045
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
1022
1046
  },
1023
- ".h2-docs": {
1047
+ ".txt-xlarge-plus": {
1024
1048
  "fontSize": "1.125rem",
1025
- "lineHeight": "1.6875rem",
1049
+ "lineHeight": "1.8000000715255737rem",
1026
1050
  "fontWeight": "500",
1027
1051
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
1028
1052
  },
1029
- ".h3-docs": {
1053
+ ".txt-large-plus": {
1030
1054
  "fontSize": "1rem",
1031
- "lineHeight": "1.5rem",
1055
+ "lineHeight": "1.600000023841858rem",
1032
1056
  "fontWeight": "500",
1033
1057
  "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
1034
1058
  },
1035
- ".code-body": {
1036
- "fontSize": "0.75rem",
1037
- "lineHeight": "1.125rem",
1059
+ ".txt-xlarge": {
1060
+ "fontSize": "1.125rem",
1061
+ "lineHeight": "1.8000000715255737rem",
1038
1062
  "fontWeight": "400",
1039
- "fontFamily": "Roboto Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
1040
- },
1041
- ".code-label": {
1042
- "fontSize": "0.75rem",
1043
- "lineHeight": "0.9375rem",
1044
- "fontWeight": "500",
1045
- "fontFamily": "Roboto Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace"
1063
+ "fontFamily": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
1046
1064
  }
1047
1065
  };
1048
1066
  var plugin_default = (0, import_plugin2.default)(
@@ -1111,14 +1129,14 @@ var require_dist = __commonJS({
1111
1129
  });
1112
1130
 
1113
1131
  // src/index.ts
1114
- var src_exports = {};
1115
- __export(src_exports, {
1132
+ var index_exports = {};
1133
+ __export(index_exports, {
1116
1134
  build: () => build,
1117
1135
  develop: () => develop,
1118
1136
  plugin: () => plugin,
1119
1137
  serve: () => serve
1120
1138
  });
1121
- module.exports = __toCommonJS(src_exports);
1139
+ module.exports = __toCommonJS(index_exports);
1122
1140
 
1123
1141
  // src/utils/config.ts
1124
1142
  var import_admin_shared = require("@medusajs/admin-shared");
@@ -1291,7 +1309,9 @@ async function getViteConfig(options) {
1291
1309
  const { default: react } = await import("@vitejs/plugin-react");
1292
1310
  const { default: medusa } = await import("@medusajs/admin-vite-plugin");
1293
1311
  const getPort = await import("get-port");
1294
- const hmrPort = await getPort.default();
1312
+ const hmrPort = process.env.HMR_PORT ? parseInt(process.env.HMR_PORT) : await getPort.default();
1313
+ const hmrOptions = getHmrConfig(hmrPort);
1314
+ const allowedHosts = getAllowedHosts();
1295
1315
  const root = import_path.default.resolve(process.cwd(), ".medusa/client");
1296
1316
  const backendUrl = options.backendUrl ?? "";
1297
1317
  const storefrontUrl = options.storefrontUrl ?? "";
@@ -1308,6 +1328,7 @@ async function getViteConfig(options) {
1308
1328
  "react/jsx-runtime",
1309
1329
  "react-dom/client",
1310
1330
  "react-router-dom",
1331
+ "react-i18next",
1311
1332
  "@medusajs/ui",
1312
1333
  "@medusajs/dashboard",
1313
1334
  "@medusajs/js-sdk",
@@ -1324,9 +1345,8 @@ async function getViteConfig(options) {
1324
1345
  fs: {
1325
1346
  allow: [searchForWorkspaceRoot(process.cwd())]
1326
1347
  },
1327
- hmr: {
1328
- port: hmrPort
1329
- }
1348
+ hmr: hmrOptions,
1349
+ ...allowedHosts && { allowedHosts }
1330
1350
  },
1331
1351
  plugins: [
1332
1352
  writeStaticFiles2({
@@ -1343,11 +1363,61 @@ async function getViteConfig(options) {
1343
1363
  })
1344
1364
  ]
1345
1365
  };
1366
+ const pluginEnv = {
1367
+ BACKEND_URL: backendUrl
1368
+ };
1369
+ for (const [key, value] of Object.entries(process.env)) {
1370
+ if (key.startsWith("PLUGIN_")) {
1371
+ pluginEnv[key.replace(/^PLUGIN_/, "")] = value;
1372
+ }
1373
+ }
1374
+ baseConfig.define["process.env"] = JSON.stringify(pluginEnv);
1375
+ let finalConfig = baseConfig;
1346
1376
  if (options.vite) {
1347
1377
  const customConfig = options.vite(baseConfig);
1348
- return mergeConfig(baseConfig, customConfig);
1378
+ finalConfig = mergeConfig(baseConfig, customConfig);
1379
+ }
1380
+ if (process.env.HMR_BIND_HOST) {
1381
+ if (finalConfig.server?.hmr && typeof finalConfig.server.hmr === "object" && finalConfig.server.hmr.server) {
1382
+ console.warn(
1383
+ "HMR_BIND_HOST is set but a custom hmr.server is already configured. HMR_BIND_HOST will be ignored."
1384
+ );
1385
+ } else {
1386
+ const { createServer } = require("http");
1387
+ const hmrServer = createServer();
1388
+ hmrServer.listen(hmrPort, process.env.HMR_BIND_HOST);
1389
+ if (!finalConfig.server) {
1390
+ finalConfig.server = {};
1391
+ }
1392
+ if (!finalConfig.server.hmr || typeof finalConfig.server.hmr !== "object") {
1393
+ finalConfig.server.hmr = {};
1394
+ }
1395
+ finalConfig.server.hmr.server = hmrServer;
1396
+ }
1397
+ }
1398
+ return finalConfig;
1399
+ }
1400
+ function getAllowedHosts() {
1401
+ const hosts = process.env.__MEDUSA_ADMIN_ADDITIONAL_ALLOWED_HOSTS;
1402
+ if (!hosts) {
1403
+ return void 0;
1404
+ }
1405
+ return hosts.split(",").map((host) => host.trim());
1406
+ }
1407
+ function getHmrConfig(hmrPort) {
1408
+ const options = {
1409
+ port: hmrPort
1410
+ };
1411
+ if (process.env.HMR_PROTOCOL) {
1412
+ options.protocol = process.env.HMR_PROTOCOL;
1413
+ }
1414
+ if (process.env.HMR_HOST) {
1415
+ options.host = process.env.HMR_HOST;
1416
+ }
1417
+ if (process.env.HMR_CLIENT_PORT) {
1418
+ options.clientPort = parseInt(process.env.HMR_CLIENT_PORT);
1349
1419
  }
1350
- return baseConfig;
1420
+ return options;
1351
1421
  }
1352
1422
 
1353
1423
  // src/commands/build.ts
@@ -1466,6 +1536,7 @@ async function plugin(options) {
1466
1536
  "react",
1467
1537
  "react/jsx-runtime",
1468
1538
  "react-router-dom",
1539
+ "react-i18next",
1469
1540
  "@medusajs/js-sdk",
1470
1541
  "@medusajs/admin-sdk",
1471
1542
  "@tanstack/react-query"
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@medusajs/admin-bundler",
3
- "version": "3.0.0-snapshot-20250410112222",
3
+ "version": "3.0.0-snapshot-20251104004624",
4
4
  "description": "Bundler for the Medusa admin dashboard.",
5
5
  "author": "Kasper Kristensen <kasper@medusajs.com>",
6
6
  "scripts": {
7
- "build": "tsup"
7
+ "build": "yarn run -T tsup"
8
8
  },
9
9
  "main": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",
@@ -18,25 +18,21 @@
18
18
  "package.json"
19
19
  ],
20
20
  "devDependencies": {
21
- "@medusajs/types": "3.0.0-snapshot-20250410112222",
22
- "@types/compression": "^1.7.5",
23
- "express": "^4.21.0",
24
- "tsup": "^8.0.1",
25
- "typescript": "^5.3.3"
21
+ "@medusajs/types": "3.0.0-snapshot-20251104004624"
26
22
  },
27
23
  "dependencies": {
28
- "@medusajs/admin-shared": "3.0.0-snapshot-20250410112222",
29
- "@medusajs/admin-vite-plugin": "3.0.0-snapshot-20250410112222",
30
- "@medusajs/dashboard": "3.0.0-snapshot-20250410112222",
24
+ "@medusajs/admin-shared": "3.0.0-snapshot-20251104004624",
25
+ "@medusajs/admin-vite-plugin": "3.0.0-snapshot-20251104004624",
26
+ "@medusajs/dashboard": "3.0.0-snapshot-20251104004624",
31
27
  "@vitejs/plugin-react": "^4.2.1",
32
- "autoprefixer": "^10.4.16",
33
- "compression": "^1.7.4",
28
+ "autoprefixer": "^10.4.19",
29
+ "compression": "^1.8.0",
34
30
  "express": "^4.21.0",
35
31
  "get-port": "^5.1.1",
36
- "glob": "^10.3.10",
32
+ "glob": "^10.4.5",
37
33
  "outdent": "^0.8.0",
38
- "postcss": "^8.4.32",
39
- "tailwindcss": "^3.3.6",
34
+ "postcss": "^8.4.38",
35
+ "tailwindcss": "^3.4.3",
40
36
  "vite": "^5.4.14"
41
37
  },
42
38
  "packageManager": "yarn@3.2.1"