@protobase/ui 0.40.7 → 0.40.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/app/app.d.ts +4 -1
  2. package/dist/app/app.js +9 -3
  3. package/dist/app/main.js +3 -1
  4. package/dist/app/native-auth-fetch.d.ts +8 -0
  5. package/dist/app/native-auth-fetch.js +53 -0
  6. package/dist/app/new-version/messages.js +6 -2
  7. package/dist/app/new-version/new-version-banner.js +37 -0
  8. package/dist/app/pages/blocks/record-cards.js +14 -4
  9. package/dist/app/related-cards/related-cards.js +18 -13
  10. package/dist/app-shell/app-shell.js +6 -3
  11. package/dist/app-shell/sidebar-notice.js +12 -0
  12. package/dist/app-shell/sidebar.d.ts +1 -1
  13. package/dist/app-shell/sidebar.js +2 -1
  14. package/dist/auth/auth-provider.js +16 -5
  15. package/dist/package.js +1 -1
  16. package/dist/primitives/snap-row-width.js +13 -0
  17. package/dist/primitives/snap-row.js +21 -0
  18. package/dist/shell/assets/app-DA4sAj85.js +9 -0
  19. package/dist/shell/assets/index-DORKU14t.js +2 -0
  20. package/dist/shell/assets/{index-BX850JXd.css → index-DT92y8N1.css} +1 -1
  21. package/dist/shell/assets/{records-map-DD0ZBUZe.js → records-map-BWPZWDHO.js} +2 -2
  22. package/dist/shell/assets/{shared-protobase-ui-pUw1X1dc.js → shared-protobase-ui-KwzlPgvP.js} +2 -2
  23. package/dist/shell/index.html +4 -4
  24. package/dist/shell/protobase.shell.json +1 -1
  25. package/dist/shell/protobase.sw.js +2 -2
  26. package/dist/shell-source-maps/assets/app-DA4sAj85.js.map +1 -0
  27. package/dist/shell-source-maps/assets/index-DORKU14t.js.map +1 -0
  28. package/dist/shell-source-maps/assets/{records-map-DD0ZBUZe.js.map → records-map-BWPZWDHO.js.map} +1 -1
  29. package/dist/shell-source-maps/assets/{shared-protobase-ui-pUw1X1dc.js.map → shared-protobase-ui-KwzlPgvP.js.map} +1 -1
  30. package/package.json +4 -4
  31. package/dist/shell/assets/app-BpvlppLd.js +0 -9
  32. package/dist/shell/assets/index-B37wY6Go.js +0 -2
  33. package/dist/shell-source-maps/assets/app-BpvlppLd.js.map +0 -1
  34. package/dist/shell-source-maps/assets/index-B37wY6Go.js.map +0 -1
@@ -1,2 +0,0 @@
1
- import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{i as n,n as r,t as i}from"./react-CR5VJ85Q.js";import{J as a,t as o}from"./app-BpvlppLd.js";import{c as s}from"./preload-helper-C24C2MCK.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var c=t(n(),1),l=r(),u=e({default:()=>d}),d={},f=`protobase-api-origin`,p=e=>{if(e.length===0)return;if(e.length>1)throw Error(`The page has ${e.length} ${f} meta tags; it may have one`);let t=e[0],n=URL.canParse(t)?new URL(t):void 0;if(!n||n.protocol!==`http:`&&n.protocol!==`https:`||n.origin!==t)throw Error(`The page's ${f} meta tag holds "${t}", which is not an http or https origin such as https://shop.example.com`);return t},m=()=>p([...document.querySelectorAll(`meta[name="${f}"]`)].map(e=>e.content)),h=t(i(),1),g=document.getElementById(`root`);if(!g)throw Error(`index.html needs an element with id "root"`);(0,l.createRoot)(g).render((0,h.jsx)(c.StrictMode,{children:(0,h.jsx)(o,{baseUrl:`${m()??``}/api/v1`,ui:a(u),locale:s()})}));
2
- //# debugId=77ef063a-1a89-4ba6-aa76-38ead3f1d3d9