streamlit-nightly 1.46.1.dev20250623__py3-none-any.whl → 1.46.1.dev20250624__py3-none-any.whl

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.
Files changed (80) hide show
  1. streamlit/components/types/base_custom_component.py +2 -4
  2. streamlit/components/v1/component_registry.py +15 -2
  3. streamlit/config.py +27 -0
  4. streamlit/proto/NewSession_pb2.py +16 -16
  5. streamlit/proto/NewSession_pb2.pyi +7 -2
  6. streamlit/static/index.html +1 -1
  7. streamlit/static/manifest.json +214 -214
  8. streamlit/static/static/js/{ErrorOutline.esm.6jfnPRv8.js → ErrorOutline.esm.DcGodXA0.js} +1 -1
  9. streamlit/static/static/js/{FileDownload.esm.Cnl6nXhQ.js → FileDownload.esm.BtTSWyv0.js} +1 -1
  10. streamlit/static/static/js/{FileHelper.cSMax3oI.js → FileHelper.BOV_ijyF.js} +1 -1
  11. streamlit/static/static/js/{FormClearHelper.4d5unoV3.js → FormClearHelper.YYlwo10a.js} +1 -1
  12. streamlit/static/static/js/{Hooks.DZueJ4q3.js → Hooks.BoB69I0K.js} +1 -1
  13. streamlit/static/static/js/{InputInstructions.TPKmOf1e.js → InputInstructions.B5C3dEon.js} +1 -1
  14. streamlit/static/static/js/{ProgressBar.9KpGrB3q.js → ProgressBar.2T39z4H_.js} +1 -1
  15. streamlit/static/static/js/{RenderInPortalIfExists.B6RP7YdE.js → RenderInPortalIfExists.Dr06opo0.js} +1 -1
  16. streamlit/static/static/js/{Toolbar.D6JzrqIQ.js → Toolbar.BRouzc5U.js} +1 -1
  17. streamlit/static/static/js/{base-input.Bnn6NZuq.js → base-input.PyN4CoyX.js} +1 -1
  18. streamlit/static/static/js/{checkbox.B02sfadZ.js → checkbox.CpyGalPT.js} +1 -1
  19. streamlit/static/static/js/{createSuper.SaBC7ngU.js → createSuper.Jon9k3Yt.js} +1 -1
  20. streamlit/static/static/js/{data-grid-overlay-editor.BLEevpKv.js → data-grid-overlay-editor.D4ghymBb.js} +1 -1
  21. streamlit/static/static/js/{downloader.D-PXYVMM.js → downloader.FX1msyAN.js} +1 -1
  22. streamlit/static/static/js/{es6.Do8H78Dr.js → es6.QGDMdnvM.js} +2 -2
  23. streamlit/static/static/js/{iframeResizer.contentWindow.DaJOnu7q.js → iframeResizer.contentWindow.t8qLRzyv.js} +1 -1
  24. streamlit/static/static/js/{index.DIWyCwyy.js → index.2JQx94HQ.js} +1 -1
  25. streamlit/static/static/js/{index.DSL_L5gy.js → index.ArgFGqRm.js} +1 -1
  26. streamlit/static/static/js/{index.agUYkS1G.js → index.B-vIEt1m.js} +1 -1
  27. streamlit/static/static/js/{index.BtrfeCpV.js → index.B2Y8O1Wt.js} +1 -1
  28. streamlit/static/static/js/{index.Bd-qicCf.js → index.B5UnBp6n.js} +1 -1
  29. streamlit/static/static/js/{index.CWjjjpBo.js → index.B7osuoZN.js} +1 -1
  30. streamlit/static/static/js/{index.0fF-8FTP.js → index.BG2gdqVa.js} +1 -1
  31. streamlit/static/static/js/{index.DC2Olf5i.js → index.BJhXUMZ4.js} +1 -1
  32. streamlit/static/static/js/{index.CI88kTQV.js → index.BM1_hMg8.js} +1 -1
  33. streamlit/static/static/js/{index.pvWqfcnM.js → index.BTUUpB01.js} +1 -1
  34. streamlit/static/static/js/{index.DAjyn_pv.js → index.BXxgCK9y.js} +1 -1
  35. streamlit/static/static/js/{index.DLIUt_5s.js → index.B_pohBxx.js} +1 -1
  36. streamlit/static/static/js/index.By43fiCF.js +1 -0
  37. streamlit/static/static/js/{index.C_sZeM1t.js → index.Bzp1Qysi.js} +1 -1
  38. streamlit/static/static/js/{index.GQSrzYvF.js → index.C-vLCSJp.js} +68 -68
  39. streamlit/static/static/js/{index.Dii3Kpb1.js → index.C4qeNI_i.js} +1 -1
  40. streamlit/static/static/js/{index.DRY0GdE8.js → index.C78GEvay.js} +1 -1
  41. streamlit/static/static/js/{index.CakTEdtN.js → index.C8r7DD-9.js} +1 -1
  42. streamlit/static/static/js/{index.HuXynmwU.js → index.COUW2Eq4.js} +1 -1
  43. streamlit/static/static/js/{index.CTa7TVdK.js → index.CU45_Nrh.js} +1 -1
  44. streamlit/static/static/js/{index.BCrknDkt.js → index.CUBt4-Uz.js} +1 -1
  45. streamlit/static/static/js/{index.DdZFxK5_.js → index.CZttj0Fd.js} +1 -1
  46. streamlit/static/static/js/{index.CPO9FnfH.js → index.CdJwjLfQ.js} +1 -1
  47. streamlit/static/static/js/{index.DwRhVQCG.js → index.CuLeR7Zz.js} +1 -1
  48. streamlit/static/static/js/{index.-Vk-JZRg.js → index.CvFBPhOY.js} +1 -1
  49. streamlit/static/static/js/{index.DAD1VX9u.js → index.CwKcK2uB.js} +1 -1
  50. streamlit/static/static/js/{index.AoD39gIA.js → index.D4M62uXW.js} +1 -1
  51. streamlit/static/static/js/{index.G-xNC_zR.js → index.DdfoIDPC.js} +1 -1
  52. streamlit/static/static/js/{index.CvLo0WJS.js → index.DgNa_UKX.js} +5 -5
  53. streamlit/static/static/js/{index.BzMniOtq.js → index.Dieu6abC.js} +1 -1
  54. streamlit/static/static/js/{index.DFoPqIqm.js → index.DthY-obI.js} +1 -1
  55. streamlit/static/static/js/{index.B24flF1W.js → index.Dz6zHKtI.js} +1 -1
  56. streamlit/static/static/js/{index.CtwU5Nda.js → index.GgMflWG-.js} +1 -1
  57. streamlit/static/static/js/{index.CJ3PXy05.js → index.IZ-swmmu.js} +1 -1
  58. streamlit/static/static/js/{index.Ur6r0Scb.js → index.PsjpMKwq.js} +1 -1
  59. streamlit/static/static/js/{index.CRVtayit.js → index.cLUrTr09.js} +1 -1
  60. streamlit/static/static/js/{index.CEKUbLdO.js → index.kEHB5PaN.js} +1 -1
  61. streamlit/static/static/js/{input.BsbIu3V-.js → input.mfVbl2I5.js} +1 -1
  62. streamlit/static/static/js/{memory.DLgZAYR-.js → memory.B-p09GS3.js} +1 -1
  63. streamlit/static/static/js/{mergeWith.dTGwC2vZ.js → mergeWith.D6q7TPdQ.js} +1 -1
  64. streamlit/static/static/js/{number-overlay-editor.1fvDrqrD.js → number-overlay-editor.QOWTlq5z.js} +1 -1
  65. streamlit/static/static/js/{possibleConstructorReturn.Dk_wv59O.js → possibleConstructorReturn.DO-pRPNX.js} +1 -1
  66. streamlit/static/static/js/{sandbox.Cg6lG2Sf.js → sandbox.DREGkhZ5.js} +1 -1
  67. streamlit/static/static/js/{textarea.DBC27xex.js → textarea.RxMqblTR.js} +1 -1
  68. streamlit/static/static/js/{timepicker.7h0iYUgW.js → timepicker.BSrUPnyZ.js} +1 -1
  69. streamlit/static/static/js/{toConsumableArray.B_hGxMM4.js → toConsumableArray.BkyyIrpf.js} +1 -1
  70. streamlit/static/static/js/{uniqueId.OfTwqNZo.js → uniqueId.CXqhuYjv.js} +1 -1
  71. streamlit/static/static/js/{useBasicWidgetState.BwLEUZab.js → useBasicWidgetState.QQhMYIp5.js} +1 -1
  72. streamlit/static/static/js/{useOnInputChange.dALPpkgr.js → useOnInputChange.DvWbafRm.js} +1 -1
  73. streamlit/static/static/js/{withFullScreenWrapper.CYjEH_RX.js → withFullScreenWrapper.CX_bKrfm.js} +1 -1
  74. {streamlit_nightly-1.46.1.dev20250623.dist-info → streamlit_nightly-1.46.1.dev20250624.dist-info}/METADATA +1 -1
  75. {streamlit_nightly-1.46.1.dev20250623.dist-info → streamlit_nightly-1.46.1.dev20250624.dist-info}/RECORD +79 -79
  76. streamlit/static/static/js/index.jvvQMO9i.js +0 -1
  77. {streamlit_nightly-1.46.1.dev20250623.data → streamlit_nightly-1.46.1.dev20250624.data}/scripts/streamlit.cmd +0 -0
  78. {streamlit_nightly-1.46.1.dev20250623.dist-info → streamlit_nightly-1.46.1.dev20250624.dist-info}/WHEEL +0 -0
  79. {streamlit_nightly-1.46.1.dev20250623.dist-info → streamlit_nightly-1.46.1.dev20250624.dist-info}/entry_points.txt +0 -0
  80. {streamlit_nightly-1.46.1.dev20250623.dist-info → streamlit_nightly-1.46.1.dev20250624.dist-info}/top_level.txt +0 -0
