@revealui/core 0.0.1-pre.0 → 0.0.1-pre.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/NOTICE ADDED
@@ -0,0 +1,34 @@
1
+ RevealUI Framework
2
+ Copyright 2025 RevealUI Team
3
+
4
+ This product includes software developed by the RevealUI Team.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+
18
+ ---
19
+
20
+ Third-Party Software Components
21
+
22
+ This software includes the following third-party components:
23
+
24
+ For a complete list of all third-party dependencies and their licenses,
25
+ please see THIRD_PARTY_LICENSES.md.
26
+
27
+ For attributions of adapted code, please see ATTRIBUTIONS.md.
28
+
29
+ ---
30
+
31
+ RevealUI Framework
32
+ https://revealui.com
33
+ https://github.com/RevealUIStudio/reveal
34
+
@@ -1,3 +1,3 @@
1
1
  // eslint doesn't seem to support `package.json#exports`.
2
- export * from "./dist/shared/RenderErrorPage.mjs";
3
- export { default } from "./dist/shared/RenderErrorPage.mjs";
2
+ // RenderErrorPage is a legacy alias for render() - re-export for backwards compatibility
3
+ export { render as RenderErrorPage, render as default } from "../core/router/abort.js";
@@ -50,6 +50,70 @@ async function main() {
50
50
  } catch (error) {
51
51
  console.warn("Could not create dist/index.d.ts:", error);
52
52
  }
53
+
54
+ // Create dist/shared directory and copy/symlink files for package.json exports
55
+ const sharedDir = path.join("dist", "shared");
56
+ await fs.mkdir(sharedDir, { recursive: true });
57
+
58
+ // Copy files that package.json exports expect in shared/
59
+ const sharedFiles = [
60
+ { src: "dist/exports/RenderErrorPage.js", dest: "dist/shared/RenderErrorPage.js" },
61
+ { src: "dist/exports/abort.js", dest: "dist/shared/abort.js" },
62
+ { src: "dist/exports/routing.js", dest: "dist/shared/route/routing.js" },
63
+ ];
64
+
65
+ for (const file of sharedFiles) {
66
+ try {
67
+ const destPath = path.join(process.cwd(), file.dest);
68
+ const destDir = path.dirname(destPath);
69
+ await fs.mkdir(destDir, { recursive: true });
70
+ await fs.copyFile(path.join(process.cwd(), file.src), destPath);
71
+ } catch (error) {
72
+ console.warn(`Could not copy ${file.src} to ${file.dest}:`, error);
73
+ }
74
+ }
75
+
76
+ // Create .d.ts files for shared exports
77
+ const sharedTypeFiles = [
78
+ {
79
+ dest: "dist/shared/RenderErrorPage.d.ts",
80
+ content: `// RenderErrorPage is a legacy alias for render() - re-export for backwards compatibility
81
+ export { render as RenderErrorPage, render as default } from "../core/router/abort.js";
82
+ export type { AbortStatusCode, ErrorAbort } from "../core/router/abort.js";
83
+ `,
84
+ },
85
+ ];
86
+
87
+ for (const file of sharedTypeFiles) {
88
+ try {
89
+ const destPath = path.join(process.cwd(), file.dest);
90
+ const destDir = path.dirname(destPath);
91
+ await fs.mkdir(destDir, { recursive: true });
92
+ await fs.writeFile(destPath, file.content, "utf-8");
93
+ } catch (error) {
94
+ console.warn(`Could not create ${file.dest}:`, error);
95
+ }
96
+ }
97
+
98
+ // Copy getPageContext and modifyUrl if they exist in core
99
+ const coreSharedFiles = [
100
+ { src: "dist/core/router/getPageContext.js", dest: "dist/shared/getPageContext.js" },
101
+ { src: "dist/core/router/modifyUrl.js", dest: "dist/shared/modifyUrl.js" },
102
+ ];
103
+
104
+ for (const file of coreSharedFiles) {
105
+ try {
106
+ const srcPath = path.join(process.cwd(), file.src);
107
+ const destPath = path.join(process.cwd(), file.dest);
108
+ if (await fs.access(srcPath).then(() => true).catch(() => false)) {
109
+ const destDir = path.dirname(destPath);
110
+ await fs.mkdir(destDir, { recursive: true });
111
+ await fs.copyFile(srcPath, destPath);
112
+ }
113
+ } catch (error) {
114
+ // File doesn't exist, skip
115
+ }
116
+ }
53
117
  }
54
118
 
55
119
  main().catch(console.error);
@@ -0,0 +1,3 @@
1
+ // RenderErrorPage is a legacy alias for render() - re-export for backwards compatibility
2
+ export { render as RenderErrorPage, render as default } from "../core/router/abort.js";
3
+ export type { AbortStatusCode, ErrorAbort } from "../core/router/abort.js";
@@ -0,0 +1,3 @@
1
+ // eslint doesn't seem to support `package.json#exports`.
2
+ // RenderErrorPage is a legacy alias for render() - re-export for backwards compatibility
3
+ export { render as RenderErrorPage, render as default } from "../core/router/abort.js";
@@ -0,0 +1,3 @@
1
+ // eslint doesn't seem to support `package.json#exports`.
2
+ export * from "./dist/shared/abort.mjs";
3
+ export { default } from "./dist/shared/abort.mjs";
@@ -0,0 +1,3 @@
1
+ // eslint doesn't seem to support `package.json#exports`.
2
+ export * from "./dist/shared/route/routing.mjs";
3
+ export { default } from "./dist/router/route/routing.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revealui/core",
3
- "version": "0.0.1-pre.0",
3
+ "version": "0.0.1-pre.1",
4
4
  "description": "Modern React 19 framework with Next.js 16, Vike, and PayloadCMS integration. Production-ready, Vercel-optimized, and enterprise-grade.",
5
5
  "repository": {
6
6
  "type": "git",