@lattice-php/lattice 0.53.1 → 0.54.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,5 +1,5 @@
1
1
  import { ActionNodeType, FormNodeType, FragmentNodeType, LayoutNodeType, NodeType, NotificationNodeType, RemoteNodeType, TableNodeType, UiNodeType } from './types/generated.js';
2
- type OptInNodeType = "api-reference" | "chat.box" | "chat.part.text" | "chat.part.tool-call" | "map" | "media.library" | "search.box" | "search.categories" | "search.input" | "search.preview" | "search.recent" | "search.results" | "signature" | "timeline" | "tree";
2
+ type OptInNodeType = "api-reference" | "calendar" | "chat.box" | "chat.part.text" | "chat.part.tool-call" | "map" | "media.library" | "search.box" | "search.categories" | "search.input" | "search.preview" | "search.recent" | "search.results" | "signature" | "tree";
3
3
  type RegisteredNodeType = ActionNodeType | FormNodeType | FragmentNodeType | LayoutNodeType | NotificationNodeType | OptInNodeType | RemoteNodeType | TableNodeType | UiNodeType;
4
4
  type Assert<T extends true> = T;
5
5
  export type AllNodeTypesRegistered = Assert<Exclude<NodeType, RegisteredNodeType> extends never ? true : false>;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","names":[],"sources":["../resources/js/registry.ts"],"sourcesContent":["import { createRegistry } from \"@lattice-php/core/registry\";\nimport { navigationPlugin } from \"./inertia-navigation\";\nimport type {\n ActionNodeType,\n FormNodeType,\n FragmentNodeType,\n LayoutNodeType,\n NodeType,\n NotificationNodeType,\n RemoteNodeType,\n TableNodeType,\n UiNodeType,\n} from \"@lattice-php/lattice/types/generated\";\nimport { actionComponents } from \"@lattice-php/action/plugin\";\nimport { formComponents } from \"@lattice-php/form\";\nimport { fragmentComponents } from \"./fragments/plugin\";\nimport { layoutComponents } from \"./layout/plugin\";\nimport { notificationsComponents } from \"./notifications/plugin\";\nimport { remoteComponents } from \"./remote/plugin\";\nimport { tableComponents } from \"@lattice-php/table\";\nimport { uiComponents } from \"@lattice-php/ui\";\n\n// Opt-in packages whose plugins are not bundled in the framework registry —\n// a consuming app registers them itself when it opts into the package.\n// WireModelBuilder::buildAll() still discovers them for the framework\n// document's system-wide NodeType (every composer package that declares\n// extra.lattice.discover, not just the ones this workbench emits a module\n// for), so their node types are legitimately part of it and are acknowledged\n// here rather than belonging to a registered plugin's union.\ntype OptInNodeType =\n | \"api-reference\"\n | \"chat.box\"\n | \"chat.part.text\"\n | \"chat.part.tool-call\"\n | \"map\"\n | \"media.library\"\n | \"search.box\"\n | \"search.categories\"\n | \"search.input\"\n | \"search.preview\"\n | \"search.recent\"\n | \"search.results\"\n | \"signature\"\n | \"timeline\"\n | \"tree\";\n\n// Compile-time totality: every generated NodeType must belong to a registered\n// plugin's union, or be an acknowledged opt-in package above. A new PHP\n// domain fails here until its plugin exists (or it's added to the opt-in list).\ntype RegisteredNodeType =\n | ActionNodeType\n | FormNodeType\n | FragmentNodeType\n | LayoutNodeType\n | NotificationNodeType\n | OptInNodeType\n | RemoteNodeType\n | TableNodeType\n | UiNodeType;\ntype Assert<T extends true> = T;\nexport type AllNodeTypesRegistered = Assert<\n Exclude<NodeType, RegisteredNodeType> extends never ? true : false\n>;\n\nexport const registry = createRegistry(\n uiComponents,\n fragmentComponents,\n actionComponents,\n formComponents,\n layoutComponents,\n tableComponents,\n notificationsComponents,\n remoteComponents,\n navigationPlugin,\n);\n"],"mappings":";;;;;;;;;;;AAgEA,IAAa,WAAW,eACtB,cACA,oBACA,kBACA,gBACA,kBACA,iBACA,yBACA,kBACA,gBACF"}
1
+ {"version":3,"file":"registry.js","names":[],"sources":["../resources/js/registry.ts"],"sourcesContent":["import { createRegistry } from \"@lattice-php/core/registry\";\nimport { navigationPlugin } from \"./inertia-navigation\";\nimport type {\n ActionNodeType,\n FormNodeType,\n FragmentNodeType,\n LayoutNodeType,\n NodeType,\n NotificationNodeType,\n RemoteNodeType,\n TableNodeType,\n UiNodeType,\n} from \"@lattice-php/lattice/types/generated\";\nimport { actionComponents } from \"@lattice-php/action/plugin\";\nimport { formComponents } from \"@lattice-php/form\";\nimport { fragmentComponents } from \"./fragments/plugin\";\nimport { layoutComponents } from \"./layout/plugin\";\nimport { notificationsComponents } from \"./notifications/plugin\";\nimport { remoteComponents } from \"./remote/plugin\";\nimport { tableComponents } from \"@lattice-php/table\";\nimport { uiComponents } from \"@lattice-php/ui\";\n\n// Opt-in packages whose plugins are not bundled in the framework registry —\n// a consuming app registers them itself when it opts into the package.\n// WireModelBuilder::buildAll() still discovers them for the framework\n// document's system-wide NodeType (every composer package that declares\n// extra.lattice.discover, not just the ones this workbench emits a module\n// for), so their node types are legitimately part of it and are acknowledged\n// here rather than belonging to a registered plugin's union.\ntype OptInNodeType =\n | \"api-reference\"\n | \"calendar\"\n | \"chat.box\"\n | \"chat.part.text\"\n | \"chat.part.tool-call\"\n | \"map\"\n | \"media.library\"\n | \"search.box\"\n | \"search.categories\"\n | \"search.input\"\n | \"search.preview\"\n | \"search.recent\"\n | \"search.results\"\n | \"signature\"\n | \"tree\";\n\n// Compile-time totality: every generated NodeType must belong to a registered\n// plugin's union, or be an acknowledged opt-in package above. A new PHP\n// domain fails here until its plugin exists (or it's added to the opt-in list).\ntype RegisteredNodeType =\n | ActionNodeType\n | FormNodeType\n | FragmentNodeType\n | LayoutNodeType\n | NotificationNodeType\n | OptInNodeType\n | RemoteNodeType\n | TableNodeType\n | UiNodeType;\ntype Assert<T extends true> = T;\nexport type AllNodeTypesRegistered = Assert<\n Exclude<NodeType, RegisteredNodeType> extends never ? true : false\n>;\n\nexport const registry = createRegistry(\n uiComponents,\n fragmentComponents,\n actionComponents,\n formComponents,\n layoutComponents,\n tableComponents,\n notificationsComponents,\n remoteComponents,\n navigationPlugin,\n);\n"],"mappings":";;;;;;;;;;;AAgEA,IAAa,WAAW,eACtB,cACA,oBACA,kBACA,gBACA,kBACA,iBACA,yBACA,kBACA,gBACF"}
@@ -3,7 +3,7 @@ import { HttpMethod, Placement, Size, Translatable, Variant } from '@lattice-php
3
3
  import { Effect } from '@lattice-php/ui/effects/types';
4
4
  export type ActionNodeType = "action" | "action.bulk" | "action.group";
5
5
  export type Breadcrumbs = Record<string, never>;
6
- export type CalendarNodeType = "timeline";
6
+ export type CalendarNodeType = "calendar";
7
7
  export type Callouts = Record<string, never>;
8
8
  export type ChannelVisibility = "public" | "private" | "presence";
9
9
  export type ChatNodeType = "chat.box" | "chat.part.text" | "chat.part.tool-call";
@@ -71,7 +71,7 @@ export type MenuItem = {
71
71
  prefix: Affix | null;
72
72
  suffix: Affix | null;
73
73
  };
74
- export type NodeType = "action" | "action.bulk" | "action.group" | "api-reference" | "avatar" | "badge" | "breadcrumbs" | "button" | "callouts" | "card" | "chart" | "chat.box" | "chat.part.text" | "chat.part.tool-call" | "code-block" | "collapsible" | "description-list" | "dropdown" | "entry.badge" | "entry.boolean" | "entry.component" | "entry.date" | "entry.text" | "field.builder" | "field.checkbox" | "field.choice" | "field.color-picker" | "field.date-input" | "field.date-time-input" | "field.file-upload" | "field.hidden-input" | "field.media-picker" | "field.number-input" | "field.otp" | "field.password-input" | "field.pattern-input" | "field.repeater" | "field.rich-editor" | "field.select" | "field.text-input" | "field.textarea" | "field.time-input" | "field.toggle" | "floating-panel" | "form" | "fragment" | "grid" | "heading" | "icon" | "image" | "link" | "map" | "media.library" | "menu" | "menu-item" | "modal" | "notifications" | "outlet" | "progress" | "raw-block" | "remote.data-list" | "search.box" | "search.categories" | "search.input" | "search.preview" | "search.recent" | "search.results" | "section" | "segmented-control" | "separator" | "sidebar" | "sidebar.footer" | "signature" | "stack" | "tab" | "table" | "tabs" | "text" | "timeline" | "tooltip" | "topbar" | "tree" | "wizard" | "wizard-step";
74
+ export type NodeType = "action" | "action.bulk" | "action.group" | "api-reference" | "avatar" | "badge" | "breadcrumbs" | "button" | "calendar" | "callouts" | "card" | "chart" | "chat.box" | "chat.part.text" | "chat.part.tool-call" | "code-block" | "collapsible" | "description-list" | "dropdown" | "entry.badge" | "entry.boolean" | "entry.component" | "entry.date" | "entry.text" | "field.builder" | "field.checkbox" | "field.choice" | "field.color-picker" | "field.date-input" | "field.date-time-input" | "field.file-upload" | "field.hidden-input" | "field.media-picker" | "field.number-input" | "field.otp" | "field.password-input" | "field.pattern-input" | "field.repeater" | "field.rich-editor" | "field.select" | "field.text-input" | "field.textarea" | "field.time-input" | "field.toggle" | "floating-panel" | "form" | "fragment" | "grid" | "heading" | "icon" | "image" | "link" | "map" | "media.library" | "menu" | "menu-item" | "modal" | "notifications" | "outlet" | "progress" | "raw-block" | "remote.data-list" | "search.box" | "search.categories" | "search.input" | "search.preview" | "search.recent" | "search.results" | "section" | "segmented-control" | "separator" | "sidebar" | "sidebar.footer" | "signature" | "stack" | "tab" | "table" | "tabs" | "text" | "tooltip" | "topbar" | "tree" | "wizard" | "wizard-step";
75
75
  export type NotificationItem = {
76
76
  readonly actions: Node[];
77
77
  readonly body: Translatable | string | null;
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.53.1"
2
+ "version": "0.54.0"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lattice-php/lattice",
3
- "version": "0.53.1",
3
+ "version": "0.54.0",
4
4
  "description": "Server-driven React components for Laravel and Inertia.",
5
5
  "license": "MIT",
6
6
  "author": "Manuel Christlieb <manuel@christlieb.eu>",
@@ -113,11 +113,11 @@
113
113
  "typecheck": "tsc --noEmit"
114
114
  },
115
115
  "dependencies": {
116
- "@lattice-php/action": "0.53.1",
117
- "@lattice-php/core": "0.53.1",
118
- "@lattice-php/form": "0.53.1",
119
- "@lattice-php/table": "0.53.1",
120
- "@lattice-php/ui": "0.53.1",
116
+ "@lattice-php/action": "0.54.0",
117
+ "@lattice-php/core": "0.54.0",
118
+ "@lattice-php/form": "0.54.0",
119
+ "@lattice-php/table": "0.54.0",
120
+ "@lattice-php/ui": "0.54.0",
121
121
  "@lattice-php/vite-svg-sprite": "^0.3.0",
122
122
  "@atlaskit/pragmatic-drag-and-drop": "^2.0.2",
123
123
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",