@powerhousedao/design-system 6.0.0-dev.196 → 6.0.0-dev.197
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/{button-CRGaTu1H.d.ts → button-C8doazjv.d.ts} +1 -1
- package/dist/{button-CRGaTu1H.d.ts.map → button-C8doazjv.d.ts.map} +1 -1
- package/dist/{character-counter-sqhtpnM2.d.ts → character-counter-BWoglM2P.d.ts} +1 -1
- package/dist/{character-counter-sqhtpnM2.d.ts.map → character-counter-BWoglM2P.d.ts.map} +1 -1
- package/dist/{checkbox-WQJ1ELix.d.ts → checkbox-BueZ7Wg_.d.ts} +3 -3
- package/dist/{checkbox-WQJ1ELix.d.ts.map → checkbox-BueZ7Wg_.d.ts.map} +1 -1
- package/dist/{checkbox-base-kQOLgBSw.d.ts → checkbox-base-CZo-4eL0.d.ts} +1 -1
- package/dist/{checkbox-base-kQOLgBSw.d.ts.map → checkbox-base-CZo-4eL0.d.ts.map} +1 -1
- package/dist/{command-BVb5bGtc.d.ts → command--QCHwqST.d.ts} +8 -8
- package/dist/{command-BVb5bGtc.d.ts.map → command--QCHwqST.d.ts.map} +1 -1
- package/dist/connect/components/toast/toast.d.ts +16 -0
- package/dist/connect/components/toast/toast.d.ts.map +1 -0
- package/dist/connect/components/toast/toast.js +71 -0
- package/dist/connect/components/toast/toast.js.map +1 -0
- package/dist/connect/index.d.ts +3 -3
- package/dist/connect/index.js +3 -2
- package/dist/{connect-CrXsa33f.js → connect-D2wTJ-7r.js} +36 -366
- package/dist/connect-D2wTJ-7r.js.map +1 -0
- package/dist/{content-B-HaysyU.d.ts → content-DFFfr1mk.d.ts} +2 -2
- package/dist/{content-B-HaysyU.d.ts.map → content-DFFfr1mk.d.ts.map} +1 -1
- package/dist/document-timeline-FWiQhfIq.js +288 -0
- package/dist/document-timeline-FWiQhfIq.js.map +1 -0
- package/dist/{enum-field-gjkjO_WS.d.ts → enum-field-CBFI4x1f.d.ts} +4 -4
- package/dist/{enum-field-gjkjO_WS.d.ts.map → enum-field-CBFI4x1f.d.ts.map} +1 -1
- package/dist/{form-C1QA8m1k.d.ts → form-CKRKn0TQ.d.ts} +1 -1
- package/dist/{form-C1QA8m1k.d.ts.map → form-CKRKn0TQ.d.ts.map} +1 -1
- package/dist/{form-description-CJVMogCL.d.ts → form-description-CYkcMEzm.d.ts} +1 -1
- package/dist/{form-description-CJVMogCL.d.ts.map → form-description-CYkcMEzm.d.ts.map} +1 -1
- package/dist/{form-group-BDgpr5u8.d.ts → form-group-C8kL6pdZ.d.ts} +1 -1
- package/dist/form-group-C8kL6pdZ.d.ts.map +1 -0
- package/dist/{form-label-CCANBlbG.d.ts → form-label-b6nQi0XO.d.ts} +1 -1
- package/dist/{form-label-CCANBlbG.d.ts.map → form-label-b6nQi0XO.d.ts.map} +1 -1
- package/dist/{form-message-TYsO9BYM.d.ts → form-message-Dq72nBXz.d.ts} +1 -1
- package/dist/{form-message-TYsO9BYM.d.ts.map → form-message-Dq72nBXz.d.ts.map} +1 -1
- package/dist/{form-server-error-message-DM79ceCA.d.ts → form-server-error-message-DXbaiTfF.d.ts} +1 -1
- package/dist/{form-server-error-message-DM79ceCA.d.ts.map → form-server-error-message-DXbaiTfF.d.ts.map} +1 -1
- package/dist/{id-autocomplete-BafWC9wr.d.ts → id-autocomplete-CLC7zy-f.d.ts} +2 -2
- package/dist/{id-autocomplete-BafWC9wr.d.ts.map → id-autocomplete-CLC7zy-f.d.ts.map} +1 -1
- package/dist/{id-autocomplete-input-container-DxxI5DR6.d.ts → id-autocomplete-input-container-DsLTOkaT.d.ts} +2 -2
- package/dist/{id-autocomplete-input-container-DxxI5DR6.d.ts.map → id-autocomplete-input-container-DsLTOkaT.d.ts.map} +1 -1
- package/dist/{id-autocomplete-list-BHBavDro.d.ts → id-autocomplete-list-CFWHGDwL.d.ts} +2 -2
- package/dist/{id-autocomplete-list-BHBavDro.d.ts.map → id-autocomplete-list-CFWHGDwL.d.ts.map} +1 -1
- package/dist/{id-autocomplete-list-option-DlFexoVY.d.ts → id-autocomplete-list-option-fOnxSbzb.d.ts} +2 -2
- package/dist/{id-autocomplete-list-option-DlFexoVY.d.ts.map → id-autocomplete-list-option-fOnxSbzb.d.ts.map} +1 -1
- package/dist/{index-CuSjRT5A.d.ts → index-B6YyDoT1.d.ts} +1 -1
- package/dist/{index-CuSjRT5A.d.ts.map → index-B6YyDoT1.d.ts.map} +1 -1
- package/dist/{index-C37KRTG6.d.ts → index-U9etrdGX.d.ts} +3 -15
- package/dist/index-U9etrdGX.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{input-Bl0zw1zI.d.ts → input-BpEQjaWV.d.ts} +1 -1
- package/dist/{input-Bl0zw1zI.d.ts.map → input-BpEQjaWV.d.ts.map} +1 -1
- package/dist/{json-viewer-B5JtYTX7.d.ts → json-viewer-DaTgmzkS.d.ts} +1 -1
- package/dist/{json-viewer-B5JtYTX7.d.ts.map → json-viewer-DaTgmzkS.d.ts.map} +1 -1
- package/dist/{message-list-BZ9ku5cz.d.ts → message-list-C4mPpBBa.d.ts} +2 -2
- package/dist/{message-list-BZ9ku5cz.d.ts.map → message-list-C4mPpBBa.d.ts.map} +1 -1
- package/dist/{popover-CD29J7Ou.d.ts → popover-XSBOuSih.d.ts} +1 -1
- package/dist/{popover-CD29J7Ou.d.ts.map → popover-XSBOuSih.d.ts.map} +1 -1
- package/dist/{radio-9EYSHlFT.d.ts → radio-eL0Oy86J.d.ts} +1 -1
- package/dist/{radio-9EYSHlFT.d.ts.map → radio-eL0Oy86J.d.ts.map} +1 -1
- package/dist/{radio-group-BT-3-R48.d.ts → radio-group-Bkli6nUz.d.ts} +1 -1
- package/dist/{radio-group-BT-3-R48.d.ts.map → radio-group-Bkli6nUz.d.ts.map} +1 -1
- package/dist/{radio-group-field-BeQEWaTA.d.ts → radio-group-field-z7q-PVyY.d.ts} +2 -2
- package/dist/{radio-group-field-BeQEWaTA.d.ts.map → radio-group-field-z7q-PVyY.d.ts.map} +1 -1
- package/dist/rwa/index.d.ts +2 -2
- package/dist/rwa/index.js +11 -10
- package/dist/rwa/index.js.map +1 -1
- package/dist/{search-autocomplete-BRGCFNv4.d.ts → search-autocomplete-BJJkrZ1i.d.ts} +2 -2
- package/dist/{search-autocomplete-BRGCFNv4.d.ts.map → search-autocomplete-BJJkrZ1i.d.ts.map} +1 -1
- package/dist/{select-field-CxQiIXRy.d.ts → select-field-D27IGJrV.d.ts} +2 -2
- package/dist/{select-field-CxQiIXRy.d.ts.map → select-field-D27IGJrV.d.ts.map} +1 -1
- package/dist/{selected-content-DPH03IS_.d.ts → selected-content-CdIw4hcC.d.ts} +2 -2
- package/dist/{selected-content-DPH03IS_.d.ts.map → selected-content-CdIw4hcC.d.ts.map} +1 -1
- package/dist/{splitted-input-diff-Cvmajf1T.d.ts → splitted-input-diff-Bjrw-jzX.d.ts} +2 -2
- package/dist/{splitted-input-diff-Cvmajf1T.d.ts.map → splitted-input-diff-Bjrw-jzX.d.ts.map} +1 -1
- package/dist/{src-BX8sU0Tq.js → src-8xf1ueaA.js} +3 -3
- package/dist/src-8xf1ueaA.js.map +1 -0
- package/dist/{text-field-D_SU7LsS.d.ts → text-field-Bi7Ze25A.d.ts} +3 -3
- package/dist/{text-field-D_SU7LsS.d.ts.map → text-field-Bi7Ze25A.d.ts.map} +1 -1
- package/dist/{text-input-BHnj0vwk.d.ts → text-input-BAO78Lzx.d.ts} +3 -3
- package/dist/{text-input-BHnj0vwk.d.ts.map → text-input-BAO78Lzx.d.ts.map} +1 -1
- package/dist/{text-input-diff-BX11t5bF.d.ts → text-input-diff-Bx-zFOZd.d.ts} +2 -2
- package/dist/{text-input-diff-BX11t5bF.d.ts.map → text-input-diff-Bx-zFOZd.d.ts.map} +1 -1
- package/dist/{tooltip-CJfsoXUL.d.ts → tooltip-CsucyiCV.d.ts} +1 -1
- package/dist/{tooltip-CJfsoXUL.d.ts.map → tooltip-CsucyiCV.d.ts.map} +1 -1
- package/dist/{types-BWOaVvle.d.ts → types-BTq-St7H.d.ts} +1 -1
- package/dist/{types-BWOaVvle.d.ts.map → types-BTq-St7H.d.ts.map} +1 -1
- package/dist/{types-xiS8yRsl.d.ts → types-Bsn62tJB.d.ts} +1 -1
- package/dist/{types-xiS8yRsl.d.ts.map → types-Bsn62tJB.d.ts.map} +1 -1
- package/dist/{types-DY2V2IQi.d.ts → types-C04Q_Fan.d.ts} +1 -1
- package/dist/{types-DY2V2IQi.d.ts.map → types-C04Q_Fan.d.ts.map} +1 -1
- package/dist/ui/components/button/button.d.ts +1 -1
- package/dist/ui/components/button/button.js +2 -2
- package/dist/ui/components/button/button.js.map +1 -1
- package/dist/ui/components/character-counter/character-counter.d.ts +1 -1
- package/dist/ui/components/character-counter/character-counter.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox-base.d.ts +1 -1
- package/dist/ui/components/checkbox/checkbox-base.js +2 -2
- package/dist/ui/components/checkbox/checkbox-base.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox.d.ts +1 -1
- package/dist/ui/components/checkbox/checkbox.js +2 -2
- package/dist/ui/components/checkbox/checkbox.js.map +1 -1
- package/dist/ui/components/command/command.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/ui/components/form/form.d.ts +1 -1
- 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.js.map +1 -1
- package/dist/ui/components/form-description/form-description.d.ts +1 -1
- package/dist/ui/components/form-description/form-description.js +1 -1
- package/dist/ui/components/form-description/form-description.js.map +1 -1
- package/dist/ui/components/form-group/form-group.d.ts +1 -1
- package/dist/ui/components/form-group/form-group.js.map +1 -1
- package/dist/ui/components/form-label/form-label.d.ts +1 -1
- package/dist/ui/components/form-label/form-label.js +1 -1
- package/dist/ui/components/form-label/form-label.js.map +1 -1
- package/dist/ui/components/form-message/form-message.d.ts +1 -1
- package/dist/ui/components/form-message/form-message.js +1 -1
- package/dist/ui/components/form-message/form-message.js.map +1 -1
- package/dist/ui/components/form-message/form-server-error-message.d.ts +1 -1
- package/dist/ui/components/form-message/form-server-error-message.js.map +1 -1
- package/dist/ui/components/form-message/message-list.d.ts +1 -1
- package/dist/ui/components/form-message/message-list.js +1 -1
- package/dist/ui/components/form-message/message-list.js.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list.js +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete.d.ts +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete.js +2 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete.js.map +1 -1
- package/dist/ui/components/id-autocomplete/types.d.ts +1 -1
- package/dist/ui/components/id-autocomplete/use-id-autocomplete.d.ts +1 -1
- package/dist/ui/components/id-autocomplete/use-id-autocomplete.js.map +1 -1
- package/dist/ui/components/index.d.ts +36 -36
- package/dist/ui/components/input/input.d.ts +1 -1
- 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 +1 -1
- package/dist/ui/components/input/splitted-input-diff.js +1 -1
- package/dist/ui/components/input/splitted-input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/input-diff.js +1 -1
- package/dist/ui/components/input/subcomponent/input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.d.ts +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.js +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.js.map +1 -1
- package/dist/ui/components/json-viewer/json-viewer.d.ts +1 -1
- 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 +1 -1
- package/dist/ui/components/popover/popover.js +2 -2
- package/dist/ui/components/popover/popover.js.map +1 -1
- package/dist/ui/components/radio-group-field/radio-group-field.d.ts +1 -1
- package/dist/ui/components/radio-group-field/radio-group-field.js +3 -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 +1 -1
- 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 +1 -1
- package/dist/ui/components/radio-group-field/radio.js +2 -2
- package/dist/ui/components/radio-group-field/radio.js.map +1 -1
- package/dist/ui/components/search-autocomplete/index.d.ts +3 -3
- package/dist/ui/components/search-autocomplete/search-autocomplete.d.ts +1 -1
- package/dist/ui/components/search-autocomplete/search-autocomplete.js +1 -1
- package/dist/ui/components/search-autocomplete/search-autocomplete.js.map +1 -1
- package/dist/ui/components/search-autocomplete/types.d.ts +1 -1
- package/dist/ui/components/search-autocomplete/use-search-autocomplete.d.ts +1 -1
- package/dist/ui/components/search-autocomplete/use-search-autocomplete.js.map +1 -1
- package/dist/ui/components/select-field/content.d.ts +1 -1
- 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 +1 -1
- package/dist/ui/components/select-field/select-field.js +2 -2
- package/dist/ui/components/select-field/select-field.js.map +1 -1
- package/dist/ui/components/select-field/selected-content.d.ts +1 -1
- 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 +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 +1 -1
- package/dist/ui/components/select-field/use-select-field.js.map +1 -1
- package/dist/ui/components/text-field/text-field.d.ts +1 -1
- package/dist/ui/components/text-field/text-field.js +1 -1
- package/dist/ui/components/text-field/text-field.js.map +1 -1
- package/dist/ui/components/text-input/text-input-diff.d.ts +1 -1
- package/dist/ui/components/text-input/text-input-diff.js.map +1 -1
- package/dist/ui/components/text-input/text-input.d.ts +1 -1
- package/dist/ui/components/text-input/text-input.js +2 -2
- package/dist/ui/components/text-input/text-input.js.map +1 -1
- package/dist/ui/components/text-input/types.d.ts +1 -1
- package/dist/ui/components/tooltip/tooltip.d.ts +1 -1
- package/dist/ui/components/tooltip/tooltip.js +2 -2
- package/dist/ui/components/tooltip/tooltip.js.map +1 -1
- package/dist/ui/components/types.d.ts +1 -1
- package/dist/ui/components/value-transformer/value-transformer.d.ts +1 -1
- package/dist/ui/components/value-transformer/value-transformer.js +1 -1
- package/dist/ui/components/value-transformer/value-transformer.js.map +1 -1
- package/dist/ui/components/with-field-validation/with-field-validation.d.ts +1 -1
- 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 +38 -38
- package/dist/ui/lib/date-picker.d.ts +1 -1
- package/dist/ui/lib/date-picker.js.map +1 -1
- package/dist/ui/lib/date-time-picker.js.map +1 -1
- package/dist/ui/lib/deep-equal.js.map +1 -1
- package/dist/ui/lib/is-empty.js.map +1 -1
- package/dist/ui/lib/shared-value-transformers.d.ts +1 -1
- package/dist/ui/lib/shared-value-transformers.js.map +1 -1
- package/dist/ui/lib/types.d.ts +1 -1
- package/dist/ui/lib/value-cast.js.map +1 -1
- package/dist/ui/types.d.ts +2 -2
- package/dist/{use-id-autocomplete-FGV0tDeG.d.ts → use-id-autocomplete-JE8w4UXf.d.ts} +2 -2
- package/dist/{use-id-autocomplete-FGV0tDeG.d.ts.map → use-id-autocomplete-JE8w4UXf.d.ts.map} +1 -1
- package/dist/{use-search-autocomplete-BYRTKJjd.d.ts → use-search-autocomplete-IfcQ_gKh.d.ts} +2 -2
- package/dist/{use-search-autocomplete-BYRTKJjd.d.ts.map → use-search-autocomplete-IfcQ_gKh.d.ts.map} +1 -1
- package/dist/{value-transformer-BDrKuBqy.d.ts → value-transformer-2yvrA5Rp.d.ts} +2 -2
- package/dist/{value-transformer-BDrKuBqy.d.ts.map → value-transformer-2yvrA5Rp.d.ts.map} +1 -1
- package/dist/{with-field-validation-DQwlMTzr.d.ts → with-field-validation-YcGrdIrv.d.ts} +2 -2
- package/dist/{with-field-validation-DQwlMTzr.d.ts.map → with-field-validation-YcGrdIrv.d.ts.map} +1 -1
- package/package.json +13 -5
- package/dist/connect-CrXsa33f.js.map +0 -1
- package/dist/form-group-BDgpr5u8.d.ts.map +0 -1
- package/dist/index-C37KRTG6.d.ts.map +0 -1
- package/dist/src-BX8sU0Tq.js.map +0 -1
- /package/dist/{index-C2geSgue.d.ts → index-E7Wvm5uX.d.ts} +0 -0
- /package/dist/{index-Dw5cCt-A.d.ts → index-J3R2mDFQ.d.ts} +0 -0
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as ConnectTooltipProvider, r as ConnectTooltip } from "./document-timeline-FWiQhfIq.js";
|
|
2
|
+
import { C as DropdownMenuTrigger, b as DropdownMenuContent, c as SidebarFooter, d as Pagination, f as mergeClassNameProps, g as getDimensions, h as Icon, l as SidebarHeader, m as Modal, p as PackageAnimation, r as usePagination, s as Sidebar, t as cn, u as SidebarPanel, w as PowerhouseButton, x as DropdownMenuItem, y as DropdownMenu } from "./src-8xf1ueaA.js";
|
|
2
3
|
import { Popover, PopoverContent, PopoverTrigger } from "./ui/components/popover/popover.js";
|
|
3
4
|
import { SelectFieldRaw } from "./ui/components/select-field/select-field.js";
|
|
4
5
|
import { Input } from "./ui/components/input/input.js";
|
|
5
6
|
import { JsonViewer } from "./ui/components/json-viewer/json-viewer.js";
|
|
6
7
|
import { SearchAutocomplete } from "./ui/components/search-autocomplete/search-autocomplete.js";
|
|
7
|
-
import React, { Fragment, createElement, forwardRef, memo, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
8
|
+
import React, { Fragment, Suspense, createElement, forwardRef, lazy, memo, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
8
9
|
import { twJoin, twMerge } from "tailwind-merge";
|
|
9
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { Content, Portal, Provider, Root, Trigger } from "@radix-ui/react-tooltip";
|
|
11
11
|
import { Controller, useForm } from "react-hook-form";
|
|
12
|
-
import { format
|
|
12
|
+
import { format } from "date-fns";
|
|
13
13
|
import { useCopyToClipboard, useDebounceValue, useEventListener, useOnClickOutside } from "usehooks-ts";
|
|
14
|
-
import {
|
|
14
|
+
import { SyncOperationStatus, addFolder, exportDocument, getSyncStatusSync, setSelectedDrive, setSelectedNode, setSelectedTimelineItem, showDeleteNodeModal, showPHModal, showRevisionHistory, useDocumentById, useGetSwitchboardLink, useIsDragAndDropEnabled, useNodeActions, useNodeParentFolderById, useOnDropFile, useSelectedDocumentSafe, useSelectedDriveId, useSelectedDriveSafe, useSelectedNodePath, useUserPermissions } from "@powerhousedao/reactor-browser";
|
|
15
15
|
import Select, { components } from "react-select";
|
|
16
|
-
import { Content
|
|
16
|
+
import { Content, List, Root, Trigger } from "@radix-ui/react-tabs";
|
|
17
17
|
import { garbageCollect, redo, sortOperations, undo } from "@powerhousedao/shared/document-model";
|
|
18
18
|
import { isValidName } from "@powerhousedao/shared/document-drive";
|
|
19
19
|
import { capitalCase } from "change-case";
|
|
20
20
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
21
|
-
import { ToastContainer, toast } from "react-toastify";
|
|
22
21
|
//#region src/connect/components/account-popover/account-popover.tsx
|
|
23
22
|
const AccountPopover = ({ children, content }) => {
|
|
24
23
|
return /* @__PURE__ */ jsxs(Popover, { children: [/* @__PURE__ */ jsx(PopoverTrigger, {
|
|
@@ -528,9 +527,9 @@ function SchemaTreeSidebar({ schema, tables, selectedTable, onSelectTable, onRef
|
|
|
528
527
|
//#endregion
|
|
529
528
|
//#region src/connect/components/select/select.tsx
|
|
530
529
|
function fixedForwardRef(render) {
|
|
531
|
-
return forwardRef(render);
|
|
530
|
+
return /* @__PURE__ */ forwardRef(render);
|
|
532
531
|
}
|
|
533
|
-
const ConnectSelect = fixedForwardRef(function Select(props, ref) {
|
|
532
|
+
const ConnectSelect = /* @__PURE__ */ fixedForwardRef(function Select(props, ref) {
|
|
534
533
|
const { items, value, id, onChange, containerClassName, menuClassName, itemClassName, absolutePositionMenu = false, borderRadius = "6px" } = props;
|
|
535
534
|
const [showItems, setShowItems] = useState(false);
|
|
536
535
|
const selectedItem = getItemByValue(value) ?? items[0];
|
|
@@ -1045,6 +1044,7 @@ function TableView({ columns, rows, pagination, onPageChange, onSort, currentSor
|
|
|
1045
1044
|
}
|
|
1046
1045
|
//#endregion
|
|
1047
1046
|
//#region src/connect/components/db-explorer/db-explorer.tsx
|
|
1047
|
+
/** Props for the main DBExplorer component */
|
|
1048
1048
|
const DEFAULT_PAGE_SIZE = 50;
|
|
1049
1049
|
function DBExplorer({ schema, getTables, getTableRows, getDefaultSort, pageSize = DEFAULT_PAGE_SIZE, onImportDb, onExportDb, pgVersionControl }) {
|
|
1050
1050
|
const fileInputRef = useRef(null);
|
|
@@ -1456,7 +1456,7 @@ function TabContent(props) {
|
|
|
1456
1456
|
//#endregion
|
|
1457
1457
|
//#region src/connect/components/tabs/tabs.tsx
|
|
1458
1458
|
function Tabs({ children, defaultValue }) {
|
|
1459
|
-
return /* @__PURE__ */ jsxs(Root
|
|
1459
|
+
return /* @__PURE__ */ jsxs(Root, {
|
|
1460
1460
|
defaultValue,
|
|
1461
1461
|
className: "flex min-h-0 flex-1 flex-col gap-2",
|
|
1462
1462
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -1464,9 +1464,9 @@ function Tabs({ children, defaultValue }) {
|
|
|
1464
1464
|
children: /* @__PURE__ */ jsx(List, {
|
|
1465
1465
|
className: "flex w-full gap-x-2 rounded-xl bg-slate-50 p-1 text-sm font-semibold text-gray-600 outline-none",
|
|
1466
1466
|
children: React.Children.map(children, (child, i) => {
|
|
1467
|
-
if (
|
|
1467
|
+
if (!/* @__PURE__ */ React.isValidElement(child)) return;
|
|
1468
1468
|
const { label, disabled } = child.props;
|
|
1469
|
-
return /* @__PURE__ */ jsx(Trigger
|
|
1469
|
+
return /* @__PURE__ */ jsx(Trigger, {
|
|
1470
1470
|
className: "data-[state='active']:tab-shadow ata-disabled:cursor-not-allowed data-disabled:text-gray-400 flex h-7 flex-1 items-center justify-center rounded-lg transition duration-300 data-[state='active']:bg-gray-50 data-[state='active']:text-gray-900",
|
|
1471
1471
|
value: label,
|
|
1472
1472
|
disabled: disabled ?? false,
|
|
@@ -1477,9 +1477,9 @@ function Tabs({ children, defaultValue }) {
|
|
|
1477
1477
|
}), /* @__PURE__ */ jsx("div", {
|
|
1478
1478
|
className: "mt-3 min-h-0 flex-1 rounded-md bg-white",
|
|
1479
1479
|
children: React.Children.map(children, (child, i) => {
|
|
1480
|
-
if (
|
|
1480
|
+
if (!/* @__PURE__ */ React.isValidElement(child)) return;
|
|
1481
1481
|
const { label } = child.props;
|
|
1482
|
-
return /* @__PURE__ */ jsx(Content
|
|
1482
|
+
return /* @__PURE__ */ jsx(Content, {
|
|
1483
1483
|
className: "h-full",
|
|
1484
1484
|
value: label,
|
|
1485
1485
|
children: child
|
|
@@ -1514,272 +1514,6 @@ function DocumentStateViewer({ state, ignoredScopes = ["auth", "document"], defa
|
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
1516
|
//#endregion
|
|
1517
|
-
//#region src/connect/components/tooltip/tooltip.tsx
|
|
1518
|
-
function ConnectTooltip(props) {
|
|
1519
|
-
const { children, content, open, defaultOpen, onOpenChange, className, side = "top", sideOffset = 5, delayDuration, ...rest } = props;
|
|
1520
|
-
return /* @__PURE__ */ jsxs(Root, {
|
|
1521
|
-
defaultOpen,
|
|
1522
|
-
delayDuration,
|
|
1523
|
-
onOpenChange,
|
|
1524
|
-
open,
|
|
1525
|
-
children: [/* @__PURE__ */ jsx(Trigger, {
|
|
1526
|
-
asChild: true,
|
|
1527
|
-
children
|
|
1528
|
-
}), /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Content, {
|
|
1529
|
-
...rest,
|
|
1530
|
-
side,
|
|
1531
|
-
sideOffset,
|
|
1532
|
-
className: twMerge("shadow-tooltip z-50 rounded-lg border border-gray-200 bg-white p-2 text-xs", className),
|
|
1533
|
-
children: content
|
|
1534
|
-
}) })]
|
|
1535
|
-
});
|
|
1536
|
-
}
|
|
1537
|
-
const ConnectTooltipProvider = Provider;
|
|
1538
|
-
//#endregion
|
|
1539
|
-
//#region src/connect/components/document-timeline/components/h-divider.tsx
|
|
1540
|
-
const HDivider = (props) => {
|
|
1541
|
-
const { className, timestampUtcMs: timestamp, title, subtitle, onClick, isSelected = false } = props;
|
|
1542
|
-
const [open, setOpen] = useState(false);
|
|
1543
|
-
const hasContent = !!title || !!subtitle || !!timestamp;
|
|
1544
|
-
useEffect(() => {
|
|
1545
|
-
if (open) {
|
|
1546
|
-
setOpen(false);
|
|
1547
|
-
setTimeout(() => hasContent && setOpen(true), 50);
|
|
1548
|
-
}
|
|
1549
|
-
}, [
|
|
1550
|
-
title,
|
|
1551
|
-
subtitle,
|
|
1552
|
-
timestamp,
|
|
1553
|
-
hasContent
|
|
1554
|
-
]);
|
|
1555
|
-
const formatTimestamp = (isoString) => {
|
|
1556
|
-
if (!isoString) return "";
|
|
1557
|
-
try {
|
|
1558
|
-
return formatDistanceToNow(new Date(isoString), { addSuffix: true });
|
|
1559
|
-
} catch {
|
|
1560
|
-
return isoString;
|
|
1561
|
-
}
|
|
1562
|
-
};
|
|
1563
|
-
const tooltipContent = /* @__PURE__ */ jsxs("div", {
|
|
1564
|
-
className: "flex flex-col text-xs",
|
|
1565
|
-
children: [
|
|
1566
|
-
!!title && /* @__PURE__ */ jsx("div", { children: title }),
|
|
1567
|
-
!!subtitle && /* @__PURE__ */ jsx("div", {
|
|
1568
|
-
className: "text-gray-300",
|
|
1569
|
-
children: subtitle
|
|
1570
|
-
}),
|
|
1571
|
-
!!timestamp && /* @__PURE__ */ jsx("div", { children: formatTimestamp(timestamp) })
|
|
1572
|
-
]
|
|
1573
|
-
});
|
|
1574
|
-
const handleMouseEnter = () => {
|
|
1575
|
-
if (hasContent) setOpen(true);
|
|
1576
|
-
};
|
|
1577
|
-
const handleMouseLeave = () => {
|
|
1578
|
-
setOpen(false);
|
|
1579
|
-
};
|
|
1580
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
1581
|
-
className: "relative",
|
|
1582
|
-
onMouseEnter: handleMouseEnter,
|
|
1583
|
-
onMouseLeave: handleMouseLeave,
|
|
1584
|
-
children: [isSelected && /* @__PURE__ */ jsx(Icon, {
|
|
1585
|
-
name: "TimelineCaret",
|
|
1586
|
-
color: "#4EA9FF",
|
|
1587
|
-
size: 10,
|
|
1588
|
-
className: "absolute top-[-11px] z-40"
|
|
1589
|
-
}), /* @__PURE__ */ jsx(ConnectTooltip, {
|
|
1590
|
-
className: "rounded-md bg-gray-900 text-white",
|
|
1591
|
-
content: tooltipContent,
|
|
1592
|
-
open: open && hasContent,
|
|
1593
|
-
onOpenChange: setOpen,
|
|
1594
|
-
delayDuration: 0,
|
|
1595
|
-
side: "bottom",
|
|
1596
|
-
sideOffset: 5,
|
|
1597
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
1598
|
-
className: twMerge("mx-0.5 flex h-[25px] w-1.5 cursor-pointer flex-col items-center justify-center rounded-[2px] hover:bg-blue-300", isSelected && "bg-blue-300", className),
|
|
1599
|
-
onClick,
|
|
1600
|
-
"data-title": title,
|
|
1601
|
-
"data-subtitle": subtitle,
|
|
1602
|
-
"data-timestamp": timestamp,
|
|
1603
|
-
children: /* @__PURE__ */ jsx("div", { className: "h-0.5 w-1 rounded-full bg-gray-500" })
|
|
1604
|
-
})
|
|
1605
|
-
})]
|
|
1606
|
-
});
|
|
1607
|
-
};
|
|
1608
|
-
//#endregion
|
|
1609
|
-
//#region src/connect/components/document-timeline/components/timeline-bar.tsx
|
|
1610
|
-
const getBarHeight = (size = 0) => {
|
|
1611
|
-
switch (true) {
|
|
1612
|
-
case size <= 0: return "h-[1px]";
|
|
1613
|
-
case size === 1: return "h-[3px]";
|
|
1614
|
-
case size === 2: return "h-[6px]";
|
|
1615
|
-
case size === 3: return "h-[9px]";
|
|
1616
|
-
case size >= 4: return "h-[12px]";
|
|
1617
|
-
default: return "h-[1px]";
|
|
1618
|
-
}
|
|
1619
|
-
};
|
|
1620
|
-
const formatTimestamp$1 = (isoString) => {
|
|
1621
|
-
if (!isoString) return "";
|
|
1622
|
-
try {
|
|
1623
|
-
return format(parseISO(isoString), "HH:mm, dd, MMMM");
|
|
1624
|
-
} catch {
|
|
1625
|
-
return isoString;
|
|
1626
|
-
}
|
|
1627
|
-
};
|
|
1628
|
-
const TimelineBar = ({ onClick, className, timestampUtcMs: timestamp, additions, deletions, addSize = 0, delSize = 0, isSelected = false }) => {
|
|
1629
|
-
const [open, setOpen] = useState(false);
|
|
1630
|
-
const noChanges = addSize === 0 && delSize === 0;
|
|
1631
|
-
const addBarHeight = getBarHeight(addSize);
|
|
1632
|
-
const delBarHeight = getBarHeight(delSize);
|
|
1633
|
-
const tooltipContent = /* @__PURE__ */ jsxs("div", {
|
|
1634
|
-
className: "flex flex-col text-xs",
|
|
1635
|
-
children: [
|
|
1636
|
-
/* @__PURE__ */ jsx("div", { children: formatTimestamp$1(timestamp) }),
|
|
1637
|
-
/* @__PURE__ */ jsx("div", {
|
|
1638
|
-
className: "text-green-900",
|
|
1639
|
-
children: `${additions} additions +`
|
|
1640
|
-
}),
|
|
1641
|
-
/* @__PURE__ */ jsx("div", {
|
|
1642
|
-
className: "text-red-700",
|
|
1643
|
-
children: `${deletions} deletions -`
|
|
1644
|
-
})
|
|
1645
|
-
]
|
|
1646
|
-
});
|
|
1647
|
-
const handleMouseEnter = () => {
|
|
1648
|
-
if (!noChanges) setOpen(true);
|
|
1649
|
-
};
|
|
1650
|
-
const handleMouseLeave = () => {
|
|
1651
|
-
setOpen(false);
|
|
1652
|
-
};
|
|
1653
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
1654
|
-
className: "relative",
|
|
1655
|
-
onMouseEnter: handleMouseEnter,
|
|
1656
|
-
onMouseLeave: handleMouseLeave,
|
|
1657
|
-
children: [isSelected && /* @__PURE__ */ jsx(Icon, {
|
|
1658
|
-
name: "TimelineCaret",
|
|
1659
|
-
color: "#4EA9FF",
|
|
1660
|
-
size: 10,
|
|
1661
|
-
className: "absolute left-[-2px] top-[-11px] z-40"
|
|
1662
|
-
}), noChanges ? /* @__PURE__ */ jsx("div", {
|
|
1663
|
-
className: twMerge("flex h-[25px] w-1.5 cursor-pointer flex-col items-center justify-center rounded-[2px] hover:bg-blue-300", className),
|
|
1664
|
-
"data-timestamp": timestamp,
|
|
1665
|
-
onClick,
|
|
1666
|
-
children: /* @__PURE__ */ jsx("div", { className: "size-[3px] rounded-full bg-gray-500" })
|
|
1667
|
-
}) : /* @__PURE__ */ jsx(ConnectTooltip, {
|
|
1668
|
-
className: "rounded-md bg-gray-900 text-white",
|
|
1669
|
-
content: tooltipContent,
|
|
1670
|
-
open,
|
|
1671
|
-
onOpenChange: setOpen,
|
|
1672
|
-
delayDuration: 0,
|
|
1673
|
-
side: "bottom",
|
|
1674
|
-
sideOffset: 5,
|
|
1675
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
1676
|
-
className: twMerge("flex h-[25px] w-1.5 cursor-pointer flex-col items-center justify-center rounded-[2px] hover:bg-blue-300", className, isSelected && "bg-blue-300"),
|
|
1677
|
-
"data-timestamp": timestamp,
|
|
1678
|
-
onClick,
|
|
1679
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
1680
|
-
className: "flex h-3 w-0.5 items-end",
|
|
1681
|
-
children: /* @__PURE__ */ jsx("div", { className: twMerge("h-3 w-0.5 rounded-t-full bg-green-600", addBarHeight) })
|
|
1682
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
1683
|
-
className: "flex h-3 w-0.5 items-start",
|
|
1684
|
-
children: /* @__PURE__ */ jsx("div", { className: twMerge("h-3 w-0.5 rounded-b-full bg-red-600", delBarHeight) })
|
|
1685
|
-
})]
|
|
1686
|
-
})
|
|
1687
|
-
})]
|
|
1688
|
-
});
|
|
1689
|
-
};
|
|
1690
|
-
//#endregion
|
|
1691
|
-
//#region src/connect/components/document-timeline/document-timeline.tsx
|
|
1692
|
-
const defaultTimeLineItem = {
|
|
1693
|
-
id: "default",
|
|
1694
|
-
type: "bar",
|
|
1695
|
-
addSize: 0,
|
|
1696
|
-
delSize: 0
|
|
1697
|
-
};
|
|
1698
|
-
const DocumentTimeline = (props) => {
|
|
1699
|
-
const { timeline = [], onItemClick } = props;
|
|
1700
|
-
const [selectedItem, setSelectedItem] = useState(null);
|
|
1701
|
-
const scrollContainerRef = useRef(null);
|
|
1702
|
-
const handleClick = (item) => {
|
|
1703
|
-
if (item.id === selectedItem || item.id === defaultTimeLineItem.id) {
|
|
1704
|
-
onItemClick?.(null);
|
|
1705
|
-
setSelectedItem(null);
|
|
1706
|
-
} else {
|
|
1707
|
-
onItemClick?.(item);
|
|
1708
|
-
setSelectedItem(item.id);
|
|
1709
|
-
}
|
|
1710
|
-
};
|
|
1711
|
-
const mergedTimelineItems = [...timeline, defaultTimeLineItem];
|
|
1712
|
-
const [unselectedItems, selectedItems] = useMemo(() => {
|
|
1713
|
-
const indexSelected = mergedTimelineItems.findIndex((item) => item.id === selectedItem);
|
|
1714
|
-
return indexSelected === -1 ? [mergedTimelineItems, []] : [mergedTimelineItems.slice(0, indexSelected), mergedTimelineItems.slice(indexSelected)];
|
|
1715
|
-
}, [mergedTimelineItems, selectedItem]);
|
|
1716
|
-
const renderTimelineItems = useCallback((items) => {
|
|
1717
|
-
return items.map((item) => {
|
|
1718
|
-
if (item.type === "divider") {
|
|
1719
|
-
const { timestampUtcMs, title, subtitle } = item;
|
|
1720
|
-
return /* @__PURE__ */ jsx(HDivider, {
|
|
1721
|
-
timestampUtcMs,
|
|
1722
|
-
title,
|
|
1723
|
-
subtitle,
|
|
1724
|
-
onClick: () => handleClick(item),
|
|
1725
|
-
isSelected: item.id === selectedItem
|
|
1726
|
-
}, item.id);
|
|
1727
|
-
}
|
|
1728
|
-
return /* @__PURE__ */ jsx(TimelineBar, {
|
|
1729
|
-
timestampUtcMs: item.timestampUtcMs,
|
|
1730
|
-
addSize: item.addSize,
|
|
1731
|
-
delSize: item.delSize,
|
|
1732
|
-
additions: item.additions,
|
|
1733
|
-
deletions: item.deletions,
|
|
1734
|
-
isSelected: item.id === selectedItem,
|
|
1735
|
-
onClick: () => handleClick(item)
|
|
1736
|
-
}, item.id);
|
|
1737
|
-
});
|
|
1738
|
-
}, [handleClick, selectedItem]);
|
|
1739
|
-
const unselectedContent = useMemo(() => renderTimelineItems(unselectedItems), [unselectedItems, renderTimelineItems]);
|
|
1740
|
-
const selectedContent = useMemo(() => renderTimelineItems(selectedItems), [selectedItems, renderTimelineItems]);
|
|
1741
|
-
useEffect(() => {
|
|
1742
|
-
if (scrollContainerRef.current) scrollContainerRef.current.scrollLeft = scrollContainerRef.current.scrollWidth;
|
|
1743
|
-
}, []);
|
|
1744
|
-
return /* @__PURE__ */ jsx(ConnectTooltipProvider, {
|
|
1745
|
-
delayDuration: 0,
|
|
1746
|
-
skipDelayDuration: 0,
|
|
1747
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
1748
|
-
className: "relative h-[36px] w-full",
|
|
1749
|
-
children: [
|
|
1750
|
-
/* @__PURE__ */ jsx("div", {
|
|
1751
|
-
className: "absolute left-[0px] z-[20] h-[17px] w-[6px] bg-white",
|
|
1752
|
-
children: /* @__PURE__ */ jsx("div", { className: "mt-[11px] h-[6px] w-[6px] rounded-tl-md bg-slate-50" })
|
|
1753
|
-
}),
|
|
1754
|
-
/* @__PURE__ */ jsx("div", {
|
|
1755
|
-
className: "absolute right-[0px] top-[11px] z-[20] h-[6px] w-[6px] bg-white",
|
|
1756
|
-
children: /* @__PURE__ */ jsx("div", { className: "h-[6px] w-[6px] rounded-tr-md bg-slate-50" })
|
|
1757
|
-
}),
|
|
1758
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-x-0 bottom-0 h-[25px] rounded-md bg-slate-50" }),
|
|
1759
|
-
/* @__PURE__ */ jsx("div", {
|
|
1760
|
-
className: "absolute inset-x-0 bottom-0 h-[36px]",
|
|
1761
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
1762
|
-
ref: scrollContainerRef,
|
|
1763
|
-
className: "h-full overflow-x-auto rounded-md",
|
|
1764
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
1765
|
-
className: "ml-auto flex h-[36px] w-max items-end px-2 pb-0",
|
|
1766
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
1767
|
-
className: "flex",
|
|
1768
|
-
children: unselectedContent
|
|
1769
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
1770
|
-
className: "flex rounded-sm bg-blue-200",
|
|
1771
|
-
children: selectedContent
|
|
1772
|
-
})]
|
|
1773
|
-
})
|
|
1774
|
-
})
|
|
1775
|
-
}),
|
|
1776
|
-
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute bottom-0 left-0 z-10 h-[25px] w-2 rounded-l-md bg-slate-50" }),
|
|
1777
|
-
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute bottom-0 right-0 z-10 h-[25px] w-2 rounded-r-md bg-slate-50" })
|
|
1778
|
-
]
|
|
1779
|
-
})
|
|
1780
|
-
});
|
|
1781
|
-
};
|
|
1782
|
-
//#endregion
|
|
1783
1517
|
//#region src/connect/components/document-toolbar/utils/use-document-undo-redo.ts
|
|
1784
1518
|
function useDocumentUndoRedo(documentId) {
|
|
1785
1519
|
const [document, dispatch] = useDocumentById(documentId);
|
|
@@ -1802,6 +1536,7 @@ function useDocumentUndoRedo(documentId) {
|
|
|
1802
1536
|
}
|
|
1803
1537
|
//#endregion
|
|
1804
1538
|
//#region src/connect/components/document-toolbar/document-toolbar.tsx
|
|
1539
|
+
const DocumentTimeline = /* @__PURE__ */ lazy(() => import("./document-timeline-FWiQhfIq.js").then((n) => n.n).then((m) => ({ default: m.DocumentTimeline })));
|
|
1805
1540
|
function useDocumentTimeline(documentId) {
|
|
1806
1541
|
return [];
|
|
1807
1542
|
}
|
|
@@ -1965,9 +1700,12 @@ const DocumentToolbar = (props) => {
|
|
|
1965
1700
|
}),
|
|
1966
1701
|
showTimeline && /* @__PURE__ */ jsx("div", {
|
|
1967
1702
|
className: "mt-2 w-full",
|
|
1968
|
-
children: /* @__PURE__ */ jsx(
|
|
1969
|
-
|
|
1970
|
-
|
|
1703
|
+
children: /* @__PURE__ */ jsx(Suspense, {
|
|
1704
|
+
fallback: null,
|
|
1705
|
+
children: /* @__PURE__ */ jsx(DocumentTimeline, {
|
|
1706
|
+
timeline: timelineItemsData,
|
|
1707
|
+
onItemClick: setSelectedTimelineItem
|
|
1708
|
+
})
|
|
1971
1709
|
})
|
|
1972
1710
|
}),
|
|
1973
1711
|
children
|
|
@@ -2283,7 +2021,7 @@ function UploadFileItemStatusRow(props) {
|
|
|
2283
2021
|
}
|
|
2284
2022
|
//#endregion
|
|
2285
2023
|
//#region src/connect/components/upload-file-item/upload-file-item.tsx
|
|
2286
|
-
const UploadFileItem = forwardRef(function UploadFileItem(props, ref) {
|
|
2024
|
+
const UploadFileItem = /* @__PURE__ */ forwardRef(function UploadFileItem(props, ref) {
|
|
2287
2025
|
const { fileName, fileSize, status, documentType, progress = 0, errorDetails, onClose, onOpenDocument, onFindResolution, className, ...delegatedProps } = props;
|
|
2288
2026
|
return /* @__PURE__ */ jsxs("div", {
|
|
2289
2027
|
ref,
|
|
@@ -3342,7 +3080,7 @@ const Footer = ({ children, ...props }) => {
|
|
|
3342
3080
|
};
|
|
3343
3081
|
//#endregion
|
|
3344
3082
|
//#region src/connect/components/form-input/form-input.tsx
|
|
3345
|
-
const FormInput = forwardRef(function FormInput(props, ref) {
|
|
3083
|
+
const FormInput = /* @__PURE__ */ forwardRef(function FormInput(props, ref) {
|
|
3346
3084
|
const { icon, errorMessage, isDirty, containerClassName, inputClassName, errorMessageClassName, hideErrors = false, ...delegatedProps } = props;
|
|
3347
3085
|
const type = props.type ?? "text";
|
|
3348
3086
|
const isError = !!errorMessage;
|
|
@@ -3388,7 +3126,7 @@ function AppFormInput(props) {
|
|
|
3388
3126
|
}
|
|
3389
3127
|
//#endregion
|
|
3390
3128
|
//#region src/connect/components/toggle/toggle.tsx
|
|
3391
|
-
const Toggle = forwardRef(function Toggle(props, ref) {
|
|
3129
|
+
const Toggle = /* @__PURE__ */ forwardRef(function Toggle(props, ref) {
|
|
3392
3130
|
return /* @__PURE__ */ jsxs("label", {
|
|
3393
3131
|
className: "relative cursor-pointer items-center",
|
|
3394
3132
|
htmlFor: props.id,
|
|
@@ -3403,7 +3141,7 @@ const Toggle = forwardRef(function Toggle(props, ref) {
|
|
|
3403
3141
|
});
|
|
3404
3142
|
//#endregion
|
|
3405
3143
|
//#region src/connect/components/form/inputs/available-offline-toggle.tsx
|
|
3406
|
-
const AvailableOfflineToggle = forwardRef(function AvailableOfflineToggle(props, ref) {
|
|
3144
|
+
const AvailableOfflineToggle = /* @__PURE__ */ forwardRef(function AvailableOfflineToggle(props, ref) {
|
|
3407
3145
|
return /* @__PURE__ */ jsxs("div", {
|
|
3408
3146
|
className: "flex items-center rounded-md border border-gray-200 bg-gray-50 p-3 text-gray-900",
|
|
3409
3147
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -4297,7 +4035,7 @@ function ConnectDeleteItemModal(props) {
|
|
|
4297
4035
|
}
|
|
4298
4036
|
//#endregion
|
|
4299
4037
|
//#region src/connect/components/form/inputs/drive-name-input.tsx
|
|
4300
|
-
const DriveNameInput = forwardRef(function DriveNameInput(props, ref) {
|
|
4038
|
+
const DriveNameInput = /* @__PURE__ */ forwardRef(function DriveNameInput(props, ref) {
|
|
4301
4039
|
return /* @__PURE__ */ jsx(FormInput, {
|
|
4302
4040
|
...props,
|
|
4303
4041
|
icon: props.icon ?? /* @__PURE__ */ jsx(Icon, { name: "Drive" }),
|
|
@@ -5200,12 +4938,6 @@ function QueueInspector({ getQueueState, onPause, onResume }) {
|
|
|
5200
4938
|
});
|
|
5201
4939
|
}
|
|
5202
4940
|
//#endregion
|
|
5203
|
-
//#region src/connect/components/remotes-inspector/utils.ts
|
|
5204
|
-
function truncateId(id, maxLength = 12) {
|
|
5205
|
-
if (id.length <= maxLength) return id;
|
|
5206
|
-
return id.slice(0, maxLength) + "...";
|
|
5207
|
-
}
|
|
5208
|
-
//#endregion
|
|
5209
4941
|
//#region src/connect/components/remotes-inspector/components/connection-state-badge.tsx
|
|
5210
4942
|
const stateStyles = {
|
|
5211
4943
|
connected: "bg-green-100 text-green-800",
|
|
@@ -5228,6 +4960,12 @@ function ConnectionStateBadge({ state, failureCount }) {
|
|
|
5228
4960
|
});
|
|
5229
4961
|
}
|
|
5230
4962
|
//#endregion
|
|
4963
|
+
//#region src/connect/components/remotes-inspector/utils.ts
|
|
4964
|
+
function truncateId(id, maxLength = 12) {
|
|
4965
|
+
if (id.length <= maxLength) return id;
|
|
4966
|
+
return id.slice(0, maxLength) + "...";
|
|
4967
|
+
}
|
|
4968
|
+
//#endregion
|
|
5231
4969
|
//#region src/connect/components/remotes-inspector/components/sort-icon.tsx
|
|
5232
4970
|
function SortIcon({ direction, active }) {
|
|
5233
4971
|
if (!active) return /* @__PURE__ */ jsx(Icon, {
|
|
@@ -5538,10 +5276,7 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
5538
5276
|
});
|
|
5539
5277
|
};
|
|
5540
5278
|
const pollerControls = useCallback(() => {
|
|
5541
|
-
|
|
5542
|
-
const poller = channel.poller;
|
|
5543
|
-
if (!(poller instanceof IntervalPollTimer)) return null;
|
|
5544
|
-
return poller;
|
|
5279
|
+
return "poller" in channel ? channel.poller : null;
|
|
5545
5280
|
}, [channel])();
|
|
5546
5281
|
const [pollerState, setPollerState] = useState(() => ({
|
|
5547
5282
|
isPaused: pollerControls?.isPaused() ?? false,
|
|
@@ -7773,7 +7508,7 @@ function _Revision(props) {
|
|
|
7773
7508
|
})]
|
|
7774
7509
|
});
|
|
7775
7510
|
}
|
|
7776
|
-
const Revision = memo(_Revision);
|
|
7511
|
+
const Revision = /* @__PURE__ */ memo(_Revision);
|
|
7777
7512
|
//#endregion
|
|
7778
7513
|
//#region src/connect/components/revision-history/skip/skip.tsx
|
|
7779
7514
|
function Skip(props) {
|
|
@@ -8360,71 +8095,6 @@ const ConnectSidebar = ({ onClick, address, ensName, avatarUrl, headerContent, o
|
|
|
8360
8095
|
});
|
|
8361
8096
|
};
|
|
8362
8097
|
//#endregion
|
|
8363
|
-
//#region src/connect/components/toast/toast.tsx
|
|
8364
|
-
function isConnectTypeOptions(type) {
|
|
8365
|
-
return type === "connect-success" || type === "connect-warning" || type === "connect-loading" || type === "connect-deleted";
|
|
8366
|
-
}
|
|
8367
|
-
function getDefaultOptions(type) {
|
|
8368
|
-
if (isConnectTypeOptions(type)) {
|
|
8369
|
-
const options = {};
|
|
8370
|
-
switch (type) {
|
|
8371
|
-
case "connect-success":
|
|
8372
|
-
options.type = "success";
|
|
8373
|
-
options.icon = /* @__PURE__ */ jsx(Icon, {
|
|
8374
|
-
className: "text-green-800",
|
|
8375
|
-
name: "CheckCircleFill",
|
|
8376
|
-
size: 24
|
|
8377
|
-
});
|
|
8378
|
-
break;
|
|
8379
|
-
case "connect-warning":
|
|
8380
|
-
options.type = "warning";
|
|
8381
|
-
options.icon = /* @__PURE__ */ jsx(Icon, {
|
|
8382
|
-
className: "text-gray-600",
|
|
8383
|
-
name: "WarningFill",
|
|
8384
|
-
size: 24
|
|
8385
|
-
});
|
|
8386
|
-
break;
|
|
8387
|
-
case "connect-loading":
|
|
8388
|
-
options.type = "default";
|
|
8389
|
-
options.icon = /* @__PURE__ */ jsx(Icon, {
|
|
8390
|
-
className: "text-gray-600",
|
|
8391
|
-
name: "ClockFill",
|
|
8392
|
-
size: 24
|
|
8393
|
-
});
|
|
8394
|
-
break;
|
|
8395
|
-
case "connect-deleted":
|
|
8396
|
-
options.type = "error";
|
|
8397
|
-
options.icon = /* @__PURE__ */ jsx(Icon, {
|
|
8398
|
-
className: "text-red-800",
|
|
8399
|
-
name: "TrashFill",
|
|
8400
|
-
size: 24
|
|
8401
|
-
});
|
|
8402
|
-
break;
|
|
8403
|
-
}
|
|
8404
|
-
return options;
|
|
8405
|
-
}
|
|
8406
|
-
return { type };
|
|
8407
|
-
}
|
|
8408
|
-
function toast$1(content, options) {
|
|
8409
|
-
const { type = "default", ...restOptions } = options || {};
|
|
8410
|
-
return toast(content, {
|
|
8411
|
-
...getDefaultOptions(type),
|
|
8412
|
-
...restOptions
|
|
8413
|
-
});
|
|
8414
|
-
}
|
|
8415
|
-
const CloseButton = ({ closeToast }) => /* @__PURE__ */ jsx("button", {
|
|
8416
|
-
className: "flex items-center text-gray-500 hover:text-gray-600",
|
|
8417
|
-
onClick: closeToast,
|
|
8418
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
8419
|
-
name: "XmarkLight",
|
|
8420
|
-
size: 16
|
|
8421
|
-
})
|
|
8422
|
-
});
|
|
8423
|
-
const ToastContainer$1 = (props) => /* @__PURE__ */ jsx(ToastContainer, {
|
|
8424
|
-
closeButton: CloseButton,
|
|
8425
|
-
...props
|
|
8426
|
-
});
|
|
8427
|
-
//#endregion
|
|
8428
8098
|
//#region src/connect/hooks/use-ens.ts
|
|
8429
8099
|
function useEns(address) {
|
|
8430
8100
|
const [data, setData] = useState();
|
|
@@ -8505,6 +8175,6 @@ const removeSuccessFiles = (files) => {
|
|
|
8505
8175
|
return files.filter((file) => file.status !== "SUCCESS");
|
|
8506
8176
|
};
|
|
8507
8177
|
//#endregion
|
|
8508
|
-
export {
|
|
8178
|
+
export { AddLocalDriveForm as $, ReadRequiredModal as A, UploadFileListContainer as At, ConnectDeleteItemModal as B, Disclosure as Bt, PackageManagerInput as C, sharingTypeOptions as Ct, About as D, ConnectDropdownMenu as Dt, DangerZone as E, EditorActionButtons as Et, ConnectionStateBadge as F, DocumentToolbar as Ft, AddDriveModal as G, ConnectConfirmationModal as Gt, CreateDocumentModal as H, DebugInspector as Ht, QueueInspector as I, DocumentStateViewer as It, HomeScreen as J, Breadcrumb as Jt, LoadingScreen as K, CookieBanner as Kt, ProcessorsInspector as L, Tabs as Lt, InspectorModal as M, UploadFileItem as Mt, RemotesInspector as N, ConnectReplaceDuplicateModal as Nt, DependencyVersions as O, DropZoneWrapper as Ot, ChannelInspector as P, useDrop as Pt, AddRemoteDriveForm as Q, AccountPopover as Qt, ObjectInspectorModal as R, TabContent as Rt, PackageManagerListItem as S, normalNodeOptionsMap as St, DefaultEditorSelect as T, EditorUndoRedoButtons as Tt, AddRemoteDriveModal as U, DBExplorer as Ut, ConnectDeleteDriveModal as V, DefaultEditorLoader as Vt, AddLocalDriveModal as W, ConnectSelect as Wt, HomeScreenItem as X, NodeInput as Xt, HomeScreenAddDriveItem as Y, Breadcrumbs as Yt, HomeBackgroundImage as Z, AnimatedLoader as Zt, ClearStorageSettingsRow as _, defaultNodeOptions as _t, ConnectSidebar as a, FileItem as at, PackageManager as b, nodeOptionsMap as bt, SidebarUser as c, ERROR as ct, SidebarItem as d, SUCCESS as dt, Toggle as et, ConnectSearchBar as f, SYNCING as ft, SettingsModalOld as g, defaultDriveOptions as gt, ConnectUpgradeDriveModal as h, debugNodeOptionsMap as ht, useEns as i, FolderItem as it, PackageInstallModal as j, UploadFileList as jt, verifyPackageJsonFields as k, DropZone as kt, SidebarLogin as l, INITIAL_SYNC as lt, formatEthAddress as m, debugNodeOptions as mt, removeSuccessFiles as n, Footer as nt, ConnectSidebarHeader as o, SyncStatusIcon as ot, RevisionHistory as p, syncStatuses as pt, IntegrityInspector as q, Combobox as qt, sortFilesByStatus as r, FooterLink as rt, ConnectSidebarFooter as s, CONFLICT as st, getFolderStatus as t, FormInput as tt, SidebarAddDriveItem as u, MISSING as ut, SettingsRow as v, locationInfoByLocation as vt, DefaultEditor as w, ENSAvatar as wt, PackageManagerList as x, normalNodeOptions as xt, SettingsModal as y, nodeOptions as yt, DriveSettingsModal as z, Divider as zt };
|
|
8509
8179
|
|
|
8510
|
-
//# sourceMappingURL=connect-
|
|
8180
|
+
//# sourceMappingURL=connect-D2wTJ-7r.js.map
|