mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Hexclave rename PR5: rename template handler/provider/context files (Step 9/C)
git mv stack-handler{,-client}.tsx -> hexclave-handler{,-client}.tsx and
stack-{context,provider,provider-client}.tsx -> hexclave-* in packages/template;
updated internal import paths; regenerated SDKs. typecheck + lint green.
This commit is contained in:
parent
582415d10c
commit
6616f6c4a4
@ -6,7 +6,7 @@ import { createRoot, type Root } from "react-dom/client";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { StackClientApp } from "../lib/stack-app/apps/interfaces/client-app";
|
||||
import { hexclaveAppInternalsSymbol } from "../lib/stack-app/common";
|
||||
import { HexclaveContext } from "../providers/stack-context";
|
||||
import { HexclaveContext } from "../providers/hexclave-context";
|
||||
import { useCliAuthConfirmation } from "./cli-auth-confirm";
|
||||
|
||||
const previousActEnvironment = Reflect.get(globalThis, "IS_REACT_ACT_ENVIRONMENT");
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
// Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.
|
||||
// This file exists as a component that can be both client and server, ignores the non-serializable props, and returns <HexclaveHandlerClient />
|
||||
|
||||
import { BaseHandlerProps, HexclaveHandlerClient } from "./stack-handler-client";
|
||||
import { BaseHandlerProps, HexclaveHandlerClient } from "./hexclave-handler-client";
|
||||
|
||||
type HexclaveHandlerProps = BaseHandlerProps & { location?: string } & {
|
||||
/**
|
||||
@ -39,6 +39,6 @@ export const HexclaveHandler = HandlerImpl;
|
||||
export const StackHandler = HandlerImpl;
|
||||
|
||||
// Default export preserved for backwards compatibility (legacy `as`-rename re-exports).
|
||||
// Points at the deprecated alias so that `import StackHandler from ".../stack-handler"` still
|
||||
// Points at the deprecated alias so that `import StackHandler from ".../hexclave-handler"` still
|
||||
// surfaces the deprecation. Internal re-exports in template/src/index.ts use the named exports.
|
||||
export default StackHandler;
|
||||
@ -10,9 +10,9 @@ export { defineHexclaveConfig, defineStackConfig } from "@hexclave/shared/config
|
||||
export type { AnalyticsOptions, AnalyticsReplayOptions } from "./lib/stack-app/apps/implementations/session-replay";
|
||||
// Hexclave aliases and legacy Stack* names — @deprecated JSDoc lives on the original
|
||||
// declarations in the source files (so it survives dts bundling).
|
||||
export { HexclaveHandler, StackHandler } from "./components-page/stack-handler";
|
||||
export { HexclaveHandler, StackHandler } from "./components-page/hexclave-handler";
|
||||
export { useHexclaveApp, useStackApp } from "./lib/hooks";
|
||||
export { HexclaveProvider, StackProvider } from "./providers/stack-provider";
|
||||
export { HexclaveProvider, StackProvider } from "./providers/hexclave-provider";
|
||||
export { HexclaveTheme, StackTheme } from './providers/theme-provider';
|
||||
export { useUser } from "./lib/hooks";
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useContext } from "react";
|
||||
import { HexclaveContext } from "../providers/stack-context";
|
||||
import { HexclaveContext } from "../providers/hexclave-context";
|
||||
import type { GetUserOptions as AppGetUserOptions, CurrentInternalUser, CurrentUser, StackClientApp } from "./stack-app";
|
||||
|
||||
type GetUserOptions = AppGetUserOptions<true> & {
|
||||
|
||||
@ -5,7 +5,7 @@ import { globalVar } from "@hexclave/shared/dist/utils/globals";
|
||||
import React, { useEffect } from "react";
|
||||
import { useStackApp } from "../lib/hooks";
|
||||
import { StackClientApp, StackClientAppJson, hexclaveAppInternalsSymbol } from "../lib/stack-app";
|
||||
import { HexclaveContext } from "./stack-context";
|
||||
import { HexclaveContext } from "./hexclave-context";
|
||||
|
||||
export function HexclaveProviderClient(props: {
|
||||
app: StackClientAppJson<true, string> | StackClientApp<true>,
|
||||
@ -1,6 +1,6 @@
|
||||
import React, { Suspense } from 'react';
|
||||
import { StackAdminApp, StackClientApp, StackServerApp, hexclaveAppInternalsSymbol } from '../lib/stack-app';
|
||||
import { HexclaveProviderClient } from './stack-provider-client';
|
||||
import { HexclaveProviderClient } from './hexclave-provider-client';
|
||||
import { TranslationProvider } from './translation-provider';
|
||||
|
||||
// IF_PLATFORM next
|
||||
Loading…
Reference in New Issue
Block a user