@@ -41,10 +41,8 @@ class BaseCustomComponent(ABC):
41
41
  url: str | None = None,
42
42
  module_name: str | None = None,
43
43
  ) -> None:
44
- if (path is None and url is None) or (path is not None and url is not None):
45
- raise StreamlitAPIException(
46
- "Either 'path' or 'url' must be set, but not both."
47
- )
44
+ if path is None and url is None:
45
+ raise StreamlitAPIException("Either 'path' or 'url' must be set.")
48
46
 
49
47
  self._name = name
50
48
  self._path = path
@@ -19,6 +19,7 @@ import os
19
19
  from pathlib import Path
20
20
  from typing import TYPE_CHECKING
21
21
 
22
+ from streamlit import config
22
23
  from streamlit.components.v1.custom_component import CustomComponent
23
24
  from streamlit.runtime import get_instance
24
25
  from streamlit.runtime.scriptrunner_utils.script_run_context import get_script_run_ctx
@@ -77,12 +78,15 @@ def declare_component(
77
78
  The path to serve the component's frontend files from. The path should
78
79
  be absolute. If ``path`` is ``None`` (default), Streamlit will serve
79
80
  the component from the location in ``url``. Either ``path`` or ``url``
80
- must be specified, but not both.
81
+ must be specified. If both are specified, then ``url`` will take
82
+ precedence.
81
83
 
82
84
  url: str or None
83
85
  The URL that the component is served from. If ``url`` is ``None``
84
86
  (default), Streamlit will serve the component from the location in
85
- ``path``. Either ``path`` or ``url`` must be specified, but not both.
87
+ ``path``. Either ``path`` or ``url`` must be specified. If both are
88
+ specified, then ``url`` will take precedence.
89
+
86
90
 
87
91
  Returns
88
92
  -------
@@ -109,6 +113,15 @@ def declare_component(
109
113
  # Build the component name.
110
114
  component_name = f"{module_name}.{name}"
111
115
 
116
+ # NOTE: We intentionally don't mention this behavior in this function's
117
+ # docstring as we're only using it internally for now (the config option
118
+ # is also hidden). This should be properly documented if/when we do decide
119
+ # to expose it more publicly.
120
+ if not url and (
121
+ component_base_path := config.get_option("server.customComponentBaseUrlPath")
122
+ ):
123
+ url = f"{component_base_path}/{component_name}/"
124
+
112
125
  # Create our component object, and register it.
113
126
  component = CustomComponent(
114
127
  name=component_name, path=path, url=url, module_name=module_name
streamlit/config.py CHANGED
@@ -825,6 +825,19 @@ _create_option(
825
825
  type_=str,
826
826
  )
827
827
 
828
+ _create_option(
829
+ "server.customComponentBaseUrlPath",
830
+ description="""
831
+ The base path for the URL where Streamlit should serve custom
832
+ components. If this config var is set and a call to ``declare_component``
833
+ does not specify a URL, the component's URL will be set to
834
+ ``f"{server.customComponentBaseUrlPath}/{component_name}/"``.
835
+ """,
836
+ default_val="",
837
+ type_=str,
838
+ visibility="hidden",
839
+ )
840
+
828
841
  # TODO: Rename to server.enableCorsProtection.
829
842
  _create_option(
830
843
  "server.enableCORS",
@@ -1210,6 +1223,20 @@ _create_theme_options(
1210
1223
  """,
1211
1224
  )
1212
1225
 
1226
+ _create_theme_options(
1227
+ "codeFontWeight",
1228
+ categories=["theme"],
1229
+ description="""
1230
+ The font weight for code blocks and code text.
1231
+
1232
+ This applies to inline code, code blocks (ex: `st.code`), and font in `st.json` and `st.help`.
1233
+ Valid values are 100-900, in increments of 100.
1234
+
1235
+ When unset, the default code font weight will be 400.
1236
+ """,
1237
+ type_=int,
1238
+ )
1239
+
1213
1240
  _create_theme_options(
1214
1241
  "headingFont",
1215
1242
  categories=["theme", CustomThemeCategories.SIDEBAR],
@@ -16,7 +16,7 @@ from streamlit.proto import AppPage_pb2 as streamlit_dot_proto_dot_AppPage__pb2
16
16
  from streamlit.proto import SessionStatus_pb2 as streamlit_dot_proto_dot_SessionStatus__pb2
17
17
 
18
18
 
19
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/NewSession.proto\x1a\x1dstreamlit/proto/AppPage.proto\x1a#streamlit/proto/SessionStatus.proto\"\xa5\x02\n\nNewSession\x12\x1f\n\ninitialize\x18\x01 \x01(\x0b\x32\x0b.Initialize\x12\x15\n\rscript_run_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x18\n\x10main_script_path\x18\x04 \x01(\t\x12\x17\n\x06\x63onfig\x18\x06 \x01(\x0b\x32\x07.Config\x12(\n\x0c\x63ustom_theme\x18\x07 \x01(\x0b\x32\x12.CustomThemeConfig\x12\x1b\n\tapp_pages\x18\x08 \x03(\x0b\x32\x08.AppPage\x12\x18\n\x10page_script_hash\x18\t \x01(\t\x12\x1d\n\x15\x66ragment_ids_this_run\x18\n \x03(\t\x12\x18\n\x10main_script_hash\x18\x0b \x01(\tJ\x04\x08\x05\x10\x06\"\xba\x01\n\nInitialize\x12\x1c\n\tuser_info\x18\x01 \x01(\x0b\x32\t.UserInfo\x12*\n\x10\x65nvironment_info\x18\x03 \x01(\x0b\x32\x10.EnvironmentInfo\x12&\n\x0esession_status\x18\x04 \x01(\x0b\x32\x0e.SessionStatus\x12\x14\n\x0c\x63ommand_line\x18\x05 \x01(\t\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12\x10\n\x08is_hello\x18\x07 \x01(\x08\"\x97\x02\n\x06\x43onfig\x12\x1a\n\x12gather_usage_stats\x18\x02 \x01(\x08\x12\x1e\n\x16max_cached_message_age\x18\x03 \x01(\x05\x12\x14\n\x0cmapbox_token\x18\x04 \x01(\t\x12\x19\n\x11\x61llow_run_on_save\x18\x05 \x01(\x08\x12\x14\n\x0chide_top_bar\x18\x06 \x01(\x08\x12\x18\n\x10hide_sidebar_nav\x18\x07 \x01(\x08\x12)\n\x0ctoolbar_mode\x18\x08 \x01(\x0e\x32\x13.Config.ToolbarMode\"?\n\x0bToolbarMode\x12\x08\n\x04\x41UTO\x10\x00\x12\r\n\tDEVELOPER\x10\x01\x12\n\n\x06VIEWER\x10\x02\x12\x0b\n\x07MINIMAL\x10\x03J\x04\x08\x01\x10\x02\"\x8e\n\n\x11\x43ustomThemeConfig\x12\x15\n\rprimary_color\x18\x01 \x01(\t\x12\"\n\x1asecondary_background_color\x18\x02 \x01(\t\x12\x18\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\t\x12\x12\n\ntext_color\x18\x04 \x01(\t\x12+\n\x04\x66ont\x18\x05 \x01(\x0e\x32\x1d.CustomThemeConfig.FontFamily\x12*\n\x04\x62\x61se\x18\x06 \x01(\x0e\x32\x1c.CustomThemeConfig.BaseTheme\x12\x1f\n\x17widget_background_color\x18\x07 \x01(\t\x12\x1b\n\x13widget_border_color\x18\x08 \x01(\t\x12\x15\n\x05radii\x18\t \x01(\x0b\x32\x06.Radii\x12\x14\n\x0cheading_font\x18\x0c \x01(\t\x12\x11\n\tbody_font\x18\r \x01(\t\x12\x11\n\tcode_font\x18\x0e \x01(\t\x12\x1d\n\nfont_faces\x18\x0f \x03(\x0b\x32\t.FontFace\x12\x1e\n\nfont_sizes\x18\x10 \x01(\x0b\x32\n.FontSizes\x12!\n\x19skeleton_background_color\x18\x11 \x01(\t\x12\x18\n\x0b\x62\x61se_radius\x18\x12 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rbutton_radius\x18\x1a \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0c\x62order_color\x18\x13 \x01(\tH\x02\x88\x01\x01\x12#\n\x16\x64\x61taframe_border_color\x18\x1b \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12show_widget_border\x18\x14 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nlink_color\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0elink_underline\x18\x1d \x01(\x08H\x06\x88\x01\x01\x12\x1b\n\x0e\x62\x61se_font_size\x18\x16 \x01(\x05H\x07\x88\x01\x01\x12\x1d\n\x10\x62\x61se_font_weight\x18\x1e \x01(\x05H\x08\x88\x01\x01\x12\x1b\n\x0e\x63ode_font_size\x18\x1c \x01(\tH\t\x88\x01\x01\x12 \n\x13show_sidebar_border\x18\x17 \x01(\x08H\n\x88\x01\x01\x12(\n\x07sidebar\x18\x18 \x01(\x0b\x32\x12.CustomThemeConfigH\x0b\x88\x01\x01\x12\"\n\x15\x63ode_background_color\x18\x19 \x01(\tH\x0c\x88\x01\x01\x12.\n!dataframe_header_background_color\x18\x1f \x01(\tH\r\x88\x01\x01\" \n\tBaseTheme\x12\t\n\x05LIGHT\x10\x00\x12\x08\n\x04\x44\x41RK\x10\x01\"6\n\nFontFamily\x12\x0e\n\nSANS_SERIF\x10\x00\x12\t\n\x05SERIF\x10\x01\x12\r\n\tMONOSPACE\x10\x02\x42\x0e\n\x0c_base_radiusB\x10\n\x0e_button_radiusB\x0f\n\r_border_colorB\x19\n\x17_dataframe_border_colorB\x15\n\x13_show_widget_borderB\r\n\x0b_link_colorB\x11\n\x0f_link_underlineB\x11\n\x0f_base_font_sizeB\x13\n\x11_base_font_weightB\x11\n\x0f_code_font_sizeB\x16\n\x14_show_sidebar_borderB\n\n\x08_sidebarB\x18\n\x16_code_background_colorB$\n\"_dataframe_header_background_color\"w\n\x08\x46ontFace\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06\x66\x61mily\x18\x02 \x01(\t\x12\x12\n\x06weight\x18\x03 \x01(\x05\x42\x02\x18\x01\x12\x14\n\x0cweight_range\x18\x05 \x01(\t\x12\r\n\x05style\x18\x04 \x01(\t\x12\x15\n\runicode_range\x18\x06 \x01(\t\"<\n\x05Radii\x12\x1a\n\x12\x62\x61se_widget_radius\x18\x01 \x01(\x05\x12\x17\n\x0f\x63heckbox_radius\x18\x02 \x01(\x05\"T\n\tFontSizes\x12\x16\n\x0etiny_font_size\x18\x01 \x01(\x05\x12\x17\n\x0fsmall_font_size\x18\x02 \x01(\x05\x12\x16\n\x0e\x62\x61se_font_size\x18\x03 \x01(\x05\"a\n\x08UserInfo\x12\x17\n\x0finstallation_id\x18\x01 \x01(\t\x12\x1a\n\x12installation_id_v3\x18\x05 \x01(\t\x12\x1a\n\x12installation_id_v4\x18\x06 \x01(\tJ\x04\x08\x02\x10\x03\"l\n\x0f\x45nvironmentInfo\x12\x19\n\x11streamlit_version\x18\x01 \x01(\t\x12\x16\n\x0epython_version\x18\x02 \x01(\t\x12\x11\n\tserver_os\x18\x03 \x01(\t\x12\x13\n\x0bhas_display\x18\x04 \x01(\x08\x42/\n\x1c\x63om.snowflake.apps.streamlitB\x0fNewSessionProtob\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n streamlit/proto/NewSession.proto\x1a\x1dstreamlit/proto/AppPage.proto\x1a#streamlit/proto/SessionStatus.proto\"\xa5\x02\n\nNewSession\x12\x1f\n\ninitialize\x18\x01 \x01(\x0b\x32\x0b.Initialize\x12\x15\n\rscript_run_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x18\n\x10main_script_path\x18\x04 \x01(\t\x12\x17\n\x06\x63onfig\x18\x06 \x01(\x0b\x32\x07.Config\x12(\n\x0c\x63ustom_theme\x18\x07 \x01(\x0b\x32\x12.CustomThemeConfig\x12\x1b\n\tapp_pages\x18\x08 \x03(\x0b\x32\x08.AppPage\x12\x18\n\x10page_script_hash\x18\t \x01(\t\x12\x1d\n\x15\x66ragment_ids_this_run\x18\n \x03(\t\x12\x18\n\x10main_script_hash\x18\x0b \x01(\tJ\x04\x08\x05\x10\x06\"\xba\x01\n\nInitialize\x12\x1c\n\tuser_info\x18\x01 \x01(\x0b\x32\t.UserInfo\x12*\n\x10\x65nvironment_info\x18\x03 \x01(\x0b\x32\x10.EnvironmentInfo\x12&\n\x0esession_status\x18\x04 \x01(\x0b\x32\x0e.SessionStatus\x12\x14\n\x0c\x63ommand_line\x18\x05 \x01(\t\x12\x12\n\nsession_id\x18\x06 \x01(\t\x12\x10\n\x08is_hello\x18\x07 \x01(\x08\"\x97\x02\n\x06\x43onfig\x12\x1a\n\x12gather_usage_stats\x18\x02 \x01(\x08\x12\x1e\n\x16max_cached_message_age\x18\x03 \x01(\x05\x12\x14\n\x0cmapbox_token\x18\x04 \x01(\t\x12\x19\n\x11\x61llow_run_on_save\x18\x05 \x01(\x08\x12\x14\n\x0chide_top_bar\x18\x06 \x01(\x08\x12\x18\n\x10hide_sidebar_nav\x18\x07 \x01(\x08\x12)\n\x0ctoolbar_mode\x18\x08 \x01(\x0e\x32\x13.Config.ToolbarMode\"?\n\x0bToolbarMode\x12\x08\n\x04\x41UTO\x10\x00\x12\r\n\tDEVELOPER\x10\x01\x12\n\n\x06VIEWER\x10\x02\x12\x0b\n\x07MINIMAL\x10\x03J\x04\x08\x01\x10\x02\"\xc2\n\n\x11\x43ustomThemeConfig\x12\x15\n\rprimary_color\x18\x01 \x01(\t\x12\"\n\x1asecondary_background_color\x18\x02 \x01(\t\x12\x18\n\x10\x62\x61\x63kground_color\x18\x03 \x01(\t\x12\x12\n\ntext_color\x18\x04 \x01(\t\x12+\n\x04\x66ont\x18\x05 \x01(\x0e\x32\x1d.CustomThemeConfig.FontFamily\x12*\n\x04\x62\x61se\x18\x06 \x01(\x0e\x32\x1c.CustomThemeConfig.BaseTheme\x12\x1f\n\x17widget_background_color\x18\x07 \x01(\t\x12\x1b\n\x13widget_border_color\x18\x08 \x01(\t\x12\x15\n\x05radii\x18\t \x01(\x0b\x32\x06.Radii\x12\x14\n\x0cheading_font\x18\x0c \x01(\t\x12\x11\n\tbody_font\x18\r \x01(\t\x12\x11\n\tcode_font\x18\x0e \x01(\t\x12\x1d\n\nfont_faces\x18\x0f \x03(\x0b\x32\t.FontFace\x12\x1e\n\nfont_sizes\x18\x10 \x01(\x0b\x32\n.FontSizes\x12!\n\x19skeleton_background_color\x18\x11 \x01(\t\x12\x18\n\x0b\x62\x61se_radius\x18\x12 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rbutton_radius\x18\x1a \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0c\x62order_color\x18\x13 \x01(\tH\x02\x88\x01\x01\x12#\n\x16\x64\x61taframe_border_color\x18\x1b \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12show_widget_border\x18\x14 \x01(\x08H\x04\x88\x01\x01\x12\x17\n\nlink_color\x18\x15 \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0elink_underline\x18\x1d \x01(\x08H\x06\x88\x01\x01\x12\x1b\n\x0e\x62\x61se_font_size\x18\x16 \x01(\x05H\x07\x88\x01\x01\x12\x1d\n\x10\x62\x61se_font_weight\x18\x1e \x01(\x05H\x08\x88\x01\x01\x12\x1d\n\x10\x63ode_font_weight\x18 \x01(\x05H\t\x88\x01\x01\x12\x1b\n\x0e\x63ode_font_size\x18\x1c \x01(\tH\n\x88\x01\x01\x12 \n\x13show_sidebar_border\x18\x17 \x01(\x08H\x0b\x88\x01\x01\x12(\n\x07sidebar\x18\x18 \x01(\x0b\x32\x12.CustomThemeConfigH\x0c\x88\x01\x01\x12\"\n\x15\x63ode_background_color\x18\x19 \x01(\tH\r\x88\x01\x01\x12.\n!dataframe_header_background_color\x18\x1f \x01(\tH\x0e\x88\x01\x01\" \n\tBaseTheme\x12\t\n\x05LIGHT\x10\x00\x12\x08\n\x04\x44\x41RK\x10\x01\"6\n\nFontFamily\x12\x0e\n\nSANS_SERIF\x10\x00\x12\t\n\x05SERIF\x10\x01\x12\r\n\tMONOSPACE\x10\x02\x42\x0e\n\x0c_base_radiusB\x10\n\x0e_button_radiusB\x0f\n\r_border_colorB\x19\n\x17_dataframe_border_colorB\x15\n\x13_show_widget_borderB\r\n\x0b_link_colorB\x11\n\x0f_link_underlineB\x11\n\x0f_base_font_sizeB\x13\n\x11_base_font_weightB\x13\n\x11_code_font_weightB\x11\n\x0f_code_font_sizeB\x16\n\x14_show_sidebar_borderB\n\n\x08_sidebarB\x18\n\x16_code_background_colorB$\n\"_dataframe_header_background_color\"w\n\x08\x46ontFace\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0e\n\x06\x66\x61mily\x18\x02 \x01(\t\x12\x12\n\x06weight\x18\x03 \x01(\x05\x42\x02\x18\x01\x12\x14\n\x0cweight_range\x18\x05 \x01(\t\x12\r\n\x05style\x18\x04 \x01(\t\x12\x15\n\runicode_range\x18\x06 \x01(\t\"<\n\x05Radii\x12\x1a\n\x12\x62\x61se_widget_radius\x18\x01 \x01(\x05\x12\x17\n\x0f\x63heckbox_radius\x18\x02 \x01(\x05\"T\n\tFontSizes\x12\x16\n\x0etiny_font_size\x18\x01 \x01(\x05\x12\x17\n\x0fsmall_font_size\x18\x02 \x01(\x05\x12\x16\n\x0e\x62\x61se_font_size\x18\x03 \x01(\x05\"a\n\x08UserInfo\x12\x17\n\x0finstallation_id\x18\x01 \x01(\t\x12\x1a\n\x12installation_id_v3\x18\x05 \x01(\t\x12\x1a\n\x12installation_id_v4\x18\x06 \x01(\tJ\x04\x08\x02\x10\x03\"l\n\x0f\x45nvironmentInfo\x12\x19\n\x11streamlit_version\x18\x01 \x01(\t\x12\x16\n\x0epython_version\x18\x02 \x01(\t\x12\x11\n\tserver_os\x18\x03 \x01(\t\x12\x13\n\x0bhas_display\x18\x04 \x01(\x08\x42/\n\x1c\x63om.snowflake.apps.streamlitB\x0fNewSessionProtob\x06proto3')
20
20
 
21
21
  _globals = globals()
22
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -35,19 +35,19 @@ if not _descriptor._USE_C_DESCRIPTORS:
35
35
  _globals['_CONFIG_TOOLBARMODE']._serialized_start=800
36
36
  _globals['_CONFIG_TOOLBARMODE']._serialized_end=863
37
37
  _globals['_CUSTOMTHEMECONFIG']._serialized_start=872
38
- _globals['_CUSTOMTHEMECONFIG']._serialized_end=2166
39
- _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_start=1784
40
- _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_end=1816
41
- _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_start=1818
42
- _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_end=1872
43
- _globals['_FONTFACE']._serialized_start=2168
44
- _globals['_FONTFACE']._serialized_end=2287
45
- _globals['_RADII']._serialized_start=2289
46
- _globals['_RADII']._serialized_end=2349
47
- _globals['_FONTSIZES']._serialized_start=2351
48
- _globals['_FONTSIZES']._serialized_end=2435
49
- _globals['_USERINFO']._serialized_start=2437
50
- _globals['_USERINFO']._serialized_end=2534
51
- _globals['_ENVIRONMENTINFO']._serialized_start=2536
52
- _globals['_ENVIRONMENTINFO']._serialized_end=2644
38
+ _globals['_CUSTOMTHEMECONFIG']._serialized_end=2218
39
+ _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_start=1815
40
+ _globals['_CUSTOMTHEMECONFIG_BASETHEME']._serialized_end=1847
41
+ _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_start=1849
42
+ _globals['_CUSTOMTHEMECONFIG_FONTFAMILY']._serialized_end=1903
43
+ _globals['_FONTFACE']._serialized_start=2220
44
+ _globals['_FONTFACE']._serialized_end=2339
45
+ _globals['_RADII']._serialized_start=2341
46
+ _globals['_RADII']._serialized_end=2401
47
+ _globals['_FONTSIZES']._serialized_start=2403
48
+ _globals['_FONTSIZES']._serialized_end=2487
49
+ _globals['_USERINFO']._serialized_start=2489
50
+ _globals['_USERINFO']._serialized_end=2586
51
+ _globals['_ENVIRONMENTINFO']._serialized_start=2588
52
+ _globals['_ENVIRONMENTINFO']._serialized_end=2696
53
53
  # @@protoc_insertion_point(module_scope)
@@ -293,6 +293,7 @@ class CustomThemeConfig(google.protobuf.message.Message):
293
293
  LINK_UNDERLINE_FIELD_NUMBER: builtins.int
294
294
  BASE_FONT_SIZE_FIELD_NUMBER: builtins.int
295
295
  BASE_FONT_WEIGHT_FIELD_NUMBER: builtins.int
296
+ CODE_FONT_WEIGHT_FIELD_NUMBER: builtins.int
296
297
  CODE_FONT_SIZE_FIELD_NUMBER: builtins.int
297
298
  SHOW_SIDEBAR_BORDER_FIELD_NUMBER: builtins.int
298
299
  SIDEBAR_FIELD_NUMBER: builtins.int
@@ -323,6 +324,7 @@ class CustomThemeConfig(google.protobuf.message.Message):
323
324
  link_underline: builtins.bool
324
325
  base_font_size: builtins.int
325
326
  base_font_weight: builtins.int
327
+ code_font_weight: builtins.int
326
328
  code_font_size: builtins.str
327
329
  show_sidebar_border: builtins.bool
328
330
  code_background_color: builtins.str
@@ -366,14 +368,15 @@ class CustomThemeConfig(google.protobuf.message.Message):
366
368
  link_underline: builtins.bool | None = ...,
367
369
  base_font_size: builtins.int | None = ...,
368
370
  base_font_weight: builtins.int | None = ...,
371
+ code_font_weight: builtins.int | None = ...,
369
372
  code_font_size: builtins.str | None = ...,
370
373
  show_sidebar_border: builtins.bool | None = ...,
371
374
  sidebar: global___CustomThemeConfig | None = ...,
372
375
  code_background_color: builtins.str | None = ...,
373
376
  dataframe_header_background_color: builtins.str | None = ...,
374
377
  ) -> None: ...
375
- def HasField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_font_weight", b"_base_font_weight", "_base_radius", b"_base_radius", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_dataframe_border_color", b"_dataframe_border_color", "_dataframe_header_background_color", b"_dataframe_header_background_color", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "base_font_size", b"base_font_size", "base_font_weight", b"base_font_weight", "base_radius", b"base_radius", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "code_font_size", b"code_font_size", "dataframe_border_color", b"dataframe_border_color", "dataframe_header_background_color", b"dataframe_header_background_color", "font_sizes", b"font_sizes", "link_color", b"link_color", "link_underline", b"link_underline", "radii", b"radii", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar"]) -> builtins.bool: ...
376
- def ClearField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_font_weight", b"_base_font_weight", "_base_radius", b"_base_radius", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_dataframe_border_color", b"_dataframe_border_color", "_dataframe_header_background_color", b"_dataframe_header_background_color", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "background_color", b"background_color", "base", b"base", "base_font_size", b"base_font_size", "base_font_weight", b"base_font_weight", "base_radius", b"base_radius", "body_font", b"body_font", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "code_font", b"code_font", "code_font_size", b"code_font_size", "dataframe_border_color", b"dataframe_border_color", "dataframe_header_background_color", b"dataframe_header_background_color", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "heading_font", b"heading_font", "link_color", b"link_color", "link_underline", b"link_underline", "primary_color", b"primary_color", "radii", b"radii", "secondary_background_color", b"secondary_background_color", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar", "skeleton_background_color", b"skeleton_background_color", "text_color", b"text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color"]) -> None: ...
378
+ def HasField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_font_weight", b"_base_font_weight", "_base_radius", b"_base_radius", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_code_font_weight", b"_code_font_weight", "_dataframe_border_color", b"_dataframe_border_color", "_dataframe_header_background_color", b"_dataframe_header_background_color", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "base_font_size", b"base_font_size", "base_font_weight", b"base_font_weight", "base_radius", b"base_radius", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "code_font_size", b"code_font_size", "code_font_weight", b"code_font_weight", "dataframe_border_color", b"dataframe_border_color", "dataframe_header_background_color", b"dataframe_header_background_color", "font_sizes", b"font_sizes", "link_color", b"link_color", "link_underline", b"link_underline", "radii", b"radii", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar"]) -> builtins.bool: ...
379
+ def ClearField(self, field_name: typing.Literal["_base_font_size", b"_base_font_size", "_base_font_weight", b"_base_font_weight", "_base_radius", b"_base_radius", "_border_color", b"_border_color", "_button_radius", b"_button_radius", "_code_background_color", b"_code_background_color", "_code_font_size", b"_code_font_size", "_code_font_weight", b"_code_font_weight", "_dataframe_border_color", b"_dataframe_border_color", "_dataframe_header_background_color", b"_dataframe_header_background_color", "_link_color", b"_link_color", "_link_underline", b"_link_underline", "_show_sidebar_border", b"_show_sidebar_border", "_show_widget_border", b"_show_widget_border", "_sidebar", b"_sidebar", "background_color", b"background_color", "base", b"base", "base_font_size", b"base_font_size", "base_font_weight", b"base_font_weight", "base_radius", b"base_radius", "body_font", b"body_font", "border_color", b"border_color", "button_radius", b"button_radius", "code_background_color", b"code_background_color", "code_font", b"code_font", "code_font_size", b"code_font_size", "code_font_weight", b"code_font_weight", "dataframe_border_color", b"dataframe_border_color", "dataframe_header_background_color", b"dataframe_header_background_color", "font", b"font", "font_faces", b"font_faces", "font_sizes", b"font_sizes", "heading_font", b"heading_font", "link_color", b"link_color", "link_underline", b"link_underline", "primary_color", b"primary_color", "radii", b"radii", "secondary_background_color", b"secondary_background_color", "show_sidebar_border", b"show_sidebar_border", "show_widget_border", b"show_widget_border", "sidebar", b"sidebar", "skeleton_background_color", b"skeleton_background_color", "text_color", b"text_color", "widget_background_color", b"widget_background_color", "widget_border_color", b"widget_border_color"]) -> None: ...
377
380
  @typing.overload
378
381
  def WhichOneof(self, oneof_group: typing.Literal["_base_font_size", b"_base_font_size"]) -> typing.Literal["base_font_size"] | None: ...
379
382
  @typing.overload
@@ -389,6 +392,8 @@ class CustomThemeConfig(google.protobuf.message.Message):
389
392
  @typing.overload
390
393
  def WhichOneof(self, oneof_group: typing.Literal["_code_font_size", b"_code_font_size"]) -> typing.Literal["code_font_size"] | None: ...
391
394
  @typing.overload
395
+ def WhichOneof(self, oneof_group: typing.Literal["_code_font_weight", b"_code_font_weight"]) -> typing.Literal["code_font_weight"] | None: ...
396
+ @typing.overload
392
397
  def WhichOneof(self, oneof_group: typing.Literal["_dataframe_border_color", b"_dataframe_border_color"]) -> typing.Literal["dataframe_border_color"] | None: ...
393
398
  @typing.overload
394
399
  def WhichOneof(self, oneof_group: typing.Literal["_dataframe_header_background_color", b"_dataframe_header_background_color"]) -> typing.Literal["dataframe_header_background_color"] | None: ...
@@ -37,7 +37,7 @@
37
37
  <script>
38
38
  window.prerenderReady = false
39
39
  </script>
40
- <script type="module" crossorigin src="./static/js/index.GQSrzYvF.js"></script>
40
+ <script type="module" crossorigin src="./static/js/index.C-vLCSJp.js"></script>
41
41
  <link rel="stylesheet" crossorigin href="./static/css/index.CJVRHjQZ.css">
42
42
  </head>
43
43
  <body>