@lattice-php/lattice 0.31.0 → 0.32.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.
@@ -1,26 +1,26 @@
1
1
  {
2
- "version": "0.31.0",
2
+ "version": "0.32.0",
3
3
  "files": {
4
- "lattice.js": "e2493a30f608",
5
- "chunks/chart-view-ZCTbih8A.js": "744d776f3ad7",
4
+ "lattice.js": "7a2be0ec5bb4",
5
+ "chunks/chart-view-WqyMTZiX.js": "24a0fa215276",
6
6
  "chunks/date-picker-field-CCnkf4SC.js": "4d5eff85925f",
7
7
  "chunks/dist-CK9gk4iB.js": "fcd98bf4a897",
8
8
  "chunks/dist-DqlcM-vw.js": "574d76694c7a",
9
- "chunks/icon-button-DcP25cn4.js": "4498d2cb52d6",
10
- "chunks/instance-t58Awajh.js": "ec69af6f7b2e",
9
+ "chunks/icon-button-CEwL9uXW.js": "6a17e2bdec95",
10
+ "chunks/instance-B-C4sgf4.js": "1798ce635b33",
11
11
  "chunks/jsx-runtime-CN5ucv1d.js": "dad8b788d0f0",
12
12
  "chunks/locale-CgtcxthU.js": "d6510680ac4d",
13
13
  "chunks/materialize-CWqnSEHR.js": "cb96c5b9d4c0",
14
14
  "chunks/notifications-echo-uU87iJAV.js": "5cf6365d2f9d",
15
15
  "chunks/number-BvVKQqOG.js": "e94a1245aea2",
16
- "chunks/page-props-B4GewgLI.js": "59675871a377",
16
+ "chunks/page-props-nxR5n6k4.js": "8bae86628e23",
17
17
  "chunks/react-SIfiwpqq.js": "160d3a8e9743",
18
- "chunks/rich-editor-field-BtbU5XFS.js": "c84d3d513e17",
18
+ "chunks/rich-editor-field-DVvEzA3W.js": "85129640f020",
19
19
  "chunks/shared-props-B_wT1GcG.js": "2e11a719edd0",
20
- "chunks/subscriptions-BdHDnVA3.js": "b8746aaf29fa",
20
+ "chunks/subscriptions-HzwKFUPT.js": "d5bd1f6fcff8",
21
21
  "chunks/test-id-Dh3L6Gfh.js": "7958de4f0270",
22
22
  "chunks/time-picker-DSs9fDWe.js": "9b92e1560037",
23
- "chunks/timezone-BukvzD0d.js": "8b15d6dad983",
23
+ "chunks/timezone-BORzyZp2.js": "908c1ebd3d64",
24
24
  "chunks/translatable-DLw4h3x8.js": "11b3f013f0c5",
25
25
  "chunks/use-effect-dispatcher-CiWYRvsF.js": "7aa1f207a179",
26
26
  "chunks/with-selector-zFUY-tQj.js": "fb612a44de32",
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@lattice-php/lattice",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "Server-driven React components for Laravel and Inertia.",
5
5
  "license": "MIT",
6
6
  "author": "Manuel Christlieb <manuel@christlieb.eu>",
7
7
  "type": "module",
8
+ "workspaces": [
9
+ "docs"
10
+ ],
8
11
  "homepage": "https://latticephp.com",
9
12
  "repository": {
10
13
  "type": "git",
@@ -99,6 +102,10 @@
99
102
  "types": "./dist/form/hooks/context.d.ts",
100
103
  "import": "./dist/form/hooks/context.js"
101
104
  },
105
+ "./form/hooks/field-scope": {
106
+ "types": "./dist/form/hooks/field-scope.d.ts",
107
+ "import": "./dist/form/hooks/field-scope.js"
108
+ },
102
109
  "./form/hooks/values": {
103
110
  "types": "./dist/form/hooks/values.d.ts",
104
111
  "import": "./dist/form/hooks/values.js"
@@ -263,7 +270,7 @@
263
270
  "check": "npm run lint && npm run format:check && npm run typecheck && npm run type-coverage && npm run test && npm run build:lib && npm run check:package",
264
271
  "check:package": "publint --strict && attw --pack . --profile esm-only --exclude-entrypoints ./css",
265
272
  "fix": "npm run lint:fix && npm run format",
266
- "docs:typecheck": "tsc --noEmit -p docs/tsconfig.json",
273
+ "docs:typecheck": "npm run build:lib && tsc --noEmit -p docs/tsconfig.json",
267
274
  "docs:test": "vitest run --project jsdom docs",
268
275
  "lint": "oxlint resources/js workbench/resources/js packages/*/resources/js",
269
276
  "lint:fix": "oxlint resources/js workbench/resources/js packages/*/resources/js --fix",
@@ -271,9 +278,9 @@
271
278
  "format": "oxfmt --write \"resources/js/**/*.{ts,tsx}\" \"workbench/resources/js/**/*.{ts,tsx}\" \"packages/*/resources/js/**/*.{ts,tsx}\" \"docs/**/*.{ts,tsx,md,mdx}\"",
272
279
  "format:check": "oxfmt --check \"resources/js/**/*.{ts,tsx}\" \"workbench/resources/js/**/*.{ts,tsx}\" \"packages/*/resources/js/**/*.{ts,tsx}\" \"docs/**/*.{ts,tsx,md,mdx}\"",
273
280
  "analyze": "SONDA=1 vite build && mkdir -p docs/public && cp docs/generated/bundle-report.html docs/public/bundle-report.html",
274
- "docs:dev": "npm run analyze && astro dev",
275
- "docs:build": "npm run analyze && astro build",
276
- "docs:preview": "astro preview"
281
+ "docs:dev": "npm run build:lib && npm run dev -w docs",
282
+ "docs:build": "npm run build:lib && npm run analyze && npm run build -w docs",
283
+ "docs:preview": "npm run preview -w docs"
277
284
  },
278
285
  "dependencies": {
279
286
  "@atlaskit/pragmatic-drag-and-drop": "^2.0.1",
@@ -325,9 +332,6 @@
325
332
  },
326
333
  "devDependencies": {
327
334
  "@arethetypeswrong/cli": "^0.18.5",
328
- "@astrojs/react": "^6.0.1",
329
- "@astrojs/starlight": "^0.41.3",
330
- "@astrojs/starlight-tailwind": "^5.0.0",
331
335
  "@codecov/vite-plugin": "^2.0.1",
332
336
  "@inertiajs/react": "^3.6.1",
333
337
  "@inertiajs/vite": "^3.6.1",
@@ -342,13 +346,10 @@
342
346
  "@vitejs/plugin-react": "^6.0.2",
343
347
  "@vitest/browser-playwright": "^4.1.8",
344
348
  "@vitest/coverage-v8": "^4.1.8",
345
- "astro": "^7.0.7",
346
- "astro-og-canvas": "^0.13.0",
347
349
  "jsdom": "^30.0.1",
348
350
  "laravel-echo": "^2.3.7",
349
351
  "laravel-vite-plugin": "^3.0.0",
350
352
  "lucide-static": "^1.24.0",
351
- "mermaid": "^11.16.0",
352
353
  "oxfmt": "^0.61.0",
353
354
  "oxlint": "^1.68.0",
354
355
  "playwright": "^1.60.0",
@@ -357,7 +358,6 @@
357
358
  "react": "^19.2.0",
358
359
  "react-dom": "^19.2.0",
359
360
  "sonda": "^0.14.0",
360
- "starlight-llms-txt": "^0.11.0",
361
361
  "tailwindcss": "^4.0.0",
362
362
  "tw-animate-css": "^1.4.0",
363
363
  "type-coverage": "^2.29.7",
@@ -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=new Date(String(e));if(Number.isNaN(r.getTime()))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=new Date(String(e));if(Number.isNaN(n.getTime()))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};