@persona/design-system 0.7.1 → 0.8.0
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/CHANGELOG.md +49 -0
- package/README.md +9 -9
- package/dist/Accordion.d.mts +38 -0
- package/dist/AccordionItem.d.mts +31 -0
- package/dist/{Action-C7INft7X.d.mts → Action-B-AiHknZ.d.mts} +3 -3
- package/dist/Action.d.mts +1 -1
- package/dist/AdvancedFilterRuleRow.d.mts +2 -2
- package/dist/AdvancedFilterRulesPopover.d.mts +2 -2
- package/dist/ArrayValueControl.d.mts +1 -1
- package/dist/Attribute.d.mts +3 -3
- package/dist/{Badge-BD0Ut46g.mjs → Badge-COqUjFQu.mjs} +2 -2
- package/dist/{Badge-BD0Ut46g.mjs.map → Badge-COqUjFQu.mjs.map} +1 -1
- package/dist/BooleanValueControl.d.mts +1 -1
- package/dist/{Breadcrumb-DtW1R9xW.d.mts → Breadcrumb-DRFY46ZW.d.mts} +1 -1
- package/dist/Breadcrumb.d.mts +1 -1
- package/dist/{Breadcrumbs-B6JyoS8n.d.mts → Breadcrumbs-DUSbT1I7.d.mts} +2 -2
- package/dist/{Breadcrumbs-CrXfUK1V.mjs → Breadcrumbs-DXS7rU7_.mjs} +5 -5
- package/dist/{Breadcrumbs-CrXfUK1V.mjs.map → Breadcrumbs-DXS7rU7_.mjs.map} +1 -1
- package/dist/Breadcrumbs.d.mts +1 -1
- package/dist/{Button-HodDf_bB.d.mts → Button-xZ6DC5XC.d.mts} +4 -4
- package/dist/Button.d.mts +1 -1
- package/dist/{Calendar-DrdTvzAa.d.mts → Calendar-dPmo2dkj.d.mts} +1 -1
- package/dist/Calendar.d.mts +1 -1
- package/dist/CalendarBase.d.mts +1 -1
- package/dist/{Card-CpDwATnX.d.mts → Card-CUeM8Lh8.d.mts} +3 -3
- package/dist/Card.d.mts +1 -1
- package/dist/{CardV2-M3o4BELp.mjs → CardV2-D9p7D7jX.mjs} +9 -7
- package/dist/{CardV2-M3o4BELp.mjs.map → CardV2-D9p7D7jX.mjs.map} +1 -1
- package/dist/{Checkbox-CyWXhuby.mjs → Checkbox-DQynkc_I.mjs} +3 -3
- package/dist/{Checkbox-CyWXhuby.mjs.map → Checkbox-DQynkc_I.mjs.map} +1 -1
- package/dist/{Checkbox-C-hMfItK.d.mts → Checkbox-DoJpxPEz.d.mts} +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/CheckboxGroupField.d.mts +1 -1
- package/dist/ChoicesValueControl.d.mts +1 -1
- package/dist/{Combobox-1M6EwVmq.mjs → Combobox-C_kCY3P3.mjs} +28 -12
- package/dist/Combobox-C_kCY3P3.mjs.map +1 -0
- package/dist/{Combobox-DyNllwt8.d.mts → Combobox-D7hyf-jA.d.mts} +3 -3
- package/dist/Combobox.d.mts +2 -2
- package/dist/{ComboboxBase-B3YqkjQp.d.mts → ComboboxBase-BMCY6O7Y.d.mts} +10 -5
- package/dist/ComboboxBase.d.mts +1 -1
- package/dist/{ComboboxMultiSelect-BuwVssvZ.d.mts → ComboboxMultiSelect-L0KYMkmm.d.mts} +2 -2
- package/dist/ComboboxMultiSelect.d.mts +1 -1
- package/dist/{ComboboxSingleSelect-gJC4v7ER.d.mts → ComboboxSingleSelect-v5oNrJ7M.d.mts} +4 -4
- package/dist/ComboboxSingleSelect.d.mts +1 -1
- package/dist/{CompactBar-DhHh7Roq.d.mts → CompactBar-DjFaUAsN.d.mts} +4 -4
- package/dist/CompactBar.d.mts +1 -1
- package/dist/{ConfigFormGroup-Cz7GeTYd.mjs → ConfigFormGroup-DLOZOuLf.mjs} +2 -2
- package/dist/{ConfigFormGroup-Cz7GeTYd.mjs.map → ConfigFormGroup-DLOZOuLf.mjs.map} +1 -1
- package/dist/{ControlBar-C8kagIck.d.mts → ControlBar-Cegjxa6-.d.mts} +7 -2
- package/dist/ControlBar.d.mts +1 -1
- package/dist/DataTable.d.mts +4 -3
- package/dist/{DateField-2aigfD4u.d.mts → DateField-Dk5ykLdr.d.mts} +2 -2
- package/dist/DateField.d.mts +1 -1
- package/dist/{DatePicker-D9JurBBj.mjs → DatePicker-C7z1yodK.mjs} +77 -42
- package/dist/DatePicker-C7z1yodK.mjs.map +1 -0
- package/dist/{DatePicker-DC_RKjdM.d.mts → DatePicker-Dtvv0V45.d.mts} +2 -2
- package/dist/DatePicker.d.mts +1 -1
- package/dist/{DateRangePicker-ByD6IsLB.d.mts → DateRangePicker-HPYsa4wC.d.mts} +3 -3
- package/dist/DateRangePicker.d.mts +1 -1
- package/dist/DateRangeValueControl.d.mts +5 -3
- package/dist/DateValueControl.d.mts +8 -5
- package/dist/{DropdownButton-BWiXLMfD.mjs → DropdownButton-CQrFHOIW.mjs} +3 -3
- package/dist/{DropdownButton-BWiXLMfD.mjs.map → DropdownButton-CQrFHOIW.mjs.map} +1 -1
- package/dist/DropdownButton.d.mts +2 -2
- package/dist/{DropdownMenu-Xl1BYXsY.d.mts → DropdownMenu-D1qvgGTZ.d.mts} +2 -2
- package/dist/{DropdownMenu-CuKSNxc9.mjs → DropdownMenu-rm9Nnxn7.mjs} +7 -2
- package/dist/DropdownMenu-rm9Nnxn7.mjs.map +1 -0
- package/dist/DropdownMenu.d.mts +1 -1
- package/dist/{ErrorProps-Dgu98PkH.d.mts → ErrorProps-B8-Mqf1W.d.mts} +1 -1
- package/dist/ErrorProps.d.mts +1 -1
- package/dist/{FieldRegistry-BdtxI1N2.d.mts → FieldRegistry-0LmSQ-jc.d.mts} +2 -2
- package/dist/FieldRegistry.d.mts +1 -1
- package/dist/{FilterBar-jYjPeD7F.d.mts → FilterBar-BMM4Swbt.d.mts} +11 -4
- package/dist/FilterBar.d.mts +1 -1
- package/dist/FilterPickerMenu.d.mts +2 -2
- package/dist/FilterPill.d.mts +1 -1
- package/dist/FilterPopover.d.mts +1 -1
- package/dist/FloatValueControl.d.mts +1 -1
- package/dist/{FormControl-BEk4F1EV.mjs → FormControl-DXrxoJLl.mjs} +26 -11
- package/dist/FormControl-DXrxoJLl.mjs.map +1 -0
- package/dist/{FormControl-CJfYdgZF.d.mts → FormControl-Dg8doZq2.d.mts} +6 -2
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControlLabel.d.mts +1 -1
- package/dist/{FormField-CK8o1sMB.d.mts → FormField-BeLigf9j.d.mts} +4 -2
- package/dist/{FormField-ByT0avVx.mjs → FormField-Crp3F-hv.mjs} +31 -21
- package/dist/FormField-Crp3F-hv.mjs.map +1 -0
- package/dist/FormField.d.mts +1 -1
- package/dist/Grid-eMLuyRzV.mjs +92 -0
- package/dist/Grid-eMLuyRzV.mjs.map +1 -0
- package/dist/Grid.d.mts +4 -1
- package/dist/{Header-ZnHGm8fs.d.mts → Header-DxJ6TfPw.d.mts} +1 -1
- package/dist/Header.d.mts +1 -1
- package/dist/{HelperTooltip-CQpPO16Q.d.mts → HelperTooltip-DcyrpEZI.d.mts} +2 -2
- package/dist/HelperTooltip.d.mts +1 -1
- package/dist/{HoverCopyableField-CN3gl0ny.mjs → HoverCopyableField-12bBuG-d.mjs} +3 -3
- package/dist/{HoverCopyableField-CN3gl0ny.mjs.map → HoverCopyableField-12bBuG-d.mjs.map} +1 -1
- package/dist/{IconButton-zu-VNp1h.d.mts → IconButton-BUMMN-gH.d.mts} +2 -2
- package/dist/{IconButton-CqTPMhjV.mjs → IconButton-CCLMYWVN.mjs} +1 -1
- package/dist/{IconButton-CqTPMhjV.mjs.map → IconButton-CCLMYWVN.mjs.map} +1 -1
- package/dist/IconButton.d.mts +1 -1
- package/dist/ImageTile.d.mts +1 -1
- package/dist/InlineCombobox.d.mts +1 -1
- package/dist/InlineInput.d.mts +1 -1
- package/dist/{Input-Ce8FvSYf.d.mts → Input-2N2e5JCf.d.mts} +3 -3
- package/dist/{Input-Bc2yWH3j.mjs → Input-Cl4o41k4.mjs} +7 -3
- package/dist/Input-Cl4o41k4.mjs.map +1 -0
- package/dist/Input.d.mts +1 -1
- package/dist/{InputProps-B1Xod4wm.d.mts → InputProps-TWzig3QO.d.mts} +2 -2
- package/dist/InputProps.d.mts +1 -1
- package/dist/IntegerValueControl.d.mts +1 -1
- package/dist/Link-I9Bklen-.mjs +79 -0
- package/dist/Link-I9Bklen-.mjs.map +1 -0
- package/dist/Link.d.mts +1 -1
- package/dist/{ListBox-D-8iwYVj.d.mts → ListBox-BcoXOt73.d.mts} +3 -3
- package/dist/{ListBox-CFBhILRy.mjs → ListBox-sqeLBiKS.mjs} +33 -16
- package/dist/ListBox-sqeLBiKS.mjs.map +1 -0
- package/dist/ListBox.d.mts +1 -1
- package/dist/ListBoxField.d.mts +3 -2
- package/dist/{LoadingShimmer-Dizk2sZu.mjs → LoadingShimmer-dRSkdlqD.mjs} +13 -8
- package/dist/LoadingShimmer-dRSkdlqD.mjs.map +1 -0
- package/dist/LoadingShimmer.d.mts +1 -1
- package/dist/{LogicRow-CgPds2tq.d.mts → LogicRow-DXywXdYt.d.mts} +3 -3
- package/dist/LogicRow.d.mts +1 -1
- package/dist/MaskedInput.d.mts +2 -2
- package/dist/{Menu-CSwzFqdv.d.mts → Menu-BekLwm8w.d.mts} +3 -3
- package/dist/{Menu-Cd6oxjAe.mjs → Menu-CwlI7BMN.mjs} +1 -1
- package/dist/{Menu-Cd6oxjAe.mjs.map → Menu-CwlI7BMN.mjs.map} +1 -1
- package/dist/Menu.d.mts +1 -1
- package/dist/Modal-CMiFcXC9.mjs +260 -0
- package/dist/Modal-CMiFcXC9.mjs.map +1 -0
- package/dist/Modal-ymxlGYKt.d.mts +145 -0
- package/dist/Modal.d.mts +2 -145
- package/dist/{PageHeader-DJOlcAiW.mjs → PageHeader-D_0p7UK_.mjs} +2 -2
- package/dist/{PageHeader-DJOlcAiW.mjs.map → PageHeader-D_0p7UK_.mjs.map} +1 -1
- package/dist/PageHeader.d.mts +1 -1
- package/dist/PageLayoutFrame.d.mts +28 -0
- package/dist/{PageSelector-BMz2Q4P6.d.mts → PageSelector-Bxulu6vU.d.mts} +3 -3
- package/dist/PageSelector.d.mts +1 -1
- package/dist/{Pagination-B1u203DE.mjs → Pagination-Co9CfyFQ.mjs} +5 -5
- package/dist/{Pagination-B1u203DE.mjs.map → Pagination-Co9CfyFQ.mjs.map} +1 -1
- package/dist/{Pagination-ne9hnVoe.d.mts → Pagination-Dg-4O7F7.d.mts} +2 -2
- package/dist/Pagination.d.mts +1 -1
- package/dist/{Pii-Dz4woKd8.mjs → Pii-JGV9gP95.mjs} +2 -2
- package/dist/{Pii-Dz4woKd8.mjs.map → Pii-JGV9gP95.mjs.map} +1 -1
- package/dist/{PillShell-ChTB_koa.d.mts → PillShell-BA7KK1zS.d.mts} +2 -2
- package/dist/PillShell.d.mts +1 -1
- package/dist/{Popover-opVa9Xhc.mjs → Popover-ZAj03lws.mjs} +15 -2
- package/dist/Popover-ZAj03lws.mjs.map +1 -0
- package/dist/ProgressIndicator-CQg08vuA.mjs +188 -0
- package/dist/ProgressIndicator-CQg08vuA.mjs.map +1 -0
- package/dist/ProgressIndicator-D85HQGSx.d.mts +66 -0
- package/dist/ProgressIndicator.d.mts +2 -66
- package/dist/{PseudoClassProps-CdRF3QNn.d.mts → PseudoClassProps-BHs8TX_3.d.mts} +1 -1
- package/dist/PseudoClassProps.d.mts +1 -1
- package/dist/{Radio-Ds1pODKw.mjs → Radio-CYV290JI.mjs} +2 -2
- package/dist/{Radio-Ds1pODKw.mjs.map → Radio-CYV290JI.mjs.map} +1 -1
- package/dist/{RadioGroup-CxL6LW4q.d.mts → RadioGroup-Cq3KV1TN.d.mts} +1 -1
- package/dist/{RadioGroup-HIC9V2hO.mjs → RadioGroup-lWMMtu9V.mjs} +2 -2
- package/dist/{RadioGroup-HIC9V2hO.mjs.map → RadioGroup-lWMMtu9V.mjs.map} +1 -1
- package/dist/RadioGroup.d.mts +1 -1
- package/dist/{RangeCalendar-B7TwRJbg.d.mts → RangeCalendar-Mh7h74Tp.d.mts} +2 -2
- package/dist/RangeCalendar.d.mts +1 -1
- package/dist/RangeCalendarPresets.d.mts +1 -1
- package/dist/{RouterContext-B7N12wkK.d.mts → RouterContext-B3IU1jb0.d.mts} +2 -2
- package/dist/RouterContext.d.mts +1 -1
- package/dist/{RouterLink-Bq36EGjc.d.mts → RouterLink-CwAqTLC2.d.mts} +2 -2
- package/dist/RouterLink.d.mts +1 -1
- package/dist/RuleEditorFields.d.mts +2 -2
- package/dist/RulesPill.d.mts +1 -1
- package/dist/{SearchInput-D69WxMNq.d.mts → SearchInput-BGyUUcoz.d.mts} +2 -2
- package/dist/SearchInput.d.mts +1 -1
- package/dist/SectionHeading.d.mts +1 -1
- package/dist/{SegmentedControl-OHrfJiw0.mjs → SegmentedControl-BEbIcV3g.mjs} +13 -6
- package/dist/SegmentedControl-BEbIcV3g.mjs.map +1 -0
- package/dist/{SegmentedControl-vCnGsdXo.d.mts → SegmentedControl-DgDabSgr.d.mts} +2 -1
- package/dist/SegmentedControl.d.mts +1 -1
- package/dist/{Select-sQb4dQwT.d.mts → Select-wqTtGyga.d.mts} +3 -3
- package/dist/{Select-DE7uv9C8.mjs → Select-yC2t_gZb.mjs} +10 -8
- package/dist/Select-yC2t_gZb.mjs.map +1 -0
- package/dist/Select.d.mts +1 -1
- package/dist/SingleColumnLayout.d.mts +16 -0
- package/dist/{Spinner-DplDSBqf.mjs → Spinner-BlAg8_OX.mjs} +1 -1
- package/dist/{Spinner-DplDSBqf.mjs.map → Spinner-BlAg8_OX.mjs.map} +1 -1
- package/dist/SplitColumnLayout.d.mts +19 -0
- package/dist/{Stack-ChsImaEY.mjs → Stack-Bkn0TUDe.mjs} +1 -1
- package/dist/{Stack-ChsImaEY.mjs.map → Stack-Bkn0TUDe.mjs.map} +1 -1
- package/dist/{Stack-8KGPQp0u.d.mts → Stack-CYqjBXe8.d.mts} +1 -1
- package/dist/Stack.d.mts +1 -1
- package/dist/StatusIndicator-DT2zNbkp.mjs +315 -0
- package/dist/StatusIndicator-DT2zNbkp.mjs.map +1 -0
- package/dist/{Sticker-C3Eb13OQ.mjs → Sticker-BLbgJxcH.mjs} +5 -8
- package/dist/Sticker-BLbgJxcH.mjs.map +1 -0
- package/dist/{Sticker-Bf9rhSkv.d.mts → Sticker-BmyKaxwx.d.mts} +4 -4
- package/dist/Sticker.d.mts +1 -1
- package/dist/StringValueControl.d.mts +1 -1
- package/dist/Tab.d.mts +1 -1
- package/dist/{TabBar-BepWbJHz.mjs → TabBar-Bj84q1Mr.mjs} +4 -7
- package/dist/{TabBar-BepWbJHz.mjs.map → TabBar-Bj84q1Mr.mjs.map} +1 -1
- package/dist/{Table-BefytM6w.d.mts → Table-DhdHUQ8V.d.mts} +1 -1
- package/dist/{Table-B1gRr2XT.mjs → Table-WqNfjasd.mjs} +22 -3
- package/dist/Table-WqNfjasd.mjs.map +1 -0
- package/dist/Table.d.mts +1 -1
- package/dist/{TableBody-BZ34-_wV.d.mts → TableBody-qoSvQDds.d.mts} +1 -1
- package/dist/TableBody.d.mts +1 -1
- package/dist/{TableBox-NP6bhtKb.mjs → TableBox-obl64W5Y.mjs} +22 -17
- package/dist/TableBox-obl64W5Y.mjs.map +1 -0
- package/dist/TableBox.d.mts +2 -2
- package/dist/{TableBoxCell-CHGw9HVj.d.mts → TableBoxCell-DzYMx4Ju.d.mts} +6 -6
- package/dist/TableBoxCell.d.mts +1 -1
- package/dist/TableBoxField.d.mts +4 -3
- package/dist/{TableBoxRow-BljsXKrL.d.mts → TableBoxRow-B4rFCvWK.d.mts} +3 -3
- package/dist/TableBoxRow.d.mts +1 -1
- package/dist/{TableBoxRowActions-h6HNEv9F.d.mts → TableBoxRowActions-qMKcVuTL.d.mts} +2 -2
- package/dist/TableBoxRowActions.d.mts +1 -1
- package/dist/{TableCell-DorRxyke.d.mts → TableCell-CGPQRc5g.d.mts} +2 -2
- package/dist/TableCell.d.mts +1 -1
- package/dist/{TableControls-CYTpBlQN.mjs → TableControls-RS_ozBsI.mjs} +219 -70
- package/dist/TableControls-RS_ozBsI.mjs.map +1 -0
- package/dist/{TableControls-BtGFiZeD.d.mts → TableControls-WP78qtET.d.mts} +4 -3
- package/dist/TableControls.d.mts +1 -1
- package/dist/{TableControlsContext-C3DYeUmB.d.mts → TableControlsContext-DZIZSyfX.d.mts} +2 -2
- package/dist/TableControlsContext.d.mts +1 -1
- package/dist/{TableHead-B0Fdldgw.d.mts → TableHead-36j-_oyn.d.mts} +1 -1
- package/dist/TableHead.d.mts +1 -1
- package/dist/{TableHeaderCell-C_7X8QAT.d.mts → TableHeaderCell-C7gp9j1X.d.mts} +1 -1
- package/dist/TableHeaderCell.d.mts +1 -1
- package/dist/{TableLayout-CXVVzq0e.d.mts → TableLayout-CQqIV0vj.d.mts} +1 -1
- package/dist/TableLayout.d.mts +1 -1
- package/dist/{TableRow-Dr61XJNw.d.mts → TableRow-BJZM8I8i.d.mts} +2 -2
- package/dist/TableRow.d.mts +1 -1
- package/dist/TableTH.d.mts +1 -1
- package/dist/{TableViewConfigurationDropdown-CCtwcB3I.d.mts → TableViewConfigurationDropdown-Dwy_9FBz.d.mts} +2 -2
- package/dist/TableViewConfigurationDropdown.d.mts +1 -1
- package/dist/{TechnicalSticker-_LtE-PRY.mjs → TechnicalSticker-CL0zkOAj.mjs} +1 -1
- package/dist/{TechnicalSticker-_LtE-PRY.mjs.map → TechnicalSticker-CL0zkOAj.mjs.map} +1 -1
- package/dist/{Text-DD_W_ixb.d.mts → Text-DbtTa83E.d.mts} +3 -3
- package/dist/Text.d.mts +1 -1
- package/dist/{TextArea-DOofaXJi.d.mts → TextArea-CbxF6u7z.d.mts} +2 -2
- package/dist/{TextArea-8TuVvmvj.mjs → TextArea-CfZr5Sk4.mjs} +2 -2
- package/dist/{TextArea-8TuVvmvj.mjs.map → TextArea-CfZr5Sk4.mjs.map} +1 -1
- package/dist/TextArea.d.mts +1 -1
- package/dist/{TextUnderlineTooltip-BPLKU9wu.d.mts → TextUnderlineTooltip-BgLQuK38.d.mts} +2 -2
- package/dist/TextUnderlineTooltip.d.mts +1 -1
- package/dist/Tile.d.mts +1 -1
- package/dist/Toast.d.mts +1 -1
- package/dist/{Toggle-2nrUX591.d.mts → Toggle-BYMLrPXk.d.mts} +3 -1
- package/dist/{Toggle-Dcn2Rqgm.mjs → Toggle-D4ZaUcVt.mjs} +11 -5
- package/dist/Toggle-D4ZaUcVt.mjs.map +1 -0
- package/dist/Toggle.d.mts +1 -1
- package/dist/{Tooltip-Cnqf1-tx.d.mts → Tooltip-4pshzB_i.d.mts} +2 -2
- package/dist/Tooltip.d.mts +1 -1
- package/dist/{TruncatedText-g2T5HlqX.d.mts → TruncatedText-O7hE3w0O.d.mts} +1 -1
- package/dist/VersionHistory.d.mts +23 -0
- package/dist/VersionHistoryItem-CIcEgl0K.d.mts +54 -0
- package/dist/VersionHistoryItem.d.mts +2 -0
- package/dist/WizardModal.d.mts +41 -0
- package/dist/accordionTitleTypography-CNB1w3kn.d.mts +17 -0
- package/dist/accordionTitleTypography.d.mts +2 -0
- package/dist/assertNever.d.mts +5 -0
- package/dist/{codec-CoX6LfOY.d.mts → codec-BXVBsB8Y.d.mts} +2 -2
- package/dist/codec.d.mts +1 -1
- package/dist/{color-Bt0Lv1e3.d.mts → color-3UO63ocQ.d.mts} +9 -4
- package/dist/components/Accordion/index.d.mts +4 -0
- package/dist/components/Accordion/index.mjs +330 -0
- package/dist/components/Accordion/index.mjs.map +1 -0
- package/dist/components/Attribute/index.mjs +2 -2
- package/dist/components/Badge/index.mjs +1 -1
- package/dist/components/Banner/index.mjs +1 -1
- package/dist/components/BottomPanel/index.mjs +5 -3
- package/dist/components/BottomPanel/index.mjs.map +1 -1
- package/dist/components/Breadcrumbs/index.d.mts +1 -1
- package/dist/components/Breadcrumbs/index.mjs +1 -1
- package/dist/components/Button/index.d.mts +2 -2
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/ButtonGroup/index.mjs +2 -2
- package/dist/components/Card/index.d.mts +2 -2
- package/dist/components/CardV2/index.d.mts +1 -1
- package/dist/components/CardV2/index.mjs +1 -1
- package/dist/components/Checkbox/index.d.mts +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/CodeHighlight/index.mjs +3 -1
- package/dist/components/CodeHighlight/index.mjs.map +1 -1
- package/dist/components/Combobox/index.d.mts +2 -2
- package/dist/components/Combobox/index.mjs +1 -1
- package/dist/components/ConfigFormGroup/index.mjs +2 -2
- package/dist/components/DataTable/TableControls/index.d.mts +19 -19
- package/dist/components/DataTable/TableControls/index.mjs +1 -1
- package/dist/components/DataTable/index.mjs +27 -16
- package/dist/components/DataTable/index.mjs.map +1 -1
- package/dist/components/DataTable/types.d.mts +2 -2
- package/dist/components/DatePicker/index.d.mts +5 -5
- package/dist/components/DatePicker/index.mjs +1 -1
- package/dist/components/DropdownButton/index.mjs +1 -1
- package/dist/components/DropdownMenu/index.d.mts +1 -1
- package/dist/components/DropdownMenu/index.mjs +1 -1
- package/dist/components/FloatingPanel/index.mjs +10 -7
- package/dist/components/FloatingPanel/index.mjs.map +1 -1
- package/dist/components/FormControl/index.d.mts +2 -2
- package/dist/components/FormControl/index.mjs +2 -2
- package/dist/components/FormField/index.d.mts +1 -1
- package/dist/components/FormField/index.mjs +1 -1
- package/dist/components/Grid/index.d.mts +2 -2
- package/dist/components/Grid/index.mjs +2 -85
- package/dist/components/HoverCopyableField/index.mjs +1 -1
- package/dist/components/ImageTile/index.mjs +13 -9
- package/dist/components/ImageTile/index.mjs.map +1 -1
- package/dist/components/Input/index.d.mts +1 -1
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/Link/index.mjs +1 -78
- package/dist/components/ListBox/index.d.mts +3 -3
- package/dist/components/ListBox/index.mjs +1 -1
- package/dist/components/LoadingShimmer/index.mjs +1 -1
- package/dist/components/MaskedInput/index.mjs +1 -1
- package/dist/components/Menu/index.d.mts +1 -1
- package/dist/components/Menu/index.mjs +1 -1
- package/dist/components/Modal/index.d.mts +1 -1
- package/dist/components/Modal/index.mjs +1 -257
- package/dist/components/PageHeader/index.mjs +1 -1
- package/dist/components/Pagination/index.d.mts +3 -3
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Pii/index.mjs +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/ProgressBar/index.mjs +1 -2
- package/dist/components/ProgressBar/index.mjs.map +1 -1
- package/dist/components/ProgressIndicator/index.d.mts +2 -2
- package/dist/components/ProgressIndicator/index.mjs +1 -187
- package/dist/components/Radio/index.mjs +1 -1
- package/dist/components/RadioGroup/index.d.mts +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/RightPanel/index.mjs +10 -7
- package/dist/components/RightPanel/index.mjs.map +1 -1
- package/dist/components/SegmentedControl/index.d.mts +1 -1
- package/dist/components/SegmentedControl/index.mjs +1 -1
- package/dist/components/Select/index.d.mts +1 -1
- package/dist/components/Select/index.mjs +1 -1
- package/dist/components/Slider/index.mjs +1 -1
- package/dist/components/Slider/index.mjs.map +1 -1
- package/dist/components/SmartTextInput/parser/method-chain/types.d.mts +2 -105
- package/dist/components/SmartTextInput/parser/smart-text/types.d.mts +1 -1
- package/dist/components/Spinner/index.mjs +1 -1
- package/dist/components/Stack/index.d.mts +1 -1
- package/dist/components/Stack/index.mjs +1 -1
- package/dist/components/StatusIndicator/index.mjs +1 -314
- package/dist/components/Sticker/index.d.mts +1 -1
- package/dist/components/Sticker/index.mjs +1 -1
- package/dist/components/TabBar/index.mjs +1 -1
- package/dist/components/Table/index.d.mts +8 -8
- package/dist/components/Table/index.mjs +1 -1
- package/dist/components/TableBox/index.d.mts +2 -2
- package/dist/components/TableBox/index.mjs +1 -1
- package/dist/components/TechnicalSticker/index.mjs +1 -1
- package/dist/components/Text/index.d.mts +1 -1
- package/dist/components/TextArea/index.d.mts +1 -1
- package/dist/components/TextArea/index.mjs +1 -1
- package/dist/components/Tile/index.mjs +2 -2
- package/dist/components/Toast/index.mjs +2 -2
- package/dist/components/Toast/index.mjs.map +1 -1
- package/dist/components/Toggle/index.d.mts +1 -1
- package/dist/components/Toggle/index.mjs +1 -1
- package/dist/components/Tooltip/index.d.mts +3 -3
- package/dist/components/VersionHistory/index.d.mts +3 -0
- package/dist/components/VersionHistory/index.mjs +389 -0
- package/dist/components/VersionHistory/index.mjs.map +1 -0
- package/dist/components/WizardModal/index.d.mts +2 -0
- package/dist/components/WizardModal/index.mjs +106 -0
- package/dist/components/WizardModal/index.mjs.map +1 -0
- package/dist/compound-expression.d.mts +1 -1
- package/dist/{constants-D8bzZ-7B.d.mts → constants-BOxzLX-O.d.mts} +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/{createPath-BDYRvl57.d.mts → createPath-OeTC9kvS.d.mts} +2 -2
- package/dist/createPath.d.mts +1 -1
- package/dist/{date-filter-CZeChs9T.mjs → date-filter-BnzR6NxT.mjs} +1 -1
- package/dist/{date-filter-CZeChs9T.mjs.map → date-filter-BnzR6NxT.mjs.map} +1 -1
- package/dist/{date-range-rule-value-jZAHuxZJ.d.mts → date-range-rule-value-BRp5Bi7R.d.mts} +2 -2
- package/dist/date-range-rule-value.d.mts +1 -1
- package/dist/{date-rule-intent-CC1LdkE7.d.mts → date-rule-intent-CDBtV0ET.d.mts} +3 -3
- package/dist/date-rule-intent.d.mts +1 -1
- package/dist/display.d.mts +2 -2
- package/dist/fieldPickerOptions.d.mts +2 -2
- package/dist/{filter-size-context-BGczB5R9.d.mts → filter-size-context-CqvQ190x.d.mts} +2 -2
- package/dist/filter-size-context.d.mts +1 -1
- package/dist/format-date-value.d.mts +5 -0
- package/dist/helpers.d.mts +1 -1
- package/dist/{index-DalP_w0c.d.mts → index-BXSe73Xn.d.mts} +2 -2
- package/dist/{index-BRKXhLGa.d.mts → index-CyAok7As.d.mts} +2 -2
- package/dist/index-gVcIuWLd.d.mts +1 -0
- package/dist/{index-BZmGEbsA.d.mts → index-wKK9f9La.d.mts} +3 -3
- package/dist/index-zeAhjge4.d.mts +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index2.d.mts +1 -1
- package/dist/index3.d.mts +3 -3
- package/dist/index4.d.mts +1 -1
- package/dist/index5.d.mts +14 -14
- package/dist/{input-DCJivcWf.d.mts → input-C6cyiqm2.d.mts} +3 -3
- package/dist/inputFields.d.mts +14 -12
- package/dist/{intersperse-Bxcrxj2Q.mjs → intersperse-Df9zw7Bk.mjs} +1 -1
- package/dist/{intersperse-Bxcrxj2Q.mjs.map → intersperse-Df9zw7Bk.mjs.map} +1 -1
- package/dist/{jsonSchema-c_EfAj8y.d.mts → jsonSchema-CfGi1bzI.d.mts} +67 -11
- package/dist/lib/PDSProvider.d.mts +2 -2
- package/dist/lib/TruncatedText.d.mts +1 -1
- package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
- package/dist/lib/chainTypes.d.mts +17 -0
- package/dist/lib/chainTypes.mjs +0 -0
- package/dist/lib/color.d.mts +2 -2
- package/dist/lib/color.mjs +18 -11
- package/dist/lib/color.mjs.map +1 -1
- package/dist/lib/customFunctionSchema.d.mts +49 -0
- package/dist/lib/customFunctionSchema.mjs +299 -0
- package/dist/lib/customFunctionSchema.mjs.map +1 -0
- package/dist/lib/date-filter/index.d.mts +2 -2
- package/dist/lib/date-filter/index.mjs +1 -1
- package/dist/lib/jsonSchema.d.mts +2 -2
- package/dist/lib/jsonSchema.mjs +36 -11
- package/dist/lib/jsonSchema.mjs.map +1 -1
- package/dist/lib/jsonSchemaType.d.mts +7 -0
- package/dist/lib/jsonSchemaType.mjs +31 -0
- package/dist/lib/jsonSchemaType.mjs.map +1 -0
- package/dist/lib/letPointerDownReachDocument.d.mts +22 -0
- package/dist/lib/letPointerDownReachDocument.mjs +25 -0
- package/dist/lib/letPointerDownReachDocument.mjs.map +1 -0
- package/dist/lib/message.d.mts +1 -1
- package/dist/lib/methodChain.d.mts +3 -66
- package/dist/lib/methodChain.mjs +1 -237
- package/dist/lib/methodChainNormalize.d.mts +2 -2
- package/dist/lib/methodChainTypes.d.mts +2 -23
- package/dist/lib/objectSchemaTypes.d.mts +1 -1
- package/dist/lib/platformObject.d.mts +38 -0
- package/dist/lib/platformObject.mjs +79 -0
- package/dist/lib/platformObject.mjs.map +1 -0
- package/dist/lib/pseudoClass.d.mts +1 -1
- package/dist/lib/router/adapters/reactRouter.d.mts +1 -1
- package/dist/lib/router/adapters/tanstack.d.mts +1 -1
- package/dist/lib/router/index.d.mts +5 -5
- package/dist/lib/schemaOptions.d.mts +173 -0
- package/dist/lib/schemaOptions.mjs +481 -0
- package/dist/lib/schemaOptions.mjs.map +1 -0
- package/dist/lib/semanticColor.d.mts +1 -1
- package/dist/lib/snakifyPath.d.mts +5 -0
- package/dist/lib/snakifyPath.mjs +11 -0
- package/dist/lib/snakifyPath.mjs.map +1 -0
- package/dist/{message-CjIHdhX1.d.mts → message-CblP0EjG.d.mts} +1 -1
- package/dist/methodChain-DAQxLgxt.mjs +241 -0
- package/dist/methodChain-DAQxLgxt.mjs.map +1 -0
- package/dist/methodChain-Pk1C3i_E.d.mts +66 -0
- package/dist/methodChainTypes-CqWzfx0M.d.mts +23 -0
- package/dist/mixins/focus.d.mts +1 -1
- package/dist/mixins/hoverable.d.mts +2 -2
- package/dist/mixins/input.d.mts +1 -1
- package/dist/mixins/input.mjs +6 -14
- package/dist/mixins/input.mjs.map +1 -1
- package/dist/mixins/menuItem.d.mts +2 -2
- package/dist/mixins/scrollbar.d.mts +10 -0
- package/dist/mixins/scrollbar.mjs +31 -0
- package/dist/mixins/scrollbar.mjs.map +1 -0
- package/dist/mixins/text.d.mts +1 -1
- package/dist/{operators-x_ZENhrT.d.mts → operators-CoXL5Hv6.d.mts} +2 -2
- package/dist/operators.d.mts +1 -1
- package/dist/{palette-qgPRWgUN.d.mts → palette-CxXUs1Fu.d.mts} +3 -3
- package/dist/palette.d.mts +1 -1
- package/dist/patterns/LayoutLoadingShimmer/index.mjs +5 -5
- package/dist/patterns/PageLayout/index.d.mts +4 -1
- package/dist/patterns/PageLayout/index.mjs +99 -2
- package/dist/patterns/PageLayout/index.mjs.map +1 -1
- package/dist/reactRouterFallback.d.mts +1 -1
- package/dist/relative-date-label.d.mts +1 -1
- package/dist/scrollExpandedItemIntoView.d.mts +12 -0
- package/dist/{semantic-DUctmpu_.d.mts → semantic-CFMBsuiJ.d.mts} +2 -2
- package/dist/{semanticColor-IAhXS17y.d.mts → semanticColor-DuJCmDrH.d.mts} +3 -3
- package/dist/{text-DjTGRUM1.d.mts → text-D8HPjiEX.d.mts} +1 -1
- package/dist/{theme-DKiszVRN.d.mts → theme-BcaR-Au5.d.mts} +3 -3
- package/dist/theme.d.mts +1 -1
- package/dist/time-range.d.mts +7 -0
- package/dist/tone.d.mts +3 -3
- package/dist/{types-CcZbBH0e.d.mts → types-BCiq4hGv.d.mts} +1 -1
- package/dist/types-BGMmkUpy.d.mts +105 -0
- package/dist/{types-N8PYonjD.d.mts → types-C4WUSW3e.d.mts} +7 -2
- package/dist/{types-CuQSgl1F.d.mts → types-CkpixGWr.d.mts} +1 -1
- package/dist/{types-D8rWSj3z.d.mts → types-Cl-w8tYc.d.mts} +1 -1
- package/dist/{types-gnF3MPfk2.d.mts → types-CoVZwrMW.d.mts} +2 -2
- package/dist/{types-RWjW1d9I.d.mts → types-DgyGecdM.d.mts} +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types2.d.mts +1 -1
- package/dist/types3.d.mts +1 -1
- package/dist/types4.d.mts +1 -1
- package/dist/types5.d.mts +1 -1
- package/dist/types6.d.mts +1 -1
- package/dist/{url-state-C2gl07_y.d.mts → url-state-8j_ef8Uf.d.mts} +2 -2
- package/dist/url-state.d.mts +1 -1
- package/dist/useComboboxFooterAction.d.mts +1 -1
- package/dist/{useFilterStateV2-BQYcAdKR.d.mts → useFilterStateV2-CW6eght1.d.mts} +3 -3
- package/dist/useFilterStateV2.d.mts +1 -1
- package/dist/{useFormField-DDbo-ExT.d.mts → useFormField-CLRZkUZt.d.mts} +4 -2
- package/dist/{useFormField-DsvC5dOb.mjs → useFormField-XezSxho_.mjs} +3 -2
- package/dist/useFormField-XezSxho_.mjs.map +1 -0
- package/dist/useFormField.d.mts +1 -1
- package/dist/{useFormGroup-CH3kiXoa.mjs → useFormGroup-C7Cax8zO.mjs} +1 -1
- package/dist/{useFormGroup-CH3kiXoa.mjs.map → useFormGroup-C7Cax8zO.mjs.map} +1 -1
- package/dist/{useLocationPathname-K2N4fw8j.d.mts → useLocationPathname-DH5Tdq5X.d.mts} +1 -1
- package/dist/useLocationPathname.d.mts +1 -1
- package/dist/{useTableBoxDragAndDrop-CbbH3pMK.d.mts → useTableBoxDragAndDrop-Da4TiYBT.d.mts} +1 -1
- package/dist/useTableBoxDragAndDrop.d.mts +1 -1
- package/dist/useTruncation.d.mts +1 -1
- package/dist/{utilities-D0EhDri-.d.mts → utilities-DcsbI71T.d.mts} +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utils/storybook.mjs +1 -1
- package/dist/utils/testing.d.mts +1 -1
- package/dist/utils/testing.mjs.map +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/{validation-CMtfUd-R.d.mts → validation-BgwNghi2.d.mts} +3 -3
- package/dist/validation.d.mts +1 -1
- package/dist/{value-control-resolver-Au9JNS5z.d.mts → value-control-resolver-B0HDRxRN.d.mts} +3 -2
- package/dist/value-control-resolver.d.mts +1 -1
- package/dist/variables/effect.d.mts +1 -1
- package/dist/variables/semantic.d.mts +1 -1
- package/dist/variables/semantic.mjs +15 -18
- package/dist/variables/semantic.mjs.map +1 -1
- package/llms.txt +10 -1
- package/package.json +27 -6
- package/skills/ui-authoring/COMPONENTS.md +6 -1
- package/skills/ui-authoring/PATTERNS.md +74 -115
- package/dist/Combobox-1M6EwVmq.mjs.map +0 -1
- package/dist/DatePicker-D9JurBBj.mjs.map +0 -1
- package/dist/DropdownMenu-CuKSNxc9.mjs.map +0 -1
- package/dist/FormControl-BEk4F1EV.mjs.map +0 -1
- package/dist/FormField-ByT0avVx.mjs.map +0 -1
- package/dist/Input-Bc2yWH3j.mjs.map +0 -1
- package/dist/ListBox-CFBhILRy.mjs.map +0 -1
- package/dist/LoadingShimmer-Dizk2sZu.mjs.map +0 -1
- package/dist/Popover-opVa9Xhc.mjs.map +0 -1
- package/dist/SegmentedControl-OHrfJiw0.mjs.map +0 -1
- package/dist/Select-DE7uv9C8.mjs.map +0 -1
- package/dist/Sticker-C3Eb13OQ.mjs.map +0 -1
- package/dist/Table-B1gRr2XT.mjs.map +0 -1
- package/dist/TableBox-NP6bhtKb.mjs.map +0 -1
- package/dist/TableControls-CYTpBlQN.mjs.map +0 -1
- package/dist/Toggle-Dcn2Rqgm.mjs.map +0 -1
- package/dist/components/Grid/index.mjs.map +0 -1
- package/dist/components/Link/index.mjs.map +0 -1
- package/dist/components/Modal/index.mjs.map +0 -1
- package/dist/components/ProgressIndicator/index.mjs.map +0 -1
- package/dist/components/StatusIndicator/index.mjs.map +0 -1
- package/dist/fieldSchemaTypes-BVYSm74B.d.mts +0 -39
- package/dist/lib/fieldSchemaTypes.d.mts +0 -2
- package/dist/lib/fieldSchemaTypes.mjs +0 -41
- package/dist/lib/fieldSchemaTypes.mjs.map +0 -1
- package/dist/lib/methodChain.mjs.map +0 -1
- package/dist/useFormField-DsvC5dOb.mjs.map +0 -1
- /package/dist/{index--p6oQT9I.d.mts → index-B24gUwOx.d.mts} +0 -0
- /package/dist/{index-B33elXxm.d.mts → index-BFnNtGdX.d.mts} +0 -0
- /package/dist/{index-BO_854F2.d.mts → index-BNRXMhlr.d.mts} +0 -0
- /package/dist/{index-BrGZHEgX.d.mts → index-BPiqSRRl.d.mts} +0 -0
- /package/dist/{index-BwAfCVZH2.d.mts → index-BYd3Btr1.d.mts} +0 -0
- /package/dist/{index-CRo77wc3.d.mts → index-Bt4QNofW.d.mts} +0 -0
- /package/dist/{index-CX869wwk.d.mts → index-CEqOS-7M.d.mts} +0 -0
- /package/dist/{index-CsuikFeJ.d.mts → index-CIABef8t.d.mts} +0 -0
- /package/dist/{index-CuYZJcK3.d.mts → index-CTHojwxd.d.mts} +0 -0
- /package/dist/{index-CzItj62a.d.mts → index-Cm-1i165.d.mts} +0 -0
- /package/dist/{index-D13oYj4_.d.mts → index-DB7t8whN.d.mts} +0 -0
- /package/dist/{index-D4DUvwPf.d.mts → index-DBGd4WeR.d.mts} +0 -0
- /package/dist/{index-DMRtRo7y.d.mts → index-DGsJdI5l.d.mts} +0 -0
- /package/dist/{index-DXJd7-2Z.d.mts → index-DWfPppPU.d.mts} +0 -0
- /package/dist/{index-DZlqSwCF.d.mts → index-DedbSZMv.d.mts} +0 -0
- /package/dist/{index-Dflz2i1X.d.mts → index-Jh0C5PIG.d.mts} +0 -0
- /package/dist/{index-DkrC-i1D.d.mts → index-NKYLt_R9.d.mts} +0 -0
- /package/dist/{index-DztUdPP_.d.mts → index-Qwqzz3XM.d.mts} +0 -0
- /package/dist/{index-Rvd9MEUQ.d.mts → index-VWno75SQ.d.mts} +0 -0
- /package/dist/{index-bHnO4ZKt.d.mts → index-fxXoW-qc.d.mts} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { S as JsonSchemaRef, b as JsonSchemaObjectKey, d as JsonSchemaCore, dt as ObjectSchemaMap, n as JsonSchema, u as JsonSchemaConst, y as JsonSchemaObject } from "../jsonSchema-CfGi1bzI.mjs";
|
|
2
|
+
|
|
3
|
+
//#region lib/platformObject.d.ts
|
|
4
|
+
interface PlatformObjectJsonSchema extends JsonSchemaObject {
|
|
5
|
+
properties: {
|
|
6
|
+
objectType: {
|
|
7
|
+
const: JsonSchemaObjectKey;
|
|
8
|
+
};
|
|
9
|
+
template?: {
|
|
10
|
+
anyOf: JsonSchemaConst[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
required: string[];
|
|
14
|
+
}
|
|
15
|
+
type PlatformJsonSchema = JsonSchemaCore | PlatformObjectJsonSchema;
|
|
16
|
+
declare const MERGED_SCHEMA_ID = "merged";
|
|
17
|
+
declare const setSchemaPropertyDescriptionResolver: (resolver: (propertyKey: string) => string | undefined) => void;
|
|
18
|
+
declare const injectPropertyDescriptions: (schema: JsonSchemaObject) => JsonSchemaObject;
|
|
19
|
+
declare const isPlatformObjectSchema: (schema: JsonSchema) => schema is PlatformObjectJsonSchema;
|
|
20
|
+
declare const getPlatformObjectTypeFromJsonSchema: (schema: JsonSchema) => JsonSchemaObjectKey | null;
|
|
21
|
+
declare const getPlatformTemplateFromJsonSchema: (schema: JsonSchema) => string[] | null;
|
|
22
|
+
declare const getSpecificType: (schema: PlatformJsonSchema) => string;
|
|
23
|
+
declare const resolveJssRef: (schema: JsonSchemaRef, platformObjectJsonSchema?: ObjectSchemaMap) => JsonSchemaObject;
|
|
24
|
+
declare const getWorkflowObjectKeyFromSchemaRef: (schemaRef: string) => JsonSchemaObjectKey;
|
|
25
|
+
declare const getSchemaId: (workflowObjectKey: JsonSchemaObjectKey | string, identifier?: string) => string;
|
|
26
|
+
declare enum PrimitiveSchemaId {
|
|
27
|
+
String = "/schema/string",
|
|
28
|
+
Array = "/schema/array",
|
|
29
|
+
Number = "/schema/number",
|
|
30
|
+
Boolean = "/schema/boolean",
|
|
31
|
+
Date = "/schema/date",
|
|
32
|
+
Datetime = "/schema/datetime",
|
|
33
|
+
File = "/schema/field/file"
|
|
34
|
+
}
|
|
35
|
+
declare const getSchemaIdForExternalIntegration: (vendor: string, operation: string) => string;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { MERGED_SCHEMA_ID, PlatformJsonSchema, PlatformObjectJsonSchema, PrimitiveSchemaId, getPlatformObjectTypeFromJsonSchema, getPlatformTemplateFromJsonSchema, getSchemaId, getSchemaIdForExternalIntegration, getSpecificType, getWorkflowObjectKeyFromSchemaRef, injectPropertyDescriptions, isPlatformObjectSchema, resolveJssRef, setSchemaPropertyDescriptionResolver };
|
|
38
|
+
//# sourceMappingURL=platformObject.d.mts.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { EMPTY_JSON_SCHEMA_OBJECT, isJsonSchemaRef } from "./jsonSchema.mjs";
|
|
2
|
+
import { getJsonSchemaType } from "./jsonSchemaType.mjs";
|
|
3
|
+
import { snakify } from "./snakifyPath.mjs";
|
|
4
|
+
import { snakeCase } from "lodash-es";
|
|
5
|
+
//#region lib/platformObject.ts
|
|
6
|
+
const MERGED_SCHEMA_ID = "merged";
|
|
7
|
+
let schemaPropertyDescriptionResolver = (_propertyKey) => void 0;
|
|
8
|
+
let propertyDescriptionCache = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
const setSchemaPropertyDescriptionResolver = (resolver) => {
|
|
10
|
+
if (resolver === schemaPropertyDescriptionResolver) return;
|
|
11
|
+
schemaPropertyDescriptionResolver = resolver;
|
|
12
|
+
propertyDescriptionCache = /* @__PURE__ */ new WeakMap();
|
|
13
|
+
};
|
|
14
|
+
const injectPropertyDescriptions = (schema) => {
|
|
15
|
+
const cachedSchema = propertyDescriptionCache.get(schema);
|
|
16
|
+
if (cachedSchema) return cachedSchema;
|
|
17
|
+
const schemaWithDescriptions = {
|
|
18
|
+
...schema,
|
|
19
|
+
properties: Object.entries(schema.properties).reduce((acc, [propertyKey, propertySchema]) => ({
|
|
20
|
+
...acc,
|
|
21
|
+
[propertyKey]: {
|
|
22
|
+
...propertySchema,
|
|
23
|
+
description: isJsonSchemaRef(propertySchema) ? `Type: ${propertySchema.description}` : propertySchema.description ?? schemaPropertyDescriptionResolver(propertyKey)
|
|
24
|
+
}
|
|
25
|
+
}), {})
|
|
26
|
+
};
|
|
27
|
+
propertyDescriptionCache.set(schema, schemaWithDescriptions);
|
|
28
|
+
return schemaWithDescriptions;
|
|
29
|
+
};
|
|
30
|
+
const isPlatformObjectSchema = (schema) => {
|
|
31
|
+
return "type" in schema && schema.type === "object" && schema.properties && "objectType" in schema.properties;
|
|
32
|
+
};
|
|
33
|
+
const getPlatformObjectTypeFromJsonSchema = (schema) => {
|
|
34
|
+
return isPlatformObjectSchema(schema) ? schema.properties.objectType.const : null;
|
|
35
|
+
};
|
|
36
|
+
const getPlatformTemplateFromJsonSchema = (schema) => {
|
|
37
|
+
if (!isPlatformObjectSchema(schema)) return null;
|
|
38
|
+
return schema.properties.template?.anyOf.map((jsonSchema) => jsonSchema.const) || null;
|
|
39
|
+
};
|
|
40
|
+
const getSpecificType = (schema) => {
|
|
41
|
+
const platformObjectType = getPlatformObjectTypeFromJsonSchema(schema);
|
|
42
|
+
if (platformObjectType) return platformObjectType;
|
|
43
|
+
return getJsonSchemaType(schema);
|
|
44
|
+
};
|
|
45
|
+
const resolveJssRef = (schema, platformObjectJsonSchema = {}) => {
|
|
46
|
+
return platformObjectJsonSchema[schema.$ref] ? injectPropertyDescriptions(platformObjectJsonSchema[schema.$ref]) : EMPTY_JSON_SCHEMA_OBJECT;
|
|
47
|
+
};
|
|
48
|
+
const getWorkflowObjectKeyFromSchemaRef = (schemaRef) => {
|
|
49
|
+
return schemaRef.split("/").slice(2).slice(0, -1).join("/").replace(/_/g, "-");
|
|
50
|
+
};
|
|
51
|
+
const getSchemaId = (workflowObjectKey, identifier = "") => {
|
|
52
|
+
return [
|
|
53
|
+
"/schema",
|
|
54
|
+
snakify(workflowObjectKey),
|
|
55
|
+
identifier
|
|
56
|
+
].filter(Boolean).join("/");
|
|
57
|
+
};
|
|
58
|
+
let PrimitiveSchemaId = /* @__PURE__ */ function(PrimitiveSchemaId) {
|
|
59
|
+
PrimitiveSchemaId["String"] = "/schema/string";
|
|
60
|
+
PrimitiveSchemaId["Array"] = "/schema/array";
|
|
61
|
+
PrimitiveSchemaId["Number"] = "/schema/number";
|
|
62
|
+
PrimitiveSchemaId["Boolean"] = "/schema/boolean";
|
|
63
|
+
PrimitiveSchemaId["Date"] = "/schema/date";
|
|
64
|
+
PrimitiveSchemaId["Datetime"] = "/schema/datetime";
|
|
65
|
+
PrimitiveSchemaId["File"] = "/schema/field/file";
|
|
66
|
+
return PrimitiveSchemaId;
|
|
67
|
+
}({});
|
|
68
|
+
const getSchemaIdForExternalIntegration = (vendor, operation) => {
|
|
69
|
+
return vendor && operation ? [
|
|
70
|
+
"/schema",
|
|
71
|
+
"external_integration_log",
|
|
72
|
+
snakeCase(vendor),
|
|
73
|
+
operation
|
|
74
|
+
].filter(Boolean).join("/") : "";
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
77
|
+
export { MERGED_SCHEMA_ID, PrimitiveSchemaId, getPlatformObjectTypeFromJsonSchema, getPlatformTemplateFromJsonSchema, getSchemaId, getSchemaIdForExternalIntegration, getSpecificType, getWorkflowObjectKeyFromSchemaRef, injectPropertyDescriptions, isPlatformObjectSchema, resolveJssRef, setSchemaPropertyDescriptionResolver };
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=platformObject.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformObject.mjs","names":[],"sources":["../../lib/platformObject.ts"],"sourcesContent":["import { snakeCase } from 'lodash-es';\n\nimport {\n EMPTY_JSON_SCHEMA_OBJECT,\n type JsonSchema,\n type JsonSchemaConst,\n type JsonSchemaCore,\n type JsonSchemaObject,\n type JsonSchemaRef,\n isJsonSchemaRef,\n JsonSchemaTypes,\n type JsonSchemaObjectKey,\n} from './jsonSchema';\nimport { getJsonSchemaType } from './jsonSchemaType';\nimport type { ObjectSchemaMap } from './objectSchemaTypes';\nimport { snakify } from './snakifyPath';\n\nexport interface PlatformObjectJsonSchema extends JsonSchemaObject {\n properties: {\n objectType: {\n const: JsonSchemaObjectKey;\n };\n template?: {\n anyOf: JsonSchemaConst[];\n };\n };\n required: string[];\n}\n\nexport type PlatformJsonSchema = JsonSchemaCore | PlatformObjectJsonSchema;\n\nexport const MERGED_SCHEMA_ID = 'merged';\n\nlet schemaPropertyDescriptionResolver = (_propertyKey: string): string | undefined => undefined;\nlet propertyDescriptionCache = new WeakMap<JsonSchemaObject, JsonSchemaObject>();\n\nexport const setSchemaPropertyDescriptionResolver = (\n resolver: (propertyKey: string) => string | undefined,\n): void => {\n if (resolver === schemaPropertyDescriptionResolver) {\n return;\n }\n schemaPropertyDescriptionResolver = resolver;\n propertyDescriptionCache = new WeakMap();\n};\n\nexport const injectPropertyDescriptions = (schema: JsonSchemaObject): JsonSchemaObject => {\n const cachedSchema = propertyDescriptionCache.get(schema);\n if (cachedSchema) {\n return cachedSchema;\n }\n\n const schemaWithDescriptions = {\n ...schema,\n properties: Object.entries(schema.properties).reduce<JsonSchemaObject['properties']>(\n (acc, [propertyKey, propertySchema]) => ({\n ...acc,\n [propertyKey]: {\n ...propertySchema,\n description: isJsonSchemaRef(propertySchema)\n ? `Type: ${propertySchema.description}`\n : (propertySchema.description ?? schemaPropertyDescriptionResolver(propertyKey)),\n },\n }),\n {},\n ),\n };\n propertyDescriptionCache.set(schema, schemaWithDescriptions);\n return schemaWithDescriptions;\n};\n\nexport const isPlatformObjectSchema = (schema: JsonSchema): schema is PlatformObjectJsonSchema => {\n return (\n 'type' in schema &&\n schema.type === JsonSchemaTypes.Object &&\n schema.properties &&\n 'objectType' in schema.properties\n );\n};\n\nexport const getPlatformObjectTypeFromJsonSchema = (\n schema: JsonSchema,\n): JsonSchemaObjectKey | null => {\n return isPlatformObjectSchema(schema) ? schema.properties.objectType.const : null;\n};\n\nexport const getPlatformTemplateFromJsonSchema = (schema: JsonSchema): string[] | null => {\n if (!isPlatformObjectSchema(schema)) {\n return null;\n }\n return schema.properties.template?.anyOf.map((jsonSchema) => jsonSchema.const) || null;\n};\n\nexport const getSpecificType = (schema: PlatformJsonSchema) => {\n const platformObjectType = getPlatformObjectTypeFromJsonSchema(schema);\n if (platformObjectType) {\n return platformObjectType;\n }\n return getJsonSchemaType(schema);\n};\n\nexport const resolveJssRef = (\n schema: JsonSchemaRef,\n platformObjectJsonSchema: ObjectSchemaMap = {},\n): JsonSchemaObject => {\n return platformObjectJsonSchema[schema.$ref]\n ? injectPropertyDescriptions(platformObjectJsonSchema[schema.$ref])\n : EMPTY_JSON_SCHEMA_OBJECT;\n};\n\n// This is a hack to get the JSON:API name of the Persona object described by the schema\n// returned from the workflows schema controller.\nexport const getWorkflowObjectKeyFromSchemaRef = (schemaRef: string): JsonSchemaObjectKey => {\n return schemaRef\n .split('/') // ['', 'schema', 'object-type', 'object-subtype', 'merged']\n .slice(2) // ['object-type', 'object-subtype', 'merged']\n .slice(0, -1) // ['object-type', 'object-subtype']\n .join('/')\n .replace(/_/g, '-') as JsonSchemaObjectKey;\n};\n\nexport const getSchemaId = (\n workflowObjectKey: JsonSchemaObjectKey | string,\n identifier = '',\n): string => {\n return ['/schema', snakify(workflowObjectKey), identifier].filter(Boolean).join('/');\n};\n\nexport enum PrimitiveSchemaId {\n String = '/schema/string',\n Array = '/schema/array',\n Number = '/schema/number',\n Boolean = '/schema/boolean',\n Date = '/schema/date',\n Datetime = '/schema/datetime',\n File = '/schema/field/file',\n}\n\nexport const getSchemaIdForExternalIntegration = (vendor: string, operation: string): string => {\n return vendor && operation\n ? ['/schema', 'external_integration_log', snakeCase(vendor), operation]\n .filter(Boolean)\n .join('/')\n : '';\n};\n"],"mappings":";;;;;AA+BA,MAAa,mBAAmB;AAEhC,IAAI,qCAAqC,iBAA6C,KAAA;AACtF,IAAI,2CAA2B,IAAI,SAA6C;AAEhF,MAAa,wCACX,aACS;AACT,KAAI,aAAa,kCACf;AAEF,qCAAoC;AACpC,4CAA2B,IAAI,SAAS;;AAG1C,MAAa,8BAA8B,WAA+C;CACxF,MAAM,eAAe,yBAAyB,IAAI,OAAO;AACzD,KAAI,aACF,QAAO;CAGT,MAAM,yBAAyB;EAC7B,GAAG;EACH,YAAY,OAAO,QAAQ,OAAO,WAAW,CAAC,QAC3C,KAAK,CAAC,aAAa,qBAAqB;GACvC,GAAG;IACF,cAAc;IACb,GAAG;IACH,aAAa,gBAAgB,eAAe,GACxC,SAAS,eAAe,gBACvB,eAAe,eAAe,kCAAkC,YAAY;IAClF;GACF,GACD,EAAE,CACH;EACF;AACD,0BAAyB,IAAI,QAAQ,uBAAuB;AAC5D,QAAO;;AAGT,MAAa,0BAA0B,WAA2D;AAChG,QACE,UAAU,UACV,OAAO,SAAA,YACP,OAAO,cACP,gBAAgB,OAAO;;AAI3B,MAAa,uCACX,WAC+B;AAC/B,QAAO,uBAAuB,OAAO,GAAG,OAAO,WAAW,WAAW,QAAQ;;AAG/E,MAAa,qCAAqC,WAAwC;AACxF,KAAI,CAAC,uBAAuB,OAAO,CACjC,QAAO;AAET,QAAO,OAAO,WAAW,UAAU,MAAM,KAAK,eAAe,WAAW,MAAM,IAAI;;AAGpF,MAAa,mBAAmB,WAA+B;CAC7D,MAAM,qBAAqB,oCAAoC,OAAO;AACtE,KAAI,mBACF,QAAO;AAET,QAAO,kBAAkB,OAAO;;AAGlC,MAAa,iBACX,QACA,2BAA4C,EAAE,KACzB;AACrB,QAAO,yBAAyB,OAAO,QACnC,2BAA2B,yBAAyB,OAAO,MAAM,GACjE;;AAKN,MAAa,qCAAqC,cAA2C;AAC3F,QAAO,UACJ,MAAM,IAAI,CACV,MAAM,EAAE,CACR,MAAM,GAAG,GAAG,CACZ,KAAK,IAAI,CACT,QAAQ,MAAM,IAAI;;AAGvB,MAAa,eACX,mBACA,aAAa,OACF;AACX,QAAO;EAAC;EAAW,QAAQ,kBAAkB;EAAE;EAAW,CAAC,OAAO,QAAQ,CAAC,KAAK,IAAI;;AAGtF,IAAY,oBAAL,yBAAA,mBAAA;AACL,mBAAA,YAAA;AACA,mBAAA,WAAA;AACA,mBAAA,YAAA;AACA,mBAAA,aAAA;AACA,mBAAA,UAAA;AACA,mBAAA,cAAA;AACA,mBAAA,UAAA;;KACD;AAED,MAAa,qCAAqC,QAAgB,cAA8B;AAC9F,QAAO,UAAU,YACb;EAAC;EAAW;EAA4B,UAAU,OAAO;EAAE;EAAU,CAClE,OAAO,QAAQ,CACf,KAAK,IAAI,GACZ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as To, n as RouterAdapter, r as RouterLinkComponentProps, t as NavigateOptions } from "../../types-
|
|
2
|
-
import { n as RouterProvider, r as useRouter, t as RouterContext } from "../../RouterContext-
|
|
3
|
-
import { t as createPath } from "../../createPath-
|
|
4
|
-
import { t as RouterLink } from "../../RouterLink-
|
|
5
|
-
import { t as usePathname } from "../../useLocationPathname-
|
|
1
|
+
import { i as To, n as RouterAdapter, r as RouterLinkComponentProps, t as NavigateOptions } from "../../types-CkpixGWr.mjs";
|
|
2
|
+
import { n as RouterProvider, r as useRouter, t as RouterContext } from "../../RouterContext-B3IU1jb0.mjs";
|
|
3
|
+
import { t as createPath } from "../../createPath-OeTC9kvS.mjs";
|
|
4
|
+
import { t as RouterLink } from "../../RouterLink-CwAqTLC2.mjs";
|
|
5
|
+
import { t as usePathname } from "../../useLocationPathname-DH5Tdq5X.mjs";
|
|
6
6
|
export { NavigateOptions, RouterAdapter, RouterContext, RouterLink, RouterLinkComponentProps, RouterProvider, To, createPath, usePathname, useRouter };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { T as JsonSchemaTypes, b as JsonSchemaObjectKey, c as JsonSchemaBasicTypes, dt as ObjectSchemaMap, f as JsonSchemaCustomTypes, n as JsonSchema, st as FunctionJsonSchema, y as JsonSchemaObject } from "../jsonSchema-CfGi1bzI.mjs";
|
|
2
|
+
import { n as Chain, s as MethodChainNode } from "../methodChainTypes-CqWzfx0M.mjs";
|
|
3
|
+
|
|
4
|
+
//#region lib/schemaOptions.d.ts
|
|
5
|
+
type VariableSchemaObject = {
|
|
6
|
+
value: string;
|
|
7
|
+
schema?: JsonSchema | null;
|
|
8
|
+
isVariable?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type Option = {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
property: string;
|
|
14
|
+
schema: JsonSchema | FunctionJsonSchema;
|
|
15
|
+
methodChain: Chain | null;
|
|
16
|
+
utility?: boolean;
|
|
17
|
+
workflowObjectKey?: string;
|
|
18
|
+
isVariable?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Extracts the top-level platform-object key from a schema's `$ref`/`$id`/
|
|
22
|
+
* `objectKey`/`objectType.const` markers. Collapses subtypes to their root
|
|
23
|
+
* (`/schema/verification/document/merged` -> `verification`) because callers
|
|
24
|
+
* compare against top-level `ApiModel` values.
|
|
25
|
+
*/
|
|
26
|
+
declare const extractPlatformObjectKey: (schema: JsonSchema | null | undefined, platformObjectJsonSchema?: ObjectSchemaMap) => string | null;
|
|
27
|
+
type PossibleType = JsonSchemaTypes | JsonSchemaCustomTypes | JsonSchemaObjectKey;
|
|
28
|
+
type PossibleArrayType = JsonSchemaBasicTypes | JsonSchemaTypes.Object | JsonSchemaObjectKey;
|
|
29
|
+
declare const isValidOption: (schema: JsonSchema, allowedFieldPaths: string[], disallowedFieldPaths: string[], allowedTypes: PossibleType[], allowedArrayTypes: PossibleArrayType[], path: string[] | undefined, platformObjectJsonSchema: ObjectSchemaMap) => boolean;
|
|
30
|
+
declare const getSchemaOptions: ({
|
|
31
|
+
option,
|
|
32
|
+
optionFilters,
|
|
33
|
+
platformObjectJsonSchema,
|
|
34
|
+
primitiveUtilities,
|
|
35
|
+
digPrimitives
|
|
36
|
+
}: {
|
|
37
|
+
option: Pick<Option, "schema" | "methodChain">;
|
|
38
|
+
optionFilters?: OptionFilters;
|
|
39
|
+
platformObjectJsonSchema: ObjectSchemaMap;
|
|
40
|
+
primitiveUtilities: ObjectSchemaMap;
|
|
41
|
+
digPrimitives?: boolean;
|
|
42
|
+
}) => Option[];
|
|
43
|
+
declare const formatDisplayValue: (value: any) => string;
|
|
44
|
+
/**
|
|
45
|
+
* Resolves the schema at a dotted path (e.g. "account.birthDate").
|
|
46
|
+
* Tries direct key lookup first, then traverses into nested object .properties by path part.
|
|
47
|
+
* Normalizes kebab/snake at each level for key lookup.
|
|
48
|
+
*/
|
|
49
|
+
declare function getSchemaByPath(properties: Record<string, JsonSchema> | null | undefined, path: string): JsonSchema | undefined;
|
|
50
|
+
declare const getSchemaForFieldPath: ({
|
|
51
|
+
path,
|
|
52
|
+
initialSchema,
|
|
53
|
+
platformObjectJsonSchema,
|
|
54
|
+
primitiveUtilities
|
|
55
|
+
}: {
|
|
56
|
+
path: string;
|
|
57
|
+
initialSchema: JsonSchema;
|
|
58
|
+
platformObjectJsonSchema?: ObjectSchemaMap;
|
|
59
|
+
primitiveUtilities?: ObjectSchemaMap;
|
|
60
|
+
}) => {
|
|
61
|
+
schema: JsonSchema | null;
|
|
62
|
+
propertyName: string | null;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Get the schema for a variable path from usableObjects.
|
|
66
|
+
*/
|
|
67
|
+
declare const getSchemaForVariablePath: ({
|
|
68
|
+
path,
|
|
69
|
+
usableObjects
|
|
70
|
+
}: {
|
|
71
|
+
path: string;
|
|
72
|
+
usableObjects: VariableSchemaObject[];
|
|
73
|
+
}) => {
|
|
74
|
+
schema: JsonSchema | null;
|
|
75
|
+
propertyName: string | null;
|
|
76
|
+
};
|
|
77
|
+
declare const nextLinkSchema: ({
|
|
78
|
+
currentSchema,
|
|
79
|
+
nextLink,
|
|
80
|
+
platformObjectJsonSchema,
|
|
81
|
+
primitiveUtilities
|
|
82
|
+
}: {
|
|
83
|
+
currentSchema: JsonSchema | null;
|
|
84
|
+
nextLink: MethodChainNode;
|
|
85
|
+
platformObjectJsonSchema: ObjectSchemaMap;
|
|
86
|
+
primitiveUtilities: ObjectSchemaMap;
|
|
87
|
+
}) => JsonSchema | null;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the FunctionJsonSchema for `functionName` within `parentSchema`, checking both
|
|
90
|
+
* primitive utilities (e.g. array/string methods) and direct object properties.
|
|
91
|
+
* Returns null if not found or not a function schema.
|
|
92
|
+
*/
|
|
93
|
+
declare const getFunctionSchemaForNode: ({
|
|
94
|
+
parentSchema,
|
|
95
|
+
functionName,
|
|
96
|
+
isCustomFunction,
|
|
97
|
+
platformObjectJsonSchema,
|
|
98
|
+
primitiveUtilities
|
|
99
|
+
}: {
|
|
100
|
+
parentSchema: JsonSchema;
|
|
101
|
+
functionName: string;
|
|
102
|
+
isCustomFunction: boolean;
|
|
103
|
+
platformObjectJsonSchema: ObjectSchemaMap;
|
|
104
|
+
primitiveUtilities: ObjectSchemaMap;
|
|
105
|
+
}) => FunctionJsonSchema | null;
|
|
106
|
+
declare const isTypeMatch: ({
|
|
107
|
+
fieldJsonSchema,
|
|
108
|
+
types,
|
|
109
|
+
platformObjectJsonSchema,
|
|
110
|
+
arrayTypes,
|
|
111
|
+
traversedSchemaIds
|
|
112
|
+
}: {
|
|
113
|
+
fieldJsonSchema: JsonSchema;
|
|
114
|
+
types: PossibleType[];
|
|
115
|
+
platformObjectJsonSchema: ObjectSchemaMap;
|
|
116
|
+
arrayTypes?: PossibleArrayType[];
|
|
117
|
+
traversedSchemaIds?: Set<string>;
|
|
118
|
+
}) => boolean;
|
|
119
|
+
interface OptionFilters {
|
|
120
|
+
allowedArrayTypes?: PossibleArrayType[];
|
|
121
|
+
allowedFieldPaths?: string[];
|
|
122
|
+
allowedTypes?: PossibleType[];
|
|
123
|
+
disallowedFieldPaths?: string[];
|
|
124
|
+
fieldPathsAreStrictMatch?: boolean;
|
|
125
|
+
requiredPropertyShape?: string[];
|
|
126
|
+
}
|
|
127
|
+
declare const hasRequiredPropertyShape: (schema: JsonSchema, requiredPropertyShape: string[], platformObjectJsonSchema?: ObjectSchemaMap, checkRecursively?: boolean) => boolean;
|
|
128
|
+
declare const getOptionForValue: ({
|
|
129
|
+
value,
|
|
130
|
+
jsonSchema,
|
|
131
|
+
schemaForFieldPath
|
|
132
|
+
}: {
|
|
133
|
+
value: string;
|
|
134
|
+
jsonSchema: JsonSchema;
|
|
135
|
+
schemaForFieldPath: (path: string, initialSchema: JsonSchema) => {
|
|
136
|
+
schema: JsonSchema | null;
|
|
137
|
+
propertyName: string | null;
|
|
138
|
+
};
|
|
139
|
+
}) => Option | null;
|
|
140
|
+
declare const validatePath: ({
|
|
141
|
+
path,
|
|
142
|
+
jsonSchema,
|
|
143
|
+
platformObjectJsonSchema,
|
|
144
|
+
primitiveUtilities,
|
|
145
|
+
optionFilters
|
|
146
|
+
}: {
|
|
147
|
+
path: string;
|
|
148
|
+
jsonSchema: JsonSchema;
|
|
149
|
+
platformObjectJsonSchema: ObjectSchemaMap;
|
|
150
|
+
primitiveUtilities: ObjectSchemaMap;
|
|
151
|
+
optionFilters?: OptionFilters;
|
|
152
|
+
}) => {
|
|
153
|
+
valid: boolean;
|
|
154
|
+
schemaOptions: Option[];
|
|
155
|
+
partial: string;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Given a method chain that corresponds to the passed schema, find the right-most indentifier that
|
|
159
|
+
* is a platform object and split the method chain on that identifier, with the platform object on
|
|
160
|
+
* the left side.
|
|
161
|
+
*
|
|
162
|
+
* This function is used to optimize a method chain into two parts, left side for server resolution
|
|
163
|
+
* and right side for client resolution.
|
|
164
|
+
*
|
|
165
|
+
* For example:
|
|
166
|
+
* current_case.fields.field_a -> ['current_case', 'fields.field_a']
|
|
167
|
+
* current_case.inquiries.first.id -> ['current_case.inquiries.first', 'id']
|
|
168
|
+
* current_case.account.fields.field_b -> ['current_case.account', 'fields.field_b']
|
|
169
|
+
*/
|
|
170
|
+
declare const splitAtNearestParentObject: (chain: Chain, currentSchema: JsonSchemaObject, platformSchemaMap: ObjectSchemaMap, primitiveUtilities: ObjectSchemaMap) => [leftChain: Chain, rightChain: Chain];
|
|
171
|
+
//#endregion
|
|
172
|
+
export { Option, OptionFilters, extractPlatformObjectKey, formatDisplayValue, getFunctionSchemaForNode, getOptionForValue, getSchemaByPath, getSchemaForFieldPath, getSchemaForVariablePath, getSchemaOptions, hasRequiredPropertyShape, isTypeMatch, isValidOption, nextLinkSchema, splitAtNearestParentObject, validatePath };
|
|
173
|
+
//# sourceMappingURL=schemaOptions.d.mts.map
|