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:
Bilal Godil 2026-06-03 10:58:27 -07:00
parent 582415d10c
commit 6616f6c4a4
8 changed files with 8 additions and 8 deletions

View File

@ -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");

View File

@ -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;

View File

@ -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";

View File

@ -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> & {

View File

@ -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>,

View File

@ -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