rename: @hanzo/sign-* → @hanzo/esign-* (full eSign brand consistency)
The product is branded Hanzo eSign (esign.hanzo.ai, repo hanzoai/esign). Rename all workspace packages @hanzo/sign-* → @hanzo/esign-* (1052 files) and align docker/Dockerfile turbo --scope/--filter to the actual remix package name @hanzo/esign (was a pre-existing mismatch with -remix that broke the build). Protected deps (@hanzo/insights, @hanzo/logo) untouched.
This commit is contained in:
@@ -120,7 +120,7 @@ Packages duplicated across 3+ workspaces are prime candidates:
|
||||
| `nanoid` | 4 | Yes |
|
||||
| `@lingui/core` / `macro` / `react` | 2-3 | Yes |
|
||||
| `@simplewebauthn/server` | 3 | Yes |
|
||||
| `@hanzo/sign-*` (internal) | varies | No (use `workspace:*`) |
|
||||
| `@hanzo/esign-*` (internal) | varies | No (use `workspace:*`) |
|
||||
| `@aws-sdk/*` | 2 | Yes |
|
||||
| `hono` | 2 | Yes |
|
||||
| `posthog-node` / `posthog-js` | 2 | Yes |
|
||||
@@ -210,13 +210,13 @@ This is a mechanical find-and-replace across all workspace `package.json` files.
|
||||
|
||||
#### Step 11: Convert internal references to `workspace:*`
|
||||
|
||||
All `@hanzo/sign-*` internal package references currently use `"*"`. Convert to pnpm's `workspace:*` protocol:
|
||||
All `@hanzo/esign-*` internal package references currently use `"*"`. Convert to pnpm's `workspace:*` protocol:
|
||||
|
||||
```json
|
||||
{
|
||||
"dependencies": {
|
||||
"@hanzo/sign-lib": "workspace:*",
|
||||
"@hanzo/sign-prisma": "workspace:*"
|
||||
"@hanzo/esign-lib": "workspace:*",
|
||||
"@hanzo/esign-prisma": "workspace:*"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -297,7 +297,7 @@ With catalogs and strict resolution, dependencies currently hoisted to root `pac
|
||||
- **Mitigation:** Update cache keys to use `pnpm-lock.yaml` hash. First CI run will be slower, subsequent runs will cache normally.
|
||||
|
||||
5. **Turbo + pnpm compatibility:** Turbo has first-class pnpm support, but `turbo prune` output format may differ slightly.
|
||||
- **Mitigation:** Test `turbo prune --scope=@hanzo/sign-remix --docker` and verify output structure before updating Dockerfile.
|
||||
- **Mitigation:** Test `turbo prune --scope=@hanzo/esign-remix --docker` and verify output structure before updating Dockerfile.
|
||||
|
||||
## Verification Checklist
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ Create a reusable Hono middleware factory in `packages/lib/server-only/rate-limi
|
||||
```typescript
|
||||
import { type MiddlewareHandler } from 'hono';
|
||||
|
||||
import { getIpAddress } from '@hanzo/sign-lib/universal/get-ip-address';
|
||||
import { getIpAddress } from '@hanzo/esign-lib/universal/get-ip-address';
|
||||
|
||||
export const createRateLimitMiddleware = (
|
||||
limiter: ReturnType<typeof rateLimit>,
|
||||
@@ -326,8 +326,8 @@ import { rateLimiter } from 'hono-rate-limiter';
|
||||
const rateLimitMiddleware = rateLimiter({ ... });
|
||||
|
||||
// After
|
||||
import { createRateLimitMiddleware } from '@hanzo/sign-lib/server-only/rate-limit/rate-limit-middleware';
|
||||
import { apiV1RateLimit, apiV2RateLimit, aiRateLimit } from '@hanzo/sign-lib/server-only/rate-limit/rate-limits';
|
||||
import { createRateLimitMiddleware } from '@hanzo/esign-lib/server-only/rate-limit/rate-limit-middleware';
|
||||
import { apiV1RateLimit, apiV2RateLimit, aiRateLimit } from '@hanzo/esign-lib/server-only/rate-limit/rate-limits';
|
||||
|
||||
const apiV1RateLimitMiddleware = createRateLimitMiddleware(apiV1RateLimit);
|
||||
const apiV2RateLimitMiddleware = createRateLimitMiddleware(apiV2RateLimit);
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ['@hanzo/sign-eslint-config'],
|
||||
extends: ['@hanzo/esign-eslint-config'],
|
||||
rules: {
|
||||
'@next/next/no-img-element': 'off',
|
||||
'no-unreachable': 'error',
|
||||
|
||||
@@ -24,7 +24,7 @@ Run these commands to understand where the previous session left off:
|
||||
```bash
|
||||
git status # See uncommitted changes
|
||||
git log --oneline -10 # See recent commits
|
||||
npm run typecheck -w @hanzo/sign-remix # Check for type errors
|
||||
npm run typecheck -w @hanzo/esign-remix # Check for type errors
|
||||
npm run lint:fix # Check for linting issues
|
||||
```
|
||||
|
||||
@@ -67,9 +67,9 @@ Review the code that's already been written to understand:
|
||||
Work continuously through these steps:
|
||||
|
||||
1. **Implement** - Write the code for the current task
|
||||
2. **Typecheck** - Run `npm run typecheck -w @hanzo/sign-remix` to verify types
|
||||
2. **Typecheck** - Run `npm run typecheck -w @hanzo/esign-remix` to verify types
|
||||
3. **Lint** - Run `npm run lint:fix` to fix linting issues
|
||||
4. **Test** - If non-trivial, run E2E tests: `npm run test:dev -w @hanzo/sign-app-tests`
|
||||
4. **Test** - If non-trivial, run E2E tests: `npm run test:dev -w @hanzo/esign-app-tests`
|
||||
5. **Fix** - If tests fail, fix and re-run
|
||||
6. **Repeat** - Move to next task
|
||||
|
||||
@@ -93,14 +93,14 @@ Work continuously through these steps:
|
||||
|
||||
```bash
|
||||
# Type checking
|
||||
npm run typecheck -w @hanzo/sign-remix
|
||||
npm run typecheck -w @hanzo/esign-remix
|
||||
|
||||
# Linting
|
||||
npm run lint:fix
|
||||
|
||||
# E2E Tests (only for non-trivial work)
|
||||
npm run test:dev -w @hanzo/sign-app-tests # Run E2E tests in dev mode
|
||||
npm run test-ui:dev -w @hanzo/sign-app-tests # Run E2E tests with UI
|
||||
npm run test:dev -w @hanzo/esign-app-tests # Run E2E tests in dev mode
|
||||
npm run test-ui:dev -w @hanzo/esign-app-tests # Run E2E tests with UI
|
||||
npm run test:e2e # Run full E2E test suite
|
||||
|
||||
# Development
|
||||
|
||||
@@ -66,14 +66,14 @@ Brief description of what this module/feature does and when to use it.
|
||||
If there are specific packages or imports needed:
|
||||
|
||||
```bash
|
||||
npm install @hanzo/sign-package-name
|
||||
npm install @hanzo/esign-package-name
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
|
||||
```jsx
|
||||
// Minimal working example
|
||||
import { Component } from '@hanzo/sign-package';
|
||||
import { Component } from '@hanzo/esign-package';
|
||||
|
||||
const Example = () => {
|
||||
return <Component />;
|
||||
@@ -96,7 +96,7 @@ Description of what it does.
|
||||
#### Example
|
||||
|
||||
```jsx
|
||||
import { Component } from '@hanzo/sign-package';
|
||||
import { Component } from '@hanzo/esign-package';
|
||||
|
||||
<Component prop="value" optional={true} />;
|
||||
```
|
||||
|
||||
@@ -55,9 +55,9 @@ You are implementing a specification from the `.agents/plans/` directory. Work a
|
||||
Work continuously through these steps:
|
||||
|
||||
1. **Implement** - Write the code for the current task
|
||||
2. **Typecheck** - Run `npm run typecheck -w @hanzo/sign-remix` to verify types
|
||||
2. **Typecheck** - Run `npm run typecheck -w @hanzo/esign-remix` to verify types
|
||||
3. **Lint** - Run `npm run lint:fix` to fix linting issues
|
||||
4. **Test** - If non-trivial, run E2E tests: `npm run test:dev -w @hanzo/sign-app-tests`
|
||||
4. **Test** - If non-trivial, run E2E tests: `npm run test:dev -w @hanzo/esign-app-tests`
|
||||
5. **Fix** - If tests fail, fix and re-run
|
||||
6. **Repeat** - Move to next task
|
||||
|
||||
@@ -81,14 +81,14 @@ Work continuously through these steps:
|
||||
|
||||
```bash
|
||||
# Type checking
|
||||
npm run typecheck -w @hanzo/sign-remix
|
||||
npm run typecheck -w @hanzo/esign-remix
|
||||
|
||||
# Linting
|
||||
npm run lint:fix
|
||||
|
||||
# E2E Tests (only for non-trivial work)
|
||||
npm run test:dev -w @hanzo/sign-app-tests # Run E2E tests in dev mode
|
||||
npm run test-ui:dev -w @hanzo/sign-app-tests # Run E2E tests with UI
|
||||
npm run test:dev -w @hanzo/esign-app-tests # Run E2E tests in dev mode
|
||||
npm run test-ui:dev -w @hanzo/esign-app-tests # Run E2E tests with UI
|
||||
npm run test:e2e # Run full E2E test suite
|
||||
|
||||
# Development
|
||||
|
||||
@@ -79,8 +79,8 @@ import { type Page, expect, test } from '@playwright/test';
|
||||
// Prisma enums if needed for DB assertions
|
||||
import { SomePrismaEnum } from '@prisma/client';
|
||||
|
||||
import { nanoid } from '@hanzo/sign-lib/universal/id';
|
||||
import { prisma } from '@hanzo/sign-prisma';
|
||||
import { nanoid } from '@hanzo/esign-lib/universal/id';
|
||||
import { prisma } from '@hanzo/esign-prisma';
|
||||
|
||||
import {
|
||||
type TEnvelopeEditorSurface, // Import needed helpers from the fixture
|
||||
@@ -333,16 +333,16 @@ Every test uses an `externalId` (e.g., `e2e-feature-${nanoid()}`) set via the se
|
||||
|
||||
```bash
|
||||
# Run all envelope editor tests
|
||||
npm run test:dev -w @hanzo/sign-app-tests -- --grep "Envelope Editor V2"
|
||||
npm run test:dev -w @hanzo/esign-app-tests -- --grep "Envelope Editor V2"
|
||||
|
||||
# Run a specific test file
|
||||
npm run test:dev -w @hanzo/sign-app-tests -- e2e/envelope-editor-v2/envelope-recipients.spec.ts
|
||||
npm run test:dev -w @hanzo/esign-app-tests -- e2e/envelope-editor-v2/envelope-recipients.spec.ts
|
||||
|
||||
# Run with UI
|
||||
npm run test-ui:dev -w @hanzo/sign-app-tests -- e2e/envelope-editor-v2/
|
||||
npm run test-ui:dev -w @hanzo/esign-app-tests -- e2e/envelope-editor-v2/
|
||||
|
||||
# Run specific test by name
|
||||
npm run test:dev -w @hanzo/sign-app-tests -- --grep "documents/<id>: add myself"
|
||||
npm run test:dev -w @hanzo/esign-app-tests -- --grep "documents/<id>: add myself"
|
||||
```
|
||||
|
||||
## Checklist When Writing a New Test
|
||||
|
||||
+17
-17
@@ -41,33 +41,33 @@ Hanzo eSign is an open-source document signing platform built as a **monorepo**
|
||||
|
||||
| Package | Description | Port |
|
||||
| -------------------------- | -------------------------------------------------------- | ---- |
|
||||
| `@hanzo/sign-remix` | Main application - React Router (Remix) with Hono server | 3000 |
|
||||
| `@hanzo/sign-documentation` | Documentation site (Next.js + Nextra) | 3002 |
|
||||
| `@hanzo/sign-openpage-api` | Public analytics API | 3003 |
|
||||
| `@hanzo/esign-remix` | Main application - React Router (Remix) with Hono server | 3000 |
|
||||
| `@hanzo/esign-documentation` | Documentation site (Next.js + Nextra) | 3002 |
|
||||
| `@hanzo/esign-openpage-api` | Public analytics API | 3003 |
|
||||
|
||||
### Core Packages (`packages/`)
|
||||
|
||||
| Package | Description |
|
||||
| -------------------- | --------------------------------------------------------- |
|
||||
| `@hanzo/sign-lib` | Core business logic (server-only, client-only, universal) |
|
||||
| `@hanzo/sign-trpc` | tRPC API layer with OpenAPI support (API V2) |
|
||||
| `@hanzo/sign-api` | REST API layer using ts-rest (API V1) |
|
||||
| `@hanzo/sign-prisma` | Database layer (Prisma ORM + Kysely) |
|
||||
| `@hanzo/sign-ui` | UI component library (Shadcn + Radix + Tailwind) |
|
||||
| `@hanzo/sign-email` | Email templates and mailer (React Email) |
|
||||
| `@hanzo/sign-auth` | Authentication (OAuth via Arctic, WebAuthn/Passkeys) |
|
||||
| `@hanzo/sign-signing` | PDF signing (Local P12, Google Cloud KMS) |
|
||||
| `@hanzo/sign-assets` | Static assets |
|
||||
| `@hanzo/esign-lib` | Core business logic (server-only, client-only, universal) |
|
||||
| `@hanzo/esign-trpc` | tRPC API layer with OpenAPI support (API V2) |
|
||||
| `@hanzo/esign-api` | REST API layer using ts-rest (API V1) |
|
||||
| `@hanzo/esign-prisma` | Database layer (Prisma ORM + Kysely) |
|
||||
| `@hanzo/esign-ui` | UI component library (Shadcn + Radix + Tailwind) |
|
||||
| `@hanzo/esign-email` | Email templates and mailer (React Email) |
|
||||
| `@hanzo/esign-auth` | Authentication (OAuth via Arctic, WebAuthn/Passkeys) |
|
||||
| `@hanzo/esign-signing` | PDF signing (Local P12, Google Cloud KMS) |
|
||||
| `@hanzo/esign-assets` | Static assets |
|
||||
|
||||
### Supporting Packages
|
||||
|
||||
| Package | Description |
|
||||
| ---------------------------- | ------------------------- |
|
||||
| `@hanzo/sign-app-tests` | E2E tests (Playwright) |
|
||||
| `@hanzo/sign-eslint-config` | Shared ESLint config |
|
||||
| `@hanzo/sign-prettier-config` | Shared Prettier config |
|
||||
| `@hanzo/sign-tailwind-config` | Shared Tailwind config |
|
||||
| `@hanzo/sign-tsconfig` | Shared TypeScript configs |
|
||||
| `@hanzo/esign-app-tests` | E2E tests (Playwright) |
|
||||
| `@hanzo/esign-eslint-config` | Shared ESLint config |
|
||||
| `@hanzo/esign-prettier-config` | Shared Prettier config |
|
||||
| `@hanzo/esign-tailwind-config` | Shared Tailwind config |
|
||||
| `@hanzo/esign-tsconfig` | Shared TypeScript configs |
|
||||
|
||||
## Tech Stack
|
||||
|
||||
|
||||
+7
-7
@@ -90,10 +90,10 @@ import type { Document, Recipient } from '@prisma/client';
|
||||
import { DocumentStatus, RecipientRole } from '@prisma/client';
|
||||
import { match } from 'ts-pattern';
|
||||
|
||||
// 3. Internal package imports (from @hanzo/sign-*)
|
||||
import { AppError } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { prisma } from '@hanzo/sign-prisma';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
// 3. Internal package imports (from @hanzo/esign-*)
|
||||
import { AppError } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { prisma } from '@hanzo/esign-prisma';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
|
||||
// 4. Relative imports
|
||||
import { getTeamById } from '../team/get-team';
|
||||
@@ -107,8 +107,8 @@ import type { FindResultResponse } from './types';
|
||||
// ✅ Use type imports for types
|
||||
import type { Document } from '@prisma/client';
|
||||
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
```
|
||||
|
||||
---
|
||||
@@ -340,7 +340,7 @@ onClick={() => void onFormSubmit()}
|
||||
|
||||
```typescript
|
||||
// ✅ Blank line after imports
|
||||
import { prisma } from '@hanzo/sign-prisma';
|
||||
import { prisma } from '@hanzo/esign-prisma';
|
||||
|
||||
export const findDocuments = async () => {
|
||||
// ...
|
||||
|
||||
@@ -86,7 +86,7 @@ Contact us if you are interested in our Enterprise plan for large organizations
|
||||
- [shadcn/ui](https://ui.shadcn.com/) - Component Library
|
||||
- [react-email](https://react.email/) - Email Templates
|
||||
- [tRPC](https://trpc.io/) - API
|
||||
- [@hanzo/sign-pdf-sign](https://www.npmjs.com/package/@hanzo/sign-pdf-sign) - PDF Signatures (launching soon)
|
||||
- [@hanzo/esign-pdf-sign](https://www.npmjs.com/package/@hanzo/esign-pdf-sign) - PDF Signatures (launching soon)
|
||||
- [React-PDF](https://github.com/wojtekmaj/react-pdf) - Viewing PDFs
|
||||
- [PDF-Lib](https://github.com/Hopding/pdf-lib) - PDF manipulation
|
||||
- [Stripe](https://stripe.com/) - Payments
|
||||
@@ -179,7 +179,7 @@ git clone https://github.com/<your-username>/hanzo-sign
|
||||
|
||||
---
|
||||
|
||||
- Optional: Seed the database using `npm run prisma:seed -w @hanzo/sign-prisma` to create a test user and document.
|
||||
- Optional: Seed the database using `npm run prisma:seed -w @hanzo/esign-prisma` to create a test user and document.
|
||||
- Optional: Create your own signing certificate.
|
||||
- To generate your own using these steps and a Linux Terminal or Windows Subsystem for Linux (WSL), see **[Create your own signing certificate](./SIGNING.md)**.
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ See the [API documentation](https://openapi.esign.hanzo.ai/reference#tag/embeddi
|
||||
## Creating Documents
|
||||
|
||||
```jsx
|
||||
import { EmbedCreateDocumentV1 } from '@hanzo/sign-embed-react';
|
||||
import { EmbedCreateDocumentV1 } from '@hanzo/esign-embed-react';
|
||||
|
||||
const DocumentCreator = ({ presignToken }) => {
|
||||
return (
|
||||
@@ -72,7 +72,7 @@ const DocumentCreator = ({ presignToken }) => {
|
||||
## Creating Templates
|
||||
|
||||
```jsx
|
||||
import { EmbedCreateTemplateV1 } from '@hanzo/sign-embed-react';
|
||||
import { EmbedCreateTemplateV1 } from '@hanzo/esign-embed-react';
|
||||
|
||||
const TemplateCreator = ({ presignToken }) => {
|
||||
return (
|
||||
@@ -94,7 +94,7 @@ const TemplateCreator = ({ presignToken }) => {
|
||||
## Editing Documents
|
||||
|
||||
```jsx
|
||||
import { EmbedUpdateDocumentV1 } from '@hanzo/sign-embed-react';
|
||||
import { EmbedUpdateDocumentV1 } from '@hanzo/esign-embed-react';
|
||||
|
||||
const DocumentEditor = ({ presignToken, documentId }) => {
|
||||
return (
|
||||
@@ -117,7 +117,7 @@ const DocumentEditor = ({ presignToken, documentId }) => {
|
||||
## Editing Templates
|
||||
|
||||
```jsx
|
||||
import { EmbedUpdateTemplateV1 } from '@hanzo/sign-embed-react';
|
||||
import { EmbedUpdateTemplateV1 } from '@hanzo/esign-embed-react';
|
||||
|
||||
const TemplateEditor = ({ presignToken, templateId }) => {
|
||||
return (
|
||||
@@ -217,7 +217,7 @@ This example shows a full workflow where users create a document and then edit i
|
||||
```tsx
|
||||
import { useState } from 'react';
|
||||
|
||||
import { EmbedCreateDocumentV1, EmbedUpdateDocumentV1 } from '@hanzo/sign-embed-react';
|
||||
import { EmbedCreateDocumentV1, EmbedUpdateDocumentV1 } from '@hanzo/esign-embed-react';
|
||||
|
||||
const DocumentManager = ({ presignToken }) => {
|
||||
const [documentId, setDocumentId] = useState(null);
|
||||
|
||||
@@ -40,7 +40,7 @@ Direct templates are evergreen - each time a user completes signing, a new docum
|
||||
Use the `EmbedDirectTemplate` component with a template token:
|
||||
|
||||
```jsx
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-react';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-react';
|
||||
|
||||
<EmbedDirectTemplate
|
||||
token="your-template-token"
|
||||
@@ -57,7 +57,7 @@ For advanced integrations where you create documents via the API, you can embed
|
||||
Use the `EmbedSignDocument` component with the recipient's token:
|
||||
|
||||
```jsx
|
||||
import { EmbedSignDocument } from '@hanzo/sign-embed-react';
|
||||
import { EmbedSignDocument } from '@hanzo/esign-embed-react';
|
||||
|
||||
<EmbedSignDocument
|
||||
token="recipient-signing-token"
|
||||
@@ -113,33 +113,33 @@ Pick your framework to get started:
|
||||
<Cards>
|
||||
<Card
|
||||
title="React"
|
||||
description="@hanzo/sign-embed-react"
|
||||
description="@hanzo/esign-embed-react"
|
||||
href="/docs/developers/embedding/sdks/react"
|
||||
/>
|
||||
<Card title="Vue" description="@hanzo/sign-embed-vue" href="/docs/developers/embedding/sdks/vue" />
|
||||
<Card title="Vue" description="@hanzo/esign-embed-vue" href="/docs/developers/embedding/sdks/vue" />
|
||||
<Card
|
||||
title="Svelte"
|
||||
description="@hanzo/sign-embed-svelte"
|
||||
description="@hanzo/esign-embed-svelte"
|
||||
href="/docs/developers/embedding/sdks/svelte"
|
||||
/>
|
||||
<Card
|
||||
title="Angular"
|
||||
description="@hanzo/sign-embed-angular"
|
||||
description="@hanzo/esign-embed-angular"
|
||||
href="/docs/developers/embedding/sdks/angular"
|
||||
/>
|
||||
<Card
|
||||
title="Solid"
|
||||
description="@hanzo/sign-embed-solid"
|
||||
description="@hanzo/esign-embed-solid"
|
||||
href="/docs/developers/embedding/sdks/solid"
|
||||
/>
|
||||
<Card
|
||||
title="Preact"
|
||||
description="@hanzo/sign-embed-preact"
|
||||
description="@hanzo/esign-embed-preact"
|
||||
href="/docs/developers/embedding/sdks/preact"
|
||||
/>
|
||||
</Cards>
|
||||
|
||||
A [Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) SDK (`@hanzo/sign-embed-webcomponent`) is also available for use outside of JavaScript frameworks. It works in any environment that supports custom elements.
|
||||
A [Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) SDK (`@hanzo/esign-embed-webcomponent`) is also available for use outside of JavaScript frameworks. It works in any environment that supports custom elements.
|
||||
|
||||
If you prefer not to use any SDK, you can embed signing using [Direct Links](/docs/developers/embedding/direct-links) with a plain iframe or redirect.
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
## Installation
|
||||
|
||||
<Tabs items={['npm', 'yarn', 'pnpm']}>
|
||||
<Tab value="npm">``` npm install @hanzo/sign-embed-angular ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/sign-embed-angular ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/sign-embed-angular ```</Tab>
|
||||
<Tab value="npm">``` npm install @hanzo/esign-embed-angular ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/esign-embed-angular ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/esign-embed-angular ```</Tab>
|
||||
</Tabs>
|
||||
|
||||
---
|
||||
@@ -19,7 +19,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
|
||||
```typescript
|
||||
import { Component } from '@angular/core';
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-angular';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-angular';
|
||||
|
||||
@Component({
|
||||
selector: 'app-signing',
|
||||
@@ -61,7 +61,7 @@ export class SigningComponent {
|
||||
|
||||
```typescript
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { EmbedSignDocument } from '@hanzo/sign-embed-angular';
|
||||
import { EmbedSignDocument } from '@hanzo/esign-embed-angular';
|
||||
|
||||
@Component({
|
||||
selector: 'app-signing',
|
||||
|
||||
@@ -8,28 +8,28 @@ Install the SDK for your framework and embed document signing with a few lines o
|
||||
<Cards>
|
||||
<Card
|
||||
title="React"
|
||||
description="@hanzo/sign-embed-react"
|
||||
description="@hanzo/esign-embed-react"
|
||||
href="/docs/developers/embedding/sdks/react"
|
||||
/>
|
||||
<Card title="Vue" description="@hanzo/sign-embed-vue" href="/docs/developers/embedding/sdks/vue" />
|
||||
<Card title="Vue" description="@hanzo/esign-embed-vue" href="/docs/developers/embedding/sdks/vue" />
|
||||
<Card
|
||||
title="Svelte"
|
||||
description="@hanzo/sign-embed-svelte"
|
||||
description="@hanzo/esign-embed-svelte"
|
||||
href="/docs/developers/embedding/sdks/svelte"
|
||||
/>
|
||||
<Card
|
||||
title="Angular"
|
||||
description="@hanzo/sign-embed-angular"
|
||||
description="@hanzo/esign-embed-angular"
|
||||
href="/docs/developers/embedding/sdks/angular"
|
||||
/>
|
||||
<Card
|
||||
title="Solid"
|
||||
description="@hanzo/sign-embed-solid"
|
||||
description="@hanzo/esign-embed-solid"
|
||||
href="/docs/developers/embedding/sdks/solid"
|
||||
/>
|
||||
<Card
|
||||
title="Preact"
|
||||
description="@hanzo/sign-embed-preact"
|
||||
description="@hanzo/esign-embed-preact"
|
||||
href="/docs/developers/embedding/sdks/preact"
|
||||
/>
|
||||
</Cards>
|
||||
|
||||
@@ -8,9 +8,9 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
## Installation
|
||||
|
||||
<Tabs items={['npm', 'yarn', 'pnpm']}>
|
||||
<Tab value="npm">``` npm install @hanzo/sign-embed-preact ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/sign-embed-preact ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/sign-embed-preact ```</Tab>
|
||||
<Tab value="npm">``` npm install @hanzo/esign-embed-preact ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/esign-embed-preact ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/esign-embed-preact ```</Tab>
|
||||
</Tabs>
|
||||
|
||||
---
|
||||
@@ -18,7 +18,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
## Direct Template
|
||||
|
||||
```tsx
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-preact';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-preact';
|
||||
|
||||
const SigningPage = () => {
|
||||
return (
|
||||
@@ -43,7 +43,7 @@ const SigningPage = () => {
|
||||
## Signing Token
|
||||
|
||||
```tsx
|
||||
import { EmbedSignDocument } from '@hanzo/sign-embed-preact';
|
||||
import { EmbedSignDocument } from '@hanzo/esign-embed-preact';
|
||||
|
||||
const SigningPage = ({ token }: { token: string }) => {
|
||||
return (
|
||||
@@ -62,7 +62,7 @@ const SigningPage = ({ token }: { token: string }) => {
|
||||
## Styling (Platform Plan)
|
||||
|
||||
```tsx
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-preact';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-preact';
|
||||
|
||||
const StyledEmbed = () => {
|
||||
return (
|
||||
|
||||
@@ -8,9 +8,9 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
## Installation
|
||||
|
||||
<Tabs items={['npm', 'yarn', 'pnpm']}>
|
||||
<Tab value="npm">``` npm install @hanzo/sign-embed-react ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/sign-embed-react ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/sign-embed-react ```</Tab>
|
||||
<Tab value="npm">``` npm install @hanzo/esign-embed-react ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/esign-embed-react ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/esign-embed-react ```</Tab>
|
||||
</Tabs>
|
||||
|
||||
---
|
||||
@@ -18,7 +18,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
## Direct Template
|
||||
|
||||
```tsx
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-react';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-react';
|
||||
|
||||
const SigningPage = () => {
|
||||
return (
|
||||
@@ -43,7 +43,7 @@ const SigningPage = () => {
|
||||
## Signing Token
|
||||
|
||||
```tsx
|
||||
import { EmbedSignDocument } from '@hanzo/sign-embed-react';
|
||||
import { EmbedSignDocument } from '@hanzo/esign-embed-react';
|
||||
|
||||
const SigningPage = ({ token }: { token: string }) => {
|
||||
return (
|
||||
@@ -62,7 +62,7 @@ const SigningPage = ({ token }: { token: string }) => {
|
||||
## Styling (Platform Plan)
|
||||
|
||||
```tsx
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-react';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-react';
|
||||
|
||||
const StyledEmbed = () => {
|
||||
return (
|
||||
@@ -94,7 +94,7 @@ See [CSS Variables](/docs/developers/embedding/css-variables) for all available
|
||||
```tsx
|
||||
import { useState } from 'react';
|
||||
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-react';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-react';
|
||||
|
||||
type Status = 'loading' | 'ready' | 'completed' | 'error';
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
## Installation
|
||||
|
||||
<Tabs items={['npm', 'yarn', 'pnpm']}>
|
||||
<Tab value="npm">``` npm install @hanzo/sign-embed-solid ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/sign-embed-solid ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/sign-embed-solid ```</Tab>
|
||||
<Tab value="npm">``` npm install @hanzo/esign-embed-solid ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/esign-embed-solid ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/esign-embed-solid ```</Tab>
|
||||
</Tabs>
|
||||
|
||||
---
|
||||
@@ -18,7 +18,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
## Direct Template
|
||||
|
||||
```tsx
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-solid';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-solid';
|
||||
|
||||
const SigningPage = () => {
|
||||
return (
|
||||
@@ -43,7 +43,7 @@ const SigningPage = () => {
|
||||
## Signing Token
|
||||
|
||||
```tsx
|
||||
import { EmbedSignDocument } from '@hanzo/sign-embed-solid';
|
||||
import { EmbedSignDocument } from '@hanzo/esign-embed-solid';
|
||||
|
||||
const SigningPage = (props: { token: string }) => {
|
||||
return (
|
||||
@@ -62,7 +62,7 @@ const SigningPage = (props: { token: string }) => {
|
||||
## Styling (Platform Plan)
|
||||
|
||||
```tsx
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-solid';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-solid';
|
||||
|
||||
const StyledEmbed = () => {
|
||||
return (
|
||||
|
||||
@@ -8,9 +8,9 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
## Installation
|
||||
|
||||
<Tabs items={['npm', 'yarn', 'pnpm']}>
|
||||
<Tab value="npm">``` npm install @hanzo/sign-embed-svelte ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/sign-embed-svelte ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/sign-embed-svelte ```</Tab>
|
||||
<Tab value="npm">``` npm install @hanzo/esign-embed-svelte ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/esign-embed-svelte ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/esign-embed-svelte ```</Tab>
|
||||
</Tabs>
|
||||
|
||||
---
|
||||
@@ -19,7 +19,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
|
||||
```svelte
|
||||
<script lang="ts">
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-svelte';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-svelte';
|
||||
|
||||
const token = 'your-template-token';
|
||||
|
||||
@@ -46,7 +46,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
|
||||
```svelte
|
||||
<script lang="ts">
|
||||
import { EmbedSignDocument } from '@hanzo/sign-embed-svelte';
|
||||
import { EmbedSignDocument } from '@hanzo/esign-embed-svelte';
|
||||
|
||||
export let token: string;
|
||||
|
||||
@@ -67,7 +67,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
|
||||
```svelte
|
||||
<script lang="ts">
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-svelte';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-svelte';
|
||||
|
||||
const token = 'your-token';
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
## Installation
|
||||
|
||||
<Tabs items={['npm', 'yarn', 'pnpm']}>
|
||||
<Tab value="npm">``` npm install @hanzo/sign-embed-vue ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/sign-embed-vue ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/sign-embed-vue ```</Tab>
|
||||
<Tab value="npm">``` npm install @hanzo/esign-embed-vue ```</Tab>
|
||||
<Tab value="yarn">``` yarn add @hanzo/esign-embed-vue ```</Tab>
|
||||
<Tab value="pnpm">``` pnpm add @hanzo/esign-embed-vue ```</Tab>
|
||||
</Tabs>
|
||||
|
||||
---
|
||||
@@ -19,7 +19,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
|
||||
```html
|
||||
<script setup lang="ts">
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-vue';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-vue';
|
||||
|
||||
const token = 'your-template-token';
|
||||
|
||||
@@ -48,7 +48,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
|
||||
```html
|
||||
<script setup lang="ts">
|
||||
import { EmbedSignDocument } from '@hanzo/sign-embed-vue';
|
||||
import { EmbedSignDocument } from '@hanzo/esign-embed-vue';
|
||||
|
||||
const props = defineProps<{ token: string }>();
|
||||
|
||||
@@ -68,7 +68,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
|
||||
|
||||
```html
|
||||
<script setup lang="ts">
|
||||
import { EmbedDirectTemplate } from '@hanzo/sign-embed-vue';
|
||||
import { EmbedDirectTemplate } from '@hanzo/esign-embed-vue';
|
||||
|
||||
const token = 'your-token';
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ const documents = await response.json();
|
||||
Hanzo eSign provides official SDKs that handle authentication for you:
|
||||
|
||||
```typescript
|
||||
import { Hanzo eSign } from '@hanzo/sign-sdk-typescript';
|
||||
import { Hanzo eSign } from '@hanzo/esign-sdk-typescript';
|
||||
|
||||
const client = new Hanzo eSign({
|
||||
apiKey: 'api_xxxxxxxxxxxxxxxx',
|
||||
|
||||
@@ -22,7 +22,7 @@ Pick the one that fits your needs the best.
|
||||
- [shadcn/ui](https://ui.shadcn.com/) - Component Library
|
||||
- [react-email](https://react.email/) - Email Templates
|
||||
- [tRPC](https://trpc.io/) - API
|
||||
- [@hanzo/sign-pdf-sign](https://www.npmjs.com/package/@hanzo/sign-pdf-sign) - PDF Signatures
|
||||
- [@hanzo/esign-pdf-sign](https://www.npmjs.com/package/@hanzo/esign-pdf-sign) - PDF Signatures
|
||||
- [React-PDF](https://github.com/wojtekmaj/react-pdf) - Viewing PDFs
|
||||
- [PDF-Lib](https://github.com/Hopding/pdf-lib) - PDF manipulation
|
||||
- [Stripe](https://stripe.com/) - Payments
|
||||
|
||||
@@ -78,7 +78,7 @@ npm run prisma:migrate-dev
|
||||
Seed the database with test data by running the following command:
|
||||
|
||||
```bash
|
||||
npm run prisma:seed -w @hanzo/sign-prisma
|
||||
npm run prisma:seed -w @hanzo/esign-prisma
|
||||
```
|
||||
|
||||
</Step>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@hanzo/sign-docs",
|
||||
"name": "@hanzo/esign-docs",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
@@ -1 +1 @@
|
||||
# @hanzo/sign-openpage-api
|
||||
# @hanzo/esign-openpage-api
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { DocumentStatus, EnvelopeType } from '@prisma/client';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
import { kyselyPrisma, monthTrunc, sql } from '@hanzo/sign-prisma';
|
||||
import { kyselyPrisma, monthTrunc, sql } from '@hanzo/esign-prisma';
|
||||
|
||||
import { addZeroMonth } from '../add-zero-month';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
import { kyselyPrisma, monthTrunc } from '@hanzo/sign-prisma';
|
||||
import { kyselyPrisma, monthTrunc } from '@hanzo/esign-prisma';
|
||||
|
||||
import { addZeroMonth } from '../add-zero-month';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
import { kyselyPrisma, monthTrunc } from '@hanzo/sign-prisma';
|
||||
import { kyselyPrisma, monthTrunc } from '@hanzo/esign-prisma';
|
||||
|
||||
import { addZeroMonth } from '../add-zero-month';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@hanzo/sign-openpage-api",
|
||||
"name": "@hanzo/esign-openpage-api",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
@@ -10,7 +10,7 @@
|
||||
"clean": "rimraf .next && rimraf node_modules"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hanzo/sign-prisma": "*",
|
||||
"@hanzo/esign-prisma": "*",
|
||||
"luxon": "^3.7.2",
|
||||
"next": "15.5.12"
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import '@hanzo/sign-ui/styles/theme.css';
|
||||
@import '@hanzo/esign-ui/styles/theme.css';
|
||||
|
||||
/* Inter Variable Fonts */
|
||||
@font-face {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// NEXT_PUBLIC_APP_NAME so tenants can drop in their own brand without
|
||||
// forking the component.
|
||||
|
||||
import { cn } from '@hanzo/sign-ui/lib/utils';
|
||||
import { cn } from '@hanzo/esign-ui/lib/utils';
|
||||
import type { SVGProps } from 'react';
|
||||
|
||||
export type HanzoMarkProps = SVGProps<SVGSVGElement> & {
|
||||
|
||||
@@ -4,11 +4,11 @@ import { msg } from '@lingui/core/macro';
|
||||
import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
|
||||
import { authClient } from '@hanzo/sign-auth/client';
|
||||
import { useSession } from '@hanzo/sign-lib/client-only/providers/session';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { authClient } from '@hanzo/esign-auth/client';
|
||||
import { useSession } from '@hanzo/esign-lib/client-only/providers/session';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -17,10 +17,10 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { Label } from '@hanzo/sign-ui/primitives/label';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { Label } from '@hanzo/esign-ui/primitives/label';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type AccountDeleteDialogProps = {
|
||||
className?: string;
|
||||
|
||||
@@ -5,13 +5,13 @@ import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import { useNavigate } from 'react-router';
|
||||
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import type {
|
||||
TDeleteDocumentRequest,
|
||||
TDeleteDocumentResponse,
|
||||
} from '@hanzo/sign-trpc/server/admin-router/delete-document.types';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/admin-router/delete-document.types';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -20,9 +20,9 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type AdminDocumentDeleteDialogProps = {
|
||||
envelopeId: string;
|
||||
|
||||
@@ -8,12 +8,12 @@ import { useForm } from 'react-hook-form';
|
||||
import { useNavigate } from 'react-router';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { AppError } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import type { TCreateAdminOrganisationRequest } from '@hanzo/sign-trpc/server/admin-router/create-admin-organisation.types';
|
||||
import { ZCreateAdminOrganisationRequestSchema } from '@hanzo/sign-trpc/server/admin-router/create-admin-organisation.types';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { AppError } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import type { TCreateAdminOrganisationRequest } from '@hanzo/esign-trpc/server/admin-router/create-admin-organisation.types';
|
||||
import { ZCreateAdminOrganisationRequestSchema } from '@hanzo/esign-trpc/server/admin-router/create-admin-organisation.types';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -30,9 +30,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationCreateDialogProps = {
|
||||
trigger?: React.ReactNode;
|
||||
|
||||
@@ -10,14 +10,14 @@ import { useNavigate } from 'react-router';
|
||||
import { match } from 'ts-pattern';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { getHighestOrganisationRoleInGroup } from '@hanzo/sign-lib/utils/organisations';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import type { TGetAdminOrganisationResponse } from '@hanzo/sign-trpc/server/admin-router/get-admin-organisation.types';
|
||||
import { getHighestOrganisationRoleInGroup } from '@hanzo/esign-lib/utils/organisations';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import type { TGetAdminOrganisationResponse } from '@hanzo/esign-trpc/server/admin-router/get-admin-organisation.types';
|
||||
import type {
|
||||
TUpdateOrganisationMemberRoleRequest,
|
||||
TUpdateOrganisationMemberRoleResponse,
|
||||
} from '@hanzo/sign-trpc/server/admin-router/update-organisation-member-role.types';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/admin-router/update-organisation-member-role.types';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -34,15 +34,15 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type AdminOrganisationMemberUpdateDialogProps = {
|
||||
trigger?: React.ReactNode;
|
||||
|
||||
@@ -3,15 +3,15 @@ import { useEffect, useMemo, useState } from 'react';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
|
||||
import { AppError } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { useZapMutation, useZapQuery, useZapUtils } from '@hanzo/sign-trpc/zap/react';
|
||||
import type { TFindAdminOrganisationsResponse } from '@hanzo/sign-trpc/server/admin-router/find-admin-organisations.types';
|
||||
import { AppError } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { useZapMutation, useZapQuery, useZapUtils } from '@hanzo/esign-trpc/zap/react';
|
||||
import type { TFindAdminOrganisationsResponse } from '@hanzo/esign-trpc/server/admin-router/find-admin-organisations.types';
|
||||
import type {
|
||||
TSwapOrganisationSubscriptionRequest,
|
||||
TSwapOrganisationSubscriptionResponse,
|
||||
} from '@hanzo/sign-trpc/server/admin-router/swap-organisation-subscription.types';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/admin-router/swap-organisation-subscription.types';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -19,15 +19,15 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type AdminSwapSubscriptionDialogProps = {
|
||||
open: boolean;
|
||||
|
||||
@@ -6,15 +6,15 @@ import { Trans } from '@lingui/react/macro';
|
||||
import { useNavigate } from 'react-router';
|
||||
import { match } from 'ts-pattern';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import type {
|
||||
TDeleteUserRequest,
|
||||
TDeleteUserResponse,
|
||||
} from '@hanzo/sign-trpc/server/admin-router/delete-user.types';
|
||||
import type { TGetUserResponse } from '@hanzo/sign-trpc/server/admin-router/get-user.types';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/admin-router/delete-user.types';
|
||||
import type { TGetUserResponse } from '@hanzo/esign-trpc/server/admin-router/get-user.types';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -23,9 +23,9 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type AdminUserDeleteDialogProps = {
|
||||
className?: string;
|
||||
|
||||
@@ -5,15 +5,15 @@ import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import { match } from 'ts-pattern';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import type {
|
||||
TDisableUserRequest,
|
||||
TDisableUserResponse,
|
||||
} from '@hanzo/sign-trpc/server/admin-router/disable-user.types';
|
||||
import type { TGetUserResponse } from '@hanzo/sign-trpc/server/admin-router/get-user.types';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/admin-router/disable-user.types';
|
||||
import type { TGetUserResponse } from '@hanzo/esign-trpc/server/admin-router/get-user.types';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type AdminUserDisableDialogProps = {
|
||||
className?: string;
|
||||
|
||||
@@ -5,15 +5,15 @@ import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import { match } from 'ts-pattern';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import type {
|
||||
TEnableUserRequest,
|
||||
TEnableUserResponse,
|
||||
} from '@hanzo/sign-trpc/server/admin-router/enable-user.types';
|
||||
import type { TGetUserResponse } from '@hanzo/sign-trpc/server/admin-router/get-user.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/admin-router/enable-user.types';
|
||||
import type { TGetUserResponse } from '@hanzo/esign-trpc/server/admin-router/get-user.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type AdminUserEnableDialogProps = {
|
||||
className?: string;
|
||||
|
||||
@@ -6,15 +6,15 @@ import { Trans } from '@lingui/react/macro';
|
||||
import { useRevalidator } from 'react-router';
|
||||
import { match } from 'ts-pattern';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import type { TGetUserResponse } from '@hanzo/sign-trpc/server/admin-router/get-user.types';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import type { TGetUserResponse } from '@hanzo/esign-trpc/server/admin-router/get-user.types';
|
||||
import type {
|
||||
TResetTwoFactorRequest,
|
||||
TResetTwoFactorResponse,
|
||||
} from '@hanzo/sign-trpc/server/admin-router/reset-two-factor-authentication.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/admin-router/reset-two-factor-authentication.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -23,9 +23,9 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type AdminUserResetTwoFactorDialogProps = {
|
||||
className?: string;
|
||||
|
||||
@@ -4,17 +4,17 @@ import { useLingui } from '@lingui/react/macro';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import { OrganisationMemberRole, TeamMemberRole } from '@prisma/client';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -6,18 +6,18 @@ import { useLingui } from '@lingui/react';
|
||||
import { Plural, Trans } from '@lingui/react/macro';
|
||||
import { CheckIcon, FormInputIcon, ShieldCheckIcon } from 'lucide-react';
|
||||
|
||||
import type { NormalizedFieldWithContext } from '@hanzo/sign-lib/server-only/ai/envelope/detect-fields/types';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import type { NormalizedFieldWithContext } from '@hanzo/esign-lib/server-only/ai/envelope/detect-fields/types';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Label } from '@hanzo/sign-ui/primitives/label';
|
||||
import { Textarea } from '@hanzo/sign-ui/primitives/textarea';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Label } from '@hanzo/esign-ui/primitives/label';
|
||||
import { Textarea } from '@hanzo/esign-ui/primitives/textarea';
|
||||
|
||||
import {
|
||||
AiApiError,
|
||||
|
||||
@@ -5,18 +5,18 @@ import { useLingui } from '@lingui/react';
|
||||
import { Plural, Trans } from '@lingui/react/macro';
|
||||
import { CheckIcon, ShieldCheckIcon, UserIcon, XIcon } from 'lucide-react';
|
||||
|
||||
import { RECIPIENT_ROLES_DESCRIPTION } from '@hanzo/sign-lib/constants/recipient-roles';
|
||||
import type { TDetectedRecipientSchema } from '@hanzo/sign-lib/server-only/ai/envelope/detect-recipients/schema';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/sign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { RECIPIENT_ROLES_DESCRIPTION } from '@hanzo/esign-lib/constants/recipient-roles';
|
||||
import type { TDetectedRecipientSchema } from '@hanzo/esign-lib/server-only/ai/envelope/detect-recipients/schema';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/esign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
|
||||
import {
|
||||
AiApiError,
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Trans, useLingui } from '@lingui/react/macro';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -21,8 +21,8 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
|
||||
import { DocumentSigningDisclosure } from '../general/document-signing/document-signing-disclosure';
|
||||
|
||||
|
||||
@@ -3,14 +3,14 @@ import { useState } from 'react';
|
||||
import { Trans, useLingui } from '@lingui/react/macro';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import type { TLicenseClaim } from '@hanzo/sign-lib/types/license';
|
||||
import { generateDefaultSubscriptionClaim } from '@hanzo/sign-lib/utils/organisations-claims';
|
||||
import type { TLicenseClaim } from '@hanzo/esign-lib/types/license';
|
||||
import { generateDefaultSubscriptionClaim } from '@hanzo/esign-lib/utils/organisations-claims';
|
||||
import type {
|
||||
TCreateSubscriptionClaimRequest,
|
||||
ZCreateSubscriptionClaimRequestSchema,
|
||||
} from '@hanzo/sign-trpc/server/admin-router/create-subscription-claim.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/admin-router/create-subscription-claim.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -19,8 +19,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { SubscriptionClaimForm } from '../forms/subscription-claim-form';
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@ import { useState } from 'react';
|
||||
|
||||
import { Trans, useLingui } from '@lingui/react/macro';
|
||||
|
||||
import type { TDeleteSubscriptionClaimRequest } from '@hanzo/sign-trpc/server/admin-router/delete-subscription-claim.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import type { TDeleteSubscriptionClaimRequest } from '@hanzo/esign-trpc/server/admin-router/delete-subscription-claim.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -14,8 +14,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type ClaimDeleteDialogProps = {
|
||||
claimId: string;
|
||||
|
||||
@@ -2,11 +2,11 @@ import { useState } from 'react';
|
||||
|
||||
import { Trans, useLingui } from '@lingui/react/macro';
|
||||
|
||||
import type { TLicenseClaim } from '@hanzo/sign-lib/types/license';
|
||||
import type { TFindSubscriptionClaimsResponse } from '@hanzo/sign-trpc/server/admin-router/find-subscription-claims.types';
|
||||
import type { TUpdateSubscriptionClaimRequest } from '@hanzo/sign-trpc/server/admin-router/update-subscription-claim.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import type { TLicenseClaim } from '@hanzo/esign-lib/types/license';
|
||||
import type { TFindSubscriptionClaimsResponse } from '@hanzo/esign-trpc/server/admin-router/find-subscription-claims.types';
|
||||
import type { TUpdateSubscriptionClaimRequest } from '@hanzo/esign-trpc/server/admin-router/update-subscription-claim.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -15,8 +15,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { SubscriptionClaimForm } from '../forms/subscription-claim-form';
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@ import { Trans } from '@lingui/react/macro';
|
||||
import { DocumentStatus } from '@prisma/client';
|
||||
import { P, match } from 'ts-pattern';
|
||||
|
||||
import { useLimits } from '@hanzo/sign-lib/server-only/limits/provider/client';
|
||||
import { useLimits } from '@hanzo/esign-lib/server-only/limits/provider/client';
|
||||
import type {
|
||||
TDeleteDocumentRequest,
|
||||
TDeleteDocumentResponse,
|
||||
} from '@hanzo/sign-trpc/server/document-router/delete-document.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/document-router/delete-document.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -21,9 +21,9 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
type DocumentDeleteDialogProps = {
|
||||
id: number;
|
||||
|
||||
@@ -3,21 +3,21 @@ import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import { useNavigate } from 'react-router';
|
||||
|
||||
import { formatDocumentsPath } from '@hanzo/sign-lib/utils/teams';
|
||||
import { formatDocumentsPath } from '@hanzo/esign-lib/utils/teams';
|
||||
import type {
|
||||
TDuplicateEnvelopeRequest,
|
||||
TDuplicateEnvelopeResponse,
|
||||
} from '@hanzo/sign-trpc/server/envelope-router/duplicate-envelope.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/envelope-router/duplicate-envelope.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@ import { useForm } from 'react-hook-form';
|
||||
import { useNavigate } from 'react-router';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { FolderType } from '@hanzo/sign-lib/types/folder-type';
|
||||
import { formatDocumentsPath } from '@hanzo/sign-lib/utils/teams';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/sign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { FolderType } from '@hanzo/esign-lib/types/folder-type';
|
||||
import { formatDocumentsPath } from '@hanzo/esign-lib/utils/teams';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/esign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -31,9 +31,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -9,18 +9,18 @@ import { History } from 'lucide-react';
|
||||
import { useForm, useWatch } from 'react-hook-form';
|
||||
import * as z from 'zod';
|
||||
|
||||
import { useSession } from '@hanzo/sign-lib/client-only/providers/session';
|
||||
import { getRecipientType } from '@hanzo/sign-lib/client-only/recipient-type';
|
||||
import { recipientAbbreviation } from '@hanzo/sign-lib/utils/recipient-formatter';
|
||||
import type { Document } from '@hanzo/sign-prisma/types/document-legacy-schema';
|
||||
import { useSession } from '@hanzo/esign-lib/client-only/providers/session';
|
||||
import { getRecipientType } from '@hanzo/esign-lib/client-only/recipient-type';
|
||||
import { recipientAbbreviation } from '@hanzo/esign-lib/utils/recipient-formatter';
|
||||
import type { Document } from '@hanzo/esign-prisma/types/document-legacy-schema';
|
||||
import type {
|
||||
TRedistributeDocumentRequest,
|
||||
TRedistributeDocumentResponse,
|
||||
} from '@hanzo/sign-trpc/server/document-router/redistribute-document.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { cn } from '@hanzo/sign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Checkbox } from '@hanzo/sign-ui/primitives/checkbox';
|
||||
} from '@hanzo/esign-trpc/server/document-router/redistribute-document.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { cn } from '@hanzo/esign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import { Checkbox } from '@hanzo/esign-ui/primitives/checkbox';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -29,16 +29,16 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { DropdownMenuItem } from '@hanzo/sign-ui/primitives/dropdown-menu';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { DropdownMenuItem } from '@hanzo/esign-ui/primitives/dropdown-menu';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
FormField,
|
||||
FormItem,
|
||||
FormLabel,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@ import { Trans } from '@lingui/react/macro';
|
||||
import { DocumentStatus, EnvelopeType } from '@prisma/client';
|
||||
import { P, match } from 'ts-pattern';
|
||||
|
||||
import { useLimits } from '@hanzo/sign-lib/server-only/limits/provider/client';
|
||||
import { useLimits } from '@hanzo/esign-lib/server-only/limits/provider/client';
|
||||
import type {
|
||||
TDeleteEnvelopeRequest,
|
||||
TDeleteEnvelopeResponse,
|
||||
} from '@hanzo/sign-trpc/server/envelope-router/delete-envelope.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/envelope-router/delete-envelope.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -23,9 +23,9 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
type EnvelopeDeleteDialogProps = {
|
||||
id: string;
|
||||
|
||||
@@ -11,18 +11,18 @@ import { useNavigate } from 'react-router';
|
||||
import { match } from 'ts-pattern';
|
||||
import * as z from 'zod';
|
||||
|
||||
import { useCurrentEnvelopeEditor } from '@hanzo/sign-lib/client-only/providers/envelope-editor-provider';
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { DO_NOT_INVALIDATE_QUERY_ON_MUTATION } from '@hanzo/sign-lib/constants/trpc';
|
||||
import { extractDocumentAuthMethods } from '@hanzo/sign-lib/utils/document-auth';
|
||||
import { getRecipientsWithMissingFields } from '@hanzo/sign-lib/utils/recipients';
|
||||
import type { TDistributeEnvelopeRequest } from '@hanzo/sign-trpc/server/envelope-router/distribute-envelope.types';
|
||||
import type { TFindOrganisationEmailsResponse } from '@hanzo/sign-trpc/server/organisation-router/find-organisation-emails.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/sign-trpc/zap/react';
|
||||
import { DocumentSendEmailMessageHelper } from '@hanzo/sign-ui/components/document/document-send-email-message-helper';
|
||||
import { cn } from '@hanzo/sign-ui/lib/utils';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentEnvelopeEditor } from '@hanzo/esign-lib/client-only/providers/envelope-editor-provider';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { DO_NOT_INVALIDATE_QUERY_ON_MUTATION } from '@hanzo/esign-lib/constants/trpc';
|
||||
import { extractDocumentAuthMethods } from '@hanzo/esign-lib/utils/document-auth';
|
||||
import { getRecipientsWithMissingFields } from '@hanzo/esign-lib/utils/recipients';
|
||||
import type { TDistributeEnvelopeRequest } from '@hanzo/esign-trpc/server/envelope-router/distribute-envelope.types';
|
||||
import type { TFindOrganisationEmailsResponse } from '@hanzo/esign-trpc/server/organisation-router/find-organisation-emails.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/esign-trpc/zap/react';
|
||||
import { DocumentSendEmailMessageHelper } from '@hanzo/esign-ui/components/document/document-send-email-message-helper';
|
||||
import { cn } from '@hanzo/esign-ui/lib/utils';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -40,20 +40,20 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { SpinnerBox } from '@hanzo/sign-ui/primitives/spinner';
|
||||
import { Tabs, TabsList, TabsTrigger } from '@hanzo/sign-ui/primitives/tabs';
|
||||
import { Textarea } from '@hanzo/sign-ui/primitives/textarea';
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from '@hanzo/sign-ui/primitives/tooltip';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { SpinnerBox } from '@hanzo/esign-ui/primitives/spinner';
|
||||
import { Tabs, TabsList, TabsTrigger } from '@hanzo/esign-ui/primitives/tabs';
|
||||
import { Textarea } from '@hanzo/esign-ui/primitives/textarea';
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from '@hanzo/esign-ui/primitives/tooltip';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type EnvelopeDistributeDialogProps = {
|
||||
onDistribute?: () => Promise<void>;
|
||||
|
||||
@@ -5,9 +5,9 @@ import { Trans } from '@lingui/react/macro';
|
||||
import { DocumentStatus, type EnvelopeItem } from '@prisma/client';
|
||||
import { DownloadIcon, FileTextIcon } from 'lucide-react';
|
||||
|
||||
import { downloadPDF } from '@hanzo/sign-lib/client-only/download-pdf';
|
||||
import { useZapQuery } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { downloadPDF } from '@hanzo/esign-lib/client-only/download-pdf';
|
||||
import { useZapQuery } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -15,9 +15,9 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Skeleton } from '@hanzo/sign-ui/primitives/skeleton';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Skeleton } from '@hanzo/esign-ui/primitives/skeleton';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
type EnvelopeItemToDownload = Pick<EnvelopeItem, 'id' | 'envelopeId' | 'title' | 'order'>;
|
||||
|
||||
|
||||
@@ -5,13 +5,13 @@ import { Trans } from '@lingui/react/macro';
|
||||
import { EnvelopeType } from '@prisma/client';
|
||||
import { useNavigate } from 'react-router';
|
||||
|
||||
import { formatDocumentsPath, formatTemplatesPath } from '@hanzo/sign-lib/utils/teams';
|
||||
import { formatDocumentsPath, formatTemplatesPath } from '@hanzo/esign-lib/utils/teams';
|
||||
import type {
|
||||
TDuplicateEnvelopeRequest,
|
||||
TDuplicateEnvelopeResponse,
|
||||
} from '@hanzo/sign-trpc/server/envelope-router/duplicate-envelope.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/envelope-router/duplicate-envelope.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -20,8 +20,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@ import { Trans } from '@lingui/react/macro';
|
||||
import type {
|
||||
TDeleteEnvelopeItemRequest,
|
||||
TDeleteEnvelopeItemResponse,
|
||||
} from '@hanzo/sign-trpc/server/envelope-router/delete-envelope-item.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/envelope-router/delete-envelope-item.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -18,8 +18,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type EnvelopeItemDeleteDialogProps = {
|
||||
canItemBeDeleted: boolean;
|
||||
|
||||
@@ -8,14 +8,14 @@ import { DocumentStatus, EnvelopeType, type Recipient, SigningStatus } from '@pr
|
||||
import { useForm } from 'react-hook-form';
|
||||
import * as z from 'zod';
|
||||
|
||||
import { getRecipientType } from '@hanzo/sign-lib/client-only/recipient-type';
|
||||
import type { TEnvelope } from '@hanzo/sign-lib/types/envelope';
|
||||
import { recipientAbbreviation } from '@hanzo/sign-lib/utils/recipient-formatter';
|
||||
import type { TRedistributeEnvelopeRequest } from '@hanzo/sign-trpc/server/envelope-router/redistribute-envelope.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { cn } from '@hanzo/sign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Checkbox } from '@hanzo/sign-ui/primitives/checkbox';
|
||||
import { getRecipientType } from '@hanzo/esign-lib/client-only/recipient-type';
|
||||
import type { TEnvelope } from '@hanzo/esign-lib/types/envelope';
|
||||
import { recipientAbbreviation } from '@hanzo/esign-lib/utils/recipient-formatter';
|
||||
import type { TRedistributeEnvelopeRequest } from '@hanzo/esign-trpc/server/envelope-router/redistribute-envelope.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { cn } from '@hanzo/esign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import { Checkbox } from '@hanzo/esign-ui/primitives/checkbox';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -25,15 +25,15 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
FormField,
|
||||
FormItem,
|
||||
FormLabel,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { StackAvatar } from '../general/stack-avatar';
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import type {
|
||||
TBulkDeleteEnvelopesRequest,
|
||||
TBulkDeleteEnvelopesResponse,
|
||||
} from '@hanzo/sign-trpc/server/envelope-router/bulk-delete-envelopes.types';
|
||||
import { useZapMutation, useZapUtils } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/envelope-router/bulk-delete-envelopes.types';
|
||||
import { useZapMutation, useZapUtils } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -18,8 +18,8 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type EnvelopesBulkDeleteDialogProps = {
|
||||
envelopeIds: string[];
|
||||
|
||||
@@ -10,14 +10,14 @@ import { useForm } from 'react-hook-form';
|
||||
import { match } from 'ts-pattern';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import type {
|
||||
TBulkMoveEnvelopesRequest,
|
||||
TBulkMoveEnvelopesResponse,
|
||||
} from '@hanzo/sign-trpc/server/envelope-router/bulk-move-envelopes.types';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/sign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation, useZapQuery, useZapUtils } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/envelope-router/bulk-move-envelopes.types';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/esign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation, useZapQuery, useZapUtils } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -33,9 +33,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type EnvelopesBulkMoveDialogProps = {
|
||||
envelopeIds: string[];
|
||||
|
||||
@@ -9,8 +9,8 @@ import { useForm } from 'react-hook-form';
|
||||
import { useParams } from 'react-router';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -27,9 +27,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
const ZCreateFolderFormSchema = z.object({
|
||||
name: z.string().min(1, { message: 'Folder name is required' }),
|
||||
|
||||
@@ -7,11 +7,11 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/sign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/esign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -27,9 +27,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type FolderDeleteDialogProps = {
|
||||
folder: TFolderWithSubfolders;
|
||||
|
||||
@@ -8,10 +8,10 @@ import { FolderIcon, HomeIcon, Search } from 'lucide-react';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/sign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/esign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -19,16 +19,16 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
FormField,
|
||||
FormItem,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type FolderMoveDialogProps = {
|
||||
foldersData: TFolderWithSubfolders[] | undefined;
|
||||
|
||||
@@ -7,11 +7,11 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { DocumentVisibility } from '@hanzo/sign-lib/types/document-visibility';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/sign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { DocumentVisibility } from '@hanzo/esign-lib/types/document-visibility';
|
||||
import type { TFolderWithSubfolders } from '@hanzo/esign-trpc/server/folder-router/schema';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -28,16 +28,16 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useOptionalCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -8,15 +8,15 @@ import { useForm } from 'react-hook-form';
|
||||
import { useSearchParams } from 'react-router';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { useUpdateSearchParams } from '@hanzo/sign-lib/client-only/hooks/use-update-search-params';
|
||||
import { useSession } from '@hanzo/sign-lib/client-only/providers/session';
|
||||
import { AppError } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { useUpdateSearchParams } from '@hanzo/esign-lib/client-only/hooks/use-update-search-params';
|
||||
import { useSession } from '@hanzo/esign-lib/client-only/providers/session';
|
||||
import { AppError } from '@hanzo/esign-lib/errors/app-error';
|
||||
import {
|
||||
type TCreateOrganisationResponse,
|
||||
ZCreateOrganisationRequestSchema,
|
||||
} from '@hanzo/sign-trpc/server/organisation-router/create-organisation.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/organisation-router/create-organisation.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -33,9 +33,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationCreateDialogProps = {
|
||||
trigger?: React.ReactNode;
|
||||
|
||||
@@ -8,11 +8,11 @@ import { useForm } from 'react-hook-form';
|
||||
import { useNavigate } from 'react-router';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { useSession } from '@hanzo/sign-lib/client-only/providers/session';
|
||||
import { AppError } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { useSession } from '@hanzo/esign-lib/client-only/providers/session';
|
||||
import { AppError } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -29,9 +29,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationDeleteDialogProps = {
|
||||
trigger?: React.ReactNode;
|
||||
|
||||
@@ -6,10 +6,10 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { ZCreateOrganisationEmailRequestSchema } from '@hanzo/sign-trpc/server/organisation-router/create-organisation-email.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { ZCreateOrganisationEmailRequestSchema } from '@hanzo/esign-trpc/server/organisation-router/create-organisation-email.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -27,9 +27,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
type EmailDomain = {
|
||||
id: string;
|
||||
|
||||
@@ -3,10 +3,10 @@ import { useState } from 'react';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -15,8 +15,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationEmailDeleteDialogProps = {
|
||||
emailId: string;
|
||||
|
||||
@@ -7,11 +7,11 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { ZCreateOrganisationEmailDomainRequestSchema } from '@hanzo/sign-trpc/server/organisation-router/create-organisation-email-domain.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { ZCreateOrganisationEmailDomainRequestSchema } from '@hanzo/esign-trpc/server/organisation-router/create-organisation-email-domain.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -29,9 +29,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { OrganisationEmailDomainRecordContent } from './organisation-email-domain-records-dialog';
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ import { Trans } from '@lingui/react/macro';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -25,9 +25,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationEmailDomainDeleteDialogProps = {
|
||||
emailDomainId: string;
|
||||
|
||||
@@ -2,9 +2,9 @@ import { useLingui } from '@lingui/react/macro';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
|
||||
import { CopyTextButton } from '@hanzo/sign-ui/components/common/copy-text-button';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { CopyTextButton } from '@hanzo/esign-ui/components/common/copy-text-button';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -14,10 +14,10 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { Label } from '@hanzo/sign-ui/primitives/label';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { Label } from '@hanzo/esign-ui/primitives/label';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationEmailDomainRecordsDialogProps = {
|
||||
trigger: React.ReactNode;
|
||||
|
||||
@@ -6,13 +6,13 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import type { TGetOrganisationEmailDomainResponse } from '@hanzo/sign-trpc/server/organisation-router/get-organisation-email-domain.types';
|
||||
import type { TGetOrganisationEmailDomainResponse } from '@hanzo/esign-trpc/server/organisation-router/get-organisation-email-domain.types';
|
||||
import {
|
||||
type TUpdateOrganisationEmailRequest,
|
||||
ZUpdateOrganisationEmailRequestSchema,
|
||||
} from '@hanzo/sign-trpc/server/organisation-router/update-organisation-email.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/organisation-router/update-organisation-email.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -30,9 +30,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationEmailUpdateDialogProps = {
|
||||
trigger: React.ReactNode;
|
||||
|
||||
@@ -8,14 +8,14 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { ORGANISATION_MEMBER_ROLE_HIERARCHY } from '@hanzo/sign-lib/constants/organisations';
|
||||
import { EXTENDED_ORGANISATION_MEMBER_ROLE_MAP } from '@hanzo/sign-lib/constants/organisations-translations';
|
||||
import { AppError } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { ZCreateOrganisationGroupRequestSchema } from '@hanzo/sign-trpc/server/organisation-router/create-organisation-group.types';
|
||||
import type { TFindOrganisationMembersResponse } from '@hanzo/sign-trpc/server/organisation-router/find-organisation-members.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { ORGANISATION_MEMBER_ROLE_HIERARCHY } from '@hanzo/esign-lib/constants/organisations';
|
||||
import { EXTENDED_ORGANISATION_MEMBER_ROLE_MAP } from '@hanzo/esign-lib/constants/organisations-translations';
|
||||
import { AppError } from '@hanzo/esign-lib/errors/app-error';
|
||||
import { ZCreateOrganisationGroupRequestSchema } from '@hanzo/esign-trpc/server/organisation-router/create-organisation-group.types';
|
||||
import type { TFindOrganisationMembersResponse } from '@hanzo/esign-trpc/server/organisation-router/find-organisation-members.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -33,17 +33,17 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { MultiSelectCombobox } from '@hanzo/sign-ui/primitives/multi-select-combobox';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { MultiSelectCombobox } from '@hanzo/esign-ui/primitives/multi-select-combobox';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationGroupCreateDialogProps = {
|
||||
trigger?: React.ReactNode;
|
||||
|
||||
@@ -4,10 +4,10 @@ import { msg } from '@lingui/core/macro';
|
||||
import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -16,8 +16,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationGroupDeleteDialogProps = {
|
||||
organisationGroupId: string;
|
||||
|
||||
@@ -4,12 +4,12 @@ import { useLingui } from '@lingui/react/macro';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import type { OrganisationMemberRole } from '@prisma/client';
|
||||
|
||||
import { ORGANISATION_MEMBER_ROLE_MAP } from '@hanzo/sign-lib/constants/organisations-translations';
|
||||
import { formatAvatarUrl } from '@hanzo/sign-lib/utils/avatars';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/sign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { ORGANISATION_MEMBER_ROLE_MAP } from '@hanzo/esign-lib/constants/organisations-translations';
|
||||
import { formatAvatarUrl } from '@hanzo/esign-lib/utils/avatars';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/esign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -18,8 +18,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationLeaveDialogProps = {
|
||||
organisationId: string;
|
||||
|
||||
@@ -4,11 +4,11 @@ import { msg } from '@lingui/core/macro';
|
||||
import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/sign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/esign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -17,8 +17,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationMemberDeleteDialogProps = {
|
||||
organisationMemberId: string;
|
||||
|
||||
@@ -11,22 +11,22 @@ import Papa, { type ParseResult } from 'papaparse';
|
||||
import { useFieldArray, useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { downloadFile } from '@hanzo/sign-lib/client-only/download-file';
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { IS_BILLING_ENABLED, SUPPORT_EMAIL } from '@hanzo/sign-lib/constants/app';
|
||||
import { ORGANISATION_MEMBER_ROLE_HIERARCHY } from '@hanzo/sign-lib/constants/organisations';
|
||||
import { ORGANISATION_MEMBER_ROLE_MAP } from '@hanzo/sign-lib/constants/organisations-translations';
|
||||
import { INTERNAL_CLAIM_ID } from '@hanzo/sign-lib/types/subscription';
|
||||
import { downloadFile } from '@hanzo/esign-lib/client-only/download-file';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { IS_BILLING_ENABLED, SUPPORT_EMAIL } from '@hanzo/esign-lib/constants/app';
|
||||
import { ORGANISATION_MEMBER_ROLE_HIERARCHY } from '@hanzo/esign-lib/constants/organisations';
|
||||
import { ORGANISATION_MEMBER_ROLE_MAP } from '@hanzo/esign-lib/constants/organisations-translations';
|
||||
import { INTERNAL_CLAIM_ID } from '@hanzo/esign-lib/types/subscription';
|
||||
import {
|
||||
type TCreateOrganisationMemberInvitesRequestSchema,
|
||||
ZCreateOrganisationMemberInvitesRequestSchema,
|
||||
} from '@hanzo/sign-trpc/server/organisation-router/create-organisation-member-invites.types';
|
||||
import type { TGetOrganisationResponse } from '@hanzo/sign-trpc/server/organisation-router/get-organisation.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/sign-trpc/zap/react';
|
||||
import { cn } from '@hanzo/sign-ui/lib/utils';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Card, CardContent } from '@hanzo/sign-ui/primitives/card';
|
||||
} from '@hanzo/esign-trpc/server/organisation-router/create-organisation-member-invites.types';
|
||||
import type { TGetOrganisationResponse } from '@hanzo/esign-trpc/server/organisation-router/get-organisation.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/esign-trpc/zap/react';
|
||||
import { cn } from '@hanzo/esign-ui/lib/utils';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import { Card, CardContent } from '@hanzo/esign-ui/primitives/card';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -43,18 +43,18 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { SpinnerBox } from '@hanzo/sign-ui/primitives/spinner';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@hanzo/sign-ui/primitives/tabs';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { SpinnerBox } from '@hanzo/esign-ui/primitives/spinner';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@hanzo/esign-ui/primitives/tabs';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationMemberInviteDialogProps = {
|
||||
trigger?: React.ReactNode;
|
||||
|
||||
@@ -9,12 +9,12 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { ORGANISATION_MEMBER_ROLE_HIERARCHY } from '@hanzo/sign-lib/constants/organisations';
|
||||
import { ORGANISATION_MEMBER_ROLE_MAP } from '@hanzo/sign-lib/constants/organisations-translations';
|
||||
import { isOrganisationRoleWithinUserHierarchy } from '@hanzo/sign-lib/utils/organisations';
|
||||
import type { ZUpdateOrganisationMemberRequestSchema } from '@hanzo/sign-trpc/server/organisation-router/update-organisation-members.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { ORGANISATION_MEMBER_ROLE_HIERARCHY } from '@hanzo/esign-lib/constants/organisations';
|
||||
import { ORGANISATION_MEMBER_ROLE_MAP } from '@hanzo/esign-lib/constants/organisations-translations';
|
||||
import { isOrganisationRoleWithinUserHierarchy } from '@hanzo/esign-lib/utils/organisations';
|
||||
import type { ZUpdateOrganisationMemberRequestSchema } from '@hanzo/esign-trpc/server/organisation-router/update-organisation-members.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -31,15 +31,15 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type OrganisationMemberUpdateDialogProps = {
|
||||
currentUserOrganisationRole: OrganisationMemberRole;
|
||||
|
||||
@@ -10,13 +10,13 @@ import { match } from 'ts-pattern';
|
||||
import { UAParser } from 'ua-parser-js';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { MAXIMUM_PASSKEYS } from '@hanzo/sign-lib/constants/auth';
|
||||
import { AppError } from '@hanzo/sign-lib/errors/app-error';
|
||||
import type { TCreatePasskeyRequest } from '@hanzo/sign-trpc/server/auth-router/create-passkey.types';
|
||||
import type { TCreatePasskeyRegistrationOptionsResponse } from '@hanzo/sign-trpc/server/auth-router/create-passkey-registration-options.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { MAXIMUM_PASSKEYS } from '@hanzo/esign-lib/constants/auth';
|
||||
import { AppError } from '@hanzo/esign-lib/errors/app-error';
|
||||
import type { TCreatePasskeyRequest } from '@hanzo/esign-trpc/server/auth-router/create-passkey.types';
|
||||
import type { TCreatePasskeyRegistrationOptionsResponse } from '@hanzo/esign-trpc/server/auth-router/create-passkey-registration-options.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -33,9 +33,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type PasskeyCreateDialogProps = {
|
||||
trigger?: React.ReactNode;
|
||||
|
||||
@@ -11,16 +11,16 @@ import { useForm } from 'react-hook-form';
|
||||
import { P, match } from 'ts-pattern';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { type Template } from '@hanzo/sign-prisma/types/template-legacy-schema';
|
||||
import { type Template } from '@hanzo/esign-prisma/types/template-legacy-schema';
|
||||
import {
|
||||
MAX_TEMPLATE_PUBLIC_DESCRIPTION_LENGTH,
|
||||
MAX_TEMPLATE_PUBLIC_TITLE_LENGTH,
|
||||
type ZUpdateTemplateRequestSchema,
|
||||
type ZUpdateTemplateResponseSchema,
|
||||
} from '@hanzo/sign-trpc/server/template-router/schema';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { AnimateGenericFadeInOut } from '@hanzo/sign-ui/components/animate/animate-generic-fade-in-out';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/template-router/schema';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { AnimateGenericFadeInOut } from '@hanzo/esign-ui/components/animate/animate-generic-fade-in-out';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -38,8 +38,8 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import {
|
||||
Table,
|
||||
TableBody,
|
||||
@@ -47,9 +47,9 @@ import {
|
||||
TableHead,
|
||||
TableHeader,
|
||||
TableRow,
|
||||
} from '@hanzo/sign-ui/primitives/table';
|
||||
import { Textarea } from '@hanzo/sign-ui/primitives/textarea';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/table';
|
||||
import { Textarea } from '@hanzo/esign-ui/primitives/textarea';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ import { useState } from 'react';
|
||||
|
||||
import { Trans, useLingui } from '@lingui/react/macro';
|
||||
|
||||
import { authClient } from '@hanzo/sign-auth/client';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { authClient } from '@hanzo/esign-auth/client';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -13,8 +13,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
type SessionLogoutAllDialogProps = {
|
||||
onSuccess?: () => Promise<unknown>;
|
||||
|
||||
@@ -6,11 +6,11 @@ import { useForm, useWatch } from 'react-hook-form';
|
||||
import { match } from 'ts-pattern';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { validateCheckboxLength } from '@hanzo/sign-lib/advanced-fields-validation/validate-checkbox';
|
||||
import { type TCheckboxFieldMeta } from '@hanzo/sign-lib/types/field-meta';
|
||||
import { cn } from '@hanzo/sign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Checkbox } from '@hanzo/sign-ui/primitives/checkbox';
|
||||
import { validateCheckboxLength } from '@hanzo/esign-lib/advanced-fields-validation/validate-checkbox';
|
||||
import { type TCheckboxFieldMeta } from '@hanzo/esign-lib/types/field-meta';
|
||||
import { cn } from '@hanzo/esign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import { Checkbox } from '@hanzo/esign-ui/primitives/checkbox';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -18,8 +18,8 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { Form, FormControl, FormField, FormItem } from '@hanzo/sign-ui/primitives/form/form';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { Form, FormControl, FormField, FormItem } from '@hanzo/esign-ui/primitives/form/form';
|
||||
|
||||
export type SignFieldCheckboxDialogProps = {
|
||||
fieldMeta: TCheckboxFieldMeta;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
import { createCallable } from 'react-call';
|
||||
|
||||
import type { TDropdownFieldMeta } from '@hanzo/sign-lib/types/field-meta';
|
||||
import type { TDropdownFieldMeta } from '@hanzo/esign-lib/types/field-meta';
|
||||
import {
|
||||
CommandDialog,
|
||||
CommandEmpty,
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
CommandInput,
|
||||
CommandItem,
|
||||
CommandList,
|
||||
} from '@hanzo/sign-ui/primitives/command';
|
||||
} from '@hanzo/esign-ui/primitives/command';
|
||||
|
||||
export type SignFieldDropdownDialogProps = {
|
||||
fieldMeta: TDropdownFieldMeta;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { createCallable } from 'react-call';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -13,15 +13,15 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
FormField,
|
||||
FormItem,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
|
||||
const ZSignFieldEmailFormSchema = z.object({
|
||||
email: z
|
||||
|
||||
@@ -5,7 +5,7 @@ import { createCallable } from 'react-call';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -21,8 +21,8 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
|
||||
const ZSignFieldInitialsFormSchema = z.object({
|
||||
initials: z.string().min(1, { message: msg`Initials are required`.id }),
|
||||
|
||||
@@ -5,7 +5,7 @@ import { createCallable } from 'react-call';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -13,15 +13,15 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
FormField,
|
||||
FormItem,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
|
||||
const ZSignFieldNameFormSchema = z.object({
|
||||
name: z.string().min(1, { message: msg`Name is required`.id }),
|
||||
|
||||
@@ -5,9 +5,9 @@ import { createCallable } from 'react-call';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { TNumberFieldMeta } from '@hanzo/sign-lib/types/field-meta';
|
||||
import { cn } from '@hanzo/sign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import type { TNumberFieldMeta } from '@hanzo/esign-lib/types/field-meta';
|
||||
import { cn } from '@hanzo/esign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -15,16 +15,16 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { numberFormatValues } from '@hanzo/sign-ui/primitives/document-flow/field-items-advanced-settings/constants';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { numberFormatValues } from '@hanzo/esign-ui/primitives/document-flow/field-items-advanced-settings/constants';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
FormField,
|
||||
FormItem,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
|
||||
export type SignFieldNumberDialogProps = {
|
||||
fieldMeta: TNumberFieldMeta;
|
||||
|
||||
@@ -3,15 +3,15 @@ import { useState } from 'react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import { createCallable } from 'react-call';
|
||||
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { SignaturePad } from '@hanzo/sign-ui/primitives/signature-pad';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { SignaturePad } from '@hanzo/esign-ui/primitives/signature-pad';
|
||||
|
||||
import { DocumentSigningDisclosure } from '../general/document-signing/document-signing-disclosure';
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ import { createCallable } from 'react-call';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { TTextFieldMeta } from '@hanzo/sign-lib/types/field-meta';
|
||||
import { cn } from '@hanzo/sign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import type { TTextFieldMeta } from '@hanzo/esign-lib/types/field-meta';
|
||||
import { cn } from '@hanzo/esign-ui/lib/utils';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -16,15 +16,15 @@ import {
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
FormField,
|
||||
FormItem,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Textarea } from '@hanzo/sign-ui/primitives/textarea';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Textarea } from '@hanzo/esign-ui/primitives/textarea';
|
||||
|
||||
const ZSignFieldTextFormSchema = z.object({
|
||||
text: z.string().min(1, { message: msg`Text is required`.id }),
|
||||
|
||||
@@ -9,24 +9,24 @@ import { useForm } from 'react-hook-form';
|
||||
import { useSearchParams } from 'react-router';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { useUpdateSearchParams } from '@hanzo/sign-lib/client-only/hooks/use-update-search-params';
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { useSession } from '@hanzo/sign-lib/client-only/providers/session';
|
||||
import { useUpdateSearchParams } from '@hanzo/esign-lib/client-only/hooks/use-update-search-params';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { useSession } from '@hanzo/esign-lib/client-only/providers/session';
|
||||
import {
|
||||
IS_BILLING_ENABLED,
|
||||
NEXT_PUBLIC_WEBAPP_URL,
|
||||
SUPPORT_EMAIL,
|
||||
} from '@hanzo/sign-lib/constants/app';
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import type { TGetOrganisationResponse } from '@hanzo/sign-trpc/server/organisation-router/get-organisation.types';
|
||||
} from '@hanzo/esign-lib/constants/app';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import type { TGetOrganisationResponse } from '@hanzo/esign-trpc/server/organisation-router/get-organisation.types';
|
||||
import {
|
||||
type TCreateTeamRequest,
|
||||
ZCreateTeamRequestSchema,
|
||||
} from '@hanzo/sign-trpc/server/team-router/create-team.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { Checkbox } from '@hanzo/sign-ui/primitives/checkbox';
|
||||
} from '@hanzo/esign-trpc/server/team-router/create-team.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import { Checkbox } from '@hanzo/esign-ui/primitives/checkbox';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -43,10 +43,10 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { SpinnerBox } from '@hanzo/sign-ui/primitives/spinner';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { SpinnerBox } from '@hanzo/esign-ui/primitives/spinner';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type TeamCreateDialogProps = {
|
||||
trigger?: React.ReactNode;
|
||||
|
||||
@@ -8,12 +8,12 @@ import { useForm } from 'react-hook-form';
|
||||
import { useNavigate } from 'react-router';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import { useSession } from '@hanzo/sign-lib/client-only/providers/session';
|
||||
import { AppError } from '@hanzo/sign-lib/errors/app-error';
|
||||
import type { ZDeleteTeamRequestSchema } from '@hanzo/sign-trpc/server/team-router/delete-team.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import { useSession } from '@hanzo/esign-lib/client-only/providers/session';
|
||||
import { AppError } from '@hanzo/esign-lib/errors/app-error';
|
||||
import type { ZDeleteTeamRequestSchema } from '@hanzo/esign-trpc/server/team-router/delete-team.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -30,17 +30,17 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import type { Toast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import type { Toast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type TeamDeleteDialogProps = {
|
||||
teamId: number;
|
||||
|
||||
@@ -8,13 +8,13 @@ import { useForm } from 'react-hook-form';
|
||||
import { useRevalidator } from 'react-router';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { AppError, AppErrorCode } from '@hanzo/sign-lib/errors/app-error';
|
||||
import { AppError, AppErrorCode } from '@hanzo/esign-lib/errors/app-error';
|
||||
import {
|
||||
type TCreateTeamEmailVerificationMutationSchema,
|
||||
ZCreateTeamEmailVerificationMutationSchema,
|
||||
} from '@hanzo/sign-trpc/server/team-router/schema';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/team-router/schema';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -31,9 +31,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type TeamEmailAddDialogProps = {
|
||||
teamId: number;
|
||||
|
||||
@@ -7,16 +7,16 @@ import type { Prisma } from '@prisma/client';
|
||||
import { useRevalidator } from 'react-router';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { formatAvatarUrl } from '@hanzo/sign-lib/utils/avatars';
|
||||
import { extractInitials } from '@hanzo/sign-lib/utils/recipient-formatter';
|
||||
import { formatAvatarUrl } from '@hanzo/esign-lib/utils/avatars';
|
||||
import { extractInitials } from '@hanzo/esign-lib/utils/recipient-formatter';
|
||||
import type {
|
||||
TDeleteTeamEmailMutationSchema,
|
||||
ZDeleteTeamEmailVerificationMutationSchema,
|
||||
} from '@hanzo/sign-trpc/server/team-router/schema';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/sign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
} from '@hanzo/esign-trpc/server/team-router/schema';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/esign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -25,8 +25,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type TeamEmailDeleteDialogProps = {
|
||||
trigger?: React.ReactNode;
|
||||
|
||||
@@ -8,9 +8,9 @@ import { useForm } from 'react-hook-form';
|
||||
import { useRevalidator } from 'react-router';
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { TUpdateTeamEmailMutationSchema } from '@hanzo/sign-trpc/server/team-router/schema';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import type { TUpdateTeamEmailMutationSchema } from '@hanzo/esign-trpc/server/team-router/schema';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -27,9 +27,9 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type TeamEmailUpdateDialogProps = {
|
||||
teamEmail: TeamEmail;
|
||||
|
||||
@@ -8,13 +8,13 @@ import { useForm } from 'react-hook-form';
|
||||
import { match } from 'ts-pattern';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { TEAM_MEMBER_ROLE_HIERARCHY } from '@hanzo/sign-lib/constants/teams';
|
||||
import { TEAM_MEMBER_ROLE_MAP } from '@hanzo/sign-lib/constants/teams-translations';
|
||||
import type { ZCreateTeamGroupsRequestSchema } from '@hanzo/sign-trpc/server/team-router/create-team-groups.types';
|
||||
import type { TFindTeamGroupsResponse } from '@hanzo/sign-trpc/server/team-router/find-team-groups.types';
|
||||
import type { TFindOrganisationGroupsResponse } from '@hanzo/sign-trpc/server/organisation-router/find-organisation-groups.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { TEAM_MEMBER_ROLE_HIERARCHY } from '@hanzo/esign-lib/constants/teams';
|
||||
import { TEAM_MEMBER_ROLE_MAP } from '@hanzo/esign-lib/constants/teams-translations';
|
||||
import type { ZCreateTeamGroupsRequestSchema } from '@hanzo/esign-trpc/server/team-router/create-team-groups.types';
|
||||
import type { TFindTeamGroupsResponse } from '@hanzo/esign-trpc/server/team-router/find-team-groups.types';
|
||||
import type { TFindOrganisationGroupsResponse } from '@hanzo/esign-trpc/server/organisation-router/find-organisation-groups.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -32,17 +32,17 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { MultiSelectCombobox } from '@hanzo/sign-ui/primitives/multi-select-combobox';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { MultiSelectCombobox } from '@hanzo/esign-ui/primitives/multi-select-combobox';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@ import { Trans } from '@lingui/react/macro';
|
||||
import type { TeamMemberRole } from '@prisma/client';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { isTeamRoleWithinUserHierarchy } from '@hanzo/sign-lib/utils/teams';
|
||||
import type { ZDeleteTeamGroupRequestSchema } from '@hanzo/sign-trpc/server/team-router/delete-team-group.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { isTeamRoleWithinUserHierarchy } from '@hanzo/esign-lib/utils/teams';
|
||||
import type { ZDeleteTeamGroupRequestSchema } from '@hanzo/esign-trpc/server/team-router/delete-team-group.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -19,8 +19,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -9,13 +9,13 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { TEAM_MEMBER_ROLE_HIERARCHY } from '@hanzo/sign-lib/constants/teams';
|
||||
import { EXTENDED_TEAM_MEMBER_ROLE_MAP } from '@hanzo/sign-lib/constants/teams-translations';
|
||||
import { isTeamRoleWithinUserHierarchy } from '@hanzo/sign-lib/utils/teams';
|
||||
import type { TUpdateTeamGroupRequest } from '@hanzo/sign-trpc/server/team-router/update-team-group.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { TEAM_MEMBER_ROLE_HIERARCHY } from '@hanzo/esign-lib/constants/teams';
|
||||
import { EXTENDED_TEAM_MEMBER_ROLE_MAP } from '@hanzo/esign-lib/constants/teams-translations';
|
||||
import { isTeamRoleWithinUserHierarchy } from '@hanzo/esign-lib/utils/teams';
|
||||
import type { TUpdateTeamGroupRequest } from '@hanzo/esign-trpc/server/team-router/update-team-group.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -32,15 +32,15 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@ import { Trans, useLingui } from '@lingui/react/macro';
|
||||
import type { TeamGroup } from '@prisma/client';
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { ZDeleteTeamGroupRequestSchema } from '@hanzo/sign-trpc/server/team-router/delete-team-group.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import type { ZDeleteTeamGroupRequestSchema } from '@hanzo/esign-trpc/server/team-router/delete-team-group.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -14,8 +14,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@ import { Trans, useLingui } from '@lingui/react/macro';
|
||||
import { OrganisationGroupType, OrganisationMemberRole, TeamMemberRole } from '@prisma/client';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { useCurrentOrganisation } from '@hanzo/sign-lib/client-only/providers/organisation';
|
||||
import type { ZCreateTeamGroupsRequestSchema } from '@hanzo/sign-trpc/server/team-router/create-team-groups.types';
|
||||
import type { TFindOrganisationGroupsResponse } from '@hanzo/sign-trpc/server/organisation-router/find-organisation-groups.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { useCurrentOrganisation } from '@hanzo/esign-lib/client-only/providers/organisation';
|
||||
import type { ZCreateTeamGroupsRequestSchema } from '@hanzo/esign-trpc/server/team-router/create-team-groups.types';
|
||||
import type { TFindOrganisationGroupsResponse } from '@hanzo/esign-trpc/server/organisation-router/find-organisation-groups.types';
|
||||
import { useZapMutation, useZapQuery } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogClose,
|
||||
@@ -16,8 +16,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
|
||||
@@ -10,14 +10,14 @@ import { Link } from 'react-router';
|
||||
import { match } from 'ts-pattern';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { TEAM_MEMBER_ROLE_HIERARCHY } from '@hanzo/sign-lib/constants/teams';
|
||||
import { TEAM_MEMBER_ROLE_MAP } from '@hanzo/sign-lib/constants/teams-translations';
|
||||
import type { TCreateTeamMembersRequestSchema } from '@hanzo/sign-trpc/server/team-router/create-team-members.types';
|
||||
import type { TFindTeamMembersResponse } from '@hanzo/sign-trpc/server/team-router/find-team-members.types';
|
||||
import type { TFindOrganisationMembersResponse } from '@hanzo/sign-trpc/server/organisation-router/find-organisation-members.types';
|
||||
import { useZapMutation, useZapQuery, useZapUtils } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { TEAM_MEMBER_ROLE_HIERARCHY } from '@hanzo/esign-lib/constants/teams';
|
||||
import { TEAM_MEMBER_ROLE_MAP } from '@hanzo/esign-lib/constants/teams-translations';
|
||||
import type { TCreateTeamMembersRequestSchema } from '@hanzo/esign-trpc/server/team-router/create-team-members.types';
|
||||
import type { TFindTeamMembersResponse } from '@hanzo/esign-trpc/server/team-router/find-team-members.types';
|
||||
import type { TFindOrganisationMembersResponse } from '@hanzo/esign-trpc/server/organisation-router/find-organisation-members.types';
|
||||
import { useZapMutation, useZapQuery, useZapUtils } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -35,18 +35,18 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/sign-ui/primitives/input';
|
||||
import { MultiSelectCombobox } from '@hanzo/sign-ui/primitives/multi-select-combobox';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import { Input } from '@hanzo/esign-ui/primitives/input';
|
||||
import { MultiSelectCombobox } from '@hanzo/esign-ui/primitives/multi-select-combobox';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from '@hanzo/sign-ui/primitives/tooltip';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from '@hanzo/esign-ui/primitives/tooltip';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
import { OrganisationMemberInviteDialog } from '~/components/dialogs/organisation-member-invite-dialog';
|
||||
import { useCurrentTeam } from '~/providers/team';
|
||||
|
||||
@@ -5,11 +5,11 @@ import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { ZDeleteTeamMemberRequestSchema } from '@hanzo/sign-trpc/server/team-router/delete-team-member.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/sign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/sign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import type { ZDeleteTeamMemberRequestSchema } from '@hanzo/esign-trpc/server/team-router/delete-team-member.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Alert, AlertDescription } from '@hanzo/esign-ui/primitives/alert';
|
||||
import { AvatarWithText } from '@hanzo/esign-ui/primitives/avatar';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -18,8 +18,8 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type TeamMemberDeleteDialogProps = {
|
||||
teamId: number;
|
||||
|
||||
@@ -9,12 +9,12 @@ import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { TEAM_MEMBER_ROLE_HIERARCHY } from '@hanzo/sign-lib/constants/teams';
|
||||
import { EXTENDED_TEAM_MEMBER_ROLE_MAP } from '@hanzo/sign-lib/constants/teams-translations';
|
||||
import { isTeamRoleWithinUserHierarchy } from '@hanzo/sign-lib/utils/teams';
|
||||
import type { ZUpdateTeamMemberRequestSchema } from '@hanzo/sign-trpc/server/team-router/update-team-member.types';
|
||||
import { useZapMutation } from '@hanzo/sign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/sign-ui/primitives/button';
|
||||
import { TEAM_MEMBER_ROLE_HIERARCHY } from '@hanzo/esign-lib/constants/teams';
|
||||
import { EXTENDED_TEAM_MEMBER_ROLE_MAP } from '@hanzo/esign-lib/constants/teams-translations';
|
||||
import { isTeamRoleWithinUserHierarchy } from '@hanzo/esign-lib/utils/teams';
|
||||
import type { ZUpdateTeamMemberRequestSchema } from '@hanzo/esign-trpc/server/team-router/update-team-member.types';
|
||||
import { useZapMutation } from '@hanzo/esign-trpc/zap/react';
|
||||
import { Button } from '@hanzo/esign-ui/primitives/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
} from '@hanzo/sign-ui/primitives/dialog';
|
||||
} from '@hanzo/esign-ui/primitives/dialog';
|
||||
import {
|
||||
Form,
|
||||
FormControl,
|
||||
@@ -31,15 +31,15 @@ import {
|
||||
FormItem,
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@hanzo/sign-ui/primitives/form/form';
|
||||
} from '@hanzo/esign-ui/primitives/form/form';
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@hanzo/sign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/sign-ui/primitives/use-toast';
|
||||
} from '@hanzo/esign-ui/primitives/select';
|
||||
import { useToast } from '@hanzo/esign-ui/primitives/use-toast';
|
||||
|
||||
export type TeamMemberUpdateDialogProps = {
|
||||
currentUserTeamRole: TeamMemberRole;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user