@sixb/app 0.1.1 → 0.1.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
@@ -34,6 +34,8 @@ The generated entry also intercepts plain same-origin `<a href="/...">` clicks a
34
34
 
35
35
  If `app/layout.tsx` exists, it is used as a root layout wrapper. It can also export a `metadata` object (`title`, `description`, `favicon`, `themeColor`, and `backgroundColor`). Metadata is loaded during generation and written into the static HTML and manifest, so it is available before auth and client startup. The layout module must therefore be import-safe in Bun: do not access `window` or `document` at module scope. An `app/globals.css` file is imported automatically when present.
36
36
 
37
+ Add an optional `app/auth.tsx` default export to customize the app audience's magic-link pages. It receives `AuthExperienceProps` from `@sixb/app/auth` with `signIn`, `checkEmail`, `confirm`, `invalidLink`, and `error` states plus framework-owned actions. Sixb builds it separately, includes `app/globals.css`, and serves it from the API's existing `/auth/*` routes. It is not wrapped by `app/layout.tsx`, and it never owns tokens, cookies, callbacks, audience validation, or return redirects. When the file is absent, the generic server login remains the fallback.
38
+
37
39
  ### Built-in Agent Routes
38
40
 
39
41
  Custom apps automatically receive the shared Sixb agent chat UI at:
@@ -48,6 +50,24 @@ These routes are generated only when the project has at least one `app/` page, s
48
50
 
49
51
  The default agent UI is imported through `@sixb/app/agents`, so app projects do not need to import `@sixb/agent-ui` directly. A framework-owned `agent-ui.css` bundle is generated before the app stylesheet and imports normal `@sixb/ui` styles, which means app-level token overrides in `app/globals.css` still apply in the usual way.
50
52
 
53
+ Wrap the app layout with `AgentWorkspaceProvider` to make the built-in agent navigation match the
54
+ custom app shell without replacing any routes:
55
+
56
+ ```tsx
57
+ import { AgentWorkspaceProvider } from "@sixb/app/agents"
58
+
59
+ <AgentWorkspaceProvider
60
+ sidebarHeader={<AppSidebarHeader />}
61
+ sidebarFooter={<AppSidebarFooter />}
62
+ sidebarWidth="12.5rem"
63
+ >
64
+ <AppShell>{children}</AppShell>
65
+ </AgentWorkspaceProvider>
66
+ ```
67
+
68
+ Explicit props passed to a project-owned `AgentsPage` override provider defaults. The custom width
69
+ applies to the persistent desktop rail; the mobile sheet keeps its responsive width.
70
+
51
71
  ### Embedded Agent Panel
52
72
 
53
73
  Embed the same conversation runtime without changing the page route:
@@ -168,5 +188,6 @@ A file at `app/public/app.webmanifest` is ignored because the generated manifest
168
188
  | --- | --- |
169
189
  | `createCustomApp(options)` | High-level custom app toolkit for dev/build/start |
170
190
  | `AppMetadata` | Metadata shape exported by `app/layout.tsx` |
191
+ | `@sixb/app/auth` | Custom auth experience states, actions, and component props |
171
192
  | `createTailwindCssCompiler(options)` | Shared Tailwind v4 build pipeline (also used by Atlas) |
172
193
  | `@sixb/app/agents` | Full-page agent route plus `AgentPanel`, context provider/hooks, and helpers |
package/dist/agents.d.ts CHANGED
@@ -1,6 +1,11 @@
1
1
  import { type AgentChatPageProps } from "@sixb/agent-ui/react-router";
2
+ import { type PropsWithChildren } from "react";
2
3
  export { AgentContextProvider, AgentPanel, type AgentPanelProps, useAgentContext, } from "@sixb/agent-ui";
3
4
  export { agentContext } from "@sixb/core/agents/context";
4
5
  export type AgentsPageProps = Omit<AgentChatPageProps, "routeBase">;
