mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Hexclave rename PR5: rename lib/stack-app -> lib/hexclave-app (Step 13/A)
git mv packages/template/src/lib/stack-app -> lib/hexclave-app and updated all internal import paths; regenerated SDKs. Internal module path only; public API unchanged. typecheck + lint green.
This commit is contained in:
parent
bb1c181621
commit
2262894a4d
@ -4,7 +4,7 @@ import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
||||
import { ActionCell, Badge, Button, Skeleton, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Typography } from "@hexclave/ui";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useUser } from "../../../lib/hooks";
|
||||
import { ActiveSession } from "../../../lib/stack-app/users";
|
||||
import { ActiveSession } from "../../../lib/hexclave-app/users";
|
||||
import { useTranslation } from "../../../lib/translations";
|
||||
import { PageLayout } from "../page-layout";
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ import { useState } from "react";
|
||||
import { CreateApiKeyDialog, ShowApiKeyDialog } from "../../../components/api-key-dialogs";
|
||||
import { ApiKeyTable } from "../../../components/api-key-table";
|
||||
import { useUser } from "../../../lib/hooks";
|
||||
import { ApiKey, ApiKeyCreationOptions } from "../../../lib/stack-app/api-keys";
|
||||
import { ApiKey, ApiKeyCreationOptions } from "../../../lib/hexclave-app/api-keys";
|
||||
import { useTranslation } from "../../../lib/translations";
|
||||
import { PageLayout } from "../page-layout";
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ import { envVars } from "../../../lib/env";
|
||||
import { useTranslation } from "../../../lib/translations";
|
||||
import { Section } from "../section";
|
||||
import { Result } from "@hexclave/shared/dist/utils/results";
|
||||
import type { CustomerInvoiceStatus, CustomerInvoicesList, CustomerInvoicesListOptions } from "../../../lib/stack-app/customers";
|
||||
import type { CustomerInvoiceStatus, CustomerInvoicesList, CustomerInvoicesListOptions } from "../../../lib/hexclave-app/customers";
|
||||
|
||||
type PaymentMethodSummary = {
|
||||
id: string,
|
||||
|
||||
@ -4,8 +4,8 @@ import { useState } from "react";
|
||||
import { CreateApiKeyDialog, ShowApiKeyDialog } from "../../../components/api-key-dialogs";
|
||||
import { ApiKeyTable } from "../../../components/api-key-table";
|
||||
import { useStackApp, useUser } from "../../../lib/hooks";
|
||||
import { TeamApiKeyFirstView } from "../../../lib/stack-app/api-keys";
|
||||
import { Team } from "../../../lib/stack-app/teams";
|
||||
import { TeamApiKeyFirstView } from "../../../lib/hexclave-app/api-keys";
|
||||
import { Team } from "../../../lib/hexclave-app/teams";
|
||||
import { useTranslation } from "../../../lib/translations";
|
||||
import { Section } from "../section";
|
||||
|
||||
|
||||
@ -4,8 +4,8 @@ import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
||||
import React, { act } from "react";
|
||||
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 type { StackClientApp } from "../lib/hexclave-app/apps/interfaces/client-app";
|
||||
import { hexclaveAppInternalsSymbol } from "../lib/hexclave-app/common";
|
||||
import { HexclaveContext } from "../providers/hexclave-context";
|
||||
import { useCliAuthConfirmation } from "./cli-auth-confirm";
|
||||
|
||||
|
||||
@ -5,8 +5,8 @@ import { Typography } from "@hexclave/ui";
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import { MessageCard } from "../components/message-cards/message-card";
|
||||
import { useTranslation } from "../lib/translations";
|
||||
import { hexclaveAppInternalsSymbol } from "../lib/stack-app/common";
|
||||
import type { StackClientApp } from "../lib/stack-app/apps/interfaces/client-app";
|
||||
import { hexclaveAppInternalsSymbol } from "../lib/hexclave-app/common";
|
||||
import type { StackClientApp } from "../lib/hexclave-app/apps/interfaces/client-app";
|
||||
import { useStackApp } from "../lib/hooks";
|
||||
|
||||
async function postCliAuthComplete(app: StackClientApp, body: Record<string, unknown>) {
|
||||
|
||||
@ -11,8 +11,8 @@ import { useRef } from 'react';
|
||||
// END_PLATFORM */
|
||||
import { SignIn, SignUp, StackServerApp } from "..";
|
||||
import { useStackApp } from "../lib/hooks";
|
||||
import { HandlerUrls, StackClientApp, hexclaveAppInternalsSymbol } from "../lib/stack-app";
|
||||
import { isLocalHandlerUrlTarget, resolveUnknownHandlerPathFallbackUrl } from "../lib/stack-app/url-targets";
|
||||
import { HandlerUrls, StackClientApp, hexclaveAppInternalsSymbol } from "../lib/hexclave-app";
|
||||
import { isLocalHandlerUrlTarget, resolveUnknownHandlerPathFallbackUrl } from "../lib/hexclave-app/url-targets";
|
||||
import { AccountSettings } from "./account-settings";
|
||||
import { CliAuthConfirmation } from "./cli-auth-confirm";
|
||||
import { EmailVerification } from "./email-verification";
|
||||
|
||||
@ -8,7 +8,7 @@ import { useEffect, useRef, useState } from "react";
|
||||
import { useStackApp } from "..";
|
||||
import { MaybeFullPage } from "../components/elements/maybe-full-page";
|
||||
import { StyledLink } from "../components/link";
|
||||
import { hexclaveAppInternalsSymbol } from "../lib/stack-app";
|
||||
import { hexclaveAppInternalsSymbol } from "../lib/hexclave-app";
|
||||
import { useTranslation } from "../lib/translations";
|
||||
|
||||
export function OAuthCallback({ fullPage }: { fullPage?: boolean }) {
|
||||
|
||||
@ -10,7 +10,7 @@ import { useForm } from 'react-hook-form';
|
||||
import * as yup from "yup";
|
||||
import { useUser } from '..';
|
||||
import { FormWarningText } from '../components/elements/form-warning';
|
||||
import { ApiKey, ApiKeyCreationOptions, ApiKeyType } from "../lib/stack-app/api-keys";
|
||||
import { ApiKey, ApiKeyCreationOptions, ApiKeyType } from "../lib/hexclave-app/api-keys";
|
||||
import { useTranslation } from "../lib/translations";
|
||||
|
||||
// Constants for expiration options
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
import { ActionCell, ActionDialog, BadgeCell, DataTable, DataTableColumnHeader, DataTableFacetedFilter, DateCell, SearchToolbarItem, TextCell, standardFilterFn } from "@hexclave/ui";
|
||||
import { ColumnDef, Row, Table } from "@tanstack/react-table";
|
||||
import { useMemo, useState } from "react";
|
||||
import { ApiKey } from "../lib/stack-app/api-keys";
|
||||
import { ApiKey } from "../lib/hexclave-app/api-keys";
|
||||
|
||||
type ExtendedApiKey = ApiKey & {
|
||||
status: 'valid' | 'expired' | 'revoked',
|
||||
|
||||
@ -3,12 +3,12 @@
|
||||
import type { RequestLogEntry } from "@hexclave/shared/dist/interface/client-interface";
|
||||
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
||||
import { isLocalhost } from "@hexclave/shared/dist/utils/urls";
|
||||
import type { StackClientApp } from "../lib/stack-app";
|
||||
import type { StackClientApp } from "../lib/hexclave-app";
|
||||
import { envVars } from "../lib/env";
|
||||
import { getBaseUrl } from "../lib/stack-app/apps/implementations/common";
|
||||
import type { HandlerUrlOptions, HandlerUrls, HandlerUrlTarget } from "../lib/stack-app/common";
|
||||
import { hexclaveAppInternalsSymbol } from "../lib/stack-app/common";
|
||||
import { getPagePrompt } from "../lib/stack-app/url-targets";
|
||||
import { getBaseUrl } from "../lib/hexclave-app/apps/implementations/common";
|
||||
import type { HandlerUrlOptions, HandlerUrls, HandlerUrlTarget } from "../lib/hexclave-app/common";
|
||||
import { hexclaveAppInternalsSymbol } from "../lib/hexclave-app/common";
|
||||
import { getPagePrompt } from "../lib/hexclave-app/url-targets";
|
||||
import { devToolCSS } from "./dev-tool-styles";
|
||||
import type { TriggerCorner, TriggerPlacement } from "./dev-tool-trigger-position";
|
||||
import { clampTriggerPosition, getSnappedTriggerPlacement, resolveTriggerPosition } from "./dev-tool-trigger-position";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// IF_PLATFORM js-like
|
||||
|
||||
import type { StackClientApp } from "../lib/stack-app";
|
||||
import type { StackClientApp } from "../lib/hexclave-app";
|
||||
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
||||
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
||||
import { isLocalhost } from "@hexclave/shared/dist/utils/urls";
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
export * from './lib/stack-app';
|
||||
export * from './lib/hexclave-app';
|
||||
export { getConvexProvidersConfig } from "./integrations/convex";
|
||||
// Hexclave aliases and legacy Stack* names — @deprecated JSDoc lives on the original
|
||||
// declarations in @hexclave/shared/config so it survives dts bundling
|
||||
@ -7,7 +7,7 @@ export type { HexclaveConfig, StackConfig } from "@hexclave/shared/config";
|
||||
export { defineHexclaveConfig, defineStackConfig } from "@hexclave/shared/config";
|
||||
|
||||
// IF_PLATFORM react-like
|
||||
export type { AnalyticsOptions, AnalyticsReplayOptions } from "./lib/stack-app/apps/implementations/session-replay";
|
||||
export type { AnalyticsOptions, AnalyticsReplayOptions } from "./lib/hexclave-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/hexclave-handler";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { urlString } from "@hexclave/shared/dist/utils/urls";
|
||||
import { defaultBaseUrl } from "../lib/stack-app/apps/implementations/common";
|
||||
import { defaultBaseUrl } from "../lib/hexclave-app/apps/implementations/common";
|
||||
|
||||
export function getConvexProvidersConfig(options: {
|
||||
baseUrl?: string,
|
||||
|
||||
@ -624,7 +624,7 @@ export class _HexclaveClientAppImplIncomplete<HasTokenStore extends boolean, Pro
|
||||
const resolvedOptions = resolveConstructorOptions(options);
|
||||
|
||||
if (!_HexclaveClientAppImplIncomplete.LazyStackAdminAppImpl.value) {
|
||||
throw new HexclaveAssertionError("Admin app implementation not initialized. Did you import the _HexclaveClientApp from stack-app/apps/implementations/index.ts? You can't import it directly from ./apps/implementations/client-app-impl.ts as that causes a circular dependency (see the comment at _LazyHexclaveAdminAppImpl for more details).");
|
||||
throw new HexclaveAssertionError("Admin app implementation not initialized. Did you import the _HexclaveClientApp from hexclave-app/apps/implementations/index.ts? You can't import it directly from ./apps/implementations/client-app-impl.ts as that causes a circular dependency (see the comment at _LazyHexclaveAdminAppImpl for more details).");
|
||||
}
|
||||
|
||||
this._options = resolvedOptions;
|
||||
@ -1,6 +1,6 @@
|
||||
import { useContext } from "react";
|
||||
import { HexclaveContext } from "../providers/hexclave-context";
|
||||
import type { GetUserOptions as AppGetUserOptions, CurrentInternalUser, CurrentUser, StackClientApp } from "./stack-app";
|
||||
import type { GetUserOptions as AppGetUserOptions, CurrentInternalUser, CurrentUser, StackClientApp } from "./hexclave-app";
|
||||
|
||||
type GetUserOptions = AppGetUserOptions<true> & {
|
||||
projectIdMustMatch?: string,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
import React from "react";
|
||||
import { createGlobal } from "@hexclave/shared/dist/utils/globals";
|
||||
import type { StackClientApp } from "../lib/stack-app/apps/interfaces/client-app";
|
||||
import type { StackClientApp } from "../lib/hexclave-app/apps/interfaces/client-app";
|
||||
|
||||
type HexclaveContextValue = {
|
||||
app: StackClientApp<true>,
|
||||
|
||||
@ -4,7 +4,7 @@ import { CurrentUserCrud } from "@hexclave/shared/dist/interface/crud/current-us
|
||||
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 { StackClientApp, StackClientAppJson, hexclaveAppInternalsSymbol } from "../lib/hexclave-app";
|
||||
import { HexclaveContext } from "./hexclave-context";
|
||||
|
||||
export function HexclaveProviderClient(props: {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import React, { Suspense } from 'react';
|
||||
import { StackAdminApp, StackClientApp, StackServerApp, hexclaveAppInternalsSymbol } from '../lib/stack-app';
|
||||
import { StackAdminApp, StackClientApp, StackServerApp, hexclaveAppInternalsSymbol } from '../lib/hexclave-app';
|
||||
import { HexclaveProviderClient } from './hexclave-provider-client';
|
||||
import { TranslationProvider } from './translation-provider';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user