@arkstack/view 0.17.16 → 0.17.18
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/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { t as clearRouterViewPlugin } from "./plugins-Crhr7ifw.js";
|
|
3
3
|
import edge, { Edge, Edge as Edge$1 } from "edge.js";
|
|
4
4
|
import { ParserTagDefinitionContract } from "edge.js/types";
|
|
5
|
-
|
|
6
5
|
//#region src/ViewInstance.d.ts
|
|
7
6
|
declare class ViewInstance implements PromiseLike<string> {
|
|
8
7
|
readonly name: string;
|
|
@@ -130,23 +129,19 @@ declare class ViewFactory {
|
|
|
130
129
|
/**
|
|
131
130
|
* The tag name
|
|
132
131
|
*/
|
|
133
|
-
|
|
134
132
|
tagName: string,
|
|
135
133
|
/**
|
|
136
134
|
* Tag accepts content within the opening and
|
|
137
135
|
* closing tags
|
|
138
136
|
*/
|
|
139
|
-
|
|
140
137
|
block: boolean,
|
|
141
138
|
/**
|
|
142
139
|
* Tag accepts parameters
|
|
143
140
|
*/
|
|
144
|
-
|
|
145
141
|
seekable: boolean,
|
|
146
142
|
/**
|
|
147
143
|
* The parser needs the `compile` method on every tag
|
|
148
144
|
*/
|
|
149
|
-
|
|
150
145
|
compiler: ParserTagDefinitionContract['compile']): void;
|
|
151
146
|
/**
|
|
152
147
|
* Flush all shared data. This will remove all data that has been shared with all views.
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as normalizeViewErrors, a as viteReactRefresh, c as collectViewData, d as runWithViewData, f as ViewInstance, g as ViewErrorBag, h as view, i as registerViteTag, l as enterViewData, m as resolvePackageViewsPath, n as View, o as viteTags, p as parsePackageViewName, r as ViewFactory, s as clearViewData, t as clearRouterViewPlugin, u as getViewData } from "./plugins-
|
|
1
|
+
import { _ as normalizeViewErrors, a as viteReactRefresh, c as collectViewData, d as runWithViewData, f as ViewInstance, g as ViewErrorBag, h as view, i as registerViteTag, l as enterViewData, m as resolvePackageViewsPath, n as View, o as viteTags, p as parsePackageViewName, r as ViewFactory, s as clearViewData, t as clearRouterViewPlugin, u as getViewData } from "./plugins-Dnz7jf8I.js";
|
|
2
2
|
import edge, { Edge } from "edge.js";
|
|
3
3
|
export { Edge, View, ViewErrorBag, ViewFactory, ViewInstance, clearRouterViewPlugin, clearViewData, collectViewData, edge, enterViewData, getViewData, normalizeViewErrors, parsePackageViewName, registerViteTag, resolvePackageViewsPath, runWithViewData, view, viteReactRefresh, viteTags };
|
|
@@ -222,7 +222,8 @@ const parsePackageViewName = (name) => {
|
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
224
|
const resolvePackageViewsPath = (nodePackageName, viewPath = "resources/views") => {
|
|
225
|
-
const
|
|
225
|
+
const packageRoot = resolve(Arkstack.rootDir(), "node_modules", nodePackageName);
|
|
226
|
+
const viewsPath = resolve(packageRoot, viewPath);
|
|
226
227
|
if (!existsSync(viewsPath)) throw new Error(`Package views directory not found: ${viewsPath}`);
|
|
227
228
|
return viewsPath;
|
|
228
229
|
};
|
|
@@ -348,7 +349,8 @@ const productionTags = (entries, manifestPath, buildDir) => {
|
|
|
348
349
|
const viteTags = (entries, options = {}) => {
|
|
349
350
|
const list = (Array.isArray(entries) ? entries : [entries]).filter(Boolean);
|
|
350
351
|
if (options.hot ?? nodeEnv() !== "prod") return devTags(list, options.devUrl ?? env("VITE_DEV_URL", "http://localhost:5173"));
|
|
351
|
-
|
|
352
|
+
const manifestPath = options.manifest ?? join(Arkstack.rootDir(), "public", "build", ".vite", "manifest.json");
|
|
353
|
+
return productionTags(list, manifestPath, options.buildDir ?? "/build/");
|
|
352
354
|
};
|
|
353
355
|
/**
|
|
354
356
|
* Resolve the React Refresh preamble for `@vitejs/plugin-react`.
|
package/dist/setup.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/view",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "View module for Arkstack, providing template rendering and view integration utilities.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net/guide/views",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"edge.js": "^6.5.0",
|
|
37
|
-
"@arkstack/contract": "^0.17.
|
|
37
|
+
"@arkstack/contract": "^0.17.18"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@h3ravel/musket": "^2.2.
|
|
41
|
-
"clear-router": "^2.9.
|
|
42
|
-
"@arkstack/common": "^0.17.
|
|
43
|
-
"@arkstack/foundry": "^0.17.
|
|
40
|
+
"@h3ravel/musket": "^2.2.13",
|
|
41
|
+
"clear-router": "^2.9.3",
|
|
42
|
+
"@arkstack/common": "^0.17.18",
|
|
43
|
+
"@arkstack/foundry": "^0.17.18"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"@h3ravel/musket": {
|