5
- export default function AgentsPage({ className, ...props }: AgentsPageProps): import("react").FunctionComponentElement<AgentChatPageProps>;
6
+ type AgentWorkspaceChrome = Pick<AgentsPageProps, "sidebarHeader" | "sidebarFooter" | "sidebarWidth">;
7
+ export type AgentWorkspaceProviderProps = PropsWithChildren<AgentWorkspaceChrome>;
8
+ /** Configure the framework-owned Agents routes from a custom app's root layout. */
9
+ export declare function AgentWorkspaceProvider({ sidebarHeader, sidebarFooter, sidebarWidth, children, }: AgentWorkspaceProviderProps): import("react").FunctionComponentElement<import("react").ProviderProps<AgentWorkspaceChrome>>;
10
+ export default function AgentsPage(props: AgentsPageProps): import("react").FunctionComponentElement<AgentChatPageProps>;
6
11
  //# sourceMappingURL=agents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAGpF,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,KAAK,eAAe,EACpB,eAAe,GAChB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAA;AAEnE,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,gEAQ1E"}
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AACpF,OAAO,EAAgC,KAAK,iBAAiB,EAAc,MAAM,OAAO,CAAA;AAExF,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,KAAK,eAAe,EACpB,eAAe,GAChB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAA;AAEnE,KAAK,oBAAoB,GAAG,IAAI,CAC9B,eAAe,EACf,eAAe,GAAG,eAAe,GAAG,cAAc,CACnD,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC,oBAAoB,CAAC,CAAA;AAIjF,mFAAmF;AACnF,wBAAgB,sBAAsB,CAAC,EACrC,aAAa,EACb,aAAa,EACb,YAAY,EACZ,QAAQ,GACT,EAAE,2BAA2B,iGAM7B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,gEAQxD"}
package/dist/agents.js CHANGED
@@ -1,26 +1,37 @@
1
1
  // @bun
2
2
  // src/agents.ts
3
3
  import { AgentChatPage } from "@sixb/agent-ui/react-router";
4
- import { createElement } from "react";
4
+ import { createContext, createElement, useContext } from "react";
5
5
  import {
6
6
  AgentContextProvider,
7
7
  AgentPanel,
8
8
  useAgentContext
9
9
  } from "@sixb/agent-ui";
10
10
  import { agentContext } from "@sixb/core/agents/context";
