streamlit-nightly 1.45.1.dev20250503__py3-none-any.whl → 1.45.1.dev20250505__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 (108) hide show
  1. streamlit/column_config.py +8 -8
  2. streamlit/commands/execution_control.py +2 -5
  3. streamlit/components/v1/components.py +1 -1
  4. streamlit/connections/__init__.py +2 -2
  5. streamlit/delta_generator.py +2 -2
  6. streamlit/elements/alert.py +1 -1
  7. streamlit/elements/json.py +1 -1
  8. streamlit/elements/lib/built_in_chart_utils.py +14 -6
  9. streamlit/elements/lib/column_config_utils.py +1 -3
  10. streamlit/elements/lib/file_uploader_utils.py +7 -2
  11. streamlit/elements/lib/options_selector_utils.py +1 -1
  12. streamlit/elements/metric.py +4 -4
  13. streamlit/elements/progress.py +1 -1
  14. streamlit/elements/widgets/number_input.py +23 -5
  15. streamlit/elements/widgets/selectbox.py +25 -0
  16. streamlit/elements/widgets/time_widgets.py +43 -0
  17. streamlit/proto/DateInput_pb2.py +4 -3
  18. streamlit/proto/DateInput_pb2.pyi +8 -2
  19. streamlit/proto/NumberInput_pb2.py +6 -5
  20. streamlit/proto/NumberInput_pb2.pyi +9 -2
  21. streamlit/proto/Selectbox_pb2.py +4 -3
  22. streamlit/proto/Selectbox_pb2.pyi +9 -2
  23. streamlit/proto/TimeInput_pb2.py +4 -3
  24. streamlit/proto/TimeInput_pb2.pyi +9 -2
  25. streamlit/runtime/__init__.py +1 -1
  26. streamlit/runtime/caching/__init__.py +6 -6
  27. streamlit/runtime/caching/hashing.py +1 -1
  28. streamlit/runtime/connection_factory.py +1 -1
  29. streamlit/runtime/credentials.py +1 -1
  30. streamlit/runtime/scriptrunner/__init__.py +4 -4
  31. streamlit/runtime/scriptrunner/script_runner.py +3 -6
  32. streamlit/runtime/secrets.py +1 -1
  33. streamlit/runtime/state/__init__.py +5 -5
  34. streamlit/static/index.html +1 -1
  35. streamlit/static/static/js/{ErrorOutline.esm.Bi4rIKce.js → ErrorOutline.esm.BgsGCsV4.js} +1 -1
  36. streamlit/static/static/js/{FileDownload.esm.CgcfJ7jp.js → FileDownload.esm.CCKezPn5.js} +1 -1
  37. streamlit/static/static/js/{FileHelper.DNojV8Y-.js → FileHelper.CprSF_kT.js} +1 -1
  38. streamlit/static/static/js/{FormClearHelper.Dj9cIjIB.js → FormClearHelper.DiwQ0EtT.js} +1 -1
  39. streamlit/static/static/js/{Hooks.BzFUZ6MJ.js → Hooks.DDqhyZ1_.js} +1 -1
  40. streamlit/static/static/js/{InputInstructions.CYPXcx5I.js → InputInstructions.BCEZxme4.js} +1 -1
  41. streamlit/static/static/js/{ProgressBar.ZaslM_lv.js → ProgressBar.CGdY94g_.js} +1 -1
  42. streamlit/static/static/js/{RenderInPortalIfExists.BuhqVIo4.js → RenderInPortalIfExists.uGJp_Q0v.js} +1 -1
  43. streamlit/static/static/js/{Toolbar.Dh9Ti0Xp.js → Toolbar.hTlw0-K1.js} +1 -1
  44. streamlit/static/static/js/{base-input.CWmg0piT.js → base-input.mGTY3-qU.js} +1 -1
  45. streamlit/static/static/js/{checkbox.B55PmSuL.js → checkbox.Cg-5cKAh.js} +1 -1
  46. streamlit/static/static/js/{createSuper.B_ZYGAdZ.js → createSuper.-HPb1oYT.js} +1 -1
  47. streamlit/static/static/js/{data-grid-overlay-editor.BC3_SI0J.js → data-grid-overlay-editor.BpNYxiTp.js} +1 -1
  48. streamlit/static/static/js/{downloader.DCVryQ8m.js → downloader.DS9891pS.js} +1 -1
  49. streamlit/static/static/js/{es6.Dz_yB5z2.js → es6.CU1PEL2w.js} +2 -2
  50. streamlit/static/static/js/{iframeResizer.contentWindow.BL9oGsv0.js → iframeResizer.contentWindow.CgJE2bJN.js} +1 -1
  51. streamlit/static/static/js/{index.Dk4s-H9g.js → index.B209tswL.js} +1 -1
  52. streamlit/static/static/js/{index.DsUIRBrE.js → index.BC0ueJ8H.js} +1 -1
  53. streamlit/static/static/js/{index.B2rrdjSM.js → index.BHVQ94t4.js} +1 -1
  54. streamlit/static/static/js/{index.n-3bctcT.js → index.BT0p7gAu.js} +1 -1
  55. streamlit/static/static/js/{index.DJXE7AM9.js → index.BTTj6ld4.js} +1 -1
  56. streamlit/static/static/js/{index.BTniWQ7k.js → index.BVjgrQ4R.js} +1 -1
  57. streamlit/static/static/js/{index.CEtbVfDc.js → index.BXYstdPh.js} +1 -1
  58. streamlit/static/static/js/{index.CnBJWuqh.js → index.BZ9mqzEJ.js} +1 -1
  59. streamlit/static/static/js/{index.DX5LBKpa.js → index.Bb-Ukg41.js} +1 -1
  60. streamlit/static/static/js/{index.149XmMwk.js → index.BhTok8vt.js} +1 -1
  61. streamlit/static/static/js/{index.CNMeZMWE.js → index.Bph6ZoI5.js} +1 -1
  62. streamlit/static/static/js/{index.Cim9S8Ss.js → index.CJPcdxPe.js} +1 -1
  63. streamlit/static/static/js/{index.DB8lzSwd.js → index.CMOA-8Q2.js} +1 -1
  64. streamlit/static/static/js/{index.BKWZKL08.js → index.CN91oQMB.js} +5 -5
  65. streamlit/static/static/js/{index.Bkh6Uq46.js → index.CtoDsUtq.js} +1 -1
  66. streamlit/static/static/js/{index.Bw1GLRoJ.js → index.CvFsF3FD.js} +1 -1
  67. streamlit/static/static/js/{index.xXFNtMRp.js → index.CyGuL4If.js} +1 -1
  68. streamlit/static/static/js/{index.B8bKQXh9.js → index.CzGUd4IN.js} +1 -1
  69. streamlit/static/static/js/{index.CLm1vyQL.js → index.DAxf3_iz.js} +1 -1
  70. streamlit/static/static/js/{index.Bjv3WjfL.js → index.DJHUlWgy.js} +1 -1
  71. streamlit/static/static/js/{index.CqhFhCXO.js → index.DLTqo4pp.js} +1 -1
  72. streamlit/static/static/js/{index.B6Lkujkg.js → index.DPJBu2uZ.js} +1 -1
  73. streamlit/static/static/js/{index.B71v2qvG.js → index.DVpzZJNg.js} +1 -1
  74. streamlit/static/static/js/{index.DXNwUj37.js → index.DWV80Vyw.js} +1 -1
  75. streamlit/static/static/js/{index.C1Onnqgx.js → index.DZ6oX-v9.js} +5 -5
  76. streamlit/static/static/js/{index.JBn4qgd8.js → index.Dh4RKl-F.js} +1 -1
  77. streamlit/static/static/js/{index.C5Bk4I5D.js → index.Dn76KVNf.js} +1 -1
  78. streamlit/static/static/js/{index.BL9ZervX.js → index.DtqvdV-p.js} +1 -1
  79. streamlit/static/static/js/{index.DGQq6N06.js → index.ErkF0SoX.js} +1 -1
  80. streamlit/static/static/js/{index.Clgb-C0M.js → index.GSYBrzVp.js} +1 -1
  81. streamlit/static/static/js/{index.Bi2P2smS.js → index.OngWTN39.js} +1 -1
  82. streamlit/static/static/js/{index.poyxGVIV.js → index.PSwG8ayC.js} +1 -1
  83. streamlit/static/static/js/{index.C9t2WUik.js → index.UTlCdasa.js} +1 -1
  84. streamlit/static/static/js/{index.DBjodTv0.js → index.eR_vQpeg.js} +1 -1
  85. streamlit/static/static/js/{index.ZM4hBepQ.js → index.fLsU9uCJ.js} +1 -1
  86. streamlit/static/static/js/{index.CKlQXXH5.js → index.hPjr68pz.js} +1 -1
  87. streamlit/static/static/js/{index.B4dHtLlL.js → index.kXOZCC_6.js} +1 -1
  88. streamlit/static/static/js/{input.tN5HMxoF.js → input.DY17i94N.js} +1 -1
  89. streamlit/static/static/js/{memory.CUqn-HRH.js → memory.DsIIcbSd.js} +1 -1
  90. streamlit/static/static/js/{mergeWith.DerBQcY2.js → mergeWith.cRgGdgvI.js} +1 -1
  91. streamlit/static/static/js/{number-overlay-editor.BU-PumD0.js → number-overlay-editor.B8Xi2dYq.js} +1 -1
  92. streamlit/static/static/js/{possibleConstructorReturn.BqXvihmp.js → possibleConstructorReturn.BgDi5nUm.js} +1 -1
  93. streamlit/static/static/js/{sandbox.DEPmvMZ8.js → sandbox.BH9emp13.js} +1 -1
  94. streamlit/static/static/js/{textarea.DTRZkwAk.js → textarea.DAyShsGG.js} +1 -1
  95. streamlit/static/static/js/{timepicker.BkL0oPvT.js → timepicker.CCH2R2Y0.js} +1 -1
  96. streamlit/static/static/js/{toConsumableArray.DtI7t_Vr.js → toConsumableArray.CNffSDCu.js} +1 -1
  97. streamlit/static/static/js/{uniqueId.CBIMIugU.js → uniqueId.B49CstkV.js} +1 -1
  98. streamlit/static/static/js/{useBasicWidgetState.CBoFkKUi.js → useBasicWidgetState.CkThOkF9.js} +1 -1
  99. streamlit/static/static/js/{useOnInputChange.B59UtP7h.js → useOnInputChange.BqEq0xFZ.js} +1 -1
  100. streamlit/static/static/js/{withFullScreenWrapper.BaWUpTVz.js → withFullScreenWrapper.UsvF_Jwr.js} +1 -1
  101. streamlit/web/bootstrap.py +3 -2
  102. streamlit/web/server/__init__.py +2 -2
  103. {streamlit_nightly-1.45.1.dev20250503.dist-info → streamlit_nightly-1.45.1.dev20250505.dist-info}/METADATA +1 -1
  104. {streamlit_nightly-1.45.1.dev20250503.dist-info → streamlit_nightly-1.45.1.dev20250505.dist-info}/RECORD +108 -108
  105. {streamlit_nightly-1.45.1.dev20250503.dist-info → streamlit_nightly-1.45.1.dev20250505.dist-info}/WHEEL +1 -1
  106. {streamlit_nightly-1.45.1.dev20250503.data → streamlit_nightly-1.45.1.dev20250505.data}/scripts/streamlit.cmd +0 -0
  107. {streamlit_nightly-1.45.1.dev20250503.dist-info → streamlit_nightly-1.45.1.dev20250505.dist-info}/entry_points.txt +0 -0
  108. {streamlit_nightly-1.45.1.dev20250503.dist-info → streamlit_nightly-1.45.1.dev20250505.dist-info}/top_level.txt +0 -0
@@ -13,9 +13,10 @@ _sym_db = _symbol_database.Default()
13
13
 
14
14
 
15
15
  from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
16
+ from streamlit.proto import WidthConfig_pb2 as streamlit_dot_proto_dot_WidthConfig__pb2
16
17
 
17
18
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/DateInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xf9\x01\n\tDateInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x03(\t\x12\x0b\n\x03min\x18\x04 \x01(\t\x12\x0b\n\x03max\x18\x05 \x01(\t\x12\x10\n\x08is_range\x18\x06 \x01(\x08\x12\x0c\n\x04help\x18\x07 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x08 \x01(\t\x12\r\n\x05value\x18\t \x03(\t\x12\x11\n\tset_value\x18\n \x01(\x08\x12\x10\n\x08\x64isabled\x18\x0b \x01(\x08\x12\x31\n\x10label_visibility\x18\x0c \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x0e\n\x06\x66ormat\x18\r \x01(\tB.\n\x1c\x63om.snowflake.apps.streamlitB\x0e\x44\x61teInputProtob\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/DateInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\x1a!streamlit/proto/WidthConfig.proto\"\xbd\x02\n\tDateInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x03(\t\x12\x0b\n\x03min\x18\x04 \x01(\t\x12\x0b\n\x03max\x18\x05 \x01(\t\x12\x10\n\x08is_range\x18\x06 \x01(\x08\x12\x0c\n\x04help\x18\x07 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x08 \x01(\t\x12\r\n\x05value\x18\t \x03(\t\x12\x11\n\tset_value\x18\n \x01(\x08\x12\x10\n\x08\x64isabled\x18\x0b \x01(\x08\x12\x31\n\x10label_visibility\x18\x0c \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x0e\n\x06\x66ormat\x18\r \x01(\t\x12\x31\n\x0cwidth_config\x18\x0e \x01(\x0b\x32\x16.streamlit.WidthConfigH\x00\x88\x01\x01\x42\x0f\n\r_width_configB.\n\x1c\x63om.snowflake.apps.streamlitB\x0e\x44\x61teInputProtob\x06proto3')
19
20
 
20
21
  _globals = globals()
21
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -23,6 +24,6 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.DateInput_p
23
24
  if not _descriptor._USE_C_DESCRIPTORS:
24
25
  _globals['DESCRIPTOR']._loaded_options = None
25
26
  _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\016DateInputProto'
26
- _globals['_DATEINPUT']._serialized_start=82
27
- _globals['_DATEINPUT']._serialized_end=331
27
+ _globals['_DATEINPUT']._serialized_start=117
28
+ _globals['_DATEINPUT']._serialized_end=434
28
29
  # @@protoc_insertion_point(module_scope)
@@ -23,6 +23,7 @@ import google.protobuf.descriptor
23
23
  import google.protobuf.internal.containers
24
24
  import google.protobuf.message
25
25
  import streamlit.proto.LabelVisibilityMessage_pb2
26
+ import streamlit.proto.WidthConfig_pb2
26
27
  import typing
27
28
 
28
29
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@@ -44,6 +45,7 @@ class DateInput(google.protobuf.message.Message):
44
45
  DISABLED_FIELD_NUMBER: builtins.int
45
46
  LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
46
47
  FORMAT_FIELD_NUMBER: builtins.int
48
+ WIDTH_CONFIG_FIELD_NUMBER: builtins.int
47
49
  id: builtins.str
48
50
  label: builtins.str
49
51
  min: builtins.str
@@ -60,6 +62,8 @@ class DateInput(google.protobuf.message.Message):
60
62
  def value(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
61
63
  @property
62
64
  def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
65
+ @property
66
+ def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig: ...
63
67
  def __init__(
64
68
  self,
65
69
  *,
@@ -76,8 +80,10 @@ class DateInput(google.protobuf.message.Message):
76
80
  disabled: builtins.bool = ...,
77
81
  label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
78
82
  format: builtins.str = ...,
83
+ width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
79
84
  ) -> None: ...
80
- def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
81
- def ClearField(self, field_name: typing.Literal["default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "help", b"help", "id", b"id", "is_range", b"is_range", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "set_value", b"set_value", "value", b"value"]) -> None: ...
85
+ def HasField(self, field_name: typing.Literal["_width_config", b"_width_config", "label_visibility", b"label_visibility", "width_config", b"width_config"]) -> builtins.bool: ...
86
+ def ClearField(self, field_name: typing.Literal["_width_config", b"_width_config", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "help", b"help", "id", b"id", "is_range", b"is_range", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "set_value", b"set_value", "value", b"value", "width_config", b"width_config"]) -> None: ...
87
+ def WhichOneof(self, oneof_group: typing.Literal["_width_config", b"_width_config"]) -> typing.Literal["width_config"] | None: ...
82
88
 
83
89
  global___DateInput = DateInput
@@ -13,9 +13,10 @@ _sym_db = _symbol_database.Default()
13
13
 
14
14
 
15
15
  from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
16
+ from streamlit.proto import WidthConfig_pb2 as streamlit_dot_proto_dot_WidthConfig__pb2
16
17
 
17
18
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/NumberInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xca\x03\n\x0bNumberInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x03 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x08 \x01(\t\x12\x0f\n\x07has_min\x18\x0b \x01(\x08\x12\x0f\n\x07has_max\x18\x0c \x01(\x08\x12(\n\tdata_type\x18\r \x01(\x0e\x32\x15.NumberInput.DataType\x12\x14\n\x07\x64\x65\x66\x61ult\x18\x0e \x01(\x01H\x00\x88\x01\x01\x12\x0c\n\x04step\x18\x0f \x01(\x01\x12\x0b\n\x03min\x18\x10 \x01(\x01\x12\x0b\n\x03max\x18\x11 \x01(\x01\x12\x0c\n\x04help\x18\x12 \x01(\t\x12\x12\n\x05value\x18\x13 \x01(\x01H\x01\x88\x01\x01\x12\x11\n\tset_value\x18\x14 \x01(\x08\x12\x10\n\x08\x64isabled\x18\x15 \x01(\x08\x12\x31\n\x10label_visibility\x18\x16 \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x13\n\x0bplaceholder\x18\x17 \x01(\t\x12\x0c\n\x04icon\x18\x18 \x01(\t\"\x1e\n\x08\x44\x61taType\x12\x07\n\x03INT\x10\x00\x12\t\n\x05\x46LOAT\x10\x01\x42\n\n\x08_defaultB\x08\n\x06_valueJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08J\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\x42\x30\n\x1c\x63om.snowflake.apps.streamlitB\x10NumberInputProtob\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/NumberInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\x1a!streamlit/proto/WidthConfig.proto\"\x8e\x04\n\x0bNumberInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x03 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x08 \x01(\t\x12\x0f\n\x07has_min\x18\x0b \x01(\x08\x12\x0f\n\x07has_max\x18\x0c \x01(\x08\x12(\n\tdata_type\x18\r \x01(\x0e\x32\x15.NumberInput.DataType\x12\x14\n\x07\x64\x65\x66\x61ult\x18\x0e \x01(\x01H\x00\x88\x01\x01\x12\x0c\n\x04step\x18\x0f \x01(\x01\x12\x0b\n\x03min\x18\x10 \x01(\x01\x12\x0b\n\x03max\x18\x11 \x01(\x01\x12\x0c\n\x04help\x18\x12 \x01(\t\x12\x12\n\x05value\x18\x13 \x01(\x01H\x01\x88\x01\x01\x12\x11\n\tset_value\x18\x14 \x01(\x08\x12\x10\n\x08\x64isabled\x18\x15 \x01(\x08\x12\x31\n\x10label_visibility\x18\x16 \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x13\n\x0bplaceholder\x18\x17 \x01(\t\x12\x0c\n\x04icon\x18\x18 \x01(\t\x12\x31\n\x0cwidth_config\x18\x19 \x01(\x0b\x32\x16.streamlit.WidthConfigH\x02\x88\x01\x01\"\x1e\n\x08\x44\x61taType\x12\x07\n\x03INT\x10\x00\x12\t\n\x05\x46LOAT\x10\x01\x42\n\n\x08_defaultB\x08\n\x06_valueB\x0f\n\r_width_configJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08J\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\x42\x30\n\x1c\x63om.snowflake.apps.streamlitB\x10NumberInputProtob\x06proto3')
19
20
 
20
21
  _globals = globals()
21
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -23,8 +24,8 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.NumberInput
23
24
  if not _descriptor._USE_C_DESCRIPTORS:
24
25
  _globals['DESCRIPTOR']._loaded_options = None
25
26
  _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\020NumberInputProto'
26
- _globals['_NUMBERINPUT']._serialized_start=84
27
- _globals['_NUMBERINPUT']._serialized_end=542
28
- _globals['_NUMBERINPUT_DATATYPE']._serialized_start=454
29
- _globals['_NUMBERINPUT_DATATYPE']._serialized_end=484
27
+ _globals['_NUMBERINPUT']._serialized_start=119
28
+ _globals['_NUMBERINPUT']._serialized_end=645
29
+ _globals['_NUMBERINPUT_DATATYPE']._serialized_start=540
30
+ _globals['_NUMBERINPUT_DATATYPE']._serialized_end=570
30
31
  # @@protoc_insertion_point(module_scope)
@@ -22,6 +22,7 @@ import google.protobuf.descriptor
22
22
  import google.protobuf.internal.enum_type_wrapper
23
23
  import google.protobuf.message
24
24
  import streamlit.proto.LabelVisibilityMessage_pb2
25
+ import streamlit.proto.WidthConfig_pb2
25
26
  import sys
26
27
  import typing
27
28
 
@@ -73,6 +74,7 @@ class NumberInput(google.protobuf.message.Message):
73
74
  LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
74
75
  PLACEHOLDER_FIELD_NUMBER: builtins.int
75
76
  ICON_FIELD_NUMBER: builtins.int
77
+ WIDTH_CONFIG_FIELD_NUMBER: builtins.int
76
78
  id: builtins.str
77
79
  label: builtins.str
78
80
  form_id: builtins.str
@@ -92,6 +94,8 @@ class NumberInput(google.protobuf.message.Message):
92
94
  icon: builtins.str
93
95
  @property
94
96
  def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
97
+ @property
98
+ def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig: ...
95
99
  def __init__(
96
100
  self,
97
101
  *,
@@ -113,12 +117,15 @@ class NumberInput(google.protobuf.message.Message):
113
117
  label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
114
118
  placeholder: builtins.str = ...,
115
119
  icon: builtins.str = ...,
120
+ width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
116
121
  ) -> None: ...
117
- def HasField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "label_visibility", b"label_visibility", "value", b"value"]) -> builtins.bool: ...
118
- def ClearField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "data_type", b"data_type", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "has_max", b"has_max", "has_min", b"has_min", "help", b"help", "icon", b"icon", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "placeholder", b"placeholder", "set_value", b"set_value", "step", b"step", "value", b"value"]) -> None: ...
122
+ def HasField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "_width_config", b"_width_config", "default", b"default", "label_visibility", b"label_visibility", "value", b"value", "width_config", b"width_config"]) -> builtins.bool: ...
123
+ def ClearField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "_width_config", b"_width_config", "data_type", b"data_type", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "has_max", b"has_max", "has_min", b"has_min", "help", b"help", "icon", b"icon", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "placeholder", b"placeholder", "set_value", b"set_value", "step", b"step", "value", b"value", "width_config", b"width_config"]) -> None: ...
119
124
  @typing.overload
120
125
  def WhichOneof(self, oneof_group: typing.Literal["_default", b"_default"]) -> typing.Literal["default"] | None: ...
121
126
  @typing.overload
122
127
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
128
+ @typing.overload
129
+ def WhichOneof(self, oneof_group: typing.Literal["_width_config", b"_width_config"]) -> typing.Literal["width_config"] | None: ...
123
130
 
124
131
  global___NumberInput = NumberInput
@@ -13,9 +13,10 @@ _sym_db = _symbol_database.Default()
13
13
 
14
14
 
15
15
  from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
16
+ from streamlit.proto import WidthConfig_pb2 as streamlit_dot_proto_dot_WidthConfig__pb2
16
17
 
17
18
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/Selectbox.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xe5\x02\n\tSelectbox\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x14\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\x05H\x00\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\t\x12\x0c\n\x04help\x18\x05 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x06 \x01(\t\x12\x16\n\x05value\x18\x07 \x01(\x05\x42\x02\x18\x01H\x01\x88\x01\x01\x12\x16\n\traw_value\x18\r \x01(\tH\x02\x88\x01\x01\x12\x11\n\tset_value\x18\x08 \x01(\x08\x12\x10\n\x08\x64isabled\x18\t \x01(\x08\x12\x31\n\x10label_visibility\x18\n \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x13\n\x0bplaceholder\x18\x0b \x01(\t\x12\x1f\n\x12\x61\x63\x63\x65pt_new_options\x18\x0c \x01(\x08H\x03\x88\x01\x01\x42\n\n\x08_defaultB\x08\n\x06_valueB\x0c\n\n_raw_valueB\x15\n\x13_accept_new_optionsB.\n\x1c\x63om.snowflake.apps.streamlitB\x0eSelectboxProtob\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/Selectbox.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\x1a!streamlit/proto/WidthConfig.proto\"\xa9\x03\n\tSelectbox\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x14\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\x05H\x00\x88\x01\x01\x12\x0f\n\x07options\x18\x04 \x03(\t\x12\x0c\n\x04help\x18\x05 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x06 \x01(\t\x12\x16\n\x05value\x18\x07 \x01(\x05\x42\x02\x18\x01H\x01\x88\x01\x01\x12\x16\n\traw_value\x18\r \x01(\tH\x02\x88\x01\x01\x12\x11\n\tset_value\x18\x08 \x01(\x08\x12\x10\n\x08\x64isabled\x18\t \x01(\x08\x12\x31\n\x10label_visibility\x18\n \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x13\n\x0bplaceholder\x18\x0b \x01(\t\x12\x1f\n\x12\x61\x63\x63\x65pt_new_options\x18\x0c \x01(\x08H\x03\x88\x01\x01\x12\x31\n\x0cwidth_config\x18\x0e \x01(\x0b\x32\x16.streamlit.WidthConfigH\x04\x88\x01\x01\x42\n\n\x08_defaultB\x08\n\x06_valueB\x0c\n\n_raw_valueB\x15\n\x13_accept_new_optionsB\x0f\n\r_width_configB.\n\x1c\x63om.snowflake.apps.streamlitB\x0eSelectboxProtob\x06proto3')
19
20
 
20
21
  _globals = globals()
21
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -25,6 +26,6 @@ if not _descriptor._USE_C_DESCRIPTORS:
25
26
  _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\016SelectboxProto'
26
27
  _globals['_SELECTBOX'].fields_by_name['value']._loaded_options = None
27
28
  _globals['_SELECTBOX'].fields_by_name['value']._serialized_options = b'\030\001'
28
- _globals['_SELECTBOX']._serialized_start=82
29
- _globals['_SELECTBOX']._serialized_end=439
29
+ _globals['_SELECTBOX']._serialized_start=117
30
+ _globals['_SELECTBOX']._serialized_end=542
30
31
  # @@protoc_insertion_point(module_scope)
@@ -23,6 +23,7 @@ import google.protobuf.descriptor
23
23
  import google.protobuf.internal.containers
24
24
  import google.protobuf.message
25
25
  import streamlit.proto.LabelVisibilityMessage_pb2
26
+ import streamlit.proto.WidthConfig_pb2
26
27
  import typing
27
28
 
28
29
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@@ -44,6 +45,7 @@ class Selectbox(google.protobuf.message.Message):
44
45
  LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
45
46
  PLACEHOLDER_FIELD_NUMBER: builtins.int
46
47
  ACCEPT_NEW_OPTIONS_FIELD_NUMBER: builtins.int
48
+ WIDTH_CONFIG_FIELD_NUMBER: builtins.int
47
49
  id: builtins.str
48
50
  label: builtins.str
49
51
  default: builtins.int
@@ -62,6 +64,8 @@ class Selectbox(google.protobuf.message.Message):
62
64
  def options(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
63
65
  @property
64
66
  def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
67
+ @property
68
+ def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig: ...
65
69
  def __init__(
66
70
  self,
67
71
  *,
@@ -78,9 +82,10 @@ class Selectbox(google.protobuf.message.Message):
78
82
  label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
79
83
  placeholder: builtins.str = ...,
80
84
  accept_new_options: builtins.bool | None = ...,
85
+ width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
81
86
  ) -> None: ...
82
- def HasField(self, field_name: typing.Literal["_accept_new_options", b"_accept_new_options", "_default", b"_default", "_raw_value", b"_raw_value", "_value", b"_value", "accept_new_options", b"accept_new_options", "default", b"default", "label_visibility", b"label_visibility", "raw_value", b"raw_value", "value", b"value"]) -> builtins.bool: ...
83
- def ClearField(self, field_name: typing.Literal["_accept_new_options", b"_accept_new_options", "_default", b"_default", "_raw_value", b"_raw_value", "_value", b"_value", "accept_new_options", b"accept_new_options", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "options", b"options", "placeholder", b"placeholder", "raw_value", b"raw_value", "set_value", b"set_value", "value", b"value"]) -> None: ...
87
+ def HasField(self, field_name: typing.Literal["_accept_new_options", b"_accept_new_options", "_default", b"_default", "_raw_value", b"_raw_value", "_value", b"_value", "_width_config", b"_width_config", "accept_new_options", b"accept_new_options", "default", b"default", "label_visibility", b"label_visibility", "raw_value", b"raw_value", "value", b"value", "width_config", b"width_config"]) -> builtins.bool: ...
88
+ def ClearField(self, field_name: typing.Literal["_accept_new_options", b"_accept_new_options", "_default", b"_default", "_raw_value", b"_raw_value", "_value", b"_value", "_width_config", b"_width_config", "accept_new_options", b"accept_new_options", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "options", b"options", "placeholder", b"placeholder", "raw_value", b"raw_value", "set_value", b"set_value", "value", b"value", "width_config", b"width_config"]) -> None: ...
84
89
  @typing.overload
85
90
  def WhichOneof(self, oneof_group: typing.Literal["_accept_new_options", b"_accept_new_options"]) -> typing.Literal["accept_new_options"] | None: ...
86
91
  @typing.overload
@@ -89,5 +94,7 @@ class Selectbox(google.protobuf.message.Message):
89
94
  def WhichOneof(self, oneof_group: typing.Literal["_raw_value", b"_raw_value"]) -> typing.Literal["raw_value"] | None: ...
90
95
  @typing.overload
91
96
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
97
+ @typing.overload
98
+ def WhichOneof(self, oneof_group: typing.Literal["_width_config", b"_width_config"]) -> typing.Literal["width_config"] | None: ...
92
99
 
93
100
  global___Selectbox = Selectbox
@@ -13,9 +13,10 @@ _sym_db = _symbol_database.Default()
13
13
 
14
14
 
15
15
  from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
16
+ from streamlit.proto import WidthConfig_pb2 as streamlit_dot_proto_dot_WidthConfig__pb2
16
17
 
17
18
 
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/TimeInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xeb\x01\n\tTimeInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x14\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x05 \x01(\t\x12\x12\n\x05value\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x11\n\tset_value\x18\x07 \x01(\x08\x12\x10\n\x08\x64isabled\x18\x08 \x01(\x08\x12\x31\n\x10label_visibility\x18\t \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x0c\n\x04step\x18\n \x01(\x03\x42\n\n\x08_defaultB\x08\n\x06_valueB.\n\x1c\x63om.snowflake.apps.streamlitB\x0eTimeInputProtob\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fstreamlit/proto/TimeInput.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\x1a!streamlit/proto/WidthConfig.proto\"\xaf\x02\n\tTimeInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x14\n\x07\x64\x65\x66\x61ult\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0c\n\x04help\x18\x04 \x01(\t\x12\x0f\n\x07\x66orm_id\x18\x05 \x01(\t\x12\x12\n\x05value\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x11\n\tset_value\x18\x07 \x01(\x08\x12\x10\n\x08\x64isabled\x18\x08 \x01(\x08\x12\x31\n\x10label_visibility\x18\t \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x0c\n\x04step\x18\n \x01(\x03\x12\x31\n\x0cwidth_config\x18\x0b \x01(\x0b\x32\x16.streamlit.WidthConfigH\x02\x88\x01\x01\x42\n\n\x08_defaultB\x08\n\x06_valueB\x0f\n\r_width_configB.\n\x1c\x63om.snowflake.apps.streamlitB\x0eTimeInputProtob\x06proto3')
19
20
 
20
21
  _globals = globals()
21
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -23,6 +24,6 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.TimeInput_p
23
24
  if not _descriptor._USE_C_DESCRIPTORS:
24
25
  _globals['DESCRIPTOR']._loaded_options = None
25
26
  _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\016TimeInputProto'
26
- _globals['_TIMEINPUT']._serialized_start=82
27
- _globals['_TIMEINPUT']._serialized_end=317
27
+ _globals['_TIMEINPUT']._serialized_start=117
28
+ _globals['_TIMEINPUT']._serialized_end=420
28
29
  # @@protoc_insertion_point(module_scope)
@@ -21,6 +21,7 @@ import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
23
  import streamlit.proto.LabelVisibilityMessage_pb2
24
+ import streamlit.proto.WidthConfig_pb2
24
25
  import typing
25
26
 
26
27
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@@ -39,6 +40,7 @@ class TimeInput(google.protobuf.message.Message):
39
40
  DISABLED_FIELD_NUMBER: builtins.int
40
41
  LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
41
42
  STEP_FIELD_NUMBER: builtins.int
43
+ WIDTH_CONFIG_FIELD_NUMBER: builtins.int
42
44
  id: builtins.str
43
45
  label: builtins.str
44
46
  default: builtins.str
@@ -50,6 +52,8 @@ class TimeInput(google.protobuf.message.Message):
50
52
  step: builtins.int
51
53
  @property
52
54
  def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
55
+ @property
56
+ def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig: ...
53
57
  def __init__(
54
58
  self,
55
59
  *,
@@ -63,12 +67,15 @@ class TimeInput(google.protobuf.message.Message):
63
67
  disabled: builtins.bool = ...,
64
68
  label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
65
69
  step: builtins.int = ...,
70
+ width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
66
71
  ) -> None: ...
67
- def HasField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "label_visibility", b"label_visibility", "value", b"value"]) -> builtins.bool: ...
68
- def ClearField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "set_value", b"set_value", "step", b"step", "value", b"value"]) -> None: ...
72
+ def HasField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "_width_config", b"_width_config", "default", b"default", "label_visibility", b"label_visibility", "value", b"value", "width_config", b"width_config"]) -> builtins.bool: ...
73
+ def ClearField(self, field_name: typing.Literal["_default", b"_default", "_value", b"_value", "_width_config", b"_width_config", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "set_value", b"set_value", "step", b"step", "value", b"value", "width_config", b"width_config"]) -> None: ...
69
74
  @typing.overload
70
75
  def WhichOneof(self, oneof_group: typing.Literal["_default", b"_default"]) -> typing.Literal["default"] | None: ...
71
76
  @typing.overload
72
77
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
78
+ @typing.overload
79
+ def WhichOneof(self, oneof_group: typing.Literal["_width_config", b"_width_config"]) -> typing.Literal["width_config"] | None: ...
73
80
 
74
81
  global___TimeInput = TimeInput
@@ -45,6 +45,6 @@ __all__ = [
45
45
  "RuntimeState",
46
46
  "SessionClient",
47
47
  "SessionClientDisconnectedError",
48
- "get_instance",
49
48
  "exists",
49
+ "get_instance",
50
50
  ]
@@ -86,13 +86,13 @@ cache = _cache
86
86
 
87
87
 
88
88
  __all__ = [
89
- "cache",
90
89
  "CACHE_DOCS_URL",
91
- "save_element_message",
92
- "save_block_message",
93
- "save_media_data",
94
- "get_data_cache_stats_provider",
95
- "get_resource_cache_stats_provider",
90
+ "cache",
96
91
  "cache_data",
97
92
  "cache_resource",
93
+ "get_data_cache_stats_provider",
94
+ "get_resource_cache_stats_provider",
95
+ "save_block_message",
96
+ "save_element_message",
97
+ "save_media_data",
98
98
  ]
@@ -194,7 +194,7 @@ class _HashStack:
194
194
  def pretty_print(self) -> str:
195
195
  def to_str(v: Any) -> str:
196
196
  try:
197
- return f"Object of type {type_util.get_fqn_type(v)}: {str(v)}"
197
+ return f"Object of type {type_util.get_fqn_type(v)}: {v}"
198
198
  except Exception:
199
199
  return "<Unable to convert item to string>"
200
200
 
@@ -432,4 +432,4 @@ def connection_factory(
432
432
  if pypi_package:
433
433
  extra_info = f"You need to install the '{pypi_package}' package to use this connection."
434
434
 
435
- raise ModuleNotFoundError(f"{str(e)}. {extra_info}")
435
+ raise ModuleNotFoundError(f"{e}. {extra_info}")
@@ -53,7 +53,7 @@ def email_prompt() -> str:
53
53
  return f"""
54
54
  {"👋 " if show_emoji else ""}{cli_util.style_for_cli("Welcome to Streamlit!", bold=True)}
55
55
 
56
- If youd like to receive helpful onboarding emails, news, offers, promotions,
56
+ If you'd like to receive helpful onboarding emails, news, offers, promotions,
57
57
  and the occasional swag, please enter your email address below. Otherwise,
58
58
  leave this field blank.
59
59
 
@@ -27,12 +27,12 @@ from streamlit.runtime.scriptrunner_utils.script_run_context import (
27
27
 
28
28
  __all__ = [
29
29
  "RerunData",
30
- "ScriptRunContext",
31
- "add_script_run_ctx",
32
- "get_script_run_ctx",
33
- "enqueue_message",
34
30
  "RerunException",
31
+ "ScriptRunContext",
35
32
  "ScriptRunner",
36
33
  "ScriptRunnerEvent",
37
34
  "StopException",
35
+ "add_script_run_ctx",
36
+ "enqueue_message",
37
+ "get_script_run_ctx",
38
38
  ]
@@ -161,11 +161,7 @@ def _mpa_v1(main_script_path: str):
161
161
  expanded=False,
162
162
  )
163
163
 
164
- if page._page != main_page._page:
165
- # Only run the page if it is not pointing to this script:
166
- page.run()
167
- # Finish the script execution here to only run the selected page
168
- raise StopException()
164
+ page.run()
169
165
 
170
166
 
171
167
  class ScriptRunner:
@@ -645,7 +641,8 @@ class ScriptRunner:
645
641
  else:
646
642
  if PagesManager.uses_pages_directory:
647
643
  _mpa_v1(self._main_script_path)
648
- exec(code, module.__dict__) # noqa: S102
644
+ else:
645
+ exec(code, module.__dict__) # noqa: S102
649
646
  self._fragment_storage.clear(
650
647
  new_fragment_ids=ctx.new_fragment_ids
651
648
  )
@@ -310,7 +310,7 @@ class Secrets(Mapping[str, Any]):
310
310
 
311
311
  if len(sub_secrets) == 1:
312
312
  # if there's just one file, collapse it so it's directly under `dirname`
313
- secrets[dirname] = sub_secrets[list(sub_secrets.keys())[0]]
313
+ secrets[dirname] = sub_secrets[next(iter(sub_secrets.keys()))]
314
314
  else:
315
315
  secrets[dirname] = sub_secrets
316
316
 
@@ -27,15 +27,15 @@ from streamlit.runtime.state.session_state_proxy import (
27
27
  from streamlit.runtime.state.widgets import register_widget
28
28
 
29
29
  __all__ = [
30
- "WidgetArgs",
31
- "WidgetCallback",
32
- "WidgetKwargs",
30
+ "SCRIPT_RUN_WITHOUT_ERRORS_KEY",
33
31
  "QueryParamsProxy",
34
32
  "SafeSessionState",
35
- "SCRIPT_RUN_WITHOUT_ERRORS_KEY",
36
33
  "SessionState",
37
- "SessionStateStatProvider",
38
34
  "SessionStateProxy",
35
+ "SessionStateStatProvider",
36
+ "WidgetArgs",
37
+ "WidgetCallback",
38
+ "WidgetKwargs",
39
39
  "get_session_state",
40
40
  "register_widget",
41
41
  ]
@@ -51,7 +51,7 @@
51
51
  <script>
52
52
  window.prerenderReady = false
53
53
  </script>
54
- <script type="module" crossorigin src="./static/js/index.C1Onnqgx.js"></script>
54
+ <script type="module" crossorigin src="./static/js/index.DZ6oX-v9.js"></script>
55
55
  <link rel="stylesheet" crossorigin href="./static/css/index.C6rq3aMZ.css">
56
56
  </head>
57
57
  <body>
@@ -1 +1 @@
1
- import{r,E as a,_ as n}from"./index.C1Onnqgx.js";var i=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(a,n({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))});i.displayName="ErrorOutline";export{i as E};
1
+ import{r,E as a,_ as n}from"./index.DZ6oX-v9.js";var i=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(a,n({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))});i.displayName="ErrorOutline";export{i as E};
@@ -1 +1 @@
1
- import{r as e,E as n,_ as a}from"./index.C1Onnqgx.js";var o=e.forwardRef(function(t,r){var l={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return e.createElement(n,a({iconAttrs:l,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:r}),e.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),e.createElement("path",{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"}))});o.displayName="Delete";var i=e.forwardRef(function(t,r){var l={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return e.createElement(n,a({iconAttrs:l,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:r}),e.createElement("rect",{width:24,height:24,fill:"none"}),e.createElement("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}))});i.displayName="FileDownload";export{o as D,i as F};
1
+ import{r as e,E as n,_ as a}from"./index.DZ6oX-v9.js";var o=e.forwardRef(function(t,r){var l={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return e.createElement(n,a({iconAttrs:l,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:r}),e.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),e.createElement("path",{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"}))});o.displayName="Delete";var i=e.forwardRef(function(t,r){var l={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return e.createElement(n,a({iconAttrs:l,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:r}),e.createElement("rect",{width:24,height:24,fill:"none"}),e.createElement("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}))});i.displayName="FileDownload";export{o as D,i as F};