ionbeam 1.0.0-alpha.2 → 1.0.0-alpha.4

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.
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "_version": "2.0.0",
4
+ "compilerOptions": {
5
+ "target": "ES2023",
6
+ "module": "es2022",
7
+ "lib": [
8
+ "ES2023"
9
+ ],
10
+ "strict": true,
11
+ "esModuleInterop": true,
12
+ "skipLibCheck": true,
13
+ "forceConsistentCasingInFileNames": true,
14
+ "resolveJsonModule": true,
15
+ "declaration": true,
16
+ "declarationMap": true,
17
+ "sourceMap": true,
18
+ "moduleResolution": "bundler",
19
+ "jsx": "react-jsx"
20
+ }
21
+ }
@@ -1,7 +1,8 @@
1
1
  import { JSX } from "react";
2
- export interface PageProps {
2
+ interface Props {
3
3
  title: string;
4
4
  children: React.ReactNode;
5
5
  }
6
- export declare const Page: ({ children, title }: PageProps) => JSX.Element;
6
+ export declare const Page: ({ children, title }: Props) => JSX.Element;
7
+ export {};
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Page/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5B,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,IAAI,GAAI,qBAAqB,SAAS,KAAG,GAAG,CAAC,OAkBzD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Page/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5B,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,IAAI,GAAI,qBAAqB,KAAK,KAAG,GAAG,CAAC,OAoBrD,CAAC"}
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useAssets } from "../../utils/assets-context.js";
3
3
  export const Page = ({ children, title }) => {
4
4
  const { styleSheet, clientScript } = useAssets();
5
- return (_jsxs("html", { lang: "en", children: [_jsxs("head", { children: [_jsx("meta", { charSet: "UTF-8" }), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }), _jsx("title", { children: title }), styleSheet && _jsx("link", { rel: "stylesheet", href: `/${styleSheet}` }), clientScript && _jsx("script", { src: `/${clientScript}`, defer: true })] }), _jsx("body", { children: children })] }));
5
+ return (_jsxs("html", { lang: "en", children: [_jsxs("head", { children: [_jsx("meta", { charSet: "UTF-8" }), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }), _jsx("title", { children: title }), _jsx("script", { src: "https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js" }), styleSheet && _jsx("link", { rel: "stylesheet", href: `/${styleSheet}` }), clientScript && _jsx("script", { src: `/${clientScript}`, defer: true })] }), _jsx("body", { children: children })] }));
6
6
  };
7
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Page/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAO1D,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAa,EAAe,EAAE;IAClE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC;IAEjD,OAAO,CACL,gBAAM,IAAI,EAAC,IAAI,aACb,2BACE,eAAM,OAAO,EAAC,OAAO,GAAG,EACxB,eAAM,IAAI,EAAC,UAAU,EAAC,OAAO,EAAC,uCAAuC,GAAG,EACxE,0BAAQ,KAAK,GAAS,EACrB,UAAU,IAAI,eAAM,GAAG,EAAC,YAAY,EAAC,IAAI,EAAE,IAAI,UAAU,EAAE,GAAI,EAC/D,YAAY,IAAI,iBAAQ,GAAG,EAAE,IAAI,YAAY,EAAE,EAAE,KAAK,SAAG,IACrD,EAEP,yBACG,QAAQ,GACJ,IACF,CACR,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Page/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAO1D,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAS,EAAe,EAAE;IAC9D,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC;IAEjD,OAAO,CACL,gBAAM,IAAI,EAAC,IAAI,aACb,2BACE,eAAM,OAAO,EAAC,OAAO,GAAG,EACxB,eAAM,IAAI,EAAC,UAAU,EAAC,OAAO,EAAC,uCAAuC,GAAG,EACxE,0BAAQ,KAAK,GAAS,EACtB,iBAAQ,GAAG,EAAC,8DAA8D,GAAU,EAEnF,UAAU,IAAI,eAAM,GAAG,EAAC,YAAY,EAAC,IAAI,EAAE,IAAI,UAAU,EAAE,GAAI,EAC/D,YAAY,IAAI,iBAAQ,GAAG,EAAE,IAAI,YAAY,EAAE,EAAE,KAAK,SAAG,IACrD,EAEP,yBACG,QAAQ,GACJ,IACF,CACR,CAAC;AACJ,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  export { createServer, ionBeamMiddleware } from './server/index.js';
2
2
  export type { ServerOptions, IonBeam } from './server/index.js';
3
3
  export { Page } from './components/Page/index.js';
4
- export type { PageProps } from './components/Page/index.js';
5
- export type { IonBeamRequest } from './types.js';
6
4
  export { getAsset, getManifest } from './utils/manifest.js';
7
5
  export { Builder } from './build/index.js';
8
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACpE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG5D,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACpE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAMlD,kBAAkB;AAClB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE5D,qCAAqC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,kBAAkB;AAClB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE5D,qCAAqC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionbeam",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.4",
4
4
  "description": "A pure React SSR framework with automatic asset hashing and CSS modules",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,10 +20,16 @@
20
20
  "./utils": {
21
21
  "types": "./dist/utils/manifest.d.ts",
22
22
  "import": "./dist/utils/manifest.js"
23
+ },
24
+ "./config/tsconfig.json": "./config/tsconfig.json",
25
+ "./types": {
26
+ "types": "./types/index.d.ts"
23
27
  }
24
28
  },
25
29
  "files": [
26
30
  "dist",
31
+ "config",
32
+ "types",
27
33
  "bin"
28
34
  ],
29
35
  "scripts": {
@@ -0,0 +1,9 @@
1
+ declare module "*.module.css" {
2
+ const classes: { readonly [key: string]: string };
3
+ export default classes;
4
+ }
5
+
6
+ declare module "*.css" {
7
+ const content: void;
8
+ export default content;
9
+ }