11
- function AgentsPage({ className, ...props }) {
11
+ var AgentWorkspaceContext = createContext({});
12
+ function AgentWorkspaceProvider({
13
+ sidebarHeader,
14
+ sidebarFooter,
15
+ sidebarWidth,
16
+ children
17
+ }) {
18
+ return createElement(AgentWorkspaceContext.Provider, { value: { sidebarHeader, sidebarFooter, sidebarWidth } }, children);
19
+ }
20
+ function AgentsPage(props) {
21
+ const workspaceChrome = useContext(AgentWorkspaceContext);
12
22
  return createElement(AgentChatPage, {
23
+ ...workspaceChrome,
13
24
  ...props,
14
- routeBase: "/agents",
15
- className: className ? `h-dvh min-h-dvh max-h-dvh overflow-hidden ${className}` : "h-dvh min-h-dvh max-h-dvh overflow-hidden"
25
+ routeBase: "/agents"
16
26
  });
17
27
  }
18
28
  export {
19
29
  useAgentContext,
20
30
  AgentsPage as default,
21
31
  agentContext,
32
+ AgentWorkspaceProvider,
22
33
  AgentPanel,
23
34
  AgentContextProvider
24
35
  };
25
36
 
26
- //# debugId=AE7E5198DF11A9EE64756E2164756E21
37
+ //# debugId=FD2DDDBFD9CFF84864756E2164756E21
@@ -2,9 +2,9 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/agents.ts"],
4
4
  "sourcesContent": [
5
- "import { AgentChatPage, type AgentChatPageProps } from \"@sixb/agent-ui/react-router\"\nimport { createElement } from \"react\"\n\nexport {\n AgentContextProvider,\n AgentPanel,\n type AgentPanelProps,\n useAgentContext,\n} from \"@sixb/agent-ui\"\n\nexport { agentContext } from \"@sixb/core/agents/context\"\n\nexport type AgentsPageProps = Omit<AgentChatPageProps, \"routeBase\">\n\nexport default function AgentsPage({ className, ...props }: AgentsPageProps) {\n return createElement(AgentChatPage, {\n ...props,\n routeBase: \"/agents\",\n className: className\n ? `h-dvh min-h-dvh max-h-dvh overflow-hidden ${className}`\n : \"h-dvh min-h-dvh max-h-dvh overflow-hidden\",\n })\n}\n"
5
+ "import { AgentChatPage, type AgentChatPageProps } from \"@sixb/agent-ui/react-router\"\nimport { createContext, createElement, type PropsWithChildren, useContext } from \"react\"\n\nexport {\n AgentContextProvider,\n AgentPanel,\n type AgentPanelProps,\n useAgentContext,\n} from \"@sixb/agent-ui\"\n\nexport { agentContext } from \"@sixb/core/agents/context\"\n\nexport type AgentsPageProps = Omit<AgentChatPageProps, \"routeBase\">\n\ntype AgentWorkspaceChrome = Pick<\n AgentsPageProps,\n \"sidebarHeader\" | \"sidebarFooter\" | \"sidebarWidth\"\n>\n\nexport type AgentWorkspaceProviderProps = PropsWithChildren<AgentWorkspaceChrome>\n\nconst AgentWorkspaceContext = createContext<AgentWorkspaceChrome>({})\n\n/** Configure the framework-owned Agents routes from a custom app's root layout. */\nexport function AgentWorkspaceProvider({\n sidebarHeader,\n sidebarFooter,\n sidebarWidth,\n children,\n}: AgentWorkspaceProviderProps) {\n return createElement(\n AgentWorkspaceContext.Provider,\n { value: { sidebarHeader, sidebarFooter, sidebarWidth } },\n children\n )\n}\n\nexport default function AgentsPage(props: AgentsPageProps) {\n const workspaceChrome = useContext(AgentWorkspaceContext)\n\n return createElement(AgentChatPage, {\n ...workspaceChrome,\n ...props,\n routeBase: \"/agents\",\n })\n}\n"
6
6
  ],
7
- "mappings": ";;AAAA;AACA;AAEA;AAAA;AAAA;AAAA;AAAA;AAOA;AAIA,SAAwB,UAAU,GAAG,cAAc,SAA0B;AAAA,EAC3E,OAAO,cAAc,eAAe;AAAA,OAC/B;AAAA,IACH,WAAW;AAAA,IACX,WAAW,YACP,6CAA6C,cAC7C;AAAA,EACN,CAAC;AAAA;",
8
- "debugId": "AE7E5198DF11A9EE64756E2164756E21",
7
+ "mappings": ";;AAAA;AACA;AAEA;AAAA;AAAA;AAAA;AAAA;AAOA;AAWA,IAAM,wBAAwB,cAAoC,CAAC,CAAC;AAG7D,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,GAC8B;AAAA,EAC9B,OAAO,cACL,sBAAsB,UACtB,EAAE,OAAO,EAAE,eAAe,eAAe,aAAa,EAAE,GACxD,QACF;AAAA;AAGF,SAAwB,UAAU,CAAC,OAAwB;AAAA,EACzD,MAAM,kBAAkB,WAAW,qBAAqB;AAAA,EAExD,OAAO,cAAc,eAAe;AAAA,OAC/B;AAAA,OACA;AAAA,IACH,WAAW;AAAA,EACb,CAAC;AAAA;",
8
+ "debugId": "FD2DDDBFD9CFF84864756E2164756E21",
9
9
  "names": []
10
10
  }
