streamlit-nightly 1.45.2.dev20250522__py3-none-any.whl → 1.45.2.dev20250526__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.
- streamlit/commands/echo.py +1 -1
- streamlit/config.py +2 -1
- streamlit/config_option.py +1 -1
- streamlit/config_util.py +4 -5
- streamlit/delta_generator.py +21 -0
- streamlit/elements/arrow.py +19 -0
- streamlit/elements/code.py +11 -10
- streamlit/elements/exception.py +4 -12
- streamlit/elements/graphviz_chart.py +1 -1
- streamlit/elements/heading.py +3 -4
- streamlit/elements/lib/built_in_chart_utils.py +19 -0
- streamlit/elements/lib/image_utils.py +2 -3
- streamlit/elements/lib/layout_utils.py +41 -1
- streamlit/elements/markdown.py +1 -1
- streamlit/elements/media.py +1 -1
- streamlit/elements/progress.py +3 -3
- streamlit/elements/vega_charts.py +5 -0
- streamlit/elements/widgets/button.py +1 -1
- streamlit/elements/widgets/color_picker.py +8 -14
- streamlit/elements/widgets/radio.py +1 -1
- streamlit/elements/widgets/selectbox.py +1 -1
- streamlit/elements/widgets/slider.py +10 -18
- streamlit/elements/widgets/text_widgets.py +1 -2
- streamlit/errors.py +15 -0
- streamlit/hello/animation_demo.py +1 -1
- streamlit/hello/mapping_demo.py +3 -4
- streamlit/logger.py +1 -1
- streamlit/proto/Block_pb2.py +32 -32
- streamlit/proto/Block_pb2.pyi +22 -10
- streamlit/proto/Code_pb2.py +5 -3
- streamlit/proto/Code_pb2.pyi +2 -9
- streamlit/proto/Element_pb2.py +5 -3
- streamlit/proto/Element_pb2.pyi +20 -3
- streamlit/runtime/caching/hashing.py +8 -9
- streamlit/runtime/credentials.py +8 -21
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{ErrorOutline.esm.CudC4cnG.js → ErrorOutline.esm.CtshIbC5.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.qn_AyTtU.js → FileDownload.esm.A0XrMp_A.js} +1 -1
- streamlit/static/static/js/{FileHelper.BWuvkxif.js → FileHelper.BkYmOfR4.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.CHYZBZGR.js → FormClearHelper.DvUrjO5s.js} +1 -1
- streamlit/static/static/js/{Hooks.aQtyO1Es.js → Hooks.Dw0PPeMp.js} +1 -1
- streamlit/static/static/js/{InputInstructions.u4jPRzPB.js → InputInstructions.BwkpOG-3.js} +1 -1
- streamlit/static/static/js/{ProgressBar.CG44OwiE.js → ProgressBar.Po8toa5U.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.VXXdANh0.js → RenderInPortalIfExists.DG7izwhP.js} +1 -1
- streamlit/static/static/js/{Toolbar.e8AKFI20.js → Toolbar.zoRxypF9.js} +1 -1
- streamlit/static/static/js/{base-input.D7ucWcOg.js → base-input.3hmq5vR4.js} +1 -1
- streamlit/static/static/js/{checkbox.B9R-wnB7.js → checkbox.DHVebTBP.js} +1 -1
- streamlit/static/static/js/{createSuper.C1ofFeAG.js → createSuper.CCzF882j.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.DtdlN29o.js → data-grid-overlay-editor.CRIS0V5u.js} +1 -1
- streamlit/static/static/js/{downloader.amlkJvLF.js → downloader.DOuJ7F43.js} +1 -1
- streamlit/static/static/js/{es6.Bx1hXnS0.js → es6.BojNhy97.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.DgHMAYbI.js → iframeResizer.contentWindow.CmN7IDO7.js} +1 -1
- streamlit/static/static/js/{index.7CBT51EL.js → index.3HscCA0Q.js} +1 -1
- streamlit/static/static/js/{index.N0sZYfFM.js → index.B0GUCtHl.js} +1 -1
- streamlit/static/static/js/{index.DlKdkJEq.js → index.B3Y99Usz.js} +1 -1
- streamlit/static/static/js/{index.CQRM5-Cg.js → index.B6guKn0h.js} +1 -1
- streamlit/static/static/js/{index.DZf_kpi0.js → index.BEfxU01i.js} +1 -1
- streamlit/static/static/js/{index.Yu7J_Dze.js → index.BMWx_YQD.js} +1 -1
- streamlit/static/static/js/{index.DQ5EXoB_.js → index.BV-8GugV.js} +1 -1
- streamlit/static/static/js/{index.BqEJFCLf.js → index.BXfm7UZe.js} +1 -1
- streamlit/static/static/js/{index.DE1gGOzc.js → index.BfcdLS9y.js} +1 -1
- streamlit/static/static/js/{index.D5GJYvYX.js → index.BgmEuudT.js} +1 -1
- streamlit/static/static/js/{index.BdDyuQmj.js → index.BsiojTxz.js} +1 -1
- streamlit/static/static/js/{index.Bn5K9Bd_.js → index.BvWDoWjf.js} +1 -1
- streamlit/static/static/js/{index.1mfAtb9U.js → index.CLFnBokZ.js} +1 -1
- streamlit/static/static/js/{index.C3vs9CpH.js → index.CPiByGGr.js} +1 -1
- streamlit/static/static/js/{index.DUennCN8.js → index.CTVSiPCo.js} +1 -1
- streamlit/static/static/js/{index.BmoykTHR.js → index.CVxkW_lc.js} +1 -1
- streamlit/static/static/js/{index.C0T_M4GD.js → index.CWweAMBx.js} +1 -1
- streamlit/static/static/js/{index.VzRep4kY.js → index.CZ6f-p0K.js} +1 -1
- streamlit/static/static/js/{index.BtNqOUEO.js → index.CdgLDqMc.js} +1 -1
- streamlit/static/static/js/{index.D08mj5Od.js → index.Cpz3pp0B.js} +1 -1
- streamlit/static/static/js/{index.DN4Mx7FE.js → index.CzMgwzgb.js} +1 -1
- streamlit/static/static/js/{index.CYHkBSAi.js → index.DH2YAEv6.js} +1 -1
- streamlit/static/static/js/{index.BD_oIhGF.js → index.DNlMgaSP.js} +1 -1
- streamlit/static/static/js/{index.DiBs3xkT.js → index.DP7RHJHC.js} +1 -1
- streamlit/static/static/js/{index.CMLTPeKt.js → index.DcLQo3NB.js} +5 -5
- streamlit/static/static/js/{index.BWuE2_HE.js → index.DkNaEiLi.js} +1 -1
- streamlit/static/static/js/{index.Bdy3ZPdq.js → index.DtpZrdsz.js} +1 -1
- streamlit/static/static/js/{index.B8eTe00V.js → index.HdiDLe37.js} +1 -1
- streamlit/static/static/js/{index.CNh3_B-b.js → index.Ih0EXMso.js} +1 -1
- streamlit/static/static/js/{index.BaaFPBjg.js → index.R5J-UXhx.js} +1 -1
- streamlit/static/static/js/{index.Bna1CU8i.js → index.VVmp3qV7.js} +1 -1
- streamlit/static/static/js/{index.D97xl78q.js → index.YePOPnW6.js} +11 -11
- streamlit/static/static/js/{index.BgTPKzvI.js → index.YtwVjbe-.js} +1 -1
- streamlit/static/static/js/{index.Bon8EwWL.js → index.kWUcv9pK.js} +1 -1
- streamlit/static/static/js/{index.DNwNuLWE.js → index.muQ-sA7D.js} +1 -1
- streamlit/static/static/js/{index.DxHtKYyS.js → index.p5qVS5RU.js} +1 -1
- streamlit/static/static/js/{index.Or4BfcX_.js → index.whcmqOYZ.js} +1 -1
- streamlit/static/static/js/{input.CRcaB9oP.js → input.C95vVzrH.js} +1 -1
- streamlit/static/static/js/{memory.F9D6Oyjj.js → memory.lfILky3m.js} +1 -1
- streamlit/static/static/js/{mergeWith.BYtZfcmi.js → mergeWith.CdpKbzWl.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.ClWmQbhW.js → number-overlay-editor.D2TjUrKf.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.BHxvTsgt.js → possibleConstructorReturn.DQV58bYB.js} +1 -1
- streamlit/static/static/js/{sandbox.9HJbznr2.js → sandbox.R1dhBCnm.js} +1 -1
- streamlit/static/static/js/{textarea.MC6GQYce.js → textarea.t5D4QCw3.js} +1 -1
- streamlit/static/static/js/{timepicker.BJLSDuQc.js → timepicker.BI9iPIxz.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BxOYujrG.js → toConsumableArray.COyXrPhy.js} +1 -1
- streamlit/static/static/js/{uniqueId.nweXvThW.js → uniqueId.CaWObuU_.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.ByOGmtKn.js → useBasicWidgetState.Wd2TSACf.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.oE3yUL9n.js → useOnInputChange.CUFXty-S.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.Cg-VqiDm.js → withFullScreenWrapper.wgkD5MeK.js} +1 -1
- streamlit/watcher/path_watcher.py +2 -3
- streamlit/web/bootstrap.py +1 -1
- streamlit/web/server/server.py +1 -1
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250526.dist-info}/METADATA +3 -3
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250526.dist-info}/RECORD +111 -111
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250526.dist-info}/WHEEL +1 -1
- {streamlit_nightly-1.45.2.dev20250522.data → streamlit_nightly-1.45.2.dev20250526.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250526.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.45.2.dev20250522.dist-info → streamlit_nightly-1.45.2.dev20250526.dist-info}/top_level.txt +0 -0
streamlit/proto/Block_pb2.py
CHANGED
@@ -17,7 +17,7 @@ from streamlit.proto import HeightConfig_pb2 as streamlit_dot_proto_dot_HeightCo
|
|
17
17
|
from streamlit.proto import GapSize_pb2 as streamlit_dot_proto_dot_GapSize__pb2
|
18
18
|
|
19
19
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Block.proto\x1a!streamlit/proto/WidthConfig.proto\x1a\"streamlit/proto/HeightConfig.proto\x1a\x1dstreamlit/proto/GapSize.proto\"\
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bstreamlit/proto/Block.proto\x1a!streamlit/proto/WidthConfig.proto\x1a\"streamlit/proto/HeightConfig.proto\x1a\x1dstreamlit/proto/GapSize.proto\"\xd7\x0e\n\x05\x42lock\x12#\n\x08vertical\x18\x01 \x01(\x0b\x32\x0f.Block.VerticalH\x00\x12\'\n\nhorizontal\x18\x02 \x01(\x0b\x32\x11.Block.HorizontalH\x00\x12\x1f\n\x06\x63olumn\x18\x03 \x01(\x0b\x32\r.Block.ColumnH\x00\x12\'\n\nexpandable\x18\x04 \x01(\x0b\x32\x11.Block.ExpandableH\x00\x12\x1b\n\x04\x66orm\x18\x05 \x01(\x0b\x32\x0b.Block.FormH\x00\x12,\n\rtab_container\x18\x06 \x01(\x0b\x32\x13.Block.TabContainerH\x00\x12\x19\n\x03tab\x18\x07 \x01(\x0b\x32\n.Block.TabH\x00\x12*\n\x0c\x63hat_message\x18\t \x01(\x0b\x32\x12.Block.ChatMessageH\x00\x12!\n\x07popover\x18\n \x01(\x0b\x32\x0e.Block.PopoverH\x00\x12\x1f\n\x06\x64ialog\x18\x0b \x01(\x0b\x32\r.Block.DialogH\x00\x12.\n\x0e\x66lex_container\x18\r \x01(\x0b\x32\x14.Block.FlexContainerH\x00\x12\x13\n\x0b\x61llow_empty\x18\x08 \x01(\x08\x12\x0f\n\x02id\x18\x0c \x01(\tH\x01\x88\x01\x01\x12\x33\n\rheight_config\x18\x0e \x01(\x0b\x32\x17.streamlit.HeightConfigH\x02\x88\x01\x01\x12\x31\n\x0cwidth_config\x18\x0f \x01(\x0b\x32\x16.streamlit.WidthConfigH\x03\x88\x01\x01\x1a*\n\x08Vertical\x12\x0e\n\x06\x62order\x18\x01 \x01(\x08\x12\x0e\n\x06height\x18\x02 \x01(\r\x1a\x19\n\nHorizontal\x12\x0b\n\x03gap\x18\x01 \x01(\t\x1a\x8d\x02\n\rFlexContainer\x12\x0e\n\x06\x62order\x18\x01 \x01(\x08\x12.\n\rheight_config\x18\x02 \x01(\x0b\x32\x17.streamlit.HeightConfig\x12(\n\ngap_config\x18\x04 \x01(\x0b\x32\x14.streamlit.GapConfig\x12\r\n\x05scale\x18\x05 \x01(\x02\x12\x31\n\tdirection\x18\x06 \x01(\x0e\x32\x1e.Block.FlexContainer.Direction\x12\x0c\n\x04wrap\x18\x07 \x01(\x08\"B\n\tDirection\x12\x17\n\x13\x44IRECTION_UNDEFINED\x10\x00\x12\x0c\n\x08VERTICAL\x10\x01\x12\x0e\n\nHORIZONTAL\x10\x02\x1a\xef\x01\n\x06\x43olumn\x12\x0e\n\x06weight\x18\x01 \x01(\x01\x12\x0f\n\x03gap\x18\x02 \x01(\tB\x02\x18\x01\x12;\n\x12vertical_alignment\x18\x03 \x01(\x0e\x32\x1f.Block.Column.VerticalAlignment\x12\x13\n\x0bshow_border\x18\x04 \x01(\x08\x12-\n\ngap_config\x18\x05 \x01(\x0b\x32\x14.streamlit.GapConfigH\x00\x88\x01\x01\"4\n\x11VerticalAlignment\x12\x07\n\x03TOP\x10\x00\x12\n\n\x06\x43\x45NTER\x10\x01\x12\n\n\x06\x42OTTOM\x10\x02\x42\r\n\x0b_gap_config\x1aM\n\nExpandable\x12\r\n\x05label\x18\x01 \x01(\t\x12\x15\n\x08\x65xpanded\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\x0c\n\x04icon\x18\x03 \x01(\tB\x0b\n\t_expanded\x1a\x9d\x01\n\x06\x44ialog\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64ismissible\x18\x02 \x01(\x08\x12(\n\x05width\x18\x03 \x01(\x0e\x32\x19.Block.Dialog.DialogWidth\x12\x14\n\x07is_open\x18\x04 \x01(\x08H\x00\x88\x01\x01\"#\n\x0b\x44ialogWidth\x12\t\n\x05SMALL\x10\x00\x12\t\n\x05LARGE\x10\x01\x42\n\n\x08_is_open\x1aY\n\x04\x46orm\x12\x0f\n\x07\x66orm_id\x18\x01 \x01(\t\x12\x17\n\x0f\x63lear_on_submit\x18\x02 \x01(\x08\x12\x0e\n\x06\x62order\x18\x03 \x01(\x08\x12\x17\n\x0f\x65nter_to_submit\x18\x04 \x01(\x08\x1a\x0e\n\x0cTabContainer\x1a\x14\n\x03Tab\x12\r\n\x05label\x18\x01 \x01(\t\x1a\x63\n\x07Popover\x12\r\n\x05label\x18\x01 \x01(\t\x12\x1b\n\x13use_container_width\x18\x02 \x01(\x08\x12\x0c\n\x04help\x18\x03 \x01(\t\x12\x10\n\x08\x64isabled\x18\x04 \x01(\x08\x12\x0c\n\x04icon\x18\x05 \x01(\t\x1a\xd1\x01\n\x0b\x43hatMessage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x61vatar\x18\x02 \x01(\t\x12\x32\n\x0b\x61vatar_type\x18\x03 \x01(\x0e\x32\x1d.Block.ChatMessage.AvatarType\x12\x31\n\x0cwidth_config\x18\x04 \x01(\x0b\x32\x16.streamlit.WidthConfigH\x00\x88\x01\x01\",\n\nAvatarType\x12\t\n\x05IMAGE\x10\x00\x12\t\n\x05\x45MOJI\x10\x01\x12\x08\n\x04ICON\x10\x02\x42\x0f\n\r_width_configB\x06\n\x04typeB\x05\n\x03_idB\x10\n\x0e_height_configB\x0f\n\r_width_configB*\n\x1c\x63om.snowflake.apps.streamlitB\nBlockProtob\x06proto3')
|
21
21
|
|
22
22
|
_globals = globals()
|
23
23
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -28,35 +28,35 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
28
28
|
_globals['_BLOCK_COLUMN'].fields_by_name['gap']._loaded_options = None
|
29
29
|
_globals['_BLOCK_COLUMN'].fields_by_name['gap']._serialized_options = b'\030\001'
|
30
30
|
_globals['_BLOCK']._serialized_start=134
|
31
|
-
_globals['_BLOCK']._serialized_end=
|
32
|
-
_globals['_BLOCK_VERTICAL']._serialized_start=
|
33
|
-
_globals['_BLOCK_VERTICAL']._serialized_end=
|
34
|
-
_globals['_BLOCK_HORIZONTAL']._serialized_start=
|
35
|
-
_globals['_BLOCK_HORIZONTAL']._serialized_end=
|
36
|
-
_globals['_BLOCK_FLEXCONTAINER']._serialized_start=
|
37
|
-
_globals['_BLOCK_FLEXCONTAINER']._serialized_end=
|
38
|
-
_globals['_BLOCK_FLEXCONTAINER_DIRECTION']._serialized_start=
|
39
|
-
_globals['_BLOCK_FLEXCONTAINER_DIRECTION']._serialized_end=
|
40
|
-
_globals['_BLOCK_COLUMN']._serialized_start=
|
41
|
-
_globals['_BLOCK_COLUMN']._serialized_end=
|
42
|
-
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_start=
|
43
|
-
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_end=
|
44
|
-
_globals['_BLOCK_EXPANDABLE']._serialized_start=
|
45
|
-
_globals['_BLOCK_EXPANDABLE']._serialized_end=
|
46
|
-
_globals['_BLOCK_DIALOG']._serialized_start=
|
47
|
-
_globals['_BLOCK_DIALOG']._serialized_end=
|
48
|
-
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_start=
|
49
|
-
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_end=
|
50
|
-
_globals['_BLOCK_FORM']._serialized_start=
|
51
|
-
_globals['_BLOCK_FORM']._serialized_end=
|
52
|
-
_globals['_BLOCK_TABCONTAINER']._serialized_start=
|
53
|
-
_globals['_BLOCK_TABCONTAINER']._serialized_end=
|
54
|
-
_globals['_BLOCK_TAB']._serialized_start=
|
55
|
-
_globals['_BLOCK_TAB']._serialized_end=
|
56
|
-
_globals['_BLOCK_POPOVER']._serialized_start=
|
57
|
-
_globals['_BLOCK_POPOVER']._serialized_end=
|
58
|
-
_globals['_BLOCK_CHATMESSAGE']._serialized_start=
|
59
|
-
_globals['_BLOCK_CHATMESSAGE']._serialized_end=
|
60
|
-
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_start=
|
61
|
-
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_end=
|
31
|
+
_globals['_BLOCK']._serialized_end=2013
|
32
|
+
_globals['_BLOCK_VERTICAL']._serialized_start=699
|
33
|
+
_globals['_BLOCK_VERTICAL']._serialized_end=741
|
34
|
+
_globals['_BLOCK_HORIZONTAL']._serialized_start=743
|
35
|
+
_globals['_BLOCK_HORIZONTAL']._serialized_end=768
|
36
|
+
_globals['_BLOCK_FLEXCONTAINER']._serialized_start=771
|
37
|
+
_globals['_BLOCK_FLEXCONTAINER']._serialized_end=1040
|
38
|
+
_globals['_BLOCK_FLEXCONTAINER_DIRECTION']._serialized_start=974
|
39
|
+
_globals['_BLOCK_FLEXCONTAINER_DIRECTION']._serialized_end=1040
|
40
|
+
_globals['_BLOCK_COLUMN']._serialized_start=1043
|
41
|
+
_globals['_BLOCK_COLUMN']._serialized_end=1282
|
42
|
+
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_start=1215
|
43
|
+
_globals['_BLOCK_COLUMN_VERTICALALIGNMENT']._serialized_end=1267
|
44
|
+
_globals['_BLOCK_EXPANDABLE']._serialized_start=1284
|
45
|
+
_globals['_BLOCK_EXPANDABLE']._serialized_end=1361
|
46
|
+
_globals['_BLOCK_DIALOG']._serialized_start=1364
|
47
|
+
_globals['_BLOCK_DIALOG']._serialized_end=1521
|
48
|
+
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_start=1474
|
49
|
+
_globals['_BLOCK_DIALOG_DIALOGWIDTH']._serialized_end=1509
|
50
|
+
_globals['_BLOCK_FORM']._serialized_start=1523
|
51
|
+
_globals['_BLOCK_FORM']._serialized_end=1612
|
52
|
+
_globals['_BLOCK_TABCONTAINER']._serialized_start=1614
|
53
|
+
_globals['_BLOCK_TABCONTAINER']._serialized_end=1628
|
54
|
+
_globals['_BLOCK_TAB']._serialized_start=1630
|
55
|
+
_globals['_BLOCK_TAB']._serialized_end=1650
|
56
|
+
_globals['_BLOCK_POPOVER']._serialized_start=1652
|
57
|
+
_globals['_BLOCK_POPOVER']._serialized_end=1751
|
58
|
+
_globals['_BLOCK_CHATMESSAGE']._serialized_start=1754
|
59
|
+
_globals['_BLOCK_CHATMESSAGE']._serialized_end=1963
|
60
|
+
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_start=1902
|
61
|
+
_globals['_BLOCK_CHATMESSAGE_AVATARTYPE']._serialized_end=1946
|
62
62
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Block_pb2.pyi
CHANGED
@@ -89,7 +89,6 @@ class Block(google.protobuf.message.Message):
|
|
89
89
|
|
90
90
|
BORDER_FIELD_NUMBER: builtins.int
|
91
91
|
HEIGHT_CONFIG_FIELD_NUMBER: builtins.int
|
92
|
-
WIDTH_CONFIG_FIELD_NUMBER: builtins.int
|
93
92
|
GAP_CONFIG_FIELD_NUMBER: builtins.int
|
94
93
|
SCALE_FIELD_NUMBER: builtins.int
|
95
94
|
DIRECTION_FIELD_NUMBER: builtins.int
|
@@ -99,9 +98,9 @@ class Block(google.protobuf.message.Message):
|
|
99
98
|
direction: global___Block.FlexContainer.Direction.ValueType
|
100
99
|
wrap: builtins.bool
|
101
100
|
@property
|
102
|
-
def height_config(self) -> streamlit.proto.HeightConfig_pb2.HeightConfig:
|
103
|
-
|
104
|
-
|
101
|
+
def height_config(self) -> streamlit.proto.HeightConfig_pb2.HeightConfig:
|
102
|
+
"""TODO (lwilby): move this to use block level field."""
|
103
|
+
|
105
104
|
@property
|
106
105
|
def gap_config(self) -> streamlit.proto.GapSize_pb2.GapConfig: ...
|
107
106
|
def __init__(
|
@@ -109,14 +108,13 @@ class Block(google.protobuf.message.Message):
|
|
109
108
|
*,
|
110
109
|
border: builtins.bool = ...,
|
111
110
|
height_config: streamlit.proto.HeightConfig_pb2.HeightConfig | None = ...,
|
112
|
-
width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
|
113
111
|
gap_config: streamlit.proto.GapSize_pb2.GapConfig | None = ...,
|
114
112
|
scale: builtins.float = ...,
|
115
113
|
direction: global___Block.FlexContainer.Direction.ValueType = ...,
|
116
114
|
wrap: builtins.bool = ...,
|
117
115
|
) -> None: ...
|
118
|
-
def HasField(self, field_name: typing.Literal["gap_config", b"gap_config", "height_config", b"height_config"
|
119
|
-
def ClearField(self, field_name: typing.Literal["border", b"border", "direction", b"direction", "gap_config", b"gap_config", "height_config", b"height_config", "scale", b"scale", "
|
116
|
+
def HasField(self, field_name: typing.Literal["gap_config", b"gap_config", "height_config", b"height_config"]) -> builtins.bool: ...
|
117
|
+
def ClearField(self, field_name: typing.Literal["border", b"border", "direction", b"direction", "gap_config", b"gap_config", "height_config", b"height_config", "scale", b"scale", "wrap", b"wrap"]) -> None: ...
|
120
118
|
|
121
119
|
@typing.final
|
122
120
|
class Column(google.protobuf.message.Message):
|
@@ -315,7 +313,9 @@ class Block(google.protobuf.message.Message):
|
|
315
313
|
avatar: builtins.str
|
316
314
|
avatar_type: global___Block.ChatMessage.AvatarType.ValueType
|
317
315
|
@property
|
318
|
-
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig:
|
316
|
+
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig:
|
317
|
+
"""TODO (lwilby): move this to use block level field."""
|
318
|
+
|
319
319
|
def __init__(
|
320
320
|
self,
|
321
321
|
*,
|
@@ -341,6 +341,8 @@ class Block(google.protobuf.message.Message):
|
|
341
341
|
FLEX_CONTAINER_FIELD_NUMBER: builtins.int
|
342
342
|
ALLOW_EMPTY_FIELD_NUMBER: builtins.int
|
343
343
|
ID_FIELD_NUMBER: builtins.int
|
344
|
+
HEIGHT_CONFIG_FIELD_NUMBER: builtins.int
|
345
|
+
WIDTH_CONFIG_FIELD_NUMBER: builtins.int
|
344
346
|
allow_empty: builtins.bool
|
345
347
|
id: builtins.str
|
346
348
|
@property
|
@@ -365,6 +367,10 @@ class Block(google.protobuf.message.Message):
|
|
365
367
|
def dialog(self) -> global___Block.Dialog: ...
|
366
368
|
@property
|
367
369
|
def flex_container(self) -> global___Block.FlexContainer: ...
|
370
|
+
@property
|
371
|
+
def height_config(self) -> streamlit.proto.HeightConfig_pb2.HeightConfig: ...
|
372
|
+
@property
|
373
|
+
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig: ...
|
368
374
|
def __init__(
|
369
375
|
self,
|
370
376
|
*,
|
@@ -381,12 +387,18 @@ class Block(google.protobuf.message.Message):
|
|
381
387
|
flex_container: global___Block.FlexContainer | None = ...,
|
382
388
|
allow_empty: builtins.bool = ...,
|
383
389
|
id: builtins.str | None = ...,
|
390
|
+
height_config: streamlit.proto.HeightConfig_pb2.HeightConfig | None = ...,
|
391
|
+
width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
|
384
392
|
) -> None: ...
|
385
|
-
def HasField(self, field_name: typing.Literal["_id", b"_id", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "flex_container", b"flex_container", "form", b"form", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> builtins.bool: ...
|
386
|
-
def ClearField(self, field_name: typing.Literal["_id", b"_id", "allow_empty", b"allow_empty", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "flex_container", b"flex_container", "form", b"form", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical"]) -> None: ...
|
393
|
+
def HasField(self, field_name: typing.Literal["_height_config", b"_height_config", "_id", b"_id", "_width_config", b"_width_config", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "flex_container", b"flex_container", "form", b"form", "height_config", b"height_config", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical", "width_config", b"width_config"]) -> builtins.bool: ...
|
394
|
+
def ClearField(self, field_name: typing.Literal["_height_config", b"_height_config", "_id", b"_id", "_width_config", b"_width_config", "allow_empty", b"allow_empty", "chat_message", b"chat_message", "column", b"column", "dialog", b"dialog", "expandable", b"expandable", "flex_container", b"flex_container", "form", b"form", "height_config", b"height_config", "horizontal", b"horizontal", "id", b"id", "popover", b"popover", "tab", b"tab", "tab_container", b"tab_container", "type", b"type", "vertical", b"vertical", "width_config", b"width_config"]) -> None: ...
|
395
|
+
@typing.overload
|
396
|
+
def WhichOneof(self, oneof_group: typing.Literal["_height_config", b"_height_config"]) -> typing.Literal["height_config"] | None: ...
|
387
397
|
@typing.overload
|
388
398
|
def WhichOneof(self, oneof_group: typing.Literal["_id", b"_id"]) -> typing.Literal["id"] | None: ...
|
389
399
|
@typing.overload
|
400
|
+
def WhichOneof(self, oneof_group: typing.Literal["_width_config", b"_width_config"]) -> typing.Literal["width_config"] | None: ...
|
401
|
+
@typing.overload
|
390
402
|
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["vertical", "horizontal", "column", "expandable", "form", "tab_container", "tab", "chat_message", "popover", "dialog", "flex_container"] | None: ...
|
391
403
|
|
392
404
|
global___Block = Block
|
streamlit/proto/Code_pb2.py
CHANGED
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
|
|
15
15
|
from streamlit.proto import WidthConfig_pb2 as streamlit_dot_proto_dot_WidthConfig__pb2
|
16
16
|
|
17
17
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Code.proto\x1a!streamlit/proto/WidthConfig.proto\"\
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1astreamlit/proto/Code.proto\x1a!streamlit/proto/WidthConfig.proto\"n\n\x04\x43ode\x12\x11\n\tcode_text\x18\x01 \x01(\t\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x19\n\x11show_line_numbers\x18\x03 \x01(\x08\x12\x12\n\nwrap_lines\x18\x04 \x01(\x08\x12\x12\n\x06height\x18\x05 \x01(\rB\x02\x18\x01\x42)\n\x1c\x63om.snowflake.apps.streamlitB\tCodeProtob\x06proto3')
|
19
19
|
|
20
20
|
_globals = globals()
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -23,6 +23,8 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Code_pb2',
|
|
23
23
|
if not _descriptor._USE_C_DESCRIPTORS:
|
24
24
|
_globals['DESCRIPTOR']._loaded_options = None
|
25
25
|
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\tCodeProto'
|
26
|
-
_globals['_CODE'].
|
27
|
-
_globals['_CODE'].
|
26
|
+
_globals['_CODE'].fields_by_name['height']._loaded_options = None
|
27
|
+
_globals['_CODE'].fields_by_name['height']._serialized_options = b'\030\001'
|
28
|
+
_globals['_CODE']._serialized_start=65
|
29
|
+
_globals['_CODE']._serialized_end=175
|
28
30
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Code_pb2.pyi
CHANGED
@@ -20,7 +20,6 @@ limitations under the License.
|
|
20
20
|
import builtins
|
21
21
|
import google.protobuf.descriptor
|
22
22
|
import google.protobuf.message
|
23
|
-
import streamlit.proto.WidthConfig_pb2
|
24
23
|
import typing
|
25
24
|
|
26
25
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
@@ -36,17 +35,13 @@ class Code(google.protobuf.message.Message):
|
|
36
35
|
SHOW_LINE_NUMBERS_FIELD_NUMBER: builtins.int
|
37
36
|
WRAP_LINES_FIELD_NUMBER: builtins.int
|
38
37
|
HEIGHT_FIELD_NUMBER: builtins.int
|
39
|
-
WIDTH_CONFIG_FIELD_NUMBER: builtins.int
|
40
38
|
code_text: builtins.str
|
41
39
|
"""Content to display."""
|
42
40
|
language: builtins.str
|
43
41
|
show_line_numbers: builtins.bool
|
44
42
|
wrap_lines: builtins.bool
|
45
43
|
height: builtins.int
|
46
|
-
|
47
|
-
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig:
|
48
|
-
"""Width configuration"""
|
49
|
-
|
44
|
+
"""deprecated use height on Element.proto"""
|
50
45
|
def __init__(
|
51
46
|
self,
|
52
47
|
*,
|
@@ -55,9 +50,7 @@ class Code(google.protobuf.message.Message):
|
|
55
50
|
show_line_numbers: builtins.bool = ...,
|
56
51
|
wrap_lines: builtins.bool = ...,
|
57
52
|
height: builtins.int = ...,
|
58
|
-
width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
|
59
53
|
) -> None: ...
|
60
|
-
def
|
61
|
-
def ClearField(self, field_name: typing.Literal["code_text", b"code_text", "height", b"height", "language", b"language", "show_line_numbers", b"show_line_numbers", "width_config", b"width_config", "wrap_lines", b"wrap_lines"]) -> None: ...
|
54
|
+
def ClearField(self, field_name: typing.Literal["code_text", b"code_text", "height", b"height", "language", b"language", "show_line_numbers", b"show_line_numbers", "wrap_lines", b"wrap_lines"]) -> None: ...
|
62
55
|
|
63
56
|
global___Code = Code
|
streamlit/proto/Element_pb2.py
CHANGED
@@ -63,9 +63,11 @@ from streamlit.proto import Toast_pb2 as streamlit_dot_proto_dot_Toast__pb2
|
|
63
63
|
from streamlit.proto import VegaLiteChart_pb2 as streamlit_dot_proto_dot_VegaLiteChart__pb2
|
64
64
|
from streamlit.proto import Video_pb2 as streamlit_dot_proto_dot_Video__pb2
|
65
65
|
from streamlit.proto import Heading_pb2 as streamlit_dot_proto_dot_Heading__pb2
|
66
|
+
from streamlit.proto import HeightConfig_pb2 as streamlit_dot_proto_dot_HeightConfig__pb2
|
67
|
+
from streamlit.proto import WidthConfig_pb2 as streamlit_dot_proto_dot_WidthConfig__pb2
|
66
68
|
|
67
69
|
|
68
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/Element.proto\x1a\x1bstreamlit/proto/Alert.proto\x1a\x1bstreamlit/proto/Arrow.proto\x1a\x1bstreamlit/proto/Audio.proto\x1a streamlit/proto/AudioInput.proto\x1a\x1estreamlit/proto/Balloons.proto\x1a(streamlit/proto/ArrowVegaLiteChart.proto\x1a streamlit/proto/BokehChart.proto\x1a\x1cstreamlit/proto/Button.proto\x1a!streamlit/proto/ButtonGroup.proto\x1a$streamlit/proto/DownloadButton.proto\x1a!streamlit/proto/CameraInput.proto\x1a\x1fstreamlit/proto/ChatInput.proto\x1a\x1estreamlit/proto/Checkbox.proto\x1a\x1astreamlit/proto/Code.proto\x1a!streamlit/proto/ColorPicker.proto\x1a\x1fstreamlit/proto/DataFrame.proto\x1a\x1fstreamlit/proto/DateInput.proto\x1a%streamlit/proto/DeckGlJsonChart.proto\x1a\x1fstreamlit/proto/DocString.proto\x1a\x1bstreamlit/proto/Empty.proto\x1a\x1fstreamlit/proto/Exception.proto\x1a\x1dstreamlit/proto/Favicon.proto\x1a\"streamlit/proto/FileUploader.proto\x1a#streamlit/proto/GraphVizChart.proto\x1a\x1astreamlit/proto/Html.proto\x1a\x1cstreamlit/proto/IFrame.proto\x1a\x1bstreamlit/proto/Image.proto\x1a\x1astreamlit/proto/Json.proto\x1a streamlit/proto/LinkButton.proto\x1a!streamlit/proto/NumberInput.proto\x1a\x1estreamlit/proto/Markdown.proto\x1a\x1cstreamlit/proto/Metric.proto\x1a!streamlit/proto/MultiSelect.proto\x1a\x1estreamlit/proto/PageLink.proto\x1a!streamlit/proto/PlotlyChart.proto\x1a streamlit/proto/Components.proto\x1a\x1estreamlit/proto/Progress.proto\x1a\x1astreamlit/proto/Snow.proto\x1a\x1dstreamlit/proto/Spinner.proto\x1a\x1bstreamlit/proto/Radio.proto\x1a\x1fstreamlit/proto/Selectbox.proto\x1a\x1estreamlit/proto/Skeleton.proto\x1a\x1cstreamlit/proto/Slider.proto\x1a\x1astreamlit/proto/Text.proto\x1a\x1estreamlit/proto/TextArea.proto\x1a\x1fstreamlit/proto/TextInput.proto\x1a\x1fstreamlit/proto/TimeInput.proto\x1a\x1bstreamlit/proto/Toast.proto\x1a#streamlit/proto/VegaLiteChart.proto\x1a\x1bstreamlit/proto/Video.proto\x1a\x1dstreamlit/proto/Heading.proto\"\
|
70
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dstreamlit/proto/Element.proto\x1a\x1bstreamlit/proto/Alert.proto\x1a\x1bstreamlit/proto/Arrow.proto\x1a\x1bstreamlit/proto/Audio.proto\x1a streamlit/proto/AudioInput.proto\x1a\x1estreamlit/proto/Balloons.proto\x1a(streamlit/proto/ArrowVegaLiteChart.proto\x1a streamlit/proto/BokehChart.proto\x1a\x1cstreamlit/proto/Button.proto\x1a!streamlit/proto/ButtonGroup.proto\x1a$streamlit/proto/DownloadButton.proto\x1a!streamlit/proto/CameraInput.proto\x1a\x1fstreamlit/proto/ChatInput.proto\x1a\x1estreamlit/proto/Checkbox.proto\x1a\x1astreamlit/proto/Code.proto\x1a!streamlit/proto/ColorPicker.proto\x1a\x1fstreamlit/proto/DataFrame.proto\x1a\x1fstreamlit/proto/DateInput.proto\x1a%streamlit/proto/DeckGlJsonChart.proto\x1a\x1fstreamlit/proto/DocString.proto\x1a\x1bstreamlit/proto/Empty.proto\x1a\x1fstreamlit/proto/Exception.proto\x1a\x1dstreamlit/proto/Favicon.proto\x1a\"streamlit/proto/FileUploader.proto\x1a#streamlit/proto/GraphVizChart.proto\x1a\x1astreamlit/proto/Html.proto\x1a\x1cstreamlit/proto/IFrame.proto\x1a\x1bstreamlit/proto/Image.proto\x1a\x1astreamlit/proto/Json.proto\x1a streamlit/proto/LinkButton.proto\x1a!streamlit/proto/NumberInput.proto\x1a\x1estreamlit/proto/Markdown.proto\x1a\x1cstreamlit/proto/Metric.proto\x1a!streamlit/proto/MultiSelect.proto\x1a\x1estreamlit/proto/PageLink.proto\x1a!streamlit/proto/PlotlyChart.proto\x1a streamlit/proto/Components.proto\x1a\x1estreamlit/proto/Progress.proto\x1a\x1astreamlit/proto/Snow.proto\x1a\x1dstreamlit/proto/Spinner.proto\x1a\x1bstreamlit/proto/Radio.proto\x1a\x1fstreamlit/proto/Selectbox.proto\x1a\x1estreamlit/proto/Skeleton.proto\x1a\x1cstreamlit/proto/Slider.proto\x1a\x1astreamlit/proto/Text.proto\x1a\x1estreamlit/proto/TextArea.proto\x1a\x1fstreamlit/proto/TextInput.proto\x1a\x1fstreamlit/proto/TimeInput.proto\x1a\x1bstreamlit/proto/Toast.proto\x1a#streamlit/proto/VegaLiteChart.proto\x1a\x1bstreamlit/proto/Video.proto\x1a\x1dstreamlit/proto/Heading.proto\x1a\"streamlit/proto/HeightConfig.proto\x1a!streamlit/proto/WidthConfig.proto\"\xe3\x0e\n\x07\x45lement\x12\x33\n\rheight_config\x18\x39 \x01(\x0b\x32\x17.streamlit.HeightConfigH\x01\x88\x01\x01\x12\x31\n\x0cwidth_config\x18: \x01(\x0b\x32\x16.streamlit.WidthConfigH\x02\x88\x01\x01\x12\x17\n\x05\x61lert\x18\x1e \x01(\x0b\x32\x06.AlertH\x00\x12\"\n\x10\x61rrow_data_frame\x18( \x01(\x0b\x32\x06.ArrowH\x00\x12\x1d\n\x0b\x61rrow_table\x18\' \x01(\x0b\x32\x06.ArrowH\x00\x12\x34\n\x15\x61rrow_vega_lite_chart\x18) \x01(\x0b\x32\x13.ArrowVegaLiteChartH\x00\x12\x17\n\x05\x61udio\x18\r \x01(\x0b\x32\x06.AudioH\x00\x12\"\n\x0b\x61udio_input\x18\x38 \x01(\x0b\x32\x0b.AudioInputH\x00\x12\x1d\n\x08\x62\x61lloons\x18\x0c \x01(\x0b\x32\t.BalloonsH\x00\x12\"\n\x0b\x62okeh_chart\x18\x11 \x01(\x0b\x32\x0b.BokehChartH\x00\x12\x19\n\x06\x62utton\x18\x13 \x01(\x0b\x32\x07.ButtonH\x00\x12$\n\x0c\x62utton_group\x18\x37 \x01(\x0b\x32\x0c.ButtonGroupH\x00\x12*\n\x0f\x64ownload_button\x18+ \x01(\x0b\x32\x0f.DownloadButtonH\x00\x12$\n\x0c\x63\x61mera_input\x18- \x01(\x0b\x32\x0c.CameraInputH\x00\x12 \n\nchat_input\x18\x31 \x01(\x0b\x32\n.ChatInputH\x00\x12\x1d\n\x08\x63heckbox\x18\x14 \x01(\x0b\x32\t.CheckboxH\x00\x12$\n\x0c\x63olor_picker\x18# \x01(\x0b\x32\x0c.ColorPickerH\x00\x12\x30\n\x12\x63omponent_instance\x18% \x01(\x0b\x32\x12.ComponentInstanceH\x00\x12 \n\ndata_frame\x18\x03 \x01(\x0b\x32\n.DataFrameH\x00\x12\x1b\n\x05table\x18\x0b \x01(\x0b\x32\n.DataFrameH\x00\x12 \n\ndate_input\x18\x1b \x01(\x0b\x32\n.DateInputH\x00\x12.\n\x12\x64\x65\x63k_gl_json_chart\x18\" \x01(\x0b\x32\x10.DeckGlJsonChartH\x00\x12 \n\ndoc_string\x18\x07 \x01(\x0b\x32\n.DocStringH\x00\x12\x17\n\x05\x65mpty\x18\x02 \x01(\x0b\x32\x06.EmptyH\x00\x12\x1f\n\texception\x18\x08 \x01(\x0b\x32\n.ExceptionH\x00\x12\x1b\n\x07\x66\x61vicon\x18$ \x01(\x0b\x32\x08.FaviconH\x00\x12&\n\rfile_uploader\x18! \x01(\x0b\x32\r.FileUploaderH\x00\x12(\n\x0egraphviz_chart\x18\x12 \x01(\x0b\x32\x0e.GraphVizChartH\x00\x12\x15\n\x04html\x18\x36 \x01(\x0b\x32\x05.HtmlH\x00\x12\x19\n\x06iframe\x18& \x01(\x0b\x32\x07.IFrameH\x00\x12\x1a\n\x04imgs\x18\x06 \x01(\x0b\x32\n.ImageListH\x00\x12\x15\n\x04json\x18\x1f \x01(\x0b\x32\x05.JsonH\x00\x12\"\n\x0blink_button\x18\x33 \x01(\x0b\x32\x0b.LinkButtonH\x00\x12\x1d\n\x08markdown\x18\x1d \x01(\x0b\x32\t.MarkdownH\x00\x12\x19\n\x06metric\x18* \x01(\x0b\x32\x07.MetricH\x00\x12#\n\x0bmultiselect\x18\x1c \x01(\x0b\x32\x0c.MultiSelectH\x00\x12$\n\x0cnumber_input\x18 \x01(\x0b\x32\x0c.NumberInputH\x00\x12\x1e\n\tpage_link\x18\x35 \x01(\x0b\x32\t.PageLinkH\x00\x12$\n\x0cplotly_chart\x18\x10 \x01(\x0b\x32\x0c.PlotlyChartH\x00\x12\x1d\n\x08progress\x18\x05 \x01(\x0b\x32\t.ProgressH\x00\x12\x17\n\x05radio\x18\x17 \x01(\x0b\x32\x06.RadioH\x00\x12\x1f\n\tselectbox\x18\x19 \x01(\x0b\x32\n.SelectboxH\x00\x12\x1d\n\x08skeleton\x18\x34 \x01(\x0b\x32\t.SkeletonH\x00\x12\x19\n\x06slider\x18\x15 \x01(\x0b\x32\x07.SliderH\x00\x12\x15\n\x04snow\x18. \x01(\x0b\x32\x05.SnowH\x00\x12\x1b\n\x07spinner\x18, \x01(\x0b\x32\x08.SpinnerH\x00\x12\x15\n\x04text\x18\x01 \x01(\x0b\x32\x05.TextH\x00\x12\x1e\n\ttext_area\x18\x16 \x01(\x0b\x32\t.TextAreaH\x00\x12 \n\ntext_input\x18\x18 \x01(\x0b\x32\n.TextInputH\x00\x12 \n\ntime_input\x18\x1a \x01(\x0b\x32\n.TimeInputH\x00\x12\x17\n\x05toast\x18\x32 \x01(\x0b\x32\x06.ToastH\x00\x12)\n\x0fvega_lite_chart\x18\n \x01(\x0b\x32\x0e.VegaLiteChartH\x00\x12\x17\n\x05video\x18\x0e \x01(\x0b\x32\x06.VideoH\x00\x12\x1b\n\x07heading\x18/ \x01(\x0b\x32\x08.HeadingH\x00\x12\x15\n\x04\x63ode\x18\x30 \x01(\x0b\x32\x05.CodeH\x00\x42\x06\n\x04typeB\x10\n\x0e_height_configB\x0f\n\r_width_configJ\x04\x08\t\x10\nB,\n\x1c\x63om.snowflake.apps.streamlitB\x0c\x45lementProtob\x06proto3')
|
69
71
|
|
70
72
|
_globals = globals()
|
71
73
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -73,6 +75,6 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.Element_pb2
|
|
73
75
|
if not _descriptor._USE_C_DESCRIPTORS:
|
74
76
|
_globals['DESCRIPTOR']._loaded_options = None
|
75
77
|
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\014ElementProto'
|
76
|
-
_globals['_ELEMENT']._serialized_start=
|
77
|
-
_globals['_ELEMENT']._serialized_end=
|
78
|
+
_globals['_ELEMENT']._serialized_start=1753
|
79
|
+
_globals['_ELEMENT']._serialized_end=3644
|
78
80
|
# @@protoc_insertion_point(module_scope)
|
streamlit/proto/Element_pb2.pyi
CHANGED
@@ -46,6 +46,7 @@ import streamlit.proto.Favicon_pb2
|
|
46
46
|
import streamlit.proto.FileUploader_pb2
|
47
47
|
import streamlit.proto.GraphVizChart_pb2
|
48
48
|
import streamlit.proto.Heading_pb2
|
49
|
+
import streamlit.proto.HeightConfig_pb2
|
49
50
|
import streamlit.proto.Html_pb2
|
50
51
|
import streamlit.proto.IFrame_pb2
|
51
52
|
import streamlit.proto.Image_pb2
|
@@ -71,6 +72,7 @@ import streamlit.proto.TimeInput_pb2
|
|
71
72
|
import streamlit.proto.Toast_pb2
|
72
73
|
import streamlit.proto.VegaLiteChart_pb2
|
73
74
|
import streamlit.proto.Video_pb2
|
75
|
+
import streamlit.proto.WidthConfig_pb2
|
74
76
|
import typing
|
75
77
|
|
76
78
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
@@ -81,6 +83,8 @@ class Element(google.protobuf.message.Message):
|
|
81
83
|
|
82
84
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
83
85
|
|
86
|
+
HEIGHT_CONFIG_FIELD_NUMBER: builtins.int
|
87
|
+
WIDTH_CONFIG_FIELD_NUMBER: builtins.int
|
84
88
|
ALERT_FIELD_NUMBER: builtins.int
|
85
89
|
ARROW_DATA_FRAME_FIELD_NUMBER: builtins.int
|
86
90
|
ARROW_TABLE_FIELD_NUMBER: builtins.int
|
@@ -135,6 +139,12 @@ class Element(google.protobuf.message.Message):
|
|
135
139
|
HEADING_FIELD_NUMBER: builtins.int
|
136
140
|
CODE_FIELD_NUMBER: builtins.int
|
137
141
|
@property
|
142
|
+
def height_config(self) -> streamlit.proto.HeightConfig_pb2.HeightConfig:
|
143
|
+
"""Layout configuration for elements"""
|
144
|
+
|
145
|
+
@property
|
146
|
+
def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig: ...
|
147
|
+
@property
|
138
148
|
def alert(self) -> streamlit.proto.Alert_pb2.Alert: ...
|
139
149
|
@property
|
140
150
|
def arrow_data_frame(self) -> streamlit.proto.Arrow_pb2.Arrow: ...
|
@@ -246,11 +256,13 @@ class Element(google.protobuf.message.Message):
|
|
246
256
|
def heading(self) -> streamlit.proto.Heading_pb2.Heading: ...
|
247
257
|
@property
|
248
258
|
def code(self) -> streamlit.proto.Code_pb2.Code:
|
249
|
-
"""Next ID:
|
259
|
+
"""Next ID: 59"""
|
250
260
|
|
251
261
|
def __init__(
|
252
262
|
self,
|
253
263
|
*,
|
264
|
+
height_config: streamlit.proto.HeightConfig_pb2.HeightConfig | None = ...,
|
265
|
+
width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
|
254
266
|
alert: streamlit.proto.Alert_pb2.Alert | None = ...,
|
255
267
|
arrow_data_frame: streamlit.proto.Arrow_pb2.Arrow | None = ...,
|
256
268
|
arrow_table: streamlit.proto.Arrow_pb2.Arrow | None = ...,
|
@@ -305,8 +317,13 @@ class Element(google.protobuf.message.Message):
|
|
305
317
|
heading: streamlit.proto.Heading_pb2.Heading | None = ...,
|
306
318
|
code: streamlit.proto.Code_pb2.Code | None = ...,
|
307
319
|
) -> None: ...
|
308
|
-
def HasField(self, field_name: typing.Literal["alert", b"alert", "arrow_data_frame", b"arrow_data_frame", "arrow_table", b"arrow_table", "arrow_vega_lite_chart", b"arrow_vega_lite_chart", "audio", b"audio", "audio_input", b"audio_input", "balloons", b"balloons", "bokeh_chart", b"bokeh_chart", "button", b"button", "button_group", b"button_group", "camera_input", b"camera_input", "chat_input", b"chat_input", "checkbox", b"checkbox", "code", b"code", "color_picker", b"color_picker", "component_instance", b"component_instance", "data_frame", b"data_frame", "date_input", b"date_input", "deck_gl_json_chart", b"deck_gl_json_chart", "doc_string", b"doc_string", "download_button", b"download_button", "empty", b"empty", "exception", b"exception", "favicon", b"favicon", "file_uploader", b"file_uploader", "graphviz_chart", b"graphviz_chart", "heading", b"heading", "html", b"html", "iframe", b"iframe", "imgs", b"imgs", "json", b"json", "link_button", b"link_button", "markdown", b"markdown", "metric", b"metric", "multiselect", b"multiselect", "number_input", b"number_input", "page_link", b"page_link", "plotly_chart", b"plotly_chart", "progress", b"progress", "radio", b"radio", "selectbox", b"selectbox", "skeleton", b"skeleton", "slider", b"slider", "snow", b"snow", "spinner", b"spinner", "table", b"table", "text", b"text", "text_area", b"text_area", "text_input", b"text_input", "time_input", b"time_input", "toast", b"toast", "type", b"type", "vega_lite_chart", b"vega_lite_chart", "video", b"video"]) -> builtins.bool: ...
|
309
|
-
def ClearField(self, field_name: typing.Literal["alert", b"alert", "arrow_data_frame", b"arrow_data_frame", "arrow_table", b"arrow_table", "arrow_vega_lite_chart", b"arrow_vega_lite_chart", "audio", b"audio", "audio_input", b"audio_input", "balloons", b"balloons", "bokeh_chart", b"bokeh_chart", "button", b"button", "button_group", b"button_group", "camera_input", b"camera_input", "chat_input", b"chat_input", "checkbox", b"checkbox", "code", b"code", "color_picker", b"color_picker", "component_instance", b"component_instance", "data_frame", b"data_frame", "date_input", b"date_input", "deck_gl_json_chart", b"deck_gl_json_chart", "doc_string", b"doc_string", "download_button", b"download_button", "empty", b"empty", "exception", b"exception", "favicon", b"favicon", "file_uploader", b"file_uploader", "graphviz_chart", b"graphviz_chart", "heading", b"heading", "html", b"html", "iframe", b"iframe", "imgs", b"imgs", "json", b"json", "link_button", b"link_button", "markdown", b"markdown", "metric", b"metric", "multiselect", b"multiselect", "number_input", b"number_input", "page_link", b"page_link", "plotly_chart", b"plotly_chart", "progress", b"progress", "radio", b"radio", "selectbox", b"selectbox", "skeleton", b"skeleton", "slider", b"slider", "snow", b"snow", "spinner", b"spinner", "table", b"table", "text", b"text", "text_area", b"text_area", "text_input", b"text_input", "time_input", b"time_input", "toast", b"toast", "type", b"type", "vega_lite_chart", b"vega_lite_chart", "video", b"video"]) -> None: ...
|
320
|
+
def HasField(self, field_name: typing.Literal["_height_config", b"_height_config", "_width_config", b"_width_config", "alert", b"alert", "arrow_data_frame", b"arrow_data_frame", "arrow_table", b"arrow_table", "arrow_vega_lite_chart", b"arrow_vega_lite_chart", "audio", b"audio", "audio_input", b"audio_input", "balloons", b"balloons", "bokeh_chart", b"bokeh_chart", "button", b"button", "button_group", b"button_group", "camera_input", b"camera_input", "chat_input", b"chat_input", "checkbox", b"checkbox", "code", b"code", "color_picker", b"color_picker", "component_instance", b"component_instance", "data_frame", b"data_frame", "date_input", b"date_input", "deck_gl_json_chart", b"deck_gl_json_chart", "doc_string", b"doc_string", "download_button", b"download_button", "empty", b"empty", "exception", b"exception", "favicon", b"favicon", "file_uploader", b"file_uploader", "graphviz_chart", b"graphviz_chart", "heading", b"heading", "height_config", b"height_config", "html", b"html", "iframe", b"iframe", "imgs", b"imgs", "json", b"json", "link_button", b"link_button", "markdown", b"markdown", "metric", b"metric", "multiselect", b"multiselect", "number_input", b"number_input", "page_link", b"page_link", "plotly_chart", b"plotly_chart", "progress", b"progress", "radio", b"radio", "selectbox", b"selectbox", "skeleton", b"skeleton", "slider", b"slider", "snow", b"snow", "spinner", b"spinner", "table", b"table", "text", b"text", "text_area", b"text_area", "text_input", b"text_input", "time_input", b"time_input", "toast", b"toast", "type", b"type", "vega_lite_chart", b"vega_lite_chart", "video", b"video", "width_config", b"width_config"]) -> builtins.bool: ...
|
321
|
+
def ClearField(self, field_name: typing.Literal["_height_config", b"_height_config", "_width_config", b"_width_config", "alert", b"alert", "arrow_data_frame", b"arrow_data_frame", "arrow_table", b"arrow_table", "arrow_vega_lite_chart", b"arrow_vega_lite_chart", "audio", b"audio", "audio_input", b"audio_input", "balloons", b"balloons", "bokeh_chart", b"bokeh_chart", "button", b"button", "button_group", b"button_group", "camera_input", b"camera_input", "chat_input", b"chat_input", "checkbox", b"checkbox", "code", b"code", "color_picker", b"color_picker", "component_instance", b"component_instance", "data_frame", b"data_frame", "date_input", b"date_input", "deck_gl_json_chart", b"deck_gl_json_chart", "doc_string", b"doc_string", "download_button", b"download_button", "empty", b"empty", "exception", b"exception", "favicon", b"favicon", "file_uploader", b"file_uploader", "graphviz_chart", b"graphviz_chart", "heading", b"heading", "height_config", b"height_config", "html", b"html", "iframe", b"iframe", "imgs", b"imgs", "json", b"json", "link_button", b"link_button", "markdown", b"markdown", "metric", b"metric", "multiselect", b"multiselect", "number_input", b"number_input", "page_link", b"page_link", "plotly_chart", b"plotly_chart", "progress", b"progress", "radio", b"radio", "selectbox", b"selectbox", "skeleton", b"skeleton", "slider", b"slider", "snow", b"snow", "spinner", b"spinner", "table", b"table", "text", b"text", "text_area", b"text_area", "text_input", b"text_input", "time_input", b"time_input", "toast", b"toast", "type", b"type", "vega_lite_chart", b"vega_lite_chart", "video", b"video", "width_config", b"width_config"]) -> None: ...
|
322
|
+
@typing.overload
|
323
|
+
def WhichOneof(self, oneof_group: typing.Literal["_height_config", b"_height_config"]) -> typing.Literal["height_config"] | None: ...
|
324
|
+
@typing.overload
|
325
|
+
def WhichOneof(self, oneof_group: typing.Literal["_width_config", b"_width_config"]) -> typing.Literal["width_config"] | None: ...
|
326
|
+
@typing.overload
|
310
327
|
def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["alert", "arrow_data_frame", "arrow_table", "arrow_vega_lite_chart", "audio", "audio_input", "balloons", "bokeh_chart", "button", "button_group", "download_button", "camera_input", "chat_input", "checkbox", "color_picker", "component_instance", "data_frame", "table", "date_input", "deck_gl_json_chart", "doc_string", "empty", "exception", "favicon", "file_uploader", "graphviz_chart", "html", "iframe", "imgs", "json", "link_button", "markdown", "metric", "multiselect", "number_input", "page_link", "plotly_chart", "progress", "radio", "selectbox", "skeleton", "slider", "snow", "spinner", "text", "text_area", "text_input", "time_input", "toast", "vega_lite_chart", "video", "heading", "code"] | None: ...
|
311
328
|
|
312
329
|
global___Element = Element
|
@@ -92,26 +92,25 @@ class UserHashError(StreamlitAPIException):
|
|
92
92
|
args = self._get_error_message_args(orig_exc, cached_func)
|
93
93
|
|
94
94
|
return (
|
95
|
-
"""
|
96
|
-
|
95
|
+
f"""
|
96
|
+
{args["orig_exception_desc"]}
|
97
97
|
|
98
|
-
This error is likely due to a bug in
|
99
|
-
user-defined hash function that was passed into the
|
100
|
-
|
98
|
+
This error is likely due to a bug in {args["hash_func_name"]}, which is a
|
99
|
+
user-defined hash function that was passed into the `{args["cache_primitive"]}` decorator of
|
100
|
+
{args["object_desc"]}.
|
101
101
|
|
102
|
-
|
103
|
-
|
102
|
+
{args["hash_func_name"]} failed when hashing an object of type
|
103
|
+
`{args["failed_obj_type_str"]}`. If you don't know where that object is coming from,
|
104
104
|
try looking at the hash chain below for an object that you do recognize, then
|
105
105
|
pass that to `hash_funcs` instead:
|
106
106
|
|
107
107
|
```
|
108
|
-
|
108
|
+
{args["hash_stack"]}
|
109
109
|
```
|
110
110
|
|
111
111
|
If you think this is actually a Streamlit bug, please
|
112
112
|
[file a bug report here](https://github.com/streamlit/streamlit/issues/new/choose).
|
113
113
|
"""
|
114
|
-
% args
|
115
114
|
).strip("\n")
|
116
115
|
|
117
116
|
def _get_error_message_args(
|
streamlit/runtime/credentials.py
CHANGED
@@ -263,41 +263,28 @@ class Credentials:
|
|
263
263
|
if self.activation.is_valid:
|
264
264
|
self.save()
|
265
265
|
# IMPORTANT: Break the text below at 80 chars.
|
266
|
-
TELEMETRY_TEXT = """
|
267
|
-
You can find our privacy policy at
|
266
|
+
TELEMETRY_TEXT = f"""
|
267
|
+
You can find our privacy policy at {cli_util.style_for_cli("https://streamlit.io/privacy-policy", underline=True)}
|
268
268
|
|
269
269
|
Summary:
|
270
270
|
- This open source library collects usage statistics.
|
271
271
|
- We cannot see and do not store information contained inside Streamlit apps,
|
272
272
|
such as text, charts, images, etc.
|
273
273
|
- Telemetry data is stored in servers in the United States.
|
274
|
-
- If you'd like to opt out, add the following to
|
274
|
+
- If you'd like to opt out, add the following to {cli_util.style_for_cli(_CONFIG_FILE_PATH)},
|
275
275
|
creating that file if necessary:
|
276
276
|
|
277
277
|
[browser]
|
278
278
|
gatherUsageStats = false
|
279
|
-
"""
|
280
|
-
"link": cli_util.style_for_cli(
|
281
|
-
"https://streamlit.io/privacy-policy", underline=True
|
282
|
-
),
|
283
|
-
"config": cli_util.style_for_cli(_CONFIG_FILE_PATH),
|
284
|
-
}
|
279
|
+
"""
|
285
280
|
|
286
281
|
cli_util.print_to_cli(TELEMETRY_TEXT)
|
287
282
|
if show_instructions:
|
288
283
|
# IMPORTANT: Break the text below at 80 chars.
|
289
|
-
INSTRUCTIONS_TEXT = """
|
290
|
-
|
291
|
-
|
292
|
-
"""
|
293
|
-
"start": cli_util.style_for_cli(
|
294
|
-
"Get started by typing:", fg="blue", bold=True
|
295
|
-
),
|
296
|
-
"prompt": cli_util.style_for_cli("$", fg="blue"),
|
297
|
-
"hello": cli_util.style_for_cli(
|
298
|
-
"streamlit hello", bold=True
|
299
|
-
),
|
300
|
-
}
|
284
|
+
INSTRUCTIONS_TEXT = f"""
|
285
|
+
{cli_util.style_for_cli("Get started by typing:", fg="blue", bold=True)}
|
286
|
+
{cli_util.style_for_cli("$", fg="blue")} {cli_util.style_for_cli("streamlit hello", bold=True)}
|
287
|
+
"""
|
301
288
|
|
302
289
|
cli_util.print_to_cli(INSTRUCTIONS_TEXT)
|
303
290
|
activated = True
|
streamlit/static/index.html
CHANGED
@@ -51,7 +51,7 @@
|
|
51
51
|
<script>
|
52
52
|
window.prerenderReady = false
|
53
53
|
</script>
|
54
|
-
<script type="module" crossorigin src="./static/js/index.
|
54
|
+
<script type="module" crossorigin src="./static/js/index.YePOPnW6.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.
|
1
|
+
import{r,E as a,_ as n}from"./index.YePOPnW6.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.
|
1
|
+
import{r as e,E as n,_ as a}from"./index.YePOPnW6.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};
|