@powerhousedao/design-system 6.2.3-dev.9 → 6.2.3-dev.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PinFilled-cSbUqZCA.js +41 -0
- package/dist/PinFilled-cSbUqZCA.js.map +1 -0
- package/dist/{Removed-CO_5C1ce.js → Removed-OP4eTrAN.js} +1 -1
- package/dist/{Removed-CO_5C1ce.js.map → Removed-OP4eTrAN.js.map} +1 -1
- package/dist/{Tabler-FjvVqX5a.js → Tabler-rjLxlzUV.js} +1 -1
- package/dist/{Tabler-FjvVqX5a.js.map → Tabler-rjLxlzUV.js.map} +1 -1
- package/dist/add-local-drive-form.impl-COIpcmgW.js +76 -0
- package/dist/add-local-drive-form.impl-COIpcmgW.js.map +1 -0
- package/dist/add-remote-drive-form.impl-_SqOzbSt.js +123 -0
- package/dist/add-remote-drive-form.impl-_SqOzbSt.js.map +1 -0
- package/dist/address-DVC3zalI.js +92 -0
- package/dist/address-DVC3zalI.js.map +1 -0
- package/dist/button-BYcXvZXr.d.ts +13 -0
- package/dist/button-BYcXvZXr.d.ts.map +1 -0
- package/dist/{character-counter-BWoglM2P.d.ts → character-counter-BZmZZCHN.d.ts} +2 -1
- package/dist/character-counter-BZmZZCHN.d.ts.map +1 -0
- package/dist/{checkbox-CGBtXQnI.d.ts → checkbox-BIAGwP7d.d.ts} +4 -4
- package/dist/checkbox-BIAGwP7d.d.ts.map +1 -0
- package/dist/{checkbox-base-CZo-4eL0.d.ts → checkbox-base-Bm0GPWgm.d.ts} +2 -2
- package/dist/checkbox-base-Bm0GPWgm.d.ts.map +1 -0
- package/dist/combobox.impl-CQHG0NgO.js +144 -0
- package/dist/combobox.impl-CQHG0NgO.js.map +1 -0
- package/dist/{command-tFzjgzge.d.ts → command-DHHTsHfH.d.ts} +5 -5
- package/dist/command-DHHTsHfH.d.ts.map +1 -0
- package/dist/connect/components/toast/toast.d.ts +8 -10
- package/dist/connect/components/toast/toast.d.ts.map +1 -1
- package/dist/connect/components/toast/toast.js +4 -4
- package/dist/connect/components/toast/toast.js.map +1 -1
- package/dist/connect/index.d.ts +539 -364
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +1175 -1653
- package/dist/connect/index.js.map +1 -1
- package/dist/{content-BHWIqmio.d.ts → content-Cv0kRppo.d.ts} +3 -3
- package/dist/content-Cv0kRppo.d.ts.map +1 -0
- package/dist/default-editor.impl-a6EOuEme.js +30 -0
- package/dist/default-editor.impl-a6EOuEme.js.map +1 -0
- package/dist/document-timeline.impl-zx6f7k2d.js +254 -0
- package/dist/document-timeline.impl-zx6f7k2d.js.map +1 -0
- package/dist/drive-settings-form.impl-yV9u4h5c.js +172 -0
- package/dist/drive-settings-form.impl-yV9u4h5c.js.map +1 -0
- package/dist/{enum-field-CwZVs3Ux.d.ts → enum-field-Cub1rt3e.d.ts} +4 -4
- package/dist/enum-field-Cub1rt3e.d.ts.map +1 -0
- package/dist/{form-CKRKn0TQ.d.ts → form-Brj5AQNr.d.ts} +3 -4
- package/dist/form-Brj5AQNr.d.ts.map +1 -0
- package/dist/{form-description-CYkcMEzm.d.ts → form-description-DJrDJzJi.d.ts} +2 -1
- package/dist/form-description-DJrDJzJi.d.ts.map +1 -0
- package/dist/{form-group-C8kL6pdZ.d.ts → form-group-Ckd28lpW.d.ts} +2 -1
- package/dist/form-group-Ckd28lpW.d.ts.map +1 -0
- package/dist/{form-label-b6nQi0XO.d.ts → form-label-C8ghd_lR.d.ts} +2 -1
- package/dist/form-label-C8ghd_lR.d.ts.map +1 -0
- package/dist/{form-message-Dq72nBXz.d.ts → form-message-CnKUkvlj.d.ts} +2 -1
- package/dist/form-message-CnKUkvlj.d.ts.map +1 -0
- package/dist/form-server-error-message-D2tFtDZ0.d.ts +6 -0
- package/dist/form-server-error-message-D2tFtDZ0.d.ts.map +1 -0
- package/dist/formatted-json-viewer.impl-COERJCiE.js +58 -0
- package/dist/formatted-json-viewer.impl-COERJCiE.js.map +1 -0
- package/dist/icon-DQ2yrWYv.js +358 -0
- package/dist/icon-DQ2yrWYv.js.map +1 -0
- package/dist/{icon-C4QOpsdI.js → icon-components-NK-y5dkv.js} +7 -481
- package/dist/icon-components-NK-y5dkv.js.map +1 -0
- package/dist/{id-autocomplete-C-hwriS5.d.ts → id-autocomplete-8LcmtjSR.d.ts} +3 -3
- package/dist/id-autocomplete-8LcmtjSR.d.ts.map +1 -0
- package/dist/{id-autocomplete-input-container-DFEyPh5p.d.ts → id-autocomplete-input-container-D2L7p-Yh.d.ts} +3 -3
- package/dist/id-autocomplete-input-container-D2L7p-Yh.d.ts.map +1 -0
- package/dist/{id-autocomplete-list-EzLpF23C.d.ts → id-autocomplete-list-BXvN07Hr.d.ts} +3 -3
- package/dist/id-autocomplete-list-BXvN07Hr.d.ts.map +1 -0
- package/dist/{id-autocomplete-list-option-CB5B07Hi.d.ts → id-autocomplete-list-option-D_1BOv50.d.ts} +4 -3
- package/dist/id-autocomplete-list-option-D_1BOv50.d.ts.map +1 -0
- package/dist/{index--hDSfvJT.d.ts → index-5FEr1tXH.d.ts} +25 -59
- package/dist/index-5FEr1tXH.d.ts.map +1 -0
- package/dist/index-C-Tup7Br.d.ts +4 -0
- package/dist/index-D6Zk5OLV.d.ts +4 -0
- package/dist/index-i-xHUsLr.d.ts +30 -0
- package/dist/index-jfVVOU-H.d.ts +2 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +2 -2
- package/dist/{input-BpEQjaWV.d.ts → input-WDvjJFqf.d.ts} +2 -2
- package/dist/input-WDvjJFqf.d.ts.map +1 -0
- package/dist/json-viewer-Kg0IBIt-.d.ts +7 -0
- package/dist/json-viewer-Kg0IBIt-.d.ts.map +1 -0
- package/dist/label-nH2HoKfI.js +15 -0
- package/dist/label-nH2HoKfI.js.map +1 -0
- package/dist/location-info-C3YbSsV0.js +47 -0
- package/dist/location-info-C3YbSsV0.js.map +1 -0
- package/dist/{message-list-C4mPpBBa.d.ts → message-list-D8d2ltLd.d.ts} +3 -3
- package/dist/message-list-D8d2ltLd.d.ts.map +1 -0
- package/dist/{popover-XSBOuSih.d.ts → popover-TvQxa0RU.d.ts} +2 -2
- package/dist/popover-TvQxa0RU.d.ts.map +1 -0
- package/dist/{radio-eL0Oy86J.d.ts → radio-CTS4WsNy.d.ts} +2 -2
- package/dist/radio-CTS4WsNy.d.ts.map +1 -0
- package/dist/{radio-group-Bkli6nUz.d.ts → radio-group-CROIwgYz.d.ts} +2 -2
- package/dist/radio-group-CROIwgYz.d.ts.map +1 -0
- package/dist/{radio-group-field-wlqeiLN3.d.ts → radio-group-field-X18o287K.d.ts} +5 -6
- package/dist/radio-group-field-X18o287K.d.ts.map +1 -0
- package/dist/revision-history.impl-DRbeai2m.js +642 -0
- package/dist/revision-history.impl-DRbeai2m.js.map +1 -0
- package/dist/{search-autocomplete-BJJkrZ1i.d.ts → search-autocomplete-COvFRZIb.d.ts} +3 -3
- package/dist/search-autocomplete-COvFRZIb.d.ts.map +1 -0
- package/dist/{select-field-C97QIhUL.d.ts → select-field-DHaCiAso.d.ts} +5 -5
- package/dist/select-field-DHaCiAso.d.ts.map +1 -0
- package/dist/{selected-content-CGsK5PR4.d.ts → selected-content-CSTFkQr9.d.ts} +3 -3
- package/dist/selected-content-CSTFkQr9.d.ts.map +1 -0
- package/dist/{sidebar-DOoE4krt.d.ts → sidebar-DFqreKf1.d.ts} +3 -3
- package/dist/sidebar-DFqreKf1.d.ts.map +1 -0
- package/dist/{sidebar-provider-C2eyz9TL.d.ts → sidebar-provider-CZHhqW5n.d.ts} +4 -8
- package/dist/sidebar-provider-CZHhqW5n.d.ts.map +1 -0
- package/dist/splitted-input-diff-DNKcSOAB.d.ts +11 -0
- package/dist/splitted-input-diff-DNKcSOAB.d.ts.map +1 -0
- package/dist/{src-CVV6HzQZ.js → src-DhSJCeu5.js} +180 -24
- package/dist/src-DhSJCeu5.js.map +1 -0
- package/dist/style.css +144 -62
- package/dist/text-field-Dq1DTC_t.d.ts +9 -0
- package/dist/text-field-Dq1DTC_t.d.ts.map +1 -0
- package/dist/{text-input-8zXIWHLi.d.ts → text-input-CRjOT54_.d.ts} +5 -6
- package/dist/text-input-CRjOT54_.d.ts.map +1 -0
- package/dist/text-input-diff-CcF0QblL.d.ts +12 -0
- package/dist/text-input-diff-CcF0QblL.d.ts.map +1 -0
- package/dist/{tooltip-BxS9HpML.d.ts → tooltip-B4uQJPUm.d.ts} +3 -4
- package/dist/tooltip-B4uQJPUm.d.ts.map +1 -0
- package/dist/{types-Bsn62tJB.d.ts → types-BNTIrhb5.d.ts} +2 -1
- package/dist/types-BNTIrhb5.d.ts.map +1 -0
- package/dist/{types-BTq-St7H.d.ts → types-CpFPFB1a.d.ts} +2 -1
- package/dist/types-CpFPFB1a.d.ts.map +1 -0
- package/dist/{types-C04Q_Fan.d.ts → types-D4CirgNk.d.ts} +2 -2
- package/dist/types-D4CirgNk.d.ts.map +1 -0
- package/dist/{types-CNbvfWjh.d.ts → types-FTqFl5du.d.ts} +3 -3
- package/dist/types-FTqFl5du.d.ts.map +1 -0
- package/dist/types-TZijOYrE.d.ts +17 -0
- package/dist/types-TZijOYrE.d.ts.map +1 -0
- package/dist/ui/components/button/button.d.ts +3 -2
- package/dist/ui/components/button/button.js +1 -1
- package/dist/ui/components/button/button.js.map +1 -1
- package/dist/ui/components/character-counter/character-counter.d.ts +3 -2
- package/dist/ui/components/character-counter/character-counter.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox-base.d.ts +3 -2
- package/dist/ui/components/checkbox/checkbox-base.js +1 -1
- package/dist/ui/components/checkbox/checkbox-base.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox.d.ts +3 -2
- package/dist/ui/components/checkbox/checkbox.js +1 -1
- package/dist/ui/components/checkbox/checkbox.js.map +1 -1
- package/dist/ui/components/command/command.d.ts +3 -2
- package/dist/ui/components/command/command.js +8 -8
- package/dist/ui/components/command/command.js.map +1 -1
- package/dist/ui/components/enum-field/enum-field.d.ts +3 -2
- package/dist/ui/components/enum-field/enum-field.js +1 -1
- package/dist/ui/components/enum-field/enum-field.js.map +1 -1
- package/dist/ui/components/enum-field/types.d.ts +3 -2
- package/dist/ui/components/form/form.d.ts +3 -2
- package/dist/ui/components/form/form.js +1 -1
- package/dist/ui/components/form/form.js.map +1 -1
- package/dist/ui/components/form/utils.d.ts +4 -4
- package/dist/ui/components/form/utils.d.ts.map +1 -1
- package/dist/ui/components/form/utils.js.map +1 -1
- package/dist/ui/components/form-description/form-description.d.ts +3 -2
- package/dist/ui/components/form-description/form-description.js.map +1 -1
- package/dist/ui/components/form-group/form-group.d.ts +3 -2
- package/dist/ui/components/form-group/form-group.js.map +1 -1
- package/dist/ui/components/form-label/form-label.d.ts +3 -2
- package/dist/ui/components/form-label/form-label.js +3 -2
- package/dist/ui/components/form-label/form-label.js.map +1 -1
- package/dist/ui/components/form-message/form-message.d.ts +3 -2
- package/dist/ui/components/form-message/form-message.js.map +1 -1
- package/dist/ui/components/form-message/form-server-error-message.d.ts +3 -2
- package/dist/ui/components/form-message/form-server-error-message.js.map +1 -1
- package/dist/ui/components/form-message/message-list.d.ts +3 -2
- package/dist/ui/components/form-message/message-list.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-context.d.ts +3 -5
- package/dist/ui/components/id-autocomplete/id-autocomplete-context.d.ts.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-context.js +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-context.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js +2 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js +2 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-list.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete.js +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete.js.map +1 -1
- package/dist/ui/components/id-autocomplete/types.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/use-id-autocomplete.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/use-id-autocomplete.js.map +1 -1
- package/dist/ui/components/index.d.ts +42 -40
- package/dist/ui/components/input/input.d.ts +3 -2
- package/dist/ui/components/input/input.js +1 -1
- package/dist/ui/components/input/input.js.map +1 -1
- package/dist/ui/components/input/splitted-input-diff.d.ts +3 -2
- package/dist/ui/components/input/splitted-input-diff.js +10 -9
- package/dist/ui/components/input/splitted-input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/input-diff.d.ts +2 -11
- package/dist/ui/components/input/subcomponent/input-diff.d.ts.map +1 -1
- package/dist/ui/components/input/subcomponent/input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.d.ts +3 -12
- package/dist/ui/components/input/subcomponent/text-diff.d.ts.map +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.js.map +1 -1
- package/dist/ui/components/json-viewer/json-viewer.d.ts +3 -2
- package/dist/ui/components/json-viewer/json-viewer.js +1 -1
- package/dist/ui/components/json-viewer/json-viewer.js.map +1 -1
- package/dist/ui/components/popover/popover.d.ts +3 -2
- package/dist/ui/components/popover/popover.js +1 -1
- package/dist/ui/components/popover/popover.js.map +1 -1
- package/dist/ui/components/radio-group-field/radio-group-field.d.ts +3 -2
- package/dist/ui/components/radio-group-field/radio-group-field.js +4 -3
- package/dist/ui/components/radio-group-field/radio-group-field.js.map +1 -1
- package/dist/ui/components/radio-group-field/radio-group.d.ts +3 -2
- package/dist/ui/components/radio-group-field/radio-group.js +1 -1
- package/dist/ui/components/radio-group-field/radio-group.js.map +1 -1
- package/dist/ui/components/radio-group-field/radio.d.ts +3 -2
- package/dist/ui/components/radio-group-field/radio.js +1 -1
- package/dist/ui/components/radio-group-field/radio.js.map +1 -1
- package/dist/ui/components/search-autocomplete/index.d.ts +6 -4
- package/dist/ui/components/search-autocomplete/search-autocomplete.d.ts +3 -2
- package/dist/ui/components/search-autocomplete/search-autocomplete.js.map +1 -1
- package/dist/ui/components/search-autocomplete/types.d.ts +3 -2
- package/dist/ui/components/search-autocomplete/use-search-autocomplete.d.ts +3 -2
- package/dist/ui/components/search-autocomplete/use-search-autocomplete.js.map +1 -1
- package/dist/ui/components/select-field/content.d.ts +3 -2
- package/dist/ui/components/select-field/content.js +1 -1
- package/dist/ui/components/select-field/content.js.map +1 -1
- package/dist/ui/components/select-field/select-field.d.ts +3 -2
- package/dist/ui/components/select-field/select-field.js +1 -1
- package/dist/ui/components/select-field/select-field.js.map +1 -1
- package/dist/ui/components/select-field/selected-content.d.ts +3 -2
- package/dist/ui/components/select-field/selected-content.js +1 -1
- package/dist/ui/components/select-field/selected-content.js.map +1 -1
- package/dist/ui/components/select-field/subcomponents/CommandItemList.d.ts +3 -4
- package/dist/ui/components/select-field/subcomponents/CommandItemList.d.ts.map +1 -1
- package/dist/ui/components/select-field/subcomponents/CommandItemList.js +1 -1
- package/dist/ui/components/select-field/subcomponents/CommandItemList.js.map +1 -1
- package/dist/ui/components/select-field/use-select-field.d.ts +4 -12
- package/dist/ui/components/select-field/use-select-field.d.ts.map +1 -1
- package/dist/ui/components/select-field/use-select-field.js.map +1 -1
- package/dist/ui/components/sidebar/index.d.ts +6 -4
- package/dist/ui/components/sidebar/sidebar.d.ts +3 -2
- package/dist/ui/components/sidebar/sidebar.js +1 -1
- package/dist/ui/components/sidebar/sidebar.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.d.ts +2 -7
- package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.js +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-header.d.ts +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-header.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-header.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-item.d.ts +3 -18
- package/dist/ui/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-item.js +4 -3
- package/dist/ui/components/sidebar/subcomponents/sidebar-item.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-pinning-area.d.ts +2 -4
- package/dist/ui/components/sidebar/subcomponents/sidebar-pinning-area.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-pinning-area.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/index.d.ts +4 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.d.ts +3 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.js +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.d.ts +7 -8
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.js +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/index.d.ts +2 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.d.ts +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.d.ts +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.d.ts +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.js +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.d.ts +2 -8
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.js +2 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton.d.ts +2 -4
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/status-icon.d.ts +3 -9
- package/dist/ui/components/sidebar/subcomponents/status-icon.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/status-icon.js +1 -1
- package/dist/ui/components/sidebar/subcomponents/status-icon.js.map +1 -1
- package/dist/ui/components/sidebar/types.d.ts +3 -2
- package/dist/ui/components/sidebar/types.js +1 -1
- package/dist/ui/components/sidebar/types.js.map +1 -1
- package/dist/ui/components/sidebar/use-ellipsis.d.ts +2 -2
- package/dist/ui/components/sidebar/use-ellipsis.d.ts.map +1 -1
- package/dist/ui/components/sidebar/use-ellipsis.js.map +1 -1
- package/dist/ui/components/sidebar/use-sidebar-resize.d.ts +3 -9
- package/dist/ui/components/sidebar/use-sidebar-resize.d.ts.map +1 -1
- package/dist/ui/components/sidebar/use-sidebar-resize.js.map +1 -1
- package/dist/ui/components/sidebar/utils.d.ts +10 -11
- package/dist/ui/components/sidebar/utils.d.ts.map +1 -1
- package/dist/ui/components/sidebar/utils.js.map +1 -1
- package/dist/ui/components/text-field/text-field.d.ts +3 -2
- package/dist/ui/components/text-field/text-field.js +3 -2
- package/dist/ui/components/text-field/text-field.js.map +1 -1
- package/dist/ui/components/text-input/text-input-diff.d.ts +3 -2
- package/dist/ui/components/text-input/text-input-diff.js.map +1 -1
- package/dist/ui/components/text-input/text-input.d.ts +3 -2
- package/dist/ui/components/text-input/text-input.js +1 -1
- package/dist/ui/components/text-input/text-input.js.map +1 -1
- package/dist/ui/components/text-input/types.d.ts +3 -2
- package/dist/ui/components/tooltip/tooltip.d.ts +3 -2
- package/dist/ui/components/tooltip/tooltip.js +1 -1
- package/dist/ui/components/tooltip/tooltip.js.map +1 -1
- package/dist/ui/components/types.d.ts +3 -2
- package/dist/ui/components/value-transformer/value-transformer.d.ts +3 -2
- package/dist/ui/components/value-transformer/value-transformer.js +5 -3
- package/dist/ui/components/value-transformer/value-transformer.js.map +1 -1
- package/dist/ui/components/with-field-validation/with-field-validation.d.ts +3 -2
- package/dist/ui/components/with-field-validation/with-field-validation.js +1 -1
- package/dist/ui/components/with-field-validation/with-field-validation.js.map +1 -1
- package/dist/ui/index.d.ts +44 -42
- package/dist/ui/lib/date-picker.d.ts +4 -5
- package/dist/ui/lib/date-picker.d.ts.map +1 -1
- package/dist/ui/lib/date-picker.js +2 -1
- package/dist/ui/lib/date-picker.js.map +1 -1
- package/dist/ui/lib/date-time-picker.d.ts +6 -6
- package/dist/ui/lib/date-time-picker.d.ts.map +1 -1
- package/dist/ui/lib/date-time-picker.js.map +1 -1
- package/dist/ui/lib/deep-equal.d.ts +2 -2
- package/dist/ui/lib/deep-equal.d.ts.map +1 -1
- package/dist/ui/lib/deep-equal.js.map +1 -1
- package/dist/ui/lib/index.d.ts +2 -1
- package/dist/ui/lib/is-empty.d.ts +2 -2
- package/dist/ui/lib/is-empty.d.ts.map +1 -1
- package/dist/ui/lib/is-empty.js.map +1 -1
- package/dist/ui/lib/shared-value-transformers.d.ts +3 -4
- package/dist/ui/lib/shared-value-transformers.d.ts.map +1 -1
- package/dist/ui/lib/shared-value-transformers.js.map +1 -1
- package/dist/ui/lib/types.d.ts +3 -2
- package/dist/ui/lib/value-cast.d.ts +4 -4
- package/dist/ui/lib/value-cast.d.ts.map +1 -1
- package/dist/ui/lib/value-cast.js +10 -4
- package/dist/ui/lib/value-cast.js.map +1 -1
- package/dist/ui/types.d.ts +4 -3
- package/dist/{use-id-autocomplete-By7YSChC.d.ts → use-id-autocomplete-m9Bf0qCy.d.ts} +5 -16
- package/dist/use-id-autocomplete-m9Bf0qCy.d.ts.map +1 -0
- package/dist/{use-search-autocomplete-IfcQ_gKh.d.ts → use-search-autocomplete-vSvcsvcB.d.ts} +5 -6
- package/dist/use-search-autocomplete-vSvcsvcB.d.ts.map +1 -0
- package/dist/{value-transformer-DQjqtNih.d.ts → value-transformer-BtUh3-UP.d.ts} +5 -7
- package/dist/value-transformer-BtUh3-UP.d.ts.map +1 -0
- package/dist/{with-field-validation-Di5D8vU-.d.ts → with-field-validation-Bh26a6fr.d.ts} +3 -3
- package/dist/with-field-validation-Bh26a6fr.d.ts.map +1 -0
- package/package.json +17 -12
- package/plugins.css +6 -0
- package/tailwind.css +213 -0
- package/vendor.css +3 -0
- package/dist/button-C8doazjv.d.ts +0 -15
- package/dist/button-C8doazjv.d.ts.map +0 -1
- package/dist/character-counter-BWoglM2P.d.ts.map +0 -1
- package/dist/checkbox-CGBtXQnI.d.ts.map +0 -1
- package/dist/checkbox-base-CZo-4eL0.d.ts.map +0 -1
- package/dist/command-tFzjgzge.d.ts.map +0 -1
- package/dist/content-BHWIqmio.d.ts.map +0 -1
- package/dist/enum-field-CwZVs3Ux.d.ts.map +0 -1
- package/dist/form-CKRKn0TQ.d.ts.map +0 -1
- package/dist/form-description-CYkcMEzm.d.ts.map +0 -1
- package/dist/form-group-C8kL6pdZ.d.ts.map +0 -1
- package/dist/form-label-b6nQi0XO.d.ts.map +0 -1
- package/dist/form-message-Dq72nBXz.d.ts.map +0 -1
- package/dist/form-server-error-message-DXbaiTfF.d.ts +0 -7
- package/dist/form-server-error-message-DXbaiTfF.d.ts.map +0 -1
- package/dist/icon-C4QOpsdI.js.map +0 -1
- package/dist/id-autocomplete-C-hwriS5.d.ts.map +0 -1
- package/dist/id-autocomplete-input-container-DFEyPh5p.d.ts.map +0 -1
- package/dist/id-autocomplete-list-EzLpF23C.d.ts.map +0 -1
- package/dist/id-autocomplete-list-option-CB5B07Hi.d.ts.map +0 -1
- package/dist/index--hDSfvJT.d.ts.map +0 -1
- package/dist/index--okzibnx.d.ts +0 -1
- package/dist/index-BLwMeReG.d.ts +0 -1
- package/dist/index-Cw3C7_1f.d.ts +0 -1
- package/dist/index-E7Wvm5uX.d.ts +0 -1
- package/dist/index-J3R2mDFQ.d.ts +0 -1
- package/dist/input-BpEQjaWV.d.ts.map +0 -1
- package/dist/json-viewer-DaTgmzkS.d.ts +0 -8
- package/dist/json-viewer-DaTgmzkS.d.ts.map +0 -1
- package/dist/message-list-C4mPpBBa.d.ts.map +0 -1
- package/dist/popover-XSBOuSih.d.ts.map +0 -1
- package/dist/radio-eL0Oy86J.d.ts.map +0 -1
- package/dist/radio-group-Bkli6nUz.d.ts.map +0 -1
- package/dist/radio-group-field-wlqeiLN3.d.ts.map +0 -1
- package/dist/search-autocomplete-BJJkrZ1i.d.ts.map +0 -1
- package/dist/select-field-C97QIhUL.d.ts.map +0 -1
- package/dist/selected-content-CGsK5PR4.d.ts.map +0 -1
- package/dist/sidebar-DOoE4krt.d.ts.map +0 -1
- package/dist/sidebar-provider-C2eyz9TL.d.ts.map +0 -1
- package/dist/splitted-input-diff-CwPedpov.d.ts +0 -18
- package/dist/splitted-input-diff-CwPedpov.d.ts.map +0 -1
- package/dist/src-CVV6HzQZ.js.map +0 -1
- package/dist/text-field-DSInH67J.d.ts +0 -10
- package/dist/text-field-DSInH67J.d.ts.map +0 -1
- package/dist/text-input-8zXIWHLi.d.ts.map +0 -1
- package/dist/text-input-diff-B0vLSKQm.d.ts +0 -20
- package/dist/text-input-diff-B0vLSKQm.d.ts.map +0 -1
- package/dist/tooltip-BxS9HpML.d.ts.map +0 -1
- package/dist/types-BTq-St7H.d.ts.map +0 -1
- package/dist/types-Bsn62tJB.d.ts.map +0 -1
- package/dist/types-C04Q_Fan.d.ts.map +0 -1
- package/dist/types-CNbvfWjh.d.ts.map +0 -1
- package/dist/use-id-autocomplete-By7YSChC.d.ts.map +0 -1
- package/dist/use-search-autocomplete-IfcQ_gKh.d.ts.map +0 -1
- package/dist/value-transformer-DQjqtNih.d.ts.map +0 -1
- package/dist/with-field-validation-Di5D8vU-.d.ts.map +0 -1
package/dist/connect/index.d.ts
CHANGED
|
@@ -1,93 +1,129 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { $ as PowerhouseButton, A as SidebarFooter, G as Modal, K as Icon, S as SelectOption, T as useWindowSize, at as AppOptions, ct as INITIAL_SYNC, dt as SYNCING, ft as syncStatuses, j as SidebarHeader, lt as MISSING, ot as CONFLICT, rt as SyncStatus$1, st as ERROR, ut as SUCCESS } from "../index-5FEr1tXH.js";
|
|
2
|
+
import { i as Size, n as DivProps, o as IconName } from "../types-TZijOYrE.js";
|
|
3
|
+
import { t as Checkbox } from "../checkbox-BIAGwP7d.js";
|
|
4
|
+
import "../ui/index.js";
|
|
5
|
+
import React$1, { CSSProperties, ComponentProps, ComponentPropsWithRef, ComponentPropsWithoutRef, FC, HTMLAttributes, PropsWithChildren, ReactNode, RefAttributes } from "react";
|
|
6
6
|
import { TooltipProps } from "@radix-ui/react-tooltip";
|
|
7
7
|
import { SubmitHandler } from "react-hook-form";
|
|
8
|
-
import { ConflictResolution, DocumentTypeIcon, DriveSystemInfoState, FileUploadProgress, IChannel, Job, RebuildResult, Remote, ValidationResult } from "@powerhousedao/reactor-browser";
|
|
9
|
-
import Select from "react-select";
|
|
8
|
+
import { ConflictResolution, DocumentTypeIcon, DriveSystemInfoState, FileUploadProgress, IChannel, IPeerAgreement, Job, PHNavigationTarget, RebuildResult, Remote, RemotePeer, SyncHold, ValidationResult } from "@powerhousedao/reactor-browser";
|
|
10
9
|
import { Operation, PHDocument } from "@powerhousedao/shared/document-model";
|
|
11
|
-
import { JsonViewProps } from "@uiw/react-json-view";
|
|
12
10
|
import { DocumentDriveDocument, FileNode, FolderNode, Node, SharingType } from "@powerhousedao/shared/document-drive";
|
|
11
|
+
import Select from "react-select";
|
|
12
|
+
import { JsonViewProps } from "@uiw/react-json-view";
|
|
13
13
|
import { ArrayElement, Simplify } from "type-fest";
|
|
14
|
+
import { PHBackground } from "@powerhousedao/shared/clis";
|
|
14
15
|
import { RegistryPackage, RegistryPackageList } from "@powerhousedao/shared/registry";
|
|
15
|
-
|
|
16
16
|
//#region src/connect/components/account-popover/account-popover.d.ts
|
|
17
|
-
interface AccountPopoverProps {
|
|
17
|
+
export interface AccountPopoverProps {
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
content: ReactNode;
|
|
20
20
|
open?: boolean;
|
|
21
21
|
onOpenChange?: (open: boolean) => void;
|
|
22
22
|
}
|
|
23
|
-
declare const AccountPopover: ({
|
|
24
|
-
children,
|
|
25
|
-
content,
|
|
26
|
-
open,
|
|
27
|
-
onOpenChange
|
|
28
|
-
}: AccountPopoverProps) => react_jsx_runtime0.JSX.Element;
|
|
23
|
+
export declare const AccountPopover: ({ children, content, open, onOpenChange }: AccountPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
24
|
//#endregion
|
|
30
25
|
//#region src/connect/components/account-popover/account-popover-login.d.ts
|
|
31
|
-
interface AccountPopoverLoginProps {
|
|
26
|
+
export interface AccountPopoverLoginProps {
|
|
32
27
|
onLogin: (() => void) | undefined;
|
|
33
28
|
}
|
|
34
|
-
declare const AccountPopoverLogin: FC<AccountPopoverLoginProps>;
|
|
29
|
+
export declare const AccountPopoverLogin: FC<AccountPopoverLoginProps>;
|
|
35
30
|
//#endregion
|
|
36
31
|
//#region src/connect/components/renown-login/renown-login-methods.d.ts
|
|
37
|
-
interface RenownLoginOption {
|
|
32
|
+
export interface RenownLoginOption {
|
|
38
33
|
id: string;
|
|
39
34
|
label: string;
|
|
40
35
|
onSelect: () => void;
|
|
41
36
|
lastUsed?: boolean;
|
|
42
37
|
}
|
|
43
|
-
interface RenownLoginMethodsProps {
|
|
38
|
+
export interface RenownLoginMethodsProps {
|
|
44
39
|
methods: RenownLoginOption[];
|
|
45
40
|
loading?: boolean;
|
|
46
41
|
error?: string | null;
|
|
47
42
|
className?: string;
|
|
48
43
|
}
|
|
49
|
-
declare const RenownLoginMethods: FC<RenownLoginMethodsProps>;
|
|
44
|
+
export declare const RenownLoginMethods: FC<RenownLoginMethodsProps>;
|
|
50
45
|
//#endregion
|
|
51
46
|
//#region src/connect/components/animated-loader/animated-loader.d.ts
|
|
52
|
-
type Props$
|
|
47
|
+
type Props$10 = ComponentPropsWithoutRef<"video"> & {
|
|
53
48
|
readonly size?: Size;
|
|
54
49
|
};
|
|
55
|
-
declare function AnimatedLoader(props: Props$
|
|
50
|
+
export declare function AnimatedLoader(props: Props$10): import("react/jsx-runtime").JSX.Element;
|
|
56
51
|
//#endregion
|
|
57
52
|
//#region src/connect/components/breadcrumbs/breadcrumbs.d.ts
|
|
58
|
-
declare function Breadcrumbs():
|
|
59
|
-
type BreadcrumbProps = {
|
|
53
|
+
export declare function Breadcrumbs(): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export type BreadcrumbProps = {
|
|
60
55
|
name: string;
|
|
61
56
|
id: string | undefined;
|
|
62
57
|
parentId: string | null | undefined;
|
|
58
|
+
/** Renders a real link; plain clicks still call `onClick`. */
|
|
59
|
+
href?: string;
|
|
60
|
+
/** What the crumb opens; gives it the navigation's href and current mark. */
|
|
61
|
+
target?: PHNavigationTarget;
|
|
63
62
|
onClick: () => void;
|
|
64
63
|
};
|
|
65
|
-
declare function Breadcrumb(props: BreadcrumbProps):
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/connect/components/
|
|
64
|
+
export declare function Breadcrumb(props: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/connect/components/catch-up-inspector/catch-up-inspector.d.ts
|
|
67
|
+
export type WatermarkStatus = {
|
|
68
|
+
head: number;
|
|
69
|
+
settledThrough: number;
|
|
70
|
+
waitingOn: string[];
|
|
71
|
+
stalledSinceUtcMs?: number;
|
|
72
|
+
};
|
|
73
|
+
export type SweepBlockedAt = {
|
|
74
|
+
ordinal: number;
|
|
75
|
+
documentId: string;
|
|
76
|
+
scope: string;
|
|
77
|
+
branch: string;
|
|
78
|
+
type: string;
|
|
79
|
+
error: string;
|
|
80
|
+
};
|
|
81
|
+
export type CatchUpConsumerStatus = {
|
|
82
|
+
consumerId: string;
|
|
83
|
+
thread: "host" | "projection";
|
|
84
|
+
appliedThrough: number;
|
|
85
|
+
trackedAbove: number;
|
|
86
|
+
blockedAt?: SweepBlockedAt;
|
|
87
|
+
lastAdvanceUtcMs: number;
|
|
88
|
+
};
|
|
89
|
+
export type CatchUpStatus = {
|
|
90
|
+
watermark: WatermarkStatus;
|
|
91
|
+
consumers: CatchUpConsumerStatus[];
|
|
92
|
+
};
|
|
93
|
+
export type CatchUpInspectorProps = {
|
|
94
|
+
readonly status: CatchUpStatus | undefined;
|
|
95
|
+
readonly onRefresh: () => Promise<void>;
|
|
96
|
+
readonly onSweepNow: () => Promise<void>;
|
|
97
|
+
};
|
|
98
|
+
export declare function CatchUpInspector({ status, onRefresh, onSweepNow }: CatchUpInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/connect/components/combobox/combobox.impl.d.ts
|
|
68
101
|
type SelectProps = ComponentPropsWithoutRef<typeof Select>;
|
|
69
|
-
type Props$
|
|
102
|
+
type Props$9 = Omit<SelectProps, "components" | "styles" | "theme"> & {
|
|
70
103
|
readonly addItemButtonProps?: {
|
|
71
104
|
label?: ReactNode;
|
|
72
105
|
onClick?: () => void;
|
|
73
106
|
};
|
|
74
107
|
};
|
|
75
|
-
declare function Combobox(props: Props$
|
|
108
|
+
declare function Combobox$1(props: Props$9): import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/connect/components/combobox/combobox.d.ts
|
|
111
|
+
export declare const Combobox: typeof Combobox$1;
|
|
76
112
|
//#endregion
|
|
77
113
|
//#region src/connect/components/consent-banner/consent-banner.d.ts
|
|
78
|
-
type CookieInput = {
|
|
114
|
+
export type CookieInput = {
|
|
79
115
|
id: string;
|
|
80
116
|
label: string;
|
|
81
117
|
value: boolean;
|
|
82
118
|
};
|
|
83
|
-
interface CookieBannerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSubmit"> {
|
|
119
|
+
export interface CookieBannerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSubmit"> {
|
|
84
120
|
cookies: CookieInput[];
|
|
85
121
|
submitLabel?: string;
|
|
86
122
|
rejectLabel?: string;
|
|
87
123
|
onSubmit?: (cookies: CookieInput[]) => void;
|
|
88
124
|
onReject?: () => void;
|
|
89
125
|
}
|
|
90
|
-
declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
126
|
+
export declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
91
127
|
//#endregion
|
|
92
128
|
//#region src/connect/components/db-explorer/components/table-view.d.ts
|
|
93
129
|
type ColumnInfo = {
|
|
@@ -119,31 +155,31 @@ type TableInfo = {
|
|
|
119
155
|
};
|
|
120
156
|
//#endregion
|
|
121
157
|
//#region src/connect/components/db-explorer/db-explorer.d.ts
|
|
122
|
-
type GetTableRowsOptions = {
|
|
158
|
+
export type GetTableRowsOptions = {
|
|
123
159
|
readonly schema?: string;
|
|
124
160
|
readonly limit: number;
|
|
125
161
|
readonly offset: number;
|
|
126
162
|
readonly sort?: SortOptions;
|
|
127
163
|
readonly filters?: FilterGroup;
|
|
128
164
|
};
|
|
129
|
-
type TablePage = {
|
|
165
|
+
export type TablePage = {
|
|
130
166
|
readonly columns: string[];
|
|
131
167
|
readonly rows: Record<string, unknown>[];
|
|
132
168
|
readonly total: number | null;
|
|
133
169
|
};
|
|
134
|
-
interface DbClient {
|
|
170
|
+
export interface DbClient {
|
|
135
171
|
readonly kind: string;
|
|
136
172
|
listTables(schema?: string): Promise<string[]>;
|
|
137
173
|
getTableSchema(table: string, schema?: string): Promise<ColumnInfo[]>;
|
|
138
174
|
getTableRows(table: string, options: GetTableRowsOptions): Promise<TablePage>;
|
|
139
175
|
}
|
|
140
|
-
type PgVersionControl = {
|
|
176
|
+
export type PgVersionControl = {
|
|
141
177
|
readonly currentPgVersion: number | null;
|
|
142
178
|
readonly supportedPgVersions: readonly number[];
|
|
143
179
|
readonly onResetToPgVersion: (major: number) => void | Promise<void>;
|
|
144
180
|
};
|
|
145
181
|
/** Props for the main DBExplorer component */
|
|
146
|
-
type DBExplorerProps = {
|
|
182
|
+
export type DBExplorerProps = {
|
|
147
183
|
readonly schema: string;
|
|
148
184
|
readonly getTables: () => Promise<TableInfo[]>;
|
|
149
185
|
readonly getTableRows: (table: string, options: GetTableRowsOptions) => Promise<TablePage>;
|
|
@@ -153,34 +189,21 @@ type DBExplorerProps = {
|
|
|
153
189
|
readonly onExportDb?: () => void | Promise<void>;
|
|
154
190
|
readonly pgVersionControl?: PgVersionControl;
|
|
155
191
|
};
|
|
156
|
-
declare function DBExplorer({
|
|
157
|
-
schema,
|
|
158
|
-
getTables,
|
|
159
|
-
getTableRows,
|
|
160
|
-
getDefaultSort,
|
|
161
|
-
pageSize,
|
|
162
|
-
onImportDb,
|
|
163
|
-
onExportDb,
|
|
164
|
-
pgVersionControl
|
|
165
|
-
}: DBExplorerProps): react_jsx_runtime0.JSX.Element;
|
|
192
|
+
export declare function DBExplorer({ schema, getTables, getTableRows, getDefaultSort, pageSize, onImportDb, onExportDb, pgVersionControl }: DBExplorerProps): import("react/jsx-runtime").JSX.Element;
|
|
166
193
|
//#endregion
|
|
167
194
|
//#region src/connect/components/debug-inspector/debug-inspector.d.ts
|
|
168
|
-
type DebugInspectorProps = {
|
|
195
|
+
export type DebugInspectorProps = {
|
|
169
196
|
readonly supportedPgVersions: readonly number[];
|
|
170
197
|
readonly currentPgVersion: number | null;
|
|
171
198
|
readonly onResetToPgVersion: (major: number) => Promise<void>;
|
|
172
199
|
};
|
|
173
|
-
declare function DebugInspector({
|
|
174
|
-
supportedPgVersions,
|
|
175
|
-
currentPgVersion,
|
|
176
|
-
onResetToPgVersion
|
|
177
|
-
}: DebugInspectorProps): react_jsx_runtime0.JSX.Element;
|
|
200
|
+
export declare function DebugInspector({ supportedPgVersions, currentPgVersion, onResetToPgVersion }: DebugInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
178
201
|
//#endregion
|
|
179
202
|
//#region src/connect/components/default-editor-loader/default-editor-loader.d.ts
|
|
180
203
|
type DefaultEditorLoaderProps = DivProps & {
|
|
181
204
|
readonly message?: string;
|
|
182
205
|
};
|
|
183
|
-
declare function DefaultEditorLoader(props: DefaultEditorLoaderProps):
|
|
206
|
+
export declare function DefaultEditorLoader(props: DefaultEditorLoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
184
207
|
//#endregion
|
|
185
208
|
//#region src/connect/components/disclosure/disclosure.d.ts
|
|
186
209
|
type DisclosureProps = {
|
|
@@ -192,10 +215,10 @@ type DisclosureProps = {
|
|
|
192
215
|
toggleClassName?: string;
|
|
193
216
|
contentClassName?: string;
|
|
194
217
|
};
|
|
195
|
-
declare function Disclosure(props: DisclosureProps):
|
|
218
|
+
export declare function Disclosure(props: DisclosureProps): import("react/jsx-runtime").JSX.Element;
|
|
196
219
|
//#endregion
|
|
197
220
|
//#region src/connect/components/divider/divider.d.ts
|
|
198
|
-
declare function Divider(props: DivProps):
|
|
221
|
+
export declare function Divider(props: DivProps): import("react/jsx-runtime").JSX.Element;
|
|
199
222
|
//#endregion
|
|
200
223
|
//#region src/connect/components/document-state-viewer/document-state-viewer.d.ts
|
|
201
224
|
interface DocumentStateViewerProps {
|
|
@@ -204,14 +227,9 @@ interface DocumentStateViewerProps {
|
|
|
204
227
|
defaultScope?: string;
|
|
205
228
|
className?: string;
|
|
206
229
|
}
|
|
207
|
-
declare function DocumentStateViewer({
|
|
208
|
-
state,
|
|
209
|
-
ignoredScopes,
|
|
210
|
-
defaultScope,
|
|
211
|
-
className
|
|
212
|
-
}: DocumentStateViewerProps): react_jsx_runtime0.JSX.Element;
|
|
230
|
+
export declare function DocumentStateViewer({ state, ignoredScopes, defaultScope, className }: DocumentStateViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
213
231
|
//#endregion
|
|
214
|
-
//#region src/connect/components/document-timeline/document-timeline.d.ts
|
|
232
|
+
//#region src/connect/components/document-timeline/document-timeline.impl.d.ts
|
|
215
233
|
type TimelineBarItem = {
|
|
216
234
|
id: string;
|
|
217
235
|
type: "bar";
|
|
@@ -239,7 +257,10 @@ interface DocumentTimelineProps {
|
|
|
239
257
|
onItemClick?: (item: TimelineItem | null) => void;
|
|
240
258
|
timeline?: Array<TimelineItem>;
|
|
241
259
|
}
|
|
242
|
-
declare const DocumentTimeline: (props: DocumentTimelineProps) =>
|
|
260
|
+
declare const DocumentTimeline$1: (props: DocumentTimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/connect/components/document-timeline/document-timeline.d.ts
|
|
263
|
+
export declare const DocumentTimeline: typeof DocumentTimeline$1;
|
|
243
264
|
//#endregion
|
|
244
265
|
//#region src/connect/components/document-toolbar/containers.d.ts
|
|
245
266
|
/**
|
|
@@ -249,7 +270,7 @@ declare const DocumentTimeline: (props: DocumentTimelineProps) => react_jsx_runt
|
|
|
249
270
|
* still accepting standard `div` props. Pass a custom container to
|
|
250
271
|
* `DocumentToolbar` when you need to replace this wrapper.
|
|
251
272
|
*/
|
|
252
|
-
declare function ToolbarContainer(props: ComponentProps<"div">):
|
|
273
|
+
export declare function ToolbarContainer(props: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
253
274
|
/**
|
|
254
275
|
* Default container for a group of toolbar controls.
|
|
255
276
|
*
|
|
@@ -257,7 +278,7 @@ declare function ToolbarContainer(props: ComponentProps<"div">): react_jsx_runti
|
|
|
257
278
|
* component provides the default horizontal layout for the controls in that
|
|
258
279
|
* slot while still accepting standard `div` props.
|
|
259
280
|
*/
|
|
260
|
-
declare function ToolbarControlsContainer(props: ComponentProps<"div">):
|
|
281
|
+
export declare function ToolbarControlsContainer(props: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
261
282
|
//#endregion
|
|
262
283
|
//#region src/connect/components/document-toolbar/constants.d.ts
|
|
263
284
|
/**
|
|
@@ -310,7 +331,6 @@ type ToolbarButtonProps = {
|
|
|
310
331
|
onClick?: ToolbarButtonClickHandler;
|
|
311
332
|
};
|
|
312
333
|
/**
|
|
313
|
-
|
|
314
334
|
* A map of built-in toolbar control names to replacement control components.
|
|
315
335
|
* Provide this when you want to override one or more built-in
|
|
316
336
|
* controls while keeping the rest of the default toolbar layout.
|
|
@@ -508,7 +528,7 @@ type DocumentToolbarProps = DocumentToolbarWithChildrenProps | DocumentToolbarWi
|
|
|
508
528
|
*
|
|
509
529
|
* To take over the toolbar contents completely, pass `children`.
|
|
510
530
|
*/
|
|
511
|
-
declare function DocumentToolbar(props: DocumentToolbarProps):
|
|
531
|
+
export declare function DocumentToolbar(props: DocumentToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
512
532
|
//#endregion
|
|
513
533
|
//#region src/connect/components/document-toolbar/toolbar-button.d.ts
|
|
514
534
|
/**
|
|
@@ -517,7 +537,7 @@ declare function DocumentToolbar(props: DocumentToolbarProps): react_jsx_runtime
|
|
|
517
537
|
* This component provides the default toolbar button styling and disabled-state
|
|
518
538
|
* behavior while accepting standard `button` props.
|
|
519
539
|
*/
|
|
520
|
-
declare function ToolbarButton(props: ComponentProps<"button">):
|
|
540
|
+
export declare function ToolbarButton(props: ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
521
541
|
/**
|
|
522
542
|
* Toolbar control for undoing the latest document revision.
|
|
523
543
|
*
|
|
@@ -525,7 +545,7 @@ declare function ToolbarButton(props: ComponentProps<"button">): react_jsx_runti
|
|
|
525
545
|
* Provide `children` to replace the default icon, or `onClick` to override the
|
|
526
546
|
* default undo behavior.
|
|
527
547
|
*/
|
|
528
|
-
declare function ToolbarUndoButton(props: ToolbarButtonProps):
|
|
548
|
+
export declare function ToolbarUndoButton(props: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
529
549
|
/**
|
|
530
550
|
* Toolbar control for redoing the latest undone document revision.
|
|
531
551
|
*
|
|
@@ -533,36 +553,37 @@ declare function ToolbarUndoButton(props: ToolbarButtonProps): react_jsx_runtime
|
|
|
533
553
|
* Provide `children` to replace the default icon, or `onClick` to override the
|
|
534
554
|
* default redo behavior.
|
|
535
555
|
*/
|
|
536
|
-
declare function ToolbarRedoButton(props: ToolbarButtonProps):
|
|
556
|
+
export declare function ToolbarRedoButton(props: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
537
557
|
/**
|
|
538
558
|
* Toolbar control for downloading the current document.
|
|
539
559
|
*
|
|
540
560
|
* Provide `children` to replace the default label, or `onClick` to override the
|
|
541
561
|
* default download behavior.
|
|
542
562
|
*/
|
|
543
|
-
declare function ToolbarDownloadButton(props: ToolbarButtonProps):
|
|
563
|
+
export declare function ToolbarDownloadButton(props: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
544
564
|
/**
|
|
545
565
|
* Toolbar control for opening the current document in Switchboard.
|
|
546
566
|
*
|
|
547
567
|
* Provide `children` to replace the default icon, or `onClick` to override the
|
|
548
568
|
* default behavior.
|
|
549
569
|
*/
|
|
550
|
-
declare function ToolbarSwitchboardButton(props: ToolbarButtonProps):
|
|
570
|
+
export declare function ToolbarSwitchboardButton(props: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
551
571
|
/**
|
|
552
572
|
* Toolbar control for showing the current document's revision history.
|
|
553
573
|
*
|
|
554
574
|
* Provide `children` to replace the default icon, or `onClick` to override the
|
|
555
575
|
* default revision-history behavior.
|
|
556
576
|
*/
|
|
557
|
-
declare function ToolbarHistoryButton(props: ToolbarButtonProps):
|
|
577
|
+
export declare function ToolbarHistoryButton(props: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
558
578
|
/**
|
|
559
579
|
* Toolbar control for closing the current document view.
|
|
560
580
|
*
|
|
561
|
-
* By default, this
|
|
581
|
+
* By default, this goes back when the app's history allows, else it selects the
|
|
582
|
+
* current document's parent folder. Provide
|
|
562
583
|
* `children` to replace the default icon, or `onClick` to override the default
|
|
563
584
|
* close behavior.
|
|
564
585
|
*/
|
|
565
|
-
declare function ToolbarCloseButton(props: ToolbarButtonProps):
|
|
586
|
+
export declare function ToolbarCloseButton(props: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
566
587
|
//#endregion
|
|
567
588
|
//#region src/connect/components/document-toolbar/toolbar-input.d.ts
|
|
568
589
|
/**
|
|
@@ -571,7 +592,7 @@ declare function ToolbarCloseButton(props: ToolbarButtonProps): react_jsx_runtim
|
|
|
571
592
|
* This wraps `NodeInput` with toolbar-specific text styling. Use it for inline
|
|
572
593
|
* toolbar editing flows where the user can submit a value or cancel editing.
|
|
573
594
|
*/
|
|
574
|
-
declare function ToolbarInput(props: {
|
|
595
|
+
export declare function ToolbarInput(props: {
|
|
575
596
|
/**
|
|
576
597
|
* Initial value to show in the input.
|
|
577
598
|
*/
|
|
@@ -592,7 +613,7 @@ declare function ToolbarInput(props: {
|
|
|
592
613
|
* Called when the user cancels editing.
|
|
593
614
|
*/
|
|
594
615
|
onCancel: () => void;
|
|
595
|
-
}):
|
|
616
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
596
617
|
//#endregion
|
|
597
618
|
//#region src/connect/components/document-toolbar/toolbar-name.d.ts
|
|
598
619
|
/**
|
|
@@ -602,14 +623,29 @@ declare function ToolbarInput(props: {
|
|
|
602
623
|
* When clicked, it switches to an inline input. Submitting the input renames
|
|
603
624
|
* both the node and the corresponding drive node entry.
|
|
604
625
|
*/
|
|
605
|
-
declare function ToolbarName(props: {
|
|
626
|
+
export declare function ToolbarName(props: {
|
|
606
627
|
document?: PHDocument | undefined;
|
|
607
628
|
inputClassName?: string;
|
|
608
629
|
titleClassName?: string;
|
|
609
|
-
}):
|
|
630
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
631
|
+
//#endregion
|
|
632
|
+
//#region src/connect/components/document-toolbar/use-document-undo-redo.d.ts
|
|
633
|
+
/**
|
|
634
|
+
* Undo and redo of a base-reducer 3 document through the reactor client, so
|
|
635
|
+
* the author signs the RETRACT it submits. Availability is read when the
|
|
636
|
+
* global or document revision changes, and presses run one at a time.
|
|
637
|
+
* Without a client the controls are disabled. Returns undefined below
|
|
638
|
+
* base-reducer 3, where the caller dispatches UNDO and REDO itself.
|
|
639
|
+
*/
|
|
640
|
+
export declare function useBaseReducer3UndoRedo(document: PHDocument | undefined): {
|
|
641
|
+
canUndo: boolean;
|
|
642
|
+
canRedo: boolean;
|
|
643
|
+
undo: () => void;
|
|
644
|
+
redo: () => void;
|
|
645
|
+
} | undefined;
|
|
610
646
|
//#endregion
|
|
611
647
|
//#region src/connect/components/drive-auth-gate/drive-auth-gate.d.ts
|
|
612
|
-
interface DriveAuthGateProps {
|
|
648
|
+
export interface DriveAuthGateProps {
|
|
613
649
|
/** Visual state — `"login"` (anonymous) or `"unauthorized"` (already signed in, not the owner). Defaults to `"login"`. */
|
|
614
650
|
readonly mode?: "login" | "unauthorized";
|
|
615
651
|
/** Opens the login flow (e.g. `showPHModal({ type: "login" })`); the login methods live in that modal, not here. */
|
|
@@ -620,19 +656,16 @@ interface DriveAuthGateProps {
|
|
|
620
656
|
readonly onClose?: () => void;
|
|
621
657
|
readonly className?: string;
|
|
622
658
|
}
|
|
623
|
-
declare function DriveAuthGate(props: DriveAuthGateProps):
|
|
659
|
+
export declare function DriveAuthGate(props: DriveAuthGateProps): import("react/jsx-runtime").JSX.Element;
|
|
624
660
|
//#endregion
|
|
625
661
|
//#region src/connect/components/drop-zone/drop-zone-wrapper.d.ts
|
|
626
|
-
declare function DropZoneWrapper({
|
|
627
|
-
children,
|
|
628
|
-
...props
|
|
629
|
-
}: {
|
|
662
|
+
export declare function DropZoneWrapper({ children, ...props }: {
|
|
630
663
|
children: React.ReactNode;
|
|
631
|
-
} & ComponentPropsWithoutRef<"div">):
|
|
664
|
+
} & ComponentPropsWithoutRef<"div">): import("react/jsx-runtime").JSX.Element;
|
|
632
665
|
//#endregion
|
|
633
666
|
//#region src/connect/components/upload-file-item/upload-file-item.d.ts
|
|
634
|
-
type UploadFileItemStatus = "success" | "failed" | "pending" | "uploading" | "conflict" | "unsupported-document-type";
|
|
635
|
-
type UploadFileItemProps = ComponentPropsWithoutRef<"div"> & {
|
|
667
|
+
export type UploadFileItemStatus = "success" | "failed" | "pending" | "uploading" | "conflict" | "unsupported-document-type";
|
|
668
|
+
export type UploadFileItemProps = ComponentPropsWithoutRef<"div"> & {
|
|
636
669
|
readonly fileName: string;
|
|
637
670
|
readonly fileSize: string;
|
|
638
671
|
readonly status: UploadFileItemStatus;
|
|
@@ -643,7 +676,7 @@ type UploadFileItemProps = ComponentPropsWithoutRef<"div"> & {
|
|
|
643
676
|
readonly onOpenDocument?: () => void;
|
|
644
677
|
readonly onFindResolution?: () => void;
|
|
645
678
|
};
|
|
646
|
-
declare const UploadFileItem: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
679
|
+
export declare const UploadFileItem: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
647
680
|
readonly fileName: string;
|
|
648
681
|
readonly fileSize: string;
|
|
649
682
|
readonly status: UploadFileItemStatus;
|
|
@@ -653,10 +686,10 @@ declare const UploadFileItem: react.ForwardRefExoticComponent<Omit<react.Detaile
|
|
|
653
686
|
readonly onClose?: () => void;
|
|
654
687
|
readonly onOpenDocument?: () => void;
|
|
655
688
|
readonly onFindResolution?: () => void;
|
|
656
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
689
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
657
690
|
//#endregion
|
|
658
691
|
//#region src/connect/components/drop-zone/utils.d.ts
|
|
659
|
-
type UploadTracker = {
|
|
692
|
+
export type UploadTracker = {
|
|
660
693
|
id: string;
|
|
661
694
|
fileName: string;
|
|
662
695
|
fileSize: string;
|
|
@@ -669,14 +702,14 @@ type UploadTracker = {
|
|
|
669
702
|
parentNode?: Node;
|
|
670
703
|
duplicateType?: "id" | "name";
|
|
671
704
|
};
|
|
672
|
-
type OnAddFileWithProgress = (file: File, parent: Node | undefined, onProgress?: (progress: FileUploadProgress) => void, resolveConflict?: ConflictResolution) => Promise<Node | undefined> | Node | undefined;
|
|
673
|
-
declare function generateId(): string;
|
|
674
|
-
declare function formatFileSize(bytes: number): string;
|
|
675
|
-
declare function mapProgressStageToStatus(stage: FileUploadProgress["stage"]): UploadTracker["status"];
|
|
676
|
-
declare function mapUploadsToFileItems(uploadsArray: (UploadTracker | undefined)[], removeUpload: (uploadId: string) => void, setSelectedNodeFn?: (nodeOrNodeSlug: Node | string | undefined) => void, onConflictResolution?: (uploadId: string) => void): UploadFileItemProps[];
|
|
705
|
+
export type OnAddFileWithProgress = (file: File, parent: Node | undefined, onProgress?: (progress: FileUploadProgress) => void, resolveConflict?: ConflictResolution) => Promise<Node | undefined> | Node | undefined;
|
|
706
|
+
export declare function generateId(): string;
|
|
707
|
+
export declare function formatFileSize(bytes: number): string;
|
|
708
|
+
export declare function mapProgressStageToStatus(stage: FileUploadProgress["stage"]): UploadTracker["status"];
|
|
709
|
+
export declare function mapUploadsToFileItems(uploadsArray: (UploadTracker | undefined)[], removeUpload: (uploadId: string) => void, setSelectedNodeFn?: (nodeOrNodeSlug: Node | string | undefined) => void, onConflictResolution?: (uploadId: string) => void): UploadFileItemProps[];
|
|
677
710
|
//#endregion
|
|
678
711
|
//#region src/connect/components/drop-zone/drop-zone.d.ts
|
|
679
|
-
type DropZoneProps = ComponentPropsWithoutRef<"div"> & {
|
|
712
|
+
export type DropZoneProps = ComponentPropsWithoutRef<"div"> & {
|
|
680
713
|
readonly title?: string;
|
|
681
714
|
readonly subtitle?: string;
|
|
682
715
|
readonly node?: Node;
|
|
@@ -687,10 +720,10 @@ type DropZoneProps = ComponentPropsWithoutRef<"div"> & {
|
|
|
687
720
|
readonly driveId?: string;
|
|
688
721
|
readonly acceptedFileExtensions?: string[];
|
|
689
722
|
};
|
|
690
|
-
declare function DropZone(props: DropZoneProps):
|
|
723
|
+
export declare function DropZone(props: DropZoneProps): import("react/jsx-runtime").JSX.Element;
|
|
691
724
|
//#endregion
|
|
692
725
|
//#region src/connect/components/drop-zone/upload-file-list-container.d.ts
|
|
693
|
-
type UploadFileListContainerProps = ComponentPropsWithoutRef<"div"> & {
|
|
726
|
+
export type UploadFileListContainerProps = ComponentPropsWithoutRef<"div"> & {
|
|
694
727
|
readonly uploadsArray: (UploadTracker | undefined)[];
|
|
695
728
|
readonly uploadsCount: number;
|
|
696
729
|
readonly removeUpload: (uploadId: string) => void;
|
|
@@ -699,16 +732,16 @@ type UploadFileListContainerProps = ComponentPropsWithoutRef<"div"> & {
|
|
|
699
732
|
readonly onClose?: () => void;
|
|
700
733
|
readonly onConflictResolution?: (uploadId: string) => void;
|
|
701
734
|
};
|
|
702
|
-
declare function UploadFileListContainer(props: UploadFileListContainerProps):
|
|
735
|
+
export declare function UploadFileListContainer(props: UploadFileListContainerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
703
736
|
//#endregion
|
|
704
737
|
//#region src/connect/components/dropdown-menu/dropdown-menu.d.ts
|
|
705
|
-
type ConnectDropdownMenuItem<TItemId extends string> = {
|
|
738
|
+
export type ConnectDropdownMenuItem<TItemId extends string> = {
|
|
706
739
|
id: TItemId;
|
|
707
740
|
label: ReactNode;
|
|
708
741
|
icon?: React.JSX.Element;
|
|
709
742
|
className?: string;
|
|
710
743
|
};
|
|
711
|
-
interface ConnectDropdownMenuProps<TItemId extends string> {
|
|
744
|
+
export interface ConnectDropdownMenuProps<TItemId extends string> {
|
|
712
745
|
readonly children: ReactNode;
|
|
713
746
|
readonly items: ConnectDropdownMenuItem<TItemId>[];
|
|
714
747
|
readonly open?: boolean;
|
|
@@ -716,58 +749,62 @@ interface ConnectDropdownMenuProps<TItemId extends string> {
|
|
|
716
749
|
readonly onOpenChange?: (open: boolean) => void;
|
|
717
750
|
readonly menuClassName?: string;
|
|
718
751
|
}
|
|
719
|
-
declare function ConnectDropdownMenu<TItemId extends string>(props: ConnectDropdownMenuProps<TItemId>):
|
|
752
|
+
export declare function ConnectDropdownMenu<TItemId extends string>(props: ConnectDropdownMenuProps<TItemId>): import("react/jsx-runtime").JSX.Element;
|
|
720
753
|
//#endregion
|
|
721
754
|
//#region src/connect/components/editor-action-buttons/editor-action-buttons.d.ts
|
|
722
|
-
type EditorActionButtonsProps = {
|
|
755
|
+
export type EditorActionButtonsProps = {
|
|
723
756
|
readonly onSwitchboardLinkClick?: (() => void) | undefined;
|
|
724
757
|
readonly onDownloadDocument?: (() => void) | undefined;
|
|
725
758
|
readonly onClose: () => void;
|
|
726
759
|
readonly onShowRevisionHistory?: (() => void) | undefined;
|
|
727
760
|
readonly onShowTimeline?: (() => void) | undefined;
|
|
728
761
|
};
|
|
729
|
-
declare function EditorActionButtons(props: EditorActionButtonsProps):
|
|
762
|
+
export declare function EditorActionButtons(props: EditorActionButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
730
763
|
//#endregion
|
|
731
764
|
//#region src/connect/components/editor-undo-redo-buttons/editor-undo-redo-buttons.d.ts
|
|
732
|
-
type EditorUndoRedoButtonsProps = {
|
|
765
|
+
export type EditorUndoRedoButtonsProps = {
|
|
733
766
|
readonly canUndo: boolean;
|
|
734
767
|
readonly canRedo: boolean;
|
|
735
768
|
readonly undo: () => void;
|
|
736
769
|
readonly redo: () => void;
|
|
737
770
|
};
|
|
738
|
-
declare function EditorUndoRedoButtons(props: EditorUndoRedoButtonsProps):
|
|
771
|
+
export declare function EditorUndoRedoButtons(props: EditorUndoRedoButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
739
772
|
//#endregion
|
|
740
773
|
//#region src/connect/components/ens-avatar/ens-avatar.d.ts
|
|
741
|
-
type Props$
|
|
774
|
+
type Props$8 = {
|
|
742
775
|
readonly address: `0x${string}`;
|
|
743
776
|
readonly chainId?: number;
|
|
744
777
|
readonly avatarUrl?: string;
|
|
745
778
|
readonly size?: CSSProperties["width"];
|
|
746
779
|
};
|
|
747
|
-
declare function ENSAvatar(props: Props$
|
|
780
|
+
export declare function ENSAvatar(props: Props$8): import("react/jsx-runtime").JSX.Element;
|
|
748
781
|
//#endregion
|
|
749
782
|
//#region src/connect/components/file-item/file-item.d.ts
|
|
750
|
-
type Props$
|
|
783
|
+
type Props$7 = {
|
|
751
784
|
fileNode: FileNode;
|
|
752
785
|
className?: string;
|
|
753
786
|
customDocumentIconSrc?: string;
|
|
787
|
+
/** The document's link; the navigation's href for it by default. */
|
|
788
|
+
href?: string;
|
|
754
789
|
};
|
|
755
|
-
declare function FileItem(props: Props$
|
|
790
|
+
export declare function FileItem(props: Props$7): import("react/jsx-runtime").JSX.Element;
|
|
756
791
|
//#endregion
|
|
757
792
|
//#region src/connect/components/folder-item/folder-item.d.ts
|
|
758
|
-
declare function FolderItem(props: {
|
|
793
|
+
export declare function FolderItem(props: {
|
|
759
794
|
folderNode: FolderNode;
|
|
760
795
|
className?: string;
|
|
761
|
-
|
|
796
|
+
/** The folder's link; the navigation's href for it by default. */
|
|
797
|
+
href?: string;
|
|
798
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
762
799
|
//#endregion
|
|
763
800
|
//#region src/connect/components/footer/footer-link.d.ts
|
|
764
801
|
type FooterLinkProps<E extends React.ElementType> = {
|
|
765
802
|
readonly as?: E;
|
|
766
803
|
} & React.ComponentPropsWithRef<E>;
|
|
767
|
-
declare function FooterLink<E extends React.ElementType = "a">(props: FooterLinkProps<E>):
|
|
804
|
+
export declare function FooterLink<E extends React.ElementType = "a">(props: FooterLinkProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
768
805
|
//#endregion
|
|
769
806
|
//#region src/connect/components/footer/footer.d.ts
|
|
770
|
-
declare const Footer: React.FC<React.HTMLAttributes<HTMLElement>>;
|
|
807
|
+
export declare const Footer: React.FC<React.HTMLAttributes<HTMLElement>>;
|
|
771
808
|
//#endregion
|
|
772
809
|
//#region src/connect/components/form-input/form-input.d.ts
|
|
773
810
|
type InputProps = ComponentPropsWithRef<"input">;
|
|
@@ -782,18 +819,21 @@ type FormInputProps = Omit<InputProps, "className"> & {
|
|
|
782
819
|
readonly errorMessageClassName?: string;
|
|
783
820
|
readonly hideErrors?: boolean;
|
|
784
821
|
};
|
|
785
|
-
declare const FormInput: react.ForwardRefExoticComponent<Omit<FormInputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
822
|
+
export declare const FormInput: import("react").ForwardRefExoticComponent<Omit<FormInputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
786
823
|
//#endregion
|
|
787
|
-
//#region src/connect/components/form/add-local-drive-form.d.ts
|
|
824
|
+
//#region src/connect/components/form/add-local-drive-form.impl.d.ts
|
|
788
825
|
type AddLocalDriveFormProps = {
|
|
789
826
|
readonly onSubmit: CreateDriveFormSubmitHandler;
|
|
790
827
|
readonly onCancel: () => void;
|
|
791
828
|
readonly appOptions: AppOptions[];
|
|
792
829
|
};
|
|
793
830
|
type CreateDriveFormSubmitHandler = SubmitHandler<AppOptions>;
|
|
794
|
-
declare function AddLocalDriveForm(props: AddLocalDriveFormProps):
|
|
831
|
+
declare function AddLocalDriveForm$1(props: AddLocalDriveFormProps): import("react/jsx-runtime").JSX.Element;
|
|
795
832
|
//#endregion
|
|
796
|
-
//#region src/connect/components/form/add-
|
|
833
|
+
//#region src/connect/components/form/add-local-drive-form.d.ts
|
|
834
|
+
export declare const AddLocalDriveForm: typeof AddLocalDriveForm$1;
|
|
835
|
+
//#endregion
|
|
836
|
+
//#region src/connect/components/form/add-remote-drive-form.impl.d.ts
|
|
797
837
|
type RemoteDriveDetails = {
|
|
798
838
|
id: string;
|
|
799
839
|
name: string;
|
|
@@ -813,24 +853,84 @@ type AddPublicDriveFormProps = {
|
|
|
813
853
|
name: string;
|
|
814
854
|
}>;
|
|
815
855
|
};
|
|
816
|
-
declare function AddRemoteDriveForm(props: AddPublicDriveFormProps):
|
|
856
|
+
declare function AddRemoteDriveForm$1(props: AddPublicDriveFormProps): import("react/jsx-runtime").JSX.Element;
|
|
857
|
+
//#endregion
|
|
858
|
+
//#region src/connect/components/form/add-remote-drive-form.d.ts
|
|
859
|
+
export declare const AddRemoteDriveForm: typeof AddRemoteDriveForm$1;
|
|
860
|
+
//#endregion
|
|
861
|
+
//#region src/connect/components/formatted-json-viewer.impl.d.ts
|
|
862
|
+
declare function FormattedJsonViewer$1(props: JsonViewProps<object>): import("react/jsx-runtime").JSX.Element;
|
|
817
863
|
//#endregion
|
|
818
864
|
//#region src/connect/components/formatted-json-viewer.d.ts
|
|
819
|
-
declare
|
|
865
|
+
export declare const FormattedJsonViewer: typeof FormattedJsonViewer$1;
|
|
866
|
+
//#endregion
|
|
867
|
+
//#region src/connect/components/branding/background-layers.d.ts
|
|
868
|
+
/**
|
|
869
|
+
* A decorated pane: the configured page colour with the background's layers
|
|
870
|
+
* painted over it, in order, and the children above them all. Each layer is
|
|
871
|
+
* placed by the shared `layerStyle`, the same declarations the desktop
|
|
872
|
+
* loading page emits as static CSS, so a background configured once looks
|
|
873
|
+
* the same in both hosts. Images come resolved (data URIs or URLs); a
|
|
874
|
+
* light/dark pair follows the `.dark` theme class, not the OS scheme.
|
|
875
|
+
* Without a background the pane is the theme's page colour and nothing more.
|
|
876
|
+
*/
|
|
877
|
+
export declare function BackgroundLayers(props: PropsWithChildren<{
|
|
878
|
+
background: PHBackground | null | undefined;
|
|
879
|
+
className?: string;
|
|
880
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
881
|
+
//#endregion
|
|
882
|
+
//#region src/connect/components/branding/connect-branding.d.ts
|
|
883
|
+
/**
|
|
884
|
+
* Connect's branding as the components see it: the host app provides it once
|
|
885
|
+
* at its root (images already resolved to data URIs) and the components read
|
|
886
|
+
* it from here instead of reaching into configuration. `icons` are the drive
|
|
887
|
+
* explorer's, which the generic plugin owns; `appName`, `icon` and
|
|
888
|
+
* `homeBackground` are Connect's identity (`connect.branding`). Without a
|
|
889
|
+
* provider every built-in icon renders.
|
|
890
|
+
*/
|
|
891
|
+
export type ConnectExplorerIcons = {
|
|
892
|
+
/** Local drives without an icon of their own. */
|
|
893
|
+
localDrive?: string | null;
|
|
894
|
+
/** Remote drives without an icon of their own. */
|
|
895
|
+
remoteDrive?: string | null;
|
|
896
|
+
folder?: string | null;
|
|
897
|
+
/** Documents whose type has no icon in `documents`. */
|
|
898
|
+
document?: string | null;
|
|
899
|
+
/** Per document type, e.g. "acme/invoice". */
|
|
900
|
+
documents?: Record<string, string> | null;
|
|
901
|
+
};
|
|
902
|
+
export type ConnectBranding = {
|
|
903
|
+
appName?: string | null;
|
|
904
|
+
/** The in-app logo (the 64 px app icon). */
|
|
905
|
+
icon?: string | null;
|
|
906
|
+
/** The home screen's background (images resolved). */
|
|
907
|
+
homeBackground?: PHBackground | null;
|
|
908
|
+
icons?: ConnectExplorerIcons | null;
|
|
909
|
+
};
|
|
910
|
+
export declare function ConnectBrandingProvider(props: PropsWithChildren<{
|
|
911
|
+
branding: ConnectBranding | null | undefined;
|
|
912
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
913
|
+
/** The provided branding; `{}` (built-in look) without a provider. */
|
|
914
|
+
export declare function useConnectBranding(): ConnectBranding;
|
|
915
|
+
/** The icon for a document of `documentType`: the explorer's icon for that
|
|
916
|
+
* type, else its default document icon, else undefined (the icon the package
|
|
917
|
+
* ships, or the built-in one). */
|
|
918
|
+
export declare function brandedDocumentIcon(branding: ConnectBranding, documentType: string): string | undefined;
|
|
820
919
|
//#endregion
|
|
821
920
|
//#region src/connect/components/home-screen/home-background-image.d.ts
|
|
822
921
|
type HomeBackgroundImageProps = {
|
|
823
922
|
src?: string;
|
|
824
923
|
};
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
924
|
+
/** The default home-screen gradient. A custom `src` is kept for callers that
|
|
925
|
+
* still pass one, sized to its box; HomeScreen itself renders custom images
|
|
926
|
+
* as a hero below the drive tiles instead. */
|
|
927
|
+
export declare const HomeBackgroundImage: ({ src }?: HomeBackgroundImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
828
928
|
//#endregion
|
|
829
929
|
//#region src/connect/components/home-screen/home-screen-add-drive-item.d.ts
|
|
830
930
|
type HomeScreenAddDriveItemProps = {
|
|
831
931
|
readonly containerClassName?: string;
|
|
832
932
|
};
|
|
833
|
-
declare const HomeScreenAddDriveItem: (props: HomeScreenAddDriveItemProps) =>
|
|
933
|
+
export declare const HomeScreenAddDriveItem: (props: HomeScreenAddDriveItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
834
934
|
//#endregion
|
|
835
935
|
//#region src/connect/components/home-screen/home-screen-item.d.ts
|
|
836
936
|
type HomeScreenItemProps = {
|
|
@@ -839,51 +939,70 @@ type HomeScreenItemProps = {
|
|
|
839
939
|
readonly description?: string;
|
|
840
940
|
readonly containerClassName?: string;
|
|
841
941
|
readonly shareable?: boolean;
|
|
842
|
-
|
|
942
|
+
/** Renders a real link; `onClick` can still take plain clicks in-app. */
|
|
943
|
+
readonly href?: string;
|
|
944
|
+
/** Marks the link to what shows now. */
|
|
945
|
+
readonly "aria-current"?: "page";
|
|
946
|
+
onClick?(this: void, event: React.MouseEvent<HTMLElement>): void;
|
|
947
|
+
/** Called on hover or touch, before a likely click. */
|
|
948
|
+
readonly onPreload?: () => void;
|
|
843
949
|
};
|
|
844
|
-
declare const HomeScreenItem: (props: HomeScreenItemProps) =>
|
|
950
|
+
export declare const HomeScreenItem: (props: HomeScreenItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
845
951
|
//#endregion
|
|
846
952
|
//#region src/connect/components/home-screen/home-screen.d.ts
|
|
847
953
|
type HomeScreenProps = {
|
|
848
954
|
readonly children: React.ReactNode;
|
|
849
955
|
readonly containerClassName?: string;
|
|
850
|
-
|
|
956
|
+
/** The project's background (`connect.branding.homeBackground`, images
|
|
957
|
+
* resolved); null or undefined keeps the bundled gradient. */
|
|
958
|
+
readonly homeBackground?: PHBackground | null;
|
|
851
959
|
};
|
|
852
|
-
declare const HomeScreen: (props: HomeScreenProps) =>
|
|
960
|
+
export declare const HomeScreen: (props: HomeScreenProps) => import("react/jsx-runtime").JSX.Element;
|
|
853
961
|
//#endregion
|
|
854
962
|
//#region src/connect/components/integrity-inspector/integrity-inspector.d.ts
|
|
855
|
-
type IntegrityInspectorProps = {
|
|
963
|
+
export type IntegrityInspectorProps = {
|
|
856
964
|
readonly onValidate: (documentId: string, branch?: string) => Promise<ValidationResult>;
|
|
857
965
|
readonly onRebuildKeyframes: (documentId: string, branch?: string) => Promise<RebuildResult>;
|
|
858
966
|
readonly onRebuildSnapshots: (documentId: string, branch?: string) => Promise<RebuildResult>;
|
|
859
967
|
};
|
|
860
|
-
declare function IntegrityInspector({
|
|
861
|
-
onValidate,
|
|
862
|
-
onRebuildKeyframes,
|
|
863
|
-
onRebuildSnapshots
|
|
864
|
-
}: IntegrityInspectorProps): react_jsx_runtime0.JSX.Element;
|
|
968
|
+
export declare function IntegrityInspector({ onValidate, onRebuildKeyframes, onRebuildSnapshots }: IntegrityInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
865
969
|
//#endregion
|
|
866
970
|
//#region src/connect/components/loading-screen/loading-screen.d.ts
|
|
867
|
-
interface LoadingScreenProps {
|
|
971
|
+
export interface LoadingScreenProps {
|
|
868
972
|
showLoadingScreen: boolean;
|
|
869
973
|
loadingComponent?: React.ReactNode;
|
|
870
974
|
size?: number;
|
|
871
975
|
className?: string;
|
|
872
976
|
}
|
|
873
|
-
declare const LoadingScreen: React.FC<LoadingScreenProps>;
|
|
977
|
+
export declare const LoadingScreen: React.FC<LoadingScreenProps>;
|
|
874
978
|
//#endregion
|
|
875
979
|
//#region src/connect/components/logo-animation.d.ts
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
980
|
+
/** A project's loading image, declared by the build as
|
|
981
|
+
* `<meta name="ph-loader" content="<file>" data-animation data-size>`
|
|
982
|
+
* (powerhouse.config.json `icons.loader`). */
|
|
983
|
+
export type ProjectLoader = {
|
|
984
|
+
src: string;
|
|
985
|
+
animation: "pulse" | "spin" | "none";
|
|
986
|
+
size: number;
|
|
987
|
+
};
|
|
988
|
+
/** The page's project loader, or null when Connect's logo stays. Read once:
|
|
989
|
+
* the meta tag is static in index.html. */
|
|
990
|
+
export declare function getProjectLoader(): ProjectLoader | null;
|
|
991
|
+
/** The project's loading image with its motion. */
|
|
992
|
+
export declare function ProjectLoaderImage({ loader, className }: {
|
|
993
|
+
loader: ProjectLoader;
|
|
994
|
+
className?: string;
|
|
995
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
996
|
+
/** Connect's loading animation: the project's loader when one is
|
|
997
|
+
* configured, else the animated Powerhouse logo. */
|
|
998
|
+
export declare function LogoAnimation({ size, className }: {
|
|
881
999
|
className?: string | undefined;
|
|
882
|
-
|
|
1000
|
+
size?: number | undefined;
|
|
1001
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
883
1002
|
//#endregion
|
|
884
1003
|
//#region src/connect/components/modal/add-drive-modal/add-drive-modal.d.ts
|
|
885
1004
|
type ModalProps$5 = ComponentPropsWithoutRef<typeof Modal>;
|
|
886
|
-
type AddDriveModalProps = {
|
|
1005
|
+
export type AddDriveModalProps = {
|
|
887
1006
|
readonly open: boolean;
|
|
888
1007
|
readonly onOpenChange: (open: boolean) => void;
|
|
889
1008
|
readonly onAddRemoteDrive: (data: AddRemoteDriveInput) => void;
|
|
@@ -896,11 +1015,11 @@ type AddDriveModalProps = {
|
|
|
896
1015
|
}>;
|
|
897
1016
|
readonly appOptions: AppOptions[];
|
|
898
1017
|
};
|
|
899
|
-
declare function AddDriveModal(props: AddDriveModalProps):
|
|
1018
|
+
export declare function AddDriveModal(props: AddDriveModalProps): import("react/jsx-runtime").JSX.Element;
|
|
900
1019
|
//#endregion
|
|
901
1020
|
//#region src/connect/components/modal/confirmation-modal.d.ts
|
|
902
1021
|
type ModalProps$4 = ComponentPropsWithoutRef<typeof Modal>;
|
|
903
|
-
type ConfirmationModalProps = {
|
|
1022
|
+
export type ConfirmationModalProps = {
|
|
904
1023
|
readonly open?: boolean;
|
|
905
1024
|
readonly onOpenChange?: (open: boolean) => void;
|
|
906
1025
|
readonly header: ReactNode;
|
|
@@ -913,22 +1032,30 @@ type ConfirmationModalProps = {
|
|
|
913
1032
|
readonly overlayProps?: ModalProps$4["overlayProps"];
|
|
914
1033
|
readonly contentProps?: ModalProps$4["contentProps"];
|
|
915
1034
|
};
|
|
916
|
-
declare function ConnectConfirmationModal(props: ConfirmationModalProps):
|
|
1035
|
+
export declare function ConnectConfirmationModal(props: ConfirmationModalProps): import("react/jsx-runtime").JSX.Element;
|
|
917
1036
|
//#endregion
|
|
918
1037
|
//#region src/connect/components/modal/create-document-modal.d.ts
|
|
919
|
-
type CreateDocumentModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
1038
|
+
export type CreateDocumentModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
920
1039
|
readonly onContinue: (nodeName: string) => void;
|
|
1040
|
+
/** The drives to pick from when none is given; an empty list asks for one. */
|
|
1041
|
+
readonly drives?: readonly {
|
|
1042
|
+
id: string;
|
|
1043
|
+
name: string;
|
|
1044
|
+
}[];
|
|
1045
|
+
readonly driveId?: string;
|
|
1046
|
+
readonly onDriveChange?: (driveId: string) => void;
|
|
1047
|
+
readonly onAddDrive?: () => void;
|
|
921
1048
|
};
|
|
922
|
-
declare function CreateDocumentModal(props: CreateDocumentModalProps):
|
|
1049
|
+
export declare function CreateDocumentModal(props: CreateDocumentModalProps): import("react/jsx-runtime").JSX.Element;
|
|
923
1050
|
//#endregion
|
|
924
1051
|
//#region src/connect/components/modal/create-document-with-type-modal.d.ts
|
|
925
|
-
type DocumentTypeOption = {
|
|
1052
|
+
export type DocumentTypeOption = {
|
|
926
1053
|
readonly documentType: string;
|
|
927
1054
|
readonly name: string;
|
|
928
1055
|
readonly version?: number;
|
|
929
1056
|
readonly description?: string;
|
|
930
1057
|
};
|
|
931
|
-
type CreateDocumentWithTypeModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
1058
|
+
export type CreateDocumentWithTypeModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
932
1059
|
readonly documentTypes: readonly DocumentTypeOption[];
|
|
933
1060
|
readonly onCreate: (input: {
|
|
934
1061
|
name: string;
|
|
@@ -937,25 +1064,25 @@ type CreateDocumentWithTypeModalProps = ComponentPropsWithoutRef<typeof Modal> &
|
|
|
937
1064
|
}) => void;
|
|
938
1065
|
readonly onTypeSelected?: (documentType: string) => void;
|
|
939
1066
|
};
|
|
940
|
-
declare function CreateDocumentWithTypeModal(props: CreateDocumentWithTypeModalProps):
|
|
1067
|
+
export declare function CreateDocumentWithTypeModal(props: CreateDocumentWithTypeModalProps): import("react/jsx-runtime").JSX.Element;
|
|
941
1068
|
//#endregion
|
|
942
1069
|
//#region src/connect/components/modal/delete-drive-modal.d.ts
|
|
943
|
-
interface ConnectDeleteDriveModalProps extends ConfirmationModalProps {
|
|
1070
|
+
export interface ConnectDeleteDriveModalProps extends ConfirmationModalProps {
|
|
944
1071
|
readonly inputPlaceholder: string;
|
|
945
1072
|
readonly driveName: string;
|
|
946
1073
|
}
|
|
947
|
-
declare const ConnectDeleteDriveModal: React.FC<ConnectDeleteDriveModalProps>;
|
|
1074
|
+
export declare const ConnectDeleteDriveModal: React.FC<ConnectDeleteDriveModalProps>;
|
|
948
1075
|
//#endregion
|
|
949
1076
|
//#region src/connect/components/modal/delete-item-modal.d.ts
|
|
950
|
-
interface ConnectDeleteItemModalProps extends Omit<ConfirmationModalProps, "onContinue" | "continueLabel"> {
|
|
1077
|
+
export interface ConnectDeleteItemModalProps extends Omit<ConfirmationModalProps, "onContinue" | "continueLabel"> {
|
|
951
1078
|
readonly onDelete: () => void;
|
|
952
1079
|
readonly deleteLabel: string;
|
|
953
1080
|
}
|
|
954
|
-
declare function ConnectDeleteItemModal(props: ConnectDeleteItemModalProps):
|
|
1081
|
+
export declare function ConnectDeleteItemModal(props: ConnectDeleteItemModalProps): import("react/jsx-runtime").JSX.Element;
|
|
955
1082
|
//#endregion
|
|
956
1083
|
//#region src/connect/components/modal/drive-settings-modal.d.ts
|
|
957
1084
|
type ModalProps$3 = ComponentPropsWithoutRef<typeof Modal>;
|
|
958
|
-
type DriveSettingsModalProps = {
|
|
1085
|
+
export type DriveSettingsModalProps = {
|
|
959
1086
|
drive: DocumentDriveDocument;
|
|
960
1087
|
sharingType: SharingType;
|
|
961
1088
|
availableOffline: boolean;
|
|
@@ -968,11 +1095,13 @@ type DriveSettingsModalProps = {
|
|
|
968
1095
|
onChangeAvailableOffline: (drive: DocumentDriveDocument, newAvailableOffline: boolean) => void;
|
|
969
1096
|
modalProps?: ModalProps$3;
|
|
970
1097
|
containerProps?: DivProps;
|
|
1098
|
+
/** Rendered in the form after the location settings. */
|
|
1099
|
+
children?: ReactNode;
|
|
971
1100
|
};
|
|
972
|
-
declare function DriveSettingsModal(props: DriveSettingsModalProps):
|
|
1101
|
+
export declare function DriveSettingsModal(props: DriveSettingsModalProps): import("react/jsx-runtime").JSX.Element;
|
|
973
1102
|
//#endregion
|
|
974
1103
|
//#region src/connect/components/processors-inspector/processors-inspector.d.ts
|
|
975
|
-
type ProcessorInfo = {
|
|
1104
|
+
export type ProcessorInfo = {
|
|
976
1105
|
processorId: string;
|
|
977
1106
|
factoryId: string;
|
|
978
1107
|
driveId: string;
|
|
@@ -982,36 +1111,29 @@ type ProcessorInfo = {
|
|
|
982
1111
|
lastError: string | undefined;
|
|
983
1112
|
lastErrorTimestamp: Date | undefined;
|
|
984
1113
|
};
|
|
985
|
-
type ProcessorsInspectorProps = {
|
|
1114
|
+
export type ProcessorsInspectorProps = {
|
|
986
1115
|
readonly getProcessors: () => Promise<ProcessorInfo[]>;
|
|
987
1116
|
readonly onRetry?: (processorId: string) => Promise<void>;
|
|
988
1117
|
};
|
|
989
|
-
declare function ProcessorsInspector({
|
|
990
|
-
getProcessors,
|
|
991
|
-
onRetry
|
|
992
|
-
}: ProcessorsInspectorProps): react_jsx_runtime0.JSX.Element;
|
|
1118
|
+
export declare function ProcessorsInspector({ getProcessors, onRetry }: ProcessorsInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
993
1119
|
//#endregion
|
|
994
1120
|
//#region src/connect/components/queue-inspector/queue-inspector.d.ts
|
|
995
|
-
type QueueState = {
|
|
1121
|
+
export type QueueState = {
|
|
996
1122
|
readonly isPaused: boolean;
|
|
997
1123
|
readonly pendingJobs: Job[];
|
|
998
1124
|
readonly executingJobs: Job[];
|
|
999
1125
|
readonly totalPending: number;
|
|
1000
1126
|
readonly totalExecuting: number;
|
|
1001
1127
|
};
|
|
1002
|
-
type QueueInspectorProps = {
|
|
1128
|
+
export type QueueInspectorProps = {
|
|
1003
1129
|
readonly getQueueState: () => Promise<QueueState>;
|
|
1004
1130
|
readonly onPause: () => Promise<void>;
|
|
1005
1131
|
readonly onResume: () => Promise<void>;
|
|
1006
1132
|
};
|
|
1007
|
-
declare function QueueInspector({
|
|
1008
|
-
getQueueState,
|
|
1009
|
-
onPause,
|
|
1010
|
-
onResume
|
|
1011
|
-
}: QueueInspectorProps): react_jsx_runtime0.JSX.Element;
|
|
1133
|
+
export declare function QueueInspector({ getQueueState, onPause, onResume }: QueueInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
1012
1134
|
//#endregion
|
|
1013
1135
|
//#region src/connect/components/remotes-inspector/remotes-inspector.d.ts
|
|
1014
|
-
type ConnectionStateSummary = {
|
|
1136
|
+
export type ConnectionStateSummary = {
|
|
1015
1137
|
state: string;
|
|
1016
1138
|
failureCount: number;
|
|
1017
1139
|
lastSuccessUtcMs: number;
|
|
@@ -1019,71 +1141,69 @@ type ConnectionStateSummary = {
|
|
|
1019
1141
|
pushBlocked: boolean;
|
|
1020
1142
|
pushFailureCount: number;
|
|
1021
1143
|
};
|
|
1022
|
-
type RemotesInspectorProps = {
|
|
1144
|
+
export type RemotesInspectorProps = {
|
|
1023
1145
|
readonly getRemotes: () => Promise<Remote[]>;
|
|
1024
1146
|
readonly removeRemote?: (name: string) => Promise<void>;
|
|
1025
1147
|
readonly addRemoteManual?: (url: string) => Promise<void>;
|
|
1026
1148
|
readonly triggerPull?: (name: string) => void;
|
|
1027
1149
|
readonly connectionStates?: ReadonlyMap<string, ConnectionStateSummary>;
|
|
1150
|
+
/** Shows each remote's manifest, what it limits and what is held from it. */
|
|
1151
|
+
readonly getAgreement?: () => IPeerAgreement;
|
|
1152
|
+
readonly getHolds?: (remoteName: string) => Promise<SyncHold[]>;
|
|
1028
1153
|
};
|
|
1029
|
-
declare function RemotesInspector({
|
|
1030
|
-
getRemotes,
|
|
1031
|
-
removeRemote,
|
|
1032
|
-
addRemoteManual,
|
|
1033
|
-
triggerPull,
|
|
1034
|
-
connectionStates
|
|
1035
|
-
}: RemotesInspectorProps): react_jsx_runtime0.JSX.Element;
|
|
1154
|
+
export declare function RemotesInspector({ getRemotes, removeRemote, addRemoteManual, triggerPull, connectionStates, getAgreement, getHolds }: RemotesInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
1036
1155
|
//#endregion
|
|
1037
1156
|
//#region src/connect/components/remotes-inspector/components/channel-inspector.d.ts
|
|
1038
|
-
type ChannelInspectorProps = {
|
|
1157
|
+
export type ChannelInspectorProps = {
|
|
1039
1158
|
readonly remoteName: string;
|
|
1040
1159
|
readonly channel: IChannel;
|
|
1041
1160
|
readonly onBack: () => void;
|
|
1042
1161
|
readonly onRefresh?: () => void;
|
|
1043
1162
|
readonly connectionState?: ConnectionStateSummary;
|
|
1044
1163
|
};
|
|
1045
|
-
declare function ChannelInspector({
|
|
1046
|
-
remoteName,
|
|
1047
|
-
channel,
|
|
1048
|
-
onBack,
|
|
1049
|
-
onRefresh,
|
|
1050
|
-
connectionState
|
|
1051
|
-
}: ChannelInspectorProps): react_jsx_runtime0.JSX.Element;
|
|
1164
|
+
export declare function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionState }: ChannelInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
1052
1165
|
//#endregion
|
|
1053
1166
|
//#region src/connect/components/remotes-inspector/components/connection-state-badge.d.ts
|
|
1054
|
-
type ConnectionStateBadgeProps = {
|
|
1167
|
+
export type ConnectionStateBadgeProps = {
|
|
1055
1168
|
readonly state: string;
|
|
1056
1169
|
readonly failureCount: number;
|
|
1057
1170
|
};
|
|
1058
|
-
declare function ConnectionStateBadge({
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1171
|
+
export declare function ConnectionStateBadge({ state, failureCount }: ConnectionStateBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
1172
|
+
//#endregion
|
|
1173
|
+
//#region src/connect/components/remotes-inspector/components/peer-agreement-panel.d.ts
|
|
1174
|
+
export type PeerAgreementPanelProps = {
|
|
1175
|
+
readonly remoteName: string;
|
|
1176
|
+
readonly collectionId: string;
|
|
1177
|
+
readonly peer: RemotePeer | undefined;
|
|
1178
|
+
readonly agreement: IPeerAgreement;
|
|
1179
|
+
readonly holds: readonly SyncHold[];
|
|
1180
|
+
};
|
|
1181
|
+
/** How a remote's peer announced itself. */
|
|
1182
|
+
export declare function peerManifestLabel(peer: RemotePeer | undefined): string;
|
|
1183
|
+
export declare function PeerAgreementPanel({ remoteName, collectionId, peer, agreement, holds }: PeerAgreementPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
1062
1184
|
//#endregion
|
|
1063
1185
|
//#region src/connect/components/worker-inspector/worker-inspector.d.ts
|
|
1064
|
-
type WorkerInfo = {
|
|
1186
|
+
export type WorkerInfo = {
|
|
1065
1187
|
readonly namespace: string;
|
|
1066
1188
|
readonly ownerId: string;
|
|
1067
1189
|
readonly bootedAtMs: number;
|
|
1068
1190
|
readonly connectedClients: number;
|
|
1069
1191
|
readonly appBuildId: string;
|
|
1070
|
-
readonly rpcProtocolVersion: number;
|
|
1192
|
+
readonly rpcProtocolVersion: number;
|
|
1193
|
+
/** Enforcement flags the running worker booted with; empty means none. */
|
|
1071
1194
|
readonly featureFlags?: string;
|
|
1072
1195
|
};
|
|
1073
|
-
type WorkerInspectorProps = {
|
|
1196
|
+
export type WorkerInspectorProps = {
|
|
1074
1197
|
readonly getInfo: () => Promise<WorkerInfo>;
|
|
1075
1198
|
readonly onRestart: () => Promise<void>;
|
|
1076
1199
|
};
|
|
1077
|
-
declare function WorkerInspector({
|
|
1078
|
-
getInfo,
|
|
1079
|
-
onRestart
|
|
1080
|
-
}: WorkerInspectorProps): react_jsx_runtime0.JSX.Element;
|
|
1200
|
+
export declare function WorkerInspector({ getInfo, onRestart }: WorkerInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
1081
1201
|
//#endregion
|
|
1082
1202
|
//#region src/connect/components/modal/inspector-modal/inspector-modal.d.ts
|
|
1083
1203
|
type ModalProps$2 = ComponentPropsWithoutRef<typeof Modal>;
|
|
1084
|
-
type InspectorTab = "Database" | "Remotes" | "Queue" | "Processors" | "Integrity" | "Worker";
|
|
1085
|
-
type InspectorUnavailableTabs = { readonly [K in InspectorTab]?: string };
|
|
1086
|
-
type InspectorModalProps = {
|
|
1204
|
+
export type InspectorTab = "Database" | "Remotes" | "Queue" | "Processors" | "Integrity" | "CatchUp" | "Worker";
|
|
1205
|
+
export type InspectorUnavailableTabs = { readonly [K in InspectorTab]?: string; };
|
|
1206
|
+
export type InspectorModalProps = {
|
|
1087
1207
|
readonly open: boolean;
|
|
1088
1208
|
readonly onOpenChange: (open: boolean) => void;
|
|
1089
1209
|
readonly modalProps?: ModalProps$2;
|
|
@@ -1093,45 +1213,33 @@ type InspectorModalProps = {
|
|
|
1093
1213
|
readonly queueInspectorProps?: QueueInspectorProps;
|
|
1094
1214
|
readonly processorsInspectorProps?: ProcessorsInspectorProps;
|
|
1095
1215
|
readonly integrityInspectorProps?: IntegrityInspectorProps;
|
|
1216
|
+
readonly catchUpInspectorProps?: CatchUpInspectorProps;
|
|
1096
1217
|
readonly workerInspectorProps?: WorkerInspectorProps;
|
|
1097
1218
|
readonly unavailableTabs?: InspectorUnavailableTabs;
|
|
1098
1219
|
readonly defaultTab?: InspectorTab;
|
|
1099
1220
|
};
|
|
1100
|
-
declare function InspectorModal({
|
|
1101
|
-
open,
|
|
1102
|
-
onOpenChange,
|
|
1103
|
-
modalProps,
|
|
1104
|
-
containerProps,
|
|
1105
|
-
dbExplorerProps,
|
|
1106
|
-
remotesInspectorProps,
|
|
1107
|
-
queueInspectorProps,
|
|
1108
|
-
processorsInspectorProps,
|
|
1109
|
-
integrityInspectorProps,
|
|
1110
|
-
workerInspectorProps,
|
|
1111
|
-
unavailableTabs,
|
|
1112
|
-
defaultTab
|
|
1113
|
-
}: InspectorModalProps): react_jsx_runtime0.JSX.Element;
|
|
1221
|
+
export declare function InspectorModal({ open, onOpenChange, modalProps, containerProps, dbExplorerProps, remotesInspectorProps, queueInspectorProps, processorsInspectorProps, integrityInspectorProps, catchUpInspectorProps, workerInspectorProps, unavailableTabs, defaultTab }: InspectorModalProps): import("react/jsx-runtime").JSX.Element;
|
|
1114
1222
|
//#endregion
|
|
1115
1223
|
//#region src/connect/components/modal/missing-package-modal.d.ts
|
|
1116
|
-
interface PendingPackageInstallation {
|
|
1224
|
+
export interface PendingPackageInstallation {
|
|
1117
1225
|
documentType: string;
|
|
1118
1226
|
packageName: string;
|
|
1119
1227
|
}
|
|
1120
|
-
type PackageInstallModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
1228
|
+
export type PackageInstallModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
1121
1229
|
readonly pendingInstallations: PendingPackageInstallation[];
|
|
1122
1230
|
readonly onInstall: (packageName: string) => Promise<void>;
|
|
1123
1231
|
readonly onDismiss: (packageName: string) => void;
|
|
1124
1232
|
};
|
|
1125
|
-
declare function PackageInstallModal(props: PackageInstallModalProps):
|
|
1233
|
+
export declare function PackageInstallModal(props: PackageInstallModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
1126
1234
|
//#endregion
|
|
1127
1235
|
//#region src/connect/components/modal/modal-button.d.ts
|
|
1128
|
-
declare function ModalButton(props: ComponentProps<"button"> & {
|
|
1236
|
+
export declare function ModalButton(props: ComponentProps<"button"> & {
|
|
1129
1237
|
variant: "confirm" | "cancel";
|
|
1130
|
-
}):
|
|
1238
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
1131
1239
|
//#endregion
|
|
1132
1240
|
//#region src/connect/components/modal/read-required-modal.d.ts
|
|
1133
1241
|
type ModalProps$1 = ComponentPropsWithoutRef<typeof Modal>;
|
|
1134
|
-
type ReadRequiredModalProps = {
|
|
1242
|
+
export type ReadRequiredModalProps = {
|
|
1135
1243
|
readonly open?: boolean;
|
|
1136
1244
|
readonly onOpenChange?: (open: boolean) => void;
|
|
1137
1245
|
readonly header: ReactNode;
|
|
@@ -1142,11 +1250,11 @@ type ReadRequiredModalProps = {
|
|
|
1142
1250
|
readonly overlayProps?: ModalProps$1["overlayProps"];
|
|
1143
1251
|
readonly contentProps?: ModalProps$1["contentProps"];
|
|
1144
1252
|
};
|
|
1145
|
-
declare function ReadRequiredModal(props: ReadRequiredModalProps):
|
|
1253
|
+
export declare function ReadRequiredModal(props: ReadRequiredModalProps): import("react/jsx-runtime").JSX.Element;
|
|
1146
1254
|
//#endregion
|
|
1147
1255
|
//#region src/connect/components/modal/replace-duplicate-modal.d.ts
|
|
1148
1256
|
type ModalProps = ComponentPropsWithoutRef<typeof Modal>;
|
|
1149
|
-
type ConnectReplaceDuplicateModalProps = {
|
|
1257
|
+
export type ConnectReplaceDuplicateModalProps = {
|
|
1150
1258
|
readonly open?: boolean;
|
|
1151
1259
|
readonly onOpenChange?: (open: boolean) => void;
|
|
1152
1260
|
readonly title?: string;
|
|
@@ -1157,14 +1265,14 @@ type ConnectReplaceDuplicateModalProps = {
|
|
|
1157
1265
|
readonly overlayProps?: ModalProps["overlayProps"];
|
|
1158
1266
|
readonly contentProps?: ModalProps["contentProps"];
|
|
1159
1267
|
};
|
|
1160
|
-
declare function ConnectReplaceDuplicateModal(props: ConnectReplaceDuplicateModalProps):
|
|
1268
|
+
export declare function ConnectReplaceDuplicateModal(props: ConnectReplaceDuplicateModalProps): import("react/jsx-runtime").JSX.Element;
|
|
1161
1269
|
//#endregion
|
|
1162
1270
|
//#region src/connect/components/modal/settings-modal-v2/about.d.ts
|
|
1163
|
-
type Props$
|
|
1271
|
+
type Props$6 = {
|
|
1164
1272
|
packageJson: unknown;
|
|
1165
1273
|
phCliVersion?: string;
|
|
1166
1274
|
};
|
|
1167
|
-
declare function About(props: Props$
|
|
1275
|
+
export declare function About(props: Props$6): import("react/jsx-runtime").JSX.Element;
|
|
1168
1276
|
//#endregion
|
|
1169
1277
|
//#region src/connect/components/modal/settings-modal-v2/danger-zone.d.ts
|
|
1170
1278
|
type ModifyDrivesProps = {
|
|
@@ -1176,21 +1284,25 @@ type LocalStorageProps = {
|
|
|
1176
1284
|
onClearStorage: () => void | Promise<void>;
|
|
1177
1285
|
className?: string;
|
|
1178
1286
|
};
|
|
1179
|
-
type Props$
|
|
1180
|
-
declare function DangerZone(props: Props$
|
|
1287
|
+
type Props$5 = ModifyDrivesProps & LocalStorageProps;
|
|
1288
|
+
export declare function DangerZone(props: Props$5): import("react/jsx-runtime").JSX.Element;
|
|
1181
1289
|
//#endregion
|
|
1182
|
-
//#region src/connect/components/modal/settings-modal-v2/default-editor.d.ts
|
|
1183
|
-
type Props$
|
|
1290
|
+
//#region src/connect/components/modal/settings-modal-v2/default-editor.impl.d.ts
|
|
1291
|
+
type Props$4 = {
|
|
1184
1292
|
documentModelEditor: string;
|
|
1185
1293
|
setDocumentModelEditor: (value: string) => void;
|
|
1186
1294
|
documentModelEditorOptions: SelectOption[];
|
|
1187
1295
|
className?: string;
|
|
1188
1296
|
};
|
|
1189
|
-
declare function DefaultEditor(props: Props$
|
|
1190
|
-
declare function DefaultEditorSelect(props: Props$
|
|
1297
|
+
declare function DefaultEditor$1(props: Props$4): import("react/jsx-runtime").JSX.Element;
|
|
1298
|
+
declare function DefaultEditorSelect$1(props: Props$4): import("react/jsx-runtime").JSX.Element;
|
|
1299
|
+
//#endregion
|
|
1300
|
+
//#region src/connect/components/modal/settings-modal-v2/default-editor.d.ts
|
|
1301
|
+
export declare const DefaultEditor: typeof DefaultEditor$1;
|
|
1302
|
+
export declare const DefaultEditorSelect: typeof DefaultEditorSelect$1;
|
|
1191
1303
|
//#endregion
|
|
1192
1304
|
//#region src/connect/components/modal/settings-modal-v2/package-manager/available-packages-panel.d.ts
|
|
1193
|
-
type AvailablePackagesPanelProps = {
|
|
1305
|
+
export type AvailablePackagesPanelProps = {
|
|
1194
1306
|
/**
|
|
1195
1307
|
* status: available | dismissed. In server-search mode these are already
|
|
1196
1308
|
* filtered by the registry; otherwise they're filtered client-side here.
|
|
@@ -1208,37 +1320,43 @@ type AvailablePackagesPanelProps = {
|
|
|
1208
1320
|
* client-side `filterPackages`. Set by the connect layer once the paginated
|
|
1209
1321
|
* search endpoint is wired.
|
|
1210
1322
|
*/
|
|
1211
|
-
serverSearch?: boolean;
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1323
|
+
serverSearch?: boolean;
|
|
1324
|
+
/** true while the first page / a new search is loading. */
|
|
1325
|
+
isLoading?: boolean;
|
|
1326
|
+
/** true while an additional page is being appended (infinite scroll). */
|
|
1327
|
+
isLoadingMore?: boolean;
|
|
1328
|
+
/** more pages exist on the server. */
|
|
1329
|
+
hasMore?: boolean;
|
|
1330
|
+
/** request the next page (infinite scroll). */
|
|
1215
1331
|
onLoadMore?: () => void;
|
|
1216
1332
|
/**
|
|
1217
1333
|
* Registry fetch failed. Presence-only — the panel never surfaces raw API
|
|
1218
1334
|
* messages; see `PackageRegistryError` for the user-facing copy.
|
|
1219
1335
|
*/
|
|
1220
|
-
error?: boolean;
|
|
1336
|
+
error?: boolean;
|
|
1337
|
+
/** retry the current fetch after an error. */
|
|
1221
1338
|
onRetry?: () => void;
|
|
1222
1339
|
mutable: boolean;
|
|
1223
1340
|
onInstall: (packageSpec: string) => Promise<void>;
|
|
1224
1341
|
onUninstall: (packageName: string) => void;
|
|
1225
1342
|
disabled?: boolean;
|
|
1226
1343
|
};
|
|
1227
|
-
declare const AvailablePackagesPanel: React.FC<AvailablePackagesPanelProps>;
|
|
1344
|
+
export declare const AvailablePackagesPanel: React.FC<AvailablePackagesPanelProps>;
|
|
1228
1345
|
//#endregion
|
|
1229
1346
|
//#region src/connect/components/modal/settings-modal-v2/package-manager/installed-packages-panel.d.ts
|
|
1230
|
-
type InstalledPackagesPanelProps = {
|
|
1231
|
-
/** status: local-install | registry-install */
|
|
1347
|
+
export type InstalledPackagesPanelProps = {
|
|
1348
|
+
/** status: local-install | registry-install */
|
|
1349
|
+
packages: RegistryPackageList;
|
|
1232
1350
|
query: string;
|
|
1233
1351
|
onQueryChange: (query: string) => void;
|
|
1234
1352
|
onInstall: (packageSpec: string) => Promise<void>;
|
|
1235
1353
|
onUninstall: (packageName: string) => void;
|
|
1236
1354
|
disabled?: boolean;
|
|
1237
1355
|
};
|
|
1238
|
-
declare const InstalledPackagesPanel: React.FC<InstalledPackagesPanelProps>;
|
|
1356
|
+
export declare const InstalledPackagesPanel: React.FC<InstalledPackagesPanelProps>;
|
|
1239
1357
|
//#endregion
|
|
1240
1358
|
//#region src/connect/components/modal/settings-modal-v2/package-manager/package-manager-list.d.ts
|
|
1241
|
-
declare const PackageManagerListItem: (props: {
|
|
1359
|
+
export declare const PackageManagerListItem: (props: {
|
|
1242
1360
|
registryPackage: RegistryPackage;
|
|
1243
1361
|
onInstall: (packageSpec: string) => Promise<void>;
|
|
1244
1362
|
onUninstall: (packageName: string) => void;
|
|
@@ -1248,7 +1366,7 @@ declare const PackageManagerListItem: (props: {
|
|
|
1248
1366
|
*/
|
|
1249
1367
|
preferredTag?: string;
|
|
1250
1368
|
className?: string;
|
|
1251
|
-
}) =>
|
|
1369
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
1252
1370
|
/**
|
|
1253
1371
|
* Scroll region shared by both Package Manager tab panels. Fills the space
|
|
1254
1372
|
* the panel gives it and scrolls its overflow. This works because the tab
|
|
@@ -1257,7 +1375,7 @@ declare const PackageManagerListItem: (props: {
|
|
|
1257
1375
|
* unbroken (`min-h-0` + `flex-1`/`h-full` at every level), so no
|
|
1258
1376
|
* viewport-measuring hack is needed.
|
|
1259
1377
|
*/
|
|
1260
|
-
declare const PackagePanelScrollArea: React.FC<{
|
|
1378
|
+
export declare const PackagePanelScrollArea: React.FC<{
|
|
1261
1379
|
children: ReactNode;
|
|
1262
1380
|
className?: string;
|
|
1263
1381
|
/**
|
|
@@ -1266,12 +1384,12 @@ declare const PackagePanelScrollArea: React.FC<{
|
|
|
1266
1384
|
*/
|
|
1267
1385
|
onReachEnd?: () => void;
|
|
1268
1386
|
}>;
|
|
1269
|
-
declare const PackageSubSection: React.FC<{
|
|
1387
|
+
export declare const PackageSubSection: React.FC<{
|
|
1270
1388
|
title: string;
|
|
1271
1389
|
count: number;
|
|
1272
1390
|
children: ReactNode;
|
|
1273
1391
|
}>;
|
|
1274
|
-
declare const PackageList: React.FC<{
|
|
1392
|
+
export declare const PackageList: React.FC<{
|
|
1275
1393
|
packages: RegistryPackageList;
|
|
1276
1394
|
onInstall: (packageSpec: string) => Promise<void>;
|
|
1277
1395
|
onUninstall: (packageName: string) => void;
|
|
@@ -1279,18 +1397,25 @@ declare const PackageList: React.FC<{
|
|
|
1279
1397
|
}>;
|
|
1280
1398
|
//#endregion
|
|
1281
1399
|
//#region src/connect/components/modal/settings-modal-v2/package-manager/package-manager.d.ts
|
|
1282
|
-
type PackageManagerProps = {
|
|
1283
|
-
/** status: local-install | registry-install */
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1400
|
+
export type PackageManagerProps = {
|
|
1401
|
+
/** status: local-install | registry-install */
|
|
1402
|
+
installedPackages: RegistryPackageList;
|
|
1403
|
+
/** status: available | dismissed (dismissed grouped at the bottom) */
|
|
1404
|
+
availablePackages: RegistryPackageList;
|
|
1405
|
+
/** true while the first page / a new search is loading. */
|
|
1406
|
+
isAvailableLoading?: boolean;
|
|
1407
|
+
/** true while an additional page is being appended (infinite scroll). */
|
|
1408
|
+
isLoadingMoreAvailable?: boolean;
|
|
1409
|
+
/** more Available pages exist on the server. */
|
|
1410
|
+
hasMoreAvailable?: boolean;
|
|
1411
|
+
/** request the next Available page (infinite scroll). */
|
|
1288
1412
|
onLoadMoreAvailable?: () => void;
|
|
1289
1413
|
/**
|
|
1290
1414
|
* Registry Available fetch failed. Presence-only — never pass raw API
|
|
1291
1415
|
* messages; the panel renders friendly copy via `PackageRegistryError`.
|
|
1292
1416
|
*/
|
|
1293
|
-
availableError?: boolean;
|
|
1417
|
+
availableError?: boolean;
|
|
1418
|
+
/** retry the Available fetch after an error. */
|
|
1294
1419
|
onAvailableRetry?: () => void;
|
|
1295
1420
|
/**
|
|
1296
1421
|
* When provided, Available search is delegated to the server (the panel
|
|
@@ -1316,15 +1441,16 @@ type PackageManagerProps = {
|
|
|
1316
1441
|
* `initialTab="installed"` mount). The caller dedupes — this is what
|
|
1317
1442
|
* makes the installed-rows version-metadata fetch lazy.
|
|
1318
1443
|
*/
|
|
1319
|
-
onInstalledTabOpen?: () => void;
|
|
1444
|
+
onInstalledTabOpen?: () => void;
|
|
1445
|
+
/** default "installed"; used by stories/tests */
|
|
1320
1446
|
initialTab?: "installed" | "available";
|
|
1321
1447
|
disabled?: boolean;
|
|
1322
1448
|
className?: string;
|
|
1323
1449
|
};
|
|
1324
|
-
declare const PackageManager: React.FC<PackageManagerProps>;
|
|
1450
|
+
export declare const PackageManager: React.FC<PackageManagerProps>;
|
|
1325
1451
|
//#endregion
|
|
1326
1452
|
//#region src/connect/components/modal/settings-modal-v2/package-manager/package-registry-error.d.ts
|
|
1327
|
-
type PackageRegistryErrorProps = {
|
|
1453
|
+
export type PackageRegistryErrorProps = {
|
|
1328
1454
|
/**
|
|
1329
1455
|
* `empty` — first load / search failed with nothing to show.
|
|
1330
1456
|
* `refresh` — a later fetch failed but previously loaded packages remain.
|
|
@@ -1336,56 +1462,56 @@ type PackageRegistryErrorProps = {
|
|
|
1336
1462
|
* Friendly registry-error banner. Never surfaces raw API / network messages —
|
|
1337
1463
|
* those stay in the console for debugging.
|
|
1338
1464
|
*/
|
|
1339
|
-
declare const PackageRegistryError: React.FC<PackageRegistryErrorProps>;
|
|
1465
|
+
export declare const PackageRegistryError: React.FC<PackageRegistryErrorProps>;
|
|
1340
1466
|
//#endregion
|
|
1341
1467
|
//#region src/connect/components/modal/settings-modal-v2/package-manager/types.d.ts
|
|
1342
|
-
interface RegistryOption {
|
|
1468
|
+
export interface RegistryOption {
|
|
1343
1469
|
id: string;
|
|
1344
1470
|
label: string;
|
|
1345
1471
|
url: string;
|
|
1346
1472
|
editable?: boolean;
|
|
1347
1473
|
}
|
|
1348
|
-
type RegistryStatus = "idle" | "connecting" | "connected" | "error";
|
|
1474
|
+
export type RegistryStatus = "idle" | "connecting" | "connected" | "error";
|
|
1349
1475
|
//#endregion
|
|
1350
1476
|
//#region src/connect/components/modal/settings-modal-v2/settings-modal.d.ts
|
|
1351
|
-
type SettingsTab = {
|
|
1477
|
+
export type SettingsTab = {
|
|
1352
1478
|
id: string;
|
|
1353
1479
|
icon?: React.ReactNode;
|
|
1354
1480
|
label: React.ReactNode;
|
|
1355
1481
|
content: React.ReactNode | React.ComponentType<any>;
|
|
1356
1482
|
};
|
|
1357
|
-
type Props$
|
|
1483
|
+
type Props$3 = {
|
|
1358
1484
|
readonly title: React.ReactNode;
|
|
1359
1485
|
readonly tabs: SettingsTab[];
|
|
1360
1486
|
defaultTab?: string;
|
|
1361
1487
|
navFooter?: React.ReactNode;
|
|
1362
1488
|
} & ComponentProps<typeof Modal>;
|
|
1363
|
-
declare function SettingsModal(props: Props$
|
|
1489
|
+
export declare function SettingsModal(props: Props$3): import("react/jsx-runtime").JSX.Element;
|
|
1364
1490
|
//#endregion
|
|
1365
1491
|
//#region src/connect/components/modal/settings-modal/dependency-versions/dependency-versions.d.ts
|
|
1366
1492
|
type ValidatedPackageJson = {
|
|
1367
1493
|
version: string;
|
|
1368
1494
|
dependencies: Record<string, string>;
|
|
1369
1495
|
};
|
|
1370
|
-
declare function verifyPackageJsonFields(packageJson: unknown): ValidatedPackageJson | false;
|
|
1371
|
-
type Props$
|
|
1496
|
+
export declare function verifyPackageJsonFields(packageJson: unknown): ValidatedPackageJson | false;
|
|
1497
|
+
type Props$2 = {
|
|
1372
1498
|
readonly packageJson: unknown;
|
|
1373
1499
|
readonly phCliVersion?: string;
|
|
1374
1500
|
};
|
|
1375
|
-
declare function DependencyVersions(props: Props$
|
|
1501
|
+
export declare function DependencyVersions(props: Props$2): import("react/jsx-runtime").JSX.Element | null;
|
|
1376
1502
|
//#endregion
|
|
1377
1503
|
//#region src/connect/components/modal/upgrade-drive-modal.d.ts
|
|
1378
|
-
type ConnectUpgradeDriveModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
1504
|
+
export type ConnectUpgradeDriveModalProps = ComponentPropsWithoutRef<typeof Modal> & {
|
|
1379
1505
|
readonly header: React.ReactNode;
|
|
1380
1506
|
readonly body: React.ReactNode;
|
|
1381
1507
|
readonly onContinue: () => void;
|
|
1382
1508
|
readonly cancelLabel: string;
|
|
1383
1509
|
readonly continueLabel: string;
|
|
1384
1510
|
};
|
|
1385
|
-
declare function ConnectUpgradeDriveModal(props: ConnectUpgradeDriveModalProps):
|
|
1511
|
+
export declare function ConnectUpgradeDriveModal(props: ConnectUpgradeDriveModalProps): import("react/jsx-runtime").JSX.Element;
|
|
1386
1512
|
//#endregion
|
|
1387
1513
|
//#region src/connect/components/node-input/node-input.d.ts
|
|
1388
|
-
type Props$
|
|
1514
|
+
type Props$1 = {
|
|
1389
1515
|
readonly name?: string;
|
|
1390
1516
|
readonly defaultValue?: string;
|
|
1391
1517
|
readonly placeholder?: string;
|
|
@@ -1395,35 +1521,78 @@ type Props$2 = {
|
|
|
1395
1521
|
readonly onSubmit: (value: string) => void;
|
|
1396
1522
|
readonly onCancel: () => void;
|
|
1397
1523
|
};
|
|
1398
|
-
declare function NodeInput(props: Props$
|
|
1524
|
+
export declare function NodeInput(props: Props$1): import("react/jsx-runtime").JSX.Element;
|
|
1399
1525
|
//#endregion
|
|
1400
1526
|
//#region src/connect/components/object-inspector-modal/object-inspector-modal.d.ts
|
|
1401
|
-
type ObjectInspectorModalProps = {
|
|
1527
|
+
export type ObjectInspectorModalProps = {
|
|
1402
1528
|
readonly open: boolean;
|
|
1403
1529
|
readonly onOpenChange: (open: boolean) => void;
|
|
1404
1530
|
readonly title: string;
|
|
1405
1531
|
readonly object: unknown;
|
|
1406
1532
|
};
|
|
1407
|
-
declare function ObjectInspectorModal({
|
|
1408
|
-
open,
|
|
1409
|
-
onOpenChange,
|
|
1410
|
-
title,
|
|
1411
|
-
object
|
|
1412
|
-
}: ObjectInspectorModalProps): react_jsx_runtime0.JSX.Element;
|
|
1533
|
+
export declare function ObjectInspectorModal({ open, onOpenChange, title, object }: ObjectInspectorModalProps): import("react/jsx-runtime").JSX.Element;
|
|
1413
1534
|
//#endregion
|
|
1414
|
-
//#region src/connect/components/revision-history/revision-history.d.ts
|
|
1415
|
-
type
|
|
1535
|
+
//#region src/connect/components/revision-history/revision-history.impl.d.ts
|
|
1536
|
+
type CommonProps = {
|
|
1416
1537
|
readonly documentTitle: string;
|
|
1417
1538
|
readonly documentId: string;
|
|
1418
|
-
readonly globalOperations: Operation[];
|
|
1419
|
-
readonly localOperations: Operation[];
|
|
1420
1539
|
readonly onClose: () => void;
|
|
1421
1540
|
readonly itemsPerPage?: number;
|
|
1422
1541
|
readonly documentState?: object;
|
|
1423
1542
|
readonly onCopyState?: () => void;
|
|
1424
1543
|
readonly onCopyDocId?: () => void;
|
|
1544
|
+
/** Controlled: the page shown, from 1; pair with `onPageChange`. */
|
|
1545
|
+
readonly page?: number;
|
|
1546
|
+
readonly onPageChange?: (page: number) => void;
|
|
1547
|
+
};
|
|
1548
|
+
/** The current, scoped props. */
|
|
1549
|
+
type RevisionHistoryScopedProps = CommonProps & {
|
|
1550
|
+
/** The operations of the selected scope loaded so far, in any order. */
|
|
1551
|
+
readonly operations: readonly Operation[];
|
|
1552
|
+
/** A page of operations is being fetched. */
|
|
1553
|
+
readonly isLoading: boolean;
|
|
1554
|
+
/** More operations exist beyond the loaded ones. */
|
|
1555
|
+
readonly hasNextPage: boolean;
|
|
1556
|
+
/**
|
|
1557
|
+
* Called by the component whenever it can take the next page.
|
|
1558
|
+
* Must be referentially stable (for example the hook's `fetchNextPage`);
|
|
1559
|
+
* an inline arrow re-fires the effect every render.
|
|
1560
|
+
*/
|
|
1561
|
+
readonly onLoadNextPage: () => void;
|
|
1562
|
+
/** The scopes offered in the selector, for example the keys of `document.header.revision`. */
|
|
1563
|
+
readonly scopes: readonly string[];
|
|
1564
|
+
/** The selected scope. */
|
|
1565
|
+
readonly scope: string;
|
|
1566
|
+
readonly onScopeChange: (scope: string) => void;
|
|
1567
|
+
/**
|
|
1568
|
+
* The last page failed. Operations loaded so far are still shown, and the
|
|
1569
|
+
* walk stops asking for more; there is no retry from inside the component.
|
|
1570
|
+
*/
|
|
1571
|
+
readonly error?: Error;
|
|
1425
1572
|
};
|
|
1426
|
-
|
|
1573
|
+
/**
|
|
1574
|
+
* Legacy props: the whole global and local history, toggled inside the
|
|
1575
|
+
* component.
|
|
1576
|
+
* @deprecated Pass one scope's `operations` with `scopes`/`scope`/`onScopeChange` and the loading props. Removed in the next major.
|
|
1577
|
+
*/
|
|
1578
|
+
type RevisionHistoryLegacyProps = CommonProps & {
|
|
1579
|
+
readonly globalOperations: readonly Operation[];
|
|
1580
|
+
readonly localOperations: readonly Operation[];
|
|
1581
|
+
};
|
|
1582
|
+
type RevisionHistoryProps = RevisionHistoryScopedProps | RevisionHistoryLegacyProps;
|
|
1583
|
+
/**
|
|
1584
|
+
* The revision history panel. Pages arrive oldest first while the timeline
|
|
1585
|
+
* renders newest first, so it waits for the whole history to load before
|
|
1586
|
+
* rendering the timeline, showing "Loading operations…" and a running count
|
|
1587
|
+
* in the meantime.
|
|
1588
|
+
*
|
|
1589
|
+
* Also accepts the deprecated `globalOperations`/`localOperations` pair
|
|
1590
|
+
* (see `RevisionHistoryLegacyProps`), toggling between them internally.
|
|
1591
|
+
*/
|
|
1592
|
+
declare function RevisionHistory$1(props: RevisionHistoryProps): import("react/jsx-runtime").JSX.Element;
|
|
1593
|
+
//#endregion
|
|
1594
|
+
//#region src/connect/components/revision-history/revision-history.d.ts
|
|
1595
|
+
export declare const RevisionHistory: typeof RevisionHistory$1;
|
|
1427
1596
|
//#endregion
|
|
1428
1597
|
//#region src/connect/components/search-bar/filter-item.d.ts
|
|
1429
1598
|
type FilterItemType = {
|
|
@@ -1433,7 +1602,7 @@ type FilterItemType = {
|
|
|
1433
1602
|
};
|
|
1434
1603
|
//#endregion
|
|
1435
1604
|
//#region src/connect/components/search-bar/search-bar.d.ts
|
|
1436
|
-
interface ConnectSearchBarProps {
|
|
1605
|
+
export interface ConnectSearchBarProps {
|
|
1437
1606
|
value?: string;
|
|
1438
1607
|
onChange?: (value: string) => void;
|
|
1439
1608
|
placeholder?: string;
|
|
@@ -1443,17 +1612,17 @@ interface ConnectSearchBarProps {
|
|
|
1443
1612
|
onFilterSelect?: (filterId: string) => void;
|
|
1444
1613
|
className?: string;
|
|
1445
1614
|
}
|
|
1446
|
-
declare const ConnectSearchBar: React.FC<ConnectSearchBarProps>;
|
|
1615
|
+
export declare const ConnectSearchBar: React.FC<ConnectSearchBarProps>;
|
|
1447
1616
|
//#endregion
|
|
1448
1617
|
//#region src/connect/components/select/select.d.ts
|
|
1449
|
-
type ConnectSelectItem<TValue extends string> = {
|
|
1618
|
+
export type ConnectSelectItem<TValue extends string> = {
|
|
1450
1619
|
readonly value: TValue;
|
|
1451
1620
|
readonly displayValue?: React.ReactNode;
|
|
1452
1621
|
readonly description?: React.ReactNode;
|
|
1453
1622
|
readonly icon?: React.JSX.Element;
|
|
1454
1623
|
readonly disabled?: boolean;
|
|
1455
1624
|
};
|
|
1456
|
-
type ConnectSelectProps<TValue extends string> = {
|
|
1625
|
+
export type ConnectSelectProps<TValue extends string> = {
|
|
1457
1626
|
items: readonly ConnectSelectItem<TValue>[];
|
|
1458
1627
|
value: TValue;
|
|
1459
1628
|
id: string;
|
|
@@ -1462,24 +1631,29 @@ type ConnectSelectProps<TValue extends string> = {
|
|
|
1462
1631
|
menuClassName?: string;
|
|
1463
1632
|
itemClassName?: string;
|
|
1464
1633
|
borderRadius?: CSSProperties["borderRadius"];
|
|
1465
|
-
absolutePositionMenu?: boolean;
|
|
1634
|
+
absolutePositionMenu?: boolean;
|
|
1635
|
+
/** Applied to the expanded options list, e.g. to cap its height and make it scrollable. */
|
|
1466
1636
|
listClassName?: string;
|
|
1467
1637
|
};
|
|
1468
|
-
declare const ConnectSelect: <TValue extends string>(props: ConnectSelectProps<TValue> & RefAttributes<HTMLDivElement>) => ReactNode;
|
|
1638
|
+
export declare const ConnectSelect: <TValue extends string>(props: ConnectSelectProps<TValue> & RefAttributes<HTMLDivElement>) => ReactNode;
|
|
1469
1639
|
//#endregion
|
|
1470
1640
|
//#region src/connect/components/sidebar/sidebar-add-drive-item.d.ts
|
|
1471
1641
|
type SidebarAddDriveItemProps = {
|
|
1472
1642
|
readonly containerClassName?: string;
|
|
1473
1643
|
readonly onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
1474
1644
|
};
|
|
1475
|
-
declare const SidebarAddDriveItem: (props: SidebarAddDriveItemProps) =>
|
|
1645
|
+
export declare const SidebarAddDriveItem: (props: SidebarAddDriveItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
1476
1646
|
//#endregion
|
|
1477
1647
|
//#region src/connect/components/sidebar/sidebar-footer.d.ts
|
|
1478
|
-
interface ConnectSidebarFooterProps extends ComponentProps<typeof SidebarFooter> {
|
|
1648
|
+
export interface ConnectSidebarFooterProps extends ComponentProps<typeof SidebarFooter> {
|
|
1479
1649
|
address: `0x${string}` | undefined;
|
|
1480
1650
|
ensName?: string;
|
|
1481
1651
|
avatarUrl?: string;
|
|
1482
|
-
onClickSettings: (() => void) | undefined;
|
|
1652
|
+
onClickSettings: ((event: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
1653
|
+
/** Renders settings as a real link; `onClickSettings` can still take plain clicks. */
|
|
1654
|
+
settingsHref?: string;
|
|
1655
|
+
/** Marks the settings link while settings show. */
|
|
1656
|
+
settingsCurrent?: "page";
|
|
1483
1657
|
onLogin: (() => void) | undefined;
|
|
1484
1658
|
etherscanUrl?: string;
|
|
1485
1659
|
onDisconnect: (() => void) | undefined;
|
|
@@ -1487,11 +1661,11 @@ interface ConnectSidebarFooterProps extends ComponentProps<typeof SidebarFooter>
|
|
|
1487
1661
|
showDebug?: boolean;
|
|
1488
1662
|
onDebugClick?: () => void;
|
|
1489
1663
|
}
|
|
1490
|
-
declare const ConnectSidebarFooter: React.FC<ConnectSidebarFooterProps>;
|
|
1664
|
+
export declare const ConnectSidebarFooter: React.FC<ConnectSidebarFooterProps>;
|
|
1491
1665
|
//#endregion
|
|
1492
1666
|
//#region src/connect/components/sidebar/sidebar-header.d.ts
|
|
1493
|
-
interface ConnectSidebarHeaderProps extends ComponentProps<typeof SidebarHeader> {}
|
|
1494
|
-
declare const ConnectSidebarHeader: React.FC<ConnectSidebarHeaderProps>;
|
|
1667
|
+
export interface ConnectSidebarHeaderProps extends ComponentProps<typeof SidebarHeader> {}
|
|
1668
|
+
export declare const ConnectSidebarHeader: React.FC<ConnectSidebarHeaderProps>;
|
|
1495
1669
|
//#endregion
|
|
1496
1670
|
//#region src/connect/components/sidebar/sidebar-item.d.ts
|
|
1497
1671
|
type SidebarItemProps = {
|
|
@@ -1500,28 +1674,34 @@ type SidebarItemProps = {
|
|
|
1500
1674
|
readonly description?: string;
|
|
1501
1675
|
readonly containerClassName?: string;
|
|
1502
1676
|
readonly active?: boolean;
|
|
1503
|
-
|
|
1677
|
+
/** Renders a real link; `onClick` can still take plain clicks in-app. */
|
|
1678
|
+
readonly href?: string;
|
|
1679
|
+
/** Marks the link to what shows now; styles it as `active` does. */
|
|
1680
|
+
readonly "aria-current"?: "page";
|
|
1681
|
+
onClick?(this: void, event: React.MouseEvent<HTMLElement>): void;
|
|
1682
|
+
/** Called on hover or touch, before a likely click. */
|
|
1683
|
+
readonly onPreload?: () => void;
|
|
1504
1684
|
};
|
|
1505
|
-
declare const SidebarItem: (props: SidebarItemProps) =>
|
|
1685
|
+
export declare const SidebarItem: (props: SidebarItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
1506
1686
|
//#endregion
|
|
1507
1687
|
//#region src/connect/components/sidebar/sidebar-login.d.ts
|
|
1508
|
-
interface SidebarLoginProps {
|
|
1688
|
+
export interface SidebarLoginProps {
|
|
1509
1689
|
onLogin: (() => void) | undefined;
|
|
1510
1690
|
}
|
|
1511
|
-
declare const SidebarLogin: React.FC<SidebarLoginProps>;
|
|
1691
|
+
export declare const SidebarLogin: React.FC<SidebarLoginProps>;
|
|
1512
1692
|
//#endregion
|
|
1513
1693
|
//#region src/connect/components/sidebar/sidebar-user.d.ts
|
|
1514
|
-
interface SidebarUserProps {
|
|
1694
|
+
export interface SidebarUserProps {
|
|
1515
1695
|
address: `0x${string}`;
|
|
1516
1696
|
ensName?: string;
|
|
1517
1697
|
avatarUrl?: string;
|
|
1518
1698
|
etherscanUrl: string;
|
|
1519
1699
|
onDisconnect: (() => void) | undefined;
|
|
1520
1700
|
}
|
|
1521
|
-
declare const SidebarUser: React.FC<SidebarUserProps>;
|
|
1701
|
+
export declare const SidebarUser: React.FC<SidebarUserProps>;
|
|
1522
1702
|
//#endregion
|
|
1523
1703
|
//#region src/connect/components/sidebar/sidebar.d.ts
|
|
1524
|
-
interface ConnectSidebarProps extends HTMLAttributes<HTMLElement>, ConnectSidebarHeaderProps, ConnectSidebarFooterProps {
|
|
1704
|
+
export interface ConnectSidebarProps extends HTMLAttributes<HTMLElement>, ConnectSidebarHeaderProps, ConnectSidebarFooterProps {
|
|
1525
1705
|
maxWidth?: string;
|
|
1526
1706
|
minWidth?: string;
|
|
1527
1707
|
headerContent?: React.ReactNode;
|
|
@@ -1531,17 +1711,17 @@ interface ConnectSidebarProps extends HTMLAttributes<HTMLElement>, ConnectSideba
|
|
|
1531
1711
|
etherscanUrl?: string;
|
|
1532
1712
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
1533
1713
|
}
|
|
1534
|
-
declare const ConnectSidebar: React.FC<ConnectSidebarProps>;
|
|
1714
|
+
export declare const ConnectSidebar: React.FC<ConnectSidebarProps>;
|
|
1535
1715
|
//#endregion
|
|
1536
1716
|
//#region src/connect/components/status-icon/sync-status-icon.d.ts
|
|
1537
|
-
type SyncStatusIconProps = Omit<ComponentPropsWithoutRef<typeof Icon>, "name"> & {
|
|
1717
|
+
export type SyncStatusIconProps = Omit<ComponentPropsWithoutRef<typeof Icon>, "name"> & {
|
|
1538
1718
|
syncStatus: SyncStatus$1;
|
|
1539
1719
|
overrideSyncIcons?: Partial<Record<SyncStatus$1, IconName>>;
|
|
1540
1720
|
};
|
|
1541
|
-
declare function SyncStatusIcon(props: SyncStatusIconProps):
|
|
1721
|
+
export declare function SyncStatusIcon(props: SyncStatusIconProps): import("react/jsx-runtime").JSX.Element;
|
|
1542
1722
|
//#endregion
|
|
1543
1723
|
//#region src/connect/components/tabs/tab-content.d.ts
|
|
1544
|
-
type TabContentProps = {
|
|
1724
|
+
export type TabContentProps = {
|
|
1545
1725
|
readonly label: ReactNode;
|
|
1546
1726
|
/**
|
|
1547
1727
|
* Stable tab value. Required when `label` is not a plain string (e.g. it
|
|
@@ -1553,31 +1733,25 @@ type TabContentProps = {
|
|
|
1553
1733
|
readonly children: ReactNode;
|
|
1554
1734
|
readonly disabled?: boolean;
|
|
1555
1735
|
};
|
|
1556
|
-
declare function TabContent(props: TabContentProps):
|
|
1736
|
+
export declare function TabContent(props: TabContentProps): import("react/jsx-runtime").JSX.Element;
|
|
1557
1737
|
//#endregion
|
|
1558
1738
|
//#region src/connect/components/tabs/tabs.d.ts
|
|
1559
|
-
declare function Tabs({
|
|
1560
|
-
children,
|
|
1561
|
-
defaultValue,
|
|
1562
|
-
onValueChange,
|
|
1563
|
-
listClassName
|
|
1564
|
-
}: {
|
|
1739
|
+
export declare function Tabs({ children, defaultValue, onValueChange, listClassName }: {
|
|
1565
1740
|
children: React$1.ReactNode;
|
|
1566
1741
|
defaultValue: string;
|
|
1567
|
-
onValueChange?: (value: string) => void;
|
|
1742
|
+
onValueChange?: (value: string) => void;
|
|
1743
|
+
/** Applied to the tab list row (not the panel content). */
|
|
1568
1744
|
listClassName?: string;
|
|
1569
|
-
}):
|
|
1745
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
1570
1746
|
//#endregion
|
|
1571
1747
|
//#region src/connect/components/theme-switch.d.ts
|
|
1572
|
-
declare function ThemeSwitch({
|
|
1573
|
-
horizontal
|
|
1574
|
-
}: {
|
|
1748
|
+
export declare function ThemeSwitch({ horizontal }: {
|
|
1575
1749
|
horizontal?: boolean;
|
|
1576
|
-
}):
|
|
1750
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
1577
1751
|
//#endregion
|
|
1578
1752
|
//#region src/connect/components/toggle/toggle.d.ts
|
|
1579
1753
|
type ToggleProps = Omit<ComponentPropsWithRef<"input">, "type">;
|
|
1580
|
-
declare const Toggle: react.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
1754
|
+
export declare const Toggle: import("react").ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
1581
1755
|
//#endregion
|
|
1582
1756
|
//#region src/connect/components/tooltip/tooltip.d.ts
|
|
1583
1757
|
type Props = TooltipProps & {
|
|
@@ -1586,106 +1760,106 @@ type Props = TooltipProps & {
|
|
|
1586
1760
|
readonly side?: "top" | "right" | "bottom" | "left";
|
|
1587
1761
|
readonly sideOffset?: number;
|
|
1588
1762
|
};
|
|
1589
|
-
declare function ConnectTooltip(props: Props):
|
|
1590
|
-
declare const ConnectTooltipProvider: react.FC<
|
|
1763
|
+
export declare function ConnectTooltip(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
1764
|
+
export declare const ConnectTooltipProvider: import("react").FC<import("@radix-ui/react-tooltip").TooltipProviderProps>;
|
|
1591
1765
|
//#endregion
|
|
1592
1766
|
//#region src/connect/components/upload-file-list/upload-file-list.d.ts
|
|
1593
|
-
type UploadFileListProps = ComponentPropsWithoutRef<"div"> & {
|
|
1767
|
+
export type UploadFileListProps = ComponentPropsWithoutRef<"div"> & {
|
|
1594
1768
|
readonly items: ReadonlyArray<UploadFileItemProps>;
|
|
1595
1769
|
readonly title?: string;
|
|
1596
1770
|
readonly defaultCollapsed?: boolean;
|
|
1597
1771
|
readonly onClose?: () => void;
|
|
1598
1772
|
};
|
|
1599
|
-
declare function UploadFileList(props: UploadFileListProps):
|
|
1773
|
+
export declare function UploadFileList(props: UploadFileListProps): import("react/jsx-runtime").JSX.Element;
|
|
1600
1774
|
//#endregion
|
|
1601
1775
|
//#region src/connect/constants/options.d.ts
|
|
1602
|
-
declare const defaultDriveOptions: readonly ["DOWNLOAD", "NEW_FOLDER", "RENAME", "SETTINGS"];
|
|
1603
|
-
declare const defaultNodeOptions: readonly ["RENAME", "DELETE", "DUPLICATE"];
|
|
1604
|
-
declare const normalNodeOptions: readonly ["DUPLICATE", "RENAME", "DELETE", "SETTINGS"];
|
|
1605
|
-
declare const debugNodeOptions: readonly ["ADD_TRIGGER", "REMOVE_TRIGGER", "ADD_INVALID_TRIGGER"];
|
|
1606
|
-
declare const nodeOptions: readonly ["DUPLICATE", "RENAME", "DELETE", "SETTINGS", "ADD_TRIGGER", "REMOVE_TRIGGER", "ADD_INVALID_TRIGGER"];
|
|
1607
|
-
declare const sharingTypeOptions: readonly [{
|
|
1776
|
+
export declare const defaultDriveOptions: readonly ["DOWNLOAD", "NEW_FOLDER", "RENAME", "SETTINGS"];
|
|
1777
|
+
export declare const defaultNodeOptions: readonly ["RENAME", "DELETE", "DUPLICATE"];
|
|
1778
|
+
export declare const normalNodeOptions: readonly ["DUPLICATE", "RENAME", "DELETE", "SETTINGS"];
|
|
1779
|
+
export declare const debugNodeOptions: readonly ["ADD_TRIGGER", "REMOVE_TRIGGER", "ADD_INVALID_TRIGGER"];
|
|
1780
|
+
export declare const nodeOptions: readonly ["DUPLICATE", "RENAME", "DELETE", "SETTINGS", "ADD_TRIGGER", "REMOVE_TRIGGER", "ADD_INVALID_TRIGGER"];
|
|
1781
|
+
export declare const sharingTypeOptions: readonly [{
|
|
1608
1782
|
readonly value: "LOCAL";
|
|
1609
|
-
readonly icon:
|
|
1783
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1610
1784
|
readonly description: "Only available to you";
|
|
1611
1785
|
}, {
|
|
1612
1786
|
readonly value: "CLOUD";
|
|
1613
|
-
readonly icon:
|
|
1787
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1614
1788
|
readonly description: "Only available to people in this drive";
|
|
1615
1789
|
}, {
|
|
1616
1790
|
readonly value: "PUBLIC";
|
|
1617
|
-
readonly icon:
|
|
1791
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1618
1792
|
readonly description: "Available to everyone";
|
|
1619
1793
|
readonly disabled: true;
|
|
1620
1794
|
}];
|
|
1621
|
-
declare const locationInfoByLocation: {
|
|
1795
|
+
export declare const locationInfoByLocation: {
|
|
1622
1796
|
readonly CLOUD: {
|
|
1623
1797
|
readonly title: "Secure cloud";
|
|
1624
1798
|
readonly description: "End to end encryption between members.";
|
|
1625
|
-
readonly icon:
|
|
1799
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1626
1800
|
};
|
|
1627
1801
|
readonly LOCAL: {
|
|
1628
1802
|
readonly title: "Local";
|
|
1629
1803
|
readonly description: "Private and only available to you.";
|
|
1630
|
-
readonly icon:
|
|
1804
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1631
1805
|
};
|
|
1632
1806
|
readonly SWITCHBOARD: {
|
|
1633
1807
|
readonly title: "Switchboard";
|
|
1634
1808
|
readonly description: "Public and available to everyone.";
|
|
1635
|
-
readonly icon:
|
|
1809
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1636
1810
|
};
|
|
1637
1811
|
};
|
|
1638
|
-
declare const debugNodeOptionsMap: {
|
|
1812
|
+
export declare const debugNodeOptionsMap: {
|
|
1639
1813
|
readonly ADD_TRIGGER: {
|
|
1640
1814
|
readonly label: "Add Trigger";
|
|
1641
|
-
readonly icon:
|
|
1815
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1642
1816
|
};
|
|
1643
1817
|
readonly REMOVE_TRIGGER: {
|
|
1644
1818
|
readonly label: "Remove Trigger";
|
|
1645
|
-
readonly icon:
|
|
1819
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1646
1820
|
};
|
|
1647
1821
|
readonly ADD_INVALID_TRIGGER: {
|
|
1648
1822
|
readonly label: "Add Trigger";
|
|
1649
|
-
readonly icon:
|
|
1823
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1650
1824
|
};
|
|
1651
1825
|
};
|
|
1652
|
-
declare const folderNodeDropdownOptions: {
|
|
1826
|
+
export declare const folderNodeDropdownOptions: {
|
|
1653
1827
|
readonly DOWNLOAD: {
|
|
1654
1828
|
readonly label: "Download as zip";
|
|
1655
|
-
readonly icon:
|
|
1829
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1656
1830
|
};
|
|
1657
1831
|
readonly DUPLICATE: {
|
|
1658
1832
|
readonly label: "Duplicate";
|
|
1659
|
-
readonly icon:
|
|
1833
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1660
1834
|
};
|
|
1661
1835
|
readonly RENAME: {
|
|
1662
1836
|
readonly label: "Rename";
|
|
1663
|
-
readonly icon:
|
|
1837
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1664
1838
|
};
|
|
1665
1839
|
readonly DELETE: {
|
|
1666
1840
|
readonly label: "Delete";
|
|
1667
|
-
readonly icon:
|
|
1841
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1668
1842
|
readonly className: "text-destructive";
|
|
1669
1843
|
};
|
|
1670
1844
|
};
|
|
1671
|
-
declare const fileNodeDropdownOptions: {
|
|
1672
|
-
DOWNLOAD: {
|
|
1673
|
-
label: string;
|
|
1674
|
-
icon: react_jsx_runtime0.JSX.Element;
|
|
1675
|
-
};
|
|
1845
|
+
export declare const fileNodeDropdownOptions: {
|
|
1676
1846
|
DUPLICATE: {
|
|
1677
1847
|
readonly label: "Duplicate";
|
|
1678
|
-
readonly icon:
|
|
1848
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1679
1849
|
};
|
|
1680
1850
|
RENAME: {
|
|
1681
1851
|
readonly label: "Rename";
|
|
1682
|
-
readonly icon:
|
|
1852
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1683
1853
|
};
|
|
1684
1854
|
DELETE: {
|
|
1685
1855
|
readonly label: "Delete";
|
|
1686
|
-
readonly icon:
|
|
1856
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
1687
1857
|
readonly className: "text-destructive";
|
|
1688
1858
|
};
|
|
1859
|
+
DOWNLOAD: {
|
|
1860
|
+
label: string;
|
|
1861
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1862
|
+
};
|
|
1689
1863
|
};
|
|
1690
1864
|
//#endregion
|
|
1691
1865
|
//#region src/connect/hooks/use-ens.d.ts
|
|
@@ -1715,14 +1889,14 @@ type UseEnsResult = {
|
|
|
1715
1889
|
isLoading: boolean;
|
|
1716
1890
|
error: Error | undefined;
|
|
1717
1891
|
};
|
|
1718
|
-
declare function useEns(address: `0x${string}` | undefined): UseEnsResult;
|
|
1892
|
+
export declare function useEns(address: `0x${string}` | undefined): UseEnsResult;
|
|
1719
1893
|
//#endregion
|
|
1720
1894
|
//#region src/connect/utils/address.d.ts
|
|
1721
|
-
declare function formatEthAddress(address: string): string;
|
|
1895
|
+
export declare function formatEthAddress(address: string): string;
|
|
1722
1896
|
//#endregion
|
|
1723
1897
|
//#region src/connect/utils/get-folder-status.d.ts
|
|
1724
1898
|
type SyncStatus = "INITIAL_SYNC" | "SYNCING" | "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR";
|
|
1725
|
-
type FileStatus = {
|
|
1899
|
+
export type FileStatus = {
|
|
1726
1900
|
path: string;
|
|
1727
1901
|
status?: SyncStatus;
|
|
1728
1902
|
};
|
|
@@ -1733,7 +1907,7 @@ type FileStatus = {
|
|
|
1733
1907
|
* @param sortedFiles - The sorted list of files.
|
|
1734
1908
|
* @returns The sync status of the folder.
|
|
1735
1909
|
*/
|
|
1736
|
-
declare const getFolderStatus: (folderPath: string, sortedFiles: FileStatus[]) => SyncStatus;
|
|
1910
|
+
export declare const getFolderStatus: (folderPath: string, sortedFiles: FileStatus[]) => SyncStatus;
|
|
1737
1911
|
/**
|
|
1738
1912
|
* Sorts an array of files by their status.
|
|
1739
1913
|
* The order priority is:
|
|
@@ -1746,13 +1920,14 @@ declare const getFolderStatus: (folderPath: string, sortedFiles: FileStatus[]) =
|
|
|
1746
1920
|
* @param files - The array of files to be sorted.
|
|
1747
1921
|
* @returns The sorted array of files.
|
|
1748
1922
|
*/
|
|
1749
|
-
declare const sortFilesByStatus: (files: FileStatus[]) => FileStatus[];
|
|
1923
|
+
export declare const sortFilesByStatus: (files: FileStatus[]) => FileStatus[];
|
|
1750
1924
|
/**
|
|
1751
1925
|
* Removes files with a status of 'SUCCESS' from the given array of FileStatus objects.
|
|
1752
1926
|
* @param files - An array of FileStatus objects.
|
|
1753
1927
|
* @returns A new array containing only the FileStatus objects with a status other than 'SUCCESS'.
|
|
1754
1928
|
*/
|
|
1755
|
-
declare const removeSuccessFiles: (files: FileStatus[]) => FileStatus[];
|
|
1929
|
+
export declare const removeSuccessFiles: (files: FileStatus[]) => FileStatus[];
|
|
1756
1930
|
//#endregion
|
|
1757
|
-
export {
|
|
1931
|
+
export { type AddPublicDriveFormProps, type AddRemoteDriveInput, type AppOptions, CONFLICT, Checkbox, type ColumnInfo, type ContainerComponent, type ControlPosition, type ControlSlot, type CustomToolbarControl, type CustomToolbarControlList, type CustomToolbarControls, type DocumentTimelineProps, type DocumentToolbarControlName, type DocumentToolbarProps, type DocumentToolbarWithChildrenProps, type DocumentToolbarWithCustomControlsProps, ERROR, type FilterClause, type FilterGroup, type FilterOperator, INITIAL_SYNC, Icon, MISSING, Modal, PowerhouseButton, type RevisionHistoryLegacyProps, type RevisionHistoryProps, type RevisionHistoryScopedProps, SUCCESS, SYNCING, type SortOptions, type TableInfo, type TimelineBarItem, type TimelineDividerItem, type TimelineItem, type ToolbarButtonClickHandler, type ToolbarButtonProps, type ToolbarControlComponent, type ToolbarControlComponents, syncStatuses, useWindowSize };
|
|
1932
|
+
export {};
|
|
1758
1933
|
//# sourceMappingURL=index.d.ts.map
|