package/dist/auth.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ export type AuthExperienceState = {
2
+ readonly kind: "signIn";
3
+ } | {
4
+ readonly kind: "checkEmail";
5
+ } | {
6
+ readonly kind: "confirm";
7
+ readonly email?: string;
8
+ } | {
9
+ readonly kind: "invalidLink";
10
+ } | {
11
+ readonly kind: "error";
12
+ };
13
+ export interface AuthExperienceActions {
14
+ requestMagicLink(email: string): void;
15
+ confirmSignIn(): void;
16
+ restartSignIn(): void;
17
+ }
18
+ export interface AuthExperienceProps {
19
+ readonly state: AuthExperienceState;
20
+ readonly actions: AuthExperienceActions;
21
+ }
22
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAC3B;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GAC/B;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;CAAE,GAChC;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAA;AAE9B,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACrC,aAAa,IAAI,IAAI,CAAA;IACrB,aAAa,IAAI,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAA;IACnC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;CACxC"}
package/dist/auth.js ADDED
@@ -0,0 +1,3 @@
1
+ // @bun
2
+
3
+ //# debugId=3217C898344396F564756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "3217C898344396F564756E2164756E21",
8
+ "names": []
9
+ }
package/dist/build.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export interface BuildAppOptions {
2
2
  /** Path to the generated index.html entry point */
3
3
  entryPath: string;
4
+ /** Browser TypeScript entry generated alongside `entryPath`. */
5
+ scriptEntryPath: string;
4
6
  /** Generated manifest copied to the stable `/app.webmanifest` output path. */
5
7
  manifestPath?: string;
6
8
  /** Output directory, defaults to `.sixb/dist/app` */
@@ -11,11 +13,20 @@ export interface BuildAppResult {
11
13
  outdir: string;
12
14
  logs?: string[];
13
15
  }
16
+ export interface BuildAuthExperienceOptions {
17
+ /** Generated HTML shell containing the auth bootstrap placeholder. */
18
+ entryPath: string;
19
+ /** Browser TypeScript entry generated alongside `entryPath`. */
20
+ scriptEntryPath: string;
21
+ /** Directory written for the API server to mount under `/auth`. */
22
+ outdir: string;
23
+ }
14
24
  /**
15
- * Builds the app using `Bun.build()` on the generated HTML entry point.
16
- * Outputs a production-ready static bundle.
25
+ * Builds the generated browser entry and writes a production-ready static shell and bundle.
17
26
  */
18
27
  export declare function buildApp(options: BuildAppOptions): Promise<BuildAppResult>;
28
+ /** Builds the optional custom auth entry as API-served static assets. */
29
+ export declare function buildAuthExperience(options: BuildAuthExperienceOptions): Promise<BuildAppResult>;
19
30
  export declare function prepareAppHtmlBundleEntry(entryPath: string): Promise<string>;
20
31
  export declare function restoreAppStaticUrls(html: string): string;
21
32
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC9B,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAA;IACjB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CA4ChF;AAKD,wBAAsB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CASlF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzD"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,eAAe;IAC9B,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAA;IACjB,gEAAgE;IAChE,eAAe,EAAE,MAAM,CAAA;IACvB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,SAAS,EAAE,MAAM,CAAA;IACjB,gEAAgE;IAChE,eAAe,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CA2EhF;AAED,yEAAyE;AACzE,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,cAAc,CAAC,CA+DzB;AAKD,wBAAsB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CASlF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzD"}
package/dist/codegen.d.ts CHANGED
@@ -8,6 +8,7 @@ export interface BuiltInRouteManifestEntry {
8
8
  export interface GenerateRouteManifestOptions {
9
9
  readonly builtInRoutes?: readonly BuiltInRouteManifestEntry[];
10
10
  }
11
+ export declare const AUTH_EXPERIENCE_BOOTSTRAP_PLACEHOLDER = "__SIXB_AUTH_BOOTSTRAP__";
11
12
  /**
12
13
  * Generates `.sixb/generated/routes.ts` with static route imports. Pages are
13
14
  * eager on purpose: project-specific apps bundle small, and a single bundle
@@ -15,6 +16,15 @@ export interface GenerateRouteManifestOptions {
15
16
  * late-arriving styles when navigating — matching how Atlas routes.
16
17
  */
17
18
  export declare function generateRouteManifest(routes: PageRoute[], generatedDir: string, options?: GenerateRouteManifestOptions): Promise<string>;
19
+ /** Generates the optional browser entry served by the API for `/auth/*`. */
20
+ export declare function generateAuthExperienceEntry(projectRoot: string, generatedDir: string, options?: {
21
+ readonly appDir?: string;
22
+ readonly publicDir?: string;
23
+ readonly stylesheetPath?: string | null;
24
+ }): Promise<{
25
+ readonly htmlPath: string;
26
+ readonly mainPath: string;
27
+ } | null>;
18
28
  /**
19
29
  * Generates the app entry files:
20
30
  * - `.sixb/generated/index.html` — HTML shell
@@ -1 +1 @@
1
- {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../src/codegen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAIrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,yBAAyB,EAAE,CAAA;CAC9D;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,SAAS,EAAE,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,4BAAiC,GACzC,OAAO,CAAC,MAAM,CAAC,CAyCjB;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE;IACP,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,mBAAmB,CAAA;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,sEAAsE;IACtE,wBAAwB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACxC,GACL,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CA2av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B,CAAA;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,sEAAsE;IACtE,wBAAwB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACxC,GACL,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CA2avE"}
@@ -18,6 +18,12 @@ export interface CustomAppDevOptions {
18
18
  export interface CustomAppBuildOptions {
19
19
  outdir?: string;
20
20
  }
21
+ export interface CustomAuthExperienceBuildOptions {
22
+ outdir?: string;
23
+ }
24
+ export interface CustomAuthExperienceBuildResult {
25
+ readonly outdir: string;
26
+ }
21
27
  export interface CustomAppStartOptions {
22
28
  host?: string;
23
29
  port?: number;
@@ -35,6 +41,7 @@ export interface CustomAppDevServer {
35
41
  export interface CustomAppInstance {
36
42
  scanRoutes(): Promise<PageRoute[]>;
37
43
  hasRoutes(): Promise<boolean>;
44
+ prepareAuthExperience(options?: CustomAuthExperienceBuildOptions): Promise<CustomAuthExperienceBuildResult | null>;
38
45
  dev(options?: CustomAppDevOptions): Promise<CustomAppDevServer>;
39
46
  build(options?: CustomAppBuildOptions): Promise<BuildAppResult>;
40
47
  start(options?: CustomAppStartOptions): Promise<CustomAppDevServer>;
@@ -1 +1 @@
1
- {"version":3,"file":"createCustomApp.d.ts","sourceRoot":"","sources":["../src/createCustomApp.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EACL,KAAK,cAAc,EAIpB,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,WAAW,CAAA;AAIrD,MAAM,WAAW,sBAAsB;IAC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A;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC,CAAA;IAClC,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IAC7B,qBAAqB,CACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,+BAA+B,GAAG,IAAI,CAAC,CAAA;IAClD,GAAG,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;IAC/D,KAAK,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAA;IAC/D,KAAK,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;CACpE;AAWD,wBAAsB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAibjG"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { type CreateCustomAppOptions, type CustomAppBuildOptions, type CustomAppDevOptions, type CustomAppDevServer, type CustomAppInstance, type CustomAppStartOptions, createCustomApp, } from "./createCustomApp";
1
+ export { type CreateCustomAppOptions, type CustomAppBuildOptions, type CustomAppDevOptions, type CustomAppDevServer, type CustomAppInstance, type CustomAppStartOptions, type CustomAuthExperienceBuildOptions, type CustomAuthExperienceBuildResult, createCustomApp, } from "./createCustomApp";
2
2
  export type { AppMetadata } from "./metadata";
3
3
  export { createTailwindCssCompiler, type TailwindCssCompiler, type TailwindCssCompilerOptions, } from "./tailwind";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,eAAe,GAChB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EACL,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,eAAe,GAChB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EACL,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC,MAAM,YAAY,CAAA"}