@arkstack/inertia 0.19.1 → 0.19.3

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/README.md CHANGED
@@ -40,9 +40,9 @@ inertia().share('appName', config('app.name'))
40
40
  // Partial-reload helpers
41
41
  inertia('Users/Index', {
42
42
  users: await User.all(),
43
- stats: Inertia.lazy(() => expensiveStats()), // only on a partial reload that asks for it
44
- chart: Inertia.defer(() => buildChart()), // fetched by the client after load
45
- auth: Inertia.always({ user: request.user }), // always present, even on partials
43
+ stats: Inertia.lazy(() => expensiveStats()), // only on a partial reload that asks for it
44
+ chart: Inertia.defer(() => buildChart()), // fetched by the client after load
45
+ auth: Inertia.always({ user: request.user }), // always present, even on partials
46
46
  })
47
47
 
48
48
  // Redirects (302 -> 303 for PUT/PATCH/DELETE) and external/full-page visits
package/dist/index.js CHANGED
@@ -198,7 +198,7 @@ const renderRootHtml = async (page, config) => {
198
198
  }
199
199
  try {
200
200
  const { view } = await import("@arkstack/view");
201
- const { registerInertiaTags } = await import("./tags-C-fCNM8D.js");
201
+ const { registerInertiaTags } = await import("./tags-BzFUXcwV.js");
202
202
  const factory = view();
203
203
  registerInertiaTags(factory);
204
204
  if (factory.exists(config.root_view)) return await view(config.root_view, {
@@ -4,9 +4,9 @@ const registered = /* @__PURE__ */ new WeakSet();
4
4
  /**
5
5
  * Build an Edge tag compiler that outputs a template data variable raw (falling
6
6
  * back to an empty string when it is absent).
7
- *
8
- * @param name
9
- * @returns
7
+ *
8
+ * @param name
9
+ * @returns
10
10
  */
11
11
  const outputVariable = (name) => {
12
12
  return (parser, buffer, token) => {
@@ -24,9 +24,9 @@ const outputVariable = (name) => {
24
24
  * Both read the values the adapter passes to the root template, so they replace
25
25
  * the equivalent `{{{ inertia }}}` / `{{{ inertiaHead }}}` interpolations.
26
26
  * Idempotent per factory.
27
- *
28
- * @param factory
29
- * @returns
27
+ *
28
+ * @param factory
29
+ * @returns
30
30
  */
31
31
  const registerInertiaTags = (factory) => {
32
32
  if (registered.has(factory)) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/inertia",
3
- "version": "0.19.1",
3
+ "version": "0.19.3",
4
4
  "type": "module",
5
5
  "description": "InertiaJS server-side adapter for Arkstack, building the modern monolith with server-driven SPAs.",
6
6
  "homepage": "https://arkstack.toneflix.net/guide/inertia",
@@ -33,13 +33,13 @@
33
33
  "./package.json": "./package.json"
34
34
  },
35
35
  "dependencies": {
36
- "@arkstack/common": "^0.19.1"
36
+ "@arkstack/common": "^0.19.3"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@h3ravel/musket": "^2.2.13",
40
- "@arkstack/contract": "^0.19.1",
41
- "@arkstack/view": "^0.19.1",
42
- "@arkstack/http": "^0.19.1"
40
+ "@arkstack/http": "^0.19.3",
41
+ "@arkstack/contract": "^0.19.3",
42
+ "@arkstack/view": "^0.19.3"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "@arkstack/view": {