@lattice-php/lattice 0.63.1 → 0.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.d.ts +9 -0
- package/dist/components.js +3 -0
- package/dist/preview.d.ts +25 -0
- package/dist/preview.js +41 -0
- package/dist/preview.js.map +1 -0
- package/dist/registry.js +2 -2
- package/dist/runtime.js +2 -2
- package/dist-standalone/chunks/{chart-view-DDMYuMfl.js → chart-view-BLKUnDG_.js} +1 -1
- package/dist-standalone/chunks/{date-picker-view-C900j9vx.js → date-picker-view-6fknTpXm.js} +1 -1
- package/dist-standalone/chunks/{pattern-input-view-fft15W-u.js → pattern-input-view-DjcecGRf.js} +1 -1
- package/dist-standalone/chunks/{rich-editor-view-NSVl9YGe.js → rich-editor-view-Bi0zrhAu.js} +1 -1
- package/dist-standalone/chunks/{runtime-2lXh8My2.js → runtime-M6AwokMC.js} +8 -8
- package/dist-standalone/chunks/{subscriptions-C7Y-lvpC.js → subscriptions-DxGDQ5HF.js} +1 -1
- package/dist-standalone/lattice.js +1 -1
- package/dist-standalone/manifest.json +1 -1
- package/dist-standalone/runtime.js +1 -1
- package/package.json +15 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{B as n,V as r,nn as i}from"./runtime-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{B as n,V as r,nn as i}from"./runtime-M6AwokMC.js";import{t as a}from"./jsx-runtime-NZYk81nU.js";import{c as o}from"./instance-D6cXaqIT.js";import{useEcho as s,useEchoPresence as c,useEchoPublic as l}from"./dist-D2qBbka0.js";var u=e(t(),1);function d(e,t,n){return e.map(e=>f(e,t,n))}function f(e,t,i){if(e.type!==`toast`)return e;let a=e.props;if(typeof a!=`object`||!a)return e;let o=a.message;return n(o)?{...e,props:{...a,message:r(o,t,i)}}:e}var p=e(a(),1);function m(e){let{t}=o(`lattice`),n=i();return(0,u.useCallback)(r=>{let i=typeof r==`object`&&r?r:{};n(d(e.effects,i,t))},[n,e,t])}function h({listener:e}){return l(e.channel,e.events,m(e)),null}function g({listener:e}){return s(e.channel,e.events,m(e)),null}function _({listener:e}){return c(e.channel,e.events,m(e)),null}function v({listener:e}){switch(e.visibility){case`private`:return(0,p.jsx)(g,{listener:e});case`presence`:return(0,p.jsx)(_,{listener:e});default:return(0,p.jsx)(h,{listener:e})}}function y({listeners:e}){return(0,p.jsx)(p.Fragment,{children:e.map((e,t)=>(0,p.jsx)(v,{listener:e},`${e.visibility}:${e.channel}:${t}`))})}export{y as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./chunks/dist-D2qBbka0.js","./chunks/rolldown-runtime-hePW80VL.js","./chunks/react-CwJFpaho.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{g as e,ln as t,nr as n,tr as r,x as i}from"./chunks/runtime-
|
|
2
|
+
import{g as e,ln as t,nr as n,tr as r,x as i}from"./chunks/runtime-M6AwokMC.js";function a(){return console.warn(`[lattice] The data-lattice-config script holds invalid JSON; booting with defaults.`),{}}function o(e){let t=e.querySelector(`script[data-lattice-config]`);if(!t?.textContent)return{};try{let e=JSON.parse(t.textContent);return typeof e!=`object`||!e||Array.isArray(e)?a():e}catch{return a()}}var s=o(document);async function c(){let a=await r(s.plugins??[]);if(s.refreshRefUrl&&t(s.refreshRefUrl),s.echo)try{let{configureEcho:e}=await n(async()=>{let{configureEcho:e}=await import(`./chunks/dist-D2qBbka0.js`);return{configureEcho:e}},__vite__mapDeps([0,1,2]),import.meta.url);e(s.echo)}catch(e){console.warn(`[lattice] Failed to load the realtime chunk; continuing without Echo.`,e)}e({plugins:a,...s.spriteUrl?{sprite:{href:s.spriteUrl}}:{},defaults:{visitOptions:i}})}var l=c();export{l as booted};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,$n as t,$t as n,A as r,An as i,At as a,Bt as o,C as s,Cn as c,Ct as l,D as u,Dn as d,Dt as f,E as p,En as m,Et as h,F as g,Ft as _,Gt as v,H as y,Ht as b,I as x,It as S,J as C,Jt as w,Kt as T,L as E,Lt as D,M as O,Mn as k,Mt as A,N as j,Nn as M,Nt as N,On as P,Ot as F,P as I,Pn as L,Pt as R,Q as z,Qn as B,Qt as V,R as H,Rt as U,S as W,Sn as G,St as K,T as q,Tn as J,Tt as Y,U as X,Ut as Z,Vt as Q,W as $,Wt as ee,X as te,Xt as ne,Y as re,Yt as ie,Z as ae,Zn as oe,Zt as se,_ as ce,_n as le,a as ue,an as de,at as fe,b as pe,bn as me,bt as he,c as ge,cn as _e,ct as ve,dn as ye,dt as be,en as xe,er as Se,et as Ce,fn as we,g as Te,gn as Ee,h as De,hn as Oe,i as ke,in as Ae,it as je,jn as Me,jt as Ne,k as Pe,kn as Fe,kt as Ie,ln as Le,lt as Re,m as ze,mn as Be,n as Ve,nn as He,nt as Ue,o as We,on as Ge,p as Ke,pn as qe,q as Je,qt as Ye,r as Xe,rn as Ze,rt as Qe,s as $e,sn as et,st as tt,t as nt,tn as rt,tr as it,tt as at,un as ot,ut as st,v as ct,vn as lt,w as ut,wn as dt,wt as ft,x as pt,xn as mt,xt as ht,y as gt,yn as _t,yt as vt,z as yt,zt as bt}from"./chunks/runtime-
|
|
1
|
+
import{$ as e,$n as t,$t as n,A as r,An as i,At as a,Bt as o,C as s,Cn as c,Ct as l,D as u,Dn as d,Dt as f,E as p,En as m,Et as h,F as g,Ft as _,Gt as v,H as y,Ht as b,I as x,It as S,J as C,Jt as w,Kt as T,L as E,Lt as D,M as O,Mn as k,Mt as A,N as j,Nn as M,Nt as N,On as P,Ot as F,P as I,Pn as L,Pt as R,Q as z,Qn as B,Qt as V,R as H,Rt as U,S as W,Sn as G,St as K,T as q,Tn as J,Tt as Y,U as X,Ut as Z,Vt as Q,W as $,Wt as ee,X as te,Xt as ne,Y as re,Yt as ie,Z as ae,Zn as oe,Zt as se,_ as ce,_n as le,a as ue,an as de,at as fe,b as pe,bn as me,bt as he,c as ge,cn as _e,ct as ve,dn as ye,dt as be,en as xe,er as Se,et as Ce,fn as we,g as Te,gn as Ee,h as De,hn as Oe,i as ke,in as Ae,it as je,jn as Me,jt as Ne,k as Pe,kn as Fe,kt as Ie,ln as Le,lt as Re,m as ze,mn as Be,n as Ve,nn as He,nt as Ue,o as We,on as Ge,p as Ke,pn as qe,q as Je,qt as Ye,r as Xe,rn as Ze,rt as Qe,s as $e,sn as et,st as tt,t as nt,tn as rt,tr as it,tt as at,un as ot,ut as st,v as ct,vn as lt,w as ut,wn as dt,wt as ft,x as pt,xn as mt,xt as ht,y as gt,yn as _t,yt as vt,z as yt,zt as bt}from"./chunks/runtime-M6AwokMC.js";import{a as xt,n as St,r as Ct,s as wt,t as Tt}from"./chunks/locale-BZOrJtMq.js";import{i as Et,r as Dt}from"./chunks/registry-context-gXwNT8GJ.js";import{d as Ot,p as kt,u as At}from"./chunks/floating-ui.dom-CAMzcZKV.js";import{a as jt,c as Mt,n as Nt,s as Pt}from"./chunks/instance-D6cXaqIT.js";import{i as Ft,n as It,r as Lt,t as Rt}from"./chunks/timezone-Ckl1gbqB.js";import{t as zt}from"./chunks/input-0lNoXsuO.js";import{i as Bt,t as Vt}from"./chunks/color-CXV-Y5Qv.js";export{ee as ActionConfirmOverlay,je as AddRowMenu,j as Badge,m as Button,ve as Checkbox,r as CodeBlock,te as Combobox,v as ConfirmDialog,Je as CopyButton,Ee as DateTime,T as Dialog,Ye as DialogContent,w as DialogHeader,ie as DialogTitle,ce as EventBridge,f as FieldScopeProvider,Re as FormFieldFrame,At as Icon,tt as IconButton,d as IconRenderer,P as IconRendererProvider,be as InfoTooltip,zt as Input,wt as LATTICE_EVENT,we as LATTICE_REF_HEADER,st as Label,me as LocaleReload,se as MODAL_MISSING_ERROR,x as NativeSelect,mt as NavigationProvider,X as OutletProvider,O as PreviewableImage,De as Provider,ge as RICH_EDITOR_EXTENSION,Ie as ROW_ID_KEY,W as RealtimeListeners,xe as RenderNode,rt as Renderer,Qe as RowKeyInputs,s as SchemaLayout,Ce as SegmentedControl,e as SimpleField,Oe as Spinner,Ot as SpriteProvider,re as Textarea,$e as ToolbarIconButton,Nt as UI_NAMESPACE,a as addRow,nt as announce,et as apiFetch,_e as apiJson,D as appendPath,Ve as attachTreeItemInstruction,Me as builtinEffectHandlers,ze as callAction,kt as cn,Vt as coerceColor,I as columnCell,We as combine,dt as configureI18n,le as configureI18nFromPageProps,C as copyToClipboard,Te as createLatticeApp,ct as createLayoutResolver,gt as createPageResolver,oe as createRegistry,Tt as currentLocale,Rt as currentTimezone,G as defaultNavigation,Ze as dispatchActionError,Ae as dispatchEffects,ke as draggable,ue as dropTargetForElements,Ne as duplicateRow,B as eagerComponent,k as effectHandler,J as enableBackend,A as ensureRowIds,t as extendRegistry,Xe as extractTreeItemInstruction,Q as fieldProps,Ft as formatDateValue,de as getActionEffects,E as getBulkActionNodes,U as getPath,jt as i18n,lt as i18nConfigFromPageProps,Fe as inertiaNavigation,ut as initializeAppearance,Ge as isActionEffect,y as layoutComponents,Se as lazyComponent,it as loadPluginModules,St as localeHeader,M as mergeEffectHandlers,N as moveRow,i as navigationPlugin,Be as nodeIdentity,pe as pageComponentName,u as registry,R as removeRow,ae as requestSignedUpload,L as router,ht as rowSchemaFor,K as rowTemplatesOf,ne as runAction,_ as seedRows,Ct as setLocale,bt as setPath,Le as setRefRefreshEndpoint,It as setTimezone,o as toHtmlName,Bt as toneProps,Pt as translate,q as updateAppearance,vt as useAction,p as useAppearance,Ke as useCallAction,g as useColumnRegistry,Dt as useComponentRegistry,he as useDebouncedCallback,fe as useDependentField,He as useEffectDispatcher,V as useEmbeddedModal,Et as useExtensionRegistry,l as useFieldCommit,F as useFieldScope,Z as useFormContext,ft as useFormValue,Y as useFormValues,Pe as useFormatContext,xt as useLocale,_t as useLocaleOptions,n as useModal,c as useNavigation,$ as useOutlet,Ue as usePersistentState,at as useRowCollection,h as useSetFormValue,Mt as useT,yt as useTable,H as useTableSelection,Lt as useTimezone,b as walkFields,ye as withHeaders,qe as withRefHeader,S as withRowId,pt as withVisitHeaders,z as xhrTransfer,ot as xsrfToken};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lattice-php/lattice",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.1",
|
|
4
4
|
"description": "Server-driven React components for Laravel and Inertia.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Manuel Christlieb <manuel@christlieb.eu>",
|
|
@@ -32,6 +32,15 @@
|
|
|
32
32
|
"import": "./dist/index.js"
|
|
33
33
|
},
|
|
34
34
|
"./css": "./dist/lattice.css",
|
|
35
|
+
"./css-full": "./dist-standalone/lattice.css",
|
|
36
|
+
"./components": {
|
|
37
|
+
"types": "./dist/components.d.ts",
|
|
38
|
+
"import": "./dist/components.js"
|
|
39
|
+
},
|
|
40
|
+
"./preview": {
|
|
41
|
+
"types": "./dist/preview.d.ts",
|
|
42
|
+
"import": "./dist/preview.js"
|
|
43
|
+
},
|
|
35
44
|
"./appearance": {
|
|
36
45
|
"types": "./dist/appearance/index.d.ts",
|
|
37
46
|
"import": "./dist/appearance/index.js"
|
|
@@ -109,11 +118,11 @@
|
|
|
109
118
|
"typecheck": "tsc --noEmit"
|
|
110
119
|
},
|
|
111
120
|
"dependencies": {
|
|
112
|
-
"@lattice-php/action": "0.
|
|
113
|
-
"@lattice-php/core": "0.
|
|
114
|
-
"@lattice-php/form": "0.
|
|
115
|
-
"@lattice-php/table": "0.
|
|
116
|
-
"@lattice-php/ui": "0.
|
|
121
|
+
"@lattice-php/action": "0.64.1",
|
|
122
|
+
"@lattice-php/core": "0.64.1",
|
|
123
|
+
"@lattice-php/form": "0.64.1",
|
|
124
|
+
"@lattice-php/table": "0.64.1",
|
|
125
|
+
"@lattice-php/ui": "0.64.1",
|
|
117
126
|
"@lattice-php/vite-svg-sprite": "^0.3.0",
|
|
118
127
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.2",
|
|
119
128
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
|