{
  "schemaVersion": 1,
  "name": "data-workspace",
  "title": "Data workspace",
  "tier": "Free",
  "price": 0,
  "license": "MIT",
  "provenance": {
    "repository": "https://github.com/jaskevs/bld8-ui",
    "sourcePaths": [
      "packages/blocks/src/data-workspace.tsx",
      "packages/blocks/src/styles.css"
    ],
    "upstream": {
      "repository": "https://github.com/shadcn-ui/ui",
      "revision": "30a58d4498f270af1c1e981a7d78a15cf5740841",
      "license": "MIT",
      "copyright": "Copyright (c) 2023 shadcn",
      "licenseFile": "SHADCN_LICENSE",
      "files": [
        {
          "source": "apps/v4/registry/bases/base/ui/sidebar.tsx",
          "sha256": "f0f4c21b8fa1b4750711711ac7a6833c713cf93a23f1d2143cf5ec26f1661d56",
          "adaptedIn": "src/sidebar.tsx"
        },
        {
          "source": "apps/v4/registry/bases/base/ui/drawer.tsx",
          "sha256": "7180299dff3cc1659ab75130f0521ba485e18b38625b904e1da4049f23479060",
          "adaptedIn": "src/drawer.tsx"
        },
        {
          "source": "apps/v4/registry/bases/base/ui/context-menu.tsx",
          "sha256": "e4359306eb2242681388aa1b3a541de49dce46c375db1593f8d3362f6bb023ca",
          "adaptedIn": "src/context-menu.tsx"
        },
        {
          "source": "apps/v4/registry/bases/base/ui/button.tsx",
          "sha256": "74f982d7ad7a764e3c95a519fc063a671e66ad758ea31dc89d747838e20c2487",
          "adaptedIn": "src/variants.ts"
        }
      ],
      "notes": "Adapted provider/composition patterns, not a fork. Original BLD8 tokens, public APIs, motion and prefixed Tailwind classes. Reconcile upstream manually; shadcn CLI update is not supported. Canonical source paths and distribution-specific locations are described above. The notices for original upstream work and BLD8 modifications are both retained.",
      "sourcePathScope": "Canonical source paths relative to packages/ui in the BLD8 repository. adaptedIn identifies the original BLD8 source authority; it does not assert that this source path exists in every distribution.",
      "distributionMappings": {
        "starter": {
          "relativeTo": "directory containing UPSTREAM.json",
          "files": {
            "src/sidebar.tsx": [
              "src/sidebar.tsx",
              "dist/sidebar.js",
              "dist/sidebar.d.ts"
            ],
            "src/drawer.tsx": [
              "src/drawer.tsx",
              "dist/drawer.js",
              "dist/drawer.d.ts"
            ],
            "src/context-menu.tsx": [
              "src/context-menu.tsx",
              "dist/context-menu.js",
              "dist/context-menu.d.ts"
            ],
            "src/variants.ts": [
              "src/variants.ts",
              "dist/variants.js",
              "dist/variants.d.ts"
            ]
          },
          "notes": "Starters contain only selected modules and their dependencies. Mappings give locations when the corresponding module is included."
        },
        "npm": {
          "relativeTo": "directory containing UPSTREAM.json",
          "files": {
            "src/sidebar.tsx": [
              "dist/sidebar.js",
              "dist/sidebar.d.ts"
            ],
            "src/drawer.tsx": [
              "dist/drawer.js",
              "dist/drawer.d.ts"
            ],
            "src/context-menu.tsx": [
              "dist/context-menu.js",
              "dist/context-menu.d.ts"
            ],
            "src/variants.ts": [
              "dist/variants.js",
              "dist/variants.d.ts"
            ]
          },
          "notes": "The UI package includes compiled modules in dist; original src files are not part of its files allowlist."
        },
        "registry": {
          "relativeTo": "directory containing UPSTREAM.json",
          "files": {
            "src/sidebar.tsx": [
              "../sidebar.tsx"
            ],
            "src/drawer.tsx": [
              "../drawer.tsx"
            ],
            "src/context-menu.tsx": [
              "../context-menu.tsx"
            ],
            "src/variants.ts": [
              "../variants.ts"
            ]
          },
          "notes": "The ledger is installed in bld8/licenses while source modules are installed in the parent bld8 directory. Only modules in the installed dependency graph are present."
        }
      }
    }
  },
  "notices": [
    {
      "path": "LICENSE",
      "content": "MIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/blocks/LICENSE",
      "content": "MIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/LICENSE",
      "content": "MIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/LUCIDE_LICENSE",
      "content": "ISC License\n\nCopyright (c) 2026 Lucide Icons and Contributors\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\n---\n\nThe following Lucide icons are derived from the Feather project:\n\nairplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out\n\nThe MIT License (MIT) (for the icons listed above)\n\nCopyright (c) 2013-present Cole Bemis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/DAY_PICKER_LICENSE",
      "content": "The MIT License (MIT)\n\nCopyright (c) 2014-2026 Giampaolo Bellavite <io@gpbl.dev> and contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/SHADCN_LICENSE",
      "content": "MIT License\n\nCopyright (c) 2023 shadcn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/MOTION_LICENSE",
      "content": "The MIT License (MIT)\n\nCopyright (c) 2024 [Motion](https://motion.dev) B.V.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/DND_KIT_LICENSE",
      "content": "MIT License\n\nCopyright (c) 2021, Claudéric Demers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/EDITOR_LICENSES",
      "content": "Upstream dependency notices. These dependencies retain their own terms.\n\n@tiptap/core 3.33.1\n@tiptap/extension-blockquote 3.33.1\n@tiptap/extension-bold 3.33.1\n@tiptap/extension-bubble-menu 3.33.1\n@tiptap/extension-bullet-list 3.33.1\n@tiptap/extension-code 3.33.1\n@tiptap/extension-code-block 3.33.1\n@tiptap/extension-document 3.33.1\n@tiptap/extension-dropcursor 3.33.1\n@tiptap/extension-floating-menu 3.33.1\n@tiptap/extension-gapcursor 3.33.1\n@tiptap/extension-hard-break 3.33.1\n@tiptap/extension-heading 3.33.1\n@tiptap/extension-horizontal-rule 3.33.1\n@tiptap/extension-italic 3.33.1\n@tiptap/extension-link 3.33.1\n@tiptap/extension-list 3.33.1\n@tiptap/extension-list-item 3.33.1\n@tiptap/extension-list-keymap 3.33.1\n@tiptap/extension-mention 3.33.1\n@tiptap/extension-ordered-list 3.33.1\n@tiptap/extension-paragraph 3.33.1\n@tiptap/extension-strike 3.33.1\n@tiptap/extension-text 3.33.1\n@tiptap/extension-underline 3.33.1\n@tiptap/extensions 3.33.1\n@tiptap/pm 3.33.1\n@tiptap/react 3.33.1\n@tiptap/starter-kit 3.33.1\n@tiptap/suggestion 3.33.1\n\nMIT License\n\nCopyright (c) 2025, Tiptap GmbH\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n---\n\n@types/use-sync-external-store 0.0.6\n\nMIT License\n\n    Copyright (c) Microsoft Corporation.\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE\n\n---\n\nfast-equals 5.4.5\n\nMIT License\n\nCopyright (c) 2025 Tony Quetano\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n---\n\nlinkifyjs 4.4.0\n\nCopyright (c) 2024 Nick Frasser\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\norderedmap 2.1.1\nw3c-keyname 2.2.8\n\nCopyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\nprosemirror-changeset 2.4.6\n\nCopyright (C) 2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\nprosemirror-commands 1.7.2\nprosemirror-dropcursor 1.8.4\nprosemirror-gapcursor 1.4.1\nprosemirror-history 1.5.1\nprosemirror-inputrules 1.5.1\nprosemirror-keymap 1.2.3\nprosemirror-model 1.25.13\nprosemirror-schema-list 1.6.0\nprosemirror-state 1.4.4\nprosemirror-transform 1.12.5\nprosemirror-view 1.42.9\n\nCopyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\nprosemirror-tables 1.8.5\n\nCopyright (C) 2015-2016 by Marijn Haverbeke <marijnh@gmail.com> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\nrope-sequence 1.3.4\n\nCopyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
    },
    {
      "path": "packages/ui/PHONE_LICENSE",
      "content": "Upstream dependency notices. These dependencies retain their own terms.\n\nlibphonenumber-js 1.13.16\n\n(The MIT License)\n\nCopyright (c) 2016 @catamphetamine <purecatamphetamine@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n"
    },
    {
      "path": "packages/ui/RECURRENCE_LICENSES",
      "content": "Upstream dependency notices. These dependencies retain their own terms.\n\n@js-temporal/polyfill 0.5.1\n\nCopyright 2017, 2018, 2019, 2020 ECMA International\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n\n---\n\njsbi 4.3.2\n\nApache License\n                           Version 2.0, January 2004\n                        https://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n"
    },
    {
      "path": "packages/ui/THIRD_PARTY_NOTICES.md",
      "content": "# Third-party notices\n\nReact DayPicker 10.0.2 provides calendar selection and keyboard navigation.\nSource: https://github.com/gpbl/react-day-picker . Its full MIT notice is included\nin `DAY_PICKER_LICENSE`. date-fns and @date-fns/tz are transitive dependencies;\ntheir MIT notices accompany their installed npm distributions. BLD8 supplies its\nown token-based styling rather than copying another library's styled calendar.\n\nLucide React 1.55.0 supplies the standard icon family. Source:\nhttps://github.com/lucide-icons/lucide . Its ISC licence and the MIT notice for\nFeather-derived icons are reproduced in the included `LUCIDE_LICENSE` file.\nThe original BLD8 dotted arrow is separate artwork. Named Lucide components are\nordinary package dependencies; the icon directory's generated SVG downloads\nretain the full upstream licence notices.\n\nBase UI is used as an installed dependency for accessible interaction primitives. Source: https://github.com/mui/base-ui . Its licence is reproduced below. Base UI remains an installed dependency. Selected shadcn/ui Base UI composition patterns are adapted as described below.\n\nMIT License\n\nCopyright (c) 2019 Material-UI SAS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nSelected composition patterns are adapted from shadcn/ui (MIT, copyright 2023 shadcn). Pinned upstream revision: 30a58d4498f270af1c1e981a7d78a15cf5740841. The full notice is in SHADCN_LICENSE. Drawer, context-menu and sidebar compositions and the button variant pattern retain BLD8 styling and focused APIs. Portable provenance and original upstream source hashes are in UPSTREAM.json beside this notice; docs/upstream.json is the repository source ledger. The adapted source files retain both the upstream copyright and the copyright for BLD8 modifications.\n\nTailwind CSS 4.3.0 and its CLI are build dependencies (MIT). clsx, class-variance-authority and tailwind-merge are runtime dependencies (MIT). Their notices accompany installed npm distributions. Compiled utilities are included; consuming applications do not need Tailwind.\n\n## React Hook Form\n\nReact Hook Form 7.90.0 is an optional MIT dependency for the adapter and examples. Its package includes the original licence. No upstream source is vendored. https://github.com/react-hook-form/react-hook-form\n\n## Motion\n\nMotion 14.7.1 supplies layout and presence animation as an installed MIT dependency. Its full licence is included in MOTION_LICENSE. https://github.com/motiondivision/motion\n\n## dnd-kit\n\n@dnd-kit/core 6.3.1, @dnd-kit/sortable 10.0.0 and @dnd-kit/utilities 3.2.2 are installed MIT dependencies. Their common licence is included in DND_KIT_LICENSE. https://github.com/clauderic/dnd-kit\n\n## Structured editing\n\nTiptap community packages 3.33.1 and their ProseMirror/helper dependencies are installed under MIT terms. Their complete upstream notices are included in EDITOR_LICENSES. No paid extensions or hosted editing service is included. Sources: https://github.com/ueberdosis/tiptap and https://github.com/ProseMirror .\n\n## Phone numbers\n\nlibphonenumber-js 1.13.16 supplies numbering-plan metadata and validation. Its original MIT notice is included in PHONE_LICENSE. Source: https://github.com/catamphetamine/libphonenumber-js . No verification service is included.\n\n## Recurrence timezone conversion\n\n@js-temporal/polyfill 0.5.1 retains its ISC licence. Its jsbi 4.3.2 dependency retains Apache-2.0. Their complete notices are included in RECURRENCE_LICENSES; original BLD8 source remains MIT. Sources: https://github.com/js-temporal/temporal-polyfill and https://github.com/GoogleChromeLabs/jsbi .\n"
    }
  ],
  "framework": "React 19",
  "dependencies": [
    "@bld8/ui"
  ],
  "description": "Edit a range, review the changes and save one revision-checked batch.",
  "notes": "A complete Issue data workflow with nested filters, ordered multi-sort, service paging, typed editing, bounded cell-range clipboard operations, local draft undo/redo, review and atomic saves. Invalid values remain editable. Failed saves retain drafts; conflicts show newer server records and require explicit rebase. The default source uses illustrative in-memory records and resets on reload. Supply a stable DataSource<Issue> for your service. Separate Next.js and Vite HTTP reference downloads persist one atomic snapshot on a local disk; they require a single Node server and are not an authentication service or a multi-instance database. Optional onUploadFile returns acknowledgements for the inspected record; attachment persistence remains a separate host transaction. Basic DataTable installs do not depend on the advanced grid.",
  "files": [
    {
      "path": "packages/blocks/src/data-workspace.tsx",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n/*!\n * SPDX-FileCopyrightText: 2026 Jaison\n * SPDX-License-Identifier: MIT\n */\n'use client';\nimport {useRef} from 'react';\nimport type {DataSource} from '@bld8/ui/data-workspace-state';\nimport type {UploadFileContext,UploadReceipt} from '@bld8/ui';\nimport {createMemoryIssueDataSource,issueDataColumns} from './issue-data-source.js';\nimport {issueFields,type Issue} from './issue-repository.js';\nimport type {ResourceFilterField} from './resource-workspace-state.js';\nimport {ResourceWorkspace} from './resource-workspace.js';\nexport interface DataWorkspaceProps {\n  /** Stable service adapter. The default uses authored records in memory. */\n  dataSource?:DataSource<Issue>;\n  /** The host receives the inspected record ID and owns authorisation/storage. */\n  onUploadFile?:(file:globalThis.File,context:UploadFileContext&{recordId:string})=>Promise<UploadReceipt>;\n  className?:string;\n}\n/** Issue-specific labels and schema around the shared resource transaction controller. */\nexport function DataWorkspace({dataSource,onUploadFile,className}:DataWorkspaceProps){\n const fallback=useRef<DataSource<Issue>|null>(null);if(!fallback.current)fallback.current=createMemoryIssueDataSource();\n return <ResourceWorkspace dataSource={dataSource??fallback.current} columns={issueDataColumns} fields={issueFields as readonly ResourceFilterField<Issue>[]} onUploadFile={onUploadFile} className={className} labels={{label:'Data workspace',searchLabel:'Search issues',gridLabel:'Issue data grid',emptyTitle:'No matching issues.',recordName:'Issue',description:dataSource?'Connected through your data source. Changes stay in a draft until you save.':'Authored sample issues. Saved changes last for this page session.',unavailableMessage:'The issue service is unavailable. Your view and pending changes are kept.',attachmentsLabel:'Issue attachments',uploadLabel:'Issue supporting files',uploadHint:'The host receives this issue ID. Upload acknowledgement is separate from the record batch save.'}}/>;\n}\nexport {DataWorkspace as IssueDataWorkspace};\n"
    },
    {
      "path": "packages/blocks/src/issue-data-source.ts",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n/*!\n * SPDX-FileCopyrightText: 2026 Jaison\n * SPDX-License-Identifier: MIT\n */\nimport {emptyFilterQuery,filterRecords,type FilterValue} from '@bld8/ui/filter-query';\nimport {isDataId,isDataObject,parseDataQuery,validateDataChanges,type BatchResult,type DataBatchRequest,type DataColumn,type DataQuery,type DataSource} from '@bld8/ui/data-workspace-state';\nimport {issueFields,issuePeople,issuePriorities,issueSeed,issueStatuses,type Issue} from './issue-repository.js';\n\nexport const issueDataColumns:readonly DataColumn<Issue>[]=[\n  {key:'id',label:'Issue',type:'text',editable:false},\n  {key:'title',label:'Title',type:'text',editable:true,required:true,minLength:3,maxLength:120},\n  {key:'status',label:'Status',type:'select',editable:true,options:issueStatuses,required:true},\n  {key:'priority',label:'Priority',type:'select',editable:true,options:issuePriorities,required:true},\n  {key:'assignee',label:'Assignee',type:'select',editable:true,options:issuePeople,searchable:true,required:true},\n  {key:'estimate',label:'Estimate',type:'number',editable:true,min:0,max:999},\n  {key:'due',label:'Due date',type:'date',editable:true},\n];\nexport const defaultDataQuery=():DataQuery=>({search:'',filters:emptyFilterQuery(),sorts:[],page:1,pageSize:10});\ninterface IssueReceipt {requestId:string;signature:string;rows:Issue[]}\nexport interface IssueDataSnapshot {version:1;rows:Issue[];receipts:IssueReceipt[]}\nconst copy=(row:Issue):Issue=>({id:row.id,title:row.title,status:row.status,priority:row.priority,assignee:row.assignee,estimate:row.estimate,due:row.due,revision:row.revision});\nconst abort=(signal:AbortSignal)=>{if(signal.aborted)throw new DOMException('Request aborted.','AbortError');};\nconst invalid=(message:string):BatchResult<Issue>=>({ok:false,code:'validation',errors:[{id:'',key:'',message}]});\nexport function createIssueDataSnapshot(rows:readonly Issue[]=issueSeed):IssueDataSnapshot {\n  if(!validRows(rows))throw new Error('The issue snapshot contains invalid records.');\n  return {version:1,rows:rows.map(copy),receipts:[]};\n}\n/** A durable adapter must validate stored data before exposing it to a client. */\nexport function parseIssueDataSnapshot(input:unknown):IssueDataSnapshot|null {\n  if(!isDataObject(input)||input.version!==1||!validRows(input.rows)||!Array.isArray(input.receipts)||input.receipts.length>100)return null;\n  const receipts:IssueReceipt[]=[],ids=new Set<string>();\n  for(const value of Array.from(input.receipts)){if(!isDataObject(value)||typeof value.requestId!=='string'||!validRequestId(value.requestId)||ids.has(value.requestId)||typeof value.signature!=='string'||value.signature.length>100000||!validRows(value.rows,100))return null;ids.add(value.requestId);receipts.push({requestId:value.requestId,signature:value.signature,rows:value.rows.map(copy)});}\n  return {version:1,rows:input.rows.map(copy),receipts};\n}\nfunction validRows(input:unknown,max=10000):input is Issue[] {if(!Array.isArray(input)||input.length>max)return false;const ids=new Set<string>();for(const value of Array.from(input)){if(!isDataObject(value)||!isDataId(value.id)||ids.has(value.id)||!Number.isSafeInteger(value.revision)||Number(value.revision)<1)return false;ids.add(value.id);for(const column of issueDataColumns){if(column.key==='id')continue;const errors=validateDataChanges([{...value} as unknown as Issue],issueDataColumns,[{id:value.id,expectedRevision:Number(value.revision),values:{[column.key]:value[column.key]}}]);if(errors.length)return false;}}return true;}\nconst validRequestId=(value:string)=>/^[a-zA-Z0-9-]{16,80}$/.test(value);\nexport function queryIssueData(snapshot:IssueDataSnapshot,input:DataQuery):{rows:Issue[];total:number} {\n  const query=parseDataQuery(input,issueDataColumns,issueFields);if(!query)throw new Error('Use a supported issue query.');\n  let rows=filterRecords(snapshot.rows,query.filters,issueFields,(row,key)=>row[key as keyof Issue] as FilterValue).filter(row=>(row.id+' '+row.title).toLocaleLowerCase('en').includes(query.search.toLocaleLowerCase('en')));\n  const compare=new Intl.Collator('en',{numeric:true,sensitivity:'base'});\n  rows.sort((a,b)=>{for(const sort of query.sorts){const av=a[sort.key as keyof Issue],bv=b[sort.key as keyof Issue];const value=typeof av==='number'&&typeof bv==='number'?av-bv:compare.compare(String(av),String(bv));if(value)return value*(sort.descending?-1:1);}return compare.compare(a.id,b.id);});\n  const start=(query.page-1)*query.pageSize;return {rows:rows.slice(start,start+query.pageSize).map(copy),total:rows.length};\n}\n/** Pure transaction: callers publish next only after a durable atomic commit. */\nexport function saveIssueData(snapshot:IssueDataSnapshot,input:DataBatchRequest<Issue>):{result:BatchResult<Issue>;next:IssueDataSnapshot} {\n  if(!isDataObject(input)||typeof input.requestId!=='string'||!validRequestId(input.requestId)||!Array.isArray(input.changes))return {result:invalid('Use a valid request ID and a batch of changes.'),next:snapshot};\n  let signature:string;try{signature=JSON.stringify(input.changes);if(signature.length>100000)throw new Error();}catch{return {result:invalid('Use a smaller valid batch.'),next:snapshot};}\n  const receipt=snapshot.receipts.find(item=>item.requestId===input.requestId);\n  if(receipt)return {result:receipt.signature===signature?{ok:true,rows:receipt.rows.map(copy)}:invalid('This request ID has already been used for different changes.'),next:snapshot};\n  const errors=validateDataChanges(snapshot.rows,issueDataColumns,input.changes);\n  if(errors.length)return {result:{ok:false,code:'validation',errors},next:snapshot};\n  const conflicts=snapshot.rows.filter(row=>input.changes.some(change=>change.id===row.id&&change.expectedRevision!==row.revision));\n  if(conflicts.length)return {result:{ok:false,code:'conflict',conflicts:conflicts.map(copy)},next:snapshot};\n  if(input.changes.some(change=>snapshot.rows.find(row=>row.id===change.id)!.revision===Number.MAX_SAFE_INTEGER))return {result:invalid('This record revision cannot be advanced.'),next:snapshot};\n  const changed=new Map(input.changes.map(change=>[change.id,change])),updated:Issue[]=[];\n  const rows=snapshot.rows.map(row=>{const change=changed.get(row.id);if(!change)return copy(row);const next={...row,...change.values,id:row.id,revision:row.revision+1};updated.push(next);return copy(next);});\n  const next:IssueDataSnapshot={version:1,rows,receipts:[...snapshot.receipts.slice(-99),{requestId:input.requestId,signature,rows:updated.map(copy)}]};\n  return {result:{ok:true,rows:updated.map(copy)},next};\n}\nexport function createMemoryIssueDataSource(initial:readonly Issue[]=issueSeed):DataSource<Issue> {\n  let snapshot=createIssueDataSnapshot(initial);\n  return {async load(query,{signal}){abort(signal);return queryIssueData(snapshot,query);},async save(request,{signal}){abort(signal);const {result,next}=saveIssueData(snapshot,request);snapshot=next;return result;}};\n}\n/** The endpoint needs an authenticated host and an atomic durable transaction. */\nexport function createIssueDataHttpSource(baseUrl:string,fetcher:typeof fetch=fetch):DataSource<Issue> {\n  const safeBase=baseUrl.replace(/\\/$/,'');\n  async function json(response:Response,signal:AbortSignal):Promise<unknown>{\n    const declared=response.headers.get('content-length');if(declared&&(!/^\\d+$/.test(declared)||Number(declared)>250000)){await response.body?.cancel();throw new Error('The issue service returned an oversized or invalid response.');}\n    const reader=response.body?.getReader();if(!reader)throw new Error('The issue service returned an invalid response.');const decoder=new TextDecoder('utf-8',{fatal:true});let text='',bytes=0;\n    try{for(;;){abort(signal);const {done,value}=await reader.read();if(done)break;bytes+=value.byteLength;if(bytes>250000){await reader.cancel();throw new Error('The issue service returned an oversized response.');}text+=decoder.decode(value,{stream:true});}abort(signal);text+=decoder.decode();return JSON.parse(text) as unknown;}catch(error){if(signal.aborted){await reader.cancel().catch(()=>{});abort(signal);}if(error instanceof Error&&error.message.includes('oversized'))throw error;throw new Error('The issue service returned an invalid response.');}finally{reader.releaseLock();}\n  }\n  async function call(method:string,input:unknown,signal:AbortSignal){abort(signal);const response=await fetcher(safeBase+(method==='GET'?'?'+new URLSearchParams({query:JSON.stringify(input)}):''),{method,signal,credentials:'same-origin',headers:method==='GET'?undefined:{'Content-Type':'application/json'},body:method==='GET'?undefined:JSON.stringify(input)});if(!response.ok&&![409,422].includes(response.status)){await response.body?.cancel();throw new Error(response.status===429?'The service is busy. Wait briefly and try again.':'The issue service could not complete this request. Your draft is still available.');}return json(response,signal);}\n  return {\n    async load(query,{signal}){if(!parseDataQuery(query,issueDataColumns,issueFields))throw new Error('Use a supported issue query.');const result=await call('GET',query,signal);if(!isDataObject(result)||!validRows(result.rows,100)||!Number.isSafeInteger(result.total)||Number(result.total)<result.rows.length||Number(result.total)>10000000)throw new Error('The issue service returned an invalid page.');return {rows:result.rows.map(copy),total:Number(result.total)};},\n    async save(request,{signal}){\n      const result=await call('PATCH',request,signal);if(!isDataObject(result)||typeof result.ok!=='boolean')throw new Error('The issue service returned an invalid save result.');\n      if(result.ok){\n        if(!validRows(result.rows,100)||result.rows.length!==request.changes.length||result.rows.some(row=>!request.changes.some(change=>change.id===row.id&&row.revision>change.expectedRevision&&Object.entries(change.values).every(([key,value])=>Object.is(row[key as keyof Issue],value)))))throw new Error('The issue service returned an invalid save receipt.');\n        return {ok:true,rows:result.rows.map(copy)};\n      }\n      if(result.code==='conflict'){\n        if(!validRows(result.conflicts,100)||!result.conflicts.length||result.conflicts.some(row=>!request.changes.some(change=>change.id===row.id)))throw new Error('The issue service returned an invalid conflict.');\n        return {ok:false,code:'conflict',conflicts:result.conflicts.map(copy)};\n      }\n      if(result.code==='validation'&&Array.isArray(result.errors)&&result.errors.length<=700&&Array.from(result.errors).every(error=>isDataObject(error)&&typeof error.id==='string'&&error.id.length<=80&&typeof error.key==='string'&&error.key.length<=80&&typeof error.message==='string'&&error.message.length<=300))return {ok:false,code:'validation',errors:result.errors as {id:string;key:string;message:string}[]};\n      throw new Error('The issue service returned an invalid save result.');\n    },\n  };\n}\n"
    },
    {
      "path": "packages/blocks/src/issue-repository.ts",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n/*!\n * SPDX-FileCopyrightText: 2026 Jaison\n * SPDX-License-Identifier: MIT\n */\nimport {createTableViewState,normalizeTableViewState,parseTableViewState,type TableViewState} from '@bld8/ui/table-view-state';\nimport {emptyFilterQuery,filterRecords,isFilterDate,parseFilterQuery,serializeFilterQuery,filterQueryKey,type FilterField,type AnyFilterQuery,type FilterValue} from '@bld8/ui/filter-query';\n\nexport interface Issue { id:string; title:string; status:'backlog'|'in-progress'|'review'|'done'; priority:'low'|'medium'|'high'|'urgent'; assignee:string; estimate:number; due:string; revision:number }\nexport interface IssueView { filters:AnyFilterQuery; search:string; sort:{key:string;descending:boolean}|null; sorts?:{key:string;descending:boolean}[]; columns:string[]; density:'comfortable'|'compact'; pageSize:number; layout?:Pick<TableViewState,'version'|'columnOrderKeys'|'columnWidths'|'columnPinning'> }\nexport interface SavedIssueView { id:string; name:string; view:IssueView }\nexport interface IssueListQuery { view:IssueView; page:number }\nexport interface IssueChange { id:string; expectedRevision:number; patch:Partial<Pick<Issue,'title'|'status'>> }\nexport interface IssueRepository { list:(query:IssueListQuery,signal:AbortSignal)=>Promise<{rows:Issue[];total:number}>; create:(draft:Pick<Issue,'title'|'priority'|'assignee'>,signal:AbortSignal)=>Promise<Issue>; update:(changes:IssueChange[],signal:AbortSignal)=>Promise<Issue[]> }\nexport const issueStatuses=[{value:'backlog',label:'Backlog'},{value:'in-progress',label:'In progress'},{value:'review',label:'In review'},{value:'done',label:'Done'}];\nexport const issuePriorities=[{value:'low',label:'Low'},{value:'medium',label:'Medium'},{value:'high',label:'High'},{value:'urgent',label:'Urgent'}];\nexport const issuePeople=[{value:'maya',label:'Maya Chen'},{value:'oliver',label:'Oliver Reed'},{value:'sam',label:'Sam Rivera'},{value:'unassigned',label:'Unassigned'}];\nexport const issueFields:readonly FilterField[]=[{id:'title',label:'Title',kind:'text'},{id:'status',label:'Status',kind:'select',options:issueStatuses},{id:'priority',label:'Priority',kind:'select',options:issuePriorities},{id:'assignee',label:'Assignee',kind:'select',options:issuePeople},{id:'estimate',label:'Estimate',kind:'number'},{id:'due',label:'Due date',kind:'date'}];\nexport const issueColumnKeys=['id','title','status','priority','assignee','estimate','due'];\nexport const defaultIssueView=():IssueView=>({filters:emptyFilterQuery(),search:'',sort:null,columns:[...issueColumnKeys],density:'comfortable',pageSize:5});\nconst issueTableOptions={columns:issueColumnKeys.map(key=>({key,hideable:key!=='title',minWidth:({id:100,title:220,status:140,priority:112,assignee:150,estimate:100,due:136} as Record<string,number>)[key]})),pageSizes:[5,10,20]};\nexport function issueTableView(view:IssueView):TableViewState {\n  return normalizeTableViewState({...createTableViewState(issueTableOptions),...view.layout,query:{search:view.search,filters:{},sort:view.sort,...(view.sorts?{sorts:view.sorts}:{}),pageSize:view.pageSize},visibleColumnKeys:view.columns,density:view.density},issueTableOptions);\n}\nexport function withIssueTableView(view:IssueView,patch:Partial<Pick<TableViewState,'columnOrderKeys'|'columnWidths'|'columnPinning'>>):IssueView {\n  const table=normalizeTableViewState({...issueTableView(view),...patch},issueTableOptions);\n  const layout={version:1 as const,columnOrderKeys:table.columnOrderKeys,columnWidths:table.columnWidths,columnPinning:table.columnPinning};\n  const isDefault=JSON.stringify(layout)===JSON.stringify({version:1,columnOrderKeys:issueColumnKeys,columnWidths:{},columnPinning:{}});\n  const {layout:previous,...rest}=view;return isDefault?rest:{...rest,layout};\n}\nexport function issueViewKey(view:IssueView){const canonical=withIssueTableView(view,{});const {sorts:criteria,...rest}=canonical;const sorts=criteria??(canonical.sort?[canonical.sort]:[]);return JSON.stringify({...rest,sort:sorts[0]??null,...(sorts.length>1?{sorts}:{}),columns:issueColumnKeys.filter(key=>view.columns.includes(key)),filters:filterQueryKey(view.filters)});}\nexport function parseIssueView(text:string):IssueView|null {\n  try{\n    if(text.length>20000)return null;const value=JSON.parse(text);if(!value||typeof value!=='object'||typeof value.search!=='string'||value.search.length>200||!['comfortable','compact'].includes(value.density)||![5,10,20].includes(value.pageSize))return null;\n    const filters=parseFilterQuery(JSON.stringify(value.filters),issueFields,{allowNested:true}).query;if(!filters)return null;\n    if(!Array.isArray(value.columns)||!value.columns.includes('title')||value.columns.length>issueColumnKeys.length||new Set(value.columns).size!==value.columns.length||value.columns.some((key:unknown)=>typeof key!=='string'||!issueColumnKeys.includes(key)))return null;\n    if(value.sort!==null&&(!value.sort||!issueColumnKeys.includes(value.sort.key)||typeof value.sort.descending!=='boolean'))return null;\n    if(value.sorts!==undefined&&(!Array.isArray(value.sorts)||value.sorts.length>5||Array.from(value.sorts).some((item:any)=>!item||!issueColumnKeys.includes(item.key)||typeof item.descending!=='boolean')||new Set(value.sorts.map((item:any)=>item.key)).size!==value.sorts.length))return null;\n    const view:IssueView={filters,search:value.search,sort:value.sorts?.[0]??(value.sorts?null:value.sort?{key:value.sort.key,descending:value.sort.descending}:null),...(value.sorts?{sorts:value.sorts.map((item:any)=>({key:item.key,descending:item.descending}))}:{}),columns:issueColumnKeys.filter(key=>value.columns.includes(key)),density:value.density,pageSize:value.pageSize};\n    if(value.layout!==undefined){\n      if(!value.layout||typeof value.layout!=='object'||Array.isArray(value.layout))return null;\n      const parsed=parseTableViewState(JSON.stringify({...createTableViewState(issueTableOptions),version:value.layout.version,columnOrderKeys:value.layout.columnOrderKeys,columnWidths:value.layout.columnWidths,columnPinning:value.layout.columnPinning,query:{search:view.search,filters:{},sort:view.sort,...(view.sorts?{sorts:view.sorts}:{}),pageSize:view.pageSize},visibleColumnKeys:view.columns,density:view.density}),issueTableOptions);\n      if(!parsed)return null;\n      return withIssueTableView(view,{columnOrderKeys:parsed.columnOrderKeys,columnWidths:parsed.columnWidths,columnPinning:parsed.columnPinning});\n    }\n    return view;\n  }catch{return null;}\n}\nexport function serializeIssueView(view:IssueView){serializeFilterQuery(view.filters,issueFields);const parsed=parseIssueView(JSON.stringify(view));if(!parsed)throw new Error('This view configuration is invalid.');return JSON.stringify(parsed);}\nexport function parseSavedIssueViews(text:string):SavedIssueView[]|null {\n  try{if(text.length>200000)return null;const values=JSON.parse(text);if(!Array.isArray(values)||values.length>20)return null;const ids=new Set<string>(),names=new Set<string>();const result:SavedIssueView[]=[];\n    for(const entry of values){if(!entry||typeof entry.id!=='string'||!/^[\\w-]{1,64}$/.test(entry.id)||ids.has(entry.id)||typeof entry.name!=='string'||!entry.name.trim()||entry.name.length>50||names.has(entry.name.trim().toLowerCase()))return null;const view=parseIssueView(JSON.stringify(entry.view));if(!view)return null;ids.add(entry.id);names.add(entry.name.trim().toLowerCase());result.push({id:entry.id,name:entry.name.trim(),view});}return result;\n  }catch{return null;}\n}\nexport const issueSeed:Issue[]=[\n  ['Refine dialog focus','review','high','maya',3,'2026-11-02'],['Keyboard shortcuts','in-progress','medium','oliver',5,'2026-11-05'],['Empty-state copy','backlog','low','sam',1,''],['Upload retry feedback','in-progress','high','maya',5,'2026-11-07'],['Navigation contrast','done','medium','sam',2,'2026-10-26'],['Mobile table actions','review','urgent','oliver',3,'2026-11-01'],['Saved view naming','backlog','medium','unassigned',2,''],['Calendar range hints','backlog','low','maya',3,'2026-11-12'],['Loading skeleton rhythm','done','low','sam',1,'2026-10-27'],['Bulk update confirmation','in-progress','high','oliver',5,'2026-11-09'],['Profile field validation','review','medium','sam',2,'2026-11-06'],['Resource preview layout','backlog','high','unassigned',8,'2026-11-15'],\n].map((row,index)=>({id:'ISS-'+(101+index),title:String(row[0]),status:row[1] as Issue['status'],priority:row[2] as Issue['priority'],assignee:String(row[3]),estimate:Number(row[4]),due:String(row[5]),revision:1}));\nconst clone=(issue:Issue):Issue=>({...issue});\nconst abort=(signal:AbortSignal)=>{if(signal.aborted)throw new DOMException('Request aborted.','AbortError');};\nexport function createMemoryIssueRepository(initial:readonly Issue[]=issueSeed):IssueRepository {\n  if(!initial.every(validIssue)||new Set(initial.map(row=>row.id)).size!==initial.length)throw new Error('Invalid initial issue records.');\n  let records=initial.map(clone),next=Math.max(100,...records.map(row=>Number(row.id.replace('ISS-',''))||100))+1;\n  return {\n    async list(query,signal){abort(signal);const view=parseIssueView(JSON.stringify(query.view));if(!view||!Number.isInteger(query.page)||query.page<1)throw new Error('Invalid issue query.');\n      let filtered=filterRecords(records,view.filters,issueFields,(row,field)=>row[field as keyof Issue] as FilterValue).filter(row=>(row.id+' '+row.title).toLowerCase().includes(view.search.toLowerCase()));\n      const sorts=view.sorts??(view.sort?[view.sort]:[]);filtered.sort((a,b)=>{for(const {key,descending} of sorts){const av=a[key as keyof Issue],bv=b[key as keyof Issue];const order=(typeof av==='number'&&typeof bv==='number'?av-bv:String(av).localeCompare(String(bv),undefined,{numeric:true}))*(descending?-1:1);if(order)return order;}return sorts.length?a.id.localeCompare(b.id,undefined,{numeric:true}):0;});\n      const total=filtered.length,start=(query.page-1)*view.pageSize;return {rows:filtered.slice(start,start+view.pageSize).map(clone),total};},\n    async create(draft,signal){abort(signal);if(draft.title.trim().length<3||draft.title.length>120)throw new Error('Use a title between 3 and 120 characters.');if(!issuePriorities.some(item=>item.value===draft.priority)||!issuePeople.some(item=>item.value===draft.assignee))throw new Error('Choose a supported priority and assignee.');const row:Issue={...draft,title:draft.title.trim(),id:'ISS-'+next++,status:'backlog',estimate:0,due:'',revision:1};records=[row,...records];return clone(row);},\n    async update(changes,signal){abort(signal);if(!changes.length||changes.length>100||new Set(changes.map(change=>change.id)).size!==changes.length)throw new Error('Choose up to 100 distinct issues.');\n      for(const change of changes){const previous=records.find(row=>row.id===change.id);if(!previous||previous.revision!==change.expectedRevision)throw new Error('An issue changed elsewhere. Reload the results before trying again.');if(Object.keys(change.patch).some(key=>!['title','status'].includes(key))||change.patch.title!==undefined&&(change.patch.title.trim().length<3||change.patch.title.length>120)||change.patch.status!==undefined&&!issueStatuses.some(item=>item.value===change.patch.status))throw new Error('Review the issue changes.');}\n      const updated:Issue[]=[];records=records.map(row=>{const change=changes.find(change=>change.id===row.id);if(!change)return row;const result={...row,...change.patch,...(change.patch.title?{title:change.patch.title.trim()}:{}),revision:row.revision+1};updated.push(clone(result));return result;});return updated;},\n  };\n}\nfunction validIssue(value:unknown):value is Issue {const row=value as Issue;return !!row&&typeof row.id==='string'&&row.id.length<=80&&typeof row.title==='string'&&row.title.length<=120&&issueStatuses.some(item=>item.value===row.status)&&issuePriorities.some(item=>item.value===row.priority)&&issuePeople.some(item=>item.value===row.assignee)&&Number.isFinite(row.estimate)&&row.estimate>=0&&typeof row.due==='string'&&(!row.due||isFilterDate(row.due))&&Number.isInteger(row.revision)&&row.revision>0;}\n/** Host API must authenticate, authorise, validate queries and commit revision checks atomically. */\nexport function createIssueHttpRepository(baseUrl:string,fetcher:typeof fetch=fetch):IssueRepository {\n  async function request(method:string,signal:AbortSignal,body?:unknown,query?:string){const response=await fetcher(baseUrl+(query?'?'+new URLSearchParams({query}):''),{method,signal,headers:body?{'Content-Type':'application/json'}:undefined,body:body?JSON.stringify(body):undefined,credentials:'same-origin'});if(!response.ok)throw new Error(response.status===409?'An issue changed elsewhere. Reload the results before trying again.':response.status===429?'Too many requests. Wait briefly and try again.':'The issue service could not complete this request. Try again.');try{return await response.json();}catch{throw new Error('The issue service returned an invalid response.');}}\n  return {\n    async list(query,signal){if(!Number.isInteger(query.page)||query.page<1)throw new Error('Invalid issue query.');serializeIssueView(query.view);const result=await request('GET',signal,undefined,JSON.stringify(query));if(!result||!Array.isArray(result.rows)||result.rows.length>100||!result.rows.every(validIssue)||new Set(result.rows.map((row:Issue)=>row.id)).size!==result.rows.length||!Number.isInteger(result.total)||result.total<result.rows.length)throw new Error('The issue service returned an invalid response.');return {rows:result.rows,total:result.total};},\n    async create(draft,signal){const result=await request('POST',signal,draft);if(!validIssue(result))throw new Error('The issue service returned an invalid response.');return result;},\n    async update(changes,signal){const result=await request('PATCH',signal,{changes});if(!Array.isArray(result)||result.length!==changes.length||!result.every(validIssue)||new Set(result.map((row:Issue)=>row.id)).size!==result.length||result.some((row:Issue)=>!changes.some(change=>change.id===row.id&&row.revision>change.expectedRevision&&(change.patch.status===undefined||row.status===change.patch.status)&&(change.patch.title===undefined||row.title===change.patch.title.trim()))))throw new Error('The issue service returned an invalid response.');return result;},\n  };\n}\n"
    },
    {
      "path": "packages/blocks/src/resource-workspace-state.ts",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n/*!\n * SPDX-FileCopyrightText: 2026 Jaison\n * SPDX-License-Identifier: MIT\n */\nimport {dataValuesEqual,isDataId,isDataObject,parseDataQuery,parseDataValue,validateDataChanges,type BatchResult,type DataBatchRequest,type DataCellError,type DataChange,type DataColumn,type DataEdit,type DataQuery,type DataRecord,type DataSource} from '@bld8/ui/data-workspace-state';\nimport {emptyFilterQuery,type FilterField} from '@bld8/ui/filter-query';\n\nexport type ResourceFilterField<T extends DataRecord>=Omit<FilterField,'id'>&{id:Extract<keyof T,string>};\nexport interface ResourceDraft<T extends DataRecord>{base:T;values:Record<string,unknown>}\nexport type ResourceDrafts<T extends DataRecord>=Record<string,ResourceDraft<T>>;\nexport interface ResourceWorkspaceState<T extends DataRecord>{\n  query:DataQuery;rows:readonly T[];displayRows:readonly T[];total:number;loading:boolean;loadError:string;\n  drafts:ResourceDrafts<T>;changes:readonly DataChange<T>[];errors:readonly DataCellError[];conflicts:readonly T[];\n  dirtyCells:readonly {id:string;key:string}[];hasDrafts:boolean;canUndo:boolean;canRedo:boolean;\n  saving:boolean;uncertain:boolean;editLocked:boolean;saveError:string;notice:string;\n}\nexport interface ResourceControllerOptions<T extends DataRecord>{\n  dataSource:DataSource<T>;columns:readonly DataColumn<T>[];fields:readonly ResourceFilterField<T>[];\n  initialQuery?:DataQuery;unavailableMessage?:string;createRequestId?:()=>string;\n}\nexport type ResourceSaveOutcome<T extends DataRecord>={status:'saved';rows:readonly T[]}|{status:'rejected'|'uncertain'|'ignored'};\nexport const createResourceQuery=():DataQuery=>({search:'',filters:emptyFilterQuery(),sorts:[],page:1,pageSize:10});\nexport function copyResourceRow<T extends DataRecord>(row:T):T{return Object.fromEntries(Object.entries(row).map(([key,value])=>[key,Array.isArray(value)?[...value]:value])) as T;}\nconst copyValues=(values:Record<string,unknown>)=>Object.fromEntries(Object.entries(values).map(([key,value])=>[key,Array.isArray(value)?[...value]:value]));\nexport const copyResourceDrafts=<T extends DataRecord>(drafts:ResourceDrafts<T>):ResourceDrafts<T>=>Object.fromEntries(Object.entries(drafts).map(([id,draft])=>[id,{base:copyResourceRow(draft.base),values:copyValues(draft.values)}]));\nexport const resourceDraftChanges=<T extends DataRecord>(drafts:ResourceDrafts<T>):DataChange<T>[]=>Object.entries(drafts).map(([id,draft])=>({id,expectedRevision:draft.base.revision,values:copyValues(draft.values) as DataChange<T>['values']}));\nexport function resourceDraftErrors<T extends DataRecord>(drafts:ResourceDrafts<T>,columns:readonly DataColumn<T>[]):DataCellError[]{\n  if(!Object.keys(drafts).length)return [];\n  const errors:DataCellError[]=[];\n  for(const [id,draft]of Object.entries(drafts))for(const [key,value]of Object.entries(draft.values)){const column=columns.find(column=>column.key===key);if(!column){errors.push({id,key,message:'This field is not editable.'});continue;}const parsed=parseDataValue(column,value);if(parsed.error)errors.push({id,key,message:parsed.error});}\n  for(const error of validateDataChanges(Object.values(drafts).map(draft=>draft.base),columns,resourceDraftChanges(drafts)))if(!errors.some(current=>current.id===error.id&&current.key===error.key))errors.push(error);\n  return errors;\n}\n/** Validate bounded adapter results before presenting them or acknowledging a save. */\nexport function validResourceRows<T extends DataRecord>(value:unknown,columns:readonly DataColumn<T>[],maximum=100):value is T[]{\n  if(!Array.isArray(value)||value.length>maximum)return false;const ids=new Set<string>();\n  for(const row of Array.from(value)){if(!isDataObject(row)||!isDataId(row.id)||ids.has(row.id)||!Number.isSafeInteger(row.revision)||Number(row.revision)<1)return false;ids.add(row.id);for(const column of columns){if(column.editable!==true||column.key==='id'||column.key==='revision')continue;const parsed=parseDataValue(column,row[column.key]);if(parsed.error||!dataValuesEqual(parsed.value,row[column.key]))return false;}}\n  return true;\n}\n\n/** One source-bound draft lifecycle; service writes happen only through save(). */\nexport class ResourceWorkspaceController<T extends DataRecord>{\n  private options:ResourceControllerOptions<T>;private active=false;private generation=0;private loadingRequest:AbortController|null=null;private mutation:AbortController|null=null;\n  private listeners=new Set<()=>void>();private cache=new Map<string,T>();private past:ResourceDrafts<T>[]=[];private future:ResourceDrafts<T>[]=[];\n  private drafts:ResourceDrafts<T>={};private rows:T[]=[];private total=0;private loading=true;private loadError='';private saving=false;private uncertain=false;private saveError='';private notice='';private serverErrors:DataCellError[]=[];private conflicts:T[]=[];\n  private request:{fingerprint:string;batch:DataBatchRequest<T>}|null=null;private query:DataQuery;private snapshot:ResourceWorkspaceState<T>;\n  constructor(options:ResourceControllerOptions<T>){\n    if(!options.columns.length||options.columns.length>30||new Set(options.columns.map(column=>column.key)).size!==options.columns.length)throw Error('Provide 1 to 30 unique resource columns.');\n    if(new Set(options.fields.map(field=>field.id)).size!==options.fields.length||options.fields.some(field=>!options.columns.some(column=>column.key===field.id)))throw Error('Resource filters must reference distinct configured columns.');\n    const query=parseDataQuery(options.initialQuery??createResourceQuery(),options.columns,options.fields);if(!query)throw Error('Provide a supported initial resource query.');this.options=options;this.query=query;this.snapshot=this.derive();\n  }\n  private derive():ResourceWorkspaceState<T>{const changes=resourceDraftChanges(this.drafts),local=resourceDraftErrors(this.drafts,this.options.columns),errors=[...local,...this.serverErrors.filter(error=>!local.some(current=>current.id===error.id&&current.key===error.key))];return {query:this.query,rows:this.rows,displayRows:this.rows.map(row=>this.drafts[row.id]?{...this.drafts[row.id].base,...this.drafts[row.id].values} as T:row),total:this.total,loading:this.loading,loadError:this.loadError,drafts:this.drafts,changes,errors,conflicts:this.conflicts,dirtyCells:Object.entries(this.drafts).flatMap(([id,draft])=>Object.keys(draft.values).map(key=>({id,key}))),hasDrafts:changes.length>0,canUndo:this.past.length>0,canRedo:this.future.length>0,saving:this.saving,uncertain:this.uncertain,editLocked:this.saving||this.uncertain,saveError:this.saveError,notice:this.notice};}\n  private emit(){this.snapshot=this.derive();for(const listener of this.listeners)listener();}\n  getSnapshot=()=>this.snapshot;\n  subscribe=(listener:()=>void)=>{this.listeners.add(listener);return()=>{this.listeners.delete(listener);};};\n  /** Start/stop can be paired again by React Strict Mode without reusing stale requests. */\n  start=()=>{this.active=true;this.generation++;void this.reload();return()=>this.stop();};\n  stop=()=>{this.active=false;this.generation++;this.loadingRequest?.abort();this.loadingRequest=null;if(this.mutation){this.mutation.abort();this.mutation=null;this.saving=false;this.uncertain=true;this.saveError='Stopped waiting for the service. The batch may already have committed. Retry the unchanged draft to reconcile the same request ID.';} };\n  setNotice=(message:string)=>{this.notice=message;this.emit();};\n  clearSaveError=()=>{if(!this.uncertain){this.saveError='';this.emit();}};\n  getRecord=(id:string)=>{const draft=this.drafts[id];return draft?{...draft.base,...draft.values} as T:this.cache.get(id);};\n  setQuery=(input:DataQuery)=>{if(this.saving||this.uncertain)return false;const query=parseDataQuery(input,this.options.columns,this.options.fields);if(!query){this.setNotice('Choose a supported resource view. Pending drafts are kept.');return false;}if(JSON.stringify(query)===JSON.stringify(this.query))return true;this.query=query;this.emit();if(this.active)void this.reload();return true;};\n  reload=async()=>{\n    this.loadingRequest?.abort();const controller=new AbortController(),generation=this.generation,key=JSON.stringify(this.query),query=this.query;this.loadingRequest=controller;this.loading=true;this.loadError='';this.emit();\n    const current=()=>this.active&&!controller.signal.aborted&&this.loadingRequest===controller&&generation===this.generation&&key===JSON.stringify(this.query);\n    try{const result=await this.options.dataSource.load(query,{signal:controller.signal});if(!current())return;if(!isDataObject(result)||!validResourceRows(result.rows,this.options.columns)||!Number.isSafeInteger(result.total)||Number(result.total)<result.rows.length)throw Error('Invalid resource page.');const loaded=result.rows.map(row=>copyResourceRow(row as T));for(const row of loaded)this.cache.set(row.id,row);if(this.cache.size>500){const keep=new Set([...loaded.map(row=>row.id),...Object.keys(this.drafts)]);for(const id of this.cache.keys())if(!keep.has(id))this.cache.delete(id);}this.rows=loaded;this.total=Number(result.total);const last=Math.max(1,Math.ceil(this.total/query.pageSize));if(query.page>last){this.query={...query,page:last};this.emit();void this.reload();return;}}\n    catch{if(current())this.loadError=this.options.unavailableMessage??'The resource service is unavailable. Your view and pending changes are kept.';}\n    finally{if(current()){this.loading=false;this.loadingRequest=null;this.emit();}}\n  };\n  private commitDrafts(next:ResourceDrafts<T>,message:string){if(this.saving||this.uncertain||JSON.stringify(next)===JSON.stringify(this.drafts))return;this.past=[...this.past,copyResourceDrafts(this.drafts)].slice(-50);this.drafts=next;this.future=[];this.request=null;this.serverErrors=[];this.conflicts=[];this.saveError='';this.notice=message;this.emit();}\n  edit=(edits:readonly DataEdit<T>[])=>{\n    if(this.saving||this.uncertain||!edits.length)return false;if(edits.length>2000){this.setNotice('Change up to 2,000 loaded cells at a time.');return false;}\n    const next=copyResourceDrafts(this.drafts),targets: {edit:DataEdit<T>;base:T;column:DataColumn<T>}[]=[];\n    for(const edit of Array.from(edits)){const column=edit&&this.options.columns.find(column=>column.key===edit.key&&column.editable===true&&column.key!=='id'&&column.key!=='revision'),base=edit&&(next[edit.id]?.base??this.rows.find(row=>row.id===edit.id));if(!column||!base){this.setNotice('Paste only into editable cells from the loaded page. No changes were applied.');return false;}targets.push({edit,base,column});}\n    for(const {edit,base,column}of targets){const parsed=parseDataValue(column,edit.value),value=parsed.error?(Array.isArray(edit.value)?[...edit.value]:edit.value):parsed.value,draft=next[edit.id]??{base:copyResourceRow(base),values:{}};if(dataValuesEqual(value,base[edit.key]))delete draft.values[edit.key];else draft.values[edit.key]=value;if(Object.keys(draft.values).length)next[edit.id]=draft;else delete next[edit.id];}\n    if(Object.keys(next).length>100){this.setNotice('Keep a batch to 100 records. No changes from this action were applied.');return false;}\n    this.commitDrafts(next,edits.length>1?edits.length+' cells added to your draft.':'Draft updated. Review before saving.');return true;\n  };\n  undo=()=>{if(this.saving||this.uncertain||!this.past.length)return;this.future=[copyResourceDrafts(this.drafts),...this.future].slice(0,50);this.drafts=this.past.at(-1)!;this.past=this.past.slice(0,-1);this.request=null;this.serverErrors=[];this.conflicts=[];this.saveError='';this.notice='Draft change undone. Saved records are unchanged.';this.emit();};\n  redo=()=>{if(this.saving||this.uncertain||!this.future.length)return;this.past=[...this.past,copyResourceDrafts(this.drafts)].slice(-50);this.drafts=this.future[0];this.future=this.future.slice(1);this.request=null;this.serverErrors=[];this.conflicts=[];this.saveError='';this.notice='Draft change restored.';this.emit();};\n  save=async():Promise<ResourceSaveOutcome<T>>=>{\n    if(!this.active||this.saving||!Object.keys(this.drafts).length)return {status:'ignored'};\n    const invalid=resourceDraftErrors(this.drafts,this.options.columns);if(invalid.length){this.serverErrors=[];this.saveError='Correct the marked fields before saving. Your draft is kept.';this.emit();return {status:'rejected'};}\n    const changes=resourceDraftChanges(this.drafts),fingerprint=JSON.stringify(changes);if(!this.request||this.request.fingerprint!==fingerprint)this.request={fingerprint,batch:{requestId:this.options.createRequestId?.()??crypto.randomUUID(),changes}};\n    const batch=this.request.batch,controller=new AbortController(),generation=this.generation;this.mutation=controller;this.saving=true;this.saveError='';this.serverErrors=[];this.conflicts=[];this.emit();\n    const current=()=>this.active&&!controller.signal.aborted&&this.mutation===controller&&generation===this.generation;\n    try{const result:BatchResult<T>=await this.options.dataSource.save({requestId:batch.requestId,changes:batch.changes.map(change=>({...change,values:copyValues(change.values) as DataChange<T>['values']}))},{signal:controller.signal});if(!current())return {status:'ignored'};\n      if(!isDataObject(result)||typeof result.ok!=='boolean')throw Error('Invalid save acknowledgement.');\n      if(result.ok){\n        if(!validResourceRows(result.rows,this.options.columns)||result.rows.length!==batch.changes.length||result.rows.some(row=>{const change=batch.changes.find(change=>change.id===row.id);return !change||row.revision<=change.expectedRevision||Object.entries(change.values).some(([key,value])=>!dataValuesEqual(row[key as keyof T],value));}))throw Error('Incomplete save acknowledgement.');\n        const rows=result.rows.map(copyResourceRow),confirmed=new Map(rows.map(row=>[row.id,row]));for(const row of rows)this.cache.set(row.id,row);this.rows=this.rows.map(row=>confirmed.get(row.id)??row);this.drafts={};this.past=[];this.future=[];this.request=null;this.uncertain=false;this.notice=rows.length+' '+(rows.length===1?'record':'records')+' saved in one batch.';return {status:'saved',rows};\n      }\n      if(result.code==='conflict'){\n        if(result.conflicts!==undefined&&(!validResourceRows(result.conflicts,this.options.columns)||result.conflicts.some(row=>!batch.changes.some(change=>change.id===row.id))))throw Error('Invalid conflict acknowledgement.');\n        this.conflicts=(result.conflicts??[]).map(copyResourceRow);this.saveError='Some records changed after you started editing. Nothing in this batch was saved. Compare the latest values before trying again.';\n      }else if(result.code==='validation'){\n        if(result.errors!==undefined&&(!Array.isArray(result.errors)||result.errors.length>3000||result.errors.some(error=>!isDataObject(error)||typeof error.id!=='string'||typeof error.key!=='string'||typeof error.message!=='string'||error.message.length>1000||error.id&&!batch.changes.some(change=>change.id===error.id)||error.key&&!this.options.columns.some(column=>column.key===error.key))))throw Error('Invalid validation acknowledgement.');\n        this.serverErrors=(result.errors??[]).map(error=>({...error}));this.saveError='The service rejected this batch. Correct the marked fields; none of the changes were saved.';\n      }else throw Error('Invalid save result.');\n      this.uncertain=false;return {status:'rejected'};\n    }catch{if(current()){this.uncertain=true;this.saveError='The save could not be confirmed. Your draft is kept. Retry sends the same request ID so a committed batch can be reconciled.';}return {status:'uncertain'};}\n    finally{if(current()){this.mutation=null;this.saving=false;this.emit();if(!this.uncertain&&!Object.keys(this.drafts).length)void this.reload();}}\n  };\n  stopWaiting=()=>{if(!this.mutation)return;this.uncertain=true;this.mutation.abort();this.mutation=null;this.saving=false;this.saveError='Stopped waiting for the service. The batch may already have committed. Retry the unchanged draft to reconcile the same request ID.';this.emit();};\n  rebase=()=>{if(this.saving||this.uncertain)return Object.keys(this.drafts).length;const next=copyResourceDrafts(this.drafts);for(const latest of this.conflicts){const draft=next[latest.id];if(!draft)continue;this.cache.set(latest.id,copyResourceRow(latest));draft.base=copyResourceRow(latest);for(const key of Object.keys(draft.values))if(dataValuesEqual(draft.values[key],latest[key as keyof T]))delete draft.values[key];if(!Object.keys(draft.values).length)delete next[latest.id];}const remaining=Object.keys(next).length;this.commitDrafts(next,remaining?'Drafts now use the latest revisions. Review them again before saving.':'The latest records already contain your draft values. No further write is needed.');this.conflicts=[];this.saveError='';this.emit();if(this.active)void this.reload();return remaining;};\n  discard=()=>{if(this.saving||this.uncertain)return false;this.drafts={};this.past=[];this.future=[];this.request=null;this.serverErrors=[];this.conflicts=[];this.saveError='';this.notice='Pending changes discarded. Saved records are unchanged.';this.emit();return true;};\n}\nexport const createResourceWorkspaceController=<T extends DataRecord>(options:ResourceControllerOptions<T>)=>new ResourceWorkspaceController(options);\n"
    },
    {
      "path": "packages/blocks/src/resource-workspace.tsx",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n/*!\n * SPDX-FileCopyrightText: 2026 Jaison\n * SPDX-License-Identifier: MIT\n */\n'use client';\nimport {useCallback,useEffect,useId,useMemo,useRef,useState,type FormEvent,type ReactNode} from 'react';\nimport {Check,Columns3,RefreshCw,RotateCcw,Save,Undo2,Redo2,Link2} from 'lucide-react';\nimport {Alert,Badge,Button,Checkbox,DataGrid,Dialog,Drawer,EmptyState,Field,FilterBuilder,Input,MultiSelect,Pagination,Reveal,Select,Spinner,UploadQueue,emptyFilterQuery,filterQueryKey,validateFilterQuery,type AnyFilterQuery,type DataGridProps,type DataGridViewState,type UploadFileContext,type UploadReceipt} from '@bld8/ui';\nimport {parseDataValue,type DataCellError,type DataColumn,type DataEdit,type DataQuery,type DataRecord,type DataSource} from '@bld8/ui/data-workspace-state';\nimport {createResourceQuery,type ResourceFilterField} from './resource-workspace-state.js';\nimport {useResourceWorkspace} from './use-resource-workspace.js';\nimport {createResourceWorkspaceView,normalizeResourceGridView,resourceViewQuery,type ResourceWorkspaceView,type SavedResourceView} from './resource-workspace-view.js';\nimport {DataWorkspaceFilters} from './data-workspace-filters.js';\n\nexport interface ResourceWorkspaceLabels {\n  label:string; kicker:string; title:string; description:string; searchLabel:string; searchPlaceholder:string;\n  gridLabel:string; emptyTitle:string; recordName:string; unavailableMessage:string; attachmentsLabel:string; uploadLabel:string; uploadHint:string;\n}\nexport interface ResourceInspectorContext<T extends DataRecord> {\n  record:T; values:Readonly<Record<string,unknown>>; columns:readonly DataColumn<T>[]; errors:readonly DataCellError[]; disabled:boolean;\n  setValue:(key:Extract<keyof T,string>,value:unknown)=>void;\n}\nexport interface ResourceFieldContext<T extends DataRecord> extends ResourceInspectorContext<T> {column:DataColumn<T>;error?:string;value:unknown}\nexport interface ResourceWorkspaceProps<T extends DataRecord> {\n  /** Keep the adapter stable. It owns permission checks and atomic persistence. */\n  dataSource:DataSource<T>; columns:readonly DataColumn<T>[]; fields:readonly ResourceFilterField<T>[];\n  labels?:Partial<ResourceWorkspaceLabels>; className?:string;\n  /** Default query and layout, read once for each source/schema binding. Contains no drafts. */\n  defaultView?:ResourceWorkspaceView;\n  gridView?:DataGridViewState; onGridViewChange?:(view:DataGridViewState)=>void;\n  savedViews?:readonly SavedResourceView[]; onSaveView?:(view:ResourceWorkspaceView)=>void|Promise<void>; onShareView?:(view:ResourceWorkspaceView)=>void|Promise<void>;\n  /** Replace the grid without replacing the source-bound transaction controller. */\n  renderGrid?:(props:DataGridProps<T>)=>ReactNode;\n  /** Return undefined to use the built-in editor. Render fields, not a nested form. */\n  renderField?:(context:ResourceFieldContext<T>)=>ReactNode;\n  renderInspector?:(context:ResourceInspectorContext<T>)=>ReactNode;\n  formatValue?:(column:DataColumn<T>,value:unknown)=>string;\n  onUploadFile?:(file:globalThis.File,context:UploadFileContext&{recordId:string})=>Promise<UploadReceipt>;\n}\nconst defaultLabels:ResourceWorkspaceLabels={label:'Resource workspace',kicker:'ONE DRAFT. ONE CLEAR SAVE.',title:'Work through the details.',description:'Connected through your data source. Changes stay in a draft until you save.',searchLabel:'Search records',searchPlaceholder:'ID or title…',gridLabel:'Resource data grid',emptyTitle:'No matching records.',recordName:'Record',unavailableMessage:'The resource service is unavailable. Your view and pending changes are kept.',attachmentsLabel:'Record attachments',uploadLabel:'Record supporting files',uploadHint:'The host receives this record ID. Upload acknowledgement is separate from the record batch save.'};\n\n/** Server-paged editing with an explicit review boundary, bounded drafts and source-owned writes. */\nexport function ResourceWorkspace<T extends DataRecord>({dataSource,columns,fields,labels:labelOverrides,className,defaultView,gridView,onGridViewChange,savedViews=[],onSaveView,onShareView,renderGrid,renderField,renderInspector,formatValue,onUploadFile}:ResourceWorkspaceProps<T>){\n  const labels={...defaultLabels,...labelOverrides};\n  const state=useResourceWorkspace({dataSource,columns,fields,initialQuery:resourceViewQuery(defaultView),unavailableMessage:labels.unavailableMessage});\n  const {controller,query,rows,displayRows,total,loading,loadError,drafts,errors,conflicts,saving,uncertain,hasDrafts,editLocked,dirtyCells,saveError,notice,canUndo,canRedo}=state;\n  const entries=Object.entries(drafts),editableColumns=columns.filter(column=>column.editable===true&&column.key!=='id'&&column.key!=='revision');\n  const root=useRef<HTMLElement>(null),heading=useRef<HTMLHeadingElement>(null),returnFocus=useRef<HTMLElement|null>(null),saveButton=useRef<HTMLButtonElement>(null),detailForm=useRef<HTMLFormElement>(null),id=useId();\n  const [filterDraft,setFilterDraft]=useState<AnyFilterQuery>(()=>query.filters),[filterErrors,setFilterErrors]=useState<Record<string,string>>({}),[filtersOpen,setFiltersOpen]=useState(false);\n  const [reviewOpen,setReviewOpen]=useState(false),[discardOpen,setDiscardOpen]=useState(false),[detailId,setDetailId]=useState<string|null>(null),[detailOpen,setDetailOpen]=useState(false),[detailDraft,setDetailDraft]=useState<Record<string,unknown>>({}),[detailErrors,setDetailErrors]=useState<DataCellError[]>([]);\n  const [localGridView,setLocalGridView]=useState(()=>normalizeResourceGridView(defaultView?.grid,columns)),[viewBusy,setViewBusy]=useState(false);\n  const currentGridView=normalizeResourceGridView(gridView??localGridView,columns),sourceRef=useRef(dataSource);sourceRef.current=dataSource;\n  const detailBase=detailId?(drafts[detailId]?.base??controller.getRecord(detailId)):undefined;\n  const filtersChanged=filterQueryKey(filterDraft)!==filterQueryKey(query.filters);\n  useEffect(()=>{setReviewOpen(false);setDiscardOpen(false);setDetailOpen(false);setDetailId(null);setFilterDraft(controller.getSnapshot().query.filters);setFilterErrors({});},[controller]);\n  function setQuery(updater:DataQuery|((previous:DataQuery)=>DataQuery)){controller.setQuery(typeof updater==='function'?updater(controller.getSnapshot().query):updater);}\n  const setNotice=controller.setNotice,undo=controller.undo,redo=controller.redo,edit=controller.edit;\n  const fieldLabel=(key:string)=>columns.find(column=>column.key===key)?.label??key;\n  const valueLabel=(key:string,value:unknown):string=>{const column=columns.find(column=>column.key===key);if(column&&formatValue)return formatValue(column,value);const one=(item:unknown)=>column?.options?.find(option=>option.value===item)?.label??(item===''||item==null?'No value':typeof item==='boolean'?(item?'Yes':'No'):String(item));return Array.isArray(value)?(value.length?value.map(one).join(', '):'No value'):one(value);};\n  function changeGridView(view:DataGridViewState){const next=normalizeResourceGridView(view,columns);if(gridView===undefined)setLocalGridView(next);onGridViewChange?.(next);}\n  function applyView(view:ResourceWorkspaceView){if(editLocked)return;try{const clean=createResourceWorkspaceView({...view.query,page:1},view.grid,columns,fields);if(controller.setQuery({...clean.query,page:1})){changeGridView(clean.grid);setFilterDraft(clean.query.filters);setFilterErrors({});setNotice('View applied. Pending drafts are kept.');}}catch{setNotice('This view does not match the configured resource fields.');}}\n  async function exportView(action:((view:ResourceWorkspaceView)=>void|Promise<void>)|undefined){if(!action||viewBusy)return;setViewBusy(true);try{await action(createResourceWorkspaceView(query,currentGridView,columns,fields));setNotice('View ready. Draft values were not included.');}catch{setNotice('The view could not be saved or shared. Your draft is kept.');}finally{setViewBusy(false);}}\n  function inspect(row:T){returnFocus.current=document.activeElement instanceof HTMLElement?document.activeElement:heading.current;setDetailId(row.id);setDetailDraft(Object.fromEntries(editableColumns.map(column=>[column.key,Array.isArray(row[column.key])?[...row[column.key] as unknown[]]:row[column.key]])));setDetailErrors([]);setDetailOpen(true);}\n  function focusInvalid(){requestAnimationFrame(()=>detailForm.current?.querySelector<HTMLElement>('[aria-invalid=true]')?.focus({preventScroll:true}));}\n  function fixError(error:DataCellError){const draft=drafts[error.id];if(!draft||editLocked)return;setReviewOpen(false);inspect({...draft.base,...draft.values} as T);returnFocus.current=heading.current;setDetailErrors(errors.filter(current=>current.id===error.id));focusInvalid();}\n  function setDetailValue(key:Extract<keyof T,string>,value:unknown){if(editLocked||!editableColumns.some(column=>column.key===key))return;setDetailDraft(previous=>({...previous,[key]:value}));setDetailErrors(previous=>previous.filter(error=>error.key!==key));}\n  function applyDetail(event:FormEvent){event.preventDefault();if(!detailId||!detailBase||editLocked)return;const edits:DataEdit<T>[]=editableColumns.map(column=>({id:detailId,key:column.key,value:detailDraft[column.key]}));const invalid=edits.flatMap(edit=>{const parsed=parseDataValue(editableColumns.find(column=>column.key===edit.key)!,edit.value);return parsed.error?[{id:edit.id,key:edit.key,message:parsed.error}]:[];});if(invalid.length){setDetailErrors(invalid);focusInvalid();return;}if(controller.edit(edits))setDetailOpen(false);}\n  function applyFilters(){const invalid=validateFilterQuery(filterDraft,fields);setFilterErrors(invalid);if(Object.keys(invalid).length){requestAnimationFrame(()=>root.current?.querySelector<HTMLElement>('[aria-invalid=true]')?.focus());return;}setQuery(previous=>({...previous,filters:JSON.parse(JSON.stringify(filterDraft)),page:1}));setNotice('Filters applied. Drafts from other pages are kept.');}\n  async function save(){const outcome=await controller.save();if(outcome.status==='saved'){setReviewOpen(false);requestAnimationFrame(()=>heading.current?.focus({preventScroll:true}));}}\n  function rebase(){if(controller.rebase()===0)setReviewOpen(false);}\n  function stopWaiting(){controller.stopWaiting();requestAnimationFrame(()=>saveButton.current?.focus({preventScroll:true}));}\n  function discard(){if(controller.discard()){setDiscardOpen(false);setReviewOpen(false);}}\n  const upload=useCallback(async(file:globalThis.File,context:UploadFileContext)=>{if(!onUploadFile||!detailId||sourceRef.current!==dataSource)throw Error('Choose a record and configure an upload service.');const receipt=await onUploadFile(file,{...context,recordId:detailId});if(sourceRef.current!==dataSource||context.signal.aborted)throw new DOMException('Request aborted.','AbortError');return receipt;},[onUploadFile,detailId,dataSource]);\n  const gridProps:DataGridProps<T>={bulkEditing:true,onBulkEditError:setNotice,label:labels.gridLabel,rows:displayRows,columns,onEdit:edit,cellErrors:errors,dirtyCells,disabled:editLocked||loading||!!loadError,onOpenRow:inspect,sorts:query.sorts,onSortsChange:sorts=>setQuery(previous=>({...previous,sorts,page:1})),onUndo:undo,onRedo:redo,canUndo:!editLocked&&canUndo,canRedo:!editLocked&&canRedo,onClipboardError:setNotice,view:currentGridView,onViewChange:changeGridView,layoutControls:true,resizableColumns:true};\n  const inspectorContext=detailBase?{record:detailBase,values:detailDraft,columns:editableColumns,errors:detailErrors,disabled:editLocked,setValue:setDetailValue}:undefined;\n  function defaultField(column:DataColumn<T>){const error=detailErrors.find(error=>error.key===column.key)?.message,value=detailDraft[column.key],changed=(value:unknown)=>setDetailValue(column.key,value),custom=inspectorContext&&renderField?.({...inspectorContext,column,error,value});if(custom!==undefined)return <div key={column.key}>{custom}</div>;if(column.type==='boolean')return <Checkbox key={column.key} label={column.label} error={error} checked={value===true} disabled={editLocked} required={column.required} onCheckedChange={changed}/>;if(column.type==='multi-select')return <MultiSelect key={column.key} label={column.label} value={Array.isArray(value)?value as string[]:[]} options={column.options??[]} error={error} disabled={editLocked} required={column.required} onValueChange={changed}/>;if(column.type==='select')return <Select key={column.key} label={column.label} value={String(value??'')} options={[...(column.options??[])]} error={error} disabled={editLocked} onValueChange={value=>changed(value??'')}/>;return <Field key={column.key} label={column.label} error={error} required={column.required}><Input type={column.type==='number'?'text':column.type==='date'?'date':'text'} inputMode={column.type==='number'?'decimal':undefined} value={String(value??'')} maxLength={column.maxLength} disabled={editLocked} onChange={event=>changed(event.target.value)}/></Field>;}\n  return <section ref={root} className={['bblocks-panel','bblocks-data-workspace',className].filter(Boolean).join(' ')} aria-label={labels.label}>\n    <header className=\"bblocks-heading\"><div><p className=\"bblocks-kicker\">{labels.kicker}</p><h2 ref={heading} tabIndex={-1}>{labels.title}</h2><p className=\"bblocks-muted\">{labels.description}</p></div><Button variant=\"secondary\" size=\"sm\" leadingIcon={RefreshCw} disabled={saving} onClick={()=>void controller.reload()}>Reload records</Button></header>\n    <div className=\"bblocks-data-workspace-toolbar\"><Field label={labels.searchLabel}><Input density=\"compact\" placeholder={labels.searchPlaceholder} maxLength={200} value={query.search} disabled={editLocked} onChange={event=>setQuery(previous=>({...previous,search:event.target.value,page:1}))}/></Field><Select density=\"compact\" label=\"Records per page\" value={String(query.pageSize)} options={[{value:'5',label:'5 records'},{value:'10',label:'10 records'},{value:'20',label:'20 records'}]} disabled={editLocked} onValueChange={value=>{if(value)setQuery(previous=>({...previous,pageSize:Number(value),page:1}));}}/></div>\n    {(savedViews.length>0||onSaveView||onShareView)&&<div className=\"bblocks-data-workspace-actions\" aria-label=\"Resource views\">{savedViews.length>0&&<Select density=\"compact\" label=\"Saved views\" placeholder=\"Choose a view…\" value={null} options={savedViews.map(view=>({value:view.id,label:view.label}))} disabled={editLocked} onValueChange={key=>{const selected=savedViews.find(view=>view.id===key);if(selected)applyView(selected.view);}}/>}{onSaveView&&<Button size=\"sm\" variant=\"secondary\" leadingIcon={Save} loading={viewBusy} onClick={()=>void exportView(onSaveView)}>Save current view</Button>}{onShareView&&<Button size=\"sm\" variant=\"ghost\" leadingIcon={Link2} loading={viewBusy} onClick={()=>void exportView(onShareView)}>Share current view</Button>}</div>}\n    <DataWorkspaceFilters fields={fields} value={query.filters} disabled={editLocked} blocked={filtersChanged} advancedOpen={filtersOpen} advancedId={id+'-filters'} onAdvanced={()=>setFiltersOpen(open=>!open)} onValueChange={filters=>{setFilterDraft(filters);setFilterErrors({});setQuery(previous=>({...previous,filters,page:1}));setNotice('Filters updated. Drafts from other pages are kept.');}}/>\n    <Reveal open={filtersOpen} id={id+'-filters'}><div className=\"bblocks-data-workspace-filters\"><FilterBuilder label=\"Workspace filters\" fields={fields} value={filterDraft} onValueChange={value=>{setFilterDraft(value);setFilterErrors({});}} allowGroups errors={filterErrors} disabled={editLocked}/><div className=\"bblocks-data-workspace-actions\"><Button onClick={applyFilters} disabled={editLocked||!filtersChanged}>Apply filters</Button><Button variant=\"ghost\" disabled={editLocked} onClick={()=>{setFilterDraft(emptyFilterQuery());setFilterErrors({});setQuery(previous=>({...previous,filters:emptyFilterQuery(),page:1}));}}>Clear filters</Button></div></div></Reveal>\n    <div className=\"bblocks-data-workspace-sort\" role=\"status\">{query.sorts.length?<><Columns3 size={16} aria-hidden=\"true\"/><span>Sorted by {query.sorts.map((sort,index)=>`${index+1}. ${fieldLabel(sort.key)} ${sort.descending?'descending':'ascending'}`).join(', ')}.</span><Button size=\"sm\" variant=\"ghost\" disabled={editLocked} onClick={()=>setQuery(previous=>({...previous,sorts:[],page:1}))}>Clear sorts</Button></>:<span>Shift-click headings to add another sort.</span>}</div>\n    <Reveal open={hasDrafts}><div className=\"bblocks-data-workspace-pending\"><div><strong>{entries.length} {entries.length===1?'record':'records'} with pending changes</strong><p>{uncertain?'The save needs reconciliation. Retry the unchanged batch before editing.':errors.length?`${errors.length} ${errors.length===1?'field needs':'fields need'} attention.`:'Your draft includes changes from every page.'}</p></div><div className=\"bblocks-data-workspace-actions\"><Button size=\"sm\" variant=\"ghost\" leadingIcon={Undo2} disabled={editLocked||!canUndo} onClick={undo}>Undo draft</Button><Button size=\"sm\" variant=\"ghost\" leadingIcon={Redo2} disabled={editLocked||!canRedo} onClick={redo}>Redo draft</Button><Button size=\"sm\" variant=\"secondary\" disabled={editLocked} onClick={()=>setDiscardOpen(true)}>Discard drafts</Button><Button size=\"sm\" leadingIcon={Save} onClick={()=>{controller.clearSaveError();setReviewOpen(true);}} disabled={saving}>Review changes</Button></div></div></Reveal>\n    {!hasDrafts&&canRedo&&<div className=\"bblocks-data-workspace-actions\"><Button size=\"sm\" variant=\"ghost\" leadingIcon={Redo2} onClick={redo} disabled={editLocked}>Redo draft</Button></div>}\n    <Reveal open={!!loadError}><Alert tone=\"danger\" title=\"Records could not be loaded\" live><p>{loadError}</p><Button size=\"sm\" variant=\"secondary\" onClick={()=>void controller.reload()}>Retry loading records</Button></Alert></Reveal>\n    <div className=\"bblocks-data-workspace-grid\" aria-busy={loading||saving}>\n      <p className=\"bblocks-data-workspace-loading\" role=\"status\">{loading&&<><Spinner/>Loading records…</>}</p>\n      {renderGrid?renderGrid(gridProps):<DataGrid {...gridProps}/>}\n      {!loading&&!loadError&&!rows.length&&<EmptyState title={labels.emptyTitle} action={<Button variant=\"secondary\" onClick={()=>{setQuery(createResourceQuery());setFilterDraft(emptyFilterQuery());}}>Reset view</Button>}>Try another search or fewer filter conditions. Pending drafts are kept.</EmptyState>}\n    </div>\n    <footer className=\"bblocks-data-workspace-footer\"><p>{total} matching {total===1?'record':'records'}</p><fieldset disabled={editLocked}><legend className=\"bui-sr-only\">Record pages</legend><Pagination page={query.page} totalPages={Math.max(1,Math.ceil(total/query.pageSize))} label=\"Workspace pages\" onPageChange={page=>{if(!editLocked)setQuery(previous=>({...previous,page}));}}/></fieldset></footer>\n    <p className=\"bblocks-data-workspace-notice\" role=\"status\">{notice}</p><p className=\"bui-hint\">Save pending edits before leaving or reloading this page.</p>\n    <Dialog title=\"Review pending changes\" description=\"Validate every changed field, then save the complete batch once. Nothing is written until you confirm.\" open={reviewOpen} onOpenChange={open=>{if(!saving)setReviewOpen(open);}}>\n      <div className=\"bblocks-data-workspace-review\">\n        {errors.length>0&&<Alert tone=\"danger\" title=\"Some fields need attention\" live><ul>{errors.map((error,index)=><li key={error.id+'-'+error.key+'-'+index}>{error.id} · {fieldLabel(error.key)}: {error.message}{drafts[error.id]&&<Button variant=\"ghost\" size=\"sm\" disabled={editLocked} onClick={()=>fixError(error)}>Fix {error.id} {fieldLabel(error.key)}</Button>}</li>)}</ul></Alert>}\n        <Reveal open={!!saveError}><Alert tone=\"danger\" title={conflicts.length?'Review newer revisions':'Your draft is kept'} live>{saveError}</Alert></Reveal>\n        {conflicts.length>0&&<div className=\"bblocks-data-workspace-conflicts\"><h3>Compare with the latest records.</h3>{conflicts.map(latest=>{const draft=drafts[latest.id];return draft?<article key={latest.id}><strong>{latest.id} · revision {draft.base.revision} → {latest.revision}</strong><dl>{Object.entries(draft.values).map(([key,value])=><div key={key}><dt>{fieldLabel(key)}</dt><dd><span>Your draft: {valueLabel(key,value)}</span><span>Latest saved: {valueLabel(key,latest[key as keyof T])}</span></dd></div>)}</dl></article>:null;})}<Button variant=\"secondary\" onClick={rebase} disabled={saving}>Use latest revisions and keep my edits</Button><p className=\"bui-hint\">This updates the expected revisions. Your values are kept for another review; it does not save or overwrite a record.</p></div>}\n        <ol className=\"bblocks-data-workspace-changes\">{entries.map(([recordId,draft])=><li key={recordId}><div><strong>{recordId}</strong><Badge>Revision {draft.base.revision}</Badge></div><dl>{Object.entries(draft.values).map(([key,value])=><div key={key} data-invalid={errors.some(error=>error.id===recordId&&error.key===key)||undefined}><dt>{fieldLabel(key)}</dt><dd><del>{valueLabel(key,draft.base[key as keyof T])}</del><span aria-hidden=\"true\"> → </span><ins>{valueLabel(key,value)}</ins></dd></div>)}</dl></li>)}</ol>\n        <div className=\"bblocks-data-workspace-actions\"><Button variant=\"secondary\" disabled={saving} onClick={()=>setReviewOpen(false)}>Keep editing</Button>{saving&&<Button variant=\"secondary\" onClick={stopWaiting}>Stop waiting</Button>}<Button ref={saveButton} leadingIcon={Check} loading={saving} disabled={!hasDrafts||!!errors.length||!!conflicts.length} onClick={()=>void save()}>Save {entries.length} {entries.length===1?'record':'records'}</Button></div>\n      </div>\n    </Dialog>\n    <Dialog title=\"Discard pending changes?\" description=\"All unsaved changes, including drafts from other pages, will be removed. Saved records remain as they are.\" open={discardOpen} onOpenChange={setDiscardOpen}><div className=\"bblocks-data-workspace-actions\"><Button variant=\"secondary\" onClick={()=>setDiscardOpen(false)}>Keep drafts</Button><Button variant=\"danger\" leadingIcon={RotateCcw} onClick={discard}>Discard all drafts</Button></div></Dialog>\n    <Drawer side=\"right\" title={detailId?`${labels.recordName} ${detailId}`:`${labels.recordName} details`} description=\"Edit the complete record, then add it to your pending batch. Save after reviewing all changes.\" open={detailOpen} onOpenChange={open=>{if(!saving)setDetailOpen(open);}} finalFocus={returnFocus} className=\"bblocks-data-workspace-drawer\" closeDisabled={saving}>\n      {detailBase&&<form ref={detailForm} className=\"bblocks-data-workspace-detail\" onSubmit={applyDetail} noValidate><p className=\"bui-hint\">Saved revision {detailBase.revision}. Adding to the draft does not write to the service.</p><div className=\"bblocks-data-workspace-fields\">{inspectorContext&&renderInspector?renderInspector(inspectorContext):editableColumns.map(defaultField)}</div><Button type=\"submit\" disabled={editLocked} leadingIcon={Check}>Add to pending changes</Button><section className=\"bblocks-data-workspace-attachments\" aria-label={labels.attachmentsLabel}><h3>Supporting files</h3>{onUploadFile?<UploadQueue key={detailId} label={labels.uploadLabel} onUploadFile={upload} maxFiles={3} maxSize={2*1024*1024} disabled={editLocked} hint={labels.uploadHint}/>:<p className=\"bui-hint\">Supply onUploadFile to connect your file service. This example does not upload or host files.</p>}</section></form>}\n    </Drawer>\n  </section>;\n}\n"
    },
    {
      "path": "packages/blocks/src/use-resource-workspace.ts",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n/*!\n * SPDX-FileCopyrightText: 2026 Jaison\n * SPDX-License-Identifier: MIT\n */\n'use client';\nimport {useEffect,useMemo,useRef,useSyncExternalStore} from 'react';\nimport type {DataRecord} from '@bld8/ui/data-workspace-state';\nimport {createResourceWorkspaceController,type ResourceControllerOptions} from './resource-workspace-state.js';\n/** The adapter identity and schema bind drafts. Keep the adapter stable while editing. */\nexport function useResourceWorkspace<T extends DataRecord>(options:ResourceControllerOptions<T>){\n  const schema=JSON.stringify({columns:options.columns,fields:options.fields}),source=options.dataSource;\n  const controller=useMemo(()=>createResourceWorkspaceController(options),[source,schema]);\n  const previous=useRef(controller),state=useSyncExternalStore(controller.subscribe,controller.getSnapshot,controller.getSnapshot);\n  useEffect(()=>{const prior=previous.current;if(prior!==controller&&(prior.getSnapshot().saving||prior.getSnapshot().uncertain))controller.setNotice('The data source changed. A previous write may have committed; reconcile it with that service.');previous.current=controller;return controller.start();},[controller]);\n  useEffect(()=>{if(!state.hasDrafts)return;const warn=(event:BeforeUnloadEvent)=>{event.preventDefault();event.returnValue='';};window.addEventListener('beforeunload',warn);return()=>window.removeEventListener('beforeunload',warn);},[state.hasDrafts]);\n  return {...state,controller};\n}\n"
    },
    {
      "path": "packages/blocks/src/resource-workspace-view.ts",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n/*!\n * SPDX-FileCopyrightText: 2026 Jaison\n * SPDX-License-Identifier: MIT\n */\nimport {createTableViewState,normalizeTableViewState,type DataGridViewState} from '@bld8/ui';\nimport {isDataObject,parseDataQuery,type DataColumn,type DataQuery,type DataRecord} from '@bld8/ui/data-workspace-state';\nimport {createResourceQuery,type ResourceFilterField} from './resource-workspace-state.js';\nexport interface ResourceWorkspaceView {version:1;query:Omit<DataQuery,'page'>;grid:DataGridViewState}\nexport interface SavedResourceView {id:string;label:string;view:ResourceWorkspaceView}\nconst gridPart=(value:ReturnType<typeof createTableViewState>):DataGridViewState=>({columnOrderKeys:value.columnOrderKeys,visibleColumnKeys:value.visibleColumnKeys,columnWidths:value.columnWidths,columnPinning:value.columnPinning,density:value.density});\nexport function normalizeResourceGridView<T extends DataRecord>(input:unknown,columns:readonly DataColumn<T>[]):DataGridViewState{\n  const options={columns:columns.map(column=>({key:column.key,hideable:column.hideable,minWidth:column.minWidth??(column.type==='text'&&column.key!=='id'?220:128),pinned:column.pinned,sortable:column.sortable}))},base=createTableViewState(options);\n  const values=isDataObject(input)?input:{};\n  return gridPart(normalizeTableViewState({...base,columnOrderKeys:values.columnOrderKeys??base.columnOrderKeys,visibleColumnKeys:values.visibleColumnKeys??base.visibleColumnKeys,columnWidths:values.columnWidths??Object.fromEntries(columns.flatMap(column=>column.width===undefined?[]:[[column.key,column.width]])),columnPinning:values.columnPinning??base.columnPinning,density:values.density??base.density} as ReturnType<typeof createTableViewState>,options));\n}\n/** Only view fields are copied. Drafts, selection, caches and saved records never enter a URL. */\nexport function createResourceWorkspaceView<T extends DataRecord>(query:DataQuery,grid:DataGridViewState,columns:readonly DataColumn<T>[],fields:readonly ResourceFilterField<T>[]):ResourceWorkspaceView{\n  const parsed=parseDataQuery(query,columns,fields);if(!parsed)throw Error('Use a supported resource view.');const {page,...portable}=parsed;return {version:1,query:portable,grid:normalizeResourceGridView(grid,columns)};\n}\nexport function parseResourceWorkspaceView<T extends DataRecord>(text:string,columns:readonly DataColumn<T>[],fields:readonly ResourceFilterField<T>[]):ResourceWorkspaceView|null{\n  if(typeof text!=='string'||text.length>48000||new TextEncoder().encode(text).byteLength>48000)return null;\n  try{const input:unknown=JSON.parse(text);if(!isDataObject(input)||input.version!==1||!isDataObject(input.query)||!isDataObject(input.grid))return null;return createResourceWorkspaceView({...input.query,page:1} as DataQuery,input.grid as unknown as DataGridViewState,columns,fields);}catch{return null;}\n}\nexport function serializeResourceWorkspaceView<T extends DataRecord>(view:ResourceWorkspaceView,columns:readonly DataColumn<T>[],fields:readonly ResourceFilterField<T>[]):string{\n  const clean=createResourceWorkspaceView({...view.query,page:1},view.grid,columns,fields),text=JSON.stringify(clean);if(new TextEncoder().encode(text).byteLength>48000)throw Error('Share a view up to 48 KiB.');return text;\n}\nexport function resourceWorkspaceViewUrl<T extends DataRecord>(href:string,view:ResourceWorkspaceView,columns:readonly DataColumn<T>[],fields:readonly ResourceFilterField<T>[],parameter='resourceView'):string{\n  if(!/^[a-zA-Z][a-zA-Z0-9_-]{0,39}$/.test(parameter))throw Error('Use a supported view parameter.');const url=new URL(href,'http://localhost');url.searchParams.set(parameter,serializeResourceWorkspaceView(view,columns,fields));return url.pathname+url.search+url.hash;\n}\nexport function resourceViewQuery(view?:ResourceWorkspaceView):DataQuery{return view?{...view.query,page:1}:createResourceQuery();}\n"
    },
    {
      "path": "packages/blocks/src/data-workspace-filters.tsx",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n/*!\n * SPDX-FileCopyrightText: 2026 Jaison\n * SPDX-License-Identifier: MIT\n */\n'use client';\nimport {useCallback,useEffect,useLayoutEffect,useRef,useState,type ReactNode} from 'react';\nimport {ArrowLeft,CalendarDays,Check,Hash,ListFilter,Search,SlidersHorizontal,Type,X} from 'lucide-react';\nimport {Button,Field,Icon,Input,MultiSelect,Popover,Reveal,Select,filterOperators,isFilterGroup,countFilterRules,emptyFilterQuery,validateFilterQuery,FILTER_QUERY_LIMITS,type AnyFilterQuery,type FilterField,type FilterRule,type FilterOperator} from '@bld8/ui';\n\ninterface Props {fields:readonly FilterField[];value:AnyFilterQuery;onValueChange:(value:AnyFilterQuery)=>void;onAdvanced:()=>void;advancedOpen:boolean;advancedId:string;disabled:boolean;blocked:boolean}\nconst fieldIcon=(field:FilterField)=>field.kind==='number'?Hash:field.kind==='date'?CalendarDays:field.kind==='select'?ListFilter:Type;\nconst directRules=(query:AnyFilterQuery):FilterRule[]=>query.version===1?query.rules:query.root.children.filter((node):node is FilterRule=>!isFilterGroup(node));\nfunction replaceRule(query:AnyFilterQuery,rule:FilterRule,remove=false):AnyFilterQuery {\n  const update=(rules:FilterRule[])=>remove?rules.filter(item=>item.id!==rule.id):rules.some(item=>item.id===rule.id)?rules.map(item=>item.id===rule.id?rule:item):[...rules,rule];\n  if(query.version===1){const rules=update(query.rules);return rules.length?{...query,rules}:emptyFilterQuery();}\n  const children=query.root.children;\n  const next=remove?children.filter(item=>item.id!==rule.id):children.some(item=>item.id===rule.id)?children.map(item=>item.id===rule.id?rule:item):[...children,rule];\n  return next.length?{...query,root:{...query.root,children:next}}:emptyFilterQuery();\n}\nfunction summary(rule:FilterRule,field:FilterField){\n  const condition=filterOperators[field.kind].find(item=>item.value===rule.operator)?.label??rule.operator;\n  const values=rule.values.map(value=>field.options?.find(item=>item.value===value)?.label??value);\n  return {condition:condition.toLowerCase(),value:values.length>2?values.slice(0,2).join(', ')+' +'+(values.length-2):values.join(rule.operator==='between'?' – ':', ')};\n}\nfunction RuleEditor({rule,field,onApply,onCancel,disabled}:{rule:FilterRule;field:FilterField;onApply:(rule:FilterRule)=>void;onCancel:()=>void;disabled:boolean}) {\n  const [draft,setDraft]=useState<FilterRule>(()=>({...rule,values:[...rule.values]})),[error,setError]=useState('');\n  const condition=useRef<HTMLButtonElement>(null),valueInput=useRef<HTMLInputElement>(null);\n  useEffect(()=>{condition.current?.focus({preventScroll:true});},[]);\n  const noValue=draft.operator==='empty'||draft.operator==='notEmpty';\n  const changeValues=(value:string,index=0)=>{const values=draft.operator==='between'?[draft.values[0]??'',draft.values[1]??'']:[draft.values[0]??''];values[index]=value;setDraft({...draft,values});setError('');};\n  function apply(){const invalid=validateFilterQuery({version:1,match:'all',rules:[draft]},[field]);if(Object.keys(invalid).length){setError(Object.values(invalid)[0]);valueInput.current?.focus();return;}onApply(draft);}\n  return <form className=\"bblocks-filter-editor\" onSubmit={event=>{event.preventDefault();apply();}}>\n    <div className=\"bblocks-filter-editor-heading\"><Icon icon={fieldIcon(field)} size={16}/><strong>{field.label}</strong></div>\n    <Select inputRef={condition} density=\"compact\" label=\"Condition\" value={draft.operator} options={[...filterOperators[field.kind]]} disabled={disabled} onValueChange={operator=>{if(operator){setDraft({...draft,operator:operator as FilterOperator,values:[]});setError('');}}}/>\n    {!noValue&&(field.kind==='select'?<MultiSelect inputRef={valueInput} label=\"Values\" options={[...(field.options??[])]} value={draft.values} disabled={disabled} onValueChange={values=>{setDraft({...draft,values});setError('');}}/>:<div className=\"bblocks-filter-value-inputs\">{Array.from({length:draft.operator==='between'?2:1},(_,index)=><Field key={index} label={draft.operator==='between'?(index?'To':'From'):'Value'} error={index===0&&error?error:undefined}><Input ref={index===0?valueInput:undefined} density=\"compact\" type={field.kind==='date'?'date':'text'} inputMode={field.kind==='number'?'decimal':undefined} maxLength={200} value={draft.values[index]??''} disabled={disabled} onChange={event=>changeValues(event.target.value,index)}/></Field>)}</div>)}\n    {error&&field.kind==='select'&&<p className=\"bui-error\" role=\"alert\">{error}</p>}\n    <div className=\"bblocks-filter-editor-actions\"><Button size=\"sm\" variant=\"ghost\" onClick={onCancel} disabled={disabled}>Cancel</Button><Button size=\"sm\" type=\"submit\" leadingIcon={Check} disabled={disabled}>Apply filter</Button></div>\n  </form>;\n}\n\n/** Keep a menu's measured canvas while its local views change within one opening. */\nfunction FilterMenuCanvas({children}:{children:ReactNode}) {\n  const content=useRef<HTMLDivElement>(null),maximum=useRef(0),[height,setHeight]=useState(0);\n  const measure=(node:HTMLElement)=>Math.ceil(node.getBoundingClientRect().height*64)/64;\n  useLayoutEffect(()=>{\n    if(!content.current)return;\n    maximum.current=Math.max(maximum.current,measure(content.current));\n    if(height<maximum.current)setHeight(maximum.current);\n  });\n  useLayoutEffect(()=>{\n    const node=content.current;if(!node||typeof ResizeObserver==='undefined')return;\n    let frame:number|null=null,alive=true;\n    // Observe natural content, not the outer minimum, so reserving space cannot feed back.\n    const observer=new ResizeObserver(()=>{\n      const next=measure(node);if(next<=maximum.current)return;\n      maximum.current=next;\n      if(frame===null)frame=requestAnimationFrame(()=>{frame=null;if(alive)setHeight(current=>Math.max(current,maximum.current));});\n    });\n    observer.observe(node);\n    return()=>{alive=false;observer.disconnect();if(frame!==null)cancelAnimationFrame(frame);};\n  },[]);\n  return <div className=\"bblocks-filter-menu-canvas\" style={height?{minHeight:height}:undefined}><div ref={content} className=\"bblocks-filter-menu-content\">{children}</div></div>;\n}\n\n/** A quick view of root conditions. Grouped queries retain their original tree. */\nexport function DataWorkspaceFilters({fields,value,onValueChange,onAdvanced,advancedOpen,advancedId,disabled:hostDisabled,blocked}:Props) {\n  const [open,setOpen]=useState<string|null>(null),[search,setSearch]=useState(''),[newRule,setNewRule]=useState<FilterRule|null>(null),[menuSession,setMenuSession]=useState(0);\n  const add=useRef<HTMLButtonElement>(null),picker=useRef<HTMLDivElement>(null);\n  const focusSearch=useCallback((input:HTMLInputElement|null)=>{if(open==='add')input?.focus({preventScroll:true});},[open]);\n  const rules=directRules(value),count=countFilterRules(value),groups=value.version===2?value.root.children.filter(isFilterGroup).length:0;\n  const match=value.version===1?value.match:value.root.match;\n  const disabled=hostDisabled||blocked;\n  function changed(next:AnyFilterQuery){onValueChange(next);setOpen(null);setNewRule(null);setSearch('');}\n  const filtered=fields.filter(field=>field.label.toLocaleLowerCase().includes(search.toLocaleLowerCase()));\n  function focusField(delta:number){const buttons=Array.from(picker.current?.querySelectorAll<HTMLButtonElement>('[data-filter-field]')??[]);const index=buttons.indexOf(document.activeElement as HTMLButtonElement);buttons[Math.max(0,Math.min(buttons.length-1,index+delta))]?.focus();}\n  return <div className=\"bblocks-quick-filters\" aria-label=\"Workspace quick filters\">\n    <div className=\"bblocks-quick-filter-actions\"><Popover sticky title={newRule?'Configure filter':'Filter by'} open={open==='add'} onOpenChange={next=>{setOpen(next?'add':null);if(next){setMenuSession(session=>session+1);setNewRule(null);setSearch('');}}} trigger={<Button ref={add} size=\"sm\" variant=\"secondary\" leadingIcon={ListFilter} disabled={disabled||count>=FILTER_QUERY_LIMITS.rules}>Add filter</Button>}>\n      <FilterMenuCanvas key={menuSession}>\n      <div className=\"bblocks-filter-menu-header\">{newRule?<Button size=\"sm\" variant=\"ghost\" leadingIcon={ArrowLeft} onClick={()=>setNewRule(null)}>Fields</Button>:<p className=\"bui-label\">Filter by</p>}</div>\n      {newRule?<RuleEditor key={newRule.id} rule={newRule} field={fields.find(field=>field.id===newRule.field)!} disabled={disabled} onApply={rule=>changed(replaceRule(value,rule))} onCancel={()=>setOpen(null)}/>:<div className=\"bblocks-filter-field-picker\" ref={picker}>\n        <div className=\"bblocks-filter-search\"><Icon icon={Search} size={15}/><Input ref={focusSearch} aria-label=\"Find a filter field\" placeholder=\"Find a field…\" value={search} onChange={event=>setSearch(event.target.value)} onKeyDown={event=>{if(event.key==='ArrowDown'){event.preventDefault();focusField(1);}}}/></div>\n        <div className=\"bblocks-filter-fields\" onKeyDown={event=>{if(event.key==='ArrowDown'||event.key==='ArrowUp'){event.preventDefault();focusField(event.key==='ArrowDown'?1:-1);}if(event.key==='Home'){event.preventDefault();picker.current?.querySelector<HTMLButtonElement>('[data-filter-field]')?.focus();}if(event.key==='End'){event.preventDefault();picker.current?.querySelectorAll<HTMLButtonElement>('[data-filter-field]').item(filtered.length-1)?.focus();}}}>{filtered.map(field=><button type=\"button\" key={field.id} data-filter-field={field.id} onClick={()=>{const existing=rules.find(rule=>rule.field===field.id);setNewRule(existing??{id:crypto.randomUUID(),field:field.id,operator:filterOperators[field.kind][0].value,values:[]});}}><Icon icon={fieldIcon(field)} size={16}/><span>{field.label}</span>{rules.some(rule=>rule.field===field.id)&&<span className=\"bblocks-filter-applied\">Applied</span>}</button>)}</div>\n        {!filtered.length&&<p className=\"bui-hint\">No matching fields. Try another search.</p>}\n      </div>}\n      </FilterMenuCanvas>\n    </Popover><Button size=\"sm\" variant=\"ghost\" leadingIcon={SlidersHorizontal} aria-expanded={advancedOpen} aria-controls={advancedId} onClick={onAdvanced} disabled={hostDisabled}>Advanced</Button>{count>0&&<Button size=\"sm\" variant=\"ghost\" leadingIcon={X} onClick={()=>changed(emptyFilterQuery())} disabled={disabled}>Clear filters</Button>}</div>\n    {blocked&&<p className=\"bui-hint\">Apply or clear the advanced changes before editing quick filters.</p>}\n    <Reveal open={count>0}><div className=\"bblocks-filter-chips\">\n      {count>1&&<Select label=\"Match conditions\" labelVisibility=\"hidden\" density=\"compact\" value={match} options={[{value:'all',label:'Match all'},{value:'any',label:'Match any'}]} disabled={disabled} onValueChange={next=>{if(next==='all'||next==='any')changed(value.version===1?{...value,match:next}:{...value,root:{...value.root,match:next}});}}/>}\n      {value.version===2&&value.root.not&&<span className=\"bblocks-filter-logic\">Exclude matches</span>}\n      {rules.map(rule=>{const field=fields.find(field=>field.id===rule.field);if(!field)return null;const text=summary(rule,field);return <div className=\"bblocks-filter-chip\" key={rule.id}><Popover sticky title={'Edit '+field.label+' filter'} open={open===rule.id} onOpenChange={next=>setOpen(next?rule.id:null)} trigger={<button type=\"button\" className=\"bblocks-filter-chip-edit\" aria-label={'Edit '+field.label+' filter'} disabled={disabled}><Icon icon={fieldIcon(field)} size={14}/><strong>{field.label}</strong><span>{text.condition}</span>{text.value&&<span className=\"bblocks-filter-chip-value\" title={text.value}>{text.value}</span>}</button>}><RuleEditor key={rule.id} rule={rule} field={field} disabled={disabled} onApply={next=>changed(replaceRule(value,next))} onCancel={()=>setOpen(null)}/></Popover><button type=\"button\" className=\"bblocks-filter-chip-remove\" aria-label={'Remove '+field.label+' filter'} disabled={disabled} onClick={()=>{changed(replaceRule(value,rule,true));add.current?.focus();}}><Icon icon={X} size={12}/></button></div>;})}\n      {groups>0&&<Button size=\"sm\" variant=\"secondary\" onClick={onAdvanced} disabled={disabled}>{groups} {groups===1?'group':'groups'} · edit conditions</Button>}\n    </div></Reveal>\n  </div>;\n}\n"
    },
    {
      "path": "packages/blocks/src/index.ts",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n'use client';\nexport * from './data-workspace.js';\nexport * from './issue-data-source.js';\nexport * from './issue-repository.js';\nexport * from './resource-workspace-state.js';\nexport * from './resource-workspace.js';\nexport * from './use-resource-workspace.js';\nexport * from './resource-workspace-view.js';\nexport * from './data-workspace-filters.js';\n"
    },
    {
      "path": "packages/blocks/src/styles.css",
      "content": "/*!\nMIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n/*!\n * SPDX-FileCopyrightText: 2026 Jaison\n * SPDX-License-Identifier: MIT\n */\n.bblocks-root { container-type:inline-size; container-name:bld8-preview; }\n.bblocks-panel { background:var(--bui-bg); border-radius:var(--bui-panel-radius); padding:clamp(1.25rem,3vw,2rem); }\n.bblocks-stack { display:flex; flex-direction:column; gap:1.5rem; min-width:0; }\n.bblocks-heading { display:flex; justify-content:space-between; align-items:center; gap:1.25rem; margin-bottom:1.5rem; }\n.bblocks-heading:last-child { margin-bottom:0; }\n.bblocks-heading h2,.bblocks-auth h2 { margin:.5rem 0; font-size:clamp(1.5rem,2.6vw,2rem); letter-spacing:-.05em; line-height:1.2; }\n.bblocks-kicker { font:10px/1.5 Consolas,monospace; letter-spacing:.1em; color:var(--bui-muted); }\n.bblocks-muted { color:var(--bui-muted); font-size:.8125rem; }\n.bblocks-note { color:var(--bui-muted); font-size:.6875rem; line-height:1.7; }\n.bblocks-status { min-height:1.7em; color:var(--bui-muted); font-size:.75rem; margin:.75rem 0 0; }\n.bblocks-auth { max-width:420px; margin:auto; }\n.bblocks-auth form { margin-top:2rem; }\n.bblocks-auth .bui-button { width:100%; }\n.bblocks-symbol { display:grid; place-items:center; width:40px; height:40px; background:var(--bui-accent); color:var(--bui-accent-ink); border-radius:6px; margin-bottom:2rem; }\n.bblocks-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }\n.bblocks-rule { border-block:1px solid var(--bui-line); padding:1.5rem 0; }\n.bblocks-segment { display:flex; gap:4px; flex-wrap:wrap; }\n.bblocks-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1.5rem 0; }\n.bblocks-stat { padding:1.5rem; background:var(--bui-bg); border-radius:var(--bui-panel-radius); }\n.bblocks-stat>span:first-child { font-size:.75rem; color:var(--bui-muted); display:block; }\n.bblocks-stat>strong { display:block; font-size:clamp(1.8rem,3vw,2.5rem); font-weight:550; line-height:1.2; letter-spacing:-.06em; margin:1rem 0; }\n.bblocks-chart { margin:0; }\n.bblocks-chart figcaption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; font-size:.8125rem; }\n.bblocks-bars { display:flex; gap:clamp(.5rem,2vw,1.5rem); height:160px; margin-top:2rem; padding-bottom:24px; }\n.bblocks-bars>div { flex:1; display:flex; flex-direction:column; justify-content:flex-end; position:relative; }\n.bblocks-bars span { display:block; background:var(--bui-primary); border-radius:4px 4px 0 0; transition:height var(--bui-duration-slow) var(--bui-ease); }\n.bblocks-bars>div:nth-last-child(2) span { background:var(--bui-accent); }\n.bblocks-bars small { position:absolute; top:calc(100% + 6px); width:100%; text-align:center; font-size:.625rem; color:var(--bui-muted); }\n.bblocks-activity { list-style:none; margin:1.25rem 0; padding:0; }\n.bblocks-activity li { display:flex; gap:1rem; align-items:center; padding:1rem 0; border-top:1px solid var(--bui-line); }\n.bblocks-activity strong { font-size:.8125rem; font-weight:550; }\n.bblocks-activity p { margin:.2rem 0 0; font-size:.75rem; color:var(--bui-muted); }\n.bblocks-activity time { margin-left:auto; font-size:.625rem; color:var(--bui-muted); white-space:nowrap; }\n.bblocks-person { display:flex; align-items:center; gap:.75rem; }\n.bblocks-person strong { font-size:.8125rem; font-weight:500; }\n.bblocks-person small { display:block; font-size:.6875rem; color:var(--bui-muted); }\n.bblocks-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }\n.bblocks-lane { background:var(--bui-surface); border-radius:8px; padding:1rem; min-width:0; }\n.bblocks-lane h3 { font-size:.8125rem; letter-spacing:-.02em; }\n.bblocks-lane>.bblocks-heading { margin-bottom:1rem; }\n.bblocks-task { background:var(--bui-bg); border-radius:6px; padding:1rem; margin-bottom:.75rem; }\n.bblocks-task h4 { font-size:.875rem; font-weight:550; line-height:1.5; margin:.5rem 0 1rem; letter-spacing:-.02em; }\n.bblocks-task .bui-label { font-size:.625rem; }\n.bblocks-task .bui-select-trigger { font-size:.6875rem; }\n.bblocks-studio { display:grid; grid-template-columns:180px minmax(0,1fr); background:var(--bui-canvas); border-radius:10px; overflow:hidden; }\n.bblocks-studio-sidebar { background:var(--bui-bg); padding:1.5rem 1rem; }\n.bblocks-studio-sidebar>.bblocks-kicker { margin:3rem .5rem 1rem; }\n.bblocks-studio-sidebar nav { display:flex; flex-direction:column; gap:.4rem; }\n.bblocks-studio-sidebar nav button { justify-content:flex-start; }\n.bblocks-studio-sidebar>.bblocks-note { margin:3rem .5rem 1rem; }\n.bblocks-wordmark { display:inline-flex; align-items:center; gap:.65rem; font-weight:650; font-size:1.125rem; text-decoration:none; letter-spacing:-.04em; }\n.bblocks-wordmark>span { color:var(--bui-ink); background:var(--bui-accent); display:grid; place-items:center; width:28px; height:28px; border-radius:4px; }\n.bblocks-studio-main { padding:1.5rem; min-width:0; }\n.bblocks-studio-top { display:flex; justify-content:space-between; align-items:center; padding-bottom:1.25rem; margin-bottom:2rem; border-bottom:1px solid var(--bui-line); font-size:.8125rem; }\n.bblocks-launch { background:var(--bui-canvas); padding:clamp(1.25rem,4vw,3rem); border-radius:10px; }\n.bblocks-launch>header { display:flex; justify-content:space-between; gap:1rem; align-items:center; }\n.bblocks-launch>header>a:last-child { font-size:.75rem; display:inline-flex; align-items:center; gap:.5rem; text-decoration:none; }\n.bblocks-launch-hero { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:2rem; padding:4rem 0; }\n.bblocks-launch-hero h2 { font-size:clamp(2rem,4vw,3.5rem); line-height:1.08; letter-spacing:-.06em; margin:1.5rem 0; }\n.bblocks-launch-hero p:not(.bblocks-kicker) { font-size:.875rem; color:var(--bui-muted); max-width:340px; margin:1.5rem 0; }\n.bblocks-launch-hero .bblocks-note { display:block; margin-top:1rem; }\n.bblocks-launch-sketch { padding:1.25rem; background:var(--bui-accent); border-radius:8px; color:var(--bui-accent-ink); }\n.bblocks-launch-sketch>div { background:var(--bui-bg); color:var(--bui-ink); padding:1.5rem; border-radius:6px; }\n.bblocks-launch-sketch strong { display:block; font-size:1.75rem; font-weight:550; letter-spacing:-.05em; margin:1rem 0 1.5rem; }\n.bblocks-sketch-row { display:flex; justify-content:space-between; gap:.5rem; align-items:center; border-top:1px solid var(--bui-line); padding:.75rem 0; font-size:.6875rem; }\n.bblocks-launch-features { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; padding:2rem 0; border-top:1px solid var(--bui-line); }\n.bblocks-launch-features h3 { font-size:1rem; margin:1rem 0 .5rem; }\n.bblocks-launch-features p { color:var(--bui-muted); font-size:.75rem; }\n.bblocks-launch>footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; border-top:1px solid var(--bui-line); padding-top:1.5rem; font-size:.625rem; color:var(--bui-muted); }\n@media(max-width:680px) {\n  .bblocks-heading { flex-wrap:wrap; align-items:flex-start; }\n  .bblocks-form-grid,.bblocks-columns { grid-template-columns:1fr; }\n  .bblocks-stat { padding:1rem; }\n  .bblocks-stat>strong { font-size:1.6rem; }\n  .bblocks-studio { grid-template-columns:1fr; }\n  .bblocks-studio-sidebar { padding:1rem; }\n  .bblocks-studio-sidebar nav { flex-direction:row; flex-wrap:wrap; margin-top:1rem; }\n  .bblocks-studio-sidebar>.bblocks-kicker,.bblocks-studio-sidebar>.bblocks-note { display:none; }\n  .bblocks-studio-main { padding:1rem; }\n  .bblocks-launch-hero,.bblocks-launch-features { grid-template-columns:1fr; }\n  .bblocks-launch-hero { padding:2.5rem 0; }\n  .bblocks-activity time { display:none; }\n}\n@media(max-width:400px) { .bblocks-stats { gap:.5rem; }.bblocks-stat { padding:.75rem; }.bblocks-stat>strong { font-size:1.4rem; } }\n@container bld8-preview (max-width:680px) {\n  .bblocks-heading { flex-wrap:wrap; align-items:flex-start; }\n  .bblocks-form-grid,.bblocks-columns { grid-template-columns:1fr; }\n  .bblocks-stat { padding:1rem; }.bblocks-stat>strong { font-size:1.6rem; }\n  .bblocks-studio { grid-template-columns:1fr; }.bblocks-studio-sidebar { padding:1rem; }\n  .bblocks-studio-sidebar nav { flex-direction:row; flex-wrap:wrap; margin-top:1rem; }\n  .bblocks-studio-sidebar>.bblocks-kicker,.bblocks-studio-sidebar>.bblocks-note { display:none; }.bblocks-studio-main { padding:1rem; }\n  .bblocks-launch-hero,.bblocks-launch-features { grid-template-columns:1fr; }.bblocks-launch-hero { padding:2.5rem 0; }.bblocks-activity time { display:none; }\n}\n@media(prefers-reduced-motion:reduce) { .bblocks-bars span { transition:none; } }\n.bblocks-date { display:inline-flex; align-items:center; gap:8px; }\n.bblocks-tags { display:inline-flex; gap:4px; flex-wrap:wrap; }\n.bblocks-planner-summary { display:flex; flex-wrap:wrap; gap:24px; padding:16px 0; margin-bottom:16px; border-block:1px solid var(--bui-line); color:var(--bui-muted); font-size:.75rem; }\n.bblocks-planner-summary strong { color:var(--bui-ink); font-size:1rem; margin-right:6px; }\n.bblocks-resource-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; min-height:44px; margin-block:12px; }\n.bblocks-resource-undo { transition:opacity var(--bui-duration) var(--bui-ease-control),transform var(--bui-duration-slow) var(--bui-ease-control),visibility 0s var(--bui-duration); }\n.bblocks-resource-undo[data-visible=false] { opacity:0; transform:translateY(-4px); visibility:hidden; pointer-events:none; }\n.bblocks-resource-undo[data-visible=true] { opacity:1; transform:none; visibility:visible; transition-delay:0s; }\n@media(prefers-reduced-motion:reduce){.bblocks-resource-undo{transition:none;transform:none}}\n.bblocks-operations { background:var(--bui-canvas); padding:clamp(16px,4vw,36px); border-radius:10px; }\n.bblocks-operations-header { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding-bottom:24px; border-bottom:1px solid var(--bui-line); }\n.bblocks-operations-header>.bui-button { margin-left:auto; }\n.bblocks-operations-intro { padding:36px 0 24px; }\n.bblocks-operations-intro h2 { font-size:clamp(1.75rem,4vw,2.5rem); font-weight:500; line-height:1.2; letter-spacing:-.05em; margin:12px 0; outline:none; }\n.bblocks-operations-nav { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:20px; }\n.bblocks-operations>footer { margin-top:24px; }\n@container bld8-preview (max-width:550px) { .bblocks-panel>.bblocks-heading { flex-direction:column; align-items:flex-start; } .bblocks-operations-header>.bui-badge { display:none; } }\n.bblocks-operations-layout { margin-top:24px; align-items:stretch; }\n.bblocks-operations-toolbar { display:flex; align-items:center; gap:12px; font-size:.75rem; }\n.bblocks-operations-layout .bblocks-operations-intro { padding:20px 0 24px; }\n\n.bblocks-inline-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap}\n.bblocks-project-name {white-space:normal;text-align:start;justify-content:flex-start;max-width:100%}\n\n.bblocks-table-options>.bui-field {width:180px;max-width:100%;flex:0 0 auto}\n.bblocks-project-name {padding-inline:0}\n\n/* Consistent form tracks and restrained workspace transitions. */\n.bblocks-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:20px; }\n.bblocks-form-grid>.bui-field { min-width:0; }\n.bblocks-heading>div { min-width:0; }\n.bblocks-heading>.bui-button { flex-shrink:0; }\n.bblocks-operations-layout { gap:24px; }\n.bblocks-operations-layout .bblocks-operations-intro h2 { font-size:clamp(1.5rem,2.8vw,2rem); line-height:1.2; }\n.bblocks-operations .bblocks-heading h2 { font-size:clamp(1.25rem,2.2vw,1.625rem); }\n.bblocks-operations-view:not([hidden]) { animation:bblocks-view-enter var(--bui-duration) var(--bui-ease); }\n@keyframes bblocks-view-enter { from { opacity:0; translate:0 4px; } to { opacity:1; translate:0 0; } }\n@container bld8-preview (max-width:550px) { .bblocks-form-grid { grid-template-columns:minmax(0,1fr); } }\n@media(prefers-reduced-motion:reduce) { .bblocks-operations-view:not([hidden]) { animation:none; } }\n\n@media(max-width:600px) { .bblocks-form-grid { grid-template-columns:minmax(0,1fr); } }\n\n@media(max-width:600px) { .bblocks-stack>.bblocks-heading>.bblocks-inline-actions { width:100%; justify-content:flex-end; } }\n\n/* White panels stay quiet; a light shadow separates them from the canvas. */\n.bblocks-panel,.bblocks-stat,.bblocks-task { box-shadow:var(--bui-shadow-surface); }\n\n/* A quieter application frame leaves more room for the actual work. */\n.bblocks-operations { padding:24px; border-radius:var(--bui-panel-radius); }\n.bblocks-operations-header { padding-bottom:16px; }\n.bblocks-operations-layout { margin-top:20px; gap:20px; }\n.bblocks-operations .bui-sidebar:not([data-collapsed]) { width:184px; }\n.bblocks-operations-layout .bblocks-operations-intro { padding:16px 0 20px; }\n.bblocks-operations-layout .bblocks-operations-intro h2 { font-size:28px; margin:8px 0; letter-spacing:-.035em; }\n.bblocks-operations .bblocks-panel { padding:24px; }\n.bblocks-operations .bblocks-heading { margin-bottom:20px; gap:16px; }\n.bblocks-operations .bblocks-heading h2 { font-size:20px; margin:6px 0; letter-spacing:-.025em; }\n.bblocks-operations .bblocks-heading>.bblocks-inline-actions { flex-shrink:0; }\n.bblocks-project-name { font-weight:550; }\n.bblocks-row-menu { opacity:.55; box-shadow:none; transition:opacity var(--bui-duration-fast) var(--bui-ease),background-color var(--bui-duration) var(--bui-ease); }\n.bui-table tr:is(:hover,:focus-within) .bblocks-row-menu,.bblocks-row-menu[data-popup-open] { opacity:1; }\n.bblocks-date { min-width:0; }\n.bblocks-date strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; }\n.bblocks-resource-footer .bblocks-status:empty { min-height:0; margin:0; }\n.bblocks-resource-footer:has(.bblocks-status:empty):not(:has(button)) { display:none; }\n@media(pointer:coarse) { .bblocks-row-menu { opacity:1; } }\n@media(max-width:600px) {\n  .bblocks-operations { padding:16px; }\n  .bblocks-operations .bblocks-panel { padding:16px; }\n  .bblocks-operations-layout .bblocks-operations-intro h2 { font-size:24px; }\n}\n@media(prefers-reduced-motion:reduce) { .bblocks-row-menu { transition:none; } }\n\n.bblocks-feed { width:100%; max-width:920px; margin-inline:auto; }\n.bblocks-feed-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(160px,220px); align-items:end; gap:16px; margin-block-end:32px; }\n.bblocks-feed .bui-timeline-description strong { font-weight:500; color:var(--bui-ink); }\n.bblocks-feed-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; border-block-start:1px solid var(--bui-line); margin-block-start:28px; padding-block-start:20px; }\n.bblocks-feed-loading { display:grid; gap:24px; padding-block:4px 20px; }\n.bblocks-feed-loading>div { display:grid; gap:12px; }\n@container bld8-preview (max-width:540px) { .bblocks-feed-toolbar { grid-template-columns:minmax(0,1fr); } .bblocks-feed>.bblocks-heading { align-items:flex-start; flex-direction:column; } }\n\n.bblocks-issues { width:100%; min-width:0; }\n.bblocks-issue-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }\n.bblocks-issue-views { display:flex; gap:4px; overflow-x:auto; padding:4px; background:var(--bui-surface); border-radius:8px; margin-block:24px 16px; }\n.bblocks-issue-view { position:relative; isolation:isolate; border:0; padding:12px 16px; min-height:44px; background:transparent; color:var(--bui-muted); cursor:pointer; font:500 13px/1.5 var(--bui-font); white-space:nowrap; border-radius:4px; transition:color var(--bui-duration) var(--bui-ease),background-color var(--bui-duration) var(--bui-ease); }\n.bblocks-issue-view[aria-pressed='true'] { color:var(--bui-selected-ink); }\n.bblocks-issue-view>span:last-child { position:relative; }\n.bblocks-issue-view-indicator { position:absolute; inset:0; border-radius:4px; background:var(--bui-selected-bg); box-shadow:var(--bui-shadow-selected); z-index:-1; transition:background-color var(--bui-duration) var(--bui-ease); }\n.bblocks-issue-view:focus-visible { outline:2px solid var(--bui-focus); outline-offset:-2px; }\n.bblocks-issue-view-actions { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:16px; }\n.bblocks-issue-view-actions>div { display:flex; flex-wrap:wrap; gap:4px; }\n.bblocks-issue-filter-reveal { overflow:hidden; }\n.bblocks-issue-filter-inner { padding:24px 0; border-block:1px solid var(--bui-line); margin-bottom:24px; }\n.bblocks-issue-filter-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-top:24px; }\n.bblocks-issue-filter-actions>div { display:flex; flex-wrap:wrap; gap:8px; }\n.bblocks-issue-results .bui-table-scroll { opacity:1; transition:opacity var(--bui-duration) var(--bui-ease); }\n.bblocks-issues[data-loading='true'] .bui-table-scroll { opacity:.65; }\n.bblocks-issue-id { font:12px/1.5 Consolas,monospace; color:var(--bui-muted); white-space:nowrap; }\n.bblocks-issue-priority { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }\n.bblocks-issue-priority>span { width:6px; height:6px; border-radius:50%; background:var(--bui-muted); }\n.bblocks-issue-priority[data-priority='urgent']>span { background:var(--bui-danger); }\n.bblocks-issue-priority[data-priority='high']>span { background:var(--bui-warning); }\n.bblocks-issue-estimate { font-variant-numeric:tabular-nums; white-space:nowrap; }\n.bblocks-issue-feedback { min-height:44px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; }\n.bblocks-issue-feedback>p { font-size:12px; color:var(--bui-muted); }\n@container bld8-preview (max-width:640px) { .bblocks-issues>.bblocks-heading { flex-direction:column; align-items:stretch; } .bblocks-issue-actions>* { flex:1; } }\n@media(hover:hover) { .bblocks-issue-view:not([aria-pressed='true']):hover { background:var(--bui-raised); color:var(--bui-ink); } }\n@media(prefers-reduced-motion:reduce) { .bblocks-issue-view,.bblocks-issue-results .bui-table-scroll { transition:none; } }\n\n.bblocks-task-workspace { min-inline-size:0; }\n.bblocks-task-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-block:28px 24px; }\n.bblocks-task-views { display:flex; align-items:center; gap:4px; padding:4px; background:var(--bui-surface); border-radius:8px; }\n.bblocks-task-views>button { position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center; gap:8px; background:transparent; border:0; border-radius:4px; min-height:40px; padding:8px 16px; cursor:pointer; font:500 13px/1.6 var(--bui-font); color:var(--bui-muted); transition:color var(--bui-duration) var(--bui-ease); }\n.bblocks-task-views>button[aria-pressed='true'] { color:var(--bui-selected-ink); }\n.bblocks-task-views>button:disabled { cursor:default; }\n.bblocks-task-views>button:focus-visible { outline:2px solid var(--bui-focus); outline-offset:2px; }\n.bblocks-task-views>button>svg,.bblocks-task-views>button>span:last-child { position:relative; }\n.bblocks-task-view-indicator { position:absolute; inset:0; background:var(--bui-selected-bg); box-shadow:var(--bui-shadow-selected); border-radius:4px; z-index:-1; transition:background-color var(--bui-duration) var(--bui-ease); }\n.bblocks-task-category { display:block; color:var(--bui-muted); font-size:12px; line-height:1.7; letter-spacing:.04em; margin-bottom:8px; }\n.bblocks-task-card-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:24px; }\n.bblocks-task-owner { display:inline-flex; align-items:center; gap:7px; color:var(--bui-muted); font-size:12px; white-space:nowrap; }\n.bblocks-task-owner>span { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; background:var(--bui-surface); color:var(--bui-ink); border-radius:50%; font-size:9px; }\n.bblocks-task-workspace .bui-kanban[data-layout='backlog'] .bblocks-task-card-content { display:grid; grid-template-columns:minmax(0,1fr) 220px; align-items:center; column-gap:24px; }\n.bblocks-task-workspace .bui-kanban[data-layout='backlog'] .bblocks-task-category { grid-column:1; margin:0 0 3px; }\n.bblocks-task-workspace .bui-kanban[data-layout='backlog'] h4 { grid-column:1; }\n.bblocks-task-workspace .bui-kanban[data-layout='backlog'] .bblocks-task-card-meta { grid-column:2; grid-row:1 / span 2; margin:0; }\n.bblocks-task-feedback { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; min-height:44px; margin-top:8px; }\n.bblocks-task-feedback>p { font-size:12px; color:var(--bui-muted); }\n.bblocks-task-skeleton { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }\n.bblocks-task-empty { margin-bottom:24px; }\n@container bld8-preview (max-width:700px) { .bblocks-task-workspace>.bblocks-heading { align-items:stretch; flex-direction:column; } .bblocks-task-workspace .bui-kanban[data-layout='backlog'] .bblocks-task-card-content { display:block; } .bblocks-task-workspace .bui-kanban[data-layout='backlog'] .bblocks-task-card-meta { margin-top:16px; } .bblocks-task-skeleton { grid-template-columns:minmax(0,1fr); } }\n@media(prefers-reduced-motion:reduce) { .bblocks-task-views>button { transition:none; } }\n\n/* Recovery actions share a quiet surface and a separate, aligned action column. */\n.bblocks-task-notice { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:20px; padding:24px; margin-block:8px 24px; border-radius:8px; background:var(--bui-surface); }\n.bblocks-task-notice-icon { display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--bui-bg); color:var(--bui-danger); }\n.bblocks-task-notice-copy { min-width:0; }\n.bblocks-task-notice-copy h3 { margin:0 0 6px; font:550 14px/1.6 var(--bui-font); letter-spacing:-.015em; color:var(--bui-ink); }\n.bblocks-task-notice-copy p { margin:0; max-width:64ch; font:400 13px/1.8 var(--bui-font); color:var(--bui-muted); overflow-wrap:anywhere; }\n.bblocks-task-notice-action { min-width:0; justify-self:end; }\n.bblocks-task-notice-action>.bui-button { max-width:100%; }\n@container bld8-preview (max-width:640px) { .bblocks-task-notice { grid-template-columns:32px minmax(0,1fr); gap:12px; padding:20px; } .bblocks-task-notice-icon { width:32px; height:32px; align-self:start; } .bblocks-task-notice-action { grid-column:2; justify-self:start; margin-top:4px; } .bblocks-task-notice-action>.bui-button { white-space:normal; text-align:start; } }\n@media(forced-colors:active) { .bblocks-task-notice { outline:1px solid CanvasText; } }\n\n.bblocks-session-setup { min-inline-size:0; }\n.bblocks-session-progress { color:var(--bui-muted); font-size:12px; white-space:nowrap; }\n.bblocks-session-setup>.bui-stepper { margin-block:36px 40px; }\n.bblocks-session-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(230px,.75fr); align-items:start; gap:40px; }\n.bblocks-session-form { min-inline-size:0; }\n.bblocks-session-stage { min-block-size:320px; }\n.bblocks-session-stage h3 { margin:0 0 8px; font:500 22px/1.4 var(--bui-heading); letter-spacing:-.035em; }\n.bblocks-session-stage h3:focus { outline:none; }\n.bblocks-session-stage>p,.bblocks-session-stage-heading>p { color:var(--bui-muted); font-size:13px; line-height:1.8; }\n.bblocks-session-stage-heading { margin-bottom:24px; }\n.bblocks-session-fields { display:grid; gap:20px; }\n.bblocks-session-field-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); align-items:start; gap:20px; }\n.bblocks-session-aside { padding:28px; border-radius:8px; background:var(--bui-surface); min-inline-size:0; }\n.bblocks-session-aside h3 { margin:12px 0 24px; font:500 20px/1.5 var(--bui-heading); letter-spacing:-.03em; overflow-wrap:anywhere; }\n.bblocks-session-aside dl { margin:0; display:grid; gap:16px; }\n.bblocks-session-aside dl>div { display:flex; align-items:center; justify-content:space-between; gap:16px; }\n.bblocks-session-aside dt { color:var(--bui-muted); font-size:12px; }\n.bblocks-session-aside dd { margin:0; color:var(--bui-ink); font-size:16px; font-variant-numeric:tabular-nums; }\n.bblocks-session-aside>p { color:var(--bui-muted); font-size:13px; line-height:1.8; }\n.bblocks-session-aside .bblocks-session-draft-note { margin-top:28px; padding-top:20px; border-top:1px solid var(--bui-line); font-size:12px; }\n.bblocks-session-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:28px; margin-top:16px; border-top:1px solid var(--bui-line); }\n.bblocks-session-actions>div { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }\n.bblocks-session-review { display:grid; margin:20px 0 0; }\n.bblocks-session-review>div { display:grid; grid-template-columns:minmax(110px,.7fr) minmax(0,1fr); gap:16px; align-items:start; padding-block:12px; border-bottom:1px solid var(--bui-line); }\n.bblocks-session-review>div:last-child { border-bottom:0; }\n.bblocks-session-review dt { font-size:12px; color:var(--bui-muted); }\n.bblocks-session-review dd { margin:0; font-size:13px; color:var(--bui-ink); overflow-wrap:anywhere; }\n.bblocks-session-error { display:flex; gap:12px; align-items:start; margin-top:20px; padding:20px; border-radius:8px; background:var(--bui-surface); color:var(--bui-ink); }\n.bblocks-session-error>svg { flex-shrink:0; color:var(--bui-danger); margin-top:2px; }\n.bblocks-session-error strong { display:block; margin-bottom:6px; font-size:13px; font-weight:550; }\n.bblocks-session-error p { margin:0; color:var(--bui-muted); font-size:12px; line-height:1.8; }\n.bblocks-session-storage { display:flex; align-items:start; gap:10px; padding:16px; margin-bottom:24px; border-radius:6px; background:var(--bui-surface); color:var(--bui-muted); font-size:12px; line-height:1.8; }\n.bblocks-session-storage>svg { flex-shrink:0; margin-top:2px; }\n.bblocks-session-complete-mark { display:grid; place-items:center; width:48px; height:48px; margin-bottom:24px; border-radius:12px; color:var(--bui-accent-ink); background:var(--bui-accent); box-shadow:var(--bui-shadow-switch-active); }\n@container bld8-preview (max-width:800px) { .bblocks-session-layout { grid-template-columns:minmax(0,1fr); gap:28px; } .bblocks-session-aside { padding:24px; } }\n@container bld8-preview (max-width:540px) { .bblocks-session-setup>.bblocks-heading { flex-direction:column; align-items:start; } .bblocks-session-field-row { grid-template-columns:minmax(0,1fr); } .bblocks-session-stage { min-block-size:0; } .bblocks-session-review>div { grid-template-columns:minmax(0,1fr); gap:6px; } .bblocks-session-actions { align-items:stretch; } .bblocks-session-actions>.bui-button,.bblocks-session-actions>div { flex:1; } .bblocks-session-actions>div>.bui-button { flex:1; } }\n@media(forced-colors:active) { .bblocks-session-aside,.bblocks-session-error,.bblocks-session-complete-mark { outline:1px solid CanvasText; } }\n\n.bblocks-files { min-width:0; container-type:inline-size; container-name:bld8-files; }\n.bblocks-files-heading { align-items:flex-start; gap:1rem; }\n.bblocks-files-heading>.bui-badge { flex-shrink:0; margin-top:.5rem; }\n.bblocks-files-layout { display:grid; grid-template-columns:minmax(170px,210px) minmax(0,1fr); min-width:0; gap:clamp(1rem,2.2vw,1.75rem); align-items:start; }\n.bblocks-files-sidebar { min-width:0; align-self:stretch; background:var(--bui-surface); border-radius:var(--bui-panel-radius); padding:1rem .65rem; display:flex; flex-direction:column; }\n.bblocks-files-sidebar-heading { display:flex; align-items:center; gap:.6rem; padding:.25rem .5rem; font-size:.8125rem; font-weight:600; }\n.bblocks-files-keyboard { margin:.45rem .5rem 1.15rem; color:var(--bui-muted); font-size:.6875rem; line-height:1.7; }\n.bblocks-files-sidebar-empty { margin:.75rem .5rem; font-size:.75rem; color:var(--bui-muted); }\n.bblocks-files-sidebar-note { display:flex; align-items:center; gap:.5rem; padding:.5rem; margin-top:auto; padding-top:2rem; font-size:.625rem; line-height:1.7; color:var(--bui-muted); }\n.bblocks-files-local-dot { width:5px; height:5px; border-radius:50%; background:var(--bui-focus); flex:none; }\n.bblocks-files-main { min-width:0; }\n.bblocks-files-location { display:flex; justify-content:space-between; gap:.75rem; align-items:center; min-height:36px; margin-bottom:1.2rem; }\n.bblocks-files-location nav { min-width:0; }\n.bblocks-files-location ol { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem .5rem; padding:0; margin:0; list-style:none; }\n.bblocks-files-location li { display:flex; min-width:0; align-items:center; gap:.5rem; font-size:.6875rem; line-height:1.5; }\n.bblocks-files-location li>span { overflow-wrap:anywhere; }\n.bblocks-files-location li>svg { color:var(--bui-muted); flex:none; }\n.bblocks-files-location li>button { border:0; background:transparent; color:var(--bui-muted); padding:.4rem .1rem; cursor:pointer; font:inherit; min-height:32px; overflow-wrap:anywhere; text-align:left; border-radius:2px; transition:color var(--bui-duration) var(--bui-ease); }\n.bblocks-files-location li>button[aria-current] { color:var(--bui-ink); }\n.bblocks-files-location li>button:disabled { cursor:default; opacity:.5; }\n.bblocks-files-location li>button:focus-visible { outline:2px solid var(--bui-focus); outline-offset:3px; }\n.bblocks-files-location>.bui-button { flex:none; }\n.bblocks-files-title { display:flex; justify-content:space-between; gap:1rem; align-items:center; margin-bottom:1.5rem; }\n.bblocks-files-title>div { min-width:0; }\n.bblocks-files-title h3 { font:500 clamp(1.3rem,2vw,1.7rem)/1.3 var(--bui-heading); letter-spacing:-.045em; overflow-wrap:anywhere; margin:0; }\n.bblocks-files-title p { color:var(--bui-muted); font-size:.75rem; line-height:1.7; margin:.4rem 0 0; }\n.bblocks-files-count { flex:none; font-size:.6875rem; color:var(--bui-muted); font-variant-numeric:tabular-nums; }\n.bblocks-files-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,175px); gap:.9rem; align-items:end; margin-bottom:1.25rem; }\n.bblocks-files-toolbar>* { min-width:0; }\n.bblocks-files-content { min-width:0; min-height:260px; }\n.bblocks-files-content-body { min-width:0; }\n.bblocks-files-title h3:focus-visible { outline:none; text-decoration:underline; text-decoration-color:var(--bui-focus); text-decoration-thickness:2px; text-underline-offset:.2em; }\n.bblocks-files-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:.75rem; }\n.bblocks-files-table th { text-align:left; color:var(--bui-muted); font-size:.625rem; font-weight:500; padding:.65rem .65rem; border-bottom:1px solid var(--bui-line); }\n.bblocks-files-table th:first-child { width:auto; padding-left:0; }\n.bblocks-files-table th:nth-child(2) { width:78px; }\n.bblocks-files-table th:nth-child(3) { width:76px; }\n.bblocks-files-table th:nth-child(4) { width:98px; }\n.bblocks-files-table td { padding:.7rem .65rem; border-bottom:1px solid color-mix(in srgb,var(--bui-line) 60%,transparent); line-height:1.6; color:var(--bui-muted); transition:background-color var(--bui-duration) var(--bui-ease); }\n.bblocks-files-table td:first-child { padding-left:0; }\n.bblocks-files-table tr:last-child td { border-bottom-color:transparent; }\n.bblocks-files-table tr[data-selected] td { background:var(--bui-selected-bg); color:var(--bui-selected-ink); }\n.bblocks-files-table tr[data-selected] td:first-child { border-radius:var(--bui-radius) 0 0 var(--bui-radius); }\n.bblocks-files-table tr[data-selected] td:last-child { border-radius:0 var(--bui-radius) var(--bui-radius) 0; }\n.bblocks-files-table tr[data-disabled] { opacity:.5; }\n.bblocks-files-name { position:relative; display:flex; align-items:center; gap:.65rem; min-height:32px; padding:0 .3rem; width:100%; min-width:0; text-align:left; border:0; border-radius:var(--bui-radius); background:transparent; color:var(--bui-ink); font:500 .75rem/1.6 var(--bui-font); cursor:pointer; }\n.bblocks-files-name>span:nth-child(2) { min-width:0; overflow-wrap:anywhere; }\n.bblocks-files-name>svg:last-child { margin-left:auto; color:var(--bui-muted); flex:none; }\n.bblocks-files-name:disabled { cursor:default; }\n.bblocks-files-name:focus-visible { outline:2px solid var(--bui-focus); outline-offset:2px; }\n.bblocks-files-entry-icon { width:30px; height:30px; display:grid; place-items:center; background:var(--bui-surface); color:var(--bui-ink); border-radius:var(--bui-radius); flex:none; }\n.bblocks-files-table .bblocks-files-size { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }\n.bblocks-files-updated { white-space:nowrap; }\n.bblocks-files-notice { display:flex; flex-direction:column; align-items:flex-start; gap:1rem; padding:1.2rem 0; }\n.bblocks-files-notice>.bui-alert { width:100%; box-sizing:border-box; }\n.bblocks-files-loading { padding:.8rem 0; }\n.bblocks-files-loading>p { color:var(--bui-muted); font-size:.75rem; margin:0 0 .75rem; }\n.bblocks-files-loading>div { display:grid; grid-template-columns:30px minmax(0,1fr) 48px; align-items:center; gap:.65rem; height:57px; }\n.bblocks-files-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem; padding-top:1rem; font-size:.625rem; line-height:1.7; color:var(--bui-muted); }\n.bblocks-files-footer>span:last-child { font-variant-numeric:tabular-nums; }\n.bblocks-files-inspector { grid-column:2; min-width:0; background:var(--bui-surface); border-radius:var(--bui-panel-radius); padding:1.15rem 1.25rem; }\n.bblocks-files-inspector-heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; font-size:.6875rem; color:var(--bui-muted); }\n.bblocks-files-inspector-heading .bui-badge { font-size:.625rem; }\n.bblocks-files-detail { display:grid; grid-template-columns:48px minmax(0,1fr); align-items:start; gap:.35rem 1rem; margin-top:1.1rem; }\n.bblocks-files-detail-icon { grid-row:span 2; display:grid; place-items:center; width:48px; height:48px; background:var(--bui-bg); color:var(--bui-ink); border-radius:var(--bui-radius); box-shadow:var(--bui-shadow-control); }\n.bblocks-files-detail h3 { margin:0; font-size:.9375rem; font-weight:550; letter-spacing:-.025em; line-height:1.5; overflow-wrap:anywhere; }\n.bblocks-files-detail-copy { margin:0; font-size:.6875rem; line-height:1.7; color:var(--bui-muted); }\n.bblocks-files-detail dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:.75rem 0 0; grid-column:1/-1; }\n.bblocks-files-detail dl>div { min-width:0; display:flex; flex-direction:column; gap:.25rem; }\n.bblocks-files-detail dt { font-size:.625rem; color:var(--bui-muted); }\n.bblocks-files-detail dd { margin:0; font-size:.75rem; line-height:1.6; overflow-wrap:anywhere; }\n.bblocks-files-detail-location { grid-column:1/-1; }\n.bblocks-files-detail-note { grid-column:1/-1; margin:.6rem 0 0; font-size:.625rem; line-height:1.7; color:var(--bui-muted); }\n@media(hover:hover) { .bblocks-files-location li>button:not(:disabled):hover { color:var(--bui-ink); } .bblocks-files-table tr:not([data-selected]):not([data-disabled]):hover td { background:var(--bui-surface); } }\n@container bld8-files (min-width:1120px) { .bblocks-files-layout { grid-template-columns:minmax(170px,200px) minmax(0,1fr) minmax(190px,230px); } .bblocks-files-inspector { grid-column:auto; align-self:stretch; } .bblocks-files-detail { display:flex; flex-direction:column; gap:.6rem; } .bblocks-files-detail-icon { margin:.4rem 0 .65rem; width:56px; height:56px; } .bblocks-files-detail dl { width:100%; grid-template-columns:1fr; gap:1rem; margin-top:1rem; } .bblocks-files-detail-location { grid-column:auto; } }\n@container bld8-files (max-width:780px) { .bblocks-files-layout { grid-template-columns:minmax(150px,180px) minmax(0,1fr); gap:1rem; } .bblocks-files-updated { display:none; } .bblocks-files-table th:nth-child(2) { width:66px; } .bblocks-files-table th:nth-child(3) { width:67px; } .bblocks-files-title { align-items:flex-start; } }\n@container bld8-files (max-width:580px) { .bblocks-files-layout { grid-template-columns:minmax(0,1fr); } .bblocks-files-sidebar { max-height:290px; overflow:auto; } .bblocks-files-sidebar-note { margin-top:1rem; padding-top:.5rem; } .bblocks-files-inspector { grid-column:1; } .bblocks-files-toolbar { grid-template-columns:minmax(0,1fr); gap:.85rem; } .bblocks-files-title { margin-top:.5rem; } .bblocks-files-table th:nth-child(2),.bblocks-files-table .bblocks-files-type { display:none; } .bblocks-files-table th:nth-child(3) { width:70px; } .bblocks-files-heading { flex-direction:column; } .bblocks-files-heading>.bui-badge { margin:0; } .bblocks-files-content { min-height:230px; } .bblocks-files-table td { padding-block:.5rem; } }\n@container bld8-files (max-width:350px) { .bblocks-files-detail dl { grid-template-columns:repeat(2,minmax(0,1fr)); } .bblocks-files-title { flex-wrap:wrap; gap:.6rem; } .bblocks-files-count { width:100%; } .bblocks-files-inspector { padding:1rem; } .bblocks-files-name { gap:.5rem; } .bblocks-files-entry-icon { width:25px; } .bblocks-files-table td,.bblocks-files-table th { padding-inline:.3rem; } }\n@media(pointer:coarse) { .bblocks-files-name,.bblocks-files-location li>button { min-height:44px; } }\n@media(prefers-reduced-motion:reduce) { .bblocks-files-location li>button,.bblocks-files-table td { transition:none; } }\n@media(forced-colors:active) { .bblocks-files-table tr[data-selected] td { background:Highlight; color:HighlightText; } .bblocks-files-table tr[data-selected] button { color:HighlightText; } .bblocks-files-sidebar,.bblocks-files-inspector { border:1px solid CanvasText; } .bblocks-files-name:focus-visible,.bblocks-files-location li>button:focus-visible { outline-color:Highlight; } }\n\n/* View choices share the control selection surface, not primary-action styling. */\n.bblocks-segment .bui-button[aria-pressed='true'],.bblocks-studio-sidebar nav .bui-button[aria-pressed='true'] { background:var(--bui-selected-bg); color:var(--bui-selected-ink); border-color:transparent; box-shadow:var(--bui-shadow-selected); background-image:none; }\n@media(hover:hover) and (pointer:fine) {\n  .bblocks-segment .bui-button[aria-pressed='true']:hover:not(:disabled),.bblocks-studio-sidebar nav .bui-button[aria-pressed='true']:hover:not(:disabled),.bblocks-files-table tr[data-selected]:hover td { background:var(--bui-selected-hover); color:var(--bui-selected-ink); border-color:transparent; }\n  .bblocks-issue-view[aria-pressed='true']:hover>.bblocks-issue-view-indicator,.bblocks-task-views>button[aria-pressed='true']:hover>.bblocks-task-view-indicator { background:var(--bui-selected-hover); }\n}\n@media(prefers-reduced-motion:reduce) { .bblocks-issue-view-indicator,.bblocks-task-view-indicator { transition:none; } }\n@media(forced-colors:active) {\n  .bblocks-segment .bui-button[aria-pressed='true'],.bblocks-studio-sidebar nav .bui-button[aria-pressed='true'],.bblocks-segment .bui-button[aria-pressed='true']:hover:not(:disabled),.bblocks-studio-sidebar nav .bui-button[aria-pressed='true']:hover:not(:disabled),.bblocks-issue-view[aria-pressed='true'],.bblocks-task-views>button[aria-pressed='true'],.bblocks-files-table tr[data-selected] td,.bblocks-files-table tr[data-selected]:hover td { background:Highlight; color:HighlightText; box-shadow:none; }\n  .bblocks-issue-view-indicator,.bblocks-task-view-indicator,.bblocks-issue-view[aria-pressed='true']:hover>.bblocks-issue-view-indicator,.bblocks-task-views>button[aria-pressed='true']:hover>.bblocks-task-view-indicator { background:Highlight; box-shadow:none; }\n  .bblocks-segment .bui-button[aria-pressed='true']:focus-visible,.bblocks-studio-sidebar nav .bui-button[aria-pressed='true']:focus-visible,.bblocks-issue-view[aria-pressed='true']:focus-visible,.bblocks-task-views>button[aria-pressed='true']:focus-visible { outline:2px solid HighlightText; outline-offset:-3px; }\n}\n\n.bblocks-analytics { --bblocks-analytics-report-floor:560px; container-type:inline-size; container-name:bld8-analytics; min-width:0; color:var(--bui-ink); }\n.bblocks-analytics-header { display:flex; align-items:end; justify-content:space-between; gap:2rem; }\n.bblocks-analytics-header>div:first-child { min-width:0; }\n.bblocks-analytics-header h2 { margin:.55rem 0 .6rem; font:500 clamp(1.6rem,3vw,2.3rem)/1.15 var(--bui-heading); letter-spacing:-.055em; overflow-wrap:anywhere; }\n.bblocks-analytics-header h2:focus-visible { outline:none; text-decoration:underline; text-decoration-color:var(--bui-focus); text-decoration-thickness:2px; text-underline-offset:.2em; }\n.bblocks-analytics-header p { margin:0; line-height:1.7; }\n.bblocks-analytics-controls { display:flex; align-items:end; justify-content:flex-end; gap:.75rem; flex:none; }\n.bblocks-analytics-controls>.bui-field { width:170px; }\n.bblocks-analytics-controls>.bui-button { flex:none; }\n.bblocks-analytics-controls>.bui-button[aria-disabled=\"true\"] { opacity:.65; cursor:wait; }\n.bblocks-analytics-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }\n.bblocks-analytics-metric { min-width:0; padding:1.4rem 1.5rem; }\n.bblocks-analytics-metric-label { display:flex; align-items:center; justify-content:space-between; gap:.75rem; color:var(--bui-muted); font-size:.75rem; }\n.bblocks-analytics-metric-label>.bui-icon { flex:none; opacity:.8; }\n.bblocks-analytics-metric strong { display:block; min-height:max(1.15em,2.6rem); margin:1.05rem 0 .55rem; font:550 clamp(1.9rem,4vw,2.6rem)/1.15 var(--bui-heading); letter-spacing:-.06em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }\n.bblocks-analytics-metric strong>.bui-skeleton { display:block; margin:.2rem 0; }\n.bblocks-analytics-metric p { min-height:3.4em; margin:0; color:var(--bui-muted); font-size:.6875rem; line-height:1.7; overflow-wrap:anywhere; }\n.bblocks-analytics-report { min-width:0; }\n.bblocks-analytics-report-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.75rem; }\n.bblocks-analytics-report-toolbar p { margin:0; }\n.bblocks-analytics-period { margin-top:.3rem!important; color:var(--bui-muted); font-size:.75rem; line-height:1.6; }\n.bblocks-analytics-display { display:flex; gap:3px; padding:4px; background:var(--bui-surface); border-radius:var(--bui-radius); flex:none; }\n.bblocks-analytics-display>button { appearance:none; position:relative; isolation:isolate; display:flex; align-items:center; justify-content:center; min-height:36px; padding:.45rem .8rem; border:0; border-radius:var(--bui-radius); background:transparent; color:var(--bui-muted); font:500 .75rem/1.5 var(--bui-font); cursor:pointer; transition:color var(--bui-duration) var(--bui-ease); }\n.bblocks-analytics-display>button[aria-pressed=\"true\"] { color:var(--bui-selected-ink); }\n.bblocks-analytics-display-label { display:flex; align-items:center; gap:.45rem; }\n.bblocks-analytics-display-indicator { position:absolute; z-index:-1; inset:0; border-radius:inherit; background:var(--bui-selected-bg); box-shadow:var(--bui-shadow-selected); pointer-events:none; }\n.bblocks-analytics-display>button:focus-visible { outline:2px solid var(--bui-focus); outline-offset:2px; }\n.bblocks-analytics-report-body { min-width:0; min-height:var(--bblocks-analytics-report-floor); }\n.bblocks-analytics-report-body[aria-busy=\"true\"] { min-height:max(var(--bblocks-analytics-report-floor),var(--bblocks-analytics-ready-height,0px)); }\n.bblocks-analytics-stage { min-width:0; }\n.bblocks-analytics-loading>p { margin:0 0 1.5rem; color:var(--bui-muted); font-size:.75rem; }\n.bblocks-analytics-loading-summary { display:flex; justify-content:space-between; gap:1.5rem; align-items:center; margin-bottom:2rem; }\n.bblocks-analytics-loading-plot { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); align-items:end; gap:clamp(.6rem,2vw,1.5rem); height:260px; padding:.5rem 1rem 0; border-bottom:1px solid var(--bui-line); }\n.bblocks-analytics-loading-plot>.bui-skeleton { display:block; border-radius:var(--bui-radius) var(--bui-radius) 0 0; }\n.bblocks-analytics-loading-readout { display:flex; justify-content:space-between; gap:1rem; margin-top:1.8rem; }\n.bblocks-analytics-notice { display:flex; flex-direction:column; align-items:flex-start; gap:1rem; padding:2rem 0; }\n.bblocks-analytics-notice>.bui-alert { width:100%; box-sizing:border-box; }\n.bblocks-analytics-footer { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem .9rem; padding-top:1.5rem; margin-top:1rem; border-top:1px solid var(--bui-line); }\n.bblocks-analytics-footer>p { margin:0; color:var(--bui-muted); font-size:.625rem; line-height:1.7; }\n.bblocks-analytics-footer>.bblocks-analytics-export-status { margin-left:auto; min-height:1.7em; }\n@media(hover:hover) { .bblocks-analytics-display>button:hover { color:var(--bui-ink); } }\n@container bld8-analytics (max-width:820px) { .bblocks-analytics-header { align-items:start; gap:1.5rem; flex-direction:column; } .bblocks-analytics-controls { width:100%; justify-content:flex-start; } .bblocks-analytics-controls>.bui-field { width:auto; min-width:170px; } .bblocks-analytics-metric { padding:1.25rem; } }\n@container bld8-analytics (max-width:560px) { .bblocks-analytics-metrics { grid-template-columns:minmax(0,1fr); gap:.75rem; } .bblocks-analytics-metric { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.6rem 1rem; } .bblocks-analytics-metric-label { justify-content:flex-start; } .bblocks-analytics-metric-label>.bui-icon { order:-1; } .bblocks-analytics-metric strong { grid-column:2; grid-row:1/span 2; min-height:max(1.15em,2.6rem); min-width:70px; text-align:right; font-size:1.85rem; margin:0; } .bblocks-analytics-metric p { grid-column:1; min-height:3.4em; } .bblocks-analytics-report-toolbar { align-items:flex-start; flex-direction:column; margin-bottom:1.5rem; } .bblocks-analytics-display { align-self:stretch; } .bblocks-analytics-display>button { flex:1; min-height:40px; padding-inline:.5rem; } .bblocks-analytics-report-body { --bblocks-analytics-report-floor:640px; } .bblocks-analytics-footer { align-items:flex-start; } .bblocks-analytics-footer>.bblocks-analytics-export-status { margin-left:0; width:100%; } }\n@container bld8-analytics (max-width:350px) { .bblocks-analytics-controls { align-items:stretch; flex-direction:column; width:100%; } .bblocks-analytics-controls>.bui-field { min-width:0; width:100%; } .bblocks-analytics-controls>.bui-button { width:100%; } .bblocks-analytics-metric { gap:.45rem .75rem; padding:1.1rem; } .bblocks-analytics-metric strong { max-width:130px; font-size:1.65rem; } .bblocks-analytics-metric-label { gap:.45rem; font-size:.6875rem; } }\n@container bld8-analytics (max-width:280px) { .bblocks-analytics-report-body { --bblocks-analytics-report-floor:704px; } .bblocks-analytics-metric p { min-height:5.1em; } }\n@media(pointer:coarse) { .bblocks-analytics-display>button { min-height:44px; } }\n@media(prefers-reduced-motion:reduce) { .bblocks-analytics-display>button { transition:none; } }\n.bblocks-analytics[data-reduced-motion=\"true\"] .bblocks-analytics-display>button { transition:none; }\n@media(forced-colors:active) { .bblocks-analytics-display { border:1px solid ButtonText; } .bblocks-analytics-display-indicator { background:Highlight; box-shadow:none; } .bblocks-analytics-display>button[aria-pressed=\"true\"] { color:HighlightText; } .bblocks-analytics-display>button:focus-visible { outline-color:CanvasText; } .bblocks-analytics-header h2:focus-visible { text-decoration-color:CanvasText; } }\n\n/* Colour identifies data and supporting feedback, with neutral surfaces. */\n.bblocks-bars>div>span { background:var(--bui-chart-1); }\n.bblocks-bars>div:nth-last-child(2)>span { background:var(--bui-chart-1); }\n.bblocks-analytics-metric-label>.bui-icon { color:var(--bui-muted); opacity:1; }\n.bblocks-files-entry-icon,.bblocks-files-detail-icon { color:var(--bui-muted); background:var(--bui-surface); }\n.bblocks-files-sidebar-heading>.bui-icon { color:var(--bui-muted); }\n@media(forced-colors:active) { .bblocks-analytics-metric-label>.bui-icon,.bblocks-files-entry-icon,.bblocks-files-detail-icon { color:CanvasText; background:Canvas; } .bblocks-bars>div>span { background:CanvasText; } }\n\n.bblocks-large-issues { min-width:0; container: bld8-issues / inline-size; padding:clamp(1.25rem,3cqi,2rem); }\n.bblocks-large-issues h2 { font-size:clamp(1.5rem,4.5cqi,2rem); }\n.bblocks-large-issues .bblocks-heading { align-items:flex-start; }\n.bblocks-large-issues h2:focus-visible { outline:none; text-decoration:underline; text-decoration-color:var(--bui-focus); text-decoration-thickness:2px; text-underline-offset:.2em; }\n.bblocks-large-issue-toolbar { display:grid; grid-template-columns:minmax(220px,1fr) repeat(3,minmax(140px,.6fr)) auto; align-items:end; gap:var(--bui-space-3); margin-top:var(--bui-space-8); }\n.bblocks-large-issue-toolbar>.bui-field { min-width:0; }\n.bblocks-large-issue-toolbar>.bui-button { min-width:132px; }\n.bblocks-large-issue-view-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--bui-space-4); margin:var(--bui-space-6) 0; }\n.bblocks-large-issue-views { display:flex; gap:3px; padding:4px; background:var(--bui-surface); border-radius:var(--bui-radius); }\n.bblocks-large-issue-views>button { position:relative; isolation:isolate; display:flex; align-items:center; justify-content:center; min-height:40px; padding:8px 14px; border:0; border-radius:var(--bui-radius); background:transparent; color:var(--bui-muted); font:500 var(--bui-text-label)/1.5 var(--bui-font); cursor:pointer; transition:color var(--bui-duration) var(--bui-ease); }\n.bblocks-large-issue-views>button>span:last-child { display:flex; align-items:center; gap:var(--bui-space-2); }\n.bblocks-large-issue-views>button[aria-pressed=true] { color:var(--bui-selected-ink); }\n.bblocks-large-issue-views>button:focus-visible { outline:2px solid var(--bui-focus); outline-offset:2px; }\n.bblocks-large-issue-view-indicator { position:absolute; z-index:-1; inset:0; border-radius:inherit; background:var(--bui-selected-bg); box-shadow:var(--bui-shadow-selected); pointer-events:none; }\n.bblocks-large-issue-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:var(--bui-space-3); min-height:44px; }\n.bblocks-large-issue-stage { min-width:0; min-height:600px; }\n.bblocks-large-issue-selection-slot { position:relative; display:flex; flex-direction:column; justify-content:center; align-items:stretch; min-height:72px; margin-bottom:var(--bui-space-3); }\n.bblocks-large-issue-selection-slot>.bui-reveal { flex:none; min-height:0; width:100%; }\n.bblocks-large-issue-selection-slot .bui-table-selection { width:100%; margin:0; box-sizing:border-box; }\n.bblocks-large-issue-selection-slot>p { position:absolute; inset-inline:0; top:50%; transform:translateY(-50%); margin:0; pointer-events:none; transition:opacity var(--bui-duration) var(--bui-ease-control); }\n.bblocks-large-issue-selection-slot>p[data-hidden=true] { opacity:0; }\n@media(prefers-reduced-motion:reduce) { .bblocks-large-issue-selection-slot>p { transition:none; } }\n.bblocks-large-issue-stage>.bui-data-table>.bui-reveal--table-selection { display:none; }\n.bblocks-large-issue-loading { display:grid; align-content:start; gap:var(--bui-space-3); padding-top:var(--bui-space-4); }\n.bblocks-large-issue-loading>p { margin-bottom:var(--bui-space-3); }\n.bblocks-large-issue-notice { display:grid; justify-items:start; align-content:start; gap:var(--bui-space-5); padding-block:var(--bui-space-6); }\n.bblocks-large-issue-notice>.bui-alert { width:100%; box-sizing:border-box; }\n.bblocks-large-issue-selection-actions { display:flex; align-items:center; flex-wrap:wrap; gap:var(--bui-space-2); }\n.bblocks-large-issue-id { font:500 var(--bui-text-meta)/1.5 ui-monospace,Consolas,monospace; color:var(--bui-muted); }\n.bblocks-large-issue-inspect { max-width:100%; justify-content:flex-start; padding-inline:0; text-align:start; }\n.bblocks-large-issue-inspect:hover:not(:disabled) { background:transparent; }\n.bblocks-large-issue-footer { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:var(--bui-space-3); margin-top:var(--bui-space-5); padding-top:var(--bui-space-5); border-top:1px solid var(--bui-line); }\n.bblocks-large-issue-footer>p { margin:0; color:var(--bui-muted); font-size:var(--bui-text-meta); line-height:1.7; }\n.bblocks-large-issue-notice-text { min-height:1.7em; margin-left:auto!important; }\n.bblocks-large-issue-form { display:grid; gap:var(--bui-space-5); }\n.bblocks-large-issue-form>p { margin:0; }\n.bblocks-large-issue-form .bui-field { min-width:0; }\n.bblocks-large-issue-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--bui-space-4); margin:0; padding:var(--bui-space-5); background:var(--bui-surface); border-radius:var(--bui-radius); }\n.bblocks-large-issue-meta div { min-width:0; }\n.bblocks-large-issue-meta dt { color:var(--bui-muted); font-size:var(--bui-text-meta); line-height:1.6; }\n.bblocks-large-issue-meta dd { margin:4px 0 0; font-size:var(--bui-text-label); line-height:1.6; overflow-wrap:anywhere; }\n.bblocks-large-issue-form-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:var(--bui-space-3); }\n@container bld8-issues (max-width:1100px) { .bblocks-large-issue-toolbar { grid-template-columns:repeat(3,minmax(0,1fr)); } .bblocks-large-issue-toolbar>.bui-field:first-child { grid-column:span 2; } .bblocks-large-issue-toolbar>.bui-button { grid-column:3; grid-row:1; } }\n@container bld8-issues (max-width:760px) { .bblocks-large-issue-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); } .bblocks-large-issue-toolbar>.bui-field:first-child { grid-column:1/-1; } .bblocks-large-issue-toolbar>.bui-button { grid-column:auto; grid-row:auto; } .bblocks-large-issue-summary { justify-content:flex-start; } .bblocks-large-issue-notice-text { margin-left:0!important; width:100%; } }\n@container bld8-issues (max-width:550px) { .bblocks-large-issues .bblocks-heading { flex-direction:column; align-items:flex-start; } }\n@container bld8-issues (max-width:420px) { .bblocks-large-issue-toolbar { grid-template-columns:minmax(0,1fr); } .bblocks-large-issue-toolbar>.bui-field:first-child { grid-column:auto; } .bblocks-large-issue-view-row { align-items:flex-start; flex-direction:column; } .bblocks-large-issue-summary { width:100%; justify-content:space-between; } .bblocks-large-issue-selection-slot { min-height:124px; } .bblocks-large-issue-selection-slot .bui-table-selection { align-items:flex-start; flex-direction:column; } }\n@media(max-width:420px) { .bblocks-large-issue-meta { gap:var(--bui-space-4) var(--bui-space-3); padding:var(--bui-space-4); } .bblocks-large-issue-form-actions>.bui-button { flex:1; } }\n@media(hover:hover) and (pointer:fine) { .bblocks-large-issue-views>button:hover { color:var(--bui-ink); } }\n@media(pointer:coarse) { .bblocks-large-issue-views>button { min-height:44px; } }\n@media(prefers-reduced-motion:reduce) { .bblocks-large-issue-views>button { transition:none; } }\n.bblocks-large-issues[data-reduced-motion=true] .bblocks-large-issue-views>button { transition:none; }\n@media(forced-colors:active) { .bblocks-large-issue-view-indicator { background:Highlight; box-shadow:none; } .bblocks-large-issue-views>button[aria-pressed=true] { color:HighlightText; } .bblocks-large-issue-views>button:focus-visible { outline-color:CanvasText; } }\n\n.bblocks-schedule-planner { min-width:0; container:bld8-schedule / inline-size; padding:clamp(1.25rem,3cqi,2rem); }\n.bblocks-schedule-planner .bblocks-heading { align-items:flex-start; }\n.bblocks-schedule-planner h2 { font-size:clamp(1.5rem,4.5cqi,2rem); }\n.bblocks-schedule-planner h2:focus-visible { outline:none; text-decoration:underline; text-decoration-color:var(--bui-focus); text-decoration-thickness:2px; text-underline-offset:.2em; }\n.bblocks-schedule-controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); align-items:start; gap:var(--bui-space-4); margin-top:var(--bui-space-8); }\n.bblocks-schedule-controls>.bui-field { min-width:0; }\n.bblocks-schedule-controls .bui-date-field { min-width:0; }\n.bblocks-schedule-navigation { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--bui-space-3); padding-block:var(--bui-space-4); margin-block:var(--bui-space-4); border-block:1px solid var(--bui-line); }\n.bblocks-schedule-navigation>.bui-button { flex:none; }\n.bblocks-schedule-navigation>p { margin:0; overflow-wrap:anywhere; }\n.bblocks-schedule-stage { min-height:360px; margin-top:var(--bui-space-5); }\n.bblocks-schedule-loading,.bblocks-schedule-recovery { display:grid; align-content:start; gap:var(--bui-space-3); }\n.bblocks-schedule-recovery { justify-items:start; }\n.bblocks-schedule-recovery>.bui-alert { width:100%; box-sizing:border-box; }\n.bblocks-schedule-footer { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:var(--bui-space-3); margin-top:var(--bui-space-6); padding-top:var(--bui-space-5); border-top:1px solid var(--bui-line); color:var(--bui-muted); font-size:var(--bui-text-meta); line-height:1.7; }\n.bblocks-schedule-footer>span { display:flex; align-items:center; gap:var(--bui-space-2); }\n.bblocks-schedule-footer>span>svg { flex:none; }\n.bblocks-schedule-footer>p { min-height:1.7em; margin:0; }\n.bblocks-schedule-booking { display:grid; gap:var(--bui-space-5); min-width:0; }\n.bblocks-schedule-booking>.bui-field { min-width:0; }\n.bblocks-schedule-review { display:grid; gap:var(--bui-space-3); margin:0; padding:var(--bui-space-4); background:var(--bui-surface); border-radius:var(--bui-radius); }\n.bblocks-schedule-review>div { display:flex; justify-content:space-between; align-items:flex-start; gap:var(--bui-space-4); }\n.bblocks-schedule-review dt { flex:none; font-size:var(--bui-text-meta); color:var(--bui-muted); }\n.bblocks-schedule-review dd { margin:0; min-width:0; text-align:end; font-size:var(--bui-text-label); overflow-wrap:anywhere; }\n.bblocks-schedule-booking-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:var(--bui-space-3); }\n.bblocks-schedule-event-title { margin:0; font-size:var(--bui-text-label); font-weight:550; overflow-wrap:anywhere; }\n@container bld8-schedule (max-width:680px) { .bblocks-schedule-controls { grid-template-columns:repeat(2,minmax(0,1fr)); } .bblocks-schedule-controls>.bui-field:last-child { grid-column:1/-1; } .bblocks-schedule-navigation>p { order:3; width:100%; } }\n@container bld8-schedule (max-width:460px) { .bblocks-schedule-planner .bblocks-heading { flex-direction:column; align-items:flex-start; } .bblocks-schedule-controls { grid-template-columns:minmax(0,1fr); } .bblocks-schedule-controls>.bui-field:last-child { grid-column:auto; } .bblocks-schedule-navigation { gap:var(--bui-space-2); } }\n@media(max-width:420px) { .bblocks-schedule-review>div { flex-direction:column; gap:var(--bui-space-1); } .bblocks-schedule-review dd { text-align:start; } .bblocks-schedule-booking-actions>.bui-button { flex:1; } }\n.bui-drawer.bblocks-project-drawer { width:min(560px,100vw); }\n.bblocks-project-drawer .bui-dialog-heading { flex-shrink:0; padding-bottom:var(--bui-space-4); }\n.bblocks-project-drawer .bui-dialog-description { max-width:36ch; }\n.bblocks-project-drawer .bui-drawer-content { scrollbar-gutter:stable; }\n.bblocks-project-drawer>.bui-drawer-footer { overflow-y:hidden; scrollbar-gutter:stable; scrollbar-width:thin; }\n.bblocks-project-summary { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:var(--bui-space-4) 0 var(--bui-space-6); border-bottom:1px solid var(--bui-line); margin-bottom:var(--bui-space-6); }\n.bblocks-project-summary h3 { font:550 clamp(1.25rem,2vw,1.65rem)/1.35 var(--bui-heading); letter-spacing:-.035em; margin-top:10px; overflow-wrap:anywhere; outline:none; }\n.bblocks-project-summary h3:focus-visible { outline:2px solid var(--bui-focus); outline-offset:4px; border-radius:2px; }\n.bblocks-project-summary .bui-badge { flex-shrink:0; margin-top:2px; }\n.bblocks-project-form { display:grid; gap:24px; }\n.bblocks-project-form textarea { min-height:144px; resize:vertical; }\n.bblocks-project-form>.bui-button { justify-self:start; margin-block:-8px; }\n.bblocks-project-form .bblocks-form-grid { align-items:start; gap:16px; }\n.bblocks-project-footer { display:grid; gap:16px; }\n.bblocks-project-save-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }\n.bblocks-project-save-row>p { display:flex; align-items:center; gap:8px; min-width:0; font-size:var(--bui-text-meta); color:var(--bui-muted); line-height:1.5; }\n.bblocks-project-save-row>p svg { flex-shrink:0; }\n.bblocks-project-leave { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }\n.bblocks-project-comparison { display:grid; gap:12px; margin-block:16px; }\n.bblocks-project-comparison>div { display:grid; gap:4px; }\n.bblocks-project-comparison dt { font-size:var(--bui-text-meta); color:var(--bui-muted); }\n.bblocks-project-comparison dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }\n.bblocks-project-feedback { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; min-height:44px; margin-top:16px; }\n.bblocks-project-activity { display:grid; gap:16px; min-width:0; margin-top:32px; padding-top:28px; border-top:1px solid var(--bui-line); }\n.bblocks-project-activity>header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }\n.bblocks-project-activity h3 { margin-top:8px; font:550 1.15rem/1.4 var(--bui-heading); letter-spacing:-.025em; }\n.bblocks-project-activity-feed { min-height:100px; }\n.bblocks-project-activity-feed ol { list-style:none; padding:0; margin:0; display:grid; gap:24px; }\n.bblocks-project-activity-feed li { position:relative; display:grid; grid-template-columns:28px minmax(0,1fr); gap:12px; animation:bblocks-activity-enter var(--bui-duration) var(--bui-ease-control); }\n.bblocks-project-activity-feed li:not(:last-child)::before { content:''; position:absolute; left:13px; top:36px; bottom:-16px; width:1px; background:var(--bui-line); }\n.bblocks-project-activity-mark { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--bui-surface); color:var(--bui-muted); }\n.bblocks-project-activity-feed li[data-kind=comment] .bblocks-project-activity-mark { background:var(--bui-selected-bg); color:var(--bui-selected-ink); }\n.bblocks-project-activity-kind { color:var(--bui-muted); font-size:var(--bui-text-meta); }\n.bblocks-project-activity-feed li p { margin-block:4px 8px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:var(--bui-text-label); line-height:1.7; }\n.bblocks-project-activity-feed time { font-size:var(--bui-text-meta); color:var(--bui-muted); }\n.bblocks-project-activity-empty { display:flex; align-items:center; gap:12px; padding-block:20px; color:var(--bui-muted); font-size:var(--bui-text-label); }\n.bblocks-project-comment { display:grid; gap:12px; min-width:0; }\n.bblocks-project-comment textarea { min-height:112px; resize:vertical; }\n.bblocks-project-comment>div:last-child { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }\n@keyframes bblocks-activity-enter { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }\n@media(prefers-reduced-motion:reduce) { .bblocks-project-activity-feed li { animation:none; } }\n@media(forced-colors:active) { .bblocks-project-activity-mark { outline:1px solid CanvasText; } }\n@media(max-width:600px){\n  .bui-drawer.bblocks-project-drawer { width:100%; border-radius:0; }\n  .bblocks-project-save-row { flex-wrap:wrap; }\n  .bblocks-project-save-row>.bblocks-inline-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; }\n  .bblocks-project-drawer .bui-drawer-footer { padding:var(--bui-space-4) var(--bui-space-5); }\n}\n\n.bblocks-calendar { min-width:0; container-type:inline-size; container-name:bld8-calendar-workspace; }\n.bblocks-calendar-zone { max-width:280px; margin-block:var(--bui-space-6); }\n.bblocks-calendar-caption { margin-block:var(--bui-space-5) 0; }\n.bblocks-data-workspace { min-width:0; container:bld8-data-workspace / inline-size; }\n.bblocks-data-workspace h2 { outline:none; }\n.bblocks-data-workspace .bblocks-heading h2 { font-size:clamp(22px,2vw,26px); letter-spacing:-.035em; }\n.bblocks-data-workspace .bblocks-heading .bblocks-muted { font-size:var(--bui-text-control); }\n.bblocks-data-workspace h2:focus-visible { text-decoration:underline; text-decoration-color:var(--bui-focus); text-underline-offset:.2em; }\n.bblocks-data-workspace-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(148px,176px); align-items:end; gap:var(--bui-space-3); margin-top:var(--bui-space-6); }\n.bblocks-data-workspace-toolbar>* { min-width:0; }\n.bblocks-quick-filters { margin-block:12px 4px; }\n.bblocks-quick-filter-actions,.bblocks-filter-chips { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }\n.bblocks-filter-chips { padding-block-start:12px; }\n.bblocks-filter-chips>.bui-field { width:124px; flex:none; }\n.bblocks-filter-chip { display:flex; align-items:stretch; max-width:100%; min-height:34px; background:var(--bui-bg); border:1px solid var(--bui-line); border-radius:var(--bui-radius); animation:bblocks-filter-in var(--bui-duration) var(--bui-ease); }\n.bblocks-filter-chip-edit { appearance:none; display:flex; align-items:center; gap:7px; min-width:0; padding:6px 8px; border:0; background:transparent; color:var(--bui-ink); font:var(--bui-text-meta)/1.5 var(--bui-font); cursor:pointer; }\n.bblocks-filter-chip-edit>strong { font-weight:550; }\n.bblocks-filter-chip-edit>span:not(.bblocks-filter-chip-value) { color:var(--bui-muted); }\n.bblocks-filter-chip-edit>.bui-icon { flex:none; color:var(--bui-muted); }\n.bblocks-filter-chip-value { min-width:0; max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.bblocks-filter-chip-remove { display:grid; place-items:center; flex:none; width:28px; padding:0; border:0; border-inline-start:1px solid var(--bui-line); background:transparent; color:var(--bui-muted); cursor:pointer; }\n.bblocks-filter-chip-edit,.bblocks-filter-chip-remove { transition:background-color var(--bui-duration-fast) var(--bui-ease),color var(--bui-duration-fast) var(--bui-ease); }\n.bblocks-filter-chip-edit:hover,.bblocks-filter-chip-remove:hover { background:var(--bui-surface); color:var(--bui-ink); }\n.bblocks-filter-logic { font-size:var(--bui-text-meta); color:var(--bui-muted); }\n/* A viewport cap keeps picker/editor resizing independent of per-side collision measurements. */\n.bui-popover:has(.bblocks-filter-field-picker,.bblocks-filter-editor) { width:min(320px,calc(100vw - 24px)); max-height:min(520px,calc(100dvh - 24px)); padding:16px; border:1px solid var(--bui-line); border-radius:8px; }\n.bui-popover:has(.bblocks-filter-field-picker,.bblocks-filter-editor)>div { margin-top:12px; }\n.bui-popover:has(.bblocks-filter-editor)>.bui-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }\n.bui-popover:has(.bblocks-filter-editor)>div { margin-top:0; }\n/* A measured per-opening canvas keeps picker/editor navigation in one place. */\n.bui-popover:has(.bblocks-filter-menu-canvas)>.bui-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }\n.bui-popover:has(.bblocks-filter-menu-canvas)>div { margin-top:0; }\n.bblocks-filter-menu-canvas { min-inline-size:0; }\n.bblocks-filter-menu-content { display:grid; align-content:start; gap:12px; min-inline-size:0; }\n.bblocks-filter-menu-header { display:flex; align-items:center; block-size:36px; min-inline-size:0; }\n@media(pointer:coarse) { .bblocks-filter-menu-header { block-size:44px; } }\n.bblocks-filter-search { display:flex; align-items:center; gap:8px; color:var(--bui-muted); padding:0 2px 10px; border-bottom:1px solid var(--bui-line); }\n.bblocks-filter-search>.bui-input { min-height:32px; padding:4px 0; border:0; border-radius:0; box-shadow:none; background:transparent; }\n.bblocks-filter-search>.bui-input:focus-visible { outline:0; }\n.bblocks-filter-search:focus-within { border-color:var(--bui-ink); }\n.bblocks-filter-fields { display:grid; gap:2px; padding-top:6px; max-height:280px; overflow-y:auto; overscroll-behavior:contain; }\n.bblocks-filter-fields>button { appearance:none; display:flex; align-items:center; gap:10px; min-height:38px; padding:7px 8px; border:0; border-radius:4px; background:transparent; color:var(--bui-ink); text-align:start; font:var(--bui-text-label)/1.5 var(--bui-font); cursor:pointer; transition:background-color var(--bui-duration-fast) var(--bui-ease); }\n.bblocks-filter-fields>button>.bui-icon { color:var(--bui-muted); flex:none; }\n.bblocks-filter-fields>button:hover,.bblocks-filter-fields>button:focus-visible { outline:none; background:var(--bui-selected-bg); }\n.bblocks-filter-applied { margin-inline-start:auto; font-size:var(--bui-text-meta); color:var(--bui-muted); }\n.bblocks-filter-editor { display:grid; gap:14px; }\n.bblocks-filter-editor-heading { display:flex; align-items:center; gap:8px; font-size:var(--bui-text-label); }\n.bblocks-filter-editor-heading>strong { font-weight:550; }\n.bblocks-filter-value-inputs { display:grid; grid-template-columns:repeat(auto-fit,minmax(100px,1fr)); gap:10px; }\n.bblocks-filter-editor-actions { display:flex; justify-content:flex-end; gap:6px; padding-top:4px; }\n@keyframes bblocks-filter-in { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:translateY(0); } }\n@media(pointer:coarse) { .bblocks-filter-chip-edit,.bblocks-filter-chip-remove,.bblocks-filter-fields>button { min-height:44px; } .bblocks-filter-chip-remove { width:44px; } .bblocks-filter-search>.bui-input { font-size:16px; min-height:40px; } }\n@media(prefers-reduced-motion:reduce) { .bblocks-filter-chip { animation:none; } .bblocks-filter-chip-edit,.bblocks-filter-chip-remove,.bblocks-filter-fields>button { transition:none; } }\n.bblocks-data-workspace-filters { margin-top:var(--bui-space-5); padding:var(--bui-space-5); background:var(--bui-surface); border-radius:var(--bui-radius); }\n.bblocks-data-workspace-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--bui-space-2); }\n.bblocks-data-workspace-filters>.bblocks-data-workspace-actions { margin-top:var(--bui-space-4); }\n.bblocks-data-workspace-sort { min-height:28px; display:flex; flex-wrap:wrap; align-items:center; gap:var(--bui-space-2); margin-block:var(--bui-space-2); color:var(--bui-muted); font-size:var(--bui-text-meta); line-height:1.6; }\n.bblocks-data-workspace-sort>span { min-width:0; overflow-wrap:anywhere; }\n.bblocks-data-workspace-sort>svg { flex:none; }\n.bblocks-data-workspace-pending { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--bui-space-4); padding:var(--bui-space-4); margin-bottom:var(--bui-space-4); background:var(--bui-selected-bg); color:var(--bui-selected-ink); border-radius:var(--bui-radius); }\n.bblocks-data-workspace-pending strong { font-size:var(--bui-text-label); font-weight:550; }\n.bblocks-data-workspace-pending p { margin:4px 0 0; font-size:var(--bui-text-meta); }\n.bblocks-data-workspace-grid { min-width:0; }\n.bblocks-data-workspace-grid>.bui-empty { padding-block:var(--bui-space-8); }\n.bblocks-data-workspace-loading { display:flex; align-items:center; gap:var(--bui-space-2); color:var(--bui-muted); font-size:var(--bui-text-meta); height:24px; min-height:24px; margin:0; }\n.bblocks-data-workspace-footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:var(--bui-space-4); margin-top:var(--bui-space-4); }\n.bblocks-data-workspace-footer>p { margin:0; font-size:var(--bui-text-meta); color:var(--bui-muted); }\n.bblocks-data-workspace-footer>fieldset { padding:0; margin:0; border:0; min-width:0; }\n.bblocks-data-workspace-notice { min-height:1.5em; margin-block:var(--bui-space-3) var(--bui-space-2); color:var(--bui-muted); font-size:var(--bui-text-meta); line-height:1.5; }\n.bblocks-data-workspace [data-column-key=\"status\"] { font-size:var(--bui-text-label); }\n.bblocks-data-workspace [data-column-key=\"status\"] .bui-data-grid-value { display:inline-flex; align-items:center; gap:7px; }\n.bblocks-data-workspace [data-column-key=\"status\"] .bui-data-grid-editor { padding-inline-start:13px; }\n.bblocks-data-workspace [data-column-key=\"status\"] .bui-data-grid-value::before { content:''; flex:none; width:6px; height:6px; border:1px solid var(--bui-muted); border-radius:50%; background:transparent; transition:background-color var(--bui-duration-fast) var(--bui-ease),border-color var(--bui-duration-fast) var(--bui-ease); }\n.bblocks-data-workspace [data-column-key=\"status\"] .bui-data-grid-value[data-value=\"in-progress\"]::before { border-color:var(--bui-ink); background:var(--bui-ink); }\n.bblocks-data-workspace [data-column-key=\"status\"] .bui-data-grid-value[data-value=\"review\"]::before { border-color:var(--bui-accent-border); background:var(--bui-accent); }\n.bblocks-data-workspace [data-column-key=\"status\"] .bui-data-grid-value[data-value=\"done\"]::before { border-color:var(--bui-success); background:var(--bui-success); }\n@media(prefers-reduced-motion:reduce) { .bblocks-data-workspace [data-column-key=\"status\"] .bui-data-grid-value::before { transition:none; } }\n.bblocks-data-workspace-review { display:grid; gap:var(--bui-space-5); min-width:0; }\n.bblocks-data-workspace-review>.bblocks-data-workspace-actions { justify-content:flex-end; }\n.bblocks-data-workspace-review ul { padding-inline-start:1.25rem; margin:var(--bui-space-2) 0 0; }\n.bblocks-data-workspace-changes { display:grid; gap:var(--bui-space-4); list-style:none; margin:0; padding:0; max-height:48vh; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }\n.bblocks-data-workspace-changes>li { background:var(--bui-surface); border-radius:var(--bui-radius); padding:var(--bui-space-4); min-width:0; }\n.bblocks-data-workspace-changes>li>div { display:flex; justify-content:space-between; gap:var(--bui-space-3); align-items:center; }\n.bblocks-data-workspace-changes strong { font-size:var(--bui-text-label); }\n.bblocks-data-workspace-changes dl { margin:var(--bui-space-3) 0 0; display:grid; gap:var(--bui-space-3); }\n.bblocks-data-workspace-changes dl>div,.bblocks-data-workspace-conflicts dl>div { display:grid; gap:4px; }\n.bblocks-data-workspace-changes dt,.bblocks-data-workspace-conflicts dt { color:var(--bui-muted); font-size:var(--bui-text-meta); }\n.bblocks-data-workspace-changes dd,.bblocks-data-workspace-conflicts dd { margin:0; font-size:var(--bui-text-label); line-height:1.65; overflow-wrap:anywhere; white-space:pre-wrap; }\n.bblocks-data-workspace-changes del { color:var(--bui-muted); }\n.bblocks-data-workspace-changes ins { text-decoration:none; font-weight:550; }\n.bblocks-data-workspace-changes [data-invalid=true] ins { color:var(--bui-danger); }\n.bblocks-data-workspace-conflicts { display:grid; gap:var(--bui-space-4); padding:var(--bui-space-4); background:var(--bui-surface); border-radius:var(--bui-radius); }\n.bblocks-data-workspace-conflicts h3 { margin:0; font-size:var(--bui-text-label); }\n.bblocks-data-workspace-conflicts article { padding-block:var(--bui-space-3); border-block-start:1px solid var(--bui-line); }\n.bblocks-data-workspace-conflicts strong { font-size:var(--bui-text-meta); }\n.bblocks-data-workspace-conflicts dl { display:grid; gap:var(--bui-space-3); margin-bottom:0; }\n.bblocks-data-workspace-conflicts dd>span { display:block; }\n.bui-drawer.bblocks-data-workspace-drawer { width:min(560px,100vw); }\n.bblocks-data-workspace-detail { display:grid; gap:var(--bui-space-5); min-width:0; }\n.bblocks-data-workspace-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:var(--bui-space-4); }\n.bblocks-data-workspace-fields>div:first-child { grid-column:1/-1; }\n.bblocks-data-workspace-fields>* { min-width:0; }\n.bblocks-data-workspace-detail>button { justify-self:start; }\n.bblocks-data-workspace-attachments { margin-top:var(--bui-space-2); border-top:1px solid var(--bui-line); padding-top:var(--bui-space-5); }\n.bblocks-data-workspace-attachments h3 { margin:0 0 var(--bui-space-4); font-size:var(--bui-text-label); }\n@container bld8-data-workspace (max-width:620px) { .bblocks-data-workspace-toolbar { grid-template-columns:minmax(0,1fr) auto; } .bblocks-data-workspace-toolbar>.bui-field:first-child { grid-column:1/-1; } .bblocks-data-workspace>.bblocks-heading { flex-direction:column; align-items:flex-start; } .bblocks-data-workspace-footer { align-items:flex-start; flex-direction:column; } .bblocks-data-workspace-pending>.bblocks-data-workspace-actions { width:100%; } }\n@media(max-width:500px) { .bui-drawer.bblocks-data-workspace-drawer { width:100%; border-radius:0; } .bblocks-data-workspace-fields { grid-template-columns:minmax(0,1fr); } .bblocks-data-workspace-fields>div:first-child { grid-column:auto; } .bblocks-data-workspace-review>.bblocks-data-workspace-actions>button { flex:1; } }\n.bblocks-calendar-details { display:grid; gap:var(--bui-space-5); min-width:0; }\n.bblocks-calendar-details h3 { margin:0; font-size:var(--bui-text-label); overflow-wrap:anywhere; }\n.bblocks-calendar-details dl { display:grid; gap:var(--bui-space-4); margin:0; }\n.bblocks-calendar-details dl>div { display:grid; gap:4px; }\n.bblocks-calendar-details dt { color:var(--bui-muted); font-size:var(--bui-text-meta); }\n.bblocks-calendar-details dd { margin:0; overflow-wrap:anywhere; font-size:var(--bui-text-label); }\n@container bld8-calendar-workspace (max-width:600px) { .bblocks-calendar>.bblocks-heading { flex-direction:column; align-items:flex-start; } .bblocks-calendar-zone { max-width:none; } }\n"
    },
    {
      "path": "LICENSE",
      "content": "MIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/blocks/LICENSE",
      "content": "MIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/LICENSE",
      "content": "MIT License\n\nCopyright (c) 2026 Jaison\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/LUCIDE_LICENSE",
      "content": "ISC License\n\nCopyright (c) 2026 Lucide Icons and Contributors\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\n---\n\nThe following Lucide icons are derived from the Feather project:\n\nairplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out\n\nThe MIT License (MIT) (for the icons listed above)\n\nCopyright (c) 2013-present Cole Bemis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/DAY_PICKER_LICENSE",
      "content": "The MIT License (MIT)\n\nCopyright (c) 2014-2026 Giampaolo Bellavite <io@gpbl.dev> and contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/SHADCN_LICENSE",
      "content": "MIT License\n\nCopyright (c) 2023 shadcn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/MOTION_LICENSE",
      "content": "The MIT License (MIT)\n\nCopyright (c) 2024 [Motion](https://motion.dev) B.V.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/DND_KIT_LICENSE",
      "content": "MIT License\n\nCopyright (c) 2021, Claudéric Demers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
    },
    {
      "path": "packages/ui/EDITOR_LICENSES",
      "content": "Upstream dependency notices. These dependencies retain their own terms.\n\n@tiptap/core 3.33.1\n@tiptap/extension-blockquote 3.33.1\n@tiptap/extension-bold 3.33.1\n@tiptap/extension-bubble-menu 3.33.1\n@tiptap/extension-bullet-list 3.33.1\n@tiptap/extension-code 3.33.1\n@tiptap/extension-code-block 3.33.1\n@tiptap/extension-document 3.33.1\n@tiptap/extension-dropcursor 3.33.1\n@tiptap/extension-floating-menu 3.33.1\n@tiptap/extension-gapcursor 3.33.1\n@tiptap/extension-hard-break 3.33.1\n@tiptap/extension-heading 3.33.1\n@tiptap/extension-horizontal-rule 3.33.1\n@tiptap/extension-italic 3.33.1\n@tiptap/extension-link 3.33.1\n@tiptap/extension-list 3.33.1\n@tiptap/extension-list-item 3.33.1\n@tiptap/extension-list-keymap 3.33.1\n@tiptap/extension-mention 3.33.1\n@tiptap/extension-ordered-list 3.33.1\n@tiptap/extension-paragraph 3.33.1\n@tiptap/extension-strike 3.33.1\n@tiptap/extension-text 3.33.1\n@tiptap/extension-underline 3.33.1\n@tiptap/extensions 3.33.1\n@tiptap/pm 3.33.1\n@tiptap/react 3.33.1\n@tiptap/starter-kit 3.33.1\n@tiptap/suggestion 3.33.1\n\nMIT License\n\nCopyright (c) 2025, Tiptap GmbH\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n---\n\n@types/use-sync-external-store 0.0.6\n\nMIT License\n\n    Copyright (c) Microsoft Corporation.\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE\n\n---\n\nfast-equals 5.4.5\n\nMIT License\n\nCopyright (c) 2025 Tony Quetano\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n---\n\nlinkifyjs 4.4.0\n\nCopyright (c) 2024 Nick Frasser\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\norderedmap 2.1.1\nw3c-keyname 2.2.8\n\nCopyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\nprosemirror-changeset 2.4.6\n\nCopyright (C) 2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\nprosemirror-commands 1.7.2\nprosemirror-dropcursor 1.8.4\nprosemirror-gapcursor 1.4.1\nprosemirror-history 1.5.1\nprosemirror-inputrules 1.5.1\nprosemirror-keymap 1.2.3\nprosemirror-model 1.25.13\nprosemirror-schema-list 1.6.0\nprosemirror-state 1.4.4\nprosemirror-transform 1.12.5\nprosemirror-view 1.42.9\n\nCopyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\nprosemirror-tables 1.8.5\n\nCopyright (C) 2015-2016 by Marijn Haverbeke <marijnh@gmail.com> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n\nrope-sequence 1.3.4\n\nCopyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
    },
    {
      "path": "packages/ui/PHONE_LICENSE",
      "content": "Upstream dependency notices. These dependencies retain their own terms.\n\nlibphonenumber-js 1.13.16\n\n(The MIT License)\n\nCopyright (c) 2016 @catamphetamine <purecatamphetamine@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n"
    },
    {
      "path": "packages/ui/RECURRENCE_LICENSES",
      "content": "Upstream dependency notices. These dependencies retain their own terms.\n\n@js-temporal/polyfill 0.5.1\n\nCopyright 2017, 2018, 2019, 2020 ECMA International\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n\n---\n\njsbi 4.3.2\n\nApache License\n                           Version 2.0, January 2004\n                        https://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n"
    },
    {
      "path": "packages/ui/THIRD_PARTY_NOTICES.md",
      "content": "# Third-party notices\n\nReact DayPicker 10.0.2 provides calendar selection and keyboard navigation.\nSource: https://github.com/gpbl/react-day-picker . Its full MIT notice is included\nin `DAY_PICKER_LICENSE`. date-fns and @date-fns/tz are transitive dependencies;\ntheir MIT notices accompany their installed npm distributions. BLD8 supplies its\nown token-based styling rather than copying another library's styled calendar.\n\nLucide React 1.55.0 supplies the standard icon family. Source:\nhttps://github.com/lucide-icons/lucide . Its ISC licence and the MIT notice for\nFeather-derived icons are reproduced in the included `LUCIDE_LICENSE` file.\nThe original BLD8 dotted arrow is separate artwork. Named Lucide components are\nordinary package dependencies; the icon directory's generated SVG downloads\nretain the full upstream licence notices.\n\nBase UI is used as an installed dependency for accessible interaction primitives. Source: https://github.com/mui/base-ui . Its licence is reproduced below. Base UI remains an installed dependency. Selected shadcn/ui Base UI composition patterns are adapted as described below.\n\nMIT License\n\nCopyright (c) 2019 Material-UI SAS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nSelected composition patterns are adapted from shadcn/ui (MIT, copyright 2023 shadcn). Pinned upstream revision: 30a58d4498f270af1c1e981a7d78a15cf5740841. The full notice is in SHADCN_LICENSE. Drawer, context-menu and sidebar compositions and the button variant pattern retain BLD8 styling and focused APIs. Portable provenance and original upstream source hashes are in UPSTREAM.json beside this notice; docs/upstream.json is the repository source ledger. The adapted source files retain both the upstream copyright and the copyright for BLD8 modifications.\n\nTailwind CSS 4.3.0 and its CLI are build dependencies (MIT). clsx, class-variance-authority and tailwind-merge are runtime dependencies (MIT). Their notices accompany installed npm distributions. Compiled utilities are included; consuming applications do not need Tailwind.\n\n## React Hook Form\n\nReact Hook Form 7.90.0 is an optional MIT dependency for the adapter and examples. Its package includes the original licence. No upstream source is vendored. https://github.com/react-hook-form/react-hook-form\n\n## Motion\n\nMotion 14.7.1 supplies layout and presence animation as an installed MIT dependency. Its full licence is included in MOTION_LICENSE. https://github.com/motiondivision/motion\n\n## dnd-kit\n\n@dnd-kit/core 6.3.1, @dnd-kit/sortable 10.0.0 and @dnd-kit/utilities 3.2.2 are installed MIT dependencies. Their common licence is included in DND_KIT_LICENSE. https://github.com/clauderic/dnd-kit\n\n## Structured editing\n\nTiptap community packages 3.33.1 and their ProseMirror/helper dependencies are installed under MIT terms. Their complete upstream notices are included in EDITOR_LICENSES. No paid extensions or hosted editing service is included. Sources: https://github.com/ueberdosis/tiptap and https://github.com/ProseMirror .\n\n## Phone numbers\n\nlibphonenumber-js 1.13.16 supplies numbering-plan metadata and validation. Its original MIT notice is included in PHONE_LICENSE. Source: https://github.com/catamphetamine/libphonenumber-js . No verification service is included.\n\n## Recurrence timezone conversion\n\n@js-temporal/polyfill 0.5.1 retains its ISC licence. Its jsbi 4.3.2 dependency retains Apache-2.0. Their complete notices are included in RECURRENCE_LICENSES; original BLD8 source remains MIT. Sources: https://github.com/js-temporal/temporal-polyfill and https://github.com/GoogleChromeLabs/jsbi .\n"
    },
    {
      "path": "packages/ui/UPSTREAM.json",
      "content": "{\n  \"repository\": \"https://github.com/shadcn-ui/ui\",\n  \"revision\": \"30a58d4498f270af1c1e981a7d78a15cf5740841\",\n  \"license\": \"MIT\",\n  \"copyright\": \"Copyright (c) 2023 shadcn\",\n  \"licenseFile\": \"SHADCN_LICENSE\",\n  \"files\": [\n    {\n      \"source\": \"apps/v4/registry/bases/base/ui/sidebar.tsx\",\n      \"sha256\": \"f0f4c21b8fa1b4750711711ac7a6833c713cf93a23f1d2143cf5ec26f1661d56\",\n      \"adaptedIn\": \"src/sidebar.tsx\"\n    },\n    {\n      \"source\": \"apps/v4/registry/bases/base/ui/drawer.tsx\",\n      \"sha256\": \"7180299dff3cc1659ab75130f0521ba485e18b38625b904e1da4049f23479060\",\n      \"adaptedIn\": \"src/drawer.tsx\"\n    },\n    {\n      \"source\": \"apps/v4/registry/bases/base/ui/context-menu.tsx\",\n      \"sha256\": \"e4359306eb2242681388aa1b3a541de49dce46c375db1593f8d3362f6bb023ca\",\n      \"adaptedIn\": \"src/context-menu.tsx\"\n    },\n    {\n      \"source\": \"apps/v4/registry/bases/base/ui/button.tsx\",\n      \"sha256\": \"74f982d7ad7a764e3c95a519fc063a671e66ad758ea31dc89d747838e20c2487\",\n      \"adaptedIn\": \"src/variants.ts\"\n    }\n  ],\n  \"notes\": \"Adapted provider/composition patterns, not a fork. Original BLD8 tokens, public APIs, motion and prefixed Tailwind classes. Reconcile upstream manually; shadcn CLI update is not supported. Canonical source paths and distribution-specific locations are described above. The notices for original upstream work and BLD8 modifications are both retained.\",\n  \"sourcePathScope\": \"Canonical source paths relative to packages/ui in the BLD8 repository. adaptedIn identifies the original BLD8 source authority; it does not assert that this source path exists in every distribution.\",\n  \"distributionMappings\": {\n    \"starter\": {\n      \"relativeTo\": \"directory containing UPSTREAM.json\",\n      \"files\": {\n        \"src/sidebar.tsx\": [\n          \"src/sidebar.tsx\",\n          \"dist/sidebar.js\",\n          \"dist/sidebar.d.ts\"\n        ],\n        \"src/drawer.tsx\": [\n          \"src/drawer.tsx\",\n          \"dist/drawer.js\",\n          \"dist/drawer.d.ts\"\n        ],\n        \"src/context-menu.tsx\": [\n          \"src/context-menu.tsx\",\n          \"dist/context-menu.js\",\n          \"dist/context-menu.d.ts\"\n        ],\n        \"src/variants.ts\": [\n          \"src/variants.ts\",\n          \"dist/variants.js\",\n          \"dist/variants.d.ts\"\n        ]\n      },\n      \"notes\": \"Starters contain only selected modules and their dependencies. Mappings give locations when the corresponding module is included.\"\n    },\n    \"npm\": {\n      \"relativeTo\": \"directory containing UPSTREAM.json\",\n      \"files\": {\n        \"src/sidebar.tsx\": [\n          \"dist/sidebar.js\",\n          \"dist/sidebar.d.ts\"\n        ],\n        \"src/drawer.tsx\": [\n          \"dist/drawer.js\",\n          \"dist/drawer.d.ts\"\n        ],\n        \"src/context-menu.tsx\": [\n          \"dist/context-menu.js\",\n          \"dist/context-menu.d.ts\"\n        ],\n        \"src/variants.ts\": [\n          \"dist/variants.js\",\n          \"dist/variants.d.ts\"\n        ]\n      },\n      \"notes\": \"The UI package includes compiled modules in dist; original src files are not part of its files allowlist.\"\n    },\n    \"registry\": {\n      \"relativeTo\": \"directory containing UPSTREAM.json\",\n      \"files\": {\n        \"src/sidebar.tsx\": [\n          \"../sidebar.tsx\"\n        ],\n        \"src/drawer.tsx\": [\n          \"../drawer.tsx\"\n        ],\n        \"src/context-menu.tsx\": [\n          \"../context-menu.tsx\"\n        ],\n        \"src/variants.ts\": [\n          \"../variants.ts\"\n        ]\n      },\n      \"notes\": \"The ledger is installed in bld8/licenses while source modules are installed in the parent bld8 directory. Only modules in the installed dependency graph are present.\"\n    }\n  }\n}\n"
    }
  ],
  "download": "/downloads/data-workspace.zip",
  "downloads": {
    "nextjs": "/downloads/data-workspace.zip",
    "vite": "/downloads/data-workspace-vite.zip"
  },
  "frameworks": [
    "React + Next.js",
    "React + Vite"
  ]
}