@tmorrow/cre8-wc 2.0.6 → 2.0.8
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/a2ui/catalog +5 -5
- package/a2ui/catalog-kg.json +156 -20
- package/a2ui/catalog.json +394 -35
- package/a2ui/catalog.svg +2445 -2445
- package/a2ui/examples/compound-families.json +298 -0
- package/a2ui/examples/llm-observability.json +678 -650
- package/a2ui/generate-catalog.mjs +116 -3
- package/a2ui/inert-props.json +32 -0
- package/a2ui/render-audit.mjs +294 -0
- package/a2ui/renderer.d.ts +2 -1
- package/a2ui/renderer.js +1 -1
- package/a2ui/renderer.ts +1 -1
- package/a2ui/smoke-test.mjs +3 -3
- package/a2ui/stream/diff-test.mjs +299 -0
- package/a2ui/stream/diff.d.ts +28 -0
- package/a2ui/stream/diff.js +130 -0
- package/a2ui/stream/diff.ts +145 -0
- package/a2ui/stream/index.d.ts +11 -0
- package/a2ui/stream/index.js +11 -0
- package/a2ui/stream/index.ts +43 -0
- package/a2ui/stream/model.d.ts +66 -0
- package/a2ui/stream/model.js +429 -0
- package/a2ui/stream/model.ts +472 -0
- package/a2ui/stream/pointer.d.ts +34 -0
- package/a2ui/stream/pointer.js +146 -0
- package/a2ui/stream/pointer.ts +147 -0
- package/a2ui/stream/renderer.d.ts +51 -0
- package/a2ui/stream/renderer.js +282 -0
- package/a2ui/stream/renderer.ts +291 -0
- package/a2ui/stream/stream-test.mjs +592 -0
- package/a2ui/stream/types.d.ts +173 -0
- package/a2ui/stream/types.js +17 -0
- package/a2ui/stream/types.ts +127 -0
- package/cdn/cre8-wc.esm.js +3528 -3227
- package/cdn/cre8-wc.esm.js.map +1 -1
- package/cdn/cre8-wc.min.js +290 -290
- package/cdn/cre8-wc.min.js.map +1 -1
- package/dist/assets/{Changelog-Documentation-BguNswiM.js → Changelog-Documentation-CeOetLxK.js} +1 -1
- package/dist/assets/{Code-Guidelines-BM3dZyzL.js → Code-Guidelines-BjdezAjj.js} +1 -1
- package/dist/assets/{Color-6AOWCN3U-C4AEGNk3.js → Color-6AOWCN3U-DPFGZitI.js} +1 -1
- package/dist/assets/{Contributing-Guidelines-DZURVehh.js → Contributing-Guidelines-B1M2V1hW.js} +1 -1
- package/dist/assets/{DocsRenderer-JROSPFPF-DeZmCI9u.js → DocsRenderer-JROSPFPF-BBy8KWNl.js} +1 -1
- package/dist/assets/{Tokens-Documentation-ZecGbtQg.js → Tokens-Documentation-CdTxFDLe.js} +1 -1
- package/dist/assets/{WithTooltip-7X4HQR7L-2Hfrkir-.js → WithTooltip-7X4HQR7L-DZzTNMQ7.js} +1 -1
- package/dist/assets/{accordion-item.stories-D-MjrX5G.js → accordion-item.stories-Bl26JlHp.js} +1 -9
- package/dist/assets/{accordion.stories-icgNa1dl.js → accordion.stories-DjoLApQw.js} +3 -11
- package/dist/assets/{alert.stories-BzDaXtj-.js → alert.stories-pO1y3YCQ.js} +15 -31
- package/dist/assets/{badge-C5wOWgyg.js → badge-BTxW3bN2.js} +3 -11
- package/dist/assets/{badge.stories-5GfB4jVI.js → badge.stories-vqh63RJ2.js} +1 -1
- package/dist/assets/{band.stories-DhXaP_kL.js → band.stories-CjKRppSb.js} +1 -9
- package/dist/assets/{blocks-DhUVut8Z.js → blocks-1be_-L6v.js} +5 -5
- package/dist/assets/{breadcrumbs.stories-CrPUBVk1.js → breadcrumbs.stories-Doyfy3V9.js} +2 -18
- package/dist/assets/{button-CJL8yzAT.js → button-CgaWukz0.js} +1 -9
- package/dist/assets/{button-group-BgwgtSFC.js → button-group-G7qN4MwM.js} +1 -9
- package/dist/assets/{button-group.stories-W-07gO63.js → button-group.stories-cL3Kay6M.js} +1 -1
- package/dist/assets/{button.stories-BPzJ-sCv.js → button.stories-C9HSpxWb.js} +6 -6
- package/dist/assets/{card.stories-mlFGY2Xn.js → card.stories-BbU8YymD.js} +3 -11
- package/dist/assets/{chart.stories-C8yuHHeK.js → chart.stories-BL4FxIA_.js} +1 -1
- package/dist/assets/{checkbox-field-item-iHcdmTNw.js → checkbox-field-item-DIMHcWM0.js} +1 -9
- package/dist/assets/{checkbox-field-item.stories-D1aVLDXn.js → checkbox-field-item.stories-XbB4x_lO.js} +1 -1
- package/dist/assets/{checkbox-field.stories-BoVB2jCx.js → checkbox-field.stories-YnqFUI4K.js} +2 -10
- package/dist/assets/{cre8-element-DfmMtHJO.js → cre8-element-B35i4Lyg.js} +1 -1
- package/dist/assets/{cre8-form-element-bQpK8UYN.js → cre8-form-element-Cfc5VeYV.js} +1 -1
- package/dist/assets/{danger-button.stories-Cb4ljnhQ.js → danger-button.stories-xh25hmfd.js} +1 -9
- package/dist/assets/{date-picker.stories-Cje3qk8D.js → date-picker.stories-DD_ctzEF.js} +1 -49
- package/dist/assets/{divider-B_PXBGWD.js → divider-xZ2KARHf.js} +2 -10
- package/dist/assets/{divider.stories-CtfeBqVV.js → divider.stories-Bk9oF-OV.js} +1 -1
- package/dist/assets/{dropdown-Cgwne34I.js → dropdown-BEP5x3CW.js} +6 -22
- package/dist/assets/{dropdown-item.stories-pXkDLRuv.js → dropdown-item.stories-Iaw_UrEP.js} +1 -1
- package/dist/assets/{dropdown.stories-DZnmHieY.js → dropdown.stories-B0OlKD7h.js} +1 -1
- package/dist/assets/{example-drug-card.stories-DTzLXTFx.js → example-drug-card.stories-Bp5JIeE_.js} +1 -1
- package/dist/assets/{f-po-C2WpbOFJ.js → f-po-BdPzDRD-.js} +1 -1
- package/dist/assets/{feature.stories-DffXdJch.js → feature.stories-DYE1Js70.js} +1 -9
- package/dist/assets/{field-DzYRqQb2.js → field-BpUYyRW1.js} +1 -9
- package/dist/assets/{field-note-DKXZiXLU.js → field-note-fccBckVl.js} +3 -11
- package/dist/assets/{field-note.stories-DS_0bQul.js → field-note.stories-BH9AZMbF.js} +1 -1
- package/dist/assets/{field.stories-BvXn0oG6.js → field.stories-BQPtmziK.js} +1 -1
- package/dist/assets/{footer.stories-C3ZibisU.js → footer.stories-DCWEciqD.js} +1 -9
- package/dist/assets/{form-example.stories-C-TuOeF2.js → form-example.stories-9IDC0AgX.js} +1 -1
- package/dist/assets/{formatter-L2YTDE3Q-CJVnxOUW.js → formatter-L2YTDE3Q-B9u1AOWn.js} +1 -1
- package/dist/assets/{global-nav-item-xQL7wVjY.js → global-nav-item-T4htN-yO.js} +6 -14
- package/dist/assets/{global-nav-item.stories-Dp9TE3aR.js → global-nav-item.stories-2dWRfCXv.js} +1 -1
- package/dist/assets/{global-nav.stories-B5Nk8JZ0.js → global-nav.stories-Fh1gScqg.js} +2 -10
- package/dist/assets/{grid-DYgnZBsd.js → grid-C5CKMXNe.js} +3 -19
- package/dist/assets/{grid.stories-BFiXTq2C.js → grid.stories-BLmCNdeA.js} +1 -1
- package/dist/assets/{header.stories-D1f7xhjV.js → header.stories-BkDrjJtj.js} +1 -9
- package/dist/assets/{heading-485Jz7JZ.js → heading-Dbka33DK.js} +2 -10
- package/dist/assets/{heading.stories-gPF_SmTc.js → heading.stories-Be40_bmG.js} +1 -1
- package/dist/assets/{hero.stories-BHlFNdvF.js → hero.stories-vRu7PZG9.js} +1 -9
- package/dist/assets/{icon-DeTLDzTS.js → icon-ChfRWXWy.js} +2 -10
- package/dist/assets/{icon-description-o-YaiEjK.js → icon-description-BBSwDykJ.js} +1 -1
- package/dist/assets/{icon-description.stories-BdPRvEwe.js → icon-description.stories-Cg6ekOme.js} +1 -1
- package/dist/assets/{icon.stories-BxWpqxT5.js → icon.stories-Cj4U7L5G.js} +1 -1
- package/dist/assets/if-defined-Bxnzk64Q.js +1 -0
- package/dist/assets/{iframe-dHvya7sk.js → iframe-BNJP6ovU.js} +35 -35
- package/dist/assets/{inline-alert.stories-FH0bQ0jh.js → inline-alert.stories-CygBYI02.js} +1 -9
- package/dist/assets/{layout-container.stories-D6Z6Kx78.js → layout-container.stories-TMyIJteJ.js} +2 -10
- package/dist/assets/{layout.stories-CNYuwC_r.js → layout.stories-ylRM-ANL.js} +7 -23
- package/dist/assets/{linelength-container.stories-pCRXZvxS.js → linelength-container.stories-Br2v8jXE.js} +1 -9
- package/dist/assets/{link-BpCiLxNW.js → link-CRE0Eqdo.js} +1 -9
- package/dist/assets/{link-list.stories-12vsAa1P.js → link-list.stories--y-urrVo.js} +7 -23
- package/dist/assets/{link.stories-DAoQtY4_.js → link.stories-C3WQOgkY.js} +2 -2
- package/dist/assets/{list.stories-D0N3yBIf.js → list.stories-Bd2bxkxn.js} +7 -23
- package/dist/assets/{loading-spinner-g6iJajXH.js → loading-spinner-C52KNq6y.js} +4 -12
- package/dist/assets/{loading-spinner.stories-B6_mgPxB.js → loading-spinner.stories-DPRGEeHT.js} +1 -1
- package/dist/assets/{logo.stories-BvMwN2qg.js → logo.stories-2LBqqraT.js} +1 -9
- package/dist/assets/{main.stories-pL4zefbs.js → main.stories-BQzD7iWD.js} +2 -10
- package/dist/assets/{medication-card.stories-DK1XGJic.js → medication-card.stories-Wc-hA0-s.js} +5 -5
- package/dist/assets/{medication-form.stories-Bj5dLp5S.js → medication-form.stories-DfFOCDaU.js} +1 -1
- package/dist/assets/{modal-CO0M4e_8.js → modal-CCfbY4fF.js} +1 -9
- package/dist/assets/{modal-BNu8xy08.js → modal-GglWRNJp.js} +1 -1
- package/dist/assets/{modal.stories-CHYBrq_E.js → modal.stories-CpybCs79.js} +1 -1
- package/dist/assets/{multi-select.stories-C9XXsWio.js → multi-select.stories-BhzEKRui.js} +1 -9
- package/dist/assets/{nav-container.stories-DU9fhvDu.js → nav-container.stories-Be1YlegP.js} +3 -11
- package/dist/assets/{page-header.stories-BrstKiEY.js → page-header.stories-BOVLQ0YF.js} +1 -9
- package/dist/assets/{pagination.stories-Bw2M2iOn.js → pagination.stories-D62sa_1K.js} +9 -25
- package/dist/assets/{percent-bar.stories-UQRXYUqd.js → percent-bar.stories-CYi4El7T.js} +1 -9
- package/dist/assets/{popover.stories-ZkwrRFpR.js → popover.stories-B9O8F4yv.js} +1 -9
- package/dist/assets/{primary-nav.stories-wqOKwgQn.js → primary-nav.stories-Bt-o7h45.js} +1 -17
- package/dist/assets/{progress-meter-TzASasu0.js → progress-meter-Dit59091.js} +1 -9
- package/dist/assets/{progress-meter.stories-qfJALZf8.js → progress-meter.stories-CYnOCmjo.js} +1 -1
- package/dist/assets/{progress-steps-item-KvW1d_7L.js → progress-steps-item-CWJsad0s.js} +1 -9
- package/dist/assets/{progress-steps-item.stories-uOn6tJ1W.js → progress-steps-item.stories-ePn_6bPn.js} +1 -1
- package/dist/assets/{progress-steps.stories-CKFPx8D0.js → progress-steps.stories-CblrEcXF.js} +1 -9
- package/dist/assets/{radio-field-item-CTaR50XR.js → radio-field-item-Bm-0RWPe.js} +5 -21
- package/dist/assets/{radio-field-item.stories-DQSLj8W1.js → radio-field-item.stories-y_TrTRIW.js} +1 -1
- package/dist/assets/{radio-field.stories-Btmc_Iep.js → radio-field.stories-CSWrbUrn.js} +1 -1
- package/dist/assets/{remove-tag-BSEZ7VT8.js → remove-tag-lCr57c5r.js} +1 -9
- package/dist/assets/{remove-tag.stories-diRKi7Ua.js → remove-tag.stories-CDfwCdvZ.js} +1 -1
- package/dist/assets/{request-prescription.stories-DQvra7ia.js → request-prescription.stories-O4zqokfb.js} +1 -1
- package/dist/assets/{sample-modal.stories-deE1EBfZ.js → sample-modal.stories-BZ4N2R2Z.js} +1 -1
- package/dist/assets/{section.stories-DF4mcy2O.js → section.stories-D_1InThX.js} +1 -9
- package/dist/assets/{select-tile-D-C8oSrm.js → select-tile-BqqB3ZtE.js} +2 -10
- package/dist/assets/{select-tile-list.stories-vsBQUIcl.js → select-tile-list.stories-Di4ILgV8.js} +1 -9
- package/dist/assets/{select-tile.stories-CqHzN5fc.js → select-tile.stories-D3h_6zlV.js} +6 -6
- package/dist/assets/{select.stories-8aOGxTtr.js → select.stories-BB2phP9A.js} +1 -9
- package/dist/assets/{skeleton-loader.stories-CwR2-aC5.js → skeleton-loader.stories-y4uml_kV.js} +5 -13
- package/dist/assets/{split-button.stories-CyfdrK4u.js → split-button.stories-C_82I4ME.js} +2 -10
- package/dist/assets/{spread-BPiNgQQF.js → spread-CnPic3C2.js} +1 -1
- package/dist/assets/state-DkQhleoO.js +1 -0
- package/dist/assets/{submenu.stories-CDhNzZzh.js → submenu.stories-UDtaREr1.js} +2 -18
- package/dist/assets/{syntaxhighlighter-T5IQBZDB-BzI6WxUR.js → syntaxhighlighter-T5IQBZDB-D-I_s_yD.js} +1 -1
- package/dist/assets/{table-header-CfcchoYz.js → table-header-2837i43H.js} +3 -51
- package/dist/assets/{table-object.stories-Bd5qdfMU.js → table-object.stories-D4KoI-wA.js} +1 -9
- package/dist/assets/{table.stories-DxuBe9dJ.js → table.stories-DUJDibEp.js} +1 -1
- package/dist/assets/{tabs.stories-Cpc3OHJx.js → tabs.stories-C06SngOF.js} +5 -29
- package/dist/assets/{tag-list.stories-BmyCmrTF.js → tag-list.stories-Du-IoYzu.js} +2 -10
- package/dist/assets/{tag-vQFuZneb.js → tag-oHGdclJl.js} +1 -9
- package/dist/assets/{tag.stories-DGzrNUbb.js → tag.stories-C5D5IbuK.js} +1 -1
- package/dist/assets/{tertiary-nav.stories-D4q5K-am.js → tertiary-nav.stories-B1GU8Zi4.js} +3 -19
- package/dist/assets/{text-link-4qLRIeJB.js → text-link-B3m3KEqY.js} +1 -9
- package/dist/assets/{text-link.stories-D6BRm2I5.js → text-link.stories-4O6qn82H.js} +1 -1
- package/dist/assets/{text-passage-DGaI5i2I.js → text-passage-xQVosjOr.js} +3 -19
- package/dist/assets/{text-passage.stories-DkmXVUhH.js → text-passage.stories-Da1nspwG.js} +1 -1
- package/dist/assets/{tooltip.stories-B7ADDq7o.js → tooltip.stories-DLKyyeKn.js} +6 -14
- package/dist/assets/{utility-nav.stories-ffXVvyLp.js → utility-nav.stories-B6xBFe7z.js} +5 -21
- package/dist/design-tokens/brands/cre8/css/tokens_brand.css +1 -1
- package/dist/design-tokens/core/scss/theming/component.css +1 -1
- package/dist/design-tokens/core/scss/theming/variables.css +1 -7
- package/dist/design-tokens/core/scss/theming/variables.scss +0 -11
- package/dist/icons/cre8-icons.svg +1 -1
- package/dist/iframe.html +1 -24
- package/dist/index.html +25 -77
- package/dist/project.json +1 -1
- package/lib/a2ui/renderer.d.ts +2 -1
- package/lib/a2ui/renderer.d.ts.map +1 -1
- package/lib/a2ui/renderer.js +1 -1
- package/lib/a2ui/renderer.js.map +1 -1
- package/lib/a2ui/stream/diff.d.ts +29 -0
- package/lib/a2ui/stream/diff.d.ts.map +1 -0
- package/lib/a2ui/stream/diff.js +131 -0
- package/lib/a2ui/stream/diff.js.map +1 -0
- package/lib/a2ui/stream/index.d.ts +12 -0
- package/lib/a2ui/stream/index.d.ts.map +1 -0
- package/lib/a2ui/stream/index.js +12 -0
- package/lib/a2ui/stream/index.js.map +1 -0
- package/lib/a2ui/stream/model.d.ts +67 -0
- package/lib/a2ui/stream/model.d.ts.map +1 -0
- package/lib/a2ui/stream/model.js +423 -0
- package/lib/a2ui/stream/model.js.map +1 -0
- package/lib/a2ui/stream/pointer.d.ts +35 -0
- package/lib/a2ui/stream/pointer.d.ts.map +1 -0
- package/lib/a2ui/stream/pointer.js +147 -0
- package/lib/a2ui/stream/pointer.js.map +1 -0
- package/lib/a2ui/stream/renderer.d.ts +52 -0
- package/lib/a2ui/stream/renderer.d.ts.map +1 -0
- package/lib/a2ui/stream/renderer.js +279 -0
- package/lib/a2ui/stream/renderer.js.map +1 -0
- package/lib/a2ui/stream/types.d.ts +174 -0
- package/lib/a2ui/stream/types.d.ts.map +1 -0
- package/lib/a2ui/stream/types.js +18 -0
- package/lib/a2ui/stream/types.js.map +1 -0
- package/lib/components/accordion/accordion.d.ts +15 -0
- package/lib/components/accordion/accordion.d.ts.map +1 -1
- package/lib/components/accordion/accordion.js +23 -0
- package/lib/components/accordion/accordion.js.map +1 -1
- package/lib/components/badge/badge.d.ts +5 -18
- package/lib/components/badge/badge.d.ts.map +1 -1
- package/lib/components/badge/badge.js +0 -15
- package/lib/components/badge/badge.js.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.d.ts +14 -0
- package/lib/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.js +21 -0
- package/lib/components/breadcrumbs/breadcrumbs.js.map +1 -1
- package/lib/components/chart/chart.d.ts +3 -3
- package/lib/components/chart/chart.js +6 -6
- package/lib/components/chart/chart.js.map +1 -1
- package/lib/components/checkbox-field/checkbox-field.d.ts +19 -0
- package/lib/components/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/lib/components/checkbox-field/checkbox-field.js +28 -0
- package/lib/components/checkbox-field/checkbox-field.js.map +1 -1
- package/lib/components/cre8-element.d.ts +19 -0
- package/lib/components/cre8-element.d.ts.map +1 -1
- package/lib/components/cre8-element.js +51 -2
- package/lib/components/cre8-element.js.map +1 -1
- package/lib/components/divider/divider.d.ts +1 -1
- package/lib/components/divider/divider.d.ts.map +1 -1
- package/lib/components/divider/divider.js.map +1 -1
- package/lib/components/dropdown/dropdown.d.ts +13 -0
- package/lib/components/dropdown/dropdown.d.ts.map +1 -1
- package/lib/components/dropdown/dropdown.js +19 -0
- package/lib/components/dropdown/dropdown.js.map +1 -1
- package/lib/components/dropdown-item/dropdown-item.d.ts +1 -1
- package/lib/components/dropdown-item/dropdown-item.js +2 -2
- package/lib/components/dropdown-item/dropdown-item.js.map +1 -1
- package/lib/components/heading/heading.d.ts +3 -5
- package/lib/components/heading/heading.d.ts.map +1 -1
- package/lib/components/heading/heading.js +2 -4
- package/lib/components/heading/heading.js.map +1 -1
- package/lib/components/icon/icon.d.ts +4 -4
- package/lib/components/icon/icon.js +6 -6
- package/lib/components/icon/icon.js.map +1 -1
- package/lib/components/link-list/link-list.d.ts +19 -0
- package/lib/components/link-list/link-list.d.ts.map +1 -1
- package/lib/components/link-list/link-list.js +19 -0
- package/lib/components/link-list/link-list.js.map +1 -1
- package/lib/components/list/list.d.ts +13 -0
- package/lib/components/list/list.d.ts.map +1 -1
- package/lib/components/list/list.js +15 -0
- package/lib/components/list/list.js.map +1 -1
- package/lib/components/modal/modal.d.ts +2 -2
- package/lib/components/modal/modal.js +2 -2
- package/lib/components/modal/modal.js.map +1 -1
- package/lib/components/multi-select/multi-select.d.ts +2 -2
- package/lib/components/multi-select/multi-select.js +5 -5
- package/lib/components/multi-select/multi-select.js.map +1 -1
- package/lib/components/pagination/pagination.d.ts +1 -1
- package/lib/components/pagination/pagination.js +2 -2
- package/lib/components/pagination/pagination.js.map +1 -1
- package/lib/components/percent-bar/percent-bar.d.ts +2 -0
- package/lib/components/percent-bar/percent-bar.d.ts.map +1 -1
- package/lib/components/percent-bar/percent-bar.js +3 -1
- package/lib/components/percent-bar/percent-bar.js.map +1 -1
- package/lib/components/popover/popover.d.ts +6 -7
- package/lib/components/popover/popover.d.ts.map +1 -1
- package/lib/components/popover/popover.js +4 -4
- package/lib/components/popover/popover.js.map +1 -1
- package/lib/components/progress-meter/progress-meter.d.ts +0 -8
- package/lib/components/progress-meter/progress-meter.d.ts.map +1 -1
- package/lib/components/progress-meter/progress-meter.js +0 -7
- package/lib/components/progress-meter/progress-meter.js.map +1 -1
- package/lib/components/progress-steps/progress-steps.d.ts +16 -0
- package/lib/components/progress-steps/progress-steps.d.ts.map +1 -1
- package/lib/components/progress-steps/progress-steps.js +25 -0
- package/lib/components/progress-steps/progress-steps.js.map +1 -1
- package/lib/components/progress-steps-item/progress-steps-item.d.ts +1 -3
- package/lib/components/progress-steps-item/progress-steps-item.d.ts.map +1 -1
- package/lib/components/progress-steps-item/progress-steps-item.js +0 -1
- package/lib/components/progress-steps-item/progress-steps-item.js.map +1 -1
- package/lib/components/radio-field/radio-field.d.ts +33 -0
- package/lib/components/radio-field/radio-field.d.ts.map +1 -1
- package/lib/components/radio-field/radio-field.js +62 -0
- package/lib/components/radio-field/radio-field.js.map +1 -1
- package/lib/components/remove-tag/remove-tag.d.ts +1 -1
- package/lib/components/remove-tag/remove-tag.js +3 -3
- package/lib/components/remove-tag/remove-tag.js.map +1 -1
- package/lib/components/split-button/split-button.d.ts +3 -0
- package/lib/components/split-button/split-button.d.ts.map +1 -1
- package/lib/components/split-button/split-button.js +5 -2
- package/lib/components/split-button/split-button.js.map +1 -1
- package/lib/components/tab/tab.d.ts +1 -1
- package/lib/components/tab/tab.js +3 -3
- package/lib/components/tab/tab.js.map +1 -1
- package/lib/components/table/table.d.ts +36 -0
- package/lib/components/table/table.d.ts.map +1 -1
- package/lib/components/table/table.js +55 -0
- package/lib/components/table/table.js.map +1 -1
- package/lib/components/tabs/tabs.d.ts +20 -3
- package/lib/components/tabs/tabs.d.ts.map +1 -1
- package/lib/components/tabs/tabs.js +33 -5
- package/lib/components/tabs/tabs.js.map +1 -1
- package/lib/components/tag-list/tag-list.d.ts +17 -0
- package/lib/components/tag-list/tag-list.d.ts.map +1 -1
- package/lib/components/tag-list/tag-list.js +25 -0
- package/lib/components/tag-list/tag-list.js.map +1 -1
- package/lib/components/tooltip/tooltip.d.ts +2 -2
- package/lib/components/tooltip/tooltip.js +4 -4
- package/lib/components/tooltip/tooltip.js.map +1 -1
- package/lib/components/utils/light-children.d.ts +40 -0
- package/lib/components/utils/light-children.d.ts.map +1 -0
- package/lib/components/utils/light-children.js +100 -0
- package/lib/components/utils/light-children.js.map +1 -0
- package/lib/design-tokens/brands/cre8/css/tokens_brand.css +1 -1
- package/lib/directives/if-truthy.d.ts +1 -1
- package/lib/icons/cre8-icons.svg +1 -1
- package/lib/light-children-TlEXev5S.js +39 -0
- package/lib/scripts/generate-react-wrappers.d.ts +8 -1
- package/lib/scripts/generate-react-wrappers.d.ts.map +1 -1
- package/lib/scripts/generate-react-wrappers.js +45 -1
- package/lib/scripts/generate-react-wrappers.js.map +1 -1
- package/mcp-manifest.json +163 -53
- package/package.json +11 -4
- package/react-manifest.json +154 -48
- package/dist/assets/if-defined-HKKhGupN.js +0 -1
- package/dist/assets/iframe-CWwoGI65.css +0 -1
- package/dist/assets/state-CfuknrX8.js +0 -1
- package/dist/fonts/PlusJakartaSans-Bold.woff2 +0 -0
- package/dist/fonts/PlusJakartaSans-Medium.woff2 +0 -0
- package/dist/fonts/PlusJakartaSans-Regular.woff2 +0 -0
- package/dist/fonts/PlusJakartaSans-SemiBold.woff2 +0 -0
- package/dist/logo.svg +0 -1
- package/dist/sb-addons/storybook-4/manager-bundle.js +0 -8
- /package/dist/icons/{express-scripts copy.svg → pharmacy copy.svg} +0 -0
- /package/dist/icons/{express-scripts.svg → pharmacy.svg} +0 -0
- /package/lib/icons/{express-scripts copy.svg → pharmacy copy.svg} +0 -0
- /package/lib/icons/{express-scripts.svg → pharmacy.svg} +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A2UI streaming surface protocol — types.
|
|
3
|
+
*
|
|
4
|
+
* A "surface" is a live region of UI that an agent builds up over time. The
|
|
5
|
+
* document model is the same nested `ComponentSpec` tree the one-shot renderer
|
|
6
|
+
* uses; what streaming adds is (1) addressing individual nodes by the path
|
|
7
|
+
* grammar the renderer already emits on events, (2) a data model that props can
|
|
8
|
+
* bind into, and (3) an ordered message envelope so a client can tell a dropped
|
|
9
|
+
* message from an out-of-order one.
|
|
10
|
+
*/
|
|
11
|
+
import type { ComponentSpec, SpecChild } from '../types.js';
|
|
12
|
+
export declare const A2UI_STREAM_VERSION = 1;
|
|
13
|
+
/** RFC 6901 JSON Pointer into the surface data model, e.g. `/user/name`. */
|
|
14
|
+
export type JsonPointer = string;
|
|
15
|
+
/**
|
|
16
|
+
* A prop value of this shape resolves against the surface data model instead of
|
|
17
|
+
* being taken literally. `default` is used when the pointer resolves to
|
|
18
|
+
* `undefined`.
|
|
19
|
+
*/
|
|
20
|
+
export interface BindingRef {
|
|
21
|
+
$bind: JsonPointer;
|
|
22
|
+
default?: unknown;
|
|
23
|
+
}
|
|
24
|
+
export declare function isBindingRef(value: unknown): value is BindingRef;
|
|
25
|
+
/**
|
|
26
|
+
* Where content goes inside a container node. `null` means the component's
|
|
27
|
+
* `children` array; a string names a slot. `"default"` is a slot name, and is
|
|
28
|
+
* NOT the same thing as `children` — see the children-vs-slots rule in the KB.
|
|
29
|
+
*/
|
|
30
|
+
export type ContentTarget = string | null;
|
|
31
|
+
export type PatchOp =
|
|
32
|
+
/** Append nodes to a container's `children` (slot omitted) or a named slot. */
|
|
33
|
+
{
|
|
34
|
+
op: 'append';
|
|
35
|
+
path: string;
|
|
36
|
+
slot?: ContentTarget;
|
|
37
|
+
nodes: SpecChild[];
|
|
38
|
+
}
|
|
39
|
+
/** Insert nodes at `index` in a container's content list. */
|
|
40
|
+
| {
|
|
41
|
+
op: 'insert';
|
|
42
|
+
path: string;
|
|
43
|
+
slot?: ContentTarget;
|
|
44
|
+
index: number;
|
|
45
|
+
nodes: SpecChild[];
|
|
46
|
+
}
|
|
47
|
+
/** Replace the node at `path` wholesale. `$` replaces the surface root. */
|
|
48
|
+
| {
|
|
49
|
+
op: 'replace';
|
|
50
|
+
path: string;
|
|
51
|
+
node: SpecChild;
|
|
52
|
+
}
|
|
53
|
+
/** Remove the node at `path`. `$` clears the surface. */
|
|
54
|
+
| {
|
|
55
|
+
op: 'remove';
|
|
56
|
+
path: string;
|
|
57
|
+
}
|
|
58
|
+
/** Merge props into the node at `path`. A `null` value deletes the prop. */
|
|
59
|
+
| {
|
|
60
|
+
op: 'setProps';
|
|
61
|
+
path: string;
|
|
62
|
+
props: Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
/** Set event bindings on the node at `path`. A `null` value removes one. */
|
|
65
|
+
| {
|
|
66
|
+
op: 'setEvents';
|
|
67
|
+
path: string;
|
|
68
|
+
events: Record<string, unknown>;
|
|
69
|
+
}
|
|
70
|
+
/** Replace a container's whole content list with a single text node. */
|
|
71
|
+
| {
|
|
72
|
+
op: 'setText';
|
|
73
|
+
path: string;
|
|
74
|
+
slot?: ContentTarget;
|
|
75
|
+
text: string;
|
|
76
|
+
}
|
|
77
|
+
/** Append text to a container's trailing text node — the token-stream op. */
|
|
78
|
+
| {
|
|
79
|
+
op: 'appendText';
|
|
80
|
+
path: string;
|
|
81
|
+
slot?: ContentTarget;
|
|
82
|
+
text: string;
|
|
83
|
+
}
|
|
84
|
+
/** Empty a container's content list. */
|
|
85
|
+
| {
|
|
86
|
+
op: 'clear';
|
|
87
|
+
path: string;
|
|
88
|
+
slot?: ContentTarget;
|
|
89
|
+
};
|
|
90
|
+
export interface DataPatch {
|
|
91
|
+
pointer: JsonPointer;
|
|
92
|
+
/** `set` (default) writes `value`; `remove` deletes the pointed-at member. */
|
|
93
|
+
op?: 'set' | 'remove';
|
|
94
|
+
value?: unknown;
|
|
95
|
+
}
|
|
96
|
+
export type SurfaceState = 'streaming' | 'idle' | 'done' | 'error';
|
|
97
|
+
interface Envelope {
|
|
98
|
+
v: typeof A2UI_STREAM_VERSION;
|
|
99
|
+
surfaceId: string;
|
|
100
|
+
/** Monotonic per surface, starting at 1. `surface.create` is seq 0. */
|
|
101
|
+
seq: number;
|
|
102
|
+
}
|
|
103
|
+
export type SurfaceMessage = (Envelope & {
|
|
104
|
+
type: 'surface.create';
|
|
105
|
+
catalogId: string;
|
|
106
|
+
libraryVersion?: string;
|
|
107
|
+
title?: string;
|
|
108
|
+
root?: ComponentSpec;
|
|
109
|
+
data?: Record<string, unknown>;
|
|
110
|
+
}) | (Envelope & {
|
|
111
|
+
type: 'surface.patch';
|
|
112
|
+
ops: PatchOp[];
|
|
113
|
+
}) | (Envelope & {
|
|
114
|
+
type: 'surface.data';
|
|
115
|
+
patches: DataPatch[];
|
|
116
|
+
}) | (Envelope & {
|
|
117
|
+
type: 'surface.status';
|
|
118
|
+
state: SurfaceState;
|
|
119
|
+
message?: string;
|
|
120
|
+
}) | (Envelope & {
|
|
121
|
+
type: 'surface.delete';
|
|
122
|
+
});
|
|
123
|
+
/** Client → server. The return path for a named handler firing in the browser. */
|
|
124
|
+
export interface SurfaceEventMessage {
|
|
125
|
+
v: typeof A2UI_STREAM_VERSION;
|
|
126
|
+
type: 'surface.event';
|
|
127
|
+
surfaceId: string;
|
|
128
|
+
/** Server-assigned on receipt; clients may omit. */
|
|
129
|
+
seq?: number;
|
|
130
|
+
component: string;
|
|
131
|
+
path: string;
|
|
132
|
+
event: string;
|
|
133
|
+
handler: string;
|
|
134
|
+
detail?: unknown;
|
|
135
|
+
/** ISO 8601. Set by whichever side has a trustworthy clock. */
|
|
136
|
+
at?: string;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* What changed, as an invalidation hint. The model is the source of truth — a
|
|
140
|
+
* renderer reads the current state at these paths rather than trusting a diff.
|
|
141
|
+
*/
|
|
142
|
+
export type SurfaceChange =
|
|
143
|
+
/** The whole tree was replaced (create, root replace, root remove). */
|
|
144
|
+
{
|
|
145
|
+
kind: 'root';
|
|
146
|
+
}
|
|
147
|
+
/** A container's content list changed; re-reconcile its children. */
|
|
148
|
+
| {
|
|
149
|
+
kind: 'content';
|
|
150
|
+
path: string;
|
|
151
|
+
slot: ContentTarget;
|
|
152
|
+
}
|
|
153
|
+
/** Only the trailing text of a container changed — the cheap streaming path. */
|
|
154
|
+
| {
|
|
155
|
+
kind: 'text';
|
|
156
|
+
path: string;
|
|
157
|
+
slot: ContentTarget;
|
|
158
|
+
}
|
|
159
|
+
/** Props on one node changed; re-apply them. */
|
|
160
|
+
| {
|
|
161
|
+
kind: 'props';
|
|
162
|
+
path: string;
|
|
163
|
+
}
|
|
164
|
+
/** Event bindings on one node changed; re-attach. */
|
|
165
|
+
| {
|
|
166
|
+
kind: 'events';
|
|
167
|
+
path: string;
|
|
168
|
+
}
|
|
169
|
+
/** The data model changed; re-resolve every bound prop in the tree. */
|
|
170
|
+
| {
|
|
171
|
+
kind: 'data';
|
|
172
|
+
};
|
|
173
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A2UI streaming surface protocol — types.
|
|
3
|
+
*
|
|
4
|
+
* A "surface" is a live region of UI that an agent builds up over time. The
|
|
5
|
+
* document model is the same nested `ComponentSpec` tree the one-shot renderer
|
|
6
|
+
* uses; what streaming adds is (1) addressing individual nodes by the path
|
|
7
|
+
* grammar the renderer already emits on events, (2) a data model that props can
|
|
8
|
+
* bind into, and (3) an ordered message envelope so a client can tell a dropped
|
|
9
|
+
* message from an out-of-order one.
|
|
10
|
+
*/
|
|
11
|
+
export const A2UI_STREAM_VERSION = 1;
|
|
12
|
+
export function isBindingRef(value) {
|
|
13
|
+
return (typeof value === 'object' &&
|
|
14
|
+
value !== null &&
|
|
15
|
+
!Array.isArray(value) &&
|
|
16
|
+
typeof value.$bind === 'string');
|
|
17
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A2UI streaming surface protocol — types.
|
|
3
|
+
*
|
|
4
|
+
* A "surface" is a live region of UI that an agent builds up over time. The
|
|
5
|
+
* document model is the same nested `ComponentSpec` tree the one-shot renderer
|
|
6
|
+
* uses; what streaming adds is (1) addressing individual nodes by the path
|
|
7
|
+
* grammar the renderer already emits on events, (2) a data model that props can
|
|
8
|
+
* bind into, and (3) an ordered message envelope so a client can tell a dropped
|
|
9
|
+
* message from an out-of-order one.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { ComponentSpec, SpecChild } from '../types.js';
|
|
13
|
+
|
|
14
|
+
export const A2UI_STREAM_VERSION = 1;
|
|
15
|
+
|
|
16
|
+
/** RFC 6901 JSON Pointer into the surface data model, e.g. `/user/name`. */
|
|
17
|
+
export type JsonPointer = string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A prop value of this shape resolves against the surface data model instead of
|
|
21
|
+
* being taken literally. `default` is used when the pointer resolves to
|
|
22
|
+
* `undefined`.
|
|
23
|
+
*/
|
|
24
|
+
export interface BindingRef {
|
|
25
|
+
$bind: JsonPointer;
|
|
26
|
+
default?: unknown;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function isBindingRef(value: unknown): value is BindingRef {
|
|
30
|
+
return (
|
|
31
|
+
typeof value === 'object' &&
|
|
32
|
+
value !== null &&
|
|
33
|
+
!Array.isArray(value) &&
|
|
34
|
+
typeof (value as { $bind?: unknown }).$bind === 'string'
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Where content goes inside a container node. `null` means the component's
|
|
40
|
+
* `children` array; a string names a slot. `"default"` is a slot name, and is
|
|
41
|
+
* NOT the same thing as `children` — see the children-vs-slots rule in the KB.
|
|
42
|
+
*/
|
|
43
|
+
export type ContentTarget = string | null;
|
|
44
|
+
|
|
45
|
+
export type PatchOp =
|
|
46
|
+
/** Append nodes to a container's `children` (slot omitted) or a named slot. */
|
|
47
|
+
| { op: 'append'; path: string; slot?: ContentTarget; nodes: SpecChild[] }
|
|
48
|
+
/** Insert nodes at `index` in a container's content list. */
|
|
49
|
+
| { op: 'insert'; path: string; slot?: ContentTarget; index: number; nodes: SpecChild[] }
|
|
50
|
+
/** Replace the node at `path` wholesale. `$` replaces the surface root. */
|
|
51
|
+
| { op: 'replace'; path: string; node: SpecChild }
|
|
52
|
+
/** Remove the node at `path`. `$` clears the surface. */
|
|
53
|
+
| { op: 'remove'; path: string }
|
|
54
|
+
/** Merge props into the node at `path`. A `null` value deletes the prop. */
|
|
55
|
+
| { op: 'setProps'; path: string; props: Record<string, unknown> }
|
|
56
|
+
/** Set event bindings on the node at `path`. A `null` value removes one. */
|
|
57
|
+
| { op: 'setEvents'; path: string; events: Record<string, unknown> }
|
|
58
|
+
/** Replace a container's whole content list with a single text node. */
|
|
59
|
+
| { op: 'setText'; path: string; slot?: ContentTarget; text: string }
|
|
60
|
+
/** Append text to a container's trailing text node — the token-stream op. */
|
|
61
|
+
| { op: 'appendText'; path: string; slot?: ContentTarget; text: string }
|
|
62
|
+
/** Empty a container's content list. */
|
|
63
|
+
| { op: 'clear'; path: string; slot?: ContentTarget };
|
|
64
|
+
|
|
65
|
+
export interface DataPatch {
|
|
66
|
+
pointer: JsonPointer;
|
|
67
|
+
/** `set` (default) writes `value`; `remove` deletes the pointed-at member. */
|
|
68
|
+
op?: 'set' | 'remove';
|
|
69
|
+
value?: unknown;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type SurfaceState = 'streaming' | 'idle' | 'done' | 'error';
|
|
73
|
+
|
|
74
|
+
interface Envelope {
|
|
75
|
+
v: typeof A2UI_STREAM_VERSION;
|
|
76
|
+
surfaceId: string;
|
|
77
|
+
/** Monotonic per surface, starting at 1. `surface.create` is seq 0. */
|
|
78
|
+
seq: number;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type SurfaceMessage =
|
|
82
|
+
| (Envelope & {
|
|
83
|
+
type: 'surface.create';
|
|
84
|
+
catalogId: string;
|
|
85
|
+
libraryVersion?: string;
|
|
86
|
+
title?: string;
|
|
87
|
+
root?: ComponentSpec;
|
|
88
|
+
data?: Record<string, unknown>;
|
|
89
|
+
})
|
|
90
|
+
| (Envelope & { type: 'surface.patch'; ops: PatchOp[] })
|
|
91
|
+
| (Envelope & { type: 'surface.data'; patches: DataPatch[] })
|
|
92
|
+
| (Envelope & { type: 'surface.status'; state: SurfaceState; message?: string })
|
|
93
|
+
| (Envelope & { type: 'surface.delete' });
|
|
94
|
+
|
|
95
|
+
/** Client → server. The return path for a named handler firing in the browser. */
|
|
96
|
+
export interface SurfaceEventMessage {
|
|
97
|
+
v: typeof A2UI_STREAM_VERSION;
|
|
98
|
+
type: 'surface.event';
|
|
99
|
+
surfaceId: string;
|
|
100
|
+
/** Server-assigned on receipt; clients may omit. */
|
|
101
|
+
seq?: number;
|
|
102
|
+
component: string;
|
|
103
|
+
path: string;
|
|
104
|
+
event: string;
|
|
105
|
+
handler: string;
|
|
106
|
+
detail?: unknown;
|
|
107
|
+
/** ISO 8601. Set by whichever side has a trustworthy clock. */
|
|
108
|
+
at?: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* What changed, as an invalidation hint. The model is the source of truth — a
|
|
113
|
+
* renderer reads the current state at these paths rather than trusting a diff.
|
|
114
|
+
*/
|
|
115
|
+
export type SurfaceChange =
|
|
116
|
+
/** The whole tree was replaced (create, root replace, root remove). */
|
|
117
|
+
| { kind: 'root' }
|
|
118
|
+
/** A container's content list changed; re-reconcile its children. */
|
|
119
|
+
| { kind: 'content'; path: string; slot: ContentTarget }
|
|
120
|
+
/** Only the trailing text of a container changed — the cheap streaming path. */
|
|
121
|
+
| { kind: 'text'; path: string; slot: ContentTarget }
|
|
122
|
+
/** Props on one node changed; re-apply them. */
|
|
123
|
+
| { kind: 'props'; path: string }
|
|
124
|
+
/** Event bindings on one node changed; re-attach. */
|
|
125
|
+
| { kind: 'events'; path: string }
|
|
126
|
+
/** The data model changed; re-resolve every bound prop in the tree. */
|
|
127
|
+
| { kind: 'data' };
|