streamlit 1.48.0__py3-none-any.whl → 1.48.1__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/elements/iframe.py +13 -22
  2. streamlit/proto/IFrame_pb2.py +8 -2
  3. streamlit/proto/IFrame_pb2.pyi +3 -0
  4. streamlit/static/index.html +1 -1
  5. streamlit/static/manifest.json +214 -214
  6. streamlit/static/static/js/{ErrorOutline.esm.D_4oFNKB.js → ErrorOutline.esm.DjObtx4K.js} +1 -1
  7. streamlit/static/static/js/{FileDownload.esm.NPgaLlUE.js → FileDownload.esm.Bz9nxNC5.js} +1 -1
  8. streamlit/static/static/js/{FileHelper.B2t9ikoS.js → FileHelper.BrQvUXVD.js} +1 -1
  9. streamlit/static/static/js/{FormClearHelper.BLEIUk6L.js → FormClearHelper.DF4gFAOO.js} +1 -1
  10. streamlit/static/static/js/{Hooks.BGm9sd4U.js → Hooks.DEoLCfOE.js} +1 -1
  11. streamlit/static/static/js/{InputInstructions.DtUxCBS8.js → InputInstructions.D8zoMog9.js} +1 -1
  12. streamlit/static/static/js/{Particles.BDRPO7r3.js → Particles.CCFySwdL.js} +1 -1
  13. streamlit/static/static/js/{ProgressBar.B64DUUqp.js → ProgressBar.COK9j1l0.js} +1 -1
  14. streamlit/static/static/js/{Toolbar.B3FquPk5.js → Toolbar.Dt4jIKlY.js} +1 -1
  15. streamlit/static/static/js/{base-input.DeBqm5mN.js → base-input.BmvSaPd2.js} +1 -1
  16. streamlit/static/static/js/{checkbox.C0odQfKb.js → checkbox.Cgxgc0et.js} +1 -1
  17. streamlit/static/static/js/{createSuper.DqQ5L3XG.js → createSuper.siQeagI2.js} +1 -1
  18. streamlit/static/static/js/{data-grid-overlay-editor.DbNsQa8Y.js → data-grid-overlay-editor.Ct51iCb_.js} +1 -1
  19. streamlit/static/static/js/{downloader.Bx1D0jhz.js → downloader.M6jQeNDf.js} +1 -1
  20. streamlit/static/static/js/{es6.CbPK4m0H.js → es6.CMaUdEZ5.js} +2 -2
  21. streamlit/static/static/js/{iframeResizer.contentWindow.CfLKrptA.js → iframeResizer.contentWindow.C33BryyP.js} +1 -1
  22. streamlit/static/static/js/{index.B9vzGbOt.js → index.8GJD0eeD.js} +1 -1
  23. streamlit/static/static/js/{index.9E7bRUBU.js → index.8QEYHMQD.js} +1 -1
  24. streamlit/static/static/js/{index.CjImmcsV.js → index.Ay41Wnu9.js} +1 -1
  25. streamlit/static/static/js/{index.CgUt3tz_.js → index.BLiKiJ7_.js} +1 -1
  26. streamlit/static/static/js/{index.CwAuytgV.js → index.BT78cJmU.js} +1 -1
  27. streamlit/static/static/js/{index.PyIqRRSR.js → index.BXDq9dj4.js} +1 -1
  28. streamlit/static/static/js/index.BdGvnhlM.js +1 -0
  29. streamlit/static/static/js/{index.CNNlC1NL.js → index.BfasrT0d.js} +1 -1
  30. streamlit/static/static/js/{index.CJzdLAun.js → index.CCdtFMFG.js} +1 -1
  31. streamlit/static/static/js/{index.D7GB-kly.js → index.CFRGZDz1.js} +1 -1
  32. streamlit/static/static/js/{index.Cb0xSF7V.js → index.CFSFYiPA.js} +1 -1
  33. streamlit/static/static/js/{index.DwaoC4Zp.js → index.CbdWnLqS.js} +1 -1
  34. streamlit/static/static/js/{index.CtiKsjSC.js → index.CeiIiXap.js} +1 -1
  35. streamlit/static/static/js/{index.ClRTsv8m.js → index.CgZDfhN4.js} +1 -1
  36. streamlit/static/static/js/{index.DCpyIFTV.js → index.Cqa4gqqN.js} +1 -1
  37. streamlit/static/static/js/{index.CZnagxXD.js → index.CzX2xpyc.js} +1 -1
  38. streamlit/static/static/js/{index.HeVbRh9H.js → index.D1EayrNh.js} +1 -1
  39. streamlit/static/static/js/{index.CO1sClzJ.js → index.D1ErX5go.js} +1 -1
  40. streamlit/static/static/js/{index.CnfWsQzS.js → index.D1jHqUJq.js} +1 -1
  41. streamlit/static/static/js/{index.DjMjyJl9.js → index.D5gweoL5.js} +1 -1
  42. streamlit/static/static/js/{index.BPsoiGgP.js → index.DByVKZgq.js} +1 -1
  43. streamlit/static/static/js/{index.mRztGO69.js → index.DEND45D1.js} +1 -1
  44. streamlit/static/static/js/{index.DvRPFfw6.js → index.DKN5MVff.js} +3 -3
  45. streamlit/static/static/js/{index.6s0nVIis.js → index.DfoxW1gP.js} +1 -1
  46. streamlit/static/static/js/{index.dfivzJNz.js → index.Dtf1Ac0x.js} +1 -1
  47. streamlit/static/static/js/{index.CrJ1XD_V.js → index.DxrLhpeO.js} +1 -1
  48. streamlit/static/static/js/{index.DRTn9zvD.js → index.J7o-_HIh.js} +1 -1
  49. streamlit/static/static/js/{index.J2D_m7LY.js → index.LU8juINp.js} +5 -5
  50. streamlit/static/static/js/{index.DE9wNOje.js → index.L_N2iylt.js} +1 -1
  51. streamlit/static/static/js/{index.4lI9TuZm.js → index.PZUX2kRz.js} +1 -1
  52. streamlit/static/static/js/{index.BDrQKMCm.js → index.ROjU6K0k.js} +1 -1
  53. streamlit/static/static/js/{index.B9PgeLrZ.js → index.WSNLkF94.js} +1 -1
  54. streamlit/static/static/js/{index.F9tSej94.js → index.X5W3gJLn.js} +1 -1
  55. streamlit/static/static/js/{index.DA5wU0mQ.js → index.k9LYqfSL.js} +1 -1
  56. streamlit/static/static/js/{index.0XDwe9RV.js → index.pnHtHv_c.js} +1 -1
  57. streamlit/static/static/js/{index.tB1kn_7z.js → index.tPUXqsfW.js} +1 -1
  58. streamlit/static/static/js/{index.wDYef4mQ.js → index.tsvTLdio.js} +1 -1
  59. streamlit/static/static/js/{input.BL2buuce.js → input.DZd6EQlV.js} +1 -1
  60. streamlit/static/static/js/{memory.CUxjUWS7.js → memory.ptkfuI71.js} +1 -1
  61. streamlit/static/static/js/{mergeWith.C1kp1zIi.js → mergeWith.GRNk8iwv.js} +1 -1
  62. streamlit/static/static/js/{number-overlay-editor.WpheGpmR.js → number-overlay-editor.DXS2qb1U.js} +1 -1
  63. streamlit/static/static/js/{possibleConstructorReturn.DbvQboK3.js → possibleConstructorReturn.Bd4ImlQ9.js} +1 -1
  64. streamlit/static/static/js/{sandbox.6lnFVWhX.js → sandbox.DsH8LuID.js} +1 -1
  65. streamlit/static/static/js/{timepicker.Bg4xAK95.js → timepicker.QVekV78C.js} +1 -1
  66. streamlit/static/static/js/{toConsumableArray.D9x7Ktv4.js → toConsumableArray.BJvaP8gb.js} +1 -1
  67. streamlit/static/static/js/{uniqueId.Bm8FHN92.js → uniqueId.D_5M8Dgf.js} +1 -1
  68. streamlit/static/static/js/{useBasicWidgetState.CUSYQZpm.js → useBasicWidgetState.DB3vMS9V.js} +1 -1
  69. streamlit/static/static/js/{useTextInputAutoExpand.Bf2egQOG.js → useTextInputAutoExpand.CBkGkaRt.js} +2 -2
  70. streamlit/static/static/js/{useUpdateUiValue.lE5xnYWF.js → useUpdateUiValue.C7ZKpLQK.js} +1 -1
  71. streamlit/static/static/js/{withFullScreenWrapper.CCOXR7N6.js → withFullScreenWrapper.C-gXt0Rl.js} +1 -1
  72. streamlit/user_info.py +13 -12
  73. streamlit/web/server/oauth_authlib_routes.py +3 -59
  74. {streamlit-1.48.0.dist-info → streamlit-1.48.1.dist-info}/METADATA +1 -1
  75. {streamlit-1.48.0.dist-info → streamlit-1.48.1.dist-info}/RECORD +79 -79
  76. streamlit/static/static/js/index.DHnB-C8A.js +0 -1
  77. {streamlit-1.48.0.data → streamlit-1.48.1.data}/scripts/streamlit.cmd +0 -0
  78. {streamlit-1.48.0.dist-info → streamlit-1.48.1.dist-info}/WHEEL +0 -0
  79. {streamlit-1.48.0.dist-info → streamlit-1.48.1.dist-info}/entry_points.txt +0 -0
  80. {streamlit-1.48.0.dist-info → streamlit-1.48.1.dist-info}/top_level.txt +0 -0
@@ -16,6 +16,7 @@ from __future__ import annotations
16
16
 
17
17
  from typing import TYPE_CHECKING, cast
18
18
 
19
+ from streamlit.elements.lib.layout_utils import LayoutConfig
19
20
  from streamlit.errors import StreamlitAPIException
20
21
  from streamlit.proto.IFrame_pb2 import IFrame as IFrameProto
21
22
  from streamlit.runtime.metrics_util import gather_metrics
@@ -95,12 +96,15 @@ class IframeMixin:
95
96
  marshall(
96
97
  iframe_proto,
97
98
  src=src,
98
- width=width,
99
- height=height,
100
99
  scrolling=scrolling,
101
100
  tab_index=tab_index,
102
101
  )
103
- return self.dg._enqueue("iframe", iframe_proto)
102
+ # When no width is specified, we want the iframe to stretch to fill the container.
103
+ layout_config = LayoutConfig(
104
+ width=width if width is not None else "stretch",
105
+ height=height if height is not None else 150,
106
+ )
107
+ return self.dg._enqueue("iframe", iframe_proto, layout_config=layout_config)
104
108
 
105
109
  @gather_metrics("_html")
106
110
  def _html(
@@ -177,12 +181,15 @@ class IframeMixin:
177
181
  marshall(
178
182
  iframe_proto,
179
183
  srcdoc=html,
180
- width=width,
181
- height=height,
182
184
  scrolling=scrolling,
183
185
  tab_index=tab_index,
184
186
  )
185
- return self.dg._enqueue("iframe", iframe_proto)
187
+ # When no width is specified, we want the html to stretch to fill the container.
188
+ layout_config = LayoutConfig(
189
+ width=width if width is not None else "stretch",
190
+ height=height if height is not None else 150,
191
+ )
192
+ return self.dg._enqueue("iframe", iframe_proto, layout_config=layout_config)
186
193
 
187
194
  @property
188
195
  def dg(self) -> DeltaGenerator:
@@ -194,8 +201,6 @@ def marshall(
194
201
  proto: IFrameProto,
195
202
  src: str | None = None,
196
203
  srcdoc: str | None = None,
197
- width: int | None = None,
198
- height: int | None = None,
199
204
  scrolling: bool = False,
200
205
  tab_index: int | None = None,
201
206
  ) -> None:
@@ -213,11 +218,6 @@ def marshall(
213
218
  The URL of the page to embed.
214
219
  srcdoc : str
215
220
  Inline HTML to embed. Overrides src.
216
- width : int
217
- The width of the frame in CSS pixels. Defaults to the app's
218
- default element width.
219
- height : int
220
- The height of the frame in CSS pixels. Defaults to 150.
221
221
  scrolling : bool
222
222
  If true, show a scrollbar when the content is larger than the iframe.
223
223
  Otherwise, never show a scrollbar.
@@ -231,15 +231,6 @@ def marshall(
231
231
  if srcdoc is not None:
232
232
  proto.srcdoc = srcdoc
233
233
 
234
- if width is not None:
235
- proto.width = width
236
- proto.has_width = True
237
-
238
- if height is not None:
239
- proto.height = height
240
- else:
241
- proto.height = 150
242
-
243
234
  proto.scrolling = scrolling
244
235
 
245
236
  if tab_index is not None:
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
14
14
 
15
15
 
16
16
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cstreamlit/proto/IFrame.proto\"\x9c\x01\n\x06IFrame\x12\r\n\x03src\x18\x01 \x01(\tH\x00\x12\x10\n\x06srcdoc\x18\x02 \x01(\tH\x00\x12\r\n\x05width\x18\x03 \x01(\x02\x12\x11\n\thas_width\x18\x04 \x01(\x08\x12\x0e\n\x06height\x18\x05 \x01(\x02\x12\x11\n\tscrolling\x18\x07 \x01(\x08\x12\x16\n\ttab_index\x18\x08 \x01(\x05H\x01\x88\x01\x01\x42\x06\n\x04typeB\x0c\n\n_tab_indexB+\n\x1c\x63om.snowflake.apps.streamlitB\x0bIFrameProtob\x06proto3')
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cstreamlit/proto/IFrame.proto\"\xa8\x01\n\x06IFrame\x12\r\n\x03src\x18\x01 \x01(\tH\x00\x12\x10\n\x06srcdoc\x18\x02 \x01(\tH\x00\x12\x11\n\x05width\x18\x03 \x01(\x02\x42\x02\x18\x01\x12\x15\n\thas_width\x18\x04 \x01(\x08\x42\x02\x18\x01\x12\x12\n\x06height\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x11\n\tscrolling\x18\x07 \x01(\x08\x12\x16\n\ttab_index\x18\x08 \x01(\x05H\x01\x88\x01\x01\x42\x06\n\x04typeB\x0c\n\n_tab_indexB+\n\x1c\x63om.snowflake.apps.streamlitB\x0bIFrameProtob\x06proto3')
18
18
 
19
19
  _globals = globals()
20
20
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -22,6 +22,12 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.IFrame_pb2'
22
22
  if not _descriptor._USE_C_DESCRIPTORS:
23
23
  _globals['DESCRIPTOR']._loaded_options = None
24
24
  _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\013IFrameProto'
25
+ _globals['_IFRAME'].fields_by_name['width']._loaded_options = None
26
+ _globals['_IFRAME'].fields_by_name['width']._serialized_options = b'\030\001'
27
+ _globals['_IFRAME'].fields_by_name['has_width']._loaded_options = None
28
+ _globals['_IFRAME'].fields_by_name['has_width']._serialized_options = b'\030\001'
29
+ _globals['_IFRAME'].fields_by_name['height']._loaded_options = None
30
+ _globals['_IFRAME'].fields_by_name['height']._serialized_options = b'\030\001'
25
31
  _globals['_IFRAME']._serialized_start=33
26
- _globals['_IFRAME']._serialized_end=189
32
+ _globals['_IFRAME']._serialized_end=201
27
33
  # @@protoc_insertion_point(module_scope)
@@ -40,8 +40,11 @@ class IFrame(google.protobuf.message.Message):
40
40
  srcdoc: builtins.str
41
41
  """Inline HTML"""
42
42
  width: builtins.float
43
+ """Deprecated: Use width_config on Element.proto instead"""
43
44
  has_width: builtins.bool
45
+ """Deprecated: Width is now handled through width_config on Element.proto"""
44
46
  height: builtins.float
47
+ """Deprecated: Use height_config on Element.proto instead"""
45
48
  scrolling: builtins.bool
46
49
  tab_index: builtins.int
47
50
  def __init__(
@@ -37,7 +37,7 @@
37
37
  <script>
38
38
  window.prerenderReady = false
39
39
  </script>
40
- <script type="module" crossorigin src="./static/js/index.DvRPFfw6.js"></script>
40
+ <script type="module" crossorigin src="./static/js/index.DKN5MVff.js"></script>
41
41
  <link rel="stylesheet" crossorigin href="./static/css/index.CJVRHjQZ.css">
42
42
  </head>
43
43
  <body>