@lattice-php/lattice 0.33.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/appearance/index.js +2 -6
  2. package/dist/appearance/index.js.map +1 -1
  3. package/dist/chat/lib/transport.d.ts +2 -2
  4. package/dist/chat/lib/transport.js +22 -23
  5. package/dist/chat/lib/transport.js.map +1 -1
  6. package/dist/core/api.d.ts +0 -1
  7. package/dist/core/api.js +2 -2
  8. package/dist/core/api.js.map +1 -1
  9. package/dist/core/hooks/column-sizing.d.ts +1 -1
  10. package/dist/core/hooks/column-sizing.js +7 -14
  11. package/dist/core/hooks/column-sizing.js.map +1 -1
  12. package/dist/core/hooks/use-column-resizing.js +22 -54
  13. package/dist/core/hooks/use-column-resizing.js.map +1 -1
  14. package/dist/core/index.d.ts +1 -1
  15. package/dist/core/index.js +2 -2
  16. package/dist/core/registry.d.ts +1 -5
  17. package/dist/core/registry.js +1 -2
  18. package/dist/core/registry.js.map +1 -1
  19. package/dist/core/renderer.js +4 -10
  20. package/dist/core/renderer.js.map +1 -1
  21. package/dist/effects/registry.js +1 -4
  22. package/dist/effects/registry.js.map +1 -1
  23. package/dist/event-bridge.d.ts +1 -4
  24. package/dist/event-bridge.js +1 -11
  25. package/dist/event-bridge.js.map +1 -1
  26. package/dist/form/components/fields/choice.js +1 -1
  27. package/dist/form/components/fields/choice.js.map +1 -1
  28. package/dist/form/types.d.ts +1 -4
  29. package/dist/i18n/config.d.ts +1 -1
  30. package/dist/i18n/config.js +5 -21
  31. package/dist/i18n/config.js.map +1 -1
  32. package/dist/i18n/index.d.ts +2 -2
  33. package/dist/i18n/index.js +2 -2
  34. package/dist/i18n/locale-switcher.d.ts +0 -5
  35. package/dist/i18n/locale-switcher.js +1 -5
  36. package/dist/i18n/locale-switcher.js.map +1 -1
  37. package/dist/i18n/locale.js +2 -10
  38. package/dist/i18n/locale.js.map +1 -1
  39. package/dist/i18n/timezone.js +2 -10
  40. package/dist/i18n/timezone.js.map +1 -1
  41. package/dist/icons/icon-renderer.d.ts +1 -2
  42. package/dist/icons/icon-renderer.js +2 -6
  43. package/dist/icons/icon-renderer.js.map +1 -1
  44. package/dist/lattice.css +89 -0
  45. package/dist/lib/listeners.d.ts +5 -0
  46. package/dist/lib/listeners.js +19 -0
  47. package/dist/lib/listeners.js.map +1 -0
  48. package/dist/table/hooks/use-column-visibility.js +4 -12
  49. package/dist/table/hooks/use-column-visibility.js.map +1 -1
  50. package/dist/toast/callout.js +8 -16
  51. package/dist/toast/callout.js.map +1 -1
  52. package/dist/toast/toast.d.ts +2 -0
  53. package/dist/toast/toast.js +16 -10
  54. package/dist/toast/toast.js.map +1 -1
  55. package/dist/types/generated.d.ts +3 -1
  56. package/dist/ui/grid.js +17 -5
  57. package/dist/ui/grid.js.map +1 -1
  58. package/dist/ui/segmented-pills.d.ts +1 -1
  59. package/dist/ui/segmented-pills.js +1 -1
  60. package/dist/ui/segmented-pills.js.map +1 -1
  61. package/dist-standalone/chunks/{chart-view-WqyMTZiX.js → chart-view-CR1X2aGE.js} +1 -1
  62. package/dist-standalone/chunks/{date-picker-field-CCnkf4SC.js → date-picker-field-B4Xzow-A.js} +1 -1
  63. package/dist-standalone/chunks/{dist-CK9gk4iB.js → dist-ci5ng714.js} +1 -1
  64. package/dist-standalone/chunks/{icon-button-D4DKcnhp.js → icon-button-D3AltHNz.js} +1 -1
  65. package/dist-standalone/chunks/{instance-BQeVkUpw.js → instance-C4O1XWa6.js} +1 -1
  66. package/dist-standalone/chunks/locale-GyqtaX1O.js +1 -0
  67. package/dist-standalone/chunks/{page-props-BA5zqTIT.js → page-props-BHNNVkgJ.js} +1 -1
  68. package/dist-standalone/chunks/{rich-editor-field-BeeSr2Zx.js → rich-editor-field-JM3jBEV1.js} +1 -1
  69. package/dist-standalone/chunks/{subscriptions-Cwd1jFs5.js → subscriptions-BV4g0s0U.js} +1 -1
  70. package/dist-standalone/chunks/{time-picker-DSs9fDWe.js → time-picker-kbhOHEPd.js} +1 -1
  71. package/dist-standalone/chunks/timezone-CyoBch3a.js +1 -0
  72. package/dist-standalone/chunks/{use-effect-dispatcher-CiWYRvsF.js → use-effect-dispatcher-CJXFkAv1.js} +2 -2
  73. package/dist-standalone/lattice.css +1 -1
  74. package/dist-standalone/lattice.js +4 -4
  75. package/dist-standalone/manifest.json +1 -27
  76. package/package.json +2 -2
  77. package/dist-standalone/chunks/locale-CgtcxthU.js +0 -1
  78. package/dist-standalone/chunks/timezone-BORzyZp2.js +0 -1
@@ -1,29 +1,3 @@
1
1
  {
2
- "version": "0.33.0",
3
- "files": {
4
- "lattice.js": "a88bb1274e33",
5
- "chunks/chart-view-WqyMTZiX.js": "24a0fa215276",
6
- "chunks/date-picker-field-CCnkf4SC.js": "4d5eff85925f",
7
- "chunks/dist-CK9gk4iB.js": "fcd98bf4a897",
8
- "chunks/dist-DqlcM-vw.js": "574d76694c7a",
9
- "chunks/icon-button-D4DKcnhp.js": "24c61d0b24b4",
10
- "chunks/instance-BQeVkUpw.js": "87132e275d67",
11
- "chunks/jsx-runtime-CN5ucv1d.js": "dad8b788d0f0",
12
- "chunks/locale-CgtcxthU.js": "d6510680ac4d",
13
- "chunks/materialize-CWqnSEHR.js": "cb96c5b9d4c0",
14
- "chunks/notifications-echo-uU87iJAV.js": "5cf6365d2f9d",
15
- "chunks/number-BvVKQqOG.js": "e94a1245aea2",
16
- "chunks/page-props-BA5zqTIT.js": "f2461b38c425",
17
- "chunks/react-SIfiwpqq.js": "160d3a8e9743",
18
- "chunks/rich-editor-field-BeeSr2Zx.js": "3773a57e886e",
19
- "chunks/shared-props-B_wT1GcG.js": "2e11a719edd0",
20
- "chunks/subscriptions-Cwd1jFs5.js": "1971261e663b",
21
- "chunks/test-id-Dh3L6Gfh.js": "7958de4f0270",
22
- "chunks/time-picker-DSs9fDWe.js": "9b92e1560037",
23
- "chunks/timezone-BORzyZp2.js": "908c1ebd3d64",
24
- "chunks/translatable-DLw4h3x8.js": "11b3f013f0c5",
25
- "chunks/use-effect-dispatcher-CiWYRvsF.js": "7aa1f207a179",
26
- "chunks/with-selector-zFUY-tQj.js": "fb612a44de32",
27
- "sprite.svg": "535ae5800374"
28
- }
2
+ "version": "0.35.0"
29
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lattice-php/lattice",
3
- "version": "0.33.0",
3
+ "version": "0.35.0",
4
4
  "description": "Server-driven React components for Laravel and Inertia.",
5
5
  "license": "MIT",
6
6
  "author": "Manuel Christlieb <manuel@christlieb.eu>",
@@ -303,9 +303,9 @@
303
303
  "@radix-ui/react-popover": "^1.1.16",
304
304
  "@radix-ui/react-slot": "^1.2.3",
305
305
  "@radix-ui/react-toast": "^1.2.16",
306
+ "@tiptap/core": "^3.26.0",
306
307
  "@tiptap/extension-details": "^3.26.0",
307
308
  "@tiptap/extension-highlight": "^3.26.0",
308
- "@tiptap/extension-link": "^3.26.0",
309
309
  "@tiptap/extension-table": "^3.26.0",
310
310
  "@tiptap/extension-text-align": "^3.26.0",
311
311
  "@tiptap/extensions": "^3.27.3",
@@ -1 +0,0 @@
1
- import{i as e,t}from"./react-SIfiwpqq.js";var n=e(t(),1),r={callout:`lattice:callout`,retractCallout:`lattice:retract-callout`,toast:`lattice:toast`,reloadComponent:`lattice:reload-component`,openModal:`lattice:open-modal`,closeModal:`lattice:close-modal`,resetForm:`lattice:reset-form`,toggleSidebar:`lattice:toggle-sidebar`,appearanceChange:`lattice:appearance-change`,localeChange:`lattice:locale-change`,timezoneChange:`lattice:timezone-change`,actionError:`lattice:action-error`},i=`locale`,a=`en`,o=31536e3,s=new Set,c;function l(e){let t=e.trim();return t===``?a:t}function u(){if(typeof window>`u`)return null;try{return localStorage.getItem(i)}catch{return null}}function d(){if(typeof document>`u`)return null;let e=document.cookie.split(`;`).map(e=>e.trim()).find(e=>e.startsWith(`${i}=`));if(!e)return null;try{return decodeURIComponent(e.slice(7))}catch{return null}}function f(){return typeof document>`u`?null:document.documentElement.lang||null}function p(){return l(u()??d()??f()??a)}function m(e){if(typeof document<`u`&&(document.cookie=`${i}=${encodeURIComponent(e)};path=/;max-age=${o};SameSite=Lax`,document.documentElement.lang=e),typeof window<`u`)try{localStorage.setItem(i,e)}catch{return}}function h(){return c??=p(),c}function g(e){return s.add(e),()=>{s.delete(e)}}function _(){s.forEach(e=>e())}function v(e){typeof window>`u`||window.dispatchEvent(new CustomEvent(r.localeChange,{detail:{locale:e}}))}function y(){return h()}function b(){return{"Accept-Language":y()}}function x(e){return g(()=>e(y()))}function S(e){let t=y(),n=l(e);c=n,m(n),n!==t&&(_(),v(n))}function C(){return{locale:(0,n.useSyncExternalStore)(g,h,()=>a),setLocale:S}}export{C as a,x as i,b as n,r as o,S as r,y as t};
@@ -1 +0,0 @@
1
- import{i as e,t}from"./react-SIfiwpqq.js";import{o as n}from"./locale-CgtcxthU.js";var r=e(t(),1),i={locales:[],timezone:null},a=new Set,o=i;function s(e){return Array.from(new Set((e??[]).map(e=>e.trim()).filter(Boolean)))}function c(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function l(){return o}function u(e){return a.add(e),()=>{a.delete(e)}}function d(){a.forEach(e=>e())}function f(e){let t=s(e?.locales),n=e?.timezone??null;c(o.locales,t)&&o.timezone===n||(o={locales:t,timezone:n},d())}function p(){return o.timezone}function m(e){return a.add(e),()=>{a.delete(e)}}function h(){return(0,r.useSyncExternalStore)(u,l,()=>i)}function g(e,t,n){let r=_(e);if(!r)return String(e??``);let i={timeZone:n?.timeZone};return t.dateStyle&&(i.dateStyle=t.dateStyle),t.timeStyle&&(i.timeStyle=t.timeStyle),t.month&&(i.month=t.month),t.year&&(i.year=t.year),new Intl.DateTimeFormat(n?.locale,i).format(r)}function _(e){let t=e instanceof Date?e:typeof e==`string`||typeof e==`number`?new Date(e):null;return t&&!Number.isNaN(t.getTime())?t:null}function v(e,t){let n=_(e);if(!n)return``;let r=new Intl.DateTimeFormat(t?.locale,{year:`numeric`,month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZone:t?.timeZone,timeZoneName:`short`}).format(n);return t?.timeZone?`${r} (${t.timeZone})`:r}var y=`UTC`,b=new Set,x;function S(){if(typeof Intl>`u`)return y;try{return Intl.DateTimeFormat().resolvedOptions().timeZone||y}catch{return y}}function C(){return x??p()??S()}function w(e){return b.add(e),()=>{b.delete(e)}}function T(){b.forEach(e=>e())}m(()=>T());function E(e){typeof window>`u`||window.dispatchEvent(new CustomEvent(n.timezoneChange,{detail:{timezone:e}}))}function D(){return C()}function O(e){let t=D(),n=e.trim();x=n===``?void 0:n,D()!==t&&(T(),E(D()))}function k(){return{timezone:(0,r.useSyncExternalStore)(w,C,()=>y),setTimezone:O}}export{_ as a,v as i,k as n,f as o,g as r,h as s,D as t};