diff --git a/.changeset/config.json b/.changeset/config.json index 031e92011..51df5b0e6 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,9 +1,6 @@ { "$schema": "https://unpkg.com/@changesets/config@2.2.0/schema.json", - "changelog": [ - "@changesets/changelog-github", - { "repo": "teable-group/teable" } - ], + "changelog": ["@changesets/changelog-github", { "repo": "teableio/teable" }], "privatePackages": { "version": true, "tag": true }, "commit": true, "linked": [], diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index c7cb7114a..9c9cba52c 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,2 @@ -github: teable-group -ko_fi: teable-group +github: teableio +ko_fi: teableio diff --git a/.github/workflows/ci-packages.yml.disabled b/.github/workflows/ci-packages.yml.disabled index e6f136629..b17282a7a 100644 --- a/.github/workflows/ci-packages.yml.disabled +++ b/.github/workflows/ci-packages.yml.disabled @@ -64,28 +64,28 @@ jobs: - name: Run prisma db push generate db structure run: | - yarn workspace @teable-group/db-main-prisma prisma-db-push + yarn workspace @teable/db-main-prisma prisma-db-push # to debug cache issues: ls ${{ github.workspace }}/.cache # Build packages that have changed (--include & --since), assuming that # apps build are done already. Otherwise --from & --since - name: Run build for changed packages run: | - yarn workspaces foreach -tv --include '@teable-group/*' run build + yarn workspaces foreach -tv --include '@teable/*' run build # Typecheck packages that have changed + packages and apps that depends on them (--from & --since) # That allows to see if we're introducing "surface" regressions (just the types) - name: Typecheck run: | - yarn workspaces foreach -tv --from '@teable-group/*' run typecheck + yarn workspaces foreach -tv --from '@teable/*' run typecheck # Lint packages that have changed (--include & --since) - name: Linter run: | - yarn workspaces foreach -tv --include '@teable-group/*' run lint - yarn workspaces foreach -tv --include '@teable-group/*' run lint-styles + yarn workspaces foreach -tv --include '@teable/*' run lint + yarn workspaces foreach -tv --include '@teable/*' run lint-styles # Test packages that have changed (--include & --since) - name: Unit tests changed packages run: | - yarn workspaces foreach -tv --include '@teable-group/*' run test --silent + yarn workspaces foreach -tv --include '@teable/*' run test --silent diff --git a/.github/workflows/ci-web-app-docker.yml.disabled b/.github/workflows/ci-web-app-docker.yml.disabled index f0e97c7bb..126e7b370 100644 --- a/.github/workflows/ci-web-app-docker.yml.disabled +++ b/.github/workflows/ci-web-app-docker.yml.disabled @@ -70,7 +70,7 @@ jobs: push: false file: ./Dockerfile target: runner - tags: teable-group/monorepo-nextjs-app:latest + tags: teableio/monorepo-nextjs-app:latest cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 8d976cacf..dea6f5cb0 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -31,7 +31,7 @@ jobs: - name: 🧩 Generate Prisma Client working-directory: packages/db-main-prisma run: | - pnpm -F @teable-group/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma + pnpm -F @teable/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma - name: 🏗 Run build run: | diff --git a/.github/workflows/release-or-version-pr.yml.disabled b/.github/workflows/release-or-version-pr.yml.disabled index 1068b12c5..495425dd8 100644 --- a/.github/workflows/release-or-version-pr.yml.disabled +++ b/.github/workflows/release-or-version-pr.yml.disabled @@ -8,7 +8,7 @@ on: jobs: release: # Basic security: the release job can only be executed from this repo and from the main branch (not a remote thing) - if: ${{ github.repository == 'teable-group/teable' && contains('refs/heads/main',github.ref)}} + if: ${{ github.repository == 'teableio/teable' && contains('refs/heads/main',github.ref)}} name: Release and changelog runs-on: ubuntu-latest steps: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 0a0347df2..46d268c21 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -33,7 +33,7 @@ jobs: - name: 🧩 Generate Prisma Client working-directory: packages/db-main-prisma run: | - pnpm -F @teable-group/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma + pnpm -F @teable/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma - name: 🏗 Run build run: | diff --git a/.prettierrc.js b/.prettierrc.js index f068733d2..a030673c7 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,8 +1,6 @@ // @ts-check -const { - getPrettierConfig, -} = require('@teable-group/eslint-config-bases/helpers'); +const { getPrettierConfig } = require('@teable/eslint-config-bases/helpers'); const { overrides = [], ...prettierConfig } = getPrettierConfig(); diff --git a/.vscode/settings.json b/.vscode/settings.json index 72407a6dd..0780bde24 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,6 +18,7 @@ "sonarjs", "sonner", "teable", + "teableio", "testid", "topo", "zustand" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f6358d128..f30d7e33b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,29 +21,29 @@ If applicable: ## Local scripts -| Name | Description | -| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `yarn g:changeset` | Add a changeset to declare a new version | -| `yarn g:typecheck` | Run typechecks in all workspaces | -| `yarn g:lint` | Display linter issues in all workspaces | -| `yarn g:lint --fix` | Attempt to run linter auto-fix in all workspaces | -| `yarn g:test-unit` | Run unit tests in all workspaces | -| `yarn g:build` | Run build in all workspaces | -| `yarn g:clean` | Clean builds in all workspaces | -| `yarn g:check-dist` | Ensure build dist files passes es2017 (run `g:build` first). | -| `yarn g:check-size` | Ensure build files are within size limit (run `g:build` first). | -| `yarn g:build-doc` | Build documentation (generally api doc) | -| `yarn clean:global-cache` | Clean tooling caches (eslint, jest...) | -| `yarn deps:check --dep dev` | Will print what packages can be upgraded globally (see also [.ncurc.yml](https://github.com/teable-group/teable/blob/main/.ncurc.yml)) | -| `yarn deps:update --dep dev` | Apply possible updates (run `yarn install && yarn dedupe` after) | -| `yarn check:install` | Verify if there's no peer-deps missing in packages | -| `yarn dedupe` | Built-in yarn deduplication of the lock file | +| Name | Description | +| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `yarn g:changeset` | Add a changeset to declare a new version | +| `yarn g:typecheck` | Run typechecks in all workspaces | +| `yarn g:lint` | Display linter issues in all workspaces | +| `yarn g:lint --fix` | Attempt to run linter auto-fix in all workspaces | +| `yarn g:test-unit` | Run unit tests in all workspaces | +| `yarn g:build` | Run build in all workspaces | +| `yarn g:clean` | Clean builds in all workspaces | +| `yarn g:check-dist` | Ensure build dist files passes es2017 (run `g:build` first). | +| `yarn g:check-size` | Ensure build files are within size limit (run `g:build` first). | +| `yarn g:build-doc` | Build documentation (generally api doc) | +| `yarn clean:global-cache` | Clean tooling caches (eslint, jest...) | +| `yarn deps:check --dep dev` | Will print what packages can be upgraded globally (see also [.ncurc.yml](https://github.com/teableio/teable/blob/main/.ncurc.yml)) | +| `yarn deps:update --dep dev` | Apply possible updates (run `yarn install && yarn dedupe` after) | +| `yarn check:install` | Verify if there's no peer-deps missing in packages | +| `yarn dedupe` | Built-in yarn deduplication of the lock file | ## Git message format This repo adheres to the [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) convention. -Commit messages are enforced through [commitlint](https://github.com/conventional-changelog/commitlint) and [a husky](https://github.com/typicode/husky) [commit-msg](https://github.com/teable-group/teable/blob/main/.husky/commit-msg) hook. +Commit messages are enforced through [commitlint](https://github.com/conventional-changelog/commitlint) and [a husky](https://github.com/typicode/husky) [commit-msg](https://github.com/teableio/teable/blob/main/.husky/commit-msg) hook. ### Activated prefixes @@ -62,7 +62,7 @@ Commit messages are enforced through [commitlint](https://github.com/conventiona - **release**: All related to changeset (pre exit...) > **Note** -> Up-to-date configuration can be found in [commitlint.config.js](https://github.com/teable-group/teable/blob/main/commitlint.config.js). +> Up-to-date configuration can be found in [commitlint.config.js](https://github.com/teableio/teable/blob/main/commitlint.config.js). ## Structure diff --git a/DEVELOPER.md b/DEVELOPER.md index af8e51277..e39a6a707 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -106,7 +106,7 @@ If needed static resources like **images**,... can be shared by using symlinks i ```json5 { - "name": "@teable-group/teable", + "name": "@teable/teable", // Set the directories where your apps, packages will be placed "workspaces": ["apps/*", "packages/*"], //... @@ -144,7 +144,7 @@ Initialize a package.json with the name of your package. ```json5 { - "name": "@teable-group/magnificent-poney", + "name": "@teable/magnificent-poney", "version": "0.0.0", "private": true, "scripts": { @@ -157,7 +157,7 @@ Initialize a package.json with the name of your package. "fix:all-files": "eslint . --ext .ts,.tsx,.js,.jsx --fix", }, "devDependencies": { - "@teable-group/eslint-config-bases": "workspace:^", + "@teable/eslint-config-bases": "workspace:^", }, } ``` @@ -174,7 +174,7 @@ yarn and pnpm. ```bash cd apps/my-app -yarn add @teable-group/magnificent-poney@'workspace:^' +yarn add @teable/magnificent-poney@'workspace:^' ``` Inspiration can be found in [apps/nextjs-app/package.json](./apps/nextjs-app/package.json). @@ -186,7 +186,7 @@ Inspiration can be found in [apps/nextjs-app/package.json](./apps/nextjs-app/pac { "name": "my-app", "dependencies": { - "@teable-group/magnificient-poney": "workspace:^", + "@teable/magnificient-poney": "workspace:^", }, } ``` @@ -211,8 +211,8 @@ Inspiration can be found in [apps/nextjs-app/tsconfig.json](./apps/nextjs-app/ts // regular app aliases "@/components/*": ["./components/*"], // packages aliases, relative to app_directory/baseUrl - "@teable-group/magnificent-poney/*": ["../../../packages/magnificent-poney/src/*"], - "@teable-group/magnificent-poney": ["../../../packages/magnificent-poney/src/index"], + "@teable/magnificent-poney/*": ["../../../packages/magnificent-poney/src/*"], + "@teable/magnificent-poney": ["../../../packages/magnificent-poney/src/index"], }, }, } @@ -222,7 +222,7 @@ Inspiration can be found in [apps/nextjs-app/tsconfig.json](./apps/nextjs-app/ts > > - Don't try to set aliases in the global tsonfig.base.json to keep strict with > graph dependencies. -> - The **star** in `@teable-group/magnificent-poney/*` allows you to import subfolders. If you use +> - The **star** in `@teable/magnificent-poney/*` allows you to import subfolders. If you use > a barrel file (index.ts), the alias with star can be removed. @@ -275,7 +275,7 @@ const nextConfig = { #### Step 3.4: Using the package -The packages are now linked to your app, just import them like regular packages: `import { poney } from '@teable-group/magnificent-poney'`. +The packages are now linked to your app, just import them like regular packages: `import { poney } from '@teable/magnificent-poney'`. ### 4. Publishing diff --git a/Makefile b/Makefile index e77aa3347..56fffae58 100644 --- a/Makefile +++ b/Makefile @@ -221,13 +221,13 @@ sqlite-db-migration: @_MIGRATION_NAME=$(if $(_MIGRATION_NAME),$(_MIGRATION_NAME),`read -p "Enter name of the migration (sqlite): " migration_name; echo $$migration_name`); \ make gen-sqlite-prisma-schema; \ PRISMA_DATABASE_URL=file:../../db/.shadow/main.db \ - pnpm -F @teable-group/db-main-prisma prisma-migrate dev --schema ./prisma/sqlite/schema.prisma --name $$_MIGRATION_NAME + pnpm -F @teable/db-main-prisma prisma-migrate dev --schema ./prisma/sqlite/schema.prisma --name $$_MIGRATION_NAME postgres-db-migration: @_MIGRATION_NAME=$(if $(_MIGRATION_NAME),$(_MIGRATION_NAME),`read -p "Enter name of the migration (postgres): " migration_name; echo $$migration_name`); \ make gen-postgres-prisma-schema; \ PRISMA_DATABASE_URL=postgresql://teable:teable@127.0.0.1:5432/teable?schema=shadow \ - pnpm -F @teable-group/db-main-prisma prisma-migrate dev --schema ./prisma/postgres/schema.prisma --name $$_MIGRATION_NAME + pnpm -F @teable/db-main-prisma prisma-migrate dev --schema ./prisma/postgres/schema.prisma --name $$_MIGRATION_NAME db-migration: ## Reruns the existing migration history in the shadow database in order to detect schema drift (edited or deleted migration file, or a manual changes to the database schema) @read -p "Enter name of the migration: " migration_name; \ diff --git a/README.md b/README.md index cd33d1bdd..122e748f0 100644 --- a/README.md +++ b/README.md @@ -10,29 +10,29 @@

- - build + + build - - Codefactor + + Codefactor - - Maintainability + + Maintainability - - Techdebt + + Techdebt - + Codacy grade - LoC + LoC - - GitHub top language + + GitHub top language - - Licence + + Licence

@@ -165,7 +165,7 @@ Choose the Sql-database you like # Structure -[![Open in Gitpod](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/teable-group/teable) +[![Open in Gitpod](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/teableio/teable) ``` . @@ -240,7 +240,7 @@ Goto [developer readme](./DEVELOPER.md) ## Sponsors :heart: -If you are enjoying some this project in your company, I'd really appreciate a [sponsorship](https://github.com/sponsors/teable-group), a [coffee](https://ko-fi.com/teable-group) or a dropped star. +If you are enjoying some this project in your company, I'd really appreciate a [sponsorship](https://github.com/sponsors/teableio), a [coffee](https://ko-fi.com/teableio) or a dropped star. That gives me some more time to improve it to the next level. # License diff --git a/apps/electron/README.md b/apps/electron/README.md index 649bfbf32..3421e516f 100644 --- a/apps/electron/README.md +++ b/apps/electron/README.md @@ -1,4 +1,4 @@ -# @teable-group/electron +# @teable/electron This is a repository in a monorepo project used to package applications into Electron desktop apps. diff --git a/apps/nestjs-backend/.eslintrc.js b/apps/nestjs-backend/.eslintrc.js index f419ba089..0fc6a8046 100644 --- a/apps/nestjs-backend/.eslintrc.js +++ b/apps/nestjs-backend/.eslintrc.js @@ -1,12 +1,12 @@ /** * Specific eslint rules for this app/package, extends the base rules - * @see https://github.com/teable-group/teable/blob/main/docs/about-linters.md + * @see https://github.com/teableio/teable/blob/main/docs/about-linters.md */ // Workaround for https://github.com/eslint/eslint/issues/3458 (re-export of @rushstack/eslint-patch) -require('@teable-group/eslint-config-bases/patch/modern-module-resolution'); +require('@teable/eslint-config-bases/patch/modern-module-resolution'); -const { getDefaultIgnorePatterns } = require('@teable-group/eslint-config-bases/helpers'); +const { getDefaultIgnorePatterns } = require('@teable/eslint-config-bases/helpers'); module.exports = { root: true, @@ -17,12 +17,12 @@ module.exports = { }, ignorePatterns: [...getDefaultIgnorePatterns()], extends: [ - '@teable-group/eslint-config-bases/typescript', - '@teable-group/eslint-config-bases/sonar', - '@teable-group/eslint-config-bases/regexp', - '@teable-group/eslint-config-bases/jest', + '@teable/eslint-config-bases/typescript', + '@teable/eslint-config-bases/sonar', + '@teable/eslint-config-bases/regexp', + '@teable/eslint-config-bases/jest', // Apply prettier and disable incompatible rules - '@teable-group/eslint-config-bases/prettier-plugin', + '@teable/eslint-config-bases/prettier-plugin', ], rules: { // optional overrides per project diff --git a/apps/nestjs-backend/package.json b/apps/nestjs-backend/package.json index 49080c719..fe5e74187 100644 --- a/apps/nestjs-backend/package.json +++ b/apps/nestjs-backend/package.json @@ -1,5 +1,5 @@ { - "name": "@teable-group/backend", + "name": "@teable/backend", "version": "1.0.0", "license": "AGPL-3.0", "private": true, @@ -7,10 +7,10 @@ "exports": { ".": "./dist" }, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "apps/nestjs-backend" }, "author": { @@ -41,7 +41,7 @@ "test": "run-s test-unit test-e2e", "test-unit": "vitest run --silent --bail 1", "test-cov": "vitest run --coverage", - "pre-test-e2e": "cross-env NODE_ENV=test pnpm -F @teable-group/db-main-prisma prisma-db-seed -- --e2e", + "pre-test-e2e": "cross-env NODE_ENV=test pnpm -F @teable/db-main-prisma prisma-db-seed -- --e2e", "test-e2e": "pnpm pre-test-e2e && vitest run --config ./vitest-e2e.config.ts --silent --bail 1", "typecheck": "tsc --project ./tsconfig.json --noEmit", "lint": "eslint . --ext .ts,.js,.cjs,.mjs,.mdx --cache --cache-location ../../.cache/eslint/nestjs-backend.eslintcache", @@ -52,7 +52,7 @@ "@faker-js/faker": "8.4.0", "@nestjs/cli": "10.3.0", "@nestjs/testing": "10.3.1", - "@teable-group/eslint-config-bases": "workspace:^", + "@teable/eslint-config-bases": "workspace:^", "@types/bcrypt": "5.0.2", "@types/cookie": "0.6.0", "@types/cookie-parser": "1.4.6", @@ -122,10 +122,10 @@ "@opentelemetry/semantic-conventions": "1.21.0", "@prisma/client": "5.8.1", "@prisma/instrumentation": "5.8.1", - "@teable-group/common-i18n": "workspace:^", - "@teable-group/core": "workspace:^", - "@teable-group/db-main-prisma": "workspace:^", - "@teable-group/openapi": "workspace:^", + "@teable/common-i18n": "workspace:^", + "@teable/core": "workspace:^", + "@teable/db-main-prisma": "workspace:^", + "@teable/openapi": "workspace:^", "@teamwork/websocket-json-stream": "2.0.0", "ajv": "8.12.0", "axios": "1.6.7", diff --git a/apps/nestjs-backend/src/bootstrap.ts b/apps/nestjs-backend/src/bootstrap.ts index f63381a76..4294fd8c5 100644 --- a/apps/nestjs-backend/src/bootstrap.ts +++ b/apps/nestjs-backend/src/bootstrap.ts @@ -8,7 +8,7 @@ import { ConfigService } from '@nestjs/config'; import { NestFactory } from '@nestjs/core'; import { WsAdapter } from '@nestjs/platform-ws'; import { SwaggerModule } from '@nestjs/swagger'; -import { getOpenApiDocumentation } from '@teable-group/openapi'; +import { getOpenApiDocumentation } from '@teable/openapi'; import { json, urlencoded } from 'express'; import helmet from 'helmet'; import isPortReachable from 'is-port-reachable'; diff --git a/apps/nestjs-backend/src/cache/cache.service.ts b/apps/nestjs-backend/src/cache/cache.service.ts index 4e53b65b9..cd0ea23e5 100644 --- a/apps/nestjs-backend/src/cache/cache.service.ts +++ b/apps/nestjs-backend/src/cache/cache.service.ts @@ -1,6 +1,6 @@ import sqliteKeyv from '@keyv/sqlite'; import { Injectable } from '@nestjs/common'; -import { getRandomInt } from '@teable-group/core'; +import { getRandomInt } from '@teable/core'; import * as fse from 'fs-extra'; import keyv from 'keyv'; import { CacheConfig, ICacheConfig } from '../configs/cache.config'; diff --git a/apps/nestjs-backend/src/db-provider/aggregation-query/aggregation-function.abstract.ts b/apps/nestjs-backend/src/db-provider/aggregation-query/aggregation-function.abstract.ts index f01c4b10b..7429dd19c 100644 --- a/apps/nestjs-backend/src/db-provider/aggregation-query/aggregation-function.abstract.ts +++ b/apps/nestjs-backend/src/db-provider/aggregation-query/aggregation-function.abstract.ts @@ -1,5 +1,5 @@ import { InternalServerErrorException, Logger } from '@nestjs/common'; -import { StatisticsFunc } from '@teable-group/core'; +import { StatisticsFunc } from '@teable/core'; import type { Knex } from 'knex'; import type { IFieldInstance } from '../../features/field/model/factory'; import type { IAggregationFunctionInterface } from './aggregation-function.interface'; diff --git a/apps/nestjs-backend/src/db-provider/aggregation-query/aggregation-query.abstract.ts b/apps/nestjs-backend/src/db-provider/aggregation-query/aggregation-query.abstract.ts index dc82ef107..1969d5eaa 100644 --- a/apps/nestjs-backend/src/db-provider/aggregation-query/aggregation-query.abstract.ts +++ b/apps/nestjs-backend/src/db-provider/aggregation-query/aggregation-query.abstract.ts @@ -1,6 +1,6 @@ import { BadRequestException, Logger } from '@nestjs/common'; -import type { IAggregationField } from '@teable-group/core'; -import { CellValueType, DbFieldType, getValidStatisticFunc } from '@teable-group/core'; +import type { IAggregationField } from '@teable/core'; +import { CellValueType, DbFieldType, getValidStatisticFunc } from '@teable/core'; import type { Knex } from 'knex'; import type { IFieldInstance } from '../../features/field/model/factory'; import type { IAggregationQueryExtra } from '../db.provider.interface'; diff --git a/apps/nestjs-backend/src/db-provider/aggregation-query/postgres/aggregation-function.postgres.ts b/apps/nestjs-backend/src/db-provider/aggregation-query/postgres/aggregation-function.postgres.ts index 8b03a4020..1672f479a 100644 --- a/apps/nestjs-backend/src/db-provider/aggregation-query/postgres/aggregation-function.postgres.ts +++ b/apps/nestjs-backend/src/db-provider/aggregation-query/postgres/aggregation-function.postgres.ts @@ -1,5 +1,5 @@ import { NotImplementedException } from '@nestjs/common'; -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; import { AbstractAggregationFunction } from '../aggregation-function.abstract'; export class AggregationFunctionPostgres extends AbstractAggregationFunction { diff --git a/apps/nestjs-backend/src/db-provider/aggregation-query/sqlite/aggregation-function.sqlite.ts b/apps/nestjs-backend/src/db-provider/aggregation-query/sqlite/aggregation-function.sqlite.ts index 1f4116aa4..5cb3f8775 100644 --- a/apps/nestjs-backend/src/db-provider/aggregation-query/sqlite/aggregation-function.sqlite.ts +++ b/apps/nestjs-backend/src/db-provider/aggregation-query/sqlite/aggregation-function.sqlite.ts @@ -1,5 +1,5 @@ import { NotImplementedException } from '@nestjs/common'; -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; import { AbstractAggregationFunction } from '../aggregation-function.abstract'; export class AggregationFunctionSqlite extends AbstractAggregationFunction { diff --git a/apps/nestjs-backend/src/db-provider/db.provider.interface.ts b/apps/nestjs-backend/src/db-provider/db.provider.interface.ts index 5da896dbe..fb8ce32c4 100644 --- a/apps/nestjs-backend/src/db-provider/db.provider.interface.ts +++ b/apps/nestjs-backend/src/db-provider/db.provider.interface.ts @@ -1,4 +1,4 @@ -import type { DriverClient, IAggregationField, IFilter, ISortItem } from '@teable-group/core'; +import type { DriverClient, IAggregationField, IFilter, ISortItem } from '@teable/core'; import type { Knex } from 'knex'; import type { IFieldInstance } from '../features/field/model/factory'; import type { SchemaType } from '../features/field/util'; diff --git a/apps/nestjs-backend/src/db-provider/db.provider.ts b/apps/nestjs-backend/src/db-provider/db.provider.ts index e40752cde..72633f81d 100644 --- a/apps/nestjs-backend/src/db-provider/db.provider.ts +++ b/apps/nestjs-backend/src/db-provider/db.provider.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ import type { Provider } from '@nestjs/common'; import { Inject } from '@nestjs/common'; -import { DriverClient } from '@teable-group/core'; +import { DriverClient } from '@teable/core'; import type { Knex } from 'knex'; import { getDriverName } from '../utils/db-helpers'; import { PostgresProvider } from './postgres.provider'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/cell-value-filter.abstract.ts b/apps/nestjs-backend/src/db-provider/filter-query/cell-value-filter.abstract.ts index d5a0fa9a4..047b0f8d6 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/cell-value-filter.abstract.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/cell-value-filter.abstract.ts @@ -3,12 +3,7 @@ import { InternalServerErrorException, NotImplementedException, } from '@nestjs/common'; -import type { - IDateFieldOptions, - IDateFilter, - IFilterOperator, - IFilterValue, -} from '@teable-group/core'; +import type { IDateFieldOptions, IDateFilter, IFilterOperator, IFilterValue } from '@teable/core'; import { CellValueType, contains, @@ -35,7 +30,7 @@ import { isOnOrBefore, isWithIn, literalValueListSchema, -} from '@teable-group/core'; +} from '@teable/core'; import type { Dayjs } from 'dayjs'; import type { Knex } from 'knex'; import type { IFieldInstance } from '../../features/field/model/factory'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/cell-value-filter.interface.ts b/apps/nestjs-backend/src/db-provider/filter-query/cell-value-filter.interface.ts index 36fc85152..9faba8f65 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/cell-value-filter.interface.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/cell-value-filter.interface.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, IFilterValue } from '@teable-group/core'; +import type { IFilterOperator, IFilterValue } from '@teable/core'; import type { Knex } from 'knex'; export type ICellValueFilterHandler = ( diff --git a/apps/nestjs-backend/src/db-provider/filter-query/filter-query.abstract.ts b/apps/nestjs-backend/src/db-provider/filter-query/filter-query.abstract.ts index 0543c68aa..026a36ea9 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/filter-query.abstract.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/filter-query.abstract.ts @@ -7,7 +7,7 @@ import type { IFilterOperator, IFilterSet, ILiteralValueList, -} from '@teable-group/core'; +} from '@teable/core'; import { CellValueType, DbFieldType, @@ -17,7 +17,7 @@ import { isEmpty, isMeTag, isNotEmpty, -} from '@teable-group/core'; +} from '@teable/core'; import type { Knex } from 'knex'; import { get, includes, invert, isObject } from 'lodash'; import type { IFieldInstance } from '../../features/field/model/factory'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/cell-value-filter.postgres.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/cell-value-filter.postgres.ts index 34cec5d82..dd559f808 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/cell-value-filter.postgres.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/cell-value-filter.postgres.ts @@ -1,5 +1,5 @@ -import type { IFilterOperator, IFilterValue } from '@teable-group/core'; -import { CellValueType, literalValueListSchema } from '@teable-group/core'; +import type { IFilterOperator, IFilterValue } from '@teable/core'; +import { CellValueType, literalValueListSchema } from '@teable/core'; import type { Knex } from 'knex'; import { AbstractCellValueFilter } from '../../cell-value-filter.abstract'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-boolean-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-boolean-cell-value-filter.adapter.ts index 48d80fe29..374565a45 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-boolean-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-boolean-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, IFilterValue } from '@teable-group/core'; +import type { IFilterOperator, IFilterValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; import { BooleanCellValueFilterAdapter } from '../single-value/boolean-cell-value-filter.adapter'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-datetime-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-datetime-cell-value-filter.adapter.ts index 9fa3799d8..459043d1e 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-datetime-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-datetime-cell-value-filter.adapter.ts @@ -1,5 +1,5 @@ /* eslint-disable sonarjs/no-identical-functions */ -import type { IDateFieldOptions, IDateFilter, IFilterOperator } from '@teable-group/core'; +import type { IDateFieldOptions, IDateFilter, IFilterOperator } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-json-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-json-cell-value-filter.adapter.ts index 6e55aed26..d6e78da52 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-json-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-json-cell-value-filter.adapter.ts @@ -1,5 +1,5 @@ -import type { IFilterOperator, ILiteralValue, ILiteralValueList } from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue, ILiteralValueList } from '@teable/core'; +import { FieldType } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-number-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-number-cell-value-filter.adapter.ts index 3e9965115..a7f45b0be 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-number-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-number-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, ILiteralValue } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-string-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-string-cell-value-filter.adapter.ts index 45252dab9..13cb54e28 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-string-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/multiple-value/multiple-string-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, ILiteralValue } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/boolean-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/boolean-cell-value-filter.adapter.ts index ed51f5665..159a6d291 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/boolean-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/boolean-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, IFilterValue } from '@teable-group/core'; +import type { IFilterOperator, IFilterValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/datetime-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/datetime-cell-value-filter.adapter.ts index d67b9772a..121c73cf9 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/datetime-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/datetime-cell-value-filter.adapter.ts @@ -1,5 +1,5 @@ /* eslint-disable sonarjs/no-identical-functions */ -import type { IDateFieldOptions, IDateFilter, IFilterOperator } from '@teable-group/core'; +import type { IDateFieldOptions, IDateFilter, IFilterOperator } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/json-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/json-cell-value-filter.adapter.ts index fce38d6a8..02a93de85 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/json-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/json-cell-value-filter.adapter.ts @@ -1,10 +1,5 @@ -import type { - IFilterOperator, - IFilterValue, - ILiteralValue, - ILiteralValueList, -} from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; +import type { IFilterOperator, IFilterValue, ILiteralValue, ILiteralValueList } from '@teable/core'; +import { FieldType } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/number-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/number-cell-value-filter.adapter.ts index 422fb7ab3..bb67a24e9 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/number-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/number-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, ILiteralValue } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/string-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/string-cell-value-filter.adapter.ts index d784f8550..04553dc4e 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/string-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/postgres/cell-value-filter/single-value/string-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, ILiteralValue } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterPostgres } from '../cell-value-filter.postgres'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/cell-value-filter.sqlite.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/cell-value-filter.sqlite.ts index 0dc6d102d..fe5b4325f 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/cell-value-filter.sqlite.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/cell-value-filter.sqlite.ts @@ -1,11 +1,11 @@ -import type { IFilterOperator, IFilterValue } from '@teable-group/core'; +import type { IFilterOperator, IFilterValue } from '@teable/core'; import { CellValueType, contains, doesNotContain, FieldType, literalValueListSchema, -} from '@teable-group/core'; +} from '@teable/core'; import type { Knex } from 'knex'; import type { IFieldInstance } from '../../../../features/field/model/factory'; import { AbstractCellValueFilter } from '../../cell-value-filter.abstract'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-boolean-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-boolean-cell-value-filter.adapter.ts index 987da7c18..aaf402838 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-boolean-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-boolean-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, IFilterValue } from '@teable-group/core'; +import type { IFilterOperator, IFilterValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; import { BooleanCellValueFilterAdapter } from '../single-value/boolean-cell-value-filter.adapter'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-datetime-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-datetime-cell-value-filter.adapter.ts index 4cc68bc64..540b9b068 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-datetime-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-datetime-cell-value-filter.adapter.ts @@ -1,5 +1,5 @@ /* eslint-disable sonarjs/no-identical-functions */ -import type { IDateFieldOptions, IDateFilter, IFilterOperator } from '@teable-group/core'; +import type { IDateFieldOptions, IDateFilter, IFilterOperator } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-json-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-json-cell-value-filter.adapter.ts index fca2dda1c..7a9498b9e 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-json-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-json-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, ILiteralValue, ILiteralValueList } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue, ILiteralValueList } from '@teable/core'; import type { Knex } from 'knex'; import { size } from 'lodash'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-number-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-number-cell-value-filter.adapter.ts index 18afaaae6..c2164c2ae 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-number-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-number-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, ILiteralValue } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-string-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-string-cell-value-filter.adapter.ts index 4b8cdbd4a..6e536dc93 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-string-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/multiple-value/multiple-string-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, ILiteralValue } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/boolean-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/boolean-cell-value-filter.adapter.ts index 36298a6a6..6f1d9ff52 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/boolean-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/boolean-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, IFilterValue } from '@teable-group/core'; +import type { IFilterOperator, IFilterValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/datetime-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/datetime-cell-value-filter.adapter.ts index 36cfc7443..619f6681e 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/datetime-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/datetime-cell-value-filter.adapter.ts @@ -1,5 +1,5 @@ /* eslint-disable sonarjs/no-identical-functions */ -import type { IDateFieldOptions, IDateFilter, IFilterOperator } from '@teable-group/core'; +import type { IDateFieldOptions, IDateFilter, IFilterOperator } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/json-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/json-cell-value-filter.adapter.ts index ef81c7417..e57f6903f 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/json-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/json-cell-value-filter.adapter.ts @@ -1,9 +1,4 @@ -import type { - IFilterOperator, - IFilterValue, - ILiteralValue, - ILiteralValueList, -} from '@teable-group/core'; +import type { IFilterOperator, IFilterValue, ILiteralValue, ILiteralValueList } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/number-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/number-cell-value-filter.adapter.ts index a91be6579..bc9b4e6c3 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/number-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/number-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, ILiteralValue } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; diff --git a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/string-cell-value-filter.adapter.ts b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/string-cell-value-filter.adapter.ts index 92e5c8805..a019df8aa 100644 --- a/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/string-cell-value-filter.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/filter-query/sqlite/cell-value-filter/single-value/string-cell-value-filter.adapter.ts @@ -1,4 +1,4 @@ -import type { IFilterOperator, ILiteralValue } from '@teable-group/core'; +import type { IFilterOperator, ILiteralValue } from '@teable/core'; import type { Knex } from 'knex'; import { CellValueFilterSqlite } from '../cell-value-filter.sqlite'; diff --git a/apps/nestjs-backend/src/db-provider/postgres.provider.ts b/apps/nestjs-backend/src/db-provider/postgres.provider.ts index 556b060c5..ad45c0788 100644 --- a/apps/nestjs-backend/src/db-provider/postgres.provider.ts +++ b/apps/nestjs-backend/src/db-provider/postgres.provider.ts @@ -1,6 +1,6 @@ import { Logger } from '@nestjs/common'; -import type { IAggregationField, IFilter, ISortItem } from '@teable-group/core'; -import { DriverClient } from '@teable-group/core'; +import type { IAggregationField, IFilter, ISortItem } from '@teable/core'; +import { DriverClient } from '@teable/core'; import type { Knex } from 'knex'; import type { IFieldInstance } from '../features/field/model/factory'; import type { SchemaType } from '../features/field/util'; diff --git a/apps/nestjs-backend/src/db-provider/sort-query/function/sort-function.abstract.ts b/apps/nestjs-backend/src/db-provider/sort-query/function/sort-function.abstract.ts index 9618456f2..46786f34d 100644 --- a/apps/nestjs-backend/src/db-provider/sort-query/function/sort-function.abstract.ts +++ b/apps/nestjs-backend/src/db-provider/sort-query/function/sort-function.abstract.ts @@ -1,5 +1,5 @@ import { InternalServerErrorException } from '@nestjs/common'; -import { SortFunc } from '@teable-group/core'; +import { SortFunc } from '@teable/core'; import type { Knex } from 'knex'; import type { IFieldInstance } from '../../../features/field/model/factory'; import type { ISortFunctionInterface } from './sort-function.interface'; diff --git a/apps/nestjs-backend/src/db-provider/sort-query/postgres/multiple-value/multiple-json-sort.adapter.ts b/apps/nestjs-backend/src/db-provider/sort-query/postgres/multiple-value/multiple-json-sort.adapter.ts index aba9d9575..93dc8ec7e 100644 --- a/apps/nestjs-backend/src/db-provider/sort-query/postgres/multiple-value/multiple-json-sort.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/sort-query/postgres/multiple-value/multiple-json-sort.adapter.ts @@ -1,4 +1,4 @@ -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; import type { Knex } from 'knex'; import { SortFunctionPostgres } from '../sort-query.function'; diff --git a/apps/nestjs-backend/src/db-provider/sort-query/postgres/single-value/json-sort.adapter.ts b/apps/nestjs-backend/src/db-provider/sort-query/postgres/single-value/json-sort.adapter.ts index c3c9c2daf..ba549c862 100644 --- a/apps/nestjs-backend/src/db-provider/sort-query/postgres/single-value/json-sort.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/sort-query/postgres/single-value/json-sort.adapter.ts @@ -1,4 +1,4 @@ -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; import type { Knex } from 'knex'; import { SortFunctionPostgres } from '../sort-query.function'; diff --git a/apps/nestjs-backend/src/db-provider/sort-query/postgres/single-value/string-sort.adapter.ts b/apps/nestjs-backend/src/db-provider/sort-query/postgres/single-value/string-sort.adapter.ts index 4bc43bd8f..18ab78fef 100644 --- a/apps/nestjs-backend/src/db-provider/sort-query/postgres/single-value/string-sort.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/sort-query/postgres/single-value/string-sort.adapter.ts @@ -1,4 +1,4 @@ -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; import type { Knex } from 'knex'; import type { SingleSelectOptionsDto } from '../../../../features/field/model/field-dto/single-select-field.dto'; import { SortFunctionPostgres } from '../sort-query.function'; diff --git a/apps/nestjs-backend/src/db-provider/sort-query/postgres/sort-query.function.ts b/apps/nestjs-backend/src/db-provider/sort-query/postgres/sort-query.function.ts index e0370374a..6ae02c707 100644 --- a/apps/nestjs-backend/src/db-provider/sort-query/postgres/sort-query.function.ts +++ b/apps/nestjs-backend/src/db-provider/sort-query/postgres/sort-query.function.ts @@ -1,4 +1,4 @@ -import { DbFieldType } from '@teable-group/core'; +import { DbFieldType } from '@teable/core'; import type { Knex } from 'knex'; import { AbstractSortFunction } from '../function/sort-function.abstract'; diff --git a/apps/nestjs-backend/src/db-provider/sort-query/sort-query.abstract.ts b/apps/nestjs-backend/src/db-provider/sort-query/sort-query.abstract.ts index 832f31b24..59a2b239c 100644 --- a/apps/nestjs-backend/src/db-provider/sort-query/sort-query.abstract.ts +++ b/apps/nestjs-backend/src/db-provider/sort-query/sort-query.abstract.ts @@ -1,6 +1,6 @@ import { Logger } from '@nestjs/common'; -import type { ISortItem } from '@teable-group/core'; -import { CellValueType, DbFieldType } from '@teable-group/core'; +import type { ISortItem } from '@teable/core'; +import { CellValueType, DbFieldType } from '@teable/core'; import type { Knex } from 'knex'; import type { IFieldInstance } from '../../features/field/model/factory'; import type { ISortQueryExtra } from '../db.provider.interface'; diff --git a/apps/nestjs-backend/src/db-provider/sort-query/sqlite/single-value/json-sort.adapter.ts b/apps/nestjs-backend/src/db-provider/sort-query/sqlite/single-value/json-sort.adapter.ts index 7399d9aac..bd0b9f936 100644 --- a/apps/nestjs-backend/src/db-provider/sort-query/sqlite/single-value/json-sort.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/sort-query/sqlite/single-value/json-sort.adapter.ts @@ -1,4 +1,4 @@ -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; import type { Knex } from 'knex'; import { SortFunctionSqlite } from '../sort-query.function'; diff --git a/apps/nestjs-backend/src/db-provider/sort-query/sqlite/single-value/string-sort.adapter.ts b/apps/nestjs-backend/src/db-provider/sort-query/sqlite/single-value/string-sort.adapter.ts index cf6e300ff..874fb5795 100644 --- a/apps/nestjs-backend/src/db-provider/sort-query/sqlite/single-value/string-sort.adapter.ts +++ b/apps/nestjs-backend/src/db-provider/sort-query/sqlite/single-value/string-sort.adapter.ts @@ -1,4 +1,4 @@ -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; import type { Knex } from 'knex'; import type { SingleSelectOptionsDto } from '../../../../features/field/model/field-dto/single-select-field.dto'; import { SortFunctionSqlite } from '../sort-query.function'; diff --git a/apps/nestjs-backend/src/db-provider/sqlite.provider.ts b/apps/nestjs-backend/src/db-provider/sqlite.provider.ts index 6d0f24815..a2ab569a5 100644 --- a/apps/nestjs-backend/src/db-provider/sqlite.provider.ts +++ b/apps/nestjs-backend/src/db-provider/sqlite.provider.ts @@ -1,7 +1,7 @@ /* eslint-disable sonarjs/no-duplicate-string */ import { Logger } from '@nestjs/common'; -import type { IAggregationField, IFilter, ISortItem } from '@teable-group/core'; -import { DriverClient } from '@teable-group/core'; +import type { IAggregationField, IFilter, ISortItem } from '@teable/core'; +import { DriverClient } from '@teable/core'; import type { Knex } from 'knex'; import type { IFieldInstance } from '../features/field/model/factory'; import type { SchemaType } from '../features/field/util'; diff --git a/apps/nestjs-backend/src/event-emitter/event-emitter.service.ts b/apps/nestjs-backend/src/event-emitter/event-emitter.service.ts index 21750f64b..43d0df9df 100644 --- a/apps/nestjs-backend/src/event-emitter/event-emitter.service.ts +++ b/apps/nestjs-backend/src/event-emitter/event-emitter.service.ts @@ -1,18 +1,13 @@ import { Injectable, Logger } from '@nestjs/common'; import { EventEmitter2 } from '@nestjs/event-emitter'; -import type { - ICreateOpBuilder, - IOpBuilder, - IOpContextBase, - IOtOperation, -} from '@teable-group/core'; +import type { ICreateOpBuilder, IOpBuilder, IOpContextBase, IOtOperation } from '@teable/core'; import { FieldOpBuilder, IdPrefix, RecordOpBuilder, TableOpBuilder, ViewOpBuilder, -} from '@teable-group/core'; +} from '@teable/core'; import { get, isEmpty, omit, set } from 'lodash'; import { ClsService } from 'nestjs-cls'; import type { GroupedObservable, Observable } from 'rxjs'; diff --git a/apps/nestjs-backend/src/event-emitter/events/base/base.event.ts b/apps/nestjs-backend/src/event-emitter/events/base/base.event.ts index d48ebe471..30cb52df1 100644 --- a/apps/nestjs-backend/src/event-emitter/events/base/base.event.ts +++ b/apps/nestjs-backend/src/event-emitter/events/base/base.event.ts @@ -1,4 +1,4 @@ -import type { ICreateBaseVo } from '@teable-group/openapi'; +import type { ICreateBaseVo } from '@teable/openapi'; import { match } from 'ts-pattern'; import type { IEventContext } from '../core-event'; import { CoreEvent } from '../core-event'; diff --git a/apps/nestjs-backend/src/event-emitter/events/core-event.ts b/apps/nestjs-backend/src/event-emitter/events/core-event.ts index 79f9cd3ee..2ee32073d 100644 --- a/apps/nestjs-backend/src/event-emitter/events/core-event.ts +++ b/apps/nestjs-backend/src/event-emitter/events/core-event.ts @@ -1,5 +1,5 @@ import type { IncomingHttpHeaders } from 'http'; -import type { OpName } from '@teable-group/core'; +import type { OpName } from '@teable/core'; import { nanoid } from 'nanoid'; import type { Events } from './event.enum'; diff --git a/apps/nestjs-backend/src/event-emitter/events/space/space.event.ts b/apps/nestjs-backend/src/event-emitter/events/space/space.event.ts index 93c866ad5..12000967d 100644 --- a/apps/nestjs-backend/src/event-emitter/events/space/space.event.ts +++ b/apps/nestjs-backend/src/event-emitter/events/space/space.event.ts @@ -1,4 +1,4 @@ -import type { ICreateSpaceVo } from '@teable-group/openapi'; +import type { ICreateSpaceVo } from '@teable/openapi'; import { match } from 'ts-pattern'; import type { IEventContext } from '../core-event'; import { CoreEvent } from '../core-event'; diff --git a/apps/nestjs-backend/src/event-emitter/events/table/field.event.ts b/apps/nestjs-backend/src/event-emitter/events/table/field.event.ts index 68a0ba0aa..680da03c2 100644 --- a/apps/nestjs-backend/src/event-emitter/events/table/field.event.ts +++ b/apps/nestjs-backend/src/event-emitter/events/table/field.event.ts @@ -1,4 +1,4 @@ -import type { IFieldPropertyKey, IFieldVo } from '@teable-group/core'; +import type { IFieldPropertyKey, IFieldVo } from '@teable/core'; import { match } from 'ts-pattern'; import { RawOpType } from '../../../share-db/interface'; import type { IEventContext } from '../core-event'; diff --git a/apps/nestjs-backend/src/event-emitter/events/table/record.event.ts b/apps/nestjs-backend/src/event-emitter/events/table/record.event.ts index 3e26b0bae..d86960490 100644 --- a/apps/nestjs-backend/src/event-emitter/events/table/record.event.ts +++ b/apps/nestjs-backend/src/event-emitter/events/table/record.event.ts @@ -1,4 +1,4 @@ -import type { IRecord } from '@teable-group/core'; +import type { IRecord } from '@teable/core'; import { match } from 'ts-pattern'; import { RawOpType } from '../../../share-db/interface'; import type { IEventContext } from '../core-event'; diff --git a/apps/nestjs-backend/src/event-emitter/events/table/table.event.ts b/apps/nestjs-backend/src/event-emitter/events/table/table.event.ts index a3ab29cdf..4c80a9f6a 100644 --- a/apps/nestjs-backend/src/event-emitter/events/table/table.event.ts +++ b/apps/nestjs-backend/src/event-emitter/events/table/table.event.ts @@ -1,4 +1,4 @@ -import type { ITableOp } from '@teable-group/core'; +import type { ITableOp } from '@teable/core'; import { match } from 'ts-pattern'; import { RawOpType } from '../../../share-db/interface'; import type { IEventContext } from '../core-event'; diff --git a/apps/nestjs-backend/src/event-emitter/events/table/view.event.ts b/apps/nestjs-backend/src/event-emitter/events/table/view.event.ts index 28ffcd7cc..2338cc5dc 100644 --- a/apps/nestjs-backend/src/event-emitter/events/table/view.event.ts +++ b/apps/nestjs-backend/src/event-emitter/events/table/view.event.ts @@ -1,4 +1,4 @@ -import type { IViewVo } from '@teable-group/core'; +import type { IViewVo } from '@teable/core'; import { match } from 'ts-pattern'; import { RawOpType } from '../../../share-db/interface'; import type { IEventContext } from '../core-event'; diff --git a/apps/nestjs-backend/src/event-emitter/listeners/action-trigger.listener.ts b/apps/nestjs-backend/src/event-emitter/listeners/action-trigger.listener.ts index 1a1b501ef..ca6e1f06a 100644 --- a/apps/nestjs-backend/src/event-emitter/listeners/action-trigger.listener.ts +++ b/apps/nestjs-backend/src/event-emitter/listeners/action-trigger.listener.ts @@ -1,7 +1,7 @@ import { Injectable, Logger } from '@nestjs/common'; import { OnEvent } from '@nestjs/event-emitter'; -import type { IActionTriggerBuffer, IColumn } from '@teable-group/core'; -import { getActionTriggerChannel } from '@teable-group/core'; +import type { IActionTriggerBuffer, IColumn } from '@teable/core'; +import { getActionTriggerChannel } from '@teable/core'; import { isEmpty } from 'lodash'; import { ShareDbService } from '../../share-db/share-db.service'; import type { RecordDeleteEvent, ViewUpdateEvent } from '../events'; diff --git a/apps/nestjs-backend/src/event-emitter/listeners/collaborator-notification.listener.ts b/apps/nestjs-backend/src/event-emitter/listeners/collaborator-notification.listener.ts index adb1bacb1..14c957a7a 100644 --- a/apps/nestjs-backend/src/event-emitter/listeners/collaborator-notification.listener.ts +++ b/apps/nestjs-backend/src/event-emitter/listeners/collaborator-notification.listener.ts @@ -1,8 +1,8 @@ import { Injectable, Logger } from '@nestjs/common'; import { OnEvent } from '@nestjs/event-emitter'; -import type { IRecord, IUserCellValue } from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { IRecord, IUserCellValue } from '@teable/core'; +import { FieldType } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { has, intersection, isEmpty, keyBy } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/features/access-token/access-token.controller.ts b/apps/nestjs-backend/src/features/access-token/access-token.controller.ts index 703999f7a..c34f07f8e 100644 --- a/apps/nestjs-backend/src/features/access-token/access-token.controller.ts +++ b/apps/nestjs-backend/src/features/access-token/access-token.controller.ts @@ -6,7 +6,7 @@ import type { ListAccessTokenVo, RefreshAccessTokenVo, UpdateAccessTokenVo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { CreateAccessTokenRo, createAccessTokenRoSchema, @@ -14,7 +14,7 @@ import { UpdateAccessTokenRo, updateAccessTokenRoSchema, RefreshAccessTokenRo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { ZodValidationPipe } from '../../zod.validation.pipe'; import { AccessTokenService } from './access-token.service'; diff --git a/apps/nestjs-backend/src/features/access-token/access-token.service.spec.ts b/apps/nestjs-backend/src/features/access-token/access-token.service.spec.ts index 54c0670f7..7fe5f9b44 100644 --- a/apps/nestjs-backend/src/features/access-token/access-token.service.spec.ts +++ b/apps/nestjs-backend/src/features/access-token/access-token.service.spec.ts @@ -2,7 +2,7 @@ import { UnauthorizedException } from '@nestjs/common'; import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { mockDeep, mockReset } from 'vitest-mock-extended'; import { GlobalModule } from '../../global/global.module'; import { AccessTokenModule } from './access-token.module'; diff --git a/apps/nestjs-backend/src/features/access-token/access-token.service.ts b/apps/nestjs-backend/src/features/access-token/access-token.service.ts index 96aff5197..41ea66273 100644 --- a/apps/nestjs-backend/src/features/access-token/access-token.service.ts +++ b/apps/nestjs-backend/src/features/access-token/access-token.service.ts @@ -1,12 +1,12 @@ import { Injectable, UnauthorizedException } from '@nestjs/common'; -import type { AllActions } from '@teable-group/core'; -import { generateAccessTokenId, getRandomString } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { AllActions } from '@teable/core'; +import { generateAccessTokenId, getRandomString } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import type { CreateAccessTokenRo, RefreshAccessTokenRo, UpdateAccessTokenRo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../types/cls'; import { getAccessToken } from './access-token.encryptor'; diff --git a/apps/nestjs-backend/src/features/aggregation/aggregation.service.ts b/apps/nestjs-backend/src/features/aggregation/aggregation.service.ts index f9bc822bd..383ff026e 100644 --- a/apps/nestjs-backend/src/features/aggregation/aggregation.service.ts +++ b/apps/nestjs-backend/src/features/aggregation/aggregation.service.ts @@ -10,7 +10,7 @@ import type { IRawRowCountValue, IGroupPoint, IGroupPointsRo, -} from '@teable-group/core'; +} from '@teable/core'; import { DbFieldType, GroupPointType, @@ -19,9 +19,9 @@ import { parseGroup, StatisticsFunc, ViewType, -} from '@teable-group/core'; -import type { Prisma } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import type { Prisma } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import dayjs from 'dayjs'; import { Knex } from 'knex'; import { groupBy, isDate, isEmpty, isObject } from 'lodash'; diff --git a/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.controller.spec.ts b/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.controller.spec.ts index fc27c6734..5e5a2fa23 100644 --- a/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.controller.spec.ts +++ b/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.controller.spec.ts @@ -1,6 +1,6 @@ import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { vi } from 'vitest'; import { AggregationService } from '../aggregation.service'; import { AggregationOpenApiController } from './aggregation-open-api.controller'; diff --git a/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.controller.ts b/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.controller.ts index 6af5e4268..1da1c226b 100644 --- a/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.controller.ts +++ b/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.controller.ts @@ -1,6 +1,6 @@ /* eslint-disable sonarjs/no-duplicate-string */ import { Controller, Get, Param, Query, UseGuards } from '@nestjs/common'; -import type { IAggregationVo, IGroupPointsVo, IRowCountVo } from '@teable-group/core'; +import type { IAggregationVo, IGroupPointsVo, IRowCountVo } from '@teable/core'; import { aggregationRoSchema, IGroupPointsRo, @@ -8,7 +8,7 @@ import { IAggregationRo, queryBaseSchema, IQueryBaseRo, -} from '@teable-group/core'; +} from '@teable/core'; import { ZodValidationPipe } from '../../../zod.validation.pipe'; import { Permissions } from '../../auth/decorators/permissions.decorator'; import { TqlPipe } from '../../record/open-api/tql.pipe'; diff --git a/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.service.ts b/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.service.ts index baafcc3a2..7cf5f6698 100644 --- a/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.service.ts +++ b/apps/nestjs-backend/src/features/aggregation/open-api/aggregation-open-api.service.ts @@ -7,8 +7,8 @@ import type { IQueryBaseRo, IRowCountVo, StatisticsFunc, -} from '@teable-group/core'; -import { getValidStatisticFunc } from '@teable-group/core'; +} from '@teable/core'; +import { getValidStatisticFunc } from '@teable/core'; import { forIn, isEmpty, map } from 'lodash'; import type { IWithView } from '../aggregation.service'; import { AggregationService } from '../aggregation.service'; diff --git a/apps/nestjs-backend/src/features/attachments/attachments-storage.service.ts b/apps/nestjs-backend/src/features/attachments/attachments-storage.service.ts index 5d4dfebfb..f6e3342fb 100644 --- a/apps/nestjs-backend/src/features/attachments/attachments-storage.service.ts +++ b/apps/nestjs-backend/src/features/attachments/attachments-storage.service.ts @@ -1,5 +1,5 @@ import { BadRequestException, Injectable } from '@nestjs/common'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { CacheService } from '../../cache/cache.service'; import { IStorageConfig, StorageConfig } from '../../configs/storage'; import { second } from '../../utils/second'; diff --git a/apps/nestjs-backend/src/features/attachments/attachments-table.service.spec.ts b/apps/nestjs-backend/src/features/attachments/attachments-table.service.spec.ts index a2d102f73..34279a13b 100644 --- a/apps/nestjs-backend/src/features/attachments/attachments-table.service.spec.ts +++ b/apps/nestjs-backend/src/features/attachments/attachments-table.service.spec.ts @@ -2,9 +2,9 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import type { IAttachmentCellValue, IRecord } from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { IAttachmentCellValue, IRecord } from '@teable/core'; +import { FieldType } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import type { Mock } from 'vitest'; import { vi } from 'vitest'; import { mockDeep, mockReset } from 'vitest-mock-extended'; diff --git a/apps/nestjs-backend/src/features/attachments/attachments-table.service.ts b/apps/nestjs-backend/src/features/attachments/attachments-table.service.ts index a37e3ac21..9b03ebc4c 100644 --- a/apps/nestjs-backend/src/features/attachments/attachments-table.service.ts +++ b/apps/nestjs-backend/src/features/attachments/attachments-table.service.ts @@ -1,8 +1,8 @@ import { Injectable } from '@nestjs/common'; -import { FieldType } from '@teable-group/core'; -import type { IAttachmentCellValue, IRecord } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import type { Prisma } from '@teable-group/db-main-prisma'; +import { FieldType } from '@teable/core'; +import type { IAttachmentCellValue, IRecord } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; +import type { Prisma } from '@teable/db-main-prisma'; import type { IChangeRecord } from '../../event-emitter/events'; @Injectable() diff --git a/apps/nestjs-backend/src/features/attachments/attachments.controller.spec.ts b/apps/nestjs-backend/src/features/attachments/attachments.controller.spec.ts index c9f82ef7b..84dd28afc 100644 --- a/apps/nestjs-backend/src/features/attachments/attachments.controller.spec.ts +++ b/apps/nestjs-backend/src/features/attachments/attachments.controller.spec.ts @@ -1,6 +1,6 @@ import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { vi } from 'vitest'; import { AttachmentsController } from './attachments.controller'; import { AttachmentsModule } from './attachments.module'; diff --git a/apps/nestjs-backend/src/features/attachments/attachments.controller.ts b/apps/nestjs-backend/src/features/attachments/attachments.controller.ts index 2f05cd30e..323810f26 100644 --- a/apps/nestjs-backend/src/features/attachments/attachments.controller.ts +++ b/apps/nestjs-backend/src/features/attachments/attachments.controller.ts @@ -12,8 +12,8 @@ import { StreamableFile, UseGuards, } from '@nestjs/common'; -import { SignatureRo, signatureRoSchema } from '@teable-group/openapi'; -import type { INotifyVo, SignatureVo } from '@teable-group/openapi'; +import { SignatureRo, signatureRoSchema } from '@teable/openapi'; +import type { INotifyVo, SignatureVo } from '@teable/openapi'; import { Response, Request } from 'express'; import { ZodValidationPipe } from '../../zod.validation.pipe'; import { Public } from '../auth/decorators/public.decorator'; diff --git a/apps/nestjs-backend/src/features/attachments/attachments.service.spec.ts b/apps/nestjs-backend/src/features/attachments/attachments.service.spec.ts index 36cf7019d..ce1a9957c 100644 --- a/apps/nestjs-backend/src/features/attachments/attachments.service.spec.ts +++ b/apps/nestjs-backend/src/features/attachments/attachments.service.spec.ts @@ -1,6 +1,6 @@ import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { ClsService } from 'nestjs-cls'; import { vi } from 'vitest'; import { GlobalModule } from '../../global/global.module'; diff --git a/apps/nestjs-backend/src/features/attachments/attachments.service.ts b/apps/nestjs-backend/src/features/attachments/attachments.service.ts index 7bd20ac5c..64a22640e 100644 --- a/apps/nestjs-backend/src/features/attachments/attachments.service.ts +++ b/apps/nestjs-backend/src/features/attachments/attachments.service.ts @@ -1,8 +1,8 @@ import type { IncomingHttpHeaders } from 'http'; import { join } from 'path'; import { BadRequestException, HttpException, HttpStatus, Injectable } from '@nestjs/common'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import type { SignatureRo, SignatureVo } from '@teable-group/openapi'; +import { PrismaService } from '@teable/db-main-prisma'; +import type { SignatureRo, SignatureVo } from '@teable/openapi'; import type { Request, Response } from 'express'; import { ClsService } from 'nestjs-cls'; import { CacheService } from '../../cache/cache.service'; diff --git a/apps/nestjs-backend/src/features/attachments/plugins/adapter.ts b/apps/nestjs-backend/src/features/attachments/plugins/adapter.ts index 13e14a420..a3448b609 100644 --- a/apps/nestjs-backend/src/features/attachments/plugins/adapter.ts +++ b/apps/nestjs-backend/src/features/attachments/plugins/adapter.ts @@ -1,5 +1,5 @@ import { BadRequestException } from '@nestjs/common'; -import { UploadType } from '@teable-group/openapi'; +import { UploadType } from '@teable/openapi'; import { storageConfig } from '../../../configs/storage'; import type { IObjectMeta, IPresignParams, IPresignRes } from './types'; diff --git a/apps/nestjs-backend/src/features/attachments/plugins/local.ts b/apps/nestjs-backend/src/features/attachments/plugins/local.ts index 751969f26..96db98fe4 100644 --- a/apps/nestjs-backend/src/features/attachments/plugins/local.ts +++ b/apps/nestjs-backend/src/features/attachments/plugins/local.ts @@ -3,7 +3,7 @@ import * as crypto from 'crypto'; import { createReadStream, createWriteStream } from 'fs'; import { resolve, join } from 'path'; import { BadRequestException, Injectable } from '@nestjs/common'; -import { getRandomString } from '@teable-group/core'; +import { getRandomString } from '@teable/core'; import type { Request } from 'express'; import * as fse from 'fs-extra'; import sharp from 'sharp'; diff --git a/apps/nestjs-backend/src/features/attachments/plugins/minio.ts b/apps/nestjs-backend/src/features/attachments/plugins/minio.ts index 6e22ffa19..355561184 100644 --- a/apps/nestjs-backend/src/features/attachments/plugins/minio.ts +++ b/apps/nestjs-backend/src/features/attachments/plugins/minio.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ import { join } from 'path'; import { BadRequestException, Injectable } from '@nestjs/common'; -import { getRandomString } from '@teable-group/core'; +import { getRandomString } from '@teable/core'; import * as minio from 'minio'; import sharp from 'sharp'; import { IStorageConfig, StorageConfig } from '../../../configs/storage'; diff --git a/apps/nestjs-backend/src/features/auth/auth.controller.ts b/apps/nestjs-backend/src/features/auth/auth.controller.ts index 79d9ff730..441cbb0a5 100644 --- a/apps/nestjs-backend/src/features/auth/auth.controller.ts +++ b/apps/nestjs-backend/src/features/auth/auth.controller.ts @@ -1,10 +1,5 @@ import { Body, Controller, Get, HttpCode, Patch, Post, Req, Res, UseGuards } from '@nestjs/common'; -import { - IChangePasswordRo, - ISignup, - changePasswordRoSchema, - signupSchema, -} from '@teable-group/openapi'; +import { IChangePasswordRo, ISignup, changePasswordRoSchema, signupSchema } from '@teable/openapi'; import { Response, Request } from 'express'; import { AUTH_SESSION_COOKIE_NAME } from '../../const'; import { ZodValidationPipe } from '../../zod.validation.pipe'; diff --git a/apps/nestjs-backend/src/features/auth/auth.service.ts b/apps/nestjs-backend/src/features/auth/auth.service.ts index 056d58254..3c4681b41 100644 --- a/apps/nestjs-backend/src/features/auth/auth.service.ts +++ b/apps/nestjs-backend/src/features/auth/auth.service.ts @@ -5,9 +5,9 @@ import { Injectable, InternalServerErrorException, } from '@nestjs/common'; -import { generateUserId } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import type { IChangePasswordRo } from '@teable-group/openapi'; +import { generateUserId } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; +import type { IChangePasswordRo } from '@teable/openapi'; import * as bcrypt from 'bcrypt'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../types/cls'; diff --git a/apps/nestjs-backend/src/features/auth/decorators/permissions.decorator.ts b/apps/nestjs-backend/src/features/auth/decorators/permissions.decorator.ts index d7c6375f9..0871e1b75 100644 --- a/apps/nestjs-backend/src/features/auth/decorators/permissions.decorator.ts +++ b/apps/nestjs-backend/src/features/auth/decorators/permissions.decorator.ts @@ -1,5 +1,5 @@ import { SetMetadata } from '@nestjs/common'; -import type { PermissionAction } from '@teable-group/core'; +import type { PermissionAction } from '@teable/core'; export const PERMISSIONS_KEY = 'permissions'; diff --git a/apps/nestjs-backend/src/features/auth/guard/permission.guard.ts b/apps/nestjs-backend/src/features/auth/guard/permission.guard.ts index 5e49c62bf..cf4affcb4 100644 --- a/apps/nestjs-backend/src/features/auth/guard/permission.guard.ts +++ b/apps/nestjs-backend/src/features/auth/guard/permission.guard.ts @@ -1,7 +1,7 @@ import type { ExecutionContext } from '@nestjs/common'; import { ForbiddenException, Injectable } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; -import { IdPrefix, type PermissionAction } from '@teable-group/core'; +import { IdPrefix, type PermissionAction } from '@teable/core'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../../types/cls'; import { PERMISSIONS_KEY } from '../decorators/permissions.decorator'; diff --git a/apps/nestjs-backend/src/features/auth/permission.service.ts b/apps/nestjs-backend/src/features/auth/permission.service.ts index 36ecf58c6..7b5bfc38d 100644 --- a/apps/nestjs-backend/src/features/auth/permission.service.ts +++ b/apps/nestjs-backend/src/features/auth/permission.service.ts @@ -1,7 +1,7 @@ import { ForbiddenException, NotFoundException, Injectable } from '@nestjs/common'; -import type { PermissionAction, SpaceRole } from '@teable-group/core'; -import { IdPrefix, checkPermissions, getPermissions } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { PermissionAction, SpaceRole } from '@teable/core'; +import { IdPrefix, checkPermissions, getPermissions } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../types/cls'; diff --git a/apps/nestjs-backend/src/features/automation/actions/mail-sender/mail-sender.spec.ts b/apps/nestjs-backend/src/features/automation/actions/mail-sender/mail-sender.spec.ts index ad400b676..b637aa42e 100644 --- a/apps/nestjs-backend/src/features/automation/actions/mail-sender/mail-sender.spec.ts +++ b/apps/nestjs-backend/src/features/automation/actions/mail-sender/mail-sender.spec.ts @@ -1,5 +1,5 @@ import { Test } from '@nestjs/testing'; -import { generateWorkflowActionId } from '@teable-group/core'; +import { generateWorkflowActionId } from '@teable/core'; import { vi } from 'vitest'; import { GlobalModule } from '../../../../global/global.module'; import { MailSenderService } from '../../../mail-sender/mail-sender.service'; diff --git a/apps/nestjs-backend/src/features/automation/actions/records/create-record/create-record.spec.ts b/apps/nestjs-backend/src/features/automation/actions/records/create-record/create-record.spec.ts index 08fd497c6..e2c33abee 100644 --- a/apps/nestjs-backend/src/features/automation/actions/records/create-record/create-record.spec.ts +++ b/apps/nestjs-backend/src/features/automation/actions/records/create-record/create-record.spec.ts @@ -1,6 +1,6 @@ /* eslint-disable sonarjs/no-duplicate-string */ import { Test } from '@nestjs/testing'; -import type { IFieldVo, IRecord, IViewVo } from '@teable-group/core'; +import type { IFieldVo, IRecord, IViewVo } from '@teable/core'; import { CellValueType, DbFieldType, @@ -10,7 +10,7 @@ import { generateTableId, generateViewId, generateWorkflowActionId, -} from '@teable-group/core'; +} from '@teable/core'; import { vi } from 'vitest'; import { GlobalModule } from '../../../../../global/global.module'; import { FieldModule } from '../../../../field/field.module'; diff --git a/apps/nestjs-backend/src/features/automation/actions/records/create-record/create-record.ts b/apps/nestjs-backend/src/features/automation/actions/records/create-record/create-record.ts index 86210e96c..8eedf775a 100644 --- a/apps/nestjs-backend/src/features/automation/actions/records/create-record/create-record.ts +++ b/apps/nestjs-backend/src/features/automation/actions/records/create-record/create-record.ts @@ -1,6 +1,6 @@ import { Injectable, Logger, Scope } from '@nestjs/common'; -import type { ICreateRecordsRo } from '@teable-group/core'; -import { FieldKeyType } from '@teable-group/core'; +import type { ICreateRecordsRo } from '@teable/core'; +import { FieldKeyType } from '@teable/core'; import type { Almanac, Event, RuleResult } from 'json-rules-engine'; import { RecordOpenApiService } from '../../../../record/open-api/record-open-api.service'; import type { IActionResponse, IConstSchema, IObjectSchema } from '../../action-core'; diff --git a/apps/nestjs-backend/src/features/automation/actions/records/update-record/update-record.spec.ts b/apps/nestjs-backend/src/features/automation/actions/records/update-record/update-record.spec.ts index e0dbd427d..b657c53d4 100644 --- a/apps/nestjs-backend/src/features/automation/actions/records/update-record/update-record.spec.ts +++ b/apps/nestjs-backend/src/features/automation/actions/records/update-record/update-record.spec.ts @@ -1,7 +1,7 @@ /* eslint-disable sonarjs/no-duplicate-string */ import { faker } from '@faker-js/faker'; import { Test } from '@nestjs/testing'; -import type { IFieldVo, IRecord, IViewVo } from '@teable-group/core'; +import type { IFieldVo, IRecord, IViewVo } from '@teable/core'; import { CellValueType, DbFieldType, @@ -11,7 +11,7 @@ import { generateRecordId, generateTableId, generateWorkflowActionId, -} from '@teable-group/core'; +} from '@teable/core'; import { vi } from 'vitest'; import { GlobalModule } from '../../../../../global/global.module'; import { FieldModule } from '../../../../field/field.module'; diff --git a/apps/nestjs-backend/src/features/automation/actions/records/update-record/update-record.ts b/apps/nestjs-backend/src/features/automation/actions/records/update-record/update-record.ts index bee6c273f..2f2033a35 100644 --- a/apps/nestjs-backend/src/features/automation/actions/records/update-record/update-record.ts +++ b/apps/nestjs-backend/src/features/automation/actions/records/update-record/update-record.ts @@ -1,6 +1,6 @@ import { Injectable, Logger, Scope } from '@nestjs/common'; -import type { IUpdateRecordRo } from '@teable-group/core'; -import { FieldKeyType } from '@teable-group/core'; +import type { IUpdateRecordRo } from '@teable/core'; +import { FieldKeyType } from '@teable/core'; import type { Almanac, Event, RuleResult } from 'json-rules-engine'; import { RecordOpenApiService } from '../../../../record/open-api/record-open-api.service'; import type { diff --git a/apps/nestjs-backend/src/features/automation/actions/triggers/trigger-core.ts b/apps/nestjs-backend/src/features/automation/actions/triggers/trigger-core.ts index 7d2deb349..675f22d9d 100644 --- a/apps/nestjs-backend/src/features/automation/actions/triggers/trigger-core.ts +++ b/apps/nestjs-backend/src/features/automation/actions/triggers/trigger-core.ts @@ -1,5 +1,5 @@ import { Injectable, Logger } from '@nestjs/common'; -import { identify, IdPrefix } from '@teable-group/core'; +import { identify, IdPrefix } from '@teable/core'; import type { TopLevelCondition } from 'json-rules-engine'; import { findLast, head, join, keyBy, omit, tail } from 'lodash'; import { JsonRulesEngine } from '../../engine/json-rules-engine'; diff --git a/apps/nestjs-backend/src/features/automation/engine/json-rules-engine.ts b/apps/nestjs-backend/src/features/automation/engine/json-rules-engine.ts index 0b5f508f2..1c0801cdb 100644 --- a/apps/nestjs-backend/src/features/automation/engine/json-rules-engine.ts +++ b/apps/nestjs-backend/src/features/automation/engine/json-rules-engine.ts @@ -1,5 +1,5 @@ import { Injectable, Logger, Scope } from '@nestjs/common'; -import { assertNever } from '@teable-group/core'; +import { assertNever } from '@teable/core'; import dayjs from 'dayjs'; import type { EngineResult, TopLevelCondition } from 'json-rules-engine'; import { Engine } from 'json-rules-engine'; diff --git a/apps/nestjs-backend/src/features/automation/model/create-workflow.ro.ts b/apps/nestjs-backend/src/features/automation/model/create-workflow.ro.ts index 0e29aab01..f3fb25170 100644 --- a/apps/nestjs-backend/src/features/automation/model/create-workflow.ro.ts +++ b/apps/nestjs-backend/src/features/automation/model/create-workflow.ro.ts @@ -1,5 +1,5 @@ import { ApiPropertyOptional } from '@nestjs/swagger'; -import { FieldKeyType } from '@teable-group/core'; +import { FieldKeyType } from '@teable/core'; export class CreateWorkflowRo { @ApiPropertyOptional({ diff --git a/apps/nestjs-backend/src/features/automation/workflow/action/workflow-action.controller.spec.ts b/apps/nestjs-backend/src/features/automation/workflow/action/workflow-action.controller.spec.ts index 7a34cbff0..d347feece 100644 --- a/apps/nestjs-backend/src/features/automation/workflow/action/workflow-action.controller.spec.ts +++ b/apps/nestjs-backend/src/features/automation/workflow/action/workflow-action.controller.spec.ts @@ -1,8 +1,8 @@ import { ConsoleLogger } from '@nestjs/common'; import { Test } from '@nestjs/testing'; -import { generateWorkflowActionId, generateWorkflowId } from '@teable-group/core'; -import type { AutomationWorkflowAction as AutomationWorkflowActionModel } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { generateWorkflowActionId, generateWorkflowId } from '@teable/core'; +import type { AutomationWorkflowAction as AutomationWorkflowActionModel } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { ActionTypeEnums } from '../../enums/action-type.enum'; import type { CreateWorkflowActionRo } from '../../model/create-workflow-action.ro'; import { WorkflowActionController } from './workflow-action.controller'; diff --git a/apps/nestjs-backend/src/features/automation/workflow/action/workflow-action.service.ts b/apps/nestjs-backend/src/features/automation/workflow/action/workflow-action.service.ts index 21d49d746..b3fad8e30 100644 --- a/apps/nestjs-backend/src/features/automation/workflow/action/workflow-action.service.ts +++ b/apps/nestjs-backend/src/features/automation/workflow/action/workflow-action.service.ts @@ -1,11 +1,11 @@ import { Injectable, Logger } from '@nestjs/common'; -import type { IEitherOr } from '@teable-group/core'; -import { identify, IdPrefix } from '@teable-group/core'; +import type { IEitherOr } from '@teable/core'; +import { identify, IdPrefix } from '@teable/core'; import type { AutomationWorkflowAction as AutomationWorkflowActionModel, Prisma, -} from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { isEmpty, keyBy, isNil } from 'lodash'; import { DEFAULT_DECISION_SCHEMA } from '../../actions'; import { MetaKit } from '../../engine/json-schema/meta-kit'; diff --git a/apps/nestjs-backend/src/features/automation/workflow/trigger/workflow-trigger.controller.spec.ts b/apps/nestjs-backend/src/features/automation/workflow/trigger/workflow-trigger.controller.spec.ts index fb7bf82a6..b623388f1 100644 --- a/apps/nestjs-backend/src/features/automation/workflow/trigger/workflow-trigger.controller.spec.ts +++ b/apps/nestjs-backend/src/features/automation/workflow/trigger/workflow-trigger.controller.spec.ts @@ -1,8 +1,8 @@ import { ConsoleLogger } from '@nestjs/common'; import { Test } from '@nestjs/testing'; -import { generateWorkflowId, generateWorkflowTriggerId } from '@teable-group/core'; -import type { AutomationWorkflowTrigger as AutomationWorkflowTriggerModel } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { generateWorkflowId, generateWorkflowTriggerId } from '@teable/core'; +import type { AutomationWorkflowTrigger as AutomationWorkflowTriggerModel } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { TriggerTypeEnums } from '../../enums/trigger-type.enum'; import type { CreateWorkflowTriggerRo } from '../../model/create-workflow-trigger.ro'; import { WorkflowTriggerController } from './workflow-trigger.controller'; diff --git a/apps/nestjs-backend/src/features/automation/workflow/trigger/workflow-trigger.service.ts b/apps/nestjs-backend/src/features/automation/workflow/trigger/workflow-trigger.service.ts index afc5f6d51..02f02755f 100644 --- a/apps/nestjs-backend/src/features/automation/workflow/trigger/workflow-trigger.service.ts +++ b/apps/nestjs-backend/src/features/automation/workflow/trigger/workflow-trigger.service.ts @@ -1,10 +1,10 @@ import { Injectable, Logger } from '@nestjs/common'; -import type { IEitherOr } from '@teable-group/core'; +import type { IEitherOr } from '@teable/core'; import type { Prisma, AutomationWorkflowTrigger as AutomationWorkflowTriggerModel, -} from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import type { TriggerTypeEnums } from '../../enums/trigger-type.enum'; import type { CreateWorkflowTriggerRo } from '../../model/create-workflow-trigger.ro'; import type { UpdateWorkflowTriggerRo } from '../../model/update-workflow-trigger.ro'; diff --git a/apps/nestjs-backend/src/features/automation/workflow/workflow.service.ts b/apps/nestjs-backend/src/features/automation/workflow/workflow.service.ts index 4561981fd..d84da7989 100644 --- a/apps/nestjs-backend/src/features/automation/workflow/workflow.service.ts +++ b/apps/nestjs-backend/src/features/automation/workflow/workflow.service.ts @@ -3,8 +3,8 @@ import type { AutomationWorkflow as AutomationWorkflowModel, AutomationWorkflowTrigger as AutomationWorkflowTriggerModel, Prisma, -} from '@teable-group/db-main-prisma'; -import { PrismaManager, PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/db-main-prisma'; +import { PrismaManager, PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { isEmpty, keyBy } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/features/base/base.controller.ts b/apps/nestjs-backend/src/features/base/base.controller.ts index 3136e003d..0e2c47d36 100644 --- a/apps/nestjs-backend/src/features/base/base.controller.ts +++ b/apps/nestjs-backend/src/features/base/base.controller.ts @@ -5,14 +5,14 @@ import { ICreateBaseRo, IUpdateBaseRo, updateBaseRoSchema, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import type { ICreateBaseVo, IDbConnectionVo, IGetBaseVo, IUpdateBaseVo, ListBaseCollaboratorVo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { EmitControllerEvent } from '../../event-emitter/decorators/emit-controller-event.decorator'; import { Events } from '../../event-emitter/events'; import { ZodValidationPipe } from '../../zod.validation.pipe'; diff --git a/apps/nestjs-backend/src/features/base/base.service.ts b/apps/nestjs-backend/src/features/base/base.service.ts index 66f86c373..1212043c6 100644 --- a/apps/nestjs-backend/src/features/base/base.service.ts +++ b/apps/nestjs-backend/src/features/base/base.service.ts @@ -1,7 +1,7 @@ import { Injectable, NotFoundException } from '@nestjs/common'; -import { generateBaseId } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import type { ICreateBaseRo, IUpdateBaseRo } from '@teable-group/openapi'; +import { generateBaseId } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; +import type { ICreateBaseRo, IUpdateBaseRo } from '@teable/openapi'; import { ClsService } from 'nestjs-cls'; import { InjectDbProvider } from '../../db-provider/db.provider'; import { IDbProvider } from '../../db-provider/db.provider.interface'; diff --git a/apps/nestjs-backend/src/features/base/db-connection.service.ts b/apps/nestjs-backend/src/features/base/db-connection.service.ts index 32f012bac..7641a6d64 100644 --- a/apps/nestjs-backend/src/features/base/db-connection.service.ts +++ b/apps/nestjs-backend/src/features/base/db-connection.service.ts @@ -5,9 +5,9 @@ import { NotFoundException, } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; -import type { IDsn } from '@teable-group/core'; -import { DriverClient, parseDsn } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { IDsn } from '@teable/core'; +import { DriverClient, parseDsn } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { nanoid } from 'nanoid'; import { ClsService } from 'nestjs-cls'; import type { IBaseConfig } from '../../configs/base.config'; diff --git a/apps/nestjs-backend/src/features/calculation/batch.service.ts b/apps/nestjs-backend/src/features/calculation/batch.service.ts index 96e78214b..4d431b76d 100644 --- a/apps/nestjs-backend/src/features/calculation/batch.service.ts +++ b/apps/nestjs-backend/src/features/calculation/batch.service.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/naming-convention */ import { Injectable, Logger } from '@nestjs/common'; -import type { IOtOperation } from '@teable-group/core'; -import { IdPrefix, RecordOpBuilder } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { IOtOperation } from '@teable/core'; +import { IdPrefix, RecordOpBuilder } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { groupBy, isEmpty, keyBy } from 'lodash'; import { customAlphabet } from 'nanoid'; diff --git a/apps/nestjs-backend/src/features/calculation/field-calculation.service.ts b/apps/nestjs-backend/src/features/calculation/field-calculation.service.ts index 70cde6f3d..17ee2e96f 100644 --- a/apps/nestjs-backend/src/features/calculation/field-calculation.service.ts +++ b/apps/nestjs-backend/src/features/calculation/field-calculation.service.ts @@ -1,6 +1,6 @@ import { Injectable } from '@nestjs/common'; -import type { IRecord } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { IRecord } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { groupBy, isEmpty, uniq } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/features/calculation/link.service.ts b/apps/nestjs-backend/src/features/calculation/link.service.ts index 725f03d74..b40bf01b2 100644 --- a/apps/nestjs-backend/src/features/calculation/link.service.ts +++ b/apps/nestjs-backend/src/features/calculation/link.service.ts @@ -1,7 +1,7 @@ import { BadRequestException, Injectable } from '@nestjs/common'; -import type { ILinkCellValue, ILinkFieldOptions } from '@teable-group/core'; -import { FieldType, Relationship } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { ILinkCellValue, ILinkFieldOptions } from '@teable/core'; +import { FieldType, Relationship } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { cloneDeep, keyBy, difference, groupBy, isEqual, set } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/features/calculation/reference.service.ts b/apps/nestjs-backend/src/features/calculation/reference.service.ts index 8a89e7e75..a911f5e33 100644 --- a/apps/nestjs-backend/src/features/calculation/reference.service.ts +++ b/apps/nestjs-backend/src/features/calculation/reference.service.ts @@ -6,15 +6,9 @@ import type { IOtOperation, IRecord, ITinyRecord, -} from '@teable-group/core'; -import { - evaluate, - FieldType, - isMultiValueLink, - RecordOpBuilder, - Relationship, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { evaluate, FieldType, isMultiValueLink, RecordOpBuilder, Relationship } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { instanceToPlain } from 'class-transformer'; import { Knex } from 'knex'; import { cloneDeep, difference, groupBy, isEmpty, keyBy, unionWith, uniq } from 'lodash'; diff --git a/apps/nestjs-backend/src/features/calculation/system-field.service.ts b/apps/nestjs-backend/src/features/calculation/system-field.service.ts index 616172c53..9b183fbfa 100644 --- a/apps/nestjs-backend/src/features/calculation/system-field.service.ts +++ b/apps/nestjs-backend/src/features/calculation/system-field.service.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/naming-convention */ import { Injectable } from '@nestjs/common'; -import type { IOtOperation } from '@teable-group/core'; -import { FieldType, RecordOpBuilder } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { IOtOperation } from '@teable/core'; +import { FieldType, RecordOpBuilder } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { InjectModel } from 'nest-knexjs'; import { ClsService } from 'nestjs-cls'; diff --git a/apps/nestjs-backend/src/features/calculation/utils/changes.spec.ts b/apps/nestjs-backend/src/features/calculation/utils/changes.spec.ts index d344a5b2b..264d8cd39 100644 --- a/apps/nestjs-backend/src/features/calculation/utils/changes.spec.ts +++ b/apps/nestjs-backend/src/features/calculation/utils/changes.spec.ts @@ -1,4 +1,4 @@ -import { RecordOpBuilder } from '@teable-group/core'; +import { RecordOpBuilder } from '@teable/core'; import { changeToOp, formatChangesToOps, mergeDuplicateChange } from './changes'; // Change './yourFile' to the correct path. describe('changeToOp', () => { diff --git a/apps/nestjs-backend/src/features/calculation/utils/changes.ts b/apps/nestjs-backend/src/features/calculation/utils/changes.ts index 5edd70ea6..81eb66448 100644 --- a/apps/nestjs-backend/src/features/calculation/utils/changes.ts +++ b/apps/nestjs-backend/src/features/calculation/utils/changes.ts @@ -1,5 +1,5 @@ -import type { IOtOperation } from '@teable-group/core'; -import { RecordOpBuilder } from '@teable-group/core'; +import type { IOtOperation } from '@teable/core'; +import { RecordOpBuilder } from '@teable/core'; export interface ICellChange { tableId: string; diff --git a/apps/nestjs-backend/src/features/calculation/utils/detect-link.spec.ts b/apps/nestjs-backend/src/features/calculation/utils/detect-link.spec.ts index 6b7baa0e8..ad578e7b0 100644 --- a/apps/nestjs-backend/src/features/calculation/utils/detect-link.spec.ts +++ b/apps/nestjs-backend/src/features/calculation/utils/detect-link.spec.ts @@ -1,4 +1,4 @@ -import { IdPrefix } from '@teable-group/core'; +import { IdPrefix } from '@teable/core'; import { isLinkCellValue } from './detect-link'; describe('isLinkCellValue', () => { diff --git a/apps/nestjs-backend/src/features/calculation/utils/detect-link.ts b/apps/nestjs-backend/src/features/calculation/utils/detect-link.ts index e37ddf27e..4ff800c45 100644 --- a/apps/nestjs-backend/src/features/calculation/utils/detect-link.ts +++ b/apps/nestjs-backend/src/features/calculation/utils/detect-link.ts @@ -1,4 +1,4 @@ -import { IdPrefix } from '@teable-group/core'; +import { IdPrefix } from '@teable/core'; // for performance, we detect if record contains link by check recordId cellValue export function isLinkCellValue(value: unknown): boolean { diff --git a/apps/nestjs-backend/src/features/collaborator/collaborator.service.spec.ts b/apps/nestjs-backend/src/features/collaborator/collaborator.service.spec.ts index f4e02bea1..f5fa7055a 100644 --- a/apps/nestjs-backend/src/features/collaborator/collaborator.service.spec.ts +++ b/apps/nestjs-backend/src/features/collaborator/collaborator.service.spec.ts @@ -1,7 +1,7 @@ import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import { SpaceRole, getPermissions } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { SpaceRole, getPermissions } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { ClsService } from 'nestjs-cls'; import { mockDeep } from 'vitest-mock-extended'; import { GlobalModule } from '../../global/global.module'; diff --git a/apps/nestjs-backend/src/features/collaborator/collaborator.service.ts b/apps/nestjs-backend/src/features/collaborator/collaborator.service.ts index b5fce2659..fd10a7a70 100644 --- a/apps/nestjs-backend/src/features/collaborator/collaborator.service.ts +++ b/apps/nestjs-backend/src/features/collaborator/collaborator.service.ts @@ -1,11 +1,11 @@ import { BadRequestException, Injectable } from '@nestjs/common'; -import type { SpaceRole } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { SpaceRole } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import type { ListBaseCollaboratorVo, ListSpaceCollaboratorVo, UpdateSpaceCollaborateRo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { Knex } from 'knex'; import { isDate } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/features/field/constant.ts b/apps/nestjs-backend/src/features/field/constant.ts index 14afd63be..2fdfab8c8 100644 --- a/apps/nestjs-backend/src/features/field/constant.ts +++ b/apps/nestjs-backend/src/features/field/constant.ts @@ -1,4 +1,4 @@ -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; /* eslint-disable @typescript-eslint/naming-convention */ export interface IVisualTableDefaultField { diff --git a/apps/nestjs-backend/src/features/field/field-calculate/field-converting-link.service.ts b/apps/nestjs-backend/src/features/field/field-calculate/field-converting-link.service.ts index ff2790d6a..f8fedc80d 100644 --- a/apps/nestjs-backend/src/features/field/field-calculate/field-converting-link.service.ts +++ b/apps/nestjs-backend/src/features/field/field-calculate/field-converting-link.service.ts @@ -1,13 +1,13 @@ import { Injectable, InternalServerErrorException } from '@nestjs/common'; -import type { ILinkCellValue, ILinkFieldOptions } from '@teable-group/core'; +import type { ILinkCellValue, ILinkFieldOptions } from '@teable/core'; import { Relationship, RelationshipRevert, FieldType, RecordOpBuilder, isMultiValueLink, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { isEqual } from 'lodash'; import { FieldCalculationService } from '../../calculation/field-calculation.service'; import type { IOpsMap } from '../../calculation/reference.service'; diff --git a/apps/nestjs-backend/src/features/field/field-calculate/field-converting.service.ts b/apps/nestjs-backend/src/features/field/field-calculate/field-converting.service.ts index 8ee827f0b..00e372367 100644 --- a/apps/nestjs-backend/src/features/field/field-calculate/field-converting.service.ts +++ b/apps/nestjs-backend/src/features/field/field-calculate/field-converting.service.ts @@ -10,7 +10,7 @@ import type { IOtOperation, ISelectFieldChoice, IConvertFieldRo, -} from '@teable-group/core'; +} from '@teable/core'; import { ColorUtils, DbFieldType, @@ -20,8 +20,8 @@ import { generateChoiceId, isMultiValueLink, RecordOpBuilder, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { difference, intersection, isEmpty, isEqual, keyBy, set } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/features/field/field-calculate/field-creating.service.ts b/apps/nestjs-backend/src/features/field/field-calculate/field-creating.service.ts index 3ff4cf4ee..cb12946e3 100644 --- a/apps/nestjs-backend/src/features/field/field-calculate/field-creating.service.ts +++ b/apps/nestjs-backend/src/features/field/field-calculate/field-creating.service.ts @@ -1,6 +1,6 @@ import { Injectable, Logger } from '@nestjs/common'; -import { FieldType } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { FieldType } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { ViewService } from '../../view/view.service'; import { FieldService } from '../field.service'; import type { IFieldInstance } from '../model/factory'; diff --git a/apps/nestjs-backend/src/features/field/field-calculate/field-deleting.service.ts b/apps/nestjs-backend/src/features/field/field-calculate/field-deleting.service.ts index 0cc0c25a0..354f00873 100644 --- a/apps/nestjs-backend/src/features/field/field-calculate/field-deleting.service.ts +++ b/apps/nestjs-backend/src/features/field/field-calculate/field-deleting.service.ts @@ -1,6 +1,6 @@ import { Injectable, Logger, NotFoundException, ForbiddenException } from '@nestjs/common'; -import { FieldOpBuilder, FieldType } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { FieldOpBuilder, FieldType } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Timing } from '../../../utils/timing'; import { FieldCalculationService } from '../../calculation/field-calculation.service'; import { ViewService } from '../../view/view.service'; diff --git a/apps/nestjs-backend/src/features/field/field-calculate/field-supplement.service.spec.ts b/apps/nestjs-backend/src/features/field/field-calculate/field-supplement.service.spec.ts index 627c0a92d..2f4930488 100644 --- a/apps/nestjs-backend/src/features/field/field-calculate/field-supplement.service.spec.ts +++ b/apps/nestjs-backend/src/features/field/field-calculate/field-supplement.service.spec.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; import { GlobalModule } from '../../../global/global.module'; import { FieldService } from '../field.service'; import { FieldCalculateModule } from './field-calculate.module'; diff --git a/apps/nestjs-backend/src/features/field/field-calculate/field-supplement.service.ts b/apps/nestjs-backend/src/features/field/field-calculate/field-supplement.service.ts index ca34201c5..543db2978 100644 --- a/apps/nestjs-backend/src/features/field/field-calculate/field-supplement.service.ts +++ b/apps/nestjs-backend/src/features/field/field-calculate/field-supplement.service.ts @@ -12,7 +12,7 @@ import type { ISelectFieldOptionsRo, IConvertFieldRo, IUserFieldOptions, -} from '@teable-group/core'; +} from '@teable/core'; import { assertNever, AttachmentFieldCore, @@ -41,8 +41,8 @@ import { SelectFieldCore, SingleLineTextFieldCore, UserFieldCore, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { keyBy, merge } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/features/field/field.service.ts b/apps/nestjs-backend/src/features/field/field.service.ts index 76107e280..28d7124e3 100644 --- a/apps/nestjs-backend/src/features/field/field.service.ts +++ b/apps/nestjs-backend/src/features/field/field.service.ts @@ -7,10 +7,10 @@ import type { DbFieldType, ILookupOptionsVo, IOtOperation, -} from '@teable-group/core'; -import { FieldOpBuilder, IdPrefix, OpName } from '@teable-group/core'; -import type { Field as RawField, Prisma } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { FieldOpBuilder, IdPrefix, OpName } from '@teable/core'; +import type { Field as RawField, Prisma } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { instanceToPlain } from 'class-transformer'; import { Knex } from 'knex'; import { keyBy, sortBy } from 'lodash'; diff --git a/apps/nestjs-backend/src/features/field/model/factory.ts b/apps/nestjs-backend/src/features/field/model/factory.ts index 83dac05a1..0deeff80c 100644 --- a/apps/nestjs-backend/src/features/field/model/factory.ts +++ b/apps/nestjs-backend/src/features/field/model/factory.ts @@ -1,6 +1,6 @@ -import type { IFieldVo, DbFieldType, CellValueType } from '@teable-group/core'; -import { assertNever, FieldType } from '@teable-group/core'; -import type { Field } from '@teable-group/db-main-prisma'; +import type { IFieldVo, DbFieldType, CellValueType } from '@teable/core'; +import { assertNever, FieldType } from '@teable/core'; +import type { Field } from '@teable/db-main-prisma'; import { plainToInstance } from 'class-transformer'; import { AttachmentFieldDto } from './field-dto/attachment-field.dto'; import { AutoNumberFieldDto } from './field-dto/auto-number-field.dto'; diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/attachment-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/attachment-field.dto.ts index 3a6515869..8afaf053d 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/attachment-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/attachment-field.dto.ts @@ -1,5 +1,5 @@ -import type { IAttachmentCellValue, IAttachmentItem } from '@teable-group/core'; -import { AttachmentFieldCore, generateAttachmentId } from '@teable-group/core'; +import type { IAttachmentCellValue, IAttachmentItem } from '@teable/core'; +import { AttachmentFieldCore, generateAttachmentId } from '@teable/core'; import { omit } from 'lodash'; import type { IFieldBase } from '../field-base'; diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/auto-number-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/auto-number-field.dto.ts index 17aa73a9f..7f83a3e4e 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/auto-number-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/auto-number-field.dto.ts @@ -1,4 +1,4 @@ -import { AutoNumberFieldCore } from '@teable-group/core'; +import { AutoNumberFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class AutoNumberFieldDto extends AutoNumberFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/checkbox-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/checkbox-field.dto.ts index d29c45fc6..d4b49bbb7 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/checkbox-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/checkbox-field.dto.ts @@ -1,4 +1,4 @@ -import { CheckboxFieldCore } from '@teable-group/core'; +import { CheckboxFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class CheckboxFieldDto extends CheckboxFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/created-time-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/created-time-field.dto.ts index b414cdde7..ad7f5db51 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/created-time-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/created-time-field.dto.ts @@ -1,4 +1,4 @@ -import { CreatedTimeFieldCore } from '@teable-group/core'; +import { CreatedTimeFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class CreatedTimeFieldDto extends CreatedTimeFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/date-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/date-field.dto.ts index b9fd389c5..ee63325bf 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/date-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/date-field.dto.ts @@ -1,4 +1,4 @@ -import { DateFieldCore } from '@teable-group/core'; +import { DateFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class DateFieldDto extends DateFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/formula-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/formula-field.dto.ts index b914c56ff..6212b448c 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/formula-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/formula-field.dto.ts @@ -1,4 +1,4 @@ -import { FormulaFieldCore } from '@teable-group/core'; +import { FormulaFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class FormulaFieldDto extends FormulaFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/last-modified-time-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/last-modified-time-field.dto.ts index dd8ee7632..4631a1b3d 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/last-modified-time-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/last-modified-time-field.dto.ts @@ -1,4 +1,4 @@ -import { LastModifiedTimeFieldCore } from '@teable-group/core'; +import { LastModifiedTimeFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class LastModifiedTimeFieldDto extends LastModifiedTimeFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/link-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/link-field.dto.ts index 02476fd95..19025d467 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/link-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/link-field.dto.ts @@ -1,5 +1,5 @@ -import { LinkFieldCore } from '@teable-group/core'; -import type { ILinkCellValue } from '@teable-group/core'; +import { LinkFieldCore } from '@teable/core'; +import type { ILinkCellValue } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class LinkFieldDto extends LinkFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/long-text-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/long-text-field.dto.ts index a62f63c1e..825764fae 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/long-text-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/long-text-field.dto.ts @@ -1,4 +1,4 @@ -import { LongTextFieldCore } from '@teable-group/core'; +import { LongTextFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class LongTextFieldDto extends LongTextFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/multiple-select-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/multiple-select-field.dto.ts index 9d220d981..b8838c224 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/multiple-select-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/multiple-select-field.dto.ts @@ -1,4 +1,4 @@ -import { MultipleSelectFieldCore } from '@teable-group/core'; +import { MultipleSelectFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class MultipleSelectFieldDto extends MultipleSelectFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/number-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/number-field.dto.ts index a7c6fd71f..49d219752 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/number-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/number-field.dto.ts @@ -1,4 +1,4 @@ -import { NumberFieldCore } from '@teable-group/core'; +import { NumberFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class NumberFieldDto extends NumberFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/rating-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/rating-field.dto.ts index fcb045dfc..d8125b70e 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/rating-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/rating-field.dto.ts @@ -1,4 +1,4 @@ -import { RatingFieldCore } from '@teable-group/core'; +import { RatingFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class RatingFieldDto extends RatingFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/rollup-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/rollup-field.dto.ts index 049b89376..10351e0d4 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/rollup-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/rollup-field.dto.ts @@ -1,4 +1,4 @@ -import { RollupFieldCore } from '@teable-group/core'; +import { RollupFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class RollupFieldDto extends RollupFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/single-line-text-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/single-line-text-field.dto.ts index 7789a8d64..a2db35d0a 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/single-line-text-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/single-line-text-field.dto.ts @@ -1,4 +1,4 @@ -import { SingleLineTextFieldCore } from '@teable-group/core'; +import { SingleLineTextFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class SingleLineTextFieldDto extends SingleLineTextFieldCore implements IFieldBase { convertCellValue2DBValue(value: unknown): unknown { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/single-select-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/single-select-field.dto.ts index 08cca30c8..f04254046 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/single-select-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/single-select-field.dto.ts @@ -1,6 +1,6 @@ import { ApiProperty } from '@nestjs/swagger'; -import type { ISelectFieldChoice, ISelectFieldOptions } from '@teable-group/core'; -import { SingleSelectFieldCore, Colors } from '@teable-group/core'; +import type { ISelectFieldChoice, ISelectFieldOptions } from '@teable/core'; +import { SingleSelectFieldCore, Colors } from '@teable/core'; import type { IFieldBase } from '../field-base'; class SingleSelectOption implements ISelectFieldChoice { diff --git a/apps/nestjs-backend/src/features/field/model/field-dto/user-field.dto.ts b/apps/nestjs-backend/src/features/field/model/field-dto/user-field.dto.ts index 151efa26d..695cdd830 100644 --- a/apps/nestjs-backend/src/features/field/model/field-dto/user-field.dto.ts +++ b/apps/nestjs-backend/src/features/field/model/field-dto/user-field.dto.ts @@ -1,4 +1,4 @@ -import { UserFieldCore } from '@teable-group/core'; +import { UserFieldCore } from '@teable/core'; import type { IFieldBase } from '../field-base'; export class UserFieldDto extends UserFieldCore implements IFieldBase { diff --git a/apps/nestjs-backend/src/features/field/open-api/field-open-api.controller.ts b/apps/nestjs-backend/src/features/field/open-api/field-open-api.controller.ts index 744e6273f..f035fccc8 100644 --- a/apps/nestjs-backend/src/features/field/open-api/field-open-api.controller.ts +++ b/apps/nestjs-backend/src/features/field/open-api/field-open-api.controller.ts @@ -1,6 +1,6 @@ /* eslint-disable sonarjs/no-duplicate-string */ import { Body, Controller, Delete, Get, Param, Patch, Put, Post, Query } from '@nestjs/common'; -import type { IFieldVo } from '@teable-group/core'; +import type { IFieldVo } from '@teable/core'; import { createFieldRoSchema, getFieldsQuerySchema, @@ -10,8 +10,8 @@ import { convertFieldRoSchema, updateFieldRoSchema, IUpdateFieldRo, -} from '@teable-group/core'; -import type { IPlanFieldConvertVo, IPlanFieldVo } from '@teable-group/openapi'; +} from '@teable/core'; +import type { IPlanFieldConvertVo, IPlanFieldVo } from '@teable/openapi'; import { ZodValidationPipe } from '../../../zod.validation.pipe'; import { Permissions } from '../../auth/decorators/permissions.decorator'; import { FieldService } from '../field.service'; diff --git a/apps/nestjs-backend/src/features/field/open-api/field-open-api.service.ts b/apps/nestjs-backend/src/features/field/open-api/field-open-api.service.ts index 5d5178acf..d501827b2 100644 --- a/apps/nestjs-backend/src/features/field/open-api/field-open-api.service.ts +++ b/apps/nestjs-backend/src/features/field/open-api/field-open-api.service.ts @@ -1,7 +1,7 @@ import { BadRequestException, Injectable, Logger, NotFoundException } from '@nestjs/common'; -import { FieldOpBuilder, IFieldRo } from '@teable-group/core'; -import type { IFieldVo, IConvertFieldRo, IUpdateFieldRo, IOtOperation } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { FieldOpBuilder, IFieldRo } from '@teable/core'; +import type { IFieldVo, IConvertFieldRo, IUpdateFieldRo, IOtOperation } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { instanceToPlain } from 'class-transformer'; import { ThresholdConfig, IThresholdConfig } from '../../../configs/threshold.config'; import { Timing } from '../../../utils/timing'; diff --git a/apps/nestjs-backend/src/features/field/util.ts b/apps/nestjs-backend/src/features/field/util.ts index 327a9b56f..cc6153aef 100644 --- a/apps/nestjs-backend/src/features/field/util.ts +++ b/apps/nestjs-backend/src/features/field/util.ts @@ -1,4 +1,4 @@ -import { assertNever, DbFieldType, DriverClient } from '@teable-group/core'; +import { assertNever, DbFieldType, DriverClient } from '@teable/core'; import type { Knex } from 'knex'; import { getDriverName } from '../../utils/db-helpers'; diff --git a/apps/nestjs-backend/src/features/file-tree/file-tree.class.ts b/apps/nestjs-backend/src/features/file-tree/file-tree.class.ts index 975b712b6..f4c3a968b 100644 --- a/apps/nestjs-backend/src/features/file-tree/file-tree.class.ts +++ b/apps/nestjs-backend/src/features/file-tree/file-tree.class.ts @@ -1,5 +1,5 @@ import fs from 'fs'; -import type { IFileNode } from '@teable-group/core'; +import type { IFileNode } from '@teable/core'; import { TeableFile } from './teable-file.class'; export class FileTree { diff --git a/apps/nestjs-backend/src/features/file-tree/teable-file.class.ts b/apps/nestjs-backend/src/features/file-tree/teable-file.class.ts index 10cf6344b..65e654104 100644 --- a/apps/nestjs-backend/src/features/file-tree/teable-file.class.ts +++ b/apps/nestjs-backend/src/features/file-tree/teable-file.class.ts @@ -1,5 +1,5 @@ import fs from 'fs'; -import type { IFileNode } from '@teable-group/core'; +import type { IFileNode } from '@teable/core'; // TODO: need complete teable file structure interface ITeableFile { diff --git a/apps/nestjs-backend/src/features/graph/graph.service.ts b/apps/nestjs-backend/src/features/graph/graph.service.ts index 75a6d5f17..a5293078f 100644 --- a/apps/nestjs-backend/src/features/graph/graph.service.ts +++ b/apps/nestjs-backend/src/features/graph/graph.service.ts @@ -1,7 +1,7 @@ import { BadRequestException, Injectable, Logger } from '@nestjs/common'; -import type { IFieldRo, ILinkFieldOptions, ITinyRecord, IConvertFieldRo } from '@teable-group/core'; -import { FieldType, Relationship } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { IFieldRo, ILinkFieldOptions, ITinyRecord, IConvertFieldRo } from '@teable/core'; +import { FieldType, Relationship } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import type { IGraphEdge, IGraphNode, @@ -9,7 +9,7 @@ import type { IGraphVo, IPlanFieldVo, IPlanFieldConvertVo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { Knex } from 'knex'; import { groupBy, keyBy, uniq } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/features/health/health.controller.ts b/apps/nestjs-backend/src/features/health/health.controller.ts index 829a6094b..cac81bd73 100644 --- a/apps/nestjs-backend/src/features/health/health.controller.ts +++ b/apps/nestjs-backend/src/features/health/health.controller.ts @@ -1,6 +1,6 @@ import { Controller, Get } from '@nestjs/common'; import { HealthCheck, HealthCheckService, PrismaHealthIndicator } from '@nestjs/terminus'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { Public } from '../auth/decorators/public.decorator'; @Controller('health') diff --git a/apps/nestjs-backend/src/features/invitation/invitation.controller.ts b/apps/nestjs-backend/src/features/invitation/invitation.controller.ts index 290829d48..a0b211708 100644 --- a/apps/nestjs-backend/src/features/invitation/invitation.controller.ts +++ b/apps/nestjs-backend/src/features/invitation/invitation.controller.ts @@ -3,7 +3,7 @@ import { AcceptInvitationLinkRo, acceptInvitationLinkRoSchema, type AcceptInvitationLinkVo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { ZodValidationPipe } from '../../zod.validation.pipe'; import { InvitationService } from './invitation.service'; diff --git a/apps/nestjs-backend/src/features/invitation/invitation.service.spec.ts b/apps/nestjs-backend/src/features/invitation/invitation.service.spec.ts index a2de58ae5..e8d209bae 100644 --- a/apps/nestjs-backend/src/features/invitation/invitation.service.spec.ts +++ b/apps/nestjs-backend/src/features/invitation/invitation.service.spec.ts @@ -2,8 +2,8 @@ import { BadRequestException, ForbiddenException, NotFoundException } from '@nestjs/common'; import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import { getPermissions, SpaceRole } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { getPermissions, SpaceRole } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { ClsService } from 'nestjs-cls'; import { vi } from 'vitest'; import { mockDeep, mockReset } from 'vitest-mock-extended'; diff --git a/apps/nestjs-backend/src/features/invitation/invitation.service.ts b/apps/nestjs-backend/src/features/invitation/invitation.service.ts index 46f5bd5a3..56c143dbf 100644 --- a/apps/nestjs-backend/src/features/invitation/invitation.service.ts +++ b/apps/nestjs-backend/src/features/invitation/invitation.service.ts @@ -5,9 +5,9 @@ import { NotFoundException, } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; -import type { SpaceRole } from '@teable-group/core'; -import { generateInvitationId } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { SpaceRole } from '@teable/core'; +import { generateInvitationId } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import type { AcceptInvitationLinkRo, CreateSpaceInvitationLinkRo, @@ -15,7 +15,7 @@ import type { EmailSpaceInvitationRo, ItemSpaceInvitationLinkVo, UpdateSpaceInvitationLinkRo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import dayjs from 'dayjs'; import { ClsService } from 'nestjs-cls'; import type { IMailConfig } from '../../configs/mail.config'; diff --git a/apps/nestjs-backend/src/features/notification/notification.controller.ts b/apps/nestjs-backend/src/features/notification/notification.controller.ts index e4b5cad34..158680906 100644 --- a/apps/nestjs-backend/src/features/notification/notification.controller.ts +++ b/apps/nestjs-backend/src/features/notification/notification.controller.ts @@ -1,11 +1,11 @@ import { Body, Controller, Get, Param, Patch, Query } from '@nestjs/common'; -import type { INotificationUnreadCountVo, INotificationVo } from '@teable-group/openapi'; +import type { INotificationUnreadCountVo, INotificationVo } from '@teable/openapi'; import { getNotifyListQuerySchema, IGetNotifyListQuery, IUpdateNotifyStatusRo, updateNotifyStatusRoSchema, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../types/cls'; import { ZodValidationPipe } from '../../zod.validation.pipe'; diff --git a/apps/nestjs-backend/src/features/notification/notification.service.ts b/apps/nestjs-backend/src/features/notification/notification.service.ts index c218ed9f5..98fae4d8f 100644 --- a/apps/nestjs-backend/src/features/notification/notification.service.ts +++ b/apps/nestjs-backend/src/features/notification/notification.service.ts @@ -1,6 +1,6 @@ import { Injectable, Logger } from '@nestjs/common'; import type { ISendMailOptions } from '@nestjs-modules/mailer'; -import type { INotificationBuffer, INotificationUrl } from '@teable-group/core'; +import type { INotificationBuffer, INotificationUrl } from '@teable/core'; import { generateNotificationId, getUserNotificationChannel, @@ -9,15 +9,15 @@ import { notificationUrlSchema, systemIconSchema, userIconSchema, -} from '@teable-group/core'; -import type { Prisma } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import type { Prisma } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import type { IGetNotifyListQuery, INotificationUnreadCountVo, INotificationVo, IUpdateNotifyStatusRo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { keyBy } from 'lodash'; import { IMailConfig, MailConfig } from '../../configs/mail.config'; import { ShareDbService } from '../../share-db/share-db.service'; diff --git a/apps/nestjs-backend/src/features/record/open-api/record-open-api.controller.ts b/apps/nestjs-backend/src/features/record/open-api/record-open-api.controller.ts index c1a4fb455..07cb01492 100644 --- a/apps/nestjs-backend/src/features/record/open-api/record-open-api.controller.ts +++ b/apps/nestjs-backend/src/features/record/open-api/record-open-api.controller.ts @@ -1,5 +1,5 @@ import { Body, Controller, Delete, Get, Param, Patch, Post, Query } from '@nestjs/common'; -import type { ICreateRecordsVo, IRecord, IRecordsVo } from '@teable-group/core'; +import type { ICreateRecordsVo, IRecord, IRecordsVo } from '@teable/core'; import { createRecordsRoSchema, getRecordQuerySchema, @@ -9,8 +9,8 @@ import { IGetRecordQuery, IUpdateRecordRo, updateRecordRoSchema, -} from '@teable-group/core'; -import { deleteRecordsQuerySchema, IDeleteRecordsQuery } from '@teable-group/openapi'; +} from '@teable/core'; +import { deleteRecordsQuerySchema, IDeleteRecordsQuery } from '@teable/openapi'; import { ZodValidationPipe } from '../../../zod.validation.pipe'; import { Permissions } from '../../auth/decorators/permissions.decorator'; import { RecordService } from '../record.service'; diff --git a/apps/nestjs-backend/src/features/record/open-api/record-open-api.service.ts b/apps/nestjs-backend/src/features/record/open-api/record-open-api.service.ts index 422da77a7..c9f562cb9 100644 --- a/apps/nestjs-backend/src/features/record/open-api/record-open-api.service.ts +++ b/apps/nestjs-backend/src/features/record/open-api/record-open-api.service.ts @@ -6,10 +6,10 @@ import type { IRecord, IUpdateRecordRo, IUpdateRecordsRo, -} from '@teable-group/core'; -import { FieldKeyType, FieldType } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import { UploadType } from '@teable-group/openapi'; +} from '@teable/core'; +import { FieldKeyType, FieldType } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; +import { UploadType } from '@teable/openapi'; import { forEach, map } from 'lodash'; import { AttachmentsStorageService } from '../../attachments/attachments-storage.service'; import StorageAdapter from '../../attachments/plugins/adapter'; diff --git a/apps/nestjs-backend/src/features/record/open-api/tql.pipe.ts b/apps/nestjs-backend/src/features/record/open-api/tql.pipe.ts index f28ecf516..f79acbb10 100644 --- a/apps/nestjs-backend/src/features/record/open-api/tql.pipe.ts +++ b/apps/nestjs-backend/src/features/record/open-api/tql.pipe.ts @@ -1,7 +1,7 @@ import type { ArgumentMetadata, PipeTransform } from '@nestjs/common'; import { BadRequestException, Injectable } from '@nestjs/common'; -import type { IFilter } from '@teable-group/core'; -import { parseTQL } from '@teable-group/core'; +import type { IFilter } from '@teable/core'; +import { parseTQL } from '@teable/core'; @Injectable() export class TqlPipe diff --git a/apps/nestjs-backend/src/features/record/record-calculate/record-calculate.service.ts b/apps/nestjs-backend/src/features/record/record-calculate/record-calculate.service.ts index 9457d05e2..1d86cb57d 100644 --- a/apps/nestjs-backend/src/features/record/record-calculate/record-calculate.service.ts +++ b/apps/nestjs-backend/src/features/record/record-calculate/record-calculate.service.ts @@ -1,7 +1,7 @@ import { BadRequestException, Injectable } from '@nestjs/common'; -import type { ICreateRecordsRo, ICreateRecordsVo, IRecord } from '@teable-group/core'; -import { FieldKeyType, generateRecordId, RecordOpBuilder, FieldType } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { ICreateRecordsRo, ICreateRecordsVo, IRecord } from '@teable/core'; +import { FieldKeyType, generateRecordId, RecordOpBuilder, FieldType } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { isEmpty, keyBy } from 'lodash'; import { BatchService } from '../../calculation/batch.service'; import { FieldCalculationService } from '../../calculation/field-calculation.service'; diff --git a/apps/nestjs-backend/src/features/record/record.service.ts b/apps/nestjs-backend/src/features/record/record.service.ts index 62d096f62..69706ba73 100644 --- a/apps/nestjs-backend/src/features/record/record.service.ts +++ b/apps/nestjs-backend/src/features/record/record.service.ts @@ -21,7 +21,7 @@ import type { IShareViewMeta, ISnapshotBase, ISortItem, -} from '@teable-group/core'; +} from '@teable/core'; import { CellFormat, FieldKeyType, @@ -34,10 +34,10 @@ import { OpName, Relationship, parseGroup, -} from '@teable-group/core'; -import type { Field, Prisma } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import { UploadType } from '@teable-group/openapi'; +} from '@teable/core'; +import type { Field, Prisma } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; +import { UploadType } from '@teable/openapi'; import { Knex } from 'knex'; import { keyBy } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/features/record/typecast.validate.spec.ts b/apps/nestjs-backend/src/features/record/typecast.validate.spec.ts index d15c7728f..41541073f 100644 --- a/apps/nestjs-backend/src/features/record/typecast.validate.spec.ts +++ b/apps/nestjs-backend/src/features/record/typecast.validate.spec.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import { Colors, FieldType } from '@teable-group/core'; -import type { PrismaService } from '@teable-group/db-main-prisma'; +import { Colors, FieldType } from '@teable/core'; +import type { PrismaService } from '@teable/db-main-prisma'; import { vi } from 'vitest'; import { mockDeep, mockReset } from 'vitest-mock-extended'; import type { FieldConvertingService } from '../field/field-calculate/field-converting.service'; diff --git a/apps/nestjs-backend/src/features/record/typecast.validate.ts b/apps/nestjs-backend/src/features/record/typecast.validate.ts index a9851042d..148d32eea 100644 --- a/apps/nestjs-backend/src/features/record/typecast.validate.ts +++ b/apps/nestjs-backend/src/features/record/typecast.validate.ts @@ -1,7 +1,7 @@ import { BadRequestException } from '@nestjs/common'; -import type { ILinkCellValue } from '@teable-group/core'; -import { ColorUtils, FieldType, generateChoiceId } from '@teable-group/core'; -import type { PrismaService } from '@teable-group/db-main-prisma'; +import type { ILinkCellValue } from '@teable/core'; +import { ColorUtils, FieldType, generateChoiceId } from '@teable/core'; +import type { PrismaService } from '@teable/db-main-prisma'; import { isUndefined, keyBy, map } from 'lodash'; import { fromZodError } from 'zod-validation-error'; import type { FieldConvertingService } from '../field/field-calculate/field-converting.service'; diff --git a/apps/nestjs-backend/src/features/selection/selection.controller.ts b/apps/nestjs-backend/src/features/selection/selection.controller.ts index 067e1eeb5..6dcdb9ad7 100644 --- a/apps/nestjs-backend/src/features/selection/selection.controller.ts +++ b/apps/nestjs-backend/src/features/selection/selection.controller.ts @@ -1,5 +1,5 @@ import { Body, Controller, Get, Param, Patch, Query } from '@nestjs/common'; -import type { ICopyVo, IRangesToIdVo, IPasteVo } from '@teable-group/openapi'; +import type { ICopyVo, IRangesToIdVo, IPasteVo } from '@teable/openapi'; import { IRangesToIdQuery, rangesToIdQuerySchema, @@ -8,7 +8,7 @@ import { pasteRoSchema, rangesRoSchema, IRangesRo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { ZodValidationPipe } from '../../zod.validation.pipe'; import { Permissions } from '../auth/decorators/permissions.decorator'; import { TqlPipe } from '../record/open-api/tql.pipe'; diff --git a/apps/nestjs-backend/src/features/selection/selection.service.spec.ts b/apps/nestjs-backend/src/features/selection/selection.service.spec.ts index 1634889d1..15cd0f88a 100644 --- a/apps/nestjs-backend/src/features/selection/selection.service.spec.ts +++ b/apps/nestjs-backend/src/features/selection/selection.service.spec.ts @@ -2,7 +2,7 @@ import { faker } from '@faker-js/faker'; import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import type { IFieldOptionsVo, IFieldVo, IRecord } from '@teable-group/core'; +import type { IFieldOptionsVo, IFieldVo, IRecord } from '@teable/core'; import { CellValueType, Colors, @@ -18,9 +18,9 @@ import { getPermissions, nullsToUndefined, SpaceRole, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import { RangeType } from '@teable-group/openapi'; +} from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; +import { RangeType } from '@teable/openapi'; import { ClsService } from 'nestjs-cls'; import { vi } from 'vitest'; import type { DeepMockProxy } from 'vitest-mock-extended'; diff --git a/apps/nestjs-backend/src/features/selection/selection.service.ts b/apps/nestjs-backend/src/features/selection/selection.service.ts index 6cdf12b23..98764cb6f 100644 --- a/apps/nestjs-backend/src/features/selection/selection.service.ts +++ b/apps/nestjs-backend/src/features/selection/selection.service.ts @@ -10,7 +10,7 @@ import type { ISingleLineTextFieldOptions, IUpdateRecordsRo, IUserFieldOptions, -} from '@teable-group/core'; +} from '@teable/core'; import { CellValueType, FieldKeyType, @@ -25,16 +25,16 @@ import { singleLineTextShowAsSchema, singleNumberShowAsSchema, stringifyClipboardText, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import type { IRangesToIdQuery, IRangesToIdVo, IPasteRo, IPasteVo, IRangesRo, -} from '@teable-group/openapi'; -import { IdReturnType, RangeType } from '@teable-group/openapi'; +} from '@teable/openapi'; +import { IdReturnType, RangeType } from '@teable/openapi'; import { isNumber, isString, map, pick } from 'lodash'; import { ClsService } from 'nestjs-cls'; import { ThresholdConfig, IThresholdConfig } from '../../configs/threshold.config'; diff --git a/apps/nestjs-backend/src/features/share/guard/auth.guard.ts b/apps/nestjs-backend/src/features/share/guard/auth.guard.ts index 3060b322e..92a8d52fd 100644 --- a/apps/nestjs-backend/src/features/share/guard/auth.guard.ts +++ b/apps/nestjs-backend/src/features/share/guard/auth.guard.ts @@ -1,7 +1,7 @@ import type { ExecutionContext } from '@nestjs/common'; import { Injectable, UnauthorizedException } from '@nestjs/common'; import { AuthGuard as PassportAuthGuard } from '@nestjs/passport'; -import { ANONYMOUS_USER_ID } from '@teable-group/core'; +import { ANONYMOUS_USER_ID } from '@teable/core'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../../types/cls'; import { ShareAuthService } from '../share-auth.service'; diff --git a/apps/nestjs-backend/src/features/share/share-auth.service.ts b/apps/nestjs-backend/src/features/share/share-auth.service.ts index ebff35846..b97651c9c 100644 --- a/apps/nestjs-backend/src/features/share/share-auth.service.ts +++ b/apps/nestjs-backend/src/features/share/share-auth.service.ts @@ -1,7 +1,7 @@ import { BadRequestException, Injectable, UnauthorizedException } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; -import type { IViewVo, IShareViewMeta } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { IViewVo, IShareViewMeta } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { createViewVoByRaw } from '../view/model/factory'; export interface IShareViewInfo { diff --git a/apps/nestjs-backend/src/features/share/share.controller.ts b/apps/nestjs-backend/src/features/share/share.controller.ts index 12ecacdab..ed8158e11 100644 --- a/apps/nestjs-backend/src/features/share/share.controller.ts +++ b/apps/nestjs-backend/src/features/share/share.controller.ts @@ -11,7 +11,7 @@ import { Body, Query, } from '@nestjs/common'; -import type { IRecord, IAggregationVo, IRowCountVo, IGroupPointsVo } from '@teable-group/core'; +import type { IRecord, IAggregationVo, IRowCountVo, IGroupPointsVo } from '@teable/core'; import { ShareViewFormSubmitRo, shareViewFormSubmitRoSchema, @@ -25,8 +25,8 @@ import { IShareViewAggregationsRo, rangesQuerySchema, IRangesRo, -} from '@teable-group/openapi'; -import type { ICopyVo, IShareViewLinkRecordsVo, ShareViewGetVo } from '@teable-group/openapi'; +} from '@teable/openapi'; +import type { ICopyVo, IShareViewLinkRecordsVo, ShareViewGetVo } from '@teable/openapi'; import { Response } from 'express'; import { ZodValidationPipe } from '../../zod.validation.pipe'; import { Public } from '../auth/decorators/public.decorator'; diff --git a/apps/nestjs-backend/src/features/share/share.service.ts b/apps/nestjs-backend/src/features/share/share.service.ts index c8d056ef6..adf86e745 100644 --- a/apps/nestjs-backend/src/features/share/share.service.ts +++ b/apps/nestjs-backend/src/features/share/share.service.ts @@ -12,9 +12,9 @@ import type { IAggregationVo, IGroupPointsVo, StatisticsFunc, -} from '@teable-group/core'; -import { FieldKeyType, FieldType } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { FieldKeyType, FieldType } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import type { IShareViewLinkRecordsRo, ShareViewFormSubmitRo, @@ -23,7 +23,7 @@ import type { IShareViewAggregationsRo, IRangesRo, IShareViewGroupPointsRo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../types/cls'; import { AggregationService } from '../aggregation/aggregation.service'; diff --git a/apps/nestjs-backend/src/features/space/space.controller.ts b/apps/nestjs-backend/src/features/space/space.controller.ts index 100dd6594..7954caa99 100644 --- a/apps/nestjs-backend/src/features/space/space.controller.ts +++ b/apps/nestjs-backend/src/features/space/space.controller.ts @@ -10,7 +10,7 @@ import type { UpdateSpaceInvitationLinkVo, ListSpaceCollaboratorVo, IGetBaseVo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { createSpaceRoSchema, ICreateSpaceRo, @@ -24,7 +24,7 @@ import { createSpaceInvitationLinkRoSchema, updateSpaceCollaborateRoSchema, UpdateSpaceCollaborateRo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { EmitControllerEvent } from '../../event-emitter/decorators/emit-controller-event.decorator'; import { Events } from '../../event-emitter/events'; import { ZodValidationPipe } from '../../zod.validation.pipe'; diff --git a/apps/nestjs-backend/src/features/space/space.service.ts b/apps/nestjs-backend/src/features/space/space.service.ts index ee9f1352b..b48e61527 100644 --- a/apps/nestjs-backend/src/features/space/space.service.ts +++ b/apps/nestjs-backend/src/features/space/space.service.ts @@ -1,8 +1,8 @@ import { ForbiddenException, Injectable, NotFoundException } from '@nestjs/common'; -import { SpaceRole, generateSpaceId, getUniqName } from '@teable-group/core'; -import type { Prisma } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import type { ICreateSpaceRo, IUpdateSpaceRo } from '@teable-group/openapi'; +import { SpaceRole, generateSpaceId, getUniqName } from '@teable/core'; +import type { Prisma } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; +import type { ICreateSpaceRo, IUpdateSpaceRo } from '@teable/openapi'; import { keyBy, map } from 'lodash'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../types/cls'; diff --git a/apps/nestjs-backend/src/features/table/constant.ts b/apps/nestjs-backend/src/features/table/constant.ts index 51a5ec56f..8efcc5c69 100644 --- a/apps/nestjs-backend/src/features/table/constant.ts +++ b/apps/nestjs-backend/src/features/table/constant.ts @@ -1,5 +1,5 @@ -import type { ICreateRecordsRo, IFieldRo, IViewRo } from '@teable-group/core'; -import { Colors, FieldType, ViewType } from '@teable-group/core'; +import type { ICreateRecordsRo, IFieldRo, IViewRo } from '@teable/core'; +import { Colors, FieldType, ViewType } from '@teable/core'; export const DEFAULT_FIELDS: IFieldRo[] = [ { name: 'Name', type: FieldType.SingleLineText }, diff --git a/apps/nestjs-backend/src/features/table/open-api/table-open-api.controller.ts b/apps/nestjs-backend/src/features/table/open-api/table-open-api.controller.ts index efd9b2d42..d252d42c9 100644 --- a/apps/nestjs-backend/src/features/table/open-api/table-open-api.controller.ts +++ b/apps/nestjs-backend/src/features/table/open-api/table-open-api.controller.ts @@ -1,12 +1,12 @@ /* eslint-disable sonarjs/no-duplicate-string */ import { Body, Controller, Delete, Get, Param, Post, Put, Query } from '@nestjs/common'; -import type { ITableFullVo, ITableListVo, ITableVo } from '@teable-group/core'; +import type { ITableFullVo, ITableListVo, ITableVo } from '@teable/core'; import { getTableQuerySchema, IGetTableQuery, tableRoSchema, ICreateTableWithDefault, -} from '@teable-group/core'; +} from '@teable/core'; import { dbTableNameRoSchema, getGraphRoSchema, @@ -22,7 +22,7 @@ import { tableIconRoSchema, tableNameRoSchema, tableOrderRoSchema, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { ZodValidationPipe } from '../../../zod.validation.pipe'; import { Permissions } from '../../auth/decorators/permissions.decorator'; import { TableService } from '../table.service'; diff --git a/apps/nestjs-backend/src/features/table/open-api/table-open-api.service.ts b/apps/nestjs-backend/src/features/table/open-api/table-open-api.service.ts index 72ee369f5..8841a9e28 100644 --- a/apps/nestjs-backend/src/features/table/open-api/table-open-api.service.ts +++ b/apps/nestjs-backend/src/features/table/open-api/table-open-api.service.ts @@ -11,9 +11,9 @@ import type { ITableFullVo, ITableVo, IViewRo, -} from '@teable-group/core'; -import { FieldKeyType, FieldType } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { FieldKeyType, FieldType } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { InjectModel } from 'nest-knexjs'; import { InjectDbProvider } from '../../../db-provider/db.provider'; diff --git a/apps/nestjs-backend/src/features/table/open-api/table.pipe.ts b/apps/nestjs-backend/src/features/table/open-api/table.pipe.ts index 156d4dbe6..8ddc67e2e 100644 --- a/apps/nestjs-backend/src/features/table/open-api/table.pipe.ts +++ b/apps/nestjs-backend/src/features/table/open-api/table.pipe.ts @@ -1,6 +1,6 @@ import type { ArgumentMetadata, PipeTransform } from '@nestjs/common'; import { Injectable } from '@nestjs/common'; -import type { ICreateTableRo, IFieldVo } from '@teable-group/core'; +import type { ICreateTableRo, IFieldVo } from '@teable/core'; import { DEFAULT_FIELDS, DEFAULT_RECORD_DATA, DEFAULT_VIEWS } from '../constant'; @Injectable() diff --git a/apps/nestjs-backend/src/features/table/table.service.ts b/apps/nestjs-backend/src/features/table/table.service.ts index 6195bb489..22e43e2ce 100644 --- a/apps/nestjs-backend/src/features/table/table.service.ts +++ b/apps/nestjs-backend/src/features/table/table.service.ts @@ -6,7 +6,7 @@ import type { ISnapshotBase, ITableFullVo, ITableVo, -} from '@teable-group/core'; +} from '@teable/core'; import { FieldKeyType, generateTableId, @@ -15,9 +15,9 @@ import { IdPrefix, nullsToUndefined, tablePropertyKeySchema, -} from '@teable-group/core'; -import type { Prisma } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import type { Prisma } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { InjectModel } from 'nest-knexjs'; import { ClsService } from 'nestjs-cls'; diff --git a/apps/nestjs-backend/src/features/user/user.controller.ts b/apps/nestjs-backend/src/features/user/user.controller.ts index 00219e185..133fbc50c 100644 --- a/apps/nestjs-backend/src/features/user/user.controller.ts +++ b/apps/nestjs-backend/src/features/user/user.controller.ts @@ -12,7 +12,7 @@ import { IUserNotifyMeta, updateUserNameRoSchema, userNotifyMetaSchema, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../types/cls'; import { ZodValidationPipe } from '../../zod.validation.pipe'; diff --git a/apps/nestjs-backend/src/features/user/user.service.ts b/apps/nestjs-backend/src/features/user/user.service.ts index ec8e05d73..32af210aa 100644 --- a/apps/nestjs-backend/src/features/user/user.service.ts +++ b/apps/nestjs-backend/src/features/user/user.service.ts @@ -1,9 +1,9 @@ import { join } from 'path'; import { Injectable } from '@nestjs/common'; -import { generateSpaceId, SpaceRole } from '@teable-group/core'; -import type { Prisma } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import { UploadType, type ICreateSpaceRo, type IUserNotifyMeta } from '@teable-group/openapi'; +import { generateSpaceId, SpaceRole } from '@teable/core'; +import type { Prisma } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; +import { UploadType, type ICreateSpaceRo, type IUserNotifyMeta } from '@teable/openapi'; import { ClsService } from 'nestjs-cls'; import type { IClsStore } from '../../types/cls'; import { getFullStorageUrl } from '../../utils/full-storage-url'; diff --git a/apps/nestjs-backend/src/features/view/model/factory.ts b/apps/nestjs-backend/src/features/view/model/factory.ts index 8791173a9..3198594f7 100644 --- a/apps/nestjs-backend/src/features/view/model/factory.ts +++ b/apps/nestjs-backend/src/features/view/model/factory.ts @@ -1,6 +1,6 @@ -import type { IViewVo } from '@teable-group/core'; -import { assertNever, ViewType } from '@teable-group/core'; -import type { View } from '@teable-group/db-main-prisma'; +import type { IViewVo } from '@teable/core'; +import { assertNever, ViewType } from '@teable/core'; +import type { View } from '@teable/db-main-prisma'; import { plainToInstance } from 'class-transformer'; import { FormViewDto } from './form-view.dto'; import { GridViewDto } from './grid-view.dto'; diff --git a/apps/nestjs-backend/src/features/view/model/form-view.dto.ts b/apps/nestjs-backend/src/features/view/model/form-view.dto.ts index a47257640..2f681eaf9 100644 --- a/apps/nestjs-backend/src/features/view/model/form-view.dto.ts +++ b/apps/nestjs-backend/src/features/view/model/form-view.dto.ts @@ -1,6 +1,6 @@ import { ApiProperty } from '@nestjs/swagger'; -import { FormViewCore } from '@teable-group/core'; -import type { FormViewOptions } from '@teable-group/core'; +import { FormViewCore } from '@teable/core'; +import type { FormViewOptions } from '@teable/core'; export class FormViewOptionsDto implements FormViewOptions { @ApiProperty({ diff --git a/apps/nestjs-backend/src/features/view/model/grid-view.dto.ts b/apps/nestjs-backend/src/features/view/model/grid-view.dto.ts index 5b1aa7ef3..789a72a75 100644 --- a/apps/nestjs-backend/src/features/view/model/grid-view.dto.ts +++ b/apps/nestjs-backend/src/features/view/model/grid-view.dto.ts @@ -1,6 +1,6 @@ import { ApiProperty } from '@nestjs/swagger'; -import { GridViewCore, RowHeightLevel } from '@teable-group/core'; -import type { GridViewOptions } from '@teable-group/core'; +import { GridViewCore, RowHeightLevel } from '@teable/core'; +import type { GridViewOptions } from '@teable/core'; export class GridViewOptionsDto implements GridViewOptions { @ApiProperty({ diff --git a/apps/nestjs-backend/src/features/view/model/kanban-view.dto.ts b/apps/nestjs-backend/src/features/view/model/kanban-view.dto.ts index 7806540bd..bbd5fadb5 100644 --- a/apps/nestjs-backend/src/features/view/model/kanban-view.dto.ts +++ b/apps/nestjs-backend/src/features/view/model/kanban-view.dto.ts @@ -1,6 +1,6 @@ import { ApiPropertyOptional } from '@nestjs/swagger'; -import { KanbanViewCore } from '@teable-group/core'; -import type { KanbanViewOptions } from '@teable-group/core'; +import { KanbanViewCore } from '@teable/core'; +import type { KanbanViewOptions } from '@teable/core'; export class KanbanViewOptionsDto implements KanbanViewOptions { @ApiPropertyOptional({ diff --git a/apps/nestjs-backend/src/features/view/open-api/view-open-api.controller.ts b/apps/nestjs-backend/src/features/view/open-api/view-open-api.controller.ts index c451f6bb4..34de091bc 100644 --- a/apps/nestjs-backend/src/features/view/open-api/view-open-api.controller.ts +++ b/apps/nestjs-backend/src/features/view/open-api/view-open-api.controller.ts @@ -1,6 +1,6 @@ /* eslint-disable sonarjs/no-duplicate-string */ import { Body, Controller, Delete, Get, Param, Patch, Post, Put } from '@nestjs/common'; -import type { IViewVo } from '@teable-group/core'; +import type { IViewVo } from '@teable/core'; import { viewRoSchema, manualSortRoSchema, @@ -12,7 +12,7 @@ import { IViewGroupRo, filterRoSchema, viewGroupRoSchema, -} from '@teable-group/core'; +} from '@teable/core'; import { IViewOrderRo, viewNameRoSchema, @@ -26,8 +26,8 @@ import { IViewSortRo, viewOptionsRoSchema, IViewOptionsRo, -} from '@teable-group/openapi'; -import type { EnableShareViewVo } from '@teable-group/openapi'; +} from '@teable/openapi'; +import type { EnableShareViewVo } from '@teable/openapi'; import { ZodValidationPipe } from '../../..//zod.validation.pipe'; import { Permissions } from '../../auth/decorators/permissions.decorator'; import { ViewService } from '../view.service'; diff --git a/apps/nestjs-backend/src/features/view/open-api/view-open-api.service.ts b/apps/nestjs-backend/src/features/view/open-api/view-open-api.service.ts index ffcd31af3..64a3fe4da 100644 --- a/apps/nestjs-backend/src/features/view/open-api/view-open-api.service.ts +++ b/apps/nestjs-backend/src/features/view/open-api/view-open-api.service.ts @@ -13,7 +13,7 @@ import type { IColumnMetaRo, IViewPropertyKeys, IViewOptions, -} from '@teable-group/core'; +} from '@teable/core'; import { ViewType, IManualSortRo, @@ -21,9 +21,9 @@ import { generateShareId, VIEW_JSON_KEYS, validateOptionsType, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; -import type { IViewOrderRo } from '@teable-group/openapi'; +} from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; +import type { IViewOrderRo } from '@teable/openapi'; import { Knex } from 'knex'; import { InjectModel } from 'nest-knexjs'; import { Timing } from '../../../utils/timing'; diff --git a/apps/nestjs-backend/src/features/view/view.service.ts b/apps/nestjs-backend/src/features/view/view.service.ts index da2e4bf72..5b9518be7 100644 --- a/apps/nestjs-backend/src/features/view/view.service.ts +++ b/apps/nestjs-backend/src/features/view/view.service.ts @@ -8,7 +8,7 @@ import type { IUpdateViewColumnMetaOpContext, ISetViewPropertyOpContext, IColumnMeta, -} from '@teable-group/core'; +} from '@teable/core'; import { getUniqName, IdPrefix, @@ -16,9 +16,9 @@ import { OpName, ViewOpBuilder, viewRoSchema, -} from '@teable-group/core'; -import type { Prisma } from '@teable-group/db-main-prisma'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import type { Prisma } from '@teable/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { maxBy, isEmpty } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/filter/global-exception.filter.ts b/apps/nestjs-backend/src/filter/global-exception.filter.ts index 77aaf85c8..58df8b232 100644 --- a/apps/nestjs-backend/src/filter/global-exception.filter.ts +++ b/apps/nestjs-backend/src/filter/global-exception.filter.ts @@ -11,7 +11,7 @@ import { UnauthorizedException, } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; -import { HttpErrorCode, type IHttpError } from '@teable-group/core'; +import { HttpErrorCode, type IHttpError } from '@teable/core'; import type { Request, Response } from 'express'; import type { ILoggerConfig } from '../configs/logger.config'; diff --git a/apps/nestjs-backend/src/global/global.module.ts b/apps/nestjs-backend/src/global/global.module.ts index 91524709e..359146788 100644 --- a/apps/nestjs-backend/src/global/global.module.ts +++ b/apps/nestjs-backend/src/global/global.module.ts @@ -1,6 +1,6 @@ import type { MiddlewareConsumer, NestModule } from '@nestjs/common'; import { Global, Module } from '@nestjs/common'; -import { PrismaModule } from '@teable-group/db-main-prisma'; +import { PrismaModule } from '@teable/db-main-prisma'; import type { Request } from 'express'; import { nanoid } from 'nanoid'; import { ClsMiddleware, ClsModule } from 'nestjs-cls'; diff --git a/apps/nestjs-backend/src/global/init-bootstrap.provider.ts b/apps/nestjs-backend/src/global/init-bootstrap.provider.ts index 0eae2c5cc..1e17f6e7c 100644 --- a/apps/nestjs-backend/src/global/init-bootstrap.provider.ts +++ b/apps/nestjs-backend/src/global/init-bootstrap.provider.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/naming-convention */ import type { Provider } from '@nestjs/common'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { PrismaService } from '@teable/db-main-prisma'; import type { Knex } from 'knex'; import { InitBootstrapService } from './init-bootstrap.service'; diff --git a/apps/nestjs-backend/src/global/init-bootstrap.service.ts b/apps/nestjs-backend/src/global/init-bootstrap.service.ts index e6c5ac023..533016f72 100644 --- a/apps/nestjs-backend/src/global/init-bootstrap.service.ts +++ b/apps/nestjs-backend/src/global/init-bootstrap.service.ts @@ -1,6 +1,6 @@ import { Injectable, Logger } from '@nestjs/common'; -import { DriverClient } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { DriverClient } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { InjectModel } from 'nest-knexjs'; import { getDriverName } from '../utils/db-helpers'; diff --git a/apps/nestjs-backend/src/global/knex/knex.extend.ts b/apps/nestjs-backend/src/global/knex/knex.extend.ts index 45444db9c..8b19a5b49 100644 --- a/apps/nestjs-backend/src/global/knex/knex.extend.ts +++ b/apps/nestjs-backend/src/global/knex/knex.extend.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable @typescript-eslint/naming-convention */ -import { DriverClient } from '@teable-group/core'; +import { DriverClient } from '@teable/core'; import knex from 'knex'; import { getDriverName } from '../../utils/db-helpers'; diff --git a/apps/nestjs-backend/src/global/knex/knex.module.ts b/apps/nestjs-backend/src/global/knex/knex.module.ts index 6dfed6c30..bf08cfb2e 100644 --- a/apps/nestjs-backend/src/global/knex/knex.module.ts +++ b/apps/nestjs-backend/src/global/knex/knex.module.ts @@ -1,7 +1,7 @@ import type { DynamicModule } from '@nestjs/common'; import { Module } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; -import { parseDsn } from '@teable-group/core'; +import { parseDsn } from '@teable/core'; import { KnexModule as BaseKnexModule } from 'nest-knexjs'; @Module({}) diff --git a/apps/nestjs-backend/src/share-db/interface.ts b/apps/nestjs-backend/src/share-db/interface.ts index d54bf187f..3319d60c9 100644 --- a/apps/nestjs-backend/src/share-db/interface.ts +++ b/apps/nestjs-backend/src/share-db/interface.ts @@ -1,4 +1,4 @@ -import type { ISnapshotBase } from '@teable-group/core'; +import type { ISnapshotBase } from '@teable/core'; import type { CreateOp, DB, DeleteOp, EditOp } from 'sharedb'; export interface IAdapterService { create(collectionId: string, snapshot: unknown): Promise; diff --git a/apps/nestjs-backend/src/share-db/share-db-permission.service.spec.ts b/apps/nestjs-backend/src/share-db/share-db-permission.service.spec.ts index 6d12d0aa7..e2664ae7c 100644 --- a/apps/nestjs-backend/src/share-db/share-db-permission.service.spec.ts +++ b/apps/nestjs-backend/src/share-db/share-db-permission.service.spec.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import { ActionPrefix, IdPrefix } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { ActionPrefix, IdPrefix } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { ClsService } from 'nestjs-cls'; import type ShareDBClass from 'sharedb'; import { vi } from 'vitest'; diff --git a/apps/nestjs-backend/src/share-db/share-db-permission.service.ts b/apps/nestjs-backend/src/share-db/share-db-permission.service.ts index f60a0d80a..ef10a8f1f 100644 --- a/apps/nestjs-backend/src/share-db/share-db-permission.service.ts +++ b/apps/nestjs-backend/src/share-db/share-db-permission.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@nestjs/common'; -import { ANONYMOUS_USER_ID, IdPrefix } from '@teable-group/core'; -import type { IShareViewMeta, PermissionAction } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { ANONYMOUS_USER_ID, IdPrefix } from '@teable/core'; +import type { IShareViewMeta, PermissionAction } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { ClsService } from 'nestjs-cls'; import ShareDBClass from 'sharedb'; import { PermissionService } from '../features/auth/permission.service'; diff --git a/apps/nestjs-backend/src/share-db/share-db.adapter.ts b/apps/nestjs-backend/src/share-db/share-db.adapter.ts index fc323e58a..6b012adf6 100644 --- a/apps/nestjs-backend/src/share-db/share-db.adapter.ts +++ b/apps/nestjs-backend/src/share-db/share-db.adapter.ts @@ -1,13 +1,13 @@ import { Injectable, Logger } from '@nestjs/common'; -import type { IOtOperation, IRecord } from '@teable-group/core'; +import type { IOtOperation, IRecord } from '@teable/core'; import { FieldOpBuilder, RecordOpBuilder, TableOpBuilder, ViewOpBuilder, IdPrefix, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { Knex } from 'knex'; import { groupBy } from 'lodash'; import { InjectModel } from 'nest-knexjs'; diff --git a/apps/nestjs-backend/src/share-db/share-db.service.ts b/apps/nestjs-backend/src/share-db/share-db.service.ts index 784d4aedb..ab1f11940 100644 --- a/apps/nestjs-backend/src/share-db/share-db.service.ts +++ b/apps/nestjs-backend/src/share-db/share-db.service.ts @@ -1,7 +1,7 @@ import { Injectable, Logger } from '@nestjs/common'; import { context as otelContext, trace as otelTrace } from '@opentelemetry/api'; -import { FieldOpBuilder, IdPrefix, ViewOpBuilder } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import { FieldOpBuilder, IdPrefix, ViewOpBuilder } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { noop } from 'lodash'; import { ClsService } from 'nestjs-cls'; import type { CreateOp, DeleteOp, EditOp } from 'sharedb'; diff --git a/apps/nestjs-backend/src/share-db/utils.ts b/apps/nestjs-backend/src/share-db/utils.ts index a224fedbc..cdb9b9389 100644 --- a/apps/nestjs-backend/src/share-db/utils.ts +++ b/apps/nestjs-backend/src/share-db/utils.ts @@ -1,4 +1,4 @@ -import { ActionPrefix, IdPrefix } from '@teable-group/core'; +import { ActionPrefix, IdPrefix } from '@teable/core'; import type { CreateOp, DeleteOp, EditOp } from 'sharedb'; export const getPrefixAction = (docType: IdPrefix) => { diff --git a/apps/nestjs-backend/src/share-db/ws-auth.service.ts b/apps/nestjs-backend/src/share-db/ws-auth.service.ts index 383d75817..8190df7e1 100644 --- a/apps/nestjs-backend/src/share-db/ws-auth.service.ts +++ b/apps/nestjs-backend/src/share-db/ws-auth.service.ts @@ -1,5 +1,5 @@ import { Injectable, UnauthorizedException } from '@nestjs/common'; -import { HttpErrorCode } from '@teable-group/core'; +import { HttpErrorCode } from '@teable/core'; import cookie from 'cookie'; import { AUTH_SESSION_COOKIE_NAME } from '../const'; import { SessionHandleService } from '../features/auth/session/session-handle.service'; diff --git a/apps/nestjs-backend/src/share-db/ws-derivate.service.ts b/apps/nestjs-backend/src/share-db/ws-derivate.service.ts index 8152b1c0e..3dee75b35 100644 --- a/apps/nestjs-backend/src/share-db/ws-derivate.service.ts +++ b/apps/nestjs-backend/src/share-db/ws-derivate.service.ts @@ -1,7 +1,7 @@ import { Injectable, Logger } from '@nestjs/common'; -import type { IOtOperation } from '@teable-group/core'; -import { IdPrefix, RecordOpBuilder } from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +import type { IOtOperation } from '@teable/core'; +import { IdPrefix, RecordOpBuilder } from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import { isEmpty, pick } from 'lodash'; import { ClsService } from 'nestjs-cls'; import type ShareDb from 'sharedb'; diff --git a/apps/nestjs-backend/src/types/cls.ts b/apps/nestjs-backend/src/types/cls.ts index d741a06fa..e5cbd10d7 100644 --- a/apps/nestjs-backend/src/types/cls.ts +++ b/apps/nestjs-backend/src/types/cls.ts @@ -1,5 +1,5 @@ -import type { PermissionAction } from '@teable-group/core'; -import type { Prisma } from '@teable-group/db-main-prisma'; +import type { PermissionAction } from '@teable/core'; +import type { Prisma } from '@teable/db-main-prisma'; import type { ClsStore } from 'nestjs-cls'; import type { IRawOpMap } from '../share-db/interface'; diff --git a/apps/nestjs-backend/src/utils/db-helpers.ts b/apps/nestjs-backend/src/utils/db-helpers.ts index 27ca9a159..a26de4706 100644 --- a/apps/nestjs-backend/src/utils/db-helpers.ts +++ b/apps/nestjs-backend/src/utils/db-helpers.ts @@ -1,4 +1,4 @@ -import { DriverClient } from '@teable-group/core'; +import { DriverClient } from '@teable/core'; import type { Knex } from 'knex'; import { get } from 'lodash'; diff --git a/apps/nestjs-backend/test/access-token.e2e-spec.ts b/apps/nestjs-backend/test/access-token.e2e-spec.ts index e4388c3ee..8b5183fa7 100644 --- a/apps/nestjs-backend/test/access-token.e2e-spec.ts +++ b/apps/nestjs-backend/test/access-token.e2e-spec.ts @@ -1,11 +1,7 @@ /* eslint-disable sonarjs/no-duplicate-string */ import type { INestApplication } from '@nestjs/common'; -import { SpaceRole, type ITableFullVo } from '@teable-group/core'; -import type { - CreateAccessTokenVo, - ICreateSpaceVo, - UpdateAccessTokenRo, -} from '@teable-group/openapi'; +import { SpaceRole, type ITableFullVo } from '@teable/core'; +import type { CreateAccessTokenVo, ICreateSpaceVo, UpdateAccessTokenRo } from '@teable/openapi'; import { createAccessToken, deleteAccessToken, @@ -23,7 +19,7 @@ import { DELETE_SPACE, createAxios, axios as defaultAxios, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import dayjs from 'dayjs'; import { createNewUserAxios } from './utils/axios-instance/new-user'; import { getError } from './utils/get-error'; diff --git a/apps/nestjs-backend/test/aggregation.e2e-spec.ts b/apps/nestjs-backend/test/aggregation.e2e-spec.ts index ce2636846..8b65bfcbb 100644 --- a/apps/nestjs-backend/test/aggregation.e2e-spec.ts +++ b/apps/nestjs-backend/test/aggregation.e2e-spec.ts @@ -1,6 +1,6 @@ import type { INestApplication } from '@nestjs/common'; -import type { ITableFullVo, StatisticsFunc } from '@teable-group/core'; -import { getAggregation, getRowCount } from '@teable-group/openapi'; +import type { ITableFullVo, StatisticsFunc } from '@teable/core'; +import { getAggregation, getRowCount } from '@teable/openapi'; import { x_20 } from './data-helpers/20x'; import { SIMPLE_AGGREGATION_CACES } from './data-helpers/caces'; import { createTable, deleteTable, initApp } from './utils/init-app'; diff --git a/apps/nestjs-backend/test/automation.e2e-spec.ts b/apps/nestjs-backend/test/automation.e2e-spec.ts index b345f5665..e8deb4c6b 100644 --- a/apps/nestjs-backend/test/automation.e2e-spec.ts +++ b/apps/nestjs-backend/test/automation.e2e-spec.ts @@ -1,5 +1,5 @@ import type { INestApplication } from '@nestjs/common'; -import type { IFieldVo } from '@teable-group/core'; +import type { IFieldVo } from '@teable/core'; import { FieldType, generateWorkflowActionId, @@ -8,8 +8,8 @@ import { generateWorkflowTriggerId, identify, IdPrefix, -} from '@teable-group/core'; -import { axios } from '@teable-group/openapi'; +} from '@teable/core'; +import { axios } from '@teable/openapi'; import { ActionTypeEnums } from '../src/features/automation/enums/action-type.enum'; import { TriggerTypeEnums } from '../src/features/automation/enums/trigger-type.enum'; import type { CreateWorkflowActionRo } from '../src/features/automation/model/create-workflow-action.ro'; diff --git a/apps/nestjs-backend/test/data-helpers/20x-link.ts b/apps/nestjs-backend/test/data-helpers/20x-link.ts index 18a827568..bde619762 100644 --- a/apps/nestjs-backend/test/data-helpers/20x-link.ts +++ b/apps/nestjs-backend/test/data-helpers/20x-link.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/naming-convention */ /* eslint-disable sonarjs/no-duplicate-string */ /* eslint-disable @typescript-eslint/no-explicit-any */ -import type { ITableFullVo } from '@teable-group/core'; -import { FieldType, NumberFormattingType, Relationship } from '@teable-group/core'; +import type { ITableFullVo } from '@teable/core'; +import { FieldType, NumberFormattingType, Relationship } from '@teable/core'; const textField = { name: 'text field', diff --git a/apps/nestjs-backend/test/data-helpers/20x.ts b/apps/nestjs-backend/test/data-helpers/20x.ts index ecc4b5f7d..5a3b1c415 100644 --- a/apps/nestjs-backend/test/data-helpers/20x.ts +++ b/apps/nestjs-backend/test/data-helpers/20x.ts @@ -7,7 +7,7 @@ import { FieldType, NumberFormattingType, TimeFormatting, -} from '@teable-group/core'; +} from '@teable/core'; const textField = { name: 'text field', diff --git a/apps/nestjs-backend/test/data-helpers/caces/aggregation-query/simple-aggregation.ts b/apps/nestjs-backend/test/data-helpers/caces/aggregation-query/simple-aggregation.ts index f456841d2..05dff6296 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/aggregation-query/simple-aggregation.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/aggregation-query/simple-aggregation.ts @@ -1,4 +1,4 @@ -import { StatisticsFunc } from '@teable-group/core'; +import { StatisticsFunc } from '@teable/core'; export const SIMPLE_AGGREGATION_CACES = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/checkbox-field.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/checkbox-field.ts index d18bb6b1c..946b5720a 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/checkbox-field.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/checkbox-field.ts @@ -1,4 +1,4 @@ -import { is } from '@teable-group/core'; +import { is } from '@teable/core'; export const CHECKBOX_FIELD_CASES = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/date-field.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/date-field.ts index 47e5464bf..2664cbad9 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/date-field.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/date-field.ts @@ -1,4 +1,4 @@ -import { isEmpty, isNotEmpty } from '@teable-group/core'; +import { isEmpty, isNotEmpty } from '@teable/core'; import { IS_AFTER_SETS } from './is-after-sets'; import { IS_BEFORE_SETS } from './is-before-sets'; import { IS_NOT_SETS } from './is-not-sets'; diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-after-sets.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-after-sets.ts index b0d708bb0..ea1c65ef2 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-after-sets.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-after-sets.ts @@ -11,7 +11,7 @@ import { today, tomorrow, yesterday, -} from '@teable-group/core'; +} from '@teable/core'; export const IS_AFTER_SETS = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-before-sets.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-before-sets.ts index 575776f24..1c56fb0d7 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-before-sets.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-before-sets.ts @@ -11,7 +11,7 @@ import { today, tomorrow, yesterday, -} from '@teable-group/core'; +} from '@teable/core'; export const IS_BEFORE_SETS = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-not-sets.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-not-sets.ts index d992575e0..70dfc8ef7 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-not-sets.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-not-sets.ts @@ -11,7 +11,7 @@ import { today, tomorrow, yesterday, -} from '@teable-group/core'; +} from '@teable/core'; export const IS_NOT_SETS = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-on-or-after-sets.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-on-or-after-sets.ts index e56a75d4a..2cf55c493 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-on-or-after-sets.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-on-or-after-sets.ts @@ -11,7 +11,7 @@ import { today, tomorrow, yesterday, -} from '@teable-group/core'; +} from '@teable/core'; export const IS_ON_OR_AFTER_SETS = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-on-or-before-sets.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-on-or-before-sets.ts index 09515583c..dc155fd73 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-on-or-before-sets.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-on-or-before-sets.ts @@ -11,7 +11,7 @@ import { today, tomorrow, yesterday, -} from '@teable-group/core'; +} from '@teable/core'; export const IS_ON_OR_BEFORE_SETS = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-sets.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-sets.ts index c9b5d206e..69f0f407d 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-sets.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-sets.ts @@ -11,7 +11,7 @@ import { today, tomorrow, yesterday, -} from '@teable-group/core'; +} from '@teable/core'; export const IS_SETS = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-with-in-sets.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-with-in-sets.ts index af0b80087..cca736576 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-with-in-sets.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/date-field/is-with-in-sets.ts @@ -9,7 +9,7 @@ import { pastNumberOfDays, pastWeek, pastYear, -} from '@teable-group/core'; +} from '@teable/core'; export const IS_WITH_IN_SETS = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/multiple-select-field.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/multiple-select-field.ts index 1684cb825..fd6a3c471 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/multiple-select-field.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/multiple-select-field.ts @@ -1,4 +1,4 @@ -import { hasAllOf, hasAnyOf, hasNoneOf, isEmpty, isExactly, isNotEmpty } from '@teable-group/core'; +import { hasAllOf, hasAnyOf, hasNoneOf, isEmpty, isExactly, isNotEmpty } from '@teable/core'; export const MULTIPLE_SELECT_FIELD_CASES = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/number-field.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/number-field.ts index 4a1823e8e..b2a2504ca 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/number-field.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/number-field.ts @@ -7,7 +7,7 @@ import { isLessEqual, isNot, isNotEmpty, -} from '@teable-group/core'; +} from '@teable/core'; export const NUMBER_FIELD_CASES = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/single-select-field.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/single-select-field.ts index ff07c18dc..5323df254 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/single-select-field.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/single-select-field.ts @@ -1,4 +1,4 @@ -import { is, isAnyOf, isEmpty, isNoneOf, isNot, isNotEmpty } from '@teable-group/core'; +import { is, isAnyOf, isEmpty, isNoneOf, isNot, isNotEmpty } from '@teable/core'; export const SINGLE_SELECT_FIELD_CASES = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/text-field.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/text-field.ts index 18a2c6b96..6732b2521 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/text-field.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/text-field.ts @@ -1,4 +1,4 @@ -import { contains, doesNotContain, is, isEmpty, isNot, isNotEmpty } from '@teable-group/core'; +import { contains, doesNotContain, is, isEmpty, isNot, isNotEmpty } from '@teable/core'; export const TEXT_FIELD_CASES = [ { diff --git a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/user-field.ts b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/user-field.ts index fe7589144..b9a63a76f 100644 --- a/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/user-field.ts +++ b/apps/nestjs-backend/test/data-helpers/caces/record-filter-query/user-field.ts @@ -10,7 +10,7 @@ import { isNot, isNotEmpty, Me, -} from '@teable-group/core'; +} from '@teable/core'; export const USER_FIELD_CASES = [ { diff --git a/apps/nestjs-backend/test/db-connection.e2e-spec.ts b/apps/nestjs-backend/test/db-connection.e2e-spec.ts index 9c989248c..1206ed7e1 100644 --- a/apps/nestjs-backend/test/db-connection.e2e-spec.ts +++ b/apps/nestjs-backend/test/db-connection.e2e-spec.ts @@ -1,11 +1,11 @@ import type { INestApplication } from '@nestjs/common'; -import { DriverClient } from '@teable-group/core'; -import type { IDbConnectionVo } from '@teable-group/openapi'; +import { DriverClient } from '@teable/core'; +import type { IDbConnectionVo } from '@teable/openapi'; import { createDbConnection as apiCreateDbConnection, deleteDbConnection as apiDeleteDbConnection, getDbConnection as apiGetDbConnection, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { initApp } from './utils/init-app'; describe.skip('OpenAPI Db Connection (e2e)', () => { diff --git a/apps/nestjs-backend/test/field-calculation.e2e-spec.ts b/apps/nestjs-backend/test/field-calculation.e2e-spec.ts index 7635f20ce..e793b0915 100644 --- a/apps/nestjs-backend/test/field-calculation.e2e-spec.ts +++ b/apps/nestjs-backend/test/field-calculation.e2e-spec.ts @@ -1,6 +1,6 @@ import type { INestApplication } from '@nestjs/common'; -import type { IFieldRo, IFieldVo, IRecordsVo } from '@teable-group/core'; -import { FieldType, NumberFormattingType } from '@teable-group/core'; +import type { IFieldRo, IFieldVo, IRecordsVo } from '@teable/core'; +import { FieldType, NumberFormattingType } from '@teable/core'; import { createField, createTable, diff --git a/apps/nestjs-backend/test/field-converting.e2e-spec.ts b/apps/nestjs-backend/test/field-converting.e2e-spec.ts index 090d9f185..8a619c5a9 100644 --- a/apps/nestjs-backend/test/field-converting.e2e-spec.ts +++ b/apps/nestjs-backend/test/field-converting.e2e-spec.ts @@ -8,7 +8,7 @@ import type { IRollupFieldOptions, ISelectFieldOptions, ITableFullVo, -} from '@teable-group/core'; +} from '@teable/core'; import { Relationship, TimeFormatting, @@ -23,7 +23,7 @@ import { SingleLineTextDisplayType, DateFormattingPreset, generateFieldId, -} from '@teable-group/core'; +} from '@teable/core'; import { getRecords, createField, diff --git a/apps/nestjs-backend/test/field-reference.e2e-spec.ts b/apps/nestjs-backend/test/field-reference.e2e-spec.ts index 13abb8beb..33cb1e865 100644 --- a/apps/nestjs-backend/test/field-reference.e2e-spec.ts +++ b/apps/nestjs-backend/test/field-reference.e2e-spec.ts @@ -1,6 +1,6 @@ import type { INestApplication } from '@nestjs/common'; -import type { IFieldRo } from '@teable-group/core'; -import { FieldType, Relationship } from '@teable-group/core'; +import type { IFieldRo } from '@teable/core'; +import { FieldType, Relationship } from '@teable/core'; import type { LinkFieldDto } from '../src/features/field/model/field-dto/link-field.dto'; import { createField, createTable, deleteTable, getField, initApp } from './utils/init-app'; diff --git a/apps/nestjs-backend/test/field.e2e-spec.ts b/apps/nestjs-backend/test/field.e2e-spec.ts index 0ddbcbdab..146269e12 100644 --- a/apps/nestjs-backend/test/field.e2e-spec.ts +++ b/apps/nestjs-backend/test/field.e2e-spec.ts @@ -7,7 +7,7 @@ import type { ILinkFieldOptionsRo, ILookupOptionsRo, ITableFullVo, -} from '@teable-group/core'; +} from '@teable/core'; import { DateFormattingPreset, FieldType, @@ -15,8 +15,8 @@ import { Relationship, SingleLineTextFieldCore, TimeFormatting, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import type { Knex } from 'knex'; import type { FieldCreateEvent } from '../src/event-emitter/events'; import { Events } from '../src/event-emitter/events'; diff --git a/apps/nestjs-backend/test/filter.e2e-spec.ts b/apps/nestjs-backend/test/filter.e2e-spec.ts index 8da22df57..e4673f61e 100644 --- a/apps/nestjs-backend/test/filter.e2e-spec.ts +++ b/apps/nestjs-backend/test/filter.e2e-spec.ts @@ -1,6 +1,6 @@ import type { INestApplication } from '@nestjs/common'; -import type { IFieldVo, IFilterRo } from '@teable-group/core'; -import { updateViewFilter as apiSetViewFilter } from '@teable-group/openapi'; +import type { IFieldVo, IFilterRo } from '@teable/core'; +import { updateViewFilter as apiSetViewFilter } from '@teable/openapi'; import { initApp, getView, createTable, deleteTable } from './utils/init-app'; let app: INestApplication; diff --git a/apps/nestjs-backend/test/formula.e2e-spec.ts b/apps/nestjs-backend/test/formula.e2e-spec.ts index 0a61ee659..3927b65e4 100644 --- a/apps/nestjs-backend/test/formula.e2e-spec.ts +++ b/apps/nestjs-backend/test/formula.e2e-spec.ts @@ -1,12 +1,12 @@ import type { INestApplication } from '@nestjs/common'; -import type { IFieldRo, ILinkFieldOptionsRo, ITableFullVo } from '@teable-group/core'; +import type { IFieldRo, ILinkFieldOptionsRo, ITableFullVo } from '@teable/core'; import { FieldKeyType, FieldType, generateFieldId, NumberFormattingType, Relationship, -} from '@teable-group/core'; +} from '@teable/core'; import { createField, createRecords, diff --git a/apps/nestjs-backend/test/graph.e2e-spec.ts b/apps/nestjs-backend/test/graph.e2e-spec.ts index d65c7cd9d..330fbd7a8 100644 --- a/apps/nestjs-backend/test/graph.e2e-spec.ts +++ b/apps/nestjs-backend/test/graph.e2e-spec.ts @@ -6,8 +6,8 @@ import { type IFieldRo, type ITableFullVo, FieldKeyType, -} from '@teable-group/core'; -import { planField, planFieldCreate, planFieldConvert, updateRecord } from '@teable-group/openapi'; +} from '@teable/core'; +import { planField, planFieldCreate, planFieldConvert, updateRecord } from '@teable/openapi'; import { createField, createTable, deleteTable, initApp } from './utils/init-app'; describe('OpenAPI Graph (e2e)', () => { diff --git a/apps/nestjs-backend/test/group.e2e-spec.ts b/apps/nestjs-backend/test/group.e2e-spec.ts index 11f81eb83..6c86ef19d 100644 --- a/apps/nestjs-backend/test/group.e2e-spec.ts +++ b/apps/nestjs-backend/test/group.e2e-spec.ts @@ -1,7 +1,7 @@ import type { INestApplication } from '@nestjs/common'; -import type { IFieldRo, IGetRecordsRo, IGroupItem, ITableFullVo } from '@teable-group/core'; -import { CellValueType, SortFunc } from '@teable-group/core'; -import { updateViewGroup, updateViewSort } from '@teable-group/openapi'; +import type { IFieldRo, IGetRecordsRo, IGroupItem, ITableFullVo } from '@teable/core'; +import { CellValueType, SortFunc } from '@teable/core'; +import { updateViewGroup, updateViewSort } from '@teable/openapi'; import { isEmpty, orderBy } from 'lodash'; import { x_20 } from './data-helpers/20x'; import { createTable, deleteTable, getRecords, getView, initApp } from './utils/init-app'; diff --git a/apps/nestjs-backend/test/invitation.e2e-spec.ts b/apps/nestjs-backend/test/invitation.e2e-spec.ts index d77a333ed..adaf6e988 100644 --- a/apps/nestjs-backend/test/invitation.e2e-spec.ts +++ b/apps/nestjs-backend/test/invitation.e2e-spec.ts @@ -1,13 +1,13 @@ import type { INestApplication } from '@nestjs/common'; -import { SpaceRole } from '@teable-group/core'; -import type { CreateSpaceInvitationLinkVo, ListSpaceCollaboratorVo } from '@teable-group/openapi'; +import { SpaceRole } from '@teable/core'; +import type { CreateSpaceInvitationLinkVo, ListSpaceCollaboratorVo } from '@teable/openapi'; import { ACCEPT_INVITATION_LINK, createSpace as apiCreateSpace, createSpaceInvitationLink as apiCreateSpaceInvitationLink, deleteSpace as apiDeleteSpace, getSpaceCollaboratorList as apiGetSpaceCollaboratorList, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import type { AxiosInstance } from 'axios'; import { createNewUserAxios } from './utils/axios-instance/new-user'; import { initApp } from './utils/init-app'; diff --git a/apps/nestjs-backend/test/link-api.e2e-spec.ts b/apps/nestjs-backend/test/link-api.e2e-spec.ts index 4122c93cf..a8f71c0b2 100644 --- a/apps/nestjs-backend/test/link-api.e2e-spec.ts +++ b/apps/nestjs-backend/test/link-api.e2e-spec.ts @@ -10,7 +10,7 @@ import type { ILookupOptionsVo, IRecord, ITableFullVo, -} from '@teable-group/core'; +} from '@teable/core'; import { FieldKeyType, FieldType, @@ -18,8 +18,8 @@ import { NumberFormattingType, RecordOpBuilder, Relationship, -} from '@teable-group/core'; -import { updateDbTableName } from '@teable-group/openapi'; +} from '@teable/core'; +import { updateDbTableName } from '@teable/openapi'; import type { Connection, Doc } from 'sharedb/lib/client'; import { ShareDbService } from '../src/share-db/share-db.service'; import { diff --git a/apps/nestjs-backend/test/link-socket.e2e-spec.ts b/apps/nestjs-backend/test/link-socket.e2e-spec.ts index 5f09e9c66..77bea299a 100644 --- a/apps/nestjs-backend/test/link-socket.e2e-spec.ts +++ b/apps/nestjs-backend/test/link-socket.e2e-spec.ts @@ -6,14 +6,14 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable sonarjs/no-duplicate-string */ import type { INestApplication } from '@nestjs/common'; -import type { IFieldRo, IRecord, ITableFullVo } from '@teable-group/core'; +import type { IFieldRo, IRecord, ITableFullVo } from '@teable/core'; import { RecordOpBuilder, IdPrefix, FieldType, Relationship, NumberFormattingType, -} from '@teable-group/core'; +} from '@teable/core'; import type { Doc } from 'sharedb/lib/client'; import { ShareDbService } from '../src/share-db/share-db.service'; import { diff --git a/apps/nestjs-backend/test/lookup.e2e-spec.ts b/apps/nestjs-backend/test/lookup.e2e-spec.ts index 2360697a0..de79592fe 100644 --- a/apps/nestjs-backend/test/lookup.e2e-spec.ts +++ b/apps/nestjs-backend/test/lookup.e2e-spec.ts @@ -9,15 +9,15 @@ import type { INumberFieldOptions, ITableFullVo, LinkFieldCore, -} from '@teable-group/core'; +} from '@teable/core'; import { Colors, FieldType, NumberFormattingType, Relationship, TimeFormatting, -} from '@teable-group/core'; -import { getGraph as apiGetGraph } from '@teable-group/openapi'; +} from '@teable/core'; +import { getGraph as apiGetGraph } from '@teable/openapi'; import { createField, deleteField, diff --git a/apps/nestjs-backend/test/record-filter-query.e2e-spec.ts b/apps/nestjs-backend/test/record-filter-query.e2e-spec.ts index 4de1b32d7..58d1c6f0a 100644 --- a/apps/nestjs-backend/test/record-filter-query.e2e-spec.ts +++ b/apps/nestjs-backend/test/record-filter-query.e2e-spec.ts @@ -2,9 +2,9 @@ /* eslint-disable sonarjs/no-duplicate-string */ /* eslint-disable sonarjs/cognitive-complexity */ import type { INestApplication } from '@nestjs/common'; -import type { IFilter, ITableFullVo } from '@teable-group/core'; -import { and, FieldKeyType } from '@teable-group/core'; -import { getRecords as apiGetRecords } from '@teable-group/openapi'; +import type { IFilter, ITableFullVo } from '@teable/core'; +import { and, FieldKeyType } from '@teable/core'; +import { getRecords as apiGetRecords } from '@teable/openapi'; import { x_20 } from './data-helpers/20x'; import { CHECKBOX_FIELD_CASES, diff --git a/apps/nestjs-backend/test/record-link-select-query.e2e-spec.ts b/apps/nestjs-backend/test/record-link-select-query.e2e-spec.ts index 40611809c..c844ec8a7 100644 --- a/apps/nestjs-backend/test/record-link-select-query.e2e-spec.ts +++ b/apps/nestjs-backend/test/record-link-select-query.e2e-spec.ts @@ -1,9 +1,9 @@ /* eslint-disable sonarjs/cognitive-complexity */ /* eslint-disable @typescript-eslint/naming-convention */ import type { INestApplication } from '@nestjs/common'; -import type { IFieldRo, IFieldVo, IGetRecordsRo, ITableFullVo } from '@teable-group/core'; -import { FieldKeyType, FieldType, NumberFormattingType, Relationship } from '@teable-group/core'; -import { getRowCount as apiGetRowCount } from '@teable-group/openapi'; +import type { IFieldRo, IFieldVo, IGetRecordsRo, ITableFullVo } from '@teable/core'; +import { FieldKeyType, FieldType, NumberFormattingType, Relationship } from '@teable/core'; +import { getRowCount as apiGetRowCount } from '@teable/openapi'; import { createField, createTable, diff --git a/apps/nestjs-backend/test/record.e2e-spec.ts b/apps/nestjs-backend/test/record.e2e-spec.ts index 30a4ef4fe..2bc0c71b1 100644 --- a/apps/nestjs-backend/test/record.e2e-spec.ts +++ b/apps/nestjs-backend/test/record.e2e-spec.ts @@ -1,7 +1,7 @@ /* eslint-disable sonarjs/no-duplicate-string */ import type { INestApplication } from '@nestjs/common'; -import type { IFieldRo, ISelectFieldOptions, ITableFullVo } from '@teable-group/core'; -import { CellFormat, FieldKeyType, FieldType, Relationship } from '@teable-group/core'; +import type { IFieldRo, ISelectFieldOptions, ITableFullVo } from '@teable/core'; +import { CellFormat, FieldKeyType, FieldType, Relationship } from '@teable/core'; import { createField, createRecords, diff --git a/apps/nestjs-backend/test/reference.e2e-spec.ts.bak b/apps/nestjs-backend/test/reference.e2e-spec.ts.bak index c06c02a80..34ac3181d 100644 --- a/apps/nestjs-backend/test/reference.e2e-spec.ts.bak +++ b/apps/nestjs-backend/test/reference.e2e-spec.ts.bak @@ -1,15 +1,15 @@ /* eslint-disable @typescript-eslint/naming-convention */ import type { TestingModule } from '@nestjs/testing'; import { Test } from '@nestjs/testing'; -import type { IRecord } from '@teable-group/core'; +import type { IRecord } from '@teable/core'; import { CellValueType, DbFieldType, FieldType, NumberFormattingType, Relationship, -} from '@teable-group/core'; -import { PrismaService } from '@teable-group/db-main-prisma'; +} from '@teable/core'; +import { PrismaService } from '@teable/db-main-prisma'; import type { Knex } from 'knex'; import { CalculationModule } from '../src/features/calculation/calculation.module'; import type { ITopoItemWithRecords } from '../src/features/calculation/reference.service'; diff --git a/apps/nestjs-backend/test/rollup.e2e-spec.ts b/apps/nestjs-backend/test/rollup.e2e-spec.ts index 43907c8c0..e983eae4f 100644 --- a/apps/nestjs-backend/test/rollup.e2e-spec.ts +++ b/apps/nestjs-backend/test/rollup.e2e-spec.ts @@ -9,7 +9,7 @@ import type { IRecord, ITableFullVo, LinkFieldCore, -} from '@teable-group/core'; +} from '@teable/core'; import { Colors, FieldKeyType, @@ -17,7 +17,7 @@ import { NumberFormattingType, Relationship, TimeFormatting, -} from '@teable-group/core'; +} from '@teable/core'; import { createField, createTable, diff --git a/apps/nestjs-backend/test/scheduled-computing.e2e-spec.ts b/apps/nestjs-backend/test/scheduled-computing.e2e-spec.ts index 4c32b7b31..48323a86d 100644 --- a/apps/nestjs-backend/test/scheduled-computing.e2e-spec.ts +++ b/apps/nestjs-backend/test/scheduled-computing.e2e-spec.ts @@ -1,7 +1,7 @@ /* eslint-disable sonarjs/no-duplicate-string */ import type { INestApplication } from '@nestjs/common'; -import { FieldKeyType, FieldType, type ITableFullVo } from '@teable-group/core'; -import { deleteTableArbitrary, getRecords } from '@teable-group/openapi'; +import { FieldKeyType, FieldType, type ITableFullVo } from '@teable/core'; +import { deleteTableArbitrary, getRecords } from '@teable/openapi'; import { initApp, createTable, createField, deleteField, convertField } from './utils/init-app'; import { seeding } from './utils/record-mock'; diff --git a/apps/nestjs-backend/test/selection.e2e-spec.ts b/apps/nestjs-backend/test/selection.e2e-spec.ts index e30346bfc..d057feec3 100644 --- a/apps/nestjs-backend/test/selection.e2e-spec.ts +++ b/apps/nestjs-backend/test/selection.e2e-spec.ts @@ -7,8 +7,8 @@ import { MultiNumberDisplayType, Relationship, defaultNumberFormatting, -} from '@teable-group/core'; -import type { IFieldRo, ITableFullVo } from '@teable-group/core'; +} from '@teable/core'; +import type { IFieldRo, ITableFullVo } from '@teable/core'; import { RangeType, IdReturnType, @@ -16,7 +16,7 @@ import { copy as apiCopy, paste as apiPaste, getFields, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { createField, getRecord, initApp, createTable, deleteTable } from './utils/init-app'; describe('OpenAPI SelectionController (e2e)', () => { diff --git a/apps/nestjs-backend/test/set-column-meta.e2e-spec.ts b/apps/nestjs-backend/test/set-column-meta.e2e-spec.ts index 27cfbe10e..4a4192b51 100644 --- a/apps/nestjs-backend/test/set-column-meta.e2e-spec.ts +++ b/apps/nestjs-backend/test/set-column-meta.e2e-spec.ts @@ -1,6 +1,6 @@ import type { INestApplication } from '@nestjs/common'; -import type { IFieldVo, ITableFullVo } from '@teable-group/core'; -import { StatisticsFunc } from '@teable-group/core'; +import type { IFieldVo, ITableFullVo } from '@teable/core'; +import { StatisticsFunc } from '@teable/core'; import { sortBy } from 'lodash'; import { initApp, diff --git a/apps/nestjs-backend/test/share-socket.e2e-spec.ts b/apps/nestjs-backend/test/share-socket.e2e-spec.ts index 367027291..fb91028cd 100644 --- a/apps/nestjs-backend/test/share-socket.e2e-spec.ts +++ b/apps/nestjs-backend/test/share-socket.e2e-spec.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { INestApplication } from '@nestjs/common'; -import { IdPrefix, ViewType } from '@teable-group/core'; -import { enableShareView as apiEnableShareView } from '@teable-group/openapi'; +import { IdPrefix, ViewType } from '@teable/core'; +import { enableShareView as apiEnableShareView } from '@teable/openapi'; import { map } from 'lodash'; import { logger, type Doc } from 'sharedb/lib/client'; import { vi } from 'vitest'; diff --git a/apps/nestjs-backend/test/share.e2e-spec.ts b/apps/nestjs-backend/test/share.e2e-spec.ts index 7086d0d73..173ddb1ac 100644 --- a/apps/nestjs-backend/test/share.e2e-spec.ts +++ b/apps/nestjs-backend/test/share.e2e-spec.ts @@ -1,6 +1,6 @@ import { type INestApplication } from '@nestjs/common'; -import type { IFieldRo, IRecord, ITableFullVo, IViewRo } from '@teable-group/core'; -import { ANONYMOUS_USER_ID, FieldType, Relationship, ViewType } from '@teable-group/core'; +import type { IFieldRo, IRecord, ITableFullVo, IViewRo } from '@teable/core'; +import { ANONYMOUS_USER_ID, FieldType, Relationship, ViewType } from '@teable/core'; import { enableShareView as apiEnableShareView, getShareViewLinkRecords as apiGetShareViewLinkRecords, @@ -9,7 +9,7 @@ import { SHARE_VIEW_GET, type ShareViewGetVo, urlBuilder, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { map } from 'lodash'; import { createAnonymousUserAxios } from './utils/axios-instance/anonymous-user'; import { diff --git a/apps/nestjs-backend/test/sort.e2e-spec.ts b/apps/nestjs-backend/test/sort.e2e-spec.ts index a3e1fbad3..a0e87992b 100644 --- a/apps/nestjs-backend/test/sort.e2e-spec.ts +++ b/apps/nestjs-backend/test/sort.e2e-spec.ts @@ -1,9 +1,9 @@ /* eslint-disable sonarjs/no-duplicate-string */ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { INestApplication } from '@nestjs/common'; -import type { IFieldRo, IGetRecordsRo, ISortItem, ITableFullVo } from '@teable-group/core'; -import { FieldType, CellValueType, SortFunc } from '@teable-group/core'; -import { updateViewSort as apiSetViewSort } from '@teable-group/openapi'; +import type { IFieldRo, IGetRecordsRo, ISortItem, ITableFullVo } from '@teable/core'; +import { FieldType, CellValueType, SortFunc } from '@teable/core'; +import { updateViewSort as apiSetViewSort } from '@teable/openapi'; import { isEmpty, orderBy } from 'lodash'; import type { SingleSelectOptionsDto } from '../src/features/field/model/field-dto/single-select-field.dto'; import { x_20 } from './data-helpers/20x'; diff --git a/apps/nestjs-backend/test/space.e2e-spec.ts b/apps/nestjs-backend/test/space.e2e-spec.ts index 1bcb10739..e4b30cf61 100644 --- a/apps/nestjs-backend/test/space.e2e-spec.ts +++ b/apps/nestjs-backend/test/space.e2e-spec.ts @@ -1,9 +1,9 @@ /* eslint-disable sonarjs/no-duplicate-string */ import type { INestApplication } from '@nestjs/common'; import { EventEmitter2 } from '@nestjs/event-emitter'; -import type { HttpError } from '@teable-group/core'; -import { IdPrefix, SpaceRole } from '@teable-group/core'; -import type { ListSpaceCollaboratorVo, ListSpaceInvitationLinkVo } from '@teable-group/openapi'; +import type { HttpError } from '@teable/core'; +import { IdPrefix, SpaceRole } from '@teable/core'; +import type { ListSpaceCollaboratorVo, ListSpaceInvitationLinkVo } from '@teable/openapi'; import { createSpace as apiCreateSpace, createSpaceInvitationLink as apiCreateSpaceInvitationLink, @@ -18,7 +18,7 @@ import { listSpaceInvitationLink as apiListSpaceInvitationLink, updateSpace as apiUpdateSpace, updateSpaceInvitationLink as apiUpdateSpaceInvitationLink, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { Events } from '../src/event-emitter/events'; import type { SpaceDeleteEvent, SpaceUpdateEvent } from '../src/event-emitter/events'; import { createNewUserAxios } from './utils/axios-instance/new-user'; diff --git a/apps/nestjs-backend/test/table.e2e-spec.ts b/apps/nestjs-backend/test/table.e2e-spec.ts index 965e83ef7..54f665c85 100644 --- a/apps/nestjs-backend/test/table.e2e-spec.ts +++ b/apps/nestjs-backend/test/table.e2e-spec.ts @@ -2,14 +2,14 @@ /* eslint-disable @typescript-eslint/naming-convention */ import type { INestApplication } from '@nestjs/common'; import { EventEmitter2 } from '@nestjs/event-emitter'; -import type { ICreateTableRo } from '@teable-group/core'; -import { FieldType, RowHeightLevel, ViewType } from '@teable-group/core'; +import type { ICreateTableRo } from '@teable/core'; +import { FieldType, RowHeightLevel, ViewType } from '@teable/core'; import { updateTableDescription, updateTableIcon, updateTableName, updateTableOrder, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { DB_PROVIDER_SYMBOL } from '../src/db-provider/db.provider'; import type { IDbProvider } from '../src/db-provider/db.provider.interface'; import { Events } from '../src/event-emitter/events'; diff --git a/apps/nestjs-backend/test/utils/axios-instance/anonymous-user.ts b/apps/nestjs-backend/test/utils/axios-instance/anonymous-user.ts index 857e9a792..b420753a7 100644 --- a/apps/nestjs-backend/test/utils/axios-instance/anonymous-user.ts +++ b/apps/nestjs-backend/test/utils/axios-instance/anonymous-user.ts @@ -1,4 +1,4 @@ -import { createAxios } from '@teable-group/openapi'; +import { createAxios } from '@teable/openapi'; export const createAnonymousUserAxios = (appUrl: string) => { const anonymousAxios = createAxios(); diff --git a/apps/nestjs-backend/test/utils/axios-instance/new-user.ts b/apps/nestjs-backend/test/utils/axios-instance/new-user.ts index 359e9f3ee..c0d09629f 100644 --- a/apps/nestjs-backend/test/utils/axios-instance/new-user.ts +++ b/apps/nestjs-backend/test/utils/axios-instance/new-user.ts @@ -1,4 +1,4 @@ -import { axios, SIGN_UP, createAxios, USER_ME, SIGN_IN } from '@teable-group/openapi'; +import { axios, SIGN_UP, createAxios, USER_ME, SIGN_IN } from '@teable/openapi'; export async function createNewUserAxios(user: { email: string; password: string }) { const signAxios = createAxios(); diff --git a/apps/nestjs-backend/test/utils/data.generator.ts b/apps/nestjs-backend/test/utils/data.generator.ts index 111d25f23..1db8b4f4e 100644 --- a/apps/nestjs-backend/test/utils/data.generator.ts +++ b/apps/nestjs-backend/test/utils/data.generator.ts @@ -1,6 +1,6 @@ import type { INestApplication } from '@nestjs/common'; -import type { IFieldRo, IFieldVo } from '@teable-group/core'; -import { FieldKeyType, FieldType } from '@teable-group/core'; +import type { IFieldRo, IFieldVo } from '@teable/core'; +import { FieldKeyType, FieldType } from '@teable/core'; import { cloneDeep } from 'lodash'; import { FIELD_MOCK_DATA } from './field-mock'; import { createTable, initApp, createRecords, createField, getFields } from './init-app'; diff --git a/apps/nestjs-backend/test/utils/field-mock.ts b/apps/nestjs-backend/test/utils/field-mock.ts index 3251615bd..9fd51556e 100644 --- a/apps/nestjs-backend/test/utils/field-mock.ts +++ b/apps/nestjs-backend/test/utils/field-mock.ts @@ -1,5 +1,5 @@ -import type { IFieldRo, INumberFieldOptions, ISelectFieldOptions } from '@teable-group/core'; -import { Colors, FieldType, NumberFormattingType } from '@teable-group/core'; +import type { IFieldRo, INumberFieldOptions, ISelectFieldOptions } from '@teable/core'; +import { Colors, FieldType, NumberFormattingType } from '@teable/core'; export const FIELD_MOCK_DATA: IFieldRo[] = [ { diff --git a/apps/nestjs-backend/test/utils/get-error.ts b/apps/nestjs-backend/test/utils/get-error.ts index ccf733baa..31443bbfa 100644 --- a/apps/nestjs-backend/test/utils/get-error.ts +++ b/apps/nestjs-backend/test/utils/get-error.ts @@ -1,4 +1,4 @@ -import type { HttpError } from '@teable-group/core'; +import type { HttpError } from '@teable/core'; export const getError = async (call: () => unknown) => { try { diff --git a/apps/nestjs-backend/test/utils/init-app.ts b/apps/nestjs-backend/test/utils/init-app.ts index 1203f2a98..8c6fbcb59 100644 --- a/apps/nestjs-backend/test/utils/init-app.ts +++ b/apps/nestjs-backend/test/utils/init-app.ts @@ -23,8 +23,8 @@ import type { ITableFullVo, IGetTableQuery, ITableVo, -} from '@teable-group/core'; -import { FieldKeyType } from '@teable-group/core'; +} from '@teable/core'; +import { FieldKeyType } from '@teable/core'; import { axios, signin as apiSignin, @@ -47,7 +47,7 @@ import { getTableById as apiGetTableById, updateViewFilter as apiSetViewFilter, createView as apiCreateView, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { json, urlencoded } from 'express'; import { AppModule } from '../../src/app.module'; import { SessionHandleService } from '../../src/features/auth/session/session-handle.service'; diff --git a/apps/nestjs-backend/test/utils/record-mock.ts b/apps/nestjs-backend/test/utils/record-mock.ts index 229eafb18..68e925dc4 100644 --- a/apps/nestjs-backend/test/utils/record-mock.ts +++ b/apps/nestjs-backend/test/utils/record-mock.ts @@ -1,8 +1,8 @@ import { faker } from '@faker-js/faker'; import type { Field, View } from '@prisma/client'; import { PrismaClient } from '@prisma/client'; -import type { IRatingFieldOptions, ISelectFieldOptions } from '@teable-group/core'; -import { parseDsn, IdPrefix, Colors, FieldType, generateRecordId } from '@teable-group/core'; +import type { IRatingFieldOptions, ISelectFieldOptions } from '@teable/core'; +import { parseDsn, IdPrefix, Colors, FieldType, generateRecordId } from '@teable/core'; import * as dotenv from 'dotenv-flow'; import Knex from 'knex'; import { chunk, flatten, groupBy } from 'lodash'; diff --git a/apps/nestjs-backend/test/view-option.e2e-spec.ts b/apps/nestjs-backend/test/view-option.e2e-spec.ts index 0e1371435..b8ff53ca9 100644 --- a/apps/nestjs-backend/test/view-option.e2e-spec.ts +++ b/apps/nestjs-backend/test/view-option.e2e-spec.ts @@ -1,7 +1,7 @@ import type { INestApplication } from '@nestjs/common'; -import type { IViewOptions, IGridView, IFormView } from '@teable-group/core'; -import { RowHeightLevel, ViewType } from '@teable-group/core'; -import { updateViewOptions as apiSetViewOption } from '@teable-group/openapi'; +import type { IViewOptions, IGridView, IFormView } from '@teable/core'; +import { RowHeightLevel, ViewType } from '@teable/core'; +import { updateViewOptions as apiSetViewOption } from '@teable/openapi'; import { initApp, getView, createTable, deleteTable } from './utils/init-app'; let app: INestApplication; diff --git a/apps/nestjs-backend/test/view-order.e2e-spec.ts b/apps/nestjs-backend/test/view-order.e2e-spec.ts index 631497762..4ee1908e2 100644 --- a/apps/nestjs-backend/test/view-order.e2e-spec.ts +++ b/apps/nestjs-backend/test/view-order.e2e-spec.ts @@ -1,6 +1,6 @@ import type { INestApplication } from '@nestjs/common'; -import { ViewType } from '@teable-group/core'; -import { updateViewOrder as apiSetViewOrder } from '@teable-group/openapi'; +import { ViewType } from '@teable/core'; +import { updateViewOrder as apiSetViewOrder } from '@teable/openapi'; import { initApp, createTable, deleteTable, getViews } from './utils/init-app'; let app: INestApplication; diff --git a/apps/nestjs-backend/test/view.e2e-spec.ts b/apps/nestjs-backend/test/view.e2e-spec.ts index 39b6f809f..bf8424c78 100644 --- a/apps/nestjs-backend/test/view.e2e-spec.ts +++ b/apps/nestjs-backend/test/view.e2e-spec.ts @@ -1,8 +1,8 @@ /* eslint-disable sonarjs/no-duplicate-string */ import type { INestApplication } from '@nestjs/common'; -import type { IColumn, IFieldVo, ITableFullVo, IViewRo } from '@teable-group/core'; -import { FieldType, ViewType } from '@teable-group/core'; -import { updateViewDescription, updateViewName } from '@teable-group/openapi'; +import type { IColumn, IFieldVo, ITableFullVo, IViewRo } from '@teable/core'; +import { FieldType, ViewType } from '@teable/core'; +import { updateViewDescription, updateViewName } from '@teable/openapi'; import { createField, getFields, diff --git a/apps/nestjs-backend/tsconfig.json b/apps/nestjs-backend/tsconfig.json index 67857cd8c..5aef7e96c 100644 --- a/apps/nestjs-backend/tsconfig.json +++ b/apps/nestjs-backend/tsconfig.json @@ -14,11 +14,11 @@ "allowJs": false, "outDir": "./dist", "paths": { - "@teable-group/core": ["../../packages/core/src"], - "@teable-group/openapi": ["../../packages/openapi/src"], - "@teable-group/db-main-prisma": ["../../packages/db-main-prisma/src"] + "@teable/core": ["../../packages/core/src"], + "@teable/openapi": ["../../packages/openapi/src"], + "@teable/db-main-prisma": ["../../packages/db-main-prisma/src"], }, - "types": ["vitest/globals"] + "types": ["vitest/globals"], }, - "exclude": ["**/node_modules", "**/.*/", "dist"] + "exclude": ["**/node_modules", "**/.*/", "dist"], } diff --git a/apps/nestjs-backend/vitest-e2e.setup.ts b/apps/nestjs-backend/vitest-e2e.setup.ts index 2559281a7..da6c37faa 100644 --- a/apps/nestjs-backend/vitest-e2e.setup.ts +++ b/apps/nestjs-backend/vitest-e2e.setup.ts @@ -1,6 +1,6 @@ import fs from 'fs'; import path from 'path'; -import { DriverClient, getRandomString, parseDsn } from '@teable-group/core'; +import { DriverClient, getRandomString, parseDsn } from '@teable/core'; import dotenv from 'dotenv-flow'; interface ITestConfig { diff --git a/apps/nestjs-backend/webpack.dev.js b/apps/nestjs-backend/webpack.dev.js index 17aef696d..b30c88fde 100644 --- a/apps/nestjs-backend/webpack.dev.js +++ b/apps/nestjs-backend/webpack.dev.js @@ -10,7 +10,7 @@ module.exports = function (options, webpack) { devtool: 'source-map', externals: [ nodeExternals({ - allowlist: ['webpack/hot/poll?100', /^@teable-group/], + allowlist: ['webpack/hot/poll?100', /^@teable/], }), ], // ignore tests hot reload diff --git a/apps/nextjs-app/.eslintrc.js b/apps/nextjs-app/.eslintrc.js index 9f5f8719a..f0eaa1f9d 100644 --- a/apps/nextjs-app/.eslintrc.js +++ b/apps/nextjs-app/.eslintrc.js @@ -1,12 +1,12 @@ /** * Specific eslint rules for this app/package, extends the base rules - * @see https://github.com/teable-group/teable/blob/main/docs/about-linters.md + * @see https://github.com/teableio/teable/blob/main/docs/about-linters.md */ // Workaround for https://github.com/eslint/eslint/issues/3458 (re-export of @rushstack/eslint-patch) -require('@teable-group/eslint-config-bases/patch/modern-module-resolution'); +require('@teable/eslint-config-bases/patch/modern-module-resolution'); -const { getDefaultIgnorePatterns } = require('@teable-group/eslint-config-bases/helpers'); +const { getDefaultIgnorePatterns } = require('@teable/eslint-config-bases/helpers'); module.exports = { root: true, @@ -23,17 +23,17 @@ module.exports = { 'tailwind.shadcnui.config.js', ], extends: [ - '@teable-group/eslint-config-bases/typescript', - '@teable-group/eslint-config-bases/sonar', - '@teable-group/eslint-config-bases/regexp', - '@teable-group/eslint-config-bases/jest', - '@teable-group/eslint-config-bases/react', - '@teable-group/eslint-config-bases/tailwind', - '@teable-group/eslint-config-bases/rtl', + '@teable/eslint-config-bases/typescript', + '@teable/eslint-config-bases/sonar', + '@teable/eslint-config-bases/regexp', + '@teable/eslint-config-bases/jest', + '@teable/eslint-config-bases/react', + '@teable/eslint-config-bases/tailwind', + '@teable/eslint-config-bases/rtl', // Add specific rules for nextjs 'plugin:@next/next/core-web-vitals', // Apply prettier and disable incompatible rules - '@teable-group/eslint-config-bases/prettier-plugin', + '@teable/eslint-config-bases/prettier-plugin', ], rules: { '@typescript-eslint/naming-convention': 'off', diff --git a/apps/nextjs-app/CHANGELOG.md b/apps/nextjs-app/CHANGELOG.md index 5ea2f1eca..6f4f78dc4 100644 --- a/apps/nextjs-app/CHANGELOG.md +++ b/apps/nextjs-app/CHANGELOG.md @@ -1,836 +1 @@ # nextjs-app - -## 3.55.0 - -### Minor Changes - -- [#2739](https://github.com/teable-group/teable/pull/2739) [`b7182753`](https://github.com/teable-group/teable/commit/b71827533118907feb6bc30b95bae8c5c969d9c2) Thanks [@belgattitude](https://github.com/belgattitude)! - Add flamegraph command to debug performance issue on homepage - - ``` - npm i --global autocannon - cd ./apps/nextjs-app - yarn flamegraph-home - ``` - - Example output: - - ``` - ┌─────────┬───────┬───────┬───────┬───────┬──────────┬───────────┬─────────┐ - │ Stat │ 2.5% │ 50% │ 97.5% │ 99% │ Avg │ Stdev │ Max │ - ├─────────┼───────┼───────┼───────┼───────┼──────────┼───────────┼─────────┤ - │ Latency │ 11 ms │ 15 ms │ 46 ms │ 82 ms │ 35.46 ms │ 276.28 ms │ 4632 ms │ - └─────────┴───────┴───────┴───────┴───────┴──────────┴───────────┴─────────┘ - ┌───────────┬─────┬──────┬─────┬─────────┬─────────┬────────┬─────────┐ - │ Stat │ 1% │ 2.5% │ 50% │ 97.5% │ Avg │ Stdev │ Min │ - ├───────────┼─────┼──────┼─────┼─────────┼─────────┼────────┼─────────┤ - │ Req/Sec │ 0 │ 0 │ 0 │ 669 │ 139.06 │ 232.54 │ 148 │ - ├───────────┼─────┼──────┼─────┼─────────┼─────────┼────────┼─────────┤ - │ Bytes/Sec │ 0 B │ 0 B │ 0 B │ 14.1 MB │ 2.93 MB │ 4.9 MB │ 3.12 MB │ - └───────────┴─────┴──────┴─────┴─────────┴─────────┴────────┴─────────┘ - - Req/Bytes counts sampled once per second. - # of samples: 20 - - 3k requests in 20.04s, 58.6 MB read - ``` - - Open the visual flamegraph from the provided url. - -### Patch Changes - -- [#2740](https://github.com/teable-group/teable/pull/2740) [`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9) Thanks [@belgattitude](https://github.com/belgattitude)! - Changesets: by default will tag and version private packages - - Doc: https://github.com/changesets/changesets/blob/main/docs/versioning-apps.md - Ref: [changesets@2.25.0](https://github.com/changesets/changesets/releases/tag/%40changesets%2Fcli%402.25.0) & [#662](https://github.com/changesets/changesets/pull/662). - -- Updated dependencies [[`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9)]: - - @teable-group/api-gateway@1.2.2 - - @teable-group/common-i18n@1.2.1 - - @teable-group/sdk@3.15.1 - - @teable-group/db-main-prisma@2.12.2 - - @teable-group/core@1.1.1 - - @teable-group/ui-lib@3.15.1 - -## 3.54.0 - -### Minor Changes - -- [#2713](https://github.com/teable-group/teable/pull/2713) [`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0) Thanks [@belgattitude](https://github.com/belgattitude)! - Move typescript utils to @teable-group/core - -### Patch Changes - -- Updated dependencies [[`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0), [`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0)]: - - @teable-group/sdk@3.15.0 - - @teable-group/core@1.1.0 - - @teable-group/ui-lib@3.15.0 - -## 3.53.0 - -### Minor Changes - -- [#2622](https://github.com/teable-group/teable/pull/2622) [`f2339d6e`](https://github.com/teable-group/teable/commit/f2339d6e62d844a1267c416d09110198e4f2af59) Thanks [@belgattitude](https://github.com/belgattitude)! - Add example with next-auth, go to /auth/login and /admin (user: admin, pass: demo) - -### Patch Changes - -- Updated dependencies [[`f2339d6e`](https://github.com/teable-group/teable/commit/f2339d6e62d844a1267c416d09110198e4f2af59)]: - - @teable-group/common-i18n@1.2.0 - -## 3.52.3 - -### Patch Changes - -- [#2611](https://github.com/teable-group/teable/pull/2611) [`de010ed2`](https://github.com/teable-group/teable/commit/de010ed28f21443bb1e1dbeea6c3c935a83365b3) Thanks [@belgattitude](https://github.com/belgattitude)! - Example with nextjs config in mjs (next.config.mjs) - -- Updated dependencies []: - - @teable-group/api-gateway@1.2.1 - - @teable-group/common-i18n@1.1.1 - - @teable-group/sdk@3.14.2 - - @teable-group/db-main-prisma@2.12.1 - - @teable-group/ui-lib@3.14.5 - -## 3.52.2 - -### Patch Changes - -- [#2602](https://github.com/teable-group/teable/pull/2602) [`2fc498cc`](https://github.com/teable-group/teable/commit/2fc498cc928c9a577fa4c4a0112f910e0c24f176) Thanks [@belgattitude](https://github.com/belgattitude)! - Move from @tsed/exceptions to @belgattitude/http-exception - - See https://github.com/belgattitude/http-exception - -- Updated dependencies [[`2fc498cc`](https://github.com/teable-group/teable/commit/2fc498cc928c9a577fa4c4a0112f910e0c24f176)]: - - @teable-group/sdk@3.14.2 - - @teable-group/ui-lib@3.14.4 - -## 3.52.1 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/api-gateway@1.2.1 - - @teable-group/common-i18n@1.1.1 - - @teable-group/sdk@3.14.1 - - @teable-group/db-main-prisma@2.12.1 - - @teable-group/ui-lib@3.14.3 - -## 3.52.0 - -### Minor Changes - -- [#2222](https://github.com/teable-group/teable/pull/2222) [`4ca97be`](https://github.com/teable-group/teable/commit/4ca97becf32c0f8bdb990ab8d6b8c8990d42fe17) Thanks [@belgattitude](https://github.com/belgattitude)! - Example with graceful shutdown - -## 3.51.1 - -### Patch Changes - -- [#2214](https://github.com/teable-group/teable/pull/2214) [`62818ba`](https://github.com/teable-group/teable/commit/62818badff67ce032a209fe9217c319271833ddc) Thanks [@belgattitude](https://github.com/belgattitude)! - Speedup and clean yarn install on CI - -- Updated dependencies [[`62818ba`](https://github.com/teable-group/teable/commit/62818badff67ce032a209fe9217c319271833ddc)]: - - @teable-group/db-main-prisma@2.12.1 - - @teable-group/api-gateway@1.2.1 - - @teable-group/common-i18n@1.1.1 - - @teable-group/sdk@3.14.1 - - @teable-group/ui-lib@3.14.2 - -## 3.51.0 - -### Minor Changes - -- [#2189](https://github.com/teable-group/teable/pull/2189) [`9d43ef2`](https://github.com/teable-group/teable/commit/9d43ef26c4385bed2010aff563807a6b4088f37c) Thanks [@belgattitude](https://github.com/belgattitude)! - Example of CSP configuration - -## 3.50.0 - -### Minor Changes - -- [#2187](https://github.com/teable-group/teable/pull/2187) [`d6efad3`](https://github.com/teable-group/teable/commit/d6efad3c967b65dd74e8df3898f95c847fb2515c) Thanks [@belgattitude](https://github.com/belgattitude)! - Enable SWC compiler - -## 3.49.3 - -### Patch Changes - -- Updated dependencies [[`0279cc2`](https://github.com/teable-group/teable/commit/0279cc2598c0ffbc83219dda893e303a38af6bfd)]: - - @teable-group/db-main-prisma@2.12.0 - - @teable-group/api-gateway@1.2.0 - - @teable-group/common-i18n@1.1.0 - - @teable-group/sdk@3.14.0 - - @teable-group/ui-lib@3.14.1 - -## 3.49.2 - -### Patch Changes - -- Updated dependencies [[`31ac0da`](https://github.com/teable-group/teable/commit/31ac0da08875ece918777fa54379e7b2e4c4286f)]: - - @teable-group/ui-lib@3.14.0 - -## 3.49.1 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/api-gateway@1.2.0 - - @teable-group/common-i18n@1.1.0 - - @teable-group/sdk@3.14.0 - - @teable-group/db-main-prisma@2.11.0 - - @teable-group/ui-lib@3.13.1 - -## 3.49.0 - -### Minor Changes - -- [#1876](https://github.com/teable-group/teable/pull/1876) [`5ad462a`](https://github.com/teable-group/teable/commit/5ad462a9a621564366c7a0ef0a77899fc855de85) Thanks [@belgattitude](https://github.com/belgattitude)! - Enable eslint global cache - -### Patch Changes - -- Updated dependencies [[`5ad462a`](https://github.com/teable-group/teable/commit/5ad462a9a621564366c7a0ef0a77899fc855de85)]: - - @teable-group/api-gateway@1.2.0 - - @teable-group/common-i18n@1.1.0 - - @teable-group/sdk@3.14.0 - - @teable-group/db-main-prisma@2.11.0 - - @teable-group/ui-lib@3.13.0 - -## 3.48.0 - -### Minor Changes - -- [#1846](https://github.com/teable-group/teable/pull/1846) [`f3b8320`](https://github.com/teable-group/teable/commit/f3b832052a47c7b508892d3bb5b5546b4b61816d) Thanks [@belgattitude](https://github.com/belgattitude)! - Example using vitest/happy-dom instead of jest - - Current basic unit test suite went from +/-12s to +/-5s on github action. - -## 3.47.1 - -### Patch Changes - -- [#1843](https://github.com/teable-group/teable/pull/1843) [`9804111`](https://github.com/teable-group/teable/commit/98041113ca05d96142b751b8d86aa2c54f06db10) Thanks [@belgattitude](https://github.com/belgattitude)! - Rename package graphql-mesh to api-gateway - -- Updated dependencies [[`9804111`](https://github.com/teable-group/teable/commit/98041113ca05d96142b751b8d86aa2c54f06db10)]: - - @teable-group/api-gateway@1.1.1 - -## 3.47.0 - -### Minor Changes - -- [#1780](https://github.com/teable-group/teable/pull/1780) [`3d3863a`](https://github.com/teable-group/teable/commit/3d3863a06715cfda9f9d25ac7676889a3c22bc2e) Thanks [@belgattitude](https://github.com/belgattitude)! - Example of graphql gateway (mesh) - -### Patch Changes - -- Updated dependencies [[`3d3863a`](https://github.com/teable-group/teable/commit/3d3863a06715cfda9f9d25ac7676889a3c22bc2e)]: - - @teable-group/graphql-mesh@1.1.0 - -## 3.46.0 - -### Minor Changes - -- [#1741](https://github.com/teable-group/teable/pull/1741) [`70a76e7`](https://github.com/teable-group/teable/commit/70a76e747a425a0c975a8f80249421470efec0ce) Thanks [@belgattitude](https://github.com/belgattitude)! - Use emotion native ssr critical extraction - - Since React 18, latest nextjs and emotion the critical path extraction - works out of the box. No flash of unstyled content anymore. Removes the - double rendering too, expect better lighthouse and initial page rendering - (to be measured). - -## 3.45.0 - -### Minor Changes - -- [#1727](https://github.com/teable-group/teable/pull/1727) [`a844907`](https://github.com/teable-group/teable/commit/a8449073efa6d1311ab9c51f9cacd451fafff3f4) Thanks [@belgattitude](https://github.com/belgattitude)! - Example and howto consume shared locales from @teable-group/common-i18n - -### Patch Changes - -- Updated dependencies [[`a844907`](https://github.com/teable-group/teable/commit/a8449073efa6d1311ab9c51f9cacd451fafff3f4)]: - - @teable-group/common-i18n@1.0.0 - -## 3.44.2 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/sdk@3.13.0 - - @teable-group/db-main-prisma@2.10.0 - - @teable-group/ui-lib@3.12.2 - -## 3.44.1 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/sdk@3.13.0 - - @teable-group/db-main-prisma@2.10.0 - - @teable-group/ui-lib@3.12.1 - -## 3.44.0 - -### Minor Changes - -- [#1656](https://github.com/teable-group/teable/pull/1656) [`9f2c2d0`](https://github.com/teable-group/teable/commit/9f2c2d049cfb87a3023a38b096f07f998862e3f6) Thanks [@belgattitude](https://github.com/belgattitude)! - Improved linter configs - -### Patch Changes - -- Updated dependencies [[`9f2c2d0`](https://github.com/teable-group/teable/commit/9f2c2d049cfb87a3023a38b096f07f998862e3f6)]: - - @teable-group/sdk@3.13.0 - - @teable-group/db-main-prisma@2.10.0 - - @teable-group/ui-lib@3.12.0 - -## 3.43.2 - -### Patch Changes - -- [#1649](https://github.com/teable-group/teable/pull/1649) [`113d338`](https://github.com/teable-group/teable/commit/113d338172d5f7c7e1c0a7adcca1354d18bad016) Thanks [@belgattitude](https://github.com/belgattitude)! - Rename web-app into nextjs-app - -## 3.43.1 - -### Patch Changes - -- Updated dependencies [[`ee0a3db`](https://github.com/teable-group/teable/commit/ee0a3dbd664c33d7149302ae3f776951dbd50492)]: - - @teable-group/sdk@3.12.0 - - @teable-group/db-main-prisma@2.9.0 - - @teable-group/ui-lib@3.11.0 - -## 3.43.0 - -### Minor Changes - -- [#1409](https://github.com/teable-group/teable/pull/1409) [`16121b8`](https://github.com/teable-group/teable/commit/16121b87b964aad903dab3deebae9827a79b54b2) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated to use @sentry/nextjs rather than @sentry/\*. Added monitoring routes. - -## 3.42.0 - -### Minor Changes - -- [#1421](https://github.com/teable-group/teable/pull/1421) [`1826dcc`](https://github.com/teable-group/teable/commit/1826dcc42d1a46c7cdd4a4c7a396773f5188d7fe) Thanks [@belgattitude](https://github.com/belgattitude)! - Added example to build web-app on CI - -### Patch Changes - -- [#1421](https://github.com/teable-group/teable/pull/1421) [`1826dcc`](https://github.com/teable-group/teable/commit/1826dcc42d1a46c7cdd4a4c7a396773f5188d7fe) Thanks [@belgattitude](https://github.com/belgattitude)! - Small docker fix for setting user and group on latest alpine - -## 3.41.0 - -### Minor Changes - -- [#1383](https://github.com/teable-group/teable/pull/1383) [`9e4d041`](https://github.com/teable-group/teable/commit/9e4d0414f87bf54e8630233740e843489212a93c) Thanks [@belgattitude](https://github.com/belgattitude)! - With React 18 - -### Patch Changes - -- [#1383](https://github.com/teable-group/teable/pull/1383) [`9e4d041`](https://github.com/teable-group/teable/commit/9e4d0414f87bf54e8630233740e843489212a93c) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated nextjs.config with links - -## 3.40.0 - -### Minor Changes - -- [#1347](https://github.com/teable-group/teable/pull/1347) [`82e77f7c`](https://github.com/teable-group/teable/commit/82e77f7ce8a8fda3db16796685c817cb142114bb) Thanks [@belgattitude](https://github.com/belgattitude)! - Use and enforce workspace:^ protocol rather than workspace:\* - -### Patch Changes - -- Updated dependencies [[`e269ada4`](https://github.com/teable-group/teable/commit/e269ada479151a243128612278bc0d5642e6db04), [`82e77f7c`](https://github.com/teable-group/teable/commit/82e77f7ce8a8fda3db16796685c817cb142114bb)]: - - @teable-group/ui-lib@3.10.0 - -## 3.39.0 - -### Minor Changes - -- [#1341](https://github.com/teable-group/teable/pull/1341) [`e23bdf2c`](https://github.com/teable-group/teable/commit/e23bdf2c96ff65a8ce946a03eeaac97d3ac991aa) Thanks [@belgattitude](https://github.com/belgattitude)! - Add es-check to ensure produced build files passes ecmascript - -* [#1341](https://github.com/teable-group/teable/pull/1341) [`05291de7`](https://github.com/teable-group/teable/commit/05291de7deeed720e8b7271d339050116b448177) Thanks [@belgattitude](https://github.com/belgattitude)! - Refactor scripts identifiers defined in package.json. Restrict usage of ':' in apps and packages - -### Patch Changes - -- Updated dependencies [[`05291de7`](https://github.com/teable-group/teable/commit/05291de7deeed720e8b7271d339050116b448177)]: - - @teable-group/sdk@3.11.0 - - @teable-group/db-main-prisma@2.8.0 - - @teable-group/ui-lib@3.9.0 - -## 3.38.2 - -### Patch Changes - -- Updated dependencies [[`50e79d76`](https://github.com/teable-group/teable/commit/50e79d7659a13a0715e864c5b4aff3bf999afcfe)]: - - @teable-group/sdk@3.10.0 - -## 3.38.1 - -### Patch Changes - -- [#1104](https://github.com/teable-group/teable/pull/1104) [`73d03354`](https://github.com/teable-group/teable/commit/73d0335454487812b78b65a4f17efe79a022fb53) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency type-fest to v2.9.0 - -- Updated dependencies [[`43fd9647`](https://github.com/teable-group/teable/commit/43fd964796af951d1cfff78592330bc2fa231b75)]: - - @teable-group/ui-lib@3.8.1 - -## 3.38.0 - -### Minor Changes - -- [#508](https://github.com/teable-group/teable/pull/508) [`cb336eca`](https://github.com/teable-group/teable/commit/cb336eca54004d6117d004820c95055ffc655f3e) Thanks [@belgattitude](https://github.com/belgattitude)! - Improved docker example - -## 3.37.0 - -### Minor Changes - -- [#975](https://github.com/teable-group/teable/pull/975) [`17582dd0`](https://github.com/teable-group/teable/commit/17582dd09d1176311a2f2c8fd94bebaaf31fc0cf) Thanks [@belgattitude](https://github.com/belgattitude)! - Upgrade to tailwind V3 - -## 3.36.0 - -### Minor Changes - -- [#963](https://github.com/teable-group/teable/pull/963) [`5e25fab2`](https://github.com/teable-group/teable/commit/5e25fab2f0d620e999f536a1fb8e0ef45d56fd64) Thanks [@belgattitude](https://github.com/belgattitude)! - Upgraded to react 18.0.0-rc.0 - -### Patch Changes - -- Updated dependencies [[`5e25fab2`](https://github.com/teable-group/teable/commit/5e25fab2f0d620e999f536a1fb8e0ef45d56fd64)]: - - @teable-group/sdk@3.9.0 - - @teable-group/ui-lib@3.8.0 - -## 3.35.1 - -### Patch Changes - -- Updated dependencies [[`cfcab664`](https://github.com/teable-group/teable/commit/cfcab66479a8b28468f67748abb559c4eb2fb10a)]: - - @teable-group/ui-lib@3.7.0 - -## 3.35.0 - -### Minor Changes - -- [#890](https://github.com/teable-group/teable/pull/890) [`4e16294`](https://github.com/teable-group/teable/commit/4e1629403e4de5e847e27bb11cc81a0eac9165c5) Thanks [@belgattitude](https://github.com/belgattitude)! - E2E test example with playwright + github action - -## 3.34.1 - -### Patch Changes - -- Updated dependencies [[`fcd68ed`](https://github.com/teable-group/teable/commit/fcd68ed476734fefda85f5ffa2cf82cbd1502aa6)]: - - @teable-group/sdk@3.8.1 - - @teable-group/ui-lib@3.6.1 - -## 3.34.0 - -### Minor Changes - -- [#614](https://github.com/teable-group/teable/pull/614) [`b36771c`](https://github.com/teable-group/teable/commit/b36771cd573f3a0805eee97d8e2bffb079915bf9) Thanks [@belgattitude](https://github.com/belgattitude)! - Example of favicons - -## 3.33.2 - -### Patch Changes - -- [#593](https://github.com/teable-group/teable/pull/593) [`7622030`](https://github.com/teable-group/teable/commit/7622030785a60e6ee203db68b5b3e22373839840) Thanks [@belgattitude](https://github.com/belgattitude)! - Prevent installation of both v20 & v21 of i18next - -## 3.33.1 - -### Patch Changes - -- Updated dependencies [[`bbc1a8f`](https://github.com/teable-group/teable/commit/bbc1a8f07500d13ddf3e86f2cb4111f4f22ddb11)]: - - @teable-group/db-main-prisma@2.7.0 - -## 3.33.0 - -### Minor Changes - -- [#580](https://github.com/teable-group/teable/pull/580) [`fe262d0`](https://github.com/teable-group/teable/commit/fe262d011845ac4d9471b3334b4bd387d96b2e87) Thanks [@belgattitude](https://github.com/belgattitude)! - Optimize svg with svgo by default when building the apps - -## 3.32.0 - -### Minor Changes - -- [#538](https://github.com/teable-group/teable/pull/538) [`186e7d6`](https://github.com/teable-group/teable/commit/186e7d674b4e93d0e7067b2e80af7b98d52c42e2) Thanks [@belgattitude](https://github.com/belgattitude)! - Add example of mui / tailwind shared theme spec - -## 3.31.0 - -### Minor Changes - -- [#553](https://github.com/teable-group/teable/pull/553) [`77e758b`](https://github.com/teable-group/teable/commit/77e758bbed1bc4f13b99cdd0ed90fa11fde9518f) Thanks [@belgattitude](https://github.com/belgattitude)! - Add eslint-plugin-regexp - -### Patch Changes - -- Updated dependencies [[`77e758b`](https://github.com/teable-group/teable/commit/77e758bbed1bc4f13b99cdd0ed90fa11fde9518f)]: - - @teable-group/sdk@3.8.0 - - @teable-group/db-main-prisma@2.6.0 - - @teable-group/ui-lib@3.6.0 - -## 3.30.0 - -### Minor Changes - -- [#551](https://github.com/teable-group/teable/pull/551) [`a93c0b7`](https://github.com/teable-group/teable/commit/a93c0b76875073cb27ed76f31f793e2cbf4af107) Thanks [@belgattitude](https://github.com/belgattitude)! - Add eslint-plugin-tailwindcss to help consistency - -## 3.29.0 - -### Minor Changes - -- [#494](https://github.com/teable-group/teable/pull/494) [`6360483`](https://github.com/teable-group/teable/commit/63604839a2b8a2caac59e461d533100b5f9146aa) Thanks [@belgattitude](https://github.com/belgattitude)! - Import locally installed fonts rather than google hosted ones, thx fontsource.org - -## 3.28.0 - -### Minor Changes - -- [#439](https://github.com/teable-group/teable/pull/439) [`2f26167`](https://github.com/teable-group/teable/commit/2f2616760b024bb887d52f200d0943e57da69f61) Thanks [@belgattitude](https://github.com/belgattitude)! - Basic example for material-ui v5.0.0 and critical path extraction (emotion) - -## 3.27.0 - -### Minor Changes - -- [#438](https://github.com/teable-group/teable/pull/438) [`6b78e59`](https://github.com/teable-group/teable/commit/6b78e59e4933814e69c26c86743a5b003c92dc2a) Thanks [@belgattitude](https://github.com/belgattitude)! - Eslint performance by not running test plugins over regular code - -### Patch Changes - -- Updated dependencies [[`6b78e59`](https://github.com/teable-group/teable/commit/6b78e59e4933814e69c26c86743a5b003c92dc2a)]: - - @teable-group/sdk@3.7.0 - - @teable-group/ui-lib@3.5.0 - - @teable-group/db-main-prisma@2.5.0 - -## 3.26.3 - -### Patch Changes - -- Updated dependencies [[`dd239d6`](https://github.com/teable-group/teable/commit/dd239d63d99fdbf23150faf776f8c4be4dcf6e20)]: - - @teable-group/db-main-prisma@2.4.0 - -## 3.26.2 - -### Patch Changes - -- [#356](https://github.com/teable-group/teable/pull/356) [`db7870f`](https://github.com/teable-group/teable/commit/db7870fbef1ac0422e8d142ab6bcd7d593abd685) Thanks [@belgattitude](https://github.com/belgattitude)! - CI: add extra check for missing / undeclared dependencies - -* [#354](https://github.com/teable-group/teable/pull/354) [`16e4e2d`](https://github.com/teable-group/teable/commit/16e4e2d7b6023a0cc9bf62120d7b5b8e223740b5) Thanks [@belgattitude](https://github.com/belgattitude)! - Improve eslint config and add eslint-plugin-import - -* Updated dependencies [[`db7870f`](https://github.com/teable-group/teable/commit/db7870fbef1ac0422e8d142ab6bcd7d593abd685), [`16e4e2d`](https://github.com/teable-group/teable/commit/16e4e2d7b6023a0cc9bf62120d7b5b8e223740b5)]: - - @teable-group/sdk@3.6.1 - - @teable-group/db-main-prisma@2.3.1 - - @teable-group/ui-lib@3.4.1 - -## 3.26.1 - -### Patch Changes - -- [#334](https://github.com/teable-group/teable/pull/334) [`7c69c58`](https://github.com/teable-group/teable/commit/7c69c5863bb5e5d5b426ca7ded7362ce4f445305) Thanks [@belgattitude](https://github.com/belgattitude)! - next.config.js allow example unused variables in webpack override - -* [#290](https://github.com/teable-group/teable/pull/290) [`ec1cd6a`](https://github.com/teable-group/teable/commit/ec1cd6a346f323ee67570082a32ecb9f7ec2d136) Thanks [@belgattitude](https://github.com/belgattitude)! - CI perf - nextjs build cache: prevent cache going stale - -## 3.26.0 - -### Minor Changes - -- [#330](https://github.com/teable-group/teable/pull/330) [`25a163d`](https://github.com/teable-group/teable/commit/25a163db7c17a3a126514978f427d41fe121b961) Thanks [@belgattitude](https://github.com/belgattitude)! - Add sharp as regular dependency - -## 3.25.0 - -### Minor Changes - -- [#323](https://github.com/teable-group/teable/pull/323) [`a416f35`](https://github.com/teable-group/teable/commit/a416f3550dd0bb8412297295206f586630e586c0) Thanks [@belgattitude](https://github.com/belgattitude)! - Example: eslint-plugin-sonarjs cause cause it desserves to belong here - -### Patch Changes - -- Updated dependencies [[`a416f35`](https://github.com/teable-group/teable/commit/a416f3550dd0bb8412297295206f586630e586c0)]: - - @teable-group/sdk@3.6.0 - - @teable-group/db-main-prisma@2.3.0 - - @teable-group/ui-lib@3.4.0 - -## 3.24.0 - -### Minor Changes - -- [#319](https://github.com/teable-group/teable/pull/319) [`2ccb056`](https://github.com/teable-group/teable/commit/2ccb056660dfd84a75e1a8733e56cc8d9b3fd353) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated to Typescript 4.4.2 strict ("useUnknownInCatchVariables": true) - -### Patch Changes - -- Updated dependencies [[`2ccb056`](https://github.com/teable-group/teable/commit/2ccb056660dfd84a75e1a8733e56cc8d9b3fd353)]: - - @teable-group/sdk@3.5.0 - - @teable-group/db-main-prisma@2.2.0 - - @teable-group/ui-lib@3.3.0 - -## 3.23.1 - -### Patch Changes - -- [#312](https://github.com/teable-group/teable/pull/312) [`3982ef0`](https://github.com/teable-group/teable/commit/3982ef0c9c078b159d2d1aa0076367c49fedb4f0) Thanks [@belgattitude](https://github.com/belgattitude)! - Refactored and fully type i18n keys per activated namespaces - -## 3.23.0 - -### Minor Changes - -- [#311](https://github.com/teable-group/teable/pull/311) [`f4cce0d`](https://github.com/teable-group/teable/commit/f4cce0d2c24536c49b72a1a18565548879e639aa) Thanks [@belgattitude](https://github.com/belgattitude)! - Add example of translated Custom 404 page (getStaticProps) - -* [#287](https://github.com/teable-group/teable/pull/287) [`5a24abb`](https://github.com/teable-group/teable/commit/5a24abb4db86141eb22ccc2634d87c2b0902c3af) Thanks [@belgattitude](https://github.com/belgattitude)! - Add 404 page in example to reduce bundle size - -- [#309](https://github.com/teable-group/teable/pull/309) [`e7a6f54`](https://github.com/teable-group/teable/commit/e7a6f54ca392fef6afa6824dcfc6bed211442d5f) Thanks [@belgattitude](https://github.com/belgattitude)! - Testing: add example with react-i18n provider - -## 3.22.0 - -### Minor Changes - -- [#307](https://github.com/teable-group/teable/pull/307) [`adaf85e`](https://github.com/teable-group/teable/commit/adaf85edd8137eae23a2b084ca9d85ea7a11a6fd) Thanks [@belgattitude](https://github.com/belgattitude)! - Perf: next.config.js allow conditional typecheck in build (faster ci possible) - -## 3.21.1 - -### Patch Changes - -- Updated dependencies [[`6cc466a`](https://github.com/teable-group/teable/commit/6cc466a8d0caf4e2ec8931ce87696ee83af71d19)]: - - @teable-group/db-main-prisma@2.1.0 - -## 3.21.0 - -### Minor Changes - -- [#286](https://github.com/teable-group/teable/pull/286) [`e030e4b`](https://github.com/teable-group/teable/commit/e030e4b1c2e865378bb5bc3e219286fda9bbebfc) Thanks [@belgattitude](https://github.com/belgattitude)! - Enable experimental.esmExternals for NextJs 11.1.0 - -## 3.20.0 - -### Minor Changes - -- [#278](https://github.com/teable-group/teable/pull/278) [`3b15241`](https://github.com/teable-group/teable/commit/3b15241726d57c7ddafc9b2766cb670ada617def) Thanks [@belgattitude](https://github.com/belgattitude)! - Add example of svg icons - -* [#278](https://github.com/teable-group/teable/pull/278) [`3b15241`](https://github.com/teable-group/teable/commit/3b15241726d57c7ddafc9b2766cb670ada617def) Thanks [@belgattitude](https://github.com/belgattitude)! - Add webpack/svgr typescript type definitions - -- [#278](https://github.com/teable-group/teable/pull/278) [`3b15241`](https://github.com/teable-group/teable/commit/3b15241726d57c7ddafc9b2766cb670ada617def) Thanks [@belgattitude](https://github.com/belgattitude)! - Add src/types.d folder to store the additional type defs - -### Patch Changes - -- Updated dependencies [[`3b15241`](https://github.com/teable-group/teable/commit/3b15241726d57c7ddafc9b2766cb670ada617def)]: - - @teable-group/ui-lib@3.2.0 - -## 3.19.0 - -### Minor Changes - -- [#265](https://github.com/teable-group/teable/pull/265) [`e321b8c`](https://github.com/teable-group/teable/commit/e321b8cdd35abab8a3c8cc08785017d39b04ce8d) Thanks [@belgattitude](https://github.com/belgattitude)! - Simplify setup, use NextJS 10.2+ experimental externalDirs option - -## 3.18.0 - -### Minor Changes - -- [#262](https://github.com/teable-group/teable/pull/262) [`dd2669d`](https://github.com/teable-group/teable/commit/dd2669d6d4079af52b7127722531404aec48d371) Thanks [@belgattitude](https://github.com/belgattitude)! - Example with typed getServerSideProps - -* [#261](https://github.com/teable-group/teable/pull/261) [`7e3b862`](https://github.com/teable-group/teable/commit/7e3b862766dd33423d295134fd3e365eed6fa220) Thanks [@belgattitude](https://github.com/belgattitude)! - Refactor app structure and configs - -## 3.17.0 - -### Minor Changes - -- [#260](https://github.com/teable-group/teable/pull/260) [`57e8cb1`](https://github.com/teable-group/teable/commit/57e8cb1fac0adbbdcbb88bdac709ed6e75e8887d) Thanks [@belgattitude](https://github.com/belgattitude)! - Typesafe features configs with i18n namespaces - -* [#257](https://github.com/teable-group/teable/pull/257) [`d3b8916`](https://github.com/teable-group/teable/commit/d3b8916b9a9e208e746e85363f6a18dc164fee6c) Thanks [@belgattitude](https://github.com/belgattitude)! - Backend config for prisma updated to multi schema (prep) - -### Patch Changes - -- Updated dependencies [[`d3b8916`](https://github.com/teable-group/teable/commit/d3b8916b9a9e208e746e85363f6a18dc164fee6c)]: - - @teable-group/db-main-prisma@2.0.0 - -## 3.16.0 - -### Minor Changes - -- [#251](https://github.com/teable-group/teable/pull/251) [`931ba44`](https://github.com/teable-group/teable/commit/931ba441f6558386b6857571061f1cc559bf2e43) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated to NextJs 11.1.0 - -* [#251](https://github.com/teable-group/teable/pull/251) [`931ba44`](https://github.com/teable-group/teable/commit/931ba441f6558386b6857571061f1cc559bf2e43) Thanks [@belgattitude](https://github.com/belgattitude)! - Typechecks enabled for next.config.js - -## 3.15.1 - -### Patch Changes - -- [#231](https://github.com/teable-group/teable/pull/231) [`90b0472`](https://github.com/teable-group/teable/commit/90b0472a3894a28a2b94e4ef85bee7d3a05f059e) Thanks [@belgattitude](https://github.com/belgattitude)! - Allow sentry/nextjs to be disabled by env variables (ie: in for local builds or CI) - -## 3.15.0 - -### Minor Changes - -- [#189](https://github.com/teable-group/teable/pull/189) [`9be480e`](https://github.com/teable-group/teable/commit/9be480efadf976df9e8a106532cb3860014bfd4d) Thanks [@belgattitude](https://github.com/belgattitude)! - Multistage docker build example - -* [#207](https://github.com/teable-group/teable/pull/207) [`3ee5d16`](https://github.com/teable-group/teable/commit/3ee5d16081bbf12aaa0345e0587012cb94546914) Thanks [@belgattitude](https://github.com/belgattitude)! - Basic example of graphql (sdl based) route - -### Patch Changes - -- [#189](https://github.com/teable-group/teable/pull/189) [`9be480e`](https://github.com/teable-group/teable/commit/9be480efadf976df9e8a106532cb3860014bfd4d) Thanks [@belgattitude](https://github.com/belgattitude)! - Fix next.config.js to not rely on bundle-analyzer when installed in production - -## 3.14.0 - -### Minor Changes - -- [#216](https://github.com/teable-group/teable/pull/216) [`0184987`](https://github.com/teable-group/teable/commit/0184987f390b704dbfbcad0f272b220f4765f9c8) Thanks [@belgattitude](https://github.com/belgattitude)! - Example with sentry - -## 3.13.0 - -### Minor Changes - -- [#210](https://github.com/teable-group/teable/pull/210) [`9d68258`](https://github.com/teable-group/teable/commit/9d6825850cb95e593b648f408814b02eb1c85fc7) Thanks [@belgattitude](https://github.com/belgattitude)! - Example of basic size-limit action - -## 3.12.1 - -### Patch Changes - -- [#181](https://github.com/teable-group/teable/pull/181) [`c5173ea`](https://github.com/teable-group/teable/commit/c5173ea4d9ae5f476c0434ad25a6ff7735350e06) Thanks [@belgattitude](https://github.com/belgattitude)! - Fix possible issues with peerDeps - -- Updated dependencies [[`c5173ea`](https://github.com/teable-group/teable/commit/c5173ea4d9ae5f476c0434ad25a6ff7735350e06)]: - - @teable-group/sdk@3.4.0 - - @teable-group/db-main-prisma@1.2.1 - -## 3.12.0 - -### Minor Changes - -- [#140](https://github.com/teable-group/teable/pull/140) [`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f) Thanks [@belgattitude](https://github.com/belgattitude)! - Example of fully typed api (ssr and frontend) - -### Patch Changes - -- [#172](https://github.com/teable-group/teable/pull/172) [`01e5e89`](https://github.com/teable-group/teable/commit/01e5e89e028029c5ef415f2f825d022f96a97fd4) Thanks [@belgattitude](https://github.com/belgattitude)! - Relaxed codeclimate config for react components - -- Updated dependencies [[`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f), [`01e5e89`](https://github.com/teable-group/teable/commit/01e5e89e028029c5ef415f2f825d022f96a97fd4), [`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f), [`3c8ef69`](https://github.com/teable-group/teable/commit/3c8ef6900120557fae33ff565595f8fe2b9628a9), [`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f), [`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f)]: - - @teable-group/sdk@3.3.0 - - @teable-group/db-main-prisma@1.2.0 - - @teable-group/ui-lib@3.1.3 - -## 3.11.1 - -### Patch Changes - -- [#135](https://github.com/teable-group/teable/pull/135) [`d548b70`](https://github.com/teable-group/teable/commit/d548b70b53baaa67d6de4e8a7c6254b59db3ced3) Thanks [@belgattitude](https://github.com/belgattitude)! - CI: use built-in yarn cache from setup/node@v2.2 - -- Updated dependencies [[`d548b70`](https://github.com/teable-group/teable/commit/d548b70b53baaa67d6de4e8a7c6254b59db3ced3)]: - - @teable-group/sdk@3.2.2 - - @teable-group/db-main-prisma@1.1.3 - - @teable-group/ui-lib@3.1.2 - -## 3.11.0 - -### Minor Changes - -- [#71](https://github.com/teable-group/teable/pull/71) [`3903624`](https://github.com/teable-group/teable/commit/3903624ad3c87b282947ed3eea84f6451c622fe6) Thanks [@belgattitude](https://github.com/belgattitude)! - Example with next-i18next and typed translation keys - -### Patch Changes - -- [#117](https://github.com/teable-group/teable/pull/117) [`4607a02`](https://github.com/teable-group/teable/commit/4607a02d91e87134f306d25dfeabdba9c83b3837) Thanks [@belgattitude](https://github.com/belgattitude)! - Improved documentation - -- Updated dependencies [[`4607a02`](https://github.com/teable-group/teable/commit/4607a02d91e87134f306d25dfeabdba9c83b3837)]: - - @teable-group/db-main-prisma@1.1.2 - -## 3.10.0 - -### Minor Changes - -- [#112](https://github.com/teable-group/teable/pull/112) [`f1b34bf`](https://github.com/teable-group/teable/commit/f1b34bfbf65fd1cadde8ced3811bd88b014aa65d) Thanks [@belgattitude](https://github.com/belgattitude)! - Remove why-did-your-render, does not work well with emotion - -## 3.9.1 - -### Patch Changes - -- [#107](https://github.com/teable-group/teable/pull/107) [`90b0d23`](https://github.com/teable-group/teable/commit/90b0d23a8da942718f6f2834d73171ac9b4005da) Thanks [@belgattitude](https://github.com/belgattitude)! - Browserlist per environment (dev/prod) - -## 3.9.0 - -### Minor Changes - -- [#101](https://github.com/teable-group/teable/pull/101) [`218827a`](https://github.com/teable-group/teable/commit/218827aa16c68d728a31e3ffcefe03c0df8febd0) Thanks [@belgattitude](https://github.com/belgattitude)! - Update to tailwind 2.2.0 and jit mode - -## 3.8.0 - -### Minor Changes - -- [#98](https://github.com/teable-group/teable/pull/98) [`86022f7`](https://github.com/teable-group/teable/commit/86022f784a07c1ad222b3d8897fcba021d268564) Thanks [@belgattitude](https://github.com/belgattitude)! - Upgrade to NextJs 11 - -* [#98](https://github.com/teable-group/teable/pull/98) [`1392357`](https://github.com/teable-group/teable/commit/1392357e45c13bbbdf234208bc73c9f23be12ed3) Thanks [@belgattitude](https://github.com/belgattitude)! - Add nextjs eslint recommended configuration - -## 3.7.0 - -### Minor Changes - -- [#91](https://github.com/teable-group/teable/pull/91) [`3c646e7`](https://github.com/teable-group/teable/commit/3c646e7dfd6ec246035f048634f6533082412d3a) Thanks [@belgattitude](https://github.com/belgattitude)! - Example for google font preconnect - -* [#91](https://github.com/teable-group/teable/pull/91) [`45de065`](https://github.com/teable-group/teable/commit/45de0659558ac7a3f88ee6cb7fd070bd0395f83e) Thanks [@belgattitude](https://github.com/belgattitude)! - Example: customize tailwind configuration - -- [#89](https://github.com/teable-group/teable/pull/89) [`5fe5f2a`](https://github.com/teable-group/teable/commit/5fe5f2a9cc0528617f0b53f9fb369afaf252358f) Thanks [@belgattitude](https://github.com/belgattitude)! - Example for browserlist support - -## 3.6.1 - -### Patch Changes - -- [#84](https://github.com/teable-group/teable/pull/84) [`a9c0d5e`](https://github.com/teable-group/teable/commit/a9c0d5e2651732ab23f1a335acddd23aef5a6b88) Thanks [@belgattitude](https://github.com/belgattitude)! - Jest: use css transform from jest-css-modules-transform - -* [#84](https://github.com/teable-group/teable/pull/84) [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293) Thanks [@belgattitude](https://github.com/belgattitude)! - Jest: added mock configs - -- [#84](https://github.com/teable-group/teable/pull/84) [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293) Thanks [@belgattitude](https://github.com/belgattitude)! - ESlint: added plugin:testing-library/react - -- Updated dependencies [[`a9c0d5e`](https://github.com/teable-group/teable/commit/a9c0d5e2651732ab23f1a335acddd23aef5a6b88), [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293), [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293)]: - - @teable-group/sdk@3.2.1 - - @teable-group/db-main-prisma@1.1.1 - - @teable-group/ui-lib@3.1.1 - -## 3.6.0 - -### Minor Changes - -- [#74](https://github.com/teable-group/teable/pull/74) [`5010c94`](https://github.com/teable-group/teable/commit/5010c944162165ab47923718a9ccaf1cafc419ee) Thanks [@belgattitude](https://github.com/belgattitude)! - Extract a separate prisma package lib - -* [#79](https://github.com/teable-group/teable/pull/79) [`a38c143`](https://github.com/teable-group/teable/commit/a38c1434486d2affdd95bfd9836160d63a11a2f7) Thanks [@belgattitude](https://github.com/belgattitude)! - Example with why-did-you-render - -### Patch Changes - -- Updated dependencies [[`5010c94`](https://github.com/teable-group/teable/commit/5010c944162165ab47923718a9ccaf1cafc419ee)]: - - @teable-group/db-main-prisma@1.1.0 - -## 3.5.0 - -### Minor Changes - -- [#69](https://github.com/teable-group/teable/pull/69) [`4fda76c`](https://github.com/teable-group/teable/commit/4fda76c2c9bc7b528d4a794b2738ef52fd505465) Thanks [@belgattitude](https://github.com/belgattitude)! - Styling the app with tailwind - -## 3.4.0 - -### Minor Changes - -- [#67](https://github.com/teable-group/teable/pull/67) [`152e4ad`](https://github.com/teable-group/teable/commit/152e4adc8be95f192b066f75ef4bb2dd42c46d12) Thanks [@belgattitude](https://github.com/belgattitude)! - Jest 27 and Typescript 4.3.1 - -### Patch Changes - -- Updated dependencies [[`152e4ad`](https://github.com/teable-group/teable/commit/152e4adc8be95f192b066f75ef4bb2dd42c46d12)]: - - @teable-group/sdk@3.2.0 - - @teable-group/ui-lib@3.1.0 - -## 3.3.0 - -### Minor Changes - -- [#64](https://github.com/teable-group/teable/pull/64) [`800ccdc`](https://github.com/teable-group/teable/commit/800ccdcc93884157d4b9535272625a5a5719e83d) Thanks [@belgattitude](https://github.com/belgattitude)! - Add prisma and next-auth example - -### Patch Changes - -- Updated dependencies [[`800ccdc`](https://github.com/teable-group/teable/commit/800ccdcc93884157d4b9535272625a5a5719e83d), [`800ccdc`](https://github.com/teable-group/teable/commit/800ccdcc93884157d4b9535272625a5a5719e83d)]: - - @teable-group/sdk@3.1.0 - -## 3.2.0 - -### Minor Changes - -- [#61](https://github.com/teable-group/teable/pull/61) [`757aef8`](https://github.com/teable-group/teable/commit/757aef899e005b18aef175240856e5c89dc8e23c) Thanks [@belgattitude](https://github.com/belgattitude)! - Example for sharing static assets and locales - -## 3.1.0 - -### Minor Changes - -- [#50](https://github.com/teable-group/teable/pull/50) [`62cea64`](https://github.com/teable-group/teable/commit/62cea645216dad5e5160be0bb368967596ad90a5) Thanks [@belgattitude](https://github.com/belgattitude)! - Set baseUrl to ./src in tsconfig.json and jest.config.js - -### Patch Changes - -- [#46](https://github.com/teable-group/teable/pull/46) [`83a7239`](https://github.com/teable-group/teable/commit/83a7239773edd74a8aa93263fb93ffdc16bc2980) Thanks [@belgattitude](https://github.com/belgattitude)! - Remove the need for next-transpile-modules - -## 3.0.1 - -### Patch Changes - -- [#41](https://github.com/teable-group/teable/pull/41) [`f12f210`](https://github.com/teable-group/teable/commit/f12f21014caa6a70260711833543479f495b5348) Thanks [@belgattitude](https://github.com/belgattitude)! - Explicit dependencies on packages with workspace:\* protocol - -## 3.0.0 - -### Major Changes - -- [#39](https://github.com/teable-group/teable/pull/39) [`9f04b88`](https://github.com/teable-group/teable/commit/9f04b88d966e804ddc12e79372b3ac14f7330b86) Thanks [@belgattitude](https://github.com/belgattitude)! - Rename packages foo and bar into ui-lib and sdk - -## 2.0.0 - -### Major Changes - -- [#36](https://github.com/teable-group/teable/pull/36) [`6a93bf3`](https://github.com/teable-group/teable/commit/6a93bf35a0863be6a6811328c38cd7e3fc481a9a) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated to nextjs 10.2 / Webpack 5 / Transpile 7 - -* [#36](https://github.com/teable-group/teable/pull/36) [`b015465`](https://github.com/teable-group/teable/commit/b015465469ea85e4174ed438ac89381489900ad4) Thanks [@belgattitude](https://github.com/belgattitude)! - Add example using emotion - -- [#36](https://github.com/teable-group/teable/pull/36) [`3dd0d6a`](https://github.com/teable-group/teable/commit/3dd0d6a1ff20c49d4ad71907ea243287fbc36890) Thanks [@belgattitude](https://github.com/belgattitude)! - Add husky/lint-staged example - -* [#36](https://github.com/teable-group/teable/pull/36) [`31475c5`](https://github.com/teable-group/teable/commit/31475c58ca1ebc155f178240468d0d6a9d323e34) Thanks [@belgattitude](https://github.com/belgattitude)! - Add eslint integration example - -### Minor Changes - -- [#36](https://github.com/teable-group/teable/pull/36) [`257ac52`](https://github.com/teable-group/teable/commit/257ac52c08fa4cc7b66bb90b028f1cb81453ffc7) Thanks [@belgattitude](https://github.com/belgattitude)! - Support for @next/bundle-analyzer + script bundle:analyze - -* [#36](https://github.com/teable-group/teable/pull/36) [`9c84551`](https://github.com/teable-group/teable/commit/9c845516ae04b997e8d34647908d62f7902c006c) Thanks [@belgattitude](https://github.com/belgattitude)! - Example for next-secure-headers - -- [#36](https://github.com/teable-group/teable/pull/36) [`f3d3b00`](https://github.com/teable-group/teable/commit/f3d3b00d4b16e94784ac2bd4d3b26a5f5d690430) Thanks [@belgattitude](https://github.com/belgattitude)! - Example with next-seo diff --git a/apps/nextjs-app/README.md b/apps/nextjs-app/README.md index 64ecd4a10..2664644cd 100644 --- a/apps/nextjs-app/README.md +++ b/apps/nextjs-app/README.md @@ -1,24 +1,24 @@ # The web-app

- - build + + build

## Intro -Basic demo nextjs nextjs-app, part of the [teable](https://github.com/teable-group/teable). +Basic demo nextjs nextjs-app, part of the [teable](https://github.com/teableio/teable). - Home: [Demo/Vercel](https://monorepo-nextjs-app.vercel.app) - SSR-I18n: [Demo/Vercel english](https://monorepo-nextjs-app.vercel.app/en/home) | [Demo/vercel french](https://monorepo-nextjs-app.vercel.app/fr/home) - API: [Demo rest/Vercel](https://monorepo-nextjs-app.vercel.app/api/rest/post/1) -- [Changelog](https://github.com/teable-group/teable/blob/main/apps/nextjs-app/CHANGELOG.md) +- [Changelog](https://github.com/teableio/teable/blob/main/apps/nextjs-app/CHANGELOG.md) ## Quick start > For rest/api database access be sure to start `docker-compose up main-db`, -> see detailed instructions (seeding, docker, supabase...) in the [@teable-group/db-main-prisma README](https://github.com/teable-group/teable/blob/main/packages/db-main-prisma/README.md). +> see detailed instructions (seeding, docker, supabase...) in the [@teable/db-main-prisma README](https://github.com/teableio/teable/blob/main/packages/db-main-prisma/README.md). ```bash $ yarn install @@ -41,14 +41,14 @@ $ yarn dev ### Monorepo deps -This app relies on packages in the monorepo, see detailed instructions in [README.md](https://github.com/teable-group/teable) +This app relies on packages in the monorepo, see detailed instructions in [README.md](https://github.com/teableio/teable) ```json5 { dependencies: { - "@teable-group/sdk": "workspace:*", - "@teable-group/db-main-prisma": "workspace:*", - "@teable-group/ui-lib": "workspace:*", + "@teable/sdk": "workspace:*", + "@teable/db-main-prisma": "workspace:*", + "@teable/ui-lib": "workspace:*", }, } ``` @@ -60,16 +60,12 @@ And their counterparts in [tsconfig.json](./tsconfig.json) "compilerOptions": { "baseUrl": "./src", "paths": { - "@teable-group/ui-lib/*": ["../../../packages/ui-lib/src/*"], - "@teable-group/ui-lib": ["../../../packages/ui-lib/src/index"], - "@teable-group/sdk/*": ["../../../packages/sdk/src/*"], - "@teable-group/sdk": ["../../../packages/sdk/src/index"], - "@teable-group/db-main-prisma/*": [ - "../../../packages/db-main-prisma/src/*", - ], - "@teable-group/db-main-prisma": [ - "../../../packages/db-main-prisma/src/index", - ], + "@teable/ui-lib/*": ["../../../packages/ui-lib/src/*"], + "@teable/ui-lib": ["../../../packages/ui-lib/src/index"], + "@teable/sdk/*": ["../../../packages/sdk/src/*"], + "@teable/sdk": ["../../../packages/sdk/src/index"], + "@teable/db-main-prisma/*": ["../../../packages/db-main-prisma/src/*"], + "@teable/db-main-prisma": ["../../../packages/db-main-prisma/src/index"], }, }, } diff --git a/apps/nextjs-app/config/tests/AppTestProviders.tsx b/apps/nextjs-app/config/tests/AppTestProviders.tsx index 837acb535..bf7704372 100644 --- a/apps/nextjs-app/config/tests/AppTestProviders.tsx +++ b/apps/nextjs-app/config/tests/AppTestProviders.tsx @@ -1,8 +1,8 @@ -import type { DriverClient } from '@teable-group/core'; -import type { IAppContext } from '@teable-group/sdk/context'; -import { AppContext, FieldContext, ThemeKey, ViewContext } from '@teable-group/sdk/context'; -import { defaultLocale } from '@teable-group/sdk/context/app/i18n'; -import type { IFieldInstance, IViewInstance } from '@teable-group/sdk/model'; +import type { DriverClient } from '@teable/core'; +import type { IAppContext } from '@teable/sdk/context'; +import { AppContext, FieldContext, ThemeKey, ViewContext } from '@teable/sdk/context'; +import { defaultLocale } from '@teable/sdk/context/app/i18n'; +import type { IFieldInstance, IViewInstance } from '@teable/sdk/model'; import { noop } from 'lodash'; import type { FC, PropsWithChildren } from 'react'; import { I18nextTestStubProvider } from './I18nextTestStubProvider'; diff --git a/apps/nextjs-app/e2e/pages/index/index-chinese.spec.ts b/apps/nextjs-app/e2e/pages/index/index-chinese.spec.ts index dda625370..d98232f54 100644 --- a/apps/nextjs-app/e2e/pages/index/index-chinese.spec.ts +++ b/apps/nextjs-app/e2e/pages/index/index-chinese.spec.ts @@ -1,5 +1,5 @@ import { test, expect } from '@playwright/test'; -import page404JsonZh from '@teable-group/common-i18n/locales/zh/system.json'; +import page404JsonZh from '@teable/common-i18n/locales/zh/system.json'; test.use({ locale: 'zh', diff --git a/apps/nextjs-app/e2e/pages/index/index.spec.ts b/apps/nextjs-app/e2e/pages/index/index.spec.ts index d46804640..893bccdb3 100644 --- a/apps/nextjs-app/e2e/pages/index/index.spec.ts +++ b/apps/nextjs-app/e2e/pages/index/index.spec.ts @@ -1,5 +1,5 @@ import { test, expect } from '@playwright/test'; -import page404JsonEn from '@teable-group/common-i18n/locales/en/system.json'; +import page404JsonEn from '@teable/common-i18n/locales/en/system.json'; test.describe('404 page', () => { test('should have the title in english by default', async ({ page }) => { diff --git a/apps/nextjs-app/e2e/pages/system/404.spec.ts b/apps/nextjs-app/e2e/pages/system/404.spec.ts index 44ec71c41..5bf624abd 100644 --- a/apps/nextjs-app/e2e/pages/system/404.spec.ts +++ b/apps/nextjs-app/e2e/pages/system/404.spec.ts @@ -1,5 +1,5 @@ import { test, expect } from '@playwright/test'; -import systemJsonEn from '@teable-group/common-i18n/locales/en/system.json'; +import systemJsonEn from '@teable/common-i18n/locales/en/system.json'; const pageSlug = 'this-page-does-not-exist'; diff --git a/apps/nextjs-app/lint-staged.config.js b/apps/nextjs-app/lint-staged.config.js index 8a0cd6020..6549cc2d0 100644 --- a/apps/nextjs-app/lint-staged.config.js +++ b/apps/nextjs-app/lint-staged.config.js @@ -4,7 +4,7 @@ * This files overrides the base lint-staged.config.js present in the root directory. * It allows to run eslint based the package specific requirements. * {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} - * {@link https://github.com/teable-group/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md} + * {@link https://github.com/teableio/nextjs-monorepo-example/blob/main/docs/about-lint-staged.md} */ const { concatFilesForPrettier, getEslintFixCmd } = require('../../lint-staged.common.js'); diff --git a/apps/nextjs-app/next-i18next.config.js b/apps/nextjs-app/next-i18next.config.js index 875c3f5f3..c28f8dc50 100644 --- a/apps/nextjs-app/next-i18next.config.js +++ b/apps/nextjs-app/next-i18next.config.js @@ -5,7 +5,7 @@ const localePublicFolder = undefined; const localPaths = [ path.resolve('../../packages/common-i18n/src/locales'), - path.join(__dirname, '../../../node_modules/@teable-group/common-i18n/src/locales'), + path.join(__dirname, '../../../node_modules/@teable/common-i18n/src/locales'), process.env.I18N_LOCALES_PATH, ]; diff --git a/apps/nextjs-app/package.json b/apps/nextjs-app/package.json index a3c69443f..87bb49b60 100644 --- a/apps/nextjs-app/package.json +++ b/apps/nextjs-app/package.json @@ -1,13 +1,13 @@ { - "name": "@teable-group/app", + "name": "@teable/app", "version": "1.0.0", "license": "AGPL-3.0", "private": true, "main": "main/index.js", - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "apps/nextjs-app" }, "author": { @@ -118,12 +118,12 @@ "@tailwindcss/container-queries": "0.1.1", "@tanstack/react-query": "4.36.1", "@tanstack/react-table": "8.11.7", - "@teable-group/common-i18n": "workspace:^", - "@teable-group/core": "workspace:^", - "@teable-group/icons": "workspace:^", - "@teable-group/openapi": "workspace:^", - "@teable-group/sdk": "workspace:^", - "@teable-group/ui-lib": "workspace:^", + "@teable/common-i18n": "workspace:^", + "@teable/core": "workspace:^", + "@teable/icons": "workspace:^", + "@teable/openapi": "workspace:^", + "@teable/sdk": "workspace:^", + "@teable/ui-lib": "workspace:^", "allotment": "1.20.0", "axios": "1.6.7", "class-variance-authority": "0.7.0", diff --git a/apps/nextjs-app/src/AppProviders.tsx b/apps/nextjs-app/src/AppProviders.tsx index 6d8e0af34..75f8ae6d2 100644 --- a/apps/nextjs-app/src/AppProviders.tsx +++ b/apps/nextjs-app/src/AppProviders.tsx @@ -1,5 +1,5 @@ -import { Toaster as SoonerToaster } from '@teable-group/ui-lib/shadcn/ui/sonner'; -import { Toaster } from '@teable-group/ui-lib/shadcn/ui/toaster'; +import { Toaster as SoonerToaster } from '@teable/ui-lib/shadcn/ui/sonner'; +import { Toaster } from '@teable/ui-lib/shadcn/ui/toaster'; import type { FC, PropsWithChildren } from 'react'; type Props = PropsWithChildren; diff --git a/apps/nextjs-app/src/backend/api/rest/axios.ts b/apps/nextjs-app/src/backend/api/rest/axios.ts index 7c1f34be2..7c4d07c07 100644 --- a/apps/nextjs-app/src/backend/api/rest/axios.ts +++ b/apps/nextjs-app/src/backend/api/rest/axios.ts @@ -1,4 +1,4 @@ -import { createAxios } from '@teable-group/openapi'; +import { createAxios } from '@teable/openapi'; export const getAxios = () => { const axios = createAxios(); diff --git a/apps/nextjs-app/src/backend/api/rest/get-user.ts b/apps/nextjs-app/src/backend/api/rest/get-user.ts index bcea48559..f62deb08b 100644 --- a/apps/nextjs-app/src/backend/api/rest/get-user.ts +++ b/apps/nextjs-app/src/backend/api/rest/get-user.ts @@ -1,4 +1,4 @@ -import type { IUser } from '@teable-group/sdk'; +import type { IUser } from '@teable/sdk'; import { axios } from './axios'; export async function getUserMe(cookie?: string) { diff --git a/apps/nextjs-app/src/backend/api/rest/table.ssr.ts b/apps/nextjs-app/src/backend/api/rest/table.ssr.ts index 147f8dc49..a9de9571b 100644 --- a/apps/nextjs-app/src/backend/api/rest/table.ssr.ts +++ b/apps/nextjs-app/src/backend/api/rest/table.ssr.ts @@ -1,5 +1,5 @@ -import type { IFieldVo, IRecord, ITableFullVo, ITableListVo } from '@teable-group/core'; -import { FieldKeyType } from '@teable-group/core'; +import type { IFieldVo, IRecord, ITableFullVo, ITableListVo } from '@teable/core'; +import { FieldKeyType } from '@teable/core'; import type { AcceptInvitationLinkRo, AcceptInvitationLinkVo, @@ -8,7 +8,7 @@ import type { IGetSpaceVo, ListSpaceCollaboratorVo, ShareViewGetVo, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import { ACCEPT_INVITATION_LINK, GET_BASE, @@ -22,7 +22,7 @@ import { SHARE_VIEW_GET, SPACE_COLLABORATE_LIST, urlBuilder, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import type { AxiosInstance } from 'axios'; import { getAxios } from './axios'; diff --git a/apps/nextjs-app/src/components/layout/MainFooter.tsx b/apps/nextjs-app/src/components/layout/MainFooter.tsx index 8286915cd..b6d7db5db 100644 --- a/apps/nextjs-app/src/components/layout/MainFooter.tsx +++ b/apps/nextjs-app/src/components/layout/MainFooter.tsx @@ -1,4 +1,4 @@ -import GithubIcon from '@teable-group/ui-lib/icons/social/github.svg'; +import GithubIcon from '@teable/ui-lib/icons/social/github.svg'; import type { FC } from 'react'; export const MainFooter: FC = () => { @@ -7,7 +7,7 @@ export const MainFooter: FC = () => {
diff --git a/apps/nextjs-app/src/features/app/automation/Pages.tsx b/apps/nextjs-app/src/features/app/automation/Pages.tsx index b10606b71..2dd9fd532 100644 --- a/apps/nextjs-app/src/features/app/automation/Pages.tsx +++ b/apps/nextjs-app/src/features/app/automation/Pages.tsx @@ -1,4 +1,4 @@ -import { PackageCheck } from '@teable-group/icons'; +import { PackageCheck } from '@teable/icons'; export function AutomationPage() { return (
diff --git a/apps/nextjs-app/src/features/app/blocks/Error.tsx b/apps/nextjs-app/src/features/app/blocks/Error.tsx index 5dc2dfbbc..1f18e3dd2 100644 --- a/apps/nextjs-app/src/features/app/blocks/Error.tsx +++ b/apps/nextjs-app/src/features/app/blocks/Error.tsx @@ -1,4 +1,4 @@ -import { TeableNew } from '@teable-group/icons'; +import { TeableNew } from '@teable/icons'; import type { FC } from 'react'; export const Error: FC<{ message: string }> = (props) => { diff --git a/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/BaseSideBar.tsx b/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/BaseSideBar.tsx index e0fbe232f..97a6e5e89 100644 --- a/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/BaseSideBar.tsx +++ b/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/BaseSideBar.tsx @@ -1,6 +1,6 @@ -import { Gauge, PackageCheck } from '@teable-group/icons'; -import { cn } from '@teable-group/ui-lib/shadcn'; -import { Button } from '@teable-group/ui-lib/shadcn/ui/button'; +import { Gauge, PackageCheck } from '@teable/icons'; +import { cn } from '@teable/ui-lib/shadcn'; +import { Button } from '@teable/ui-lib/shadcn/ui/button'; import Link from 'next/link'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; diff --git a/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/QuickAction.tsx b/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/QuickAction.tsx index f0eaec7c0..d2d29824e 100644 --- a/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/QuickAction.tsx +++ b/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/QuickAction.tsx @@ -1,7 +1,7 @@ import { LaptopIcon } from '@radix-ui/react-icons'; -import { Moon, Settings, Sun, Table2 } from '@teable-group/icons'; -import { ThemeKey } from '@teable-group/sdk/context'; -import { useBase, useTables, useTheme } from '@teable-group/sdk/hooks'; +import { Moon, Settings, Sun, Table2 } from '@teable/icons'; +import { ThemeKey } from '@teable/sdk/context'; +import { useBase, useTables, useTheme } from '@teable/sdk/hooks'; import { CommandDialog, CommandInput, @@ -11,7 +11,7 @@ import { CommandItem, CommandSeparator, Button, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; import { useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/SheetWraper.tsx b/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/SheetWraper.tsx index 033d61eed..46d77a440 100644 --- a/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/SheetWraper.tsx +++ b/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/SheetWraper.tsx @@ -1,5 +1,5 @@ -import { ChevronsRight } from '@teable-group/icons'; -import { Sheet, SheetContent, Button, SheetTrigger } from '@teable-group/ui-lib'; +import { ChevronsRight } from '@teable/icons'; +import { Sheet, SheetContent, Button, SheetTrigger } from '@teable/ui-lib'; import classNames from 'classnames'; interface SheetWraperProps { diff --git a/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/SideBarHeader.tsx b/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/SideBarHeader.tsx index 2cbf6c9ee..6146df6a6 100644 --- a/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/SideBarHeader.tsx +++ b/apps/nextjs-app/src/features/app/blocks/base/base-side-bar/SideBarHeader.tsx @@ -1,15 +1,9 @@ /* eslint-disable jsx-a11y/no-static-element-interactions */ /* eslint-disable jsx-a11y/click-events-have-key-events */ import { useQuery } from '@tanstack/react-query'; -import { ChevronsLeft, TeableNew, Sidebar } from '@teable-group/icons'; -import { getBaseById } from '@teable-group/openapi'; -import { - Tooltip, - TooltipContent, - TooltipProvider, - TooltipTrigger, - Button, -} from '@teable-group/ui-lib'; +import { ChevronsLeft, TeableNew, Sidebar } from '@teable/icons'; +import { getBaseById } from '@teable/openapi'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Button } from '@teable/ui-lib'; import { useRouter } from 'next/router'; import { Emoji } from '@/features/app/components/emoji/Emoji'; import type { ISideBarInteractionProps } from './SideBar'; diff --git a/apps/nextjs-app/src/features/app/blocks/dashboard/Dashboard.tsx b/apps/nextjs-app/src/features/app/blocks/dashboard/Dashboard.tsx index 649caad93..e53793240 100644 --- a/apps/nextjs-app/src/features/app/blocks/dashboard/Dashboard.tsx +++ b/apps/nextjs-app/src/features/app/blocks/dashboard/Dashboard.tsx @@ -1,4 +1,4 @@ -import { getRandomString } from '@teable-group/core'; +import { getRandomString } from '@teable/core'; import { useEffect, useRef, useState } from 'react'; import type { Layout } from 'react-grid-layout'; import { Responsive, WidthProvider } from 'react-grid-layout'; diff --git a/apps/nextjs-app/src/features/app/blocks/db-connection/Panel.tsx b/apps/nextjs-app/src/features/app/blocks/db-connection/Panel.tsx index a2044f3b2..55cbea79c 100644 --- a/apps/nextjs-app/src/features/app/blocks/db-connection/Panel.tsx +++ b/apps/nextjs-app/src/features/app/blocks/db-connection/Panel.tsx @@ -1,8 +1,8 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; -import { Copy, Database } from '@teable-group/icons'; -import { deleteDbConnection, getDbConnection, createDbConnection } from '@teable-group/openapi'; -import { useBase } from '@teable-group/sdk/hooks'; -import { Button, CardDescription, Input, Label, Skeleton } from '@teable-group/ui-lib/shadcn'; +import { Copy, Database } from '@teable/icons'; +import { deleteDbConnection, getDbConnection, createDbConnection } from '@teable/openapi'; +import { useBase } from '@teable/sdk/hooks'; +import { Button, CardDescription, Input, Label, Skeleton } from '@teable/ui-lib/shadcn'; export const DbConnectionPanel: React.FC = () => { const base = useBase(); diff --git a/apps/nextjs-app/src/features/app/blocks/db-connection/PanelTrigger.tsx b/apps/nextjs-app/src/features/app/blocks/db-connection/PanelTrigger.tsx index 07e0fdbdd..ee57e6499 100644 --- a/apps/nextjs-app/src/features/app/blocks/db-connection/PanelTrigger.tsx +++ b/apps/nextjs-app/src/features/app/blocks/db-connection/PanelTrigger.tsx @@ -4,7 +4,7 @@ import { DialogHeader, DialogTitle, DialogTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { DbConnectionPanel } from './Panel'; export const DbConnectionPanelTrigger: React.FC<{ children: React.ReactNode }> = ({ children }) => { diff --git a/apps/nextjs-app/src/features/app/blocks/design/Design.tsx b/apps/nextjs-app/src/features/app/blocks/design/Design.tsx index 51160daf1..e5dd5cbea 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/Design.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/Design.tsx @@ -1,9 +1,9 @@ -import type { IFieldVo, ITableVo } from '@teable-group/core'; -import { ArrowLeft, Table2 } from '@teable-group/icons'; -import type { IGetBaseVo } from '@teable-group/openapi'; -import type { Table } from '@teable-group/sdk'; -import { FieldProvider, useTable, useTablePermission } from '@teable-group/sdk'; -import { Button, cn } from '@teable-group/ui-lib/shadcn'; +import type { IFieldVo, ITableVo } from '@teable/core'; +import { ArrowLeft, Table2 } from '@teable/icons'; +import type { IGetBaseVo } from '@teable/openapi'; +import type { Table } from '@teable/sdk'; +import { FieldProvider, useTable, useTablePermission } from '@teable/sdk'; +import { Button, cn } from '@teable/ui-lib/shadcn'; import Link from 'next/link'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; diff --git a/apps/nextjs-app/src/features/app/blocks/design/card/TableConnection.tsx b/apps/nextjs-app/src/features/app/blocks/design/card/TableConnection.tsx index 88848443f..0a38c0d53 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/card/TableConnection.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/card/TableConnection.tsx @@ -1,4 +1,4 @@ -import { Card, CardContent, CardHeader, CardTitle } from '@teable-group/ui-lib/shadcn'; +import { Card, CardContent, CardHeader, CardTitle } from '@teable/ui-lib/shadcn'; import { DbConnectionPanel } from '../../db-connection/Panel'; export const TableConnection = () => { diff --git a/apps/nextjs-app/src/features/app/blocks/design/card/TableDetail.tsx b/apps/nextjs-app/src/features/app/blocks/design/card/TableDetail.tsx index 8306258fc..0747a5771 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/card/TableDetail.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/card/TableDetail.tsx @@ -1,5 +1,5 @@ -import type { ITableVo } from '@teable-group/core'; -import { useDriver, useTable } from '@teable-group/sdk/hooks'; +import type { ITableVo } from '@teable/core'; +import { useDriver, useTable } from '@teable/sdk/hooks'; import { Card, CardHeader, @@ -7,7 +7,7 @@ import { CardDescription, CardContent, Label, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; import { useTranslation } from 'next-i18next'; diff --git a/apps/nextjs-app/src/features/app/blocks/design/components/Actions.tsx b/apps/nextjs-app/src/features/app/blocks/design/components/Actions.tsx index 6e0d8e418..5884c242b 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/components/Actions.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/components/Actions.tsx @@ -1,12 +1,12 @@ import { DotsHorizontalIcon } from '@radix-ui/react-icons'; -import { useTable } from '@teable-group/sdk/hooks'; +import { useTable } from '@teable/sdk/hooks'; import { DropdownMenu, DropdownMenuTrigger, Button, DropdownMenuContent, DropdownMenuItem, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; import { FieldOperator } from '@/features/app/components/field-setting'; import { useFieldSettingStore } from '../../view/field/useFieldSettingStore'; diff --git a/apps/nextjs-app/src/features/app/blocks/design/components/DbTableName.tsx b/apps/nextjs-app/src/features/app/blocks/design/components/DbTableName.tsx index 05ebe65a7..a33fc417d 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/components/DbTableName.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/components/DbTableName.tsx @@ -1,7 +1,7 @@ -import { useTable, useTablePermission } from '@teable-group/sdk/hooks'; -import type { Table } from '@teable-group/sdk/model'; -import { Button, Input, Label } from '@teable-group/ui-lib/shadcn'; -import { toast } from '@teable-group/ui-lib/shadcn/ui/sonner'; +import { useTable, useTablePermission } from '@teable/sdk/hooks'; +import type { Table } from '@teable/sdk/model'; +import { Button, Input, Label } from '@teable/ui-lib/shadcn'; +import { toast } from '@teable/ui-lib/shadcn/ui/sonner'; import { useTranslation } from 'next-i18next'; import { useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/design/components/FieldPropertyEditor.tsx b/apps/nextjs-app/src/features/app/blocks/design/components/FieldPropertyEditor.tsx index e913d9dfd..ff6e9b75f 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/components/FieldPropertyEditor.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/components/FieldPropertyEditor.tsx @@ -1,7 +1,7 @@ -import { Edit } from '@teable-group/icons'; -import { useField, useTablePermission } from '@teable-group/sdk/hooks'; -import { Button, Input } from '@teable-group/ui-lib/shadcn'; -import { toast } from '@teable-group/ui-lib/shadcn/ui/sonner'; +import { Edit } from '@teable/icons'; +import { useField, useTablePermission } from '@teable/sdk/hooks'; +import { Button, Input } from '@teable/ui-lib/shadcn'; +import { toast } from '@teable/ui-lib/shadcn/ui/sonner'; import { useTranslation } from 'next-i18next'; import { useState } from 'react'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/blocks/design/components/TableDescription.tsx b/apps/nextjs-app/src/features/app/blocks/design/components/TableDescription.tsx index 2815b4750..9c914ffdd 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/components/TableDescription.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/components/TableDescription.tsx @@ -1,7 +1,7 @@ -import { useTable, useTablePermission } from '@teable-group/sdk/hooks'; -import type { Table } from '@teable-group/sdk/model'; -import { Button, Label, Textarea } from '@teable-group/ui-lib/shadcn'; -import { toast } from '@teable-group/ui-lib/shadcn/ui/sonner'; +import { useTable, useTablePermission } from '@teable/sdk/hooks'; +import type { Table } from '@teable/sdk/model'; +import { Button, Label, Textarea } from '@teable/ui-lib/shadcn'; +import { toast } from '@teable/ui-lib/shadcn/ui/sonner'; import { useTranslation } from 'next-i18next'; import { useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/design/components/TableName.tsx b/apps/nextjs-app/src/features/app/blocks/design/components/TableName.tsx index 1ae00ad0a..583228744 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/components/TableName.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/components/TableName.tsx @@ -1,7 +1,7 @@ -import { useTable, useTablePermission } from '@teable-group/sdk/hooks'; -import type { Table } from '@teable-group/sdk/model'; -import { Button, Input, Label } from '@teable-group/ui-lib/shadcn'; -import { toast } from '@teable-group/ui-lib/shadcn/ui/sonner'; +import { useTable, useTablePermission } from '@teable/sdk/hooks'; +import type { Table } from '@teable/sdk/model'; +import { Button, Input, Label } from '@teable/ui-lib/shadcn'; +import { toast } from '@teable/ui-lib/shadcn/ui/sonner'; import { useTranslation } from 'next-i18next'; import { useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/design/data-table/DataTable.tsx b/apps/nextjs-app/src/features/app/blocks/design/data-table/DataTable.tsx index db5c14850..44e19ed58 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/data-table/DataTable.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/data-table/DataTable.tsx @@ -14,7 +14,7 @@ import { getSortedRowModel, useReactTable, } from '@tanstack/react-table'; -import { useFields } from '@teable-group/sdk/hooks'; +import { useFields } from '@teable/sdk/hooks'; import { Table, @@ -23,7 +23,7 @@ import { TableHead, TableHeader, TableRow, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; import * as React from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/design/data-table/FieldGraph.tsx b/apps/nextjs-app/src/features/app/blocks/design/data-table/FieldGraph.tsx index 102a51fe7..4cdf64ff8 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/data-table/FieldGraph.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/data-table/FieldGraph.tsx @@ -1,4 +1,4 @@ -import { useTable } from '@teable-group/sdk/hooks'; +import { useTable } from '@teable/sdk/hooks'; import { Dialog, DialogTrigger, @@ -6,7 +6,7 @@ import { DialogContent, DialogFooter, DialogClose, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { DynamicFieldGraph } from '../../graph/DynamicFieldGraph'; export const FieldGraph = ({ fieldId }: { fieldId: string }) => { const table = useTable(); diff --git a/apps/nextjs-app/src/features/app/blocks/design/data-table/useDataColumns.tsx b/apps/nextjs-app/src/features/app/blocks/design/data-table/useDataColumns.tsx index b4864f02b..83a21f5d1 100644 --- a/apps/nextjs-app/src/features/app/blocks/design/data-table/useDataColumns.tsx +++ b/apps/nextjs-app/src/features/app/blocks/design/data-table/useDataColumns.tsx @@ -1,12 +1,7 @@ import type { ColumnDef } from '@tanstack/react-table'; -import type { IFieldVo } from '@teable-group/core'; -import { Checked, Lock } from '@teable-group/icons'; -import { - Tooltip, - TooltipContent, - TooltipProvider, - TooltipTrigger, -} from '@teable-group/ui-lib/shadcn'; +import type { IFieldVo } from '@teable/core'; +import { Checked, Lock } from '@teable/icons'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@teable/ui-lib/shadcn'; import { Actions } from '../components/Actions'; import { FieldPropertyEditor } from '../components/FieldPropertyEditor'; import { FieldGraph } from './FieldGraph'; diff --git a/apps/nextjs-app/src/features/app/blocks/graph/CellGraph.tsx b/apps/nextjs-app/src/features/app/blocks/graph/CellGraph.tsx index a4e1a8ff1..5f05e8682 100644 --- a/apps/nextjs-app/src/features/app/blocks/graph/CellGraph.tsx +++ b/apps/nextjs-app/src/features/app/blocks/graph/CellGraph.tsx @@ -1,9 +1,9 @@ import { useMutation } from '@tanstack/react-query'; -import { ColorUtils } from '@teable-group/core'; -import { DraggableHandle, X } from '@teable-group/icons'; -import { IdReturnType, getGraph, getIdsFromRanges } from '@teable-group/openapi'; -import { useBase, useTableId, useViewId } from '@teable-group/sdk'; -import { Button } from '@teable-group/ui-lib/shadcn'; +import { ColorUtils } from '@teable/core'; +import { DraggableHandle, X } from '@teable/icons'; +import { IdReturnType, getGraph, getIdsFromRanges } from '@teable/openapi'; +import { useBase, useTableId, useViewId } from '@teable/sdk'; +import { Button } from '@teable/ui-lib/shadcn'; import { useEffect, useRef, useState } from 'react'; import { Rnd } from 'react-rnd'; import { useMount } from 'react-use'; diff --git a/apps/nextjs-app/src/features/app/blocks/graph/DynamicCellGraph.tsx b/apps/nextjs-app/src/features/app/blocks/graph/DynamicCellGraph.tsx index 8b74237c2..e6c034bfa 100644 --- a/apps/nextjs-app/src/features/app/blocks/graph/DynamicCellGraph.tsx +++ b/apps/nextjs-app/src/features/app/blocks/graph/DynamicCellGraph.tsx @@ -1,4 +1,4 @@ -import { Skeleton } from '@teable-group/ui-lib/shadcn'; +import { Skeleton } from '@teable/ui-lib/shadcn'; import dynamic from 'next/dynamic'; export const DynamicCellGraph = dynamic(() => import('./CellGraph').then((mod) => mod.CellGraph), { diff --git a/apps/nextjs-app/src/features/app/blocks/graph/DynamicFieldGraph.tsx b/apps/nextjs-app/src/features/app/blocks/graph/DynamicFieldGraph.tsx index e9cde82dd..2841ed7e9 100644 --- a/apps/nextjs-app/src/features/app/blocks/graph/DynamicFieldGraph.tsx +++ b/apps/nextjs-app/src/features/app/blocks/graph/DynamicFieldGraph.tsx @@ -1,4 +1,4 @@ -import { Skeleton } from '@teable-group/ui-lib/shadcn'; +import { Skeleton } from '@teable/ui-lib/shadcn'; import dynamic from 'next/dynamic'; export const DynamicFieldGraph = dynamic( diff --git a/apps/nextjs-app/src/features/app/blocks/graph/FieldGraph.tsx b/apps/nextjs-app/src/features/app/blocks/graph/FieldGraph.tsx index 6770a7278..aa1d07ae4 100644 --- a/apps/nextjs-app/src/features/app/blocks/graph/FieldGraph.tsx +++ b/apps/nextjs-app/src/features/app/blocks/graph/FieldGraph.tsx @@ -1,6 +1,6 @@ -import type { IFieldRo } from '@teable-group/core'; -import { ColorUtils } from '@teable-group/core'; -import { Badge } from '@teable-group/ui-lib/shadcn'; +import type { IFieldRo } from '@teable/core'; +import { ColorUtils } from '@teable/core'; +import { Badge } from '@teable/ui-lib/shadcn'; import dayjs from 'dayjs'; import duration from 'dayjs/plugin/duration'; import relativeTime from 'dayjs/plugin/relativeTime'; diff --git a/apps/nextjs-app/src/features/app/blocks/graph/ProgressBar.tsx b/apps/nextjs-app/src/features/app/blocks/graph/ProgressBar.tsx index 5e36d8093..aed15df8c 100644 --- a/apps/nextjs-app/src/features/app/blocks/graph/ProgressBar.tsx +++ b/apps/nextjs-app/src/features/app/blocks/graph/ProgressBar.tsx @@ -1,4 +1,4 @@ -import { Progress } from '@teable-group/ui-lib/shadcn'; +import { Progress } from '@teable/ui-lib/shadcn'; import React, { useState, useEffect } from 'react'; export function ProgressBar({ duration, cellCount }: { duration: number; cellCount: number }) { diff --git a/apps/nextjs-app/src/features/app/blocks/graph/useGraph.tsx b/apps/nextjs-app/src/features/app/blocks/graph/useGraph.tsx index 4353441b8..98df7e316 100644 --- a/apps/nextjs-app/src/features/app/blocks/graph/useGraph.tsx +++ b/apps/nextjs-app/src/features/app/blocks/graph/useGraph.tsx @@ -1,7 +1,7 @@ import type { GraphData, Graph as IGraph } from '@antv/g6'; import G6 from '@antv/g6'; -import { ThemeKey } from '@teable-group/sdk/context'; -import { useTheme } from '@teable-group/sdk/hooks'; +import { ThemeKey } from '@teable/sdk/context'; +import { useTheme } from '@teable/sdk/hooks'; import type { RefObject } from 'react'; import { useCallback, useEffect, useRef } from 'react'; export const useGraph = (ref: RefObject) => { diff --git a/apps/nextjs-app/src/features/app/blocks/graph/usePlan.ts b/apps/nextjs-app/src/features/app/blocks/graph/usePlan.ts index 184c8a3b4..455614607 100644 --- a/apps/nextjs-app/src/features/app/blocks/graph/usePlan.ts +++ b/apps/nextjs-app/src/features/app/blocks/graph/usePlan.ts @@ -1,7 +1,7 @@ import { useQuery } from '@tanstack/react-query'; -import type { IFieldRo } from '@teable-group/core'; -import { planField, planFieldCreate, planFieldConvert } from '@teable-group/openapi'; -import { ReactQueryKeys } from '@teable-group/sdk/config'; +import type { IFieldRo } from '@teable/core'; +import { planField, planFieldCreate, planFieldConvert } from '@teable/openapi'; +import { ReactQueryKeys } from '@teable/sdk/config'; import { useEffect } from 'react'; export function usePlan({ diff --git a/apps/nextjs-app/src/features/app/blocks/setting/SettingRight.tsx b/apps/nextjs-app/src/features/app/blocks/setting/SettingRight.tsx index ce90a987b..b4df1840e 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/SettingRight.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/SettingRight.tsx @@ -1,12 +1,6 @@ -import { Home } from '@teable-group/icons'; -import { useSession } from '@teable-group/sdk/hooks'; -import { - Avatar, - AvatarFallback, - AvatarImage, - Button, - Separator, -} from '@teable-group/ui-lib/shadcn'; +import { Home } from '@teable/icons'; +import { useSession } from '@teable/sdk/hooks'; +import { Avatar, AvatarFallback, AvatarImage, Button, Separator } from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; import { UserNav } from '../../components/user/UserNav'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/AccessTokenList.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/AccessTokenList.tsx index 3e8ce82c8..3143479a8 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/AccessTokenList.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/AccessTokenList.tsx @@ -1,10 +1,10 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; -import type { AllActions } from '@teable-group/core'; -import { Plus } from '@teable-group/icons'; -import { deleteAccessToken, listAccessToken } from '@teable-group/openapi'; -import { ReactQueryKeys } from '@teable-group/sdk/config'; -import { usePermissionActionsStatic } from '@teable-group/sdk/hooks'; -import { ConfirmDialog } from '@teable-group/ui-lib/base'; +import type { AllActions } from '@teable/core'; +import { Plus } from '@teable/icons'; +import { deleteAccessToken, listAccessToken } from '@teable/openapi'; +import { ReactQueryKeys } from '@teable/sdk/config'; +import { usePermissionActionsStatic } from '@teable/sdk/hooks'; +import { ConfirmDialog } from '@teable/ui-lib/base'; import { Table, TableHeader, @@ -15,7 +15,7 @@ import { TableCaption, Button, Input, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; import { useRef, useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenForm.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenForm.tsx index 144fbd453..bb2d72a74 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenForm.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenForm.tsx @@ -5,8 +5,8 @@ import { type CreateAccessTokenVo, type UpdateAccessTokenRo, type UpdateAccessTokenVo, -} from '@teable-group/openapi'; -import { ReactQueryKeys } from '@teable-group/sdk/config'; +} from '@teable/openapi'; +import { ReactQueryKeys } from '@teable/sdk/config'; import { useRouter } from 'next/router'; import type { IFormType } from './form/AccessTokenForm'; import { AccessTokenForm } from './form/AccessTokenForm'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenPage.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenPage.tsx index c141d6e5d..4b5f6cd0a 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenPage.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenPage.tsx @@ -1,4 +1,4 @@ -import type { CreateAccessTokenVo, UpdateAccessTokenVo } from '@teable-group/openapi'; +import type { CreateAccessTokenVo, UpdateAccessTokenVo } from '@teable/openapi'; import { useRouter } from 'next/router'; import { useEffect, useRef } from 'react'; import { SettingRight } from '../SettingRight'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenTitle.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenTitle.tsx index 3f8a78012..971011f3c 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenTitle.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/PersonAccessTokenTitle.tsx @@ -1,4 +1,4 @@ -import { Button } from '@teable-group/ui-lib/shadcn'; +import { Button } from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; import type { IFormType } from './form/AccessTokenForm'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessList.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessList.tsx index 184e110fb..ff13b4a35 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessList.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessList.tsx @@ -1,8 +1,8 @@ import { useQuery } from '@tanstack/react-query'; -import { Component, Database, X } from '@teable-group/icons'; -import type { IGetBaseVo, IGetSpaceVo } from '@teable-group/openapi'; -import { getBaseAll, getSpaceList } from '@teable-group/openapi'; -import { Button } from '@teable-group/ui-lib/shadcn'; +import { Component, Database, X } from '@teable/icons'; +import type { IGetBaseVo, IGetSpaceVo } from '@teable/openapi'; +import { getBaseAll, getSpaceList } from '@teable/openapi'; +import { Button } from '@teable/ui-lib/shadcn'; import { isEmpty } from 'lodash'; import { useTranslation } from 'next-i18next'; import { useMemo } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessSelect.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessSelect.tsx index 6ebdaf663..0ba3fbb9b 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessSelect.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessSelect.tsx @@ -1,8 +1,8 @@ import { useQuery } from '@tanstack/react-query'; -import { Component, Database, Plus } from '@teable-group/icons'; -import type { IGetBaseVo } from '@teable-group/openapi'; -import { getBaseAll, getSpaceList } from '@teable-group/openapi'; -import { Spin } from '@teable-group/ui-lib/base'; +import { Component, Database, Plus } from '@teable/icons'; +import type { IGetBaseVo } from '@teable/openapi'; +import { getBaseAll, getSpaceList } from '@teable/openapi'; +import { Spin } from '@teable/ui-lib/base'; import { Button, Command, @@ -14,7 +14,7 @@ import { Popover, PopoverContent, PopoverTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; import { useMemo, useState } from 'react'; import { Emoji } from '@/features/app/components/emoji/Emoji'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessTokenForm.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessTokenForm.tsx index 903616114..798b246e4 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessTokenForm.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessTokenForm.tsx @@ -1,12 +1,12 @@ -import type { AllActions } from '@teable-group/core'; +import type { AllActions } from '@teable/core'; import { createAccessTokenRoSchema, type CreateAccessTokenRo, type UpdateAccessTokenRo, updateAccessTokenRoSchema, -} from '@teable-group/openapi'; -import { Spin } from '@teable-group/ui-lib/base'; -import { Button, Input, Label, Separator } from '@teable-group/ui-lib/shadcn'; +} from '@teable/openapi'; +import { Spin } from '@teable/ui-lib/base'; +import { Button, Input, Label, Separator } from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; import { useMemo, useState } from 'react'; import { personalAccessTokenConfig } from '@/features/i18n/personal-access-token.config'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessTokenFormEdit.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessTokenFormEdit.tsx index 09fc7cdd3..d6401d234 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessTokenFormEdit.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/AccessTokenFormEdit.tsx @@ -1,7 +1,7 @@ import { useQuery } from '@tanstack/react-query'; -import { getAccessToken } from '@teable-group/openapi'; -import { ReactQueryKeys } from '@teable-group/sdk/config'; -import { Skeleton } from '@teable-group/ui-lib/shadcn'; +import { getAccessToken } from '@teable/openapi'; +import { ReactQueryKeys } from '@teable/sdk/config'; +import { Skeleton } from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import type { IAccessTokenForm } from './AccessTokenForm'; import { AccessTokenForm } from './AccessTokenForm'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/ExpirationSelect.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/ExpirationSelect.tsx index 0f2283e10..435ddf322 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/ExpirationSelect.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/ExpirationSelect.tsx @@ -11,7 +11,7 @@ import { PopoverContent, PopoverTrigger, cn, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import dayjs from 'dayjs'; import { useTranslation } from 'next-i18next'; import { useMemo, useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/RefreshToken.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/RefreshToken.tsx index 90aae0592..0986254eb 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/RefreshToken.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/RefreshToken.tsx @@ -1,8 +1,8 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { RefreshAccessTokenRo } from '@teable-group/openapi'; -import { refreshAccessToken } from '@teable-group/openapi'; -import { ReactQueryKeys } from '@teable-group/sdk/config'; -import { Spin } from '@teable-group/ui-lib/base'; +import type { RefreshAccessTokenRo } from '@teable/openapi'; +import { refreshAccessToken } from '@teable/openapi'; +import { ReactQueryKeys } from '@teable/sdk/config'; +import { Spin } from '@teable/ui-lib/base'; import { Dialog, DialogTrigger, @@ -13,7 +13,7 @@ import { DialogDescription, DialogFooter, Label, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; import { useState } from 'react'; import { personalAccessTokenConfig } from '@/features/i18n/personal-access-token.config'; diff --git a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/ScopesSelect.tsx b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/ScopesSelect.tsx index f11f7ea89..401241295 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/ScopesSelect.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/access-token/form/ScopesSelect.tsx @@ -1,6 +1,6 @@ -import { actionPrefixMap, type ActionPrefix, type AllActions } from '@teable-group/core'; -import { usePermissionActionsStatic } from '@teable-group/sdk/hooks'; -import { Checkbox, Label } from '@teable-group/ui-lib/shadcn'; +import { actionPrefixMap, type ActionPrefix, type AllActions } from '@teable/core'; +import { usePermissionActionsStatic } from '@teable/sdk/hooks'; +import { Checkbox, Label } from '@teable/ui-lib/shadcn'; import { useState } from 'react'; interface IScopesSelectProps { diff --git a/apps/nextjs-app/src/features/app/blocks/setting/sidebar/SettingSidebar.tsx b/apps/nextjs-app/src/features/app/blocks/setting/sidebar/SettingSidebar.tsx index 82b998818..631e873b5 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/sidebar/SettingSidebar.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/sidebar/SettingSidebar.tsx @@ -1,5 +1,5 @@ -import { TeableNew } from '@teable-group/icons'; -import { Separator } from '@teable-group/ui-lib/shadcn'; +import { TeableNew } from '@teable/icons'; +import { Separator } from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; interface ISettingSidebarProps { diff --git a/apps/nextjs-app/src/features/app/blocks/setting/sidebar/SidebarContent.tsx b/apps/nextjs-app/src/features/app/blocks/setting/sidebar/SidebarContent.tsx index db8547107..00b0bd4ac 100644 --- a/apps/nextjs-app/src/features/app/blocks/setting/sidebar/SidebarContent.tsx +++ b/apps/nextjs-app/src/features/app/blocks/setting/sidebar/SidebarContent.tsx @@ -1,5 +1,5 @@ -import { Key } from '@teable-group/icons'; -import { Button } from '@teable-group/ui-lib/shadcn'; +import { Key } from '@teable/icons'; +import { Button } from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; import { personalAccessTokenConfig } from '@/features/i18n/personal-access-token.config'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/AuthPage.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/AuthPage.tsx index 3ea684e39..198608900 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/AuthPage.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/AuthPage.tsx @@ -1,8 +1,8 @@ import { useMutation } from '@tanstack/react-query'; -import { HttpError, sharePasswordSchema } from '@teable-group/core'; -import { shareViewAuth } from '@teable-group/openapi'; -import { Button, Input, Label } from '@teable-group/ui-lib'; -import { Spin } from '@teable-group/ui-lib/base'; +import { HttpError, sharePasswordSchema } from '@teable/core'; +import { shareViewAuth } from '@teable/openapi'; +import { Button, Input, Label } from '@teable/ui-lib'; +import { Spin } from '@teable/ui-lib/base'; import { useRouter } from 'next/router'; import { useState } from 'react'; import { fromZodError } from 'zod-validation-error'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/ShareView.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/ShareView.tsx index a97c4c5ff..07ee48f29 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/ShareView.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/ShareView.tsx @@ -1,5 +1,5 @@ -import { ViewType } from '@teable-group/core'; -import { useIsHydrated } from '@teable-group/sdk/hooks'; +import { ViewType } from '@teable/core'; +import { useIsHydrated } from '@teable/sdk/hooks'; import { useContext } from 'react'; import { FormView } from './component/FormView'; import { GridView } from './component/grid/GridView'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/ShareViewPage.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/ShareViewPage.tsx index f58eb6edb..5e5c02409 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/ShareViewPage.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/ShareViewPage.tsx @@ -1,6 +1,6 @@ -import type { ShareViewGetVo } from '@teable-group/openapi'; -import { AnchorContext, AppProvider, FieldProvider, ViewProvider } from '@teable-group/sdk/context'; -import { getWsPath } from '@teable-group/sdk/context/app/useConnection'; +import type { ShareViewGetVo } from '@teable/openapi'; +import { AnchorContext, AppProvider, FieldProvider, ViewProvider } from '@teable/sdk/context'; +import { getWsPath } from '@teable/sdk/context/app/useConnection'; import { useMemo } from 'react'; import { useTitle } from 'react-use'; import { useSdkLocale } from '@/features/app/hooks/useSdkLocale'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/ShareViewPageContext.ts b/apps/nextjs-app/src/features/app/blocks/share/view/ShareViewPageContext.ts index 03645f2a7..f255d7b9e 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/ShareViewPageContext.ts +++ b/apps/nextjs-app/src/features/app/blocks/share/view/ShareViewPageContext.ts @@ -1,4 +1,4 @@ -import type { ShareViewGetVo } from '@teable-group/openapi'; +import type { ShareViewGetVo } from '@teable/openapi'; import React from 'react'; export const ShareViewPageContext = React.createContext(null!); diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/ViewProxy.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/ViewProxy.tsx index 2fed3834c..57d30b5e1 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/ViewProxy.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/ViewProxy.tsx @@ -1,6 +1,6 @@ -import type { IViewVo, ISort, IColumnMetaRo, IFilter, IGroup } from '@teable-group/core'; -import { ViewContext, createViewInstance, useView } from '@teable-group/sdk'; -import type { IViewInstance } from '@teable-group/sdk'; +import type { IViewVo, ISort, IColumnMetaRo, IFilter, IGroup } from '@teable/core'; +import { ViewContext, createViewInstance, useView } from '@teable/sdk'; +import type { IViewInstance } from '@teable/sdk'; import { useEffect, useState } from 'react'; type IProxyViewKey = 'filter' | 'sort' | 'rowHeight'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/component/FormView.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/component/FormView.tsx index 79d740883..1090fce2c 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/component/FormView.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/component/FormView.tsx @@ -1,5 +1,5 @@ import { useMutation } from '@tanstack/react-query'; -import { shareViewFormSubmit } from '@teable-group/openapi'; +import { shareViewFormSubmit } from '@teable/openapi'; import { useContext } from 'react'; import { FormPreviewer } from '../../../view/form/components'; import { ShareViewPageContext } from '../ShareViewPageContext'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/GridView.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/GridView.tsx index 84c882867..e11d56542 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/GridView.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/GridView.tsx @@ -1,7 +1,7 @@ /* eslint-disable @next/next/no-html-link-for-pages */ -import { TeableNew } from '@teable-group/icons'; -import { ActionTriggerProvider, RecordProvider } from '@teable-group/sdk/context'; -import { useIsHydrated, useView } from '@teable-group/sdk/hooks'; +import { TeableNew } from '@teable/icons'; +import { ActionTriggerProvider, RecordProvider } from '@teable/sdk/context'; +import { useIsHydrated, useView } from '@teable/sdk/hooks'; import { useContext } from 'react'; import { ShareViewPageContext } from '../../ShareViewPageContext'; import { AggregationProvider, RowCountProvider, GroupPointProvider } from './aggregation'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/GridViewBase.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/GridViewBase.tsx index bd0371ff8..6c4740b15 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/GridViewBase.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/GridViewBase.tsx @@ -1,8 +1,8 @@ import { useMutation } from '@tanstack/react-query'; -import type { GridViewOptions, IFilter, IGetRecordsRo } from '@teable-group/core'; -import { RowHeightLevel, mergeFilter } from '@teable-group/core'; -import type { IRangesRo } from '@teable-group/openapi'; -import { shareViewCopy } from '@teable-group/openapi'; +import type { GridViewOptions, IFilter, IGetRecordsRo } from '@teable/core'; +import { RowHeightLevel, mergeFilter } from '@teable/core'; +import type { IRangesRo } from '@teable/openapi'; +import { shareViewCopy } from '@teable/openapi'; import type { CombinedSelection, ICell, @@ -10,7 +10,7 @@ import type { IGridRef, IGroupPoint, IRectangle, -} from '@teable-group/sdk/components'; +} from '@teable/sdk/components'; import { DraggableType, Grid, @@ -27,7 +27,7 @@ import { RowCounter, useGridColumnOrder, generateLocalId, -} from '@teable-group/sdk/components'; +} from '@teable/sdk/components'; import { useGroupPoint, useIsHydrated, @@ -37,8 +37,8 @@ import { useSSRRecords, useTableId, useView, -} from '@teable-group/sdk/hooks'; -import { Skeleton, useToast } from '@teable-group/ui-lib/shadcn'; +} from '@teable/sdk/hooks'; +import { Skeleton, useToast } from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { useCallback, useEffect, useMemo, useRef } from 'react'; import { useClickAway } from 'react-use'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/AggregationProvider.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/AggregationProvider.tsx index aecd2e137..1c0e102e7 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/AggregationProvider.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/AggregationProvider.tsx @@ -1,9 +1,9 @@ import { useQuery, useQueryClient } from '@tanstack/react-query'; -import type { IAggregationRo } from '@teable-group/core'; -import type { IShareViewAggregationsRo } from '@teable-group/openapi'; -import { getShareViewAggregations } from '@teable-group/openapi'; -import type { PropKeys } from '@teable-group/sdk'; -import { useView, ReactQueryKeys, AggregationContext, useActionTrigger } from '@teable-group/sdk'; +import type { IAggregationRo } from '@teable/core'; +import type { IShareViewAggregationsRo } from '@teable/openapi'; +import { getShareViewAggregations } from '@teable/openapi'; +import type { PropKeys } from '@teable/sdk'; +import { useView, ReactQueryKeys, AggregationContext, useActionTrigger } from '@teable/sdk'; import type { ReactNode } from 'react'; import { useCallback, useContext, useEffect, useMemo, useRef } from 'react'; import { ShareViewPageContext } from '../../../ShareViewPageContext'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/GroupPointProvider.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/GroupPointProvider.tsx index 0d095c623..9ed91e1e7 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/GroupPointProvider.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/GroupPointProvider.tsx @@ -1,7 +1,7 @@ import { useQuery, useQueryClient } from '@tanstack/react-query'; -import { getShareViewGroupPoints } from '@teable-group/openapi'; -import type { PropKeys } from '@teable-group/sdk'; -import { ReactQueryKeys, useActionTrigger, GroupPointContext, useView } from '@teable-group/sdk'; +import { getShareViewGroupPoints } from '@teable/openapi'; +import type { PropKeys } from '@teable/sdk'; +import { ReactQueryKeys, useActionTrigger, GroupPointContext, useView } from '@teable/sdk'; import type { ReactNode } from 'react'; import { useCallback, useContext, useEffect, useMemo } from 'react'; import { ShareViewPageContext } from '../../../ShareViewPageContext'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/RowCountProvider.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/RowCountProvider.tsx index 4a7cc1de7..41c7c6e46 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/RowCountProvider.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/aggregation/RowCountProvider.tsx @@ -1,9 +1,9 @@ import { useQuery, useQueryClient } from '@tanstack/react-query'; -import type { IShareViewRowCountRo } from '@teable-group/openapi'; -import { getShareViewRowCount } from '@teable-group/openapi'; -import type { PropKeys } from '@teable-group/sdk'; -import { RowCountContext, ReactQueryKeys, useActionTrigger } from '@teable-group/sdk'; -import { useView } from '@teable-group/sdk/hooks'; +import type { IShareViewRowCountRo } from '@teable/openapi'; +import { getShareViewRowCount } from '@teable/openapi'; +import type { PropKeys } from '@teable/sdk'; +import { RowCountContext, ReactQueryKeys, useActionTrigger } from '@teable/sdk'; +import { useView } from '@teable/sdk/hooks'; import type { ReactNode } from 'react'; import { useCallback, useContext, useEffect, useMemo } from 'react'; import { ShareViewPageContext } from '../../../ShareViewPageContext'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/toolbar/Sort.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/toolbar/Sort.tsx index c5050b0e8..7d6010de2 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/toolbar/Sort.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/toolbar/Sort.tsx @@ -1,5 +1,5 @@ -import type { ISort } from '@teable-group/core'; -import { SortBase, useSortNode } from '@teable-group/sdk/components'; +import type { ISort } from '@teable/core'; +import { SortBase, useSortNode } from '@teable/sdk/components'; import { isEqual } from 'lodash'; import React, { useEffect, useState } from 'react'; import { useDebounce } from 'react-use'; diff --git a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/toolbar/Toolbar.tsx b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/toolbar/Toolbar.tsx index 604047499..183f3f879 100644 --- a/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/toolbar/Toolbar.tsx +++ b/apps/nextjs-app/src/features/app/blocks/share/view/component/grid/toolbar/Toolbar.tsx @@ -1,6 +1,6 @@ -import type { GridViewOptions } from '@teable-group/core'; -import { ArrowUpDown, Filter as FilterIcon, LayoutList } from '@teable-group/icons'; -import { Filter, useView, RowHeight, Group } from '@teable-group/sdk'; +import type { GridViewOptions } from '@teable/core'; +import { ArrowUpDown, Filter as FilterIcon, LayoutList } from '@teable/icons'; +import { Filter, useView, RowHeight, Group } from '@teable/sdk'; import { useToolbarChange } from '@/features/app/blocks/view/hooks/useToolbarChange'; import { ToolBarButton } from '@/features/app/blocks/view/tool-bar/ToolBarButton'; import { Sort } from './Sort'; diff --git a/apps/nextjs-app/src/features/app/blocks/space/BaseCard.tsx b/apps/nextjs-app/src/features/app/blocks/space/BaseCard.tsx index 4e3fcfd7c..1e1e1a423 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/BaseCard.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/BaseCard.tsx @@ -1,9 +1,9 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'; -import { hasPermission } from '@teable-group/core'; -import { Database, MoreHorizontal } from '@teable-group/icons'; -import type { IGetBaseVo } from '@teable-group/openapi'; -import { deleteBase, updateBase } from '@teable-group/openapi'; -import { Button, Card, CardContent, Input } from '@teable-group/ui-lib/shadcn'; +import { hasPermission } from '@teable/core'; +import { Database, MoreHorizontal } from '@teable/icons'; +import type { IGetBaseVo } from '@teable/openapi'; +import { deleteBase, updateBase } from '@teable/openapi'; +import { Button, Card, CardContent, Input } from '@teable/ui-lib/shadcn'; import classNames from 'classnames'; import { useRouter } from 'next/router'; import { useState, type FC, useRef } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/space/SpaceCard.tsx b/apps/nextjs-app/src/features/app/blocks/space/SpaceCard.tsx index bf658e0a2..3616087a1 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/SpaceCard.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/SpaceCard.tsx @@ -1,7 +1,7 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { IGetBaseVo, IGetSpaceVo } from '@teable-group/openapi'; -import { deleteSpace, updateSpace } from '@teable-group/openapi'; -import { Card, CardContent, CardHeader, CardTitle } from '@teable-group/ui-lib/shadcn'; +import type { IGetBaseVo, IGetSpaceVo } from '@teable/openapi'; +import { deleteSpace, updateSpace } from '@teable/openapi'; +import { Card, CardContent, CardHeader, CardTitle } from '@teable/ui-lib/shadcn'; import { type FC, useEffect, useState } from 'react'; import { SpaceActionBar } from '../../components/space/SpaceActionBar'; import { SpaceRenaming } from '../../components/space/SpaceRenaming'; diff --git a/apps/nextjs-app/src/features/app/blocks/space/SpaceInnerPage.tsx b/apps/nextjs-app/src/features/app/blocks/space/SpaceInnerPage.tsx index ff5744d80..9a31eddbd 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/SpaceInnerPage.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/SpaceInnerPage.tsx @@ -1,5 +1,5 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; -import { deleteSpace, getBaseList, getSpaceById, updateSpace } from '@teable-group/openapi'; +import { deleteSpace, getBaseList, getSpaceById, updateSpace } from '@teable/openapi'; import { useRouter } from 'next/router'; import { useEffect, useRef, useState } from 'react'; import { Collaborators } from '../../components/collaborator-manage/space-inner/Collaborators'; diff --git a/apps/nextjs-app/src/features/app/blocks/space/SpacePage.tsx b/apps/nextjs-app/src/features/app/blocks/space/SpacePage.tsx index 5f0046b1e..7f9fd38cf 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/SpacePage.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/SpacePage.tsx @@ -1,7 +1,7 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; -import { createSpace, getBaseAll, getSpaceList } from '@teable-group/openapi'; -import { Spin } from '@teable-group/ui-lib/base'; -import { Button } from '@teable-group/ui-lib/shadcn'; +import { createSpace, getBaseAll, getSpaceList } from '@teable/openapi'; +import { Spin } from '@teable/ui-lib/base'; +import { Button } from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { useRef, type FC } from 'react'; import { SpaceCard } from './SpaceCard'; diff --git a/apps/nextjs-app/src/features/app/blocks/space/component/BaseActionTrigger.tsx b/apps/nextjs-app/src/features/app/blocks/space/component/BaseActionTrigger.tsx index 115335367..d80a3b53c 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/component/BaseActionTrigger.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/component/BaseActionTrigger.tsx @@ -1,13 +1,13 @@ -import { Pencil, Trash2 } from '@teable-group/icons'; -import type { IGetBaseVo } from '@teable-group/openapi'; -import { ConfirmDialog } from '@teable-group/ui-lib/base'; +import { Pencil, Trash2 } from '@teable/icons'; +import type { IGetBaseVo } from '@teable/openapi'; +import { ConfirmDialog } from '@teable/ui-lib/base'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import React from 'react'; interface IBaseActionTrigger { diff --git a/apps/nextjs-app/src/features/app/blocks/space/component/SpaceActionTrigger.tsx b/apps/nextjs-app/src/features/app/blocks/space/component/SpaceActionTrigger.tsx index 358603848..b5886fa9c 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/component/SpaceActionTrigger.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/component/SpaceActionTrigger.tsx @@ -1,13 +1,13 @@ -import { Pencil, Trash2 } from '@teable-group/icons'; -import type { IGetSpaceVo } from '@teable-group/openapi'; -import { ConfirmDialog } from '@teable-group/ui-lib/base'; +import { Pencil, Trash2 } from '@teable/icons'; +import type { IGetSpaceVo } from '@teable/openapi'; +import { ConfirmDialog } from '@teable/ui-lib/base'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import React from 'react'; interface ISpaceActionTrigger { diff --git a/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SideBarHeader.tsx b/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SideBarHeader.tsx index 9a0a34989..93863a679 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SideBarHeader.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SideBarHeader.tsx @@ -1,4 +1,4 @@ -import { TeableNew } from '@teable-group/icons'; +import { TeableNew } from '@teable/icons'; export const SideBarHeader: React.FC = () => { return ( diff --git a/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceItem.tsx b/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceItem.tsx index 6ebf9c0b3..d28d4d7e5 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceItem.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceItem.tsx @@ -1,6 +1,6 @@ -import { Component } from '@teable-group/icons'; -import type { IGetSpaceVo } from '@teable-group/openapi'; -import { Button } from '@teable-group/ui-lib/shadcn'; +import { Component } from '@teable/icons'; +import type { IGetSpaceVo } from '@teable/openapi'; +import { Button } from '@teable/ui-lib/shadcn'; import classNames from 'classnames'; import Link from 'next/link'; import { useRef } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceList.tsx b/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceList.tsx index 271dab973..0e7ef0439 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceList.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceList.tsx @@ -1,8 +1,8 @@ import { useMutation, useQuery } from '@tanstack/react-query'; -import { Plus } from '@teable-group/icons'; -import { createSpace, getSpaceList } from '@teable-group/openapi'; -import { Spin } from '@teable-group/ui-lib/base'; -import { Button } from '@teable-group/ui-lib/shadcn'; +import { Plus } from '@teable/icons'; +import { createSpace, getSpaceList } from '@teable/openapi'; +import { Spin } from '@teable/ui-lib/base'; +import { Button } from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { type FC } from 'react'; import { SpaceItem } from './SpaceItem'; diff --git a/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceSideBar.tsx b/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceSideBar.tsx index 59e6bab51..628b141c5 100644 --- a/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceSideBar.tsx +++ b/apps/nextjs-app/src/features/app/blocks/space/space-side-bar/SpaceSideBar.tsx @@ -1,6 +1,6 @@ -import { Home } from '@teable-group/icons'; -import { cn } from '@teable-group/ui-lib/shadcn'; -import { Button } from '@teable-group/ui-lib/shadcn/ui/button'; +import { Home } from '@teable/icons'; +import { cn } from '@teable/ui-lib/shadcn'; +import { Button } from '@teable/ui-lib/shadcn/ui/button'; import Link from 'next/link'; import { useRouter } from 'next/router'; import { SpaceList } from './SpaceList'; diff --git a/apps/nextjs-app/src/features/app/blocks/table-list/DraggableList.tsx b/apps/nextjs-app/src/features/app/blocks/table-list/DraggableList.tsx index 712a1f85d..0d2cb310c 100644 --- a/apps/nextjs-app/src/features/app/blocks/table-list/DraggableList.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table-list/DraggableList.tsx @@ -1,10 +1,10 @@ -import { useTableId, useTables, useIsHydrated, swapReorder } from '@teable-group/sdk'; +import { useTableId, useTables, useIsHydrated, swapReorder } from '@teable/sdk'; import { DndKitContext, Droppable, Draggable, type DragEndEvent, -} from '@teable-group/ui-lib/base/dnd-kit'; +} from '@teable/ui-lib/base/dnd-kit'; import classNames from 'classnames'; import { useState, useEffect } from 'react'; import { TableListItem } from './TableListItem'; diff --git a/apps/nextjs-app/src/features/app/blocks/table-list/FailAlert.tsx b/apps/nextjs-app/src/features/app/blocks/table-list/FailAlert.tsx index 2eeff8944..2f378e5a8 100644 --- a/apps/nextjs-app/src/features/app/blocks/table-list/FailAlert.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table-list/FailAlert.tsx @@ -1,5 +1,5 @@ -import { Frown } from '@teable-group/icons'; -import { Alert, AlertDescription, AlertTitle } from '@teable-group/ui-lib/shadcn/ui/alert'; +import { Frown } from '@teable/icons'; +import { Alert, AlertDescription, AlertTitle } from '@teable/ui-lib/shadcn/ui/alert'; export const FailAlert: React.FC = () => { return ( diff --git a/apps/nextjs-app/src/features/app/blocks/table-list/NoDraggableList.tsx b/apps/nextjs-app/src/features/app/blocks/table-list/NoDraggableList.tsx index 3d9782e49..a06512af0 100644 --- a/apps/nextjs-app/src/features/app/blocks/table-list/NoDraggableList.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table-list/NoDraggableList.tsx @@ -1,4 +1,4 @@ -import { useTableId, useTables } from '@teable-group/sdk'; +import { useTableId, useTables } from '@teable/sdk'; import { TableListItem } from './TableListItem'; export const NoDraggableList: React.FC = () => { diff --git a/apps/nextjs-app/src/features/app/blocks/table-list/TableList.tsx b/apps/nextjs-app/src/features/app/blocks/table-list/TableList.tsx index f31d0bc6a..4b469c5d1 100644 --- a/apps/nextjs-app/src/features/app/blocks/table-list/TableList.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table-list/TableList.tsx @@ -1,6 +1,6 @@ -import { useConnection, useTablePermission } from '@teable-group/sdk'; -import AddBoldIcon from '@teable-group/ui-lib/icons/app/add-bold.svg'; -import { Button } from '@teable-group/ui-lib/shadcn/ui/button'; +import { useConnection, useTablePermission } from '@teable/sdk'; +import AddBoldIcon from '@teable/ui-lib/icons/app/add-bold.svg'; +import { Button } from '@teable/ui-lib/shadcn/ui/button'; import { DraggableList } from './DraggableList'; import { NoDraggableList } from './NoDraggableList'; import { useAddTable } from './useAddTable'; diff --git a/apps/nextjs-app/src/features/app/blocks/table-list/TableListItem.tsx b/apps/nextjs-app/src/features/app/blocks/table-list/TableListItem.tsx index b26ef4263..09f59db0f 100644 --- a/apps/nextjs-app/src/features/app/blocks/table-list/TableListItem.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table-list/TableListItem.tsx @@ -1,8 +1,8 @@ -import { Table2 } from '@teable-group/icons'; -import { useTablePermission } from '@teable-group/sdk/hooks'; -import type { Table } from '@teable-group/sdk/model'; -import { Button } from '@teable-group/ui-lib/shadcn'; -import { Input } from '@teable-group/ui-lib/shadcn/ui/input'; +import { Table2 } from '@teable/icons'; +import { useTablePermission } from '@teable/sdk/hooks'; +import type { Table } from '@teable/sdk/model'; +import { Button } from '@teable/ui-lib/shadcn'; +import { Input } from '@teable/ui-lib/shadcn/ui/input'; import classNames from 'classnames'; import { useRouter } from 'next/router'; import { useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/table-list/TableOperation.tsx b/apps/nextjs-app/src/features/app/blocks/table-list/TableOperation.tsx index bcba44a6a..eb905f12e 100644 --- a/apps/nextjs-app/src/features/app/blocks/table-list/TableOperation.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table-list/TableOperation.tsx @@ -1,13 +1,13 @@ -import { MoreHorizontal, Settings, Trash2 } from '@teable-group/icons'; -import { useBase, useTablePermission, useTables } from '@teable-group/sdk/hooks'; -import type { Table } from '@teable-group/sdk/model'; -import { ConfirmDialog } from '@teable-group/ui-lib/base'; +import { MoreHorizontal, Settings, Trash2 } from '@teable/icons'; +import { useBase, useTablePermission, useTables } from '@teable/sdk/hooks'; +import type { Table } from '@teable/sdk/model'; +import { ConfirmDialog } from '@teable/ui-lib/base'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import Link from 'next/link'; import { useRouter } from 'next/router'; import React, { useMemo } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/table-list/useAddTable.ts b/apps/nextjs-app/src/features/app/blocks/table-list/useAddTable.ts index 3603ffffc..ccaedd268 100644 --- a/apps/nextjs-app/src/features/app/blocks/table-list/useAddTable.ts +++ b/apps/nextjs-app/src/features/app/blocks/table-list/useAddTable.ts @@ -1,4 +1,4 @@ -import { useBase } from '@teable-group/sdk/hooks'; +import { useBase } from '@teable/sdk/hooks'; import { useRouter } from 'next/router'; import { useCallback } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/table/Table.tsx b/apps/nextjs-app/src/features/app/blocks/table/Table.tsx index 242cfc514..37be213a6 100644 --- a/apps/nextjs-app/src/features/app/blocks/table/Table.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table/Table.tsx @@ -1,5 +1,5 @@ -import type { IFieldVo, IRecord, IViewVo } from '@teable-group/core'; -import { AnchorContext, FieldProvider, useTable, ViewProvider } from '@teable-group/sdk'; +import type { IFieldVo, IRecord, IViewVo } from '@teable/core'; +import { AnchorContext, FieldProvider, useTable, ViewProvider } from '@teable/sdk'; import { useRouter } from 'next/router'; import { ErrorBoundary } from 'react-error-boundary'; import { useTitle } from 'react-use'; diff --git a/apps/nextjs-app/src/features/app/blocks/table/hooks/use-aggregations-query.ts b/apps/nextjs-app/src/features/app/blocks/table/hooks/use-aggregations-query.ts index 8d7088ec2..b02be85b6 100644 --- a/apps/nextjs-app/src/features/app/blocks/table/hooks/use-aggregations-query.ts +++ b/apps/nextjs-app/src/features/app/blocks/table/hooks/use-aggregations-query.ts @@ -1,5 +1,5 @@ -import type { IAggregationVo } from '@teable-group/core'; -import { Table } from '@teable-group/sdk/model'; +import type { IAggregationVo } from '@teable/core'; +import { Table } from '@teable/sdk/model'; import { useEffect, useState } from 'react'; export const useAggregationsQuery = (tableId: string, viewId: string) => { diff --git a/apps/nextjs-app/src/features/app/blocks/table/hooks/use-row-count-query.ts b/apps/nextjs-app/src/features/app/blocks/table/hooks/use-row-count-query.ts index 7511b8533..e99897290 100644 --- a/apps/nextjs-app/src/features/app/blocks/table/hooks/use-row-count-query.ts +++ b/apps/nextjs-app/src/features/app/blocks/table/hooks/use-row-count-query.ts @@ -1,4 +1,4 @@ -import { Table } from '@teable-group/sdk/model'; +import { Table } from '@teable/sdk/model'; import { useEffect, useState } from 'react'; export const useRowCountQuery = (tableId: string, viewId: string) => { diff --git a/apps/nextjs-app/src/features/app/blocks/table/table-header/AddView.tsx b/apps/nextjs-app/src/features/app/blocks/table/table-header/AddView.tsx index a45a75ce1..461ababb0 100644 --- a/apps/nextjs-app/src/features/app/blocks/table/table-header/AddView.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table/table-header/AddView.tsx @@ -1,7 +1,7 @@ -import { ViewType } from '@teable-group/core'; -import { Plus } from '@teable-group/icons'; -import { useTablePermission } from '@teable-group/sdk/hooks'; -import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib/shadcn'; +import { ViewType } from '@teable/core'; +import { Plus } from '@teable/icons'; +import { useTablePermission } from '@teable/sdk/hooks'; +import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib/shadcn'; import { useState } from 'react'; import { VIEW_ICON_MAP } from '../../view/constant'; import { useAddView } from '../../view/list/useAddView'; diff --git a/apps/nextjs-app/src/features/app/blocks/table/table-header/Collaborators.tsx b/apps/nextjs-app/src/features/app/blocks/table/table-header/Collaborators.tsx index 17a419579..49c960d82 100644 --- a/apps/nextjs-app/src/features/app/blocks/table/table-header/Collaborators.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table/table-header/Collaborators.tsx @@ -1,7 +1,7 @@ -import { ColorUtils, getCollaboratorsChannel, contractColorForTheme } from '@teable-group/core'; -import { useSession, useTheme } from '@teable-group/sdk'; -import type { IUser } from '@teable-group/sdk'; -import { useConnection } from '@teable-group/sdk/hooks'; +import { ColorUtils, getCollaboratorsChannel, contractColorForTheme } from '@teable/core'; +import { useSession, useTheme } from '@teable/sdk'; +import type { IUser } from '@teable/sdk'; +import { useConnection } from '@teable/sdk/hooks'; import { Avatar, AvatarFallback, @@ -12,7 +12,7 @@ import { Popover, PopoverContent, PopoverTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import classNames from 'classnames'; import { isEmpty, chunk } from 'lodash'; import { useRouter } from 'next/router'; diff --git a/apps/nextjs-app/src/features/app/blocks/table/table-header/TableHeader.tsx b/apps/nextjs-app/src/features/app/blocks/table/table-header/TableHeader.tsx index 440656aed..2335b554c 100644 --- a/apps/nextjs-app/src/features/app/blocks/table/table-header/TableHeader.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table/table-header/TableHeader.tsx @@ -1,6 +1,6 @@ -import { Settings, UserPlus } from '@teable-group/icons'; -import { useBase, useTableId } from '@teable-group/sdk/hooks'; -import { Button } from '@teable-group/ui-lib/shadcn'; +import { Settings, UserPlus } from '@teable/icons'; +import { useBase, useTableId } from '@teable/sdk/hooks'; +import { Button } from '@teable/ui-lib/shadcn'; import Link from 'next/link'; import { SpaceCollaboratorModalTrigger } from '@/features/app/components/collaborator-manage/space/SpaceCollaboratorModalTrigger'; diff --git a/apps/nextjs-app/src/features/app/blocks/table/table-header/TableInfo.tsx b/apps/nextjs-app/src/features/app/blocks/table/table-header/TableInfo.tsx index 6f22aa5ed..ac5dbe29f 100644 --- a/apps/nextjs-app/src/features/app/blocks/table/table-header/TableInfo.tsx +++ b/apps/nextjs-app/src/features/app/blocks/table/table-header/TableInfo.tsx @@ -1,6 +1,6 @@ -import { Table2 } from '@teable-group/icons'; -import { useConnection, useTable } from '@teable-group/sdk/hooks'; -import { Spin } from '@teable-group/ui-lib/base'; +import { Table2 } from '@teable/icons'; +import { useConnection, useTable } from '@teable/sdk/hooks'; +import { Spin } from '@teable/ui-lib/base'; import classNames from 'classnames'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/View.tsx b/apps/nextjs-app/src/features/app/blocks/view/View.tsx index 00bcf332f..f5ed59911 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/View.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/View.tsx @@ -1,5 +1,5 @@ -import { ViewType } from '@teable-group/core'; -import { useView } from '@teable-group/sdk'; +import { ViewType } from '@teable/core'; +import { useView } from '@teable/sdk'; import { FormView } from './form/FormView'; import { GridView } from './grid/GridView'; import type { IViewBaseProps } from './types'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/constant.ts b/apps/nextjs-app/src/features/app/blocks/view/constant.ts index af4571c02..ec0ab154c 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/constant.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/constant.ts @@ -1,5 +1,5 @@ -import { ViewType } from '@teable-group/core'; -import { Sheet, ClipboardList as Form } from '@teable-group/icons'; +import { ViewType } from '@teable/core'; +import { Sheet, ClipboardList as Form } from '@teable/icons'; export const VIEW_ICON_MAP = { [ViewType.Grid]: Sheet, diff --git a/apps/nextjs-app/src/features/app/blocks/view/field/FieldSetting.tsx b/apps/nextjs-app/src/features/app/blocks/view/field/FieldSetting.tsx index 669971ce6..a8725e15e 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/field/FieldSetting.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/field/FieldSetting.tsx @@ -1,5 +1,5 @@ -import { fieldVoSchema } from '@teable-group/core'; -import { useField } from '@teable-group/sdk'; +import { fieldVoSchema } from '@teable/core'; +import { useField } from '@teable/sdk'; import { FieldSetting as FieldSettingInner, FieldOperator, diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/FormViewBase.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/FormViewBase.tsx index 5c9f9d3a4..a684b0fcc 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/FormViewBase.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/FormViewBase.tsx @@ -1,6 +1,6 @@ -import { FieldKeyType } from '@teable-group/core'; -import { useIsMobile, useTableId, useTablePermission, useViewId } from '@teable-group/sdk/hooks'; -import { Record as RecordSdk } from '@teable-group/sdk/model'; +import { FieldKeyType } from '@teable/core'; +import { useIsMobile, useTableId, useTablePermission, useViewId } from '@teable/sdk/hooks'; +import { Record as RecordSdk } from '@teable/sdk/model'; import { FormMode, useFormModeStore } from '../tool-bar/store'; import { FormEditor, FormPreviewer } from './components'; import { generateUniqLocalKey } from './util'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/Drag.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/Drag.tsx index 07644597d..78ef061b3 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/Drag.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/Drag.tsx @@ -3,7 +3,7 @@ import type { UniqueIdentifier } from '@dnd-kit/core'; import { useDraggable } from '@dnd-kit/core'; import { useSortable } from '@dnd-kit/sortable'; import { CSS } from '@dnd-kit/utilities'; -import type { IFieldInstance } from '@teable-group/sdk/model'; +import type { IFieldInstance } from '@teable/sdk/model'; import classNames from 'classnames'; import React from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormCellEditor.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormCellEditor.tsx index cd647659c..e75e277ab 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormCellEditor.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormCellEditor.tsx @@ -1,9 +1,9 @@ -import type { IAttachmentCellValue, ILinkCellValue } from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; -import { AttachmentManager, CellEditor } from '@teable-group/sdk/components'; -import { UploadAttachment } from '@teable-group/sdk/components/editor/attachment/upload-attachment/UploadAttachment'; -import type { Field, LinkField } from '@teable-group/sdk/model'; -import { cn } from '@teable-group/ui-lib/shadcn'; +import type { IAttachmentCellValue, ILinkCellValue } from '@teable/core'; +import { FieldType } from '@teable/core'; +import { AttachmentManager, CellEditor } from '@teable/sdk/components'; +import { UploadAttachment } from '@teable/sdk/components/editor/attachment/upload-attachment/UploadAttachment'; +import type { Field, LinkField } from '@teable/sdk/model'; +import { cn } from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { ShareFormLinkEditor } from './share-link-editor/FormLinkEditor'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormEditor.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormEditor.tsx index 62069da31..b52b4a82a 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormEditor.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormEditor.tsx @@ -14,8 +14,8 @@ import { useIsHydrated, swapReorder, reorder, -} from '@teable-group/sdk'; -import type { IFieldInstance } from '@teable-group/sdk/model'; +} from '@teable/sdk'; +import type { IFieldInstance } from '@teable/sdk/model'; import { useMemo, useState } from 'react'; import { FieldSetting } from '../../grid/components'; import { FormEditorMain } from './FormEditorMain'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormEditorMain.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormEditorMain.tsx index 65ae04a45..715f0bdc9 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormEditorMain.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormEditorMain.tsx @@ -1,14 +1,14 @@ import { useDroppable } from '@dnd-kit/core'; import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable'; -import { generateAttachmentId } from '@teable-group/core'; -import { Pencil } from '@teable-group/icons'; -import type { INotifyVo } from '@teable-group/openapi'; -import { UploadType } from '@teable-group/openapi/src/attachment/signature'; -import type { IFile } from '@teable-group/sdk/components/editor/attachment/upload-attachment/uploadManage'; -import { AttachmentManager } from '@teable-group/sdk/components/editor/attachment/upload-attachment/uploadManage'; -import { useIsHydrated, useView } from '@teable-group/sdk/hooks'; -import type { FormView, IFieldInstance } from '@teable-group/sdk/model'; -import { Button, Input, Textarea, cn } from '@teable-group/ui-lib/shadcn'; +import { generateAttachmentId } from '@teable/core'; +import { Pencil } from '@teable/icons'; +import type { INotifyVo } from '@teable/openapi'; +import { UploadType } from '@teable/openapi'; +import type { IFile } from '@teable/sdk/components'; +import { AttachmentManager } from '@teable/sdk/components'; +import { useIsHydrated, useView } from '@teable/sdk/hooks'; +import type { FormView, IFieldInstance } from '@teable/sdk/model'; +import { Button, Input, Textarea, cn } from '@teable/ui-lib/shadcn'; import { useRef, useState } from 'react'; import { FieldOperator } from '@/features/app/components/field-setting'; import { useFieldSettingStore } from '../../field/useFieldSettingStore'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormField.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormField.tsx index a17f0d827..eacb9d95c 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormField.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormField.tsx @@ -1,5 +1,5 @@ -import { useFieldStaticGetter, useView } from '@teable-group/sdk/hooks'; -import type { IFieldInstance } from '@teable-group/sdk/model'; +import { useFieldStaticGetter, useView } from '@teable/sdk/hooks'; +import type { IFieldInstance } from '@teable/sdk/model'; import type { FC } from 'react'; import { FormCellEditor } from './FormCellEditor'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormFieldEditor.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormFieldEditor.tsx index 1f6dca17c..18832aac7 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormFieldEditor.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormFieldEditor.tsx @@ -1,8 +1,8 @@ /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */ -import { DraggableHandle, EyeOff } from '@teable-group/icons'; -import { CellEditor } from '@teable-group/sdk/components'; -import { useFieldStaticGetter, useTableId, useView } from '@teable-group/sdk/hooks'; -import type { IFieldInstance } from '@teable-group/sdk/model'; +import { DraggableHandle, EyeOff } from '@teable/icons'; +import { CellEditor } from '@teable/sdk/components'; +import { useFieldStaticGetter, useTableId, useView } from '@teable/sdk/hooks'; +import type { IFieldInstance } from '@teable/sdk/model'; import { Label, Switch, @@ -10,7 +10,7 @@ import { TooltipContent, TooltipProvider, TooltipTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import type { FC } from 'react'; interface IFormFieldEditorProps { diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormPreviewer.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormPreviewer.tsx index b1b683903..bc8d0fce6 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormPreviewer.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormPreviewer.tsx @@ -1,8 +1,8 @@ -import { Loader2 } from '@teable-group/icons'; -import { LocalStorageKeys } from '@teable-group/sdk/config'; -import { useFields, useTableId, useView } from '@teable-group/sdk/hooks'; -import { type FormView } from '@teable-group/sdk/model'; -import { Button, cn, useToast } from '@teable-group/ui-lib/shadcn'; +import { Loader2 } from '@teable/icons'; +import { LocalStorageKeys } from '@teable/sdk/config'; +import { useFields, useTableId, useView } from '@teable/sdk/hooks'; +import { type FormView } from '@teable/sdk/model'; +import { Button, cn, useToast } from '@teable/ui-lib/shadcn'; import { omit } from 'lodash'; import { useMemo, useRef, useState } from 'react'; import { useLocalStorage, useMap, useSet } from 'react-use'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormSidebar.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormSidebar.tsx index 8cb8191ab..b95f08614 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/FormSidebar.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/FormSidebar.tsx @@ -1,10 +1,10 @@ /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */ -import type { FieldType } from '@teable-group/core'; -import { DraggableHandle, Plus } from '@teable-group/icons'; -import { useView } from '@teable-group/sdk'; -import type { IFieldStatic } from '@teable-group/sdk/hooks'; -import { useFieldStaticGetter, useFields, useIsHydrated } from '@teable-group/sdk/hooks'; -import type { IFieldInstance } from '@teable-group/sdk/model'; +import type { FieldType } from '@teable/core'; +import { DraggableHandle, Plus } from '@teable/icons'; +import { useView } from '@teable/sdk'; +import type { IFieldStatic } from '@teable/sdk/hooks'; +import { useFieldStaticGetter, useFields, useIsHydrated } from '@teable/sdk/hooks'; +import type { IFieldInstance } from '@teable/sdk/model'; import { Button, Tooltip, @@ -12,7 +12,7 @@ import { TooltipProvider, TooltipTrigger, cn, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import type { FC } from 'react'; import { useMemo } from 'react'; import { FieldOperator } from '@/features/app/components/field-setting'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/share-link-editor/FormLinkEditor.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/share-link-editor/FormLinkEditor.tsx index 95132d7da..e19f500e0 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/share-link-editor/FormLinkEditor.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/share-link-editor/FormLinkEditor.tsx @@ -1,8 +1,8 @@ -import type { ILinkCellValue } from '@teable-group/core'; -import { Plus } from '@teable-group/icons'; -import { LinkCard } from '@teable-group/sdk/components'; -import type { LinkField } from '@teable-group/sdk/model'; -import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib/shadcn'; +import type { ILinkCellValue } from '@teable/core'; +import { Plus } from '@teable/icons'; +import { LinkCard } from '@teable/sdk/components'; +import type { LinkField } from '@teable/sdk/model'; +import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib/shadcn'; import { useMemo, useState } from 'react'; import { LinkRecordList } from './LinkRecordList'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/form/components/share-link-editor/LinkRecordList.tsx b/apps/nextjs-app/src/features/app/blocks/view/form/components/share-link-editor/LinkRecordList.tsx index 22b1d648d..258f6c047 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/form/components/share-link-editor/LinkRecordList.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/form/components/share-link-editor/LinkRecordList.tsx @@ -1,9 +1,9 @@ import { useInfiniteQuery, useQueryClient } from '@tanstack/react-query'; -import { contains } from '@teable-group/core'; -import type { IFilter, ILinkCellValue } from '@teable-group/core'; -import { getShareViewLinkRecords } from '@teable-group/openapi'; -import { LinkCard } from '@teable-group/sdk/components'; -import type { LinkField } from '@teable-group/sdk/model'; +import { contains } from '@teable/core'; +import type { IFilter, ILinkCellValue } from '@teable/core'; +import { getShareViewLinkRecords } from '@teable/openapi'; +import { LinkCard } from '@teable/sdk/components'; +import type { LinkField } from '@teable/sdk/model'; import { Button, Command, @@ -12,7 +12,7 @@ import { Input, Separator, cn, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { debounce } from 'lodash'; import { useEffect, useMemo, useState } from 'react'; import { useUnmount } from 'react-use'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/DomBox.tsx b/apps/nextjs-app/src/features/app/blocks/view/grid/DomBox.tsx index bbe0802d1..860d7562d 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/DomBox.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/DomBox.tsx @@ -1,4 +1,4 @@ -import { GridTooltip } from '@teable-group/sdk/components'; +import { GridTooltip } from '@teable/sdk/components'; import type { FC } from 'react'; import { RecordMenu, FieldMenu, FieldSetting, StatisticMenu } from './components'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/GridView.tsx b/apps/nextjs-app/src/features/app/blocks/view/grid/GridView.tsx index 2bcf5e01f..a6db38995 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/GridView.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/GridView.tsx @@ -4,8 +4,8 @@ import { RowCountProvider, ActionTriggerProvider, GroupPointProvider, -} from '@teable-group/sdk/context'; -import { useIsHydrated } from '@teable-group/sdk/hooks'; +} from '@teable/sdk/context'; +import { useIsHydrated } from '@teable/sdk/hooks'; import { DynamicCellGraph } from '../../graph/DynamicCellGraph'; import { useCellGraphStore } from '../../graph/useCellGraphStore'; import { GridToolBar } from '../tool-bar/GridToolBar'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/GridViewBase.tsx b/apps/nextjs-app/src/features/app/blocks/view/grid/GridViewBase.tsx index b694ef816..b7bd88f10 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/GridViewBase.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/GridViewBase.tsx @@ -1,5 +1,5 @@ -import type { PermissionAction } from '@teable-group/core'; -import { RowHeightLevel, contractColorForTheme } from '@teable-group/core'; +import type { PermissionAction } from '@teable/core'; +import { RowHeightLevel, contractColorForTheme } from '@teable/core'; import type { IRectangle, IPosition, @@ -10,7 +10,7 @@ import type { Record, GridView, IGroupPoint, -} from '@teable-group/sdk'; +} from '@teable/sdk'; import { Grid, CellType, @@ -35,9 +35,9 @@ import { generateLocalId, useGridPrefillingRow, SelectableType, -} from '@teable-group/sdk'; -import { GRID_DEFAULT } from '@teable-group/sdk/components/grid/configs'; -import { useScrollFrameRate } from '@teable-group/sdk/components/grid/hooks'; +} from '@teable/sdk'; +import { GRID_DEFAULT } from '@teable/sdk/components/grid/configs'; +import { useScrollFrameRate } from '@teable/sdk/components/grid/hooks'; import { useFields, useGroupPoint, @@ -50,8 +50,8 @@ import { useTablePermission, useView, useViewId, -} from '@teable-group/sdk/hooks'; -import { Skeleton, useToast } from '@teable-group/ui-lib'; +} from '@teable/sdk/hooks'; +import { Skeleton, useToast } from '@teable/ui-lib'; import { isEqual, keyBy, uniqueId, groupBy } from 'lodash'; import { useRouter } from 'next/router'; import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/components/FieldMenu.tsx b/apps/nextjs-app/src/features/app/blocks/view/grid/components/FieldMenu.tsx index eef4c1505..d1d9dcb75 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/components/FieldMenu.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/components/FieldMenu.tsx @@ -1,8 +1,8 @@ /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */ -import { Trash, Edit, EyeOff, ArrowLeft, ArrowRight, FreezeColumn } from '@teable-group/icons'; -import type { GridView } from '@teable-group/sdk'; -import { useFields, useIsTouchDevice, useTablePermission, useView } from '@teable-group/sdk'; -import { insertSingle } from '@teable-group/sdk/utils'; +import { Trash, Edit, EyeOff, ArrowLeft, ArrowRight, FreezeColumn } from '@teable/icons'; +import type { GridView } from '@teable/sdk'; +import { useFields, useIsTouchDevice, useTablePermission, useView } from '@teable/sdk'; +import { insertSingle } from '@teable/sdk/utils'; import { Command, CommandGroup, @@ -12,7 +12,7 @@ import { Sheet, SheetContent, SheetHeader, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import classNames from 'classnames'; import { useTranslation } from 'next-i18next'; import { useRef } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/components/PrefillingRowContainer.tsx b/apps/nextjs-app/src/features/app/blocks/view/grid/components/PrefillingRowContainer.tsx index fbee9d49a..ad4fe5751 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/components/PrefillingRowContainer.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/components/PrefillingRowContainer.tsx @@ -1,10 +1,5 @@ -import { ArrowUpDown, HelpCircle } from '@teable-group/icons'; -import { - Tooltip, - TooltipContent, - TooltipProvider, - TooltipTrigger, -} from '@teable-group/ui-lib/shadcn'; +import { ArrowUpDown, HelpCircle } from '@teable/icons'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; import { useRef } from 'react'; import { useClickAway } from 'react-use'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/components/RecordMenu.tsx b/apps/nextjs-app/src/features/app/blocks/view/grid/components/RecordMenu.tsx index 37dd4c3b6..34b39b660 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/components/RecordMenu.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/components/RecordMenu.tsx @@ -1,16 +1,16 @@ -import { FieldKeyType } from '@teable-group/core'; -import { Trash, Copy, ArrowUp, ArrowDown } from '@teable-group/icons'; -import { deleteRecords } from '@teable-group/openapi'; -import { SelectionRegionType } from '@teable-group/sdk/components'; -import { useTableId, useTablePermission, useViewId } from '@teable-group/sdk/hooks'; -import { Record } from '@teable-group/sdk/model'; +import { FieldKeyType } from '@teable/core'; +import { Trash, Copy, ArrowUp, ArrowDown } from '@teable/icons'; +import { deleteRecords } from '@teable/openapi'; +import { SelectionRegionType } from '@teable/sdk/components'; +import { useTableId, useTablePermission, useViewId } from '@teable/sdk/hooks'; +import { Record } from '@teable/sdk/model'; import { Command, CommandGroup, CommandItem, CommandList, CommandSeparator, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import classNames from 'classnames'; import { useTranslation } from 'next-i18next'; import { useRef } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/components/StatisticMenu.tsx b/apps/nextjs-app/src/features/app/blocks/view/grid/components/StatisticMenu.tsx index 666a687fb..70ad5fb27 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/components/StatisticMenu.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/components/StatisticMenu.tsx @@ -1,6 +1,6 @@ -import { getValidStatisticFunc, NoneFunc, statisticFunc2NameMap } from '@teable-group/core'; -import type { StatisticsFunc } from '@teable-group/core'; -import { useField, useView } from '@teable-group/sdk/hooks'; +import { getValidStatisticFunc, NoneFunc, statisticFunc2NameMap } from '@teable/core'; +import type { StatisticsFunc } from '@teable/core'; +import { useField, useView } from '@teable/sdk/hooks'; import { Command, CommandGroup, @@ -9,7 +9,7 @@ import { Popover, PopoverContent, PopoverTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useRef } from 'react'; import { useClickAway } from 'react-use'; import { useGridViewStore } from '../store/gridView'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/const.ts b/apps/nextjs-app/src/features/app/blocks/view/grid/const.ts index ad8bbe22e..dd8be43a9 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/const.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/const.ts @@ -1,4 +1,4 @@ -import { RowHeightLevel } from '@teable-group/core'; +import { RowHeightLevel } from '@teable/core'; export const GIRD_ROW_HEIGHT_DEFINITIONS = { [RowHeightLevel.AutoFit]: 32, diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/hooks/useCollaborate.ts b/apps/nextjs-app/src/features/app/blocks/view/grid/hooks/useCollaborate.ts index be08f2202..af0e39d24 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/hooks/useCollaborate.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/hooks/useCollaborate.ts @@ -1,8 +1,8 @@ -import { ColorUtils, getCellCollaboratorsChannel } from '@teable-group/core'; -import { useSession } from '@teable-group/sdk'; -import { SelectionRegionType } from '@teable-group/sdk/components/grid'; -import type { ICollaborator, CombinedSelection } from '@teable-group/sdk/components/grid'; -import { useConnection, useTableId, useViewId } from '@teable-group/sdk/hooks'; +import { ColorUtils, getCellCollaboratorsChannel } from '@teable/core'; +import { useSession } from '@teable/sdk'; +import { SelectionRegionType } from '@teable/sdk/components/grid'; +import type { ICollaborator, CombinedSelection } from '@teable/sdk/components/grid'; +import { useConnection, useTableId, useViewId } from '@teable/sdk/hooks'; import { useEffect, useState, useMemo } from 'react'; import type { Presence } from 'sharedb/lib/sharedb'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/hooks/useSelectionOperation.ts b/apps/nextjs-app/src/features/app/blocks/view/grid/hooks/useSelectionOperation.ts index 6daefaa8d..1a124592e 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/hooks/useSelectionOperation.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/hooks/useSelectionOperation.ts @@ -1,13 +1,13 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import type { UseMutateAsyncFunction } from '@tanstack/react-query'; import { useMutation } from '@tanstack/react-query'; -import type { IAttachmentCellValue } from '@teable-group/core'; -import { AttachmentFieldCore } from '@teable-group/core'; -import type { ICopyVo, IPasteRo, IRangesRo } from '@teable-group/openapi'; -import { clear, copy, paste, RangeType } from '@teable-group/openapi'; -import type { CombinedSelection, IRecordIndexMap } from '@teable-group/sdk'; -import { SelectionRegionType, useFields, useTableId, useView, useViewId } from '@teable-group/sdk'; -import { useToast } from '@teable-group/ui-lib'; +import type { IAttachmentCellValue } from '@teable/core'; +import { AttachmentFieldCore } from '@teable/core'; +import type { ICopyVo, IPasteRo, IRangesRo } from '@teable/openapi'; +import { clear, copy, paste, RangeType } from '@teable/openapi'; +import type { CombinedSelection, IRecordIndexMap } from '@teable/sdk'; +import { SelectionRegionType, useFields, useTableId, useView, useViewId } from '@teable/sdk'; +import { useToast } from '@teable/ui-lib'; import type { AxiosResponse } from 'axios'; import { useCallback } from 'react'; import { extractTableHeader, serializerHtml } from '../../../../utils/clipboard'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/store/gridView.ts b/apps/nextjs-app/src/features/app/blocks/view/grid/store/gridView.ts index 0dcdde34c..6c755ec82 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/store/gridView.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/store/gridView.ts @@ -1,4 +1,4 @@ -import type { CombinedSelection } from '@teable-group/sdk/components'; +import type { CombinedSelection } from '@teable/sdk/components'; import { create } from 'zustand'; import type { IHeaderMenu, IRecordMenu, IStatisticMenu } from './type'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/store/type.ts b/apps/nextjs-app/src/features/app/blocks/view/grid/store/type.ts index 33df7f115..e23081f02 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/store/type.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/store/type.ts @@ -1,5 +1,5 @@ -import type { IPosition, IRectangle } from '@teable-group/sdk/components'; -import type { IFieldInstance, Record } from '@teable-group/sdk/model'; +import type { IPosition, IRectangle } from '@teable/sdk/components'; +import type { IFieldInstance, Record } from '@teable/sdk/model'; export interface IHeaderMenu { fields: IFieldInstance[]; diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/utils/selection.ts b/apps/nextjs-app/src/features/app/blocks/view/grid/utils/selection.ts index 6c031e86c..87442980b 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/utils/selection.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/utils/selection.ts @@ -1,7 +1,7 @@ -import { FieldType } from '@teable-group/core'; -import type { CombinedSelection } from '@teable-group/sdk/components'; -import { SelectionRegionType } from '@teable-group/sdk/components'; -import type { Field } from '@teable-group/sdk/model'; +import { FieldType } from '@teable/core'; +import type { CombinedSelection } from '@teable/sdk/components'; +import { SelectionRegionType } from '@teable/sdk/components'; +import type { Field } from '@teable/sdk/model'; import { isEqual } from 'lodash'; export const selectionCoverAttachments = (selection: CombinedSelection, fields: Field[]) => { diff --git a/apps/nextjs-app/src/features/app/blocks/view/grid/utils/uploadFile.ts b/apps/nextjs-app/src/features/app/blocks/view/grid/utils/uploadFile.ts index 6dbd5da09..ed2813d32 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/grid/utils/uploadFile.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/grid/utils/uploadFile.ts @@ -1,8 +1,8 @@ -import type { IAttachmentItem } from '@teable-group/core'; -import { generateAttachmentId } from '@teable-group/core'; -import { UploadType, type INotifyVo } from '@teable-group/openapi'; -import type { IFile } from '@teable-group/sdk'; -import { AttachmentManager } from '@teable-group/sdk'; +import type { IAttachmentItem } from '@teable/core'; +import { generateAttachmentId } from '@teable/core'; +import { UploadType, type INotifyVo } from '@teable/openapi'; +import type { IFile } from '@teable/sdk'; +import { AttachmentManager } from '@teable/sdk'; export const uploadFiles = async (files: FileList): Promise => { return new Promise((resolve, reject) => { diff --git a/apps/nextjs-app/src/features/app/blocks/view/hooks/useToolbarChange.ts b/apps/nextjs-app/src/features/app/blocks/view/hooks/useToolbarChange.ts index 299b69aa0..deb544690 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/hooks/useToolbarChange.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/hooks/useToolbarChange.ts @@ -1,6 +1,6 @@ -import type { IGroup, IFilter, ISort, RowHeightLevel } from '@teable-group/core'; -import { generateLocalId, useGridCollapsedGroupStore } from '@teable-group/sdk/components'; -import { useTableId, useView } from '@teable-group/sdk/hooks'; +import type { IGroup, IFilter, ISort, RowHeightLevel } from '@teable/core'; +import { generateLocalId, useGridCollapsedGroupStore } from '@teable/sdk/components'; +import { useTableId, useView } from '@teable/sdk/hooks'; import { useMemo } from 'react'; export const useToolbarChange = () => { diff --git a/apps/nextjs-app/src/features/app/blocks/view/list/DraggableViewList.tsx b/apps/nextjs-app/src/features/app/blocks/view/list/DraggableViewList.tsx index b8fba2ad6..42facd56e 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/list/DraggableViewList.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/list/DraggableViewList.tsx @@ -1,12 +1,12 @@ -import { useTablePermission, useViewId, useViews, useIsHydrated } from '@teable-group/sdk'; -import { swapReorder } from '@teable-group/sdk/utils'; +import { useTablePermission, useViewId, useViews, useIsHydrated } from '@teable/sdk'; +import { swapReorder } from '@teable/sdk/utils'; import { DndKitContext, Draggable, Droppable, horizontalListSortingStrategy, type DragEndEvent, -} from '@teable-group/ui-lib/base/dnd-kit'; +} from '@teable/ui-lib/base/dnd-kit'; import classNames from 'classnames'; import { useEffect, useState } from 'react'; import { ViewListItem } from './ViewListItem'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/list/ViewListItem.tsx b/apps/nextjs-app/src/features/app/blocks/view/list/ViewListItem.tsx index e0d373d8e..d51a648cd 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/list/ViewListItem.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/list/ViewListItem.tsx @@ -1,13 +1,7 @@ -import { useTableId, useTablePermission } from '@teable-group/sdk/hooks'; -import type { IViewInstance } from '@teable-group/sdk/model'; -import { - Button, - Separator, - Popover, - PopoverContent, - PopoverTrigger, -} from '@teable-group/ui-lib/shadcn'; -import { Input } from '@teable-group/ui-lib/shadcn/ui/input'; +import { useTableId, useTablePermission } from '@teable/sdk/hooks'; +import type { IViewInstance } from '@teable/sdk/model'; +import { Button, Separator, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib/shadcn'; +import { Input } from '@teable/ui-lib/shadcn/ui/input'; import classnames from 'classnames'; import { useRouter } from 'next/router'; import { useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/list/useAddView.ts b/apps/nextjs-app/src/features/app/blocks/view/list/useAddView.ts index 72f4c75e9..f32e97f98 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/list/useAddView.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/list/useAddView.ts @@ -1,5 +1,5 @@ -import { ViewType } from '@teable-group/core'; -import { useTable, useViews } from '@teable-group/sdk/hooks'; +import { ViewType } from '@teable/core'; +import { useTable, useViews } from '@teable/sdk/hooks'; import { useRouter } from 'next/router'; import { useCallback } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/list/useDeleteView.ts b/apps/nextjs-app/src/features/app/blocks/view/list/useDeleteView.ts index 1b946bfd8..713e5c05f 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/list/useDeleteView.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/list/useDeleteView.ts @@ -1,4 +1,4 @@ -import { useTable } from '@teable-group/sdk/hooks'; +import { useTable } from '@teable/sdk/hooks'; import { useRouter } from 'next/router'; import { useCallback } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/FormToolBar.tsx b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/FormToolBar.tsx index d2ba4e5ac..63d24feb5 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/FormToolBar.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/FormToolBar.tsx @@ -1,6 +1,6 @@ -import { ArrowUpRight, Settings as Edit, Edit as Fill } from '@teable-group/icons'; -import { useTableId, useTablePermission, useViewId } from '@teable-group/sdk/hooks'; -import { Button } from '@teable-group/ui-lib/shadcn'; +import { ArrowUpRight, Settings as Edit, Edit as Fill } from '@teable/icons'; +import { useTableId, useTablePermission, useViewId } from '@teable/sdk/hooks'; +import { Button } from '@teable/ui-lib/shadcn'; import { generateUniqLocalKey } from '../form/util'; import { SharePopover } from './SharePopover'; import { FormMode, useFormModeStore } from './store'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/GridToolBar.tsx b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/GridToolBar.tsx index a41f17378..5a0f4818b 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/GridToolBar.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/GridToolBar.tsx @@ -1,6 +1,6 @@ -import { Plus } from '@teable-group/icons'; -import { useTable, useTablePermission } from '@teable-group/sdk/hooks'; -import { Button } from '@teable-group/ui-lib/shadcn/ui/button'; +import { Plus } from '@teable/icons'; +import { useTable, useTablePermission } from '@teable/sdk/hooks'; +import { Button } from '@teable/ui-lib/shadcn/ui/button'; import { useRouter } from 'next/router'; import { useCallback } from 'react'; import { Others } from './Others'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/Others.tsx b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/Others.tsx index 0c3cc38e7..bcb0d63a9 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/Others.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/Others.tsx @@ -1,6 +1,6 @@ -import { ArrowUpRight, Code2, Component, Database, Share2 } from '@teable-group/icons'; -import { useDriver } from '@teable-group/sdk/hooks'; -import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib/shadcn'; +import { ArrowUpRight, Code2, Component, Database, Share2 } from '@teable/icons'; +import { useDriver } from '@teable/sdk/hooks'; +import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib/shadcn'; import Link from 'next/link'; import { DbConnectionPanelTrigger } from '../../db-connection/PanelTrigger'; import { useCellGraphStore } from '../../graph/useCellGraphStore'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/SharePopover.tsx b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/SharePopover.tsx index 8124febc0..9780168f8 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/SharePopover.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/SharePopover.tsx @@ -1,8 +1,8 @@ import { useMutation } from '@tanstack/react-query'; -import { sharePasswordSchema, type IShareViewMeta, ViewType } from '@teable-group/core'; -import { Copy, Edit, RefreshCcw } from '@teable-group/icons'; -import { useView } from '@teable-group/sdk/hooks'; -import type { View } from '@teable-group/sdk/model'; +import { sharePasswordSchema, type IShareViewMeta, ViewType } from '@teable/core'; +import { Copy, Edit, RefreshCcw } from '@teable/icons'; +import { useView } from '@teable/sdk/hooks'; +import type { View } from '@teable/sdk/model'; import { Button, Dialog, @@ -23,7 +23,7 @@ import { TooltipContent, TooltipProvider, TooltipTrigger, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import { debounce, omit } from 'lodash'; import { useMemo, useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/ToolBarButton.tsx b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/ToolBarButton.tsx index 39e0415d2..83647f671 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/ToolBarButton.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/ToolBarButton.tsx @@ -1,4 +1,4 @@ -import { Button } from '@teable-group/ui-lib'; +import { Button } from '@teable/ui-lib'; import classNames from 'classnames'; import React, { forwardRef } from 'react'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/ViewOperators.tsx b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/ViewOperators.tsx index e2920e5d4..4c7646253 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/ViewOperators.tsx +++ b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/ViewOperators.tsx @@ -1,4 +1,4 @@ -import type { GridViewOptions } from '@teable-group/core'; +import type { GridViewOptions } from '@teable/core'; import { ArrowUpDown, PaintBucket, @@ -6,16 +6,16 @@ import { EyeOff, LayoutList, Share2, -} from '@teable-group/icons'; -import { Filter, HideFields, RowHeight, useFields, Sort, Group } from '@teable-group/sdk'; -import { useView } from '@teable-group/sdk/hooks/use-view'; +} from '@teable/icons'; +import { Filter, HideFields, RowHeight, useFields, Sort, Group } from '@teable/sdk'; +import { useView } from '@teable/sdk/hooks/use-view'; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, cn, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; import { tableConfig } from '@/features/i18n/table.config'; import { useToolbarChange } from '../hooks/useToolbarChange'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/store/useFormModeStore.ts b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/store/useFormModeStore.ts index bf629b85f..aa56aa5e4 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/tool-bar/store/useFormModeStore.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/tool-bar/store/useFormModeStore.ts @@ -1,4 +1,4 @@ -import { LocalStorageKeys } from '@teable-group/sdk/config'; +import { LocalStorageKeys } from '@teable/sdk/config'; import { create } from 'zustand'; import { persist } from 'zustand/middleware'; diff --git a/apps/nextjs-app/src/features/app/blocks/view/types.ts b/apps/nextjs-app/src/features/app/blocks/view/types.ts index 184bb467e..e12661349 100644 --- a/apps/nextjs-app/src/features/app/blocks/view/types.ts +++ b/apps/nextjs-app/src/features/app/blocks/view/types.ts @@ -1,4 +1,4 @@ -import type { IRecord } from '@teable-group/core'; +import type { IRecord } from '@teable/core'; export interface IViewBaseProps { recordsServerData: { records: IRecord[] }; diff --git a/apps/nextjs-app/src/features/app/components/CopyButton.tsx b/apps/nextjs-app/src/features/app/components/CopyButton.tsx index 248eb549f..94237d01f 100644 --- a/apps/nextjs-app/src/features/app/components/CopyButton.tsx +++ b/apps/nextjs-app/src/features/app/components/CopyButton.tsx @@ -1,6 +1,6 @@ -import { Check, Copy } from '@teable-group/icons'; -import type { ButtonProps } from '@teable-group/ui-lib/shadcn'; -import { Button, cn } from '@teable-group/ui-lib/shadcn'; +import { Check, Copy } from '@teable/icons'; +import type { ButtonProps } from '@teable/ui-lib/shadcn'; +import { Button, cn } from '@teable/ui-lib/shadcn'; import { useState } from 'react'; interface ICopyButtonProps extends ButtonProps { diff --git a/apps/nextjs-app/src/features/app/components/ExpandRecordContainer/ExpandRecordContainer.tsx b/apps/nextjs-app/src/features/app/components/ExpandRecordContainer/ExpandRecordContainer.tsx index c009222e5..976288e13 100644 --- a/apps/nextjs-app/src/features/app/components/ExpandRecordContainer/ExpandRecordContainer.tsx +++ b/apps/nextjs-app/src/features/app/components/ExpandRecordContainer/ExpandRecordContainer.tsx @@ -1,5 +1,5 @@ -import type { IRecord } from '@teable-group/core'; -import { useTableId } from '@teable-group/sdk/hooks'; +import type { IRecord } from '@teable/core'; +import { useTableId } from '@teable/sdk/hooks'; import { useRouter } from 'next/router'; import { forwardRef, useCallback } from 'react'; import { ExpandRecordContainerBase } from './ExpandRecordContainerBase'; diff --git a/apps/nextjs-app/src/features/app/components/ExpandRecordContainer/ExpandRecordContainerBase.tsx b/apps/nextjs-app/src/features/app/components/ExpandRecordContainer/ExpandRecordContainerBase.tsx index cf23d9181..1490e2145 100644 --- a/apps/nextjs-app/src/features/app/components/ExpandRecordContainer/ExpandRecordContainerBase.tsx +++ b/apps/nextjs-app/src/features/app/components/ExpandRecordContainer/ExpandRecordContainerBase.tsx @@ -1,5 +1,5 @@ -import type { IRecord } from '@teable-group/core'; -import { ExpandRecorder, IExpandRecordModel } from '@teable-group/sdk'; +import type { IRecord } from '@teable/core'; +import { ExpandRecorder, IExpandRecordModel } from '@teable/sdk'; import { useRouter } from 'next/router'; import { forwardRef, useImperativeHandle, useState } from 'react'; import type { IExpandRecordContainerRef } from './types'; diff --git a/apps/nextjs-app/src/features/app/components/SideBarFooter.tsx b/apps/nextjs-app/src/features/app/components/SideBarFooter.tsx index a821abd8d..304795e1f 100644 --- a/apps/nextjs-app/src/features/app/components/SideBarFooter.tsx +++ b/apps/nextjs-app/src/features/app/components/SideBarFooter.tsx @@ -1,5 +1,5 @@ -import { useSession } from '@teable-group/sdk'; -import { Avatar, AvatarFallback, AvatarImage, Button } from '@teable-group/ui-lib/shadcn'; +import { useSession } from '@teable/sdk'; +import { Avatar, AvatarFallback, AvatarImage, Button } from '@teable/ui-lib/shadcn'; import React from 'react'; import { NotificationsManage } from '@/features/app/components/notifications/NotificationsManage'; import { SettingDialog } from './setting/SettingDialog'; diff --git a/apps/nextjs-app/src/features/app/components/ThemePicker.tsx b/apps/nextjs-app/src/features/app/components/ThemePicker.tsx index da352f7ba..03f164934 100644 --- a/apps/nextjs-app/src/features/app/components/ThemePicker.tsx +++ b/apps/nextjs-app/src/features/app/components/ThemePicker.tsx @@ -1,12 +1,12 @@ -import { ThemeKey, useTheme } from '@teable-group/sdk'; -import { Button } from '@teable-group/ui-lib/shadcn/ui/button'; +import { ThemeKey, useTheme } from '@teable/sdk'; +import { Button } from '@teable/ui-lib/shadcn/ui/button'; import { DropdownMenu, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuTrigger, -} from '@teable-group/ui-lib/shadcn/ui/dropdown-menu'; +} from '@teable/ui-lib/shadcn/ui/dropdown-menu'; import classNames from 'classnames'; export const ThemePicker: React.FC<{ className?: string }> = ({ className }) => { const { theme, isAutoTheme, setTheme } = useTheme(); diff --git a/apps/nextjs-app/src/features/app/components/ai-chat/ChatWindow.tsx b/apps/nextjs-app/src/features/app/components/ai-chat/ChatWindow.tsx index 79847231d..c8617bc69 100644 --- a/apps/nextjs-app/src/features/app/components/ai-chat/ChatWindow.tsx +++ b/apps/nextjs-app/src/features/app/components/ai-chat/ChatWindow.tsx @@ -1,4 +1,4 @@ -import { getRandomString } from '@teable-group/core'; +import { getRandomString } from '@teable/core'; import { first, last } from 'lodash'; import { useEffect, useRef, useState } from 'react'; import type { IMessage } from 'store/message'; diff --git a/apps/nextjs-app/src/features/app/components/ai-chat/CodeBlock.tsx b/apps/nextjs-app/src/features/app/components/ai-chat/CodeBlock.tsx index efe732053..2361ebf4b 100644 --- a/apps/nextjs-app/src/features/app/components/ai-chat/CodeBlock.tsx +++ b/apps/nextjs-app/src/features/app/components/ai-chat/CodeBlock.tsx @@ -1,5 +1,5 @@ -import CopyIcon from '@teable-group/ui-lib/icons/app/copy.svg'; -import { useToast } from '@teable-group/ui-lib/shadcn/ui/use-toast'; +import CopyIcon from '@teable/ui-lib/icons/app/copy.svg'; +import { useToast } from '@teable/ui-lib/shadcn/ui/use-toast'; import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; import { oneDark } from 'react-syntax-highlighter/dist/cjs/styles/prism'; import type { IChat } from './type'; diff --git a/apps/nextjs-app/src/features/app/components/ai-chat/MessageInput.tsx b/apps/nextjs-app/src/features/app/components/ai-chat/MessageInput.tsx index cd46cf77d..32715bc2f 100644 --- a/apps/nextjs-app/src/features/app/components/ai-chat/MessageInput.tsx +++ b/apps/nextjs-app/src/features/app/components/ai-chat/MessageInput.tsx @@ -1,6 +1,6 @@ -import { getRandomString } from '@teable-group/core'; -import SendIcon from '@teable-group/ui-lib/icons/app/send.svg'; -import { useToast } from '@teable-group/ui-lib/shadcn/ui/use-toast'; +import { getRandomString } from '@teable/core'; +import SendIcon from '@teable/ui-lib/icons/app/send.svg'; +import { useToast } from '@teable/ui-lib/shadcn/ui/use-toast'; import { useEffect, useRef, useState } from 'react'; import TextareaAutosize from 'react-textarea-autosize'; import { CreatorRole, MessageStatus, useMessageStore } from 'store/message'; diff --git a/apps/nextjs-app/src/features/app/components/ai-chat/MessageView.tsx b/apps/nextjs-app/src/features/app/components/ai-chat/MessageView.tsx index 25f79fbe8..ffba4b233 100644 --- a/apps/nextjs-app/src/features/app/components/ai-chat/MessageView.tsx +++ b/apps/nextjs-app/src/features/app/components/ai-chat/MessageView.tsx @@ -1,4 +1,4 @@ -import UserIcon from '@teable-group/ui-lib/icons/app/user.svg'; +import UserIcon from '@teable/ui-lib/icons/app/user.svg'; import dayjs from 'dayjs'; import localizedFormat from 'dayjs/plugin/localizedFormat'; import type { ReactElement } from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/ai-chat/createAISyntaxParser.ts b/apps/nextjs-app/src/features/app/components/ai-chat/createAISyntaxParser.ts index 19dd96d71..ca5bede26 100644 --- a/apps/nextjs-app/src/features/app/components/ai-chat/createAISyntaxParser.ts +++ b/apps/nextjs-app/src/features/app/components/ai-chat/createAISyntaxParser.ts @@ -1,5 +1,5 @@ -import { FieldKeyType } from '@teable-group/core'; -import { Field, Record, Table, View } from '@teable-group/sdk/model'; +import { FieldKeyType } from '@teable/core'; +import { Field, Record, Table, View } from '@teable/sdk/model'; import router from 'next/router'; import { createChart } from '../Chart/createChart'; import { ChartType } from '../Chart/type'; diff --git a/apps/nextjs-app/src/features/app/components/ai-chat/prompt/tableContext2Prompt.ts b/apps/nextjs-app/src/features/app/components/ai-chat/prompt/tableContext2Prompt.ts index 268629a44..693b27f4b 100644 --- a/apps/nextjs-app/src/features/app/components/ai-chat/prompt/tableContext2Prompt.ts +++ b/apps/nextjs-app/src/features/app/components/ai-chat/prompt/tableContext2Prompt.ts @@ -1,4 +1,4 @@ -import { Field } from '@teable-group/sdk/model'; +import { Field } from '@teable/sdk/model'; export async function tableContext2Prompt(tableId: string | undefined, viewId: string | undefined) { if (!tableId || !viewId) { diff --git a/apps/nextjs-app/src/features/app/components/collaborator-manage/space-inner/Collaborators.tsx b/apps/nextjs-app/src/features/app/components/collaborator-manage/space-inner/Collaborators.tsx index b3ccac6b4..4a460c5b2 100644 --- a/apps/nextjs-app/src/features/app/components/collaborator-manage/space-inner/Collaborators.tsx +++ b/apps/nextjs-app/src/features/app/components/collaborator-manage/space-inner/Collaborators.tsx @@ -1,8 +1,8 @@ import { useQuery } from '@tanstack/react-query'; -import type { SpaceRole } from '@teable-group/core'; -import { getSpaceCollaboratorList } from '@teable-group/openapi'; -import { ReactQueryKeys } from '@teable-group/sdk'; -import { Avatar, AvatarFallback, AvatarImage } from '@teable-group/ui-lib'; +import type { SpaceRole } from '@teable/core'; +import { getSpaceCollaboratorList } from '@teable/openapi'; +import { ReactQueryKeys } from '@teable/sdk'; +import { Avatar, AvatarFallback, AvatarImage } from '@teable/ui-lib'; import React from 'react'; interface SpaceInnerCollaboratorProps { diff --git a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/Collaborators.tsx b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/Collaborators.tsx index 53a654a79..2fe723039 100644 --- a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/Collaborators.tsx +++ b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/Collaborators.tsx @@ -1,14 +1,14 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; -import type { SpaceRole } from '@teable-group/core'; -import { hasPermission } from '@teable-group/core'; -import { X } from '@teable-group/icons'; -import type { ListSpaceCollaboratorVo } from '@teable-group/openapi'; +import type { SpaceRole } from '@teable/core'; +import { hasPermission } from '@teable/core'; +import { X } from '@teable/icons'; +import type { ListSpaceCollaboratorVo } from '@teable/openapi'; import { deleteSpaceCollaborator, getSpaceCollaboratorList, updateSpaceCollaborator, -} from '@teable-group/openapi'; -import { ReactQueryKeys, useSession } from '@teable-group/sdk'; +} from '@teable/openapi'; +import { ReactQueryKeys, useSession } from '@teable/sdk'; import { Avatar, AvatarFallback, @@ -19,7 +19,7 @@ import { TooltipContent, TooltipProvider, TooltipTrigger, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import dayjs, { extend } from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; import { throttle } from 'lodash'; diff --git a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/Invite.tsx b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/Invite.tsx index 16f2c1ea8..3c794f7bb 100644 --- a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/Invite.tsx +++ b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/Invite.tsx @@ -1,9 +1,9 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'; -import { SpaceRole, hasPermission } from '@teable-group/core'; -import { X } from '@teable-group/icons'; -import { createSpaceInvitationLink, emailSpaceInvitation } from '@teable-group/openapi'; -import { ReactQueryKeys, useSpaceRoleStatic } from '@teable-group/sdk'; -import { Button } from '@teable-group/ui-lib'; +import { SpaceRole, hasPermission } from '@teable/core'; +import { X } from '@teable/icons'; +import { createSpaceInvitationLink, emailSpaceInvitation } from '@teable/openapi'; +import { ReactQueryKeys, useSpaceRoleStatic } from '@teable/sdk'; +import { Button } from '@teable/ui-lib'; import classNames from 'classnames'; import { map } from 'lodash'; import { useMemo, useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/InviteLink.tsx b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/InviteLink.tsx index da9f788ea..0eca207f4 100644 --- a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/InviteLink.tsx +++ b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/InviteLink.tsx @@ -1,12 +1,12 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; -import type { SpaceRole } from '@teable-group/core'; -import { Copy, X } from '@teable-group/icons'; +import type { SpaceRole } from '@teable/core'; +import { Copy, X } from '@teable/icons'; import { deleteSpaceInvitationLink, listSpaceInvitationLink, updateSpaceInvitationLink, -} from '@teable-group/openapi'; -import { useSpaceRoleStatic } from '@teable-group/sdk/hooks'; +} from '@teable/openapi'; +import { useSpaceRoleStatic } from '@teable/sdk/hooks'; import { Button, Input, @@ -15,7 +15,7 @@ import { TooltipProvider, TooltipTrigger, useToast, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; import { map } from 'lodash'; diff --git a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/RoleSelect.tsx b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/RoleSelect.tsx index bfe8bd967..f03e99227 100644 --- a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/RoleSelect.tsx +++ b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/RoleSelect.tsx @@ -1,5 +1,5 @@ -import { SpaceRole } from '@teable-group/core'; -import { useSpaceRoleStatic } from '@teable-group/sdk/hooks'; +import { SpaceRole } from '@teable/core'; +import { useSpaceRoleStatic } from '@teable/sdk/hooks'; import { Select, SelectContent, @@ -7,7 +7,7 @@ import { SelectTrigger, SelectValue, Separator, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import classNames from 'classnames'; import { find } from 'lodash'; import React, { useMemo } from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/SpaceCollaboratorModal.tsx b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/SpaceCollaboratorModal.tsx index 053ce72fb..62ec19ca9 100644 --- a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/SpaceCollaboratorModal.tsx +++ b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/SpaceCollaboratorModal.tsx @@ -1,8 +1,8 @@ import { useQuery } from '@tanstack/react-query'; -import { hasPermission } from '@teable-group/core'; -import type { IGetSpaceVo } from '@teable-group/openapi'; -import { getSpaceCollaboratorList } from '@teable-group/openapi'; -import { ReactQueryKeys } from '@teable-group/sdk'; +import { hasPermission } from '@teable/core'; +import type { IGetSpaceVo } from '@teable/openapi'; +import { getSpaceCollaboratorList } from '@teable/openapi'; +import { ReactQueryKeys } from '@teable/sdk'; import { Collaborators } from './Collaborators'; import { Invite } from './Invite'; import { InviteLink } from './InviteLink'; diff --git a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/SpaceCollaboratorModalTrigger.tsx b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/SpaceCollaboratorModalTrigger.tsx index d025b5e39..3fdc9ceb1 100644 --- a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/SpaceCollaboratorModalTrigger.tsx +++ b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/SpaceCollaboratorModalTrigger.tsx @@ -1,11 +1,5 @@ -import type { IGetSpaceVo } from '@teable-group/openapi'; -import { - Dialog, - DialogContent, - DialogHeader, - DialogTitle, - DialogTrigger, -} from '@teable-group/ui-lib'; +import type { IGetSpaceVo } from '@teable/openapi'; +import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from '@teable/ui-lib'; import { SpaceCollaboratorModal } from './SpaceCollaboratorModal'; interface ISpaceCollaboratorModalTrigger { diff --git a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/utils.ts b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/utils.ts index b7bf11ec9..c99e3a5a3 100644 --- a/apps/nextjs-app/src/features/app/components/collaborator-manage/space/utils.ts +++ b/apps/nextjs-app/src/features/app/components/collaborator-manage/space/utils.ts @@ -1,5 +1,5 @@ -import type { SpaceRole } from '@teable-group/core'; -import type { ISpaceRoleStatic } from '@teable-group/sdk/hooks'; +import type { SpaceRole } from '@teable/core'; +import type { ISpaceRoleStatic } from '@teable/sdk/hooks'; export const getRolesWithLowerPermissions = ( role: SpaceRole, diff --git a/apps/nextjs-app/src/features/app/components/emoji/Emoji.tsx b/apps/nextjs-app/src/features/app/components/emoji/Emoji.tsx index 4631ed0db..818a787d8 100644 --- a/apps/nextjs-app/src/features/app/components/emoji/Emoji.tsx +++ b/apps/nextjs-app/src/features/app/components/emoji/Emoji.tsx @@ -1,4 +1,4 @@ -import { cn } from '@teable-group/ui-lib/shadcn'; +import { cn } from '@teable/ui-lib/shadcn'; interface IEmoji { className?: string; diff --git a/apps/nextjs-app/src/features/app/components/emoji/EmojiPicker.tsx b/apps/nextjs-app/src/features/app/components/emoji/EmojiPicker.tsx index cd82c72eb..a9f6b140f 100644 --- a/apps/nextjs-app/src/features/app/components/emoji/EmojiPicker.tsx +++ b/apps/nextjs-app/src/features/app/components/emoji/EmojiPicker.tsx @@ -1,7 +1,7 @@ import emojiData from '@emoji-mart/data'; import EmojiPickerCom from '@emoji-mart/react'; -import { useTheme } from '@teable-group/sdk'; -import { Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib'; +import { useTheme } from '@teable/sdk'; +import { Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib'; import classNames from 'classnames'; import type { FC, PropsWithChildren } from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/DynamicFieldEditor.tsx b/apps/nextjs-app/src/features/app/components/field-setting/DynamicFieldEditor.tsx index 1787f55ff..1556d6b58 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/DynamicFieldEditor.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/DynamicFieldEditor.tsx @@ -1,4 +1,4 @@ -import { Skeleton } from '@teable-group/ui-lib/shadcn'; +import { Skeleton } from '@teable/ui-lib/shadcn'; import dynamic from 'next/dynamic'; export const DynamicFieldEditor = dynamic( diff --git a/apps/nextjs-app/src/features/app/components/field-setting/FieldEditor.spec.tsx b/apps/nextjs-app/src/features/app/components/field-setting/FieldEditor.spec.tsx index 80d8e122d..c22be17eb 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/FieldEditor.spec.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/FieldEditor.spec.tsx @@ -1,5 +1,5 @@ -import { CellValueType, FieldType } from '@teable-group/core'; -import type { IFieldInstance } from '@teable-group/sdk/model'; +import { CellValueType, FieldType } from '@teable/core'; +import type { IFieldInstance } from '@teable/sdk/model'; import { render, TestAnchorProvider } from '@/test-utils'; import { FieldEditor } from './FieldEditor'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/FieldEditor.tsx b/apps/nextjs-app/src/features/app/components/field-setting/FieldEditor.tsx index 2a6fb65c5..633a6be47 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/FieldEditor.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/FieldEditor.tsx @@ -1,8 +1,8 @@ -import type { IFieldOptionsRo, IFieldVo } from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; -import { useFieldStaticGetter } from '@teable-group/sdk'; -import { Textarea } from '@teable-group/ui-lib/shadcn'; -import { Input } from '@teable-group/ui-lib/shadcn/ui/input'; +import type { IFieldOptionsRo, IFieldVo } from '@teable/core'; +import { FieldType } from '@teable/core'; +import { useFieldStaticGetter } from '@teable/sdk'; +import { Textarea } from '@teable/ui-lib/shadcn'; +import { Input } from '@teable/ui-lib/shadcn/ui/input'; import { useTranslation } from 'next-i18next'; import { useCallback, useState } from 'react'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/FieldOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/FieldOptions.tsx index 2242417b1..6d375d597 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/FieldOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/FieldOptions.tsx @@ -11,8 +11,8 @@ import type { ICreatedTimeFieldOptions, ILastModifiedTimeFieldOptions, IUserFieldOptions, -} from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; +} from '@teable/core'; +import { FieldType } from '@teable/core'; import { CreatedTimeOptions } from './options/CreatedTimeOptions'; import { DateOptions } from './options/DateOptions'; import { FormulaOptions } from './options/FormulaOptions'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/FieldSetting.tsx b/apps/nextjs-app/src/features/app/components/field-setting/FieldSetting.tsx index 02ce9026e..0c0f02dab 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/FieldSetting.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/FieldSetting.tsx @@ -1,21 +1,21 @@ import { useQueryClient } from '@tanstack/react-query'; -import type { IFieldRo } from '@teable-group/core'; -import { convertFieldRoSchema, FieldType, getOptionsSchema } from '@teable-group/core'; -import { Share2 } from '@teable-group/icons'; -import { planFieldCreate, type IPlanFieldConvertVo, planFieldConvert } from '@teable-group/openapi'; -import { ReactQueryKeys } from '@teable-group/sdk/config'; -import { useTable, useView } from '@teable-group/sdk/hooks'; -import { ConfirmDialog } from '@teable-group/ui-lib/base'; +import type { IFieldRo } from '@teable/core'; +import { convertFieldRoSchema, FieldType, getOptionsSchema } from '@teable/core'; +import { Share2 } from '@teable/icons'; +import { planFieldCreate, type IPlanFieldConvertVo, planFieldConvert } from '@teable/openapi'; +import { ReactQueryKeys } from '@teable/sdk/config'; +import { useTable, useView } from '@teable/sdk/hooks'; +import { ConfirmDialog } from '@teable/ui-lib/base'; import { Dialog, DialogClose, DialogContent, DialogFooter, DialogTrigger, -} from '@teable-group/ui-lib/shadcn'; -import { Button } from '@teable-group/ui-lib/shadcn/ui/button'; -import { Sheet, SheetContent } from '@teable-group/ui-lib/shadcn/ui/sheet'; -import { toast } from '@teable-group/ui-lib/shadcn/ui/sonner'; +} from '@teable/ui-lib/shadcn'; +import { Button } from '@teable/ui-lib/shadcn/ui/button'; +import { Sheet, SheetContent } from '@teable/ui-lib/shadcn/ui/sheet'; +import { toast } from '@teable/ui-lib/shadcn/ui/sonner'; import { useTranslation } from 'next-i18next'; import { useCallback, useMemo, useState } from 'react'; import { fromZodError } from 'zod-validation-error'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/SelectFieldType.tsx b/apps/nextjs-app/src/features/app/components/field-setting/SelectFieldType.tsx index cee7307ca..3f8606ed2 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/SelectFieldType.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/SelectFieldType.tsx @@ -1,7 +1,7 @@ -import { FieldType } from '@teable-group/core'; -import { FIELD_TYPE_ORDER, useFieldStaticGetter } from '@teable-group/sdk'; -import { Selector } from '@teable-group/ui-lib/base'; -import SearchIcon from '@teable-group/ui-lib/icons/app/search.svg'; +import { FieldType } from '@teable/core'; +import { FIELD_TYPE_ORDER, useFieldStaticGetter } from '@teable/sdk'; +import { Selector } from '@teable/ui-lib/base'; +import SearchIcon from '@teable/ui-lib/icons/app/search.svg'; import { useTranslation } from 'next-i18next'; import { useMemo } from 'react'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/SelectTable.tsx b/apps/nextjs-app/src/features/app/components/field-setting/SelectTable.tsx index fb05405ae..a3b7950ae 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/SelectTable.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/SelectTable.tsx @@ -1,15 +1,15 @@ -import type { Table } from '@teable-group/sdk/model'; -import ArrowDownIcon from '@teable-group/ui-lib/icons/app/arrow-down.svg'; -import SelectIcon from '@teable-group/ui-lib/icons/app/select.svg'; -import { Button } from '@teable-group/ui-lib/shadcn/ui/button'; +import type { Table } from '@teable/sdk/model'; +import ArrowDownIcon from '@teable/ui-lib/icons/app/arrow-down.svg'; +import SelectIcon from '@teable/ui-lib/icons/app/select.svg'; +import { Button } from '@teable/ui-lib/shadcn/ui/button'; import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, -} from '@teable-group/ui-lib/shadcn/ui/command'; -import { Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib/shadcn/ui/popover'; +} from '@teable/ui-lib/shadcn/ui/command'; +import { Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib/shadcn/ui/popover'; import classNames from 'classnames'; import { useTranslation } from 'next-i18next'; import { useRef, useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/SystemInfo.tsx b/apps/nextjs-app/src/features/app/components/field-setting/SystemInfo.tsx index 823720e89..434f9a449 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/SystemInfo.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/SystemInfo.tsx @@ -1,5 +1,5 @@ -import type { IFieldVo } from '@teable-group/core'; -import { LocalStorageKeys } from '@teable-group/sdk/config/local-storage-keys'; +import type { IFieldVo } from '@teable/core'; +import { LocalStorageKeys } from '@teable/sdk/config/local-storage-keys'; import { useLocalStorage } from 'react-use'; // eslint-disable-next-line sonarjs/cognitive-complexity diff --git a/apps/nextjs-app/src/features/app/components/field-setting/formatting/DatetimeFormatting.tsx b/apps/nextjs-app/src/features/app/components/field-setting/formatting/DatetimeFormatting.tsx index 2f0d77c88..b34e3491e 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/formatting/DatetimeFormatting.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/formatting/DatetimeFormatting.tsx @@ -1,5 +1,5 @@ -import type { IDatetimeFormatting } from '@teable-group/core'; -import { DateFormattingPreset, TIME_ZONE_LIST, TimeFormatting } from '@teable-group/core'; +import type { IDatetimeFormatting } from '@teable/core'; +import { DateFormattingPreset, TIME_ZONE_LIST, TimeFormatting } from '@teable/core'; import { Select, SelectContent, @@ -7,8 +7,8 @@ import { SelectTrigger, SelectValue, Selector, -} from '@teable-group/ui-lib'; -import { Label } from '@teable-group/ui-lib/shadcn/ui/label'; +} from '@teable/ui-lib'; +import { Label } from '@teable/ui-lib/shadcn/ui/label'; import dayjs from 'dayjs'; import 'dayjs/plugin/utc'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/formatting/NumberFormatting.tsx b/apps/nextjs-app/src/features/app/components/field-setting/formatting/NumberFormatting.tsx index 5a198741b..dfb53a007 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/formatting/NumberFormatting.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/formatting/NumberFormatting.tsx @@ -1,18 +1,18 @@ -import type { ICurrencyFormatting, INumberFormatting } from '@teable-group/core'; +import type { ICurrencyFormatting, INumberFormatting } from '@teable/core'; import { DEFAULT_CURRENCY_SYMBOL, NumberFormattingType, defaultNumberFormatting, -} from '@teable-group/core'; -import { Input } from '@teable-group/ui-lib/shadcn'; -import { Label } from '@teable-group/ui-lib/shadcn/ui/label'; +} from '@teable/core'; +import { Input } from '@teable/ui-lib/shadcn'; +import { Label } from '@teable/ui-lib/shadcn/ui/label'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, -} from '@teable-group/ui-lib/shadcn/ui/select'; +} from '@teable/ui-lib/shadcn/ui/select'; export const NUMBER_FORMATTING_TYPE = [ { diff --git a/apps/nextjs-app/src/features/app/components/field-setting/formatting/UnionFormatting.tsx b/apps/nextjs-app/src/features/app/components/field-setting/formatting/UnionFormatting.tsx index b2679d214..4e4219e56 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/formatting/UnionFormatting.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/formatting/UnionFormatting.tsx @@ -1,5 +1,5 @@ -import type { IUnionFormatting } from '@teable-group/core'; -import { CellValueType } from '@teable-group/core'; +import type { IUnionFormatting } from '@teable/core'; +import { CellValueType } from '@teable/core'; import { useMemo } from 'react'; import { DatetimeFormatting } from './DatetimeFormatting'; import { NumberFormatting } from './NumberFormatting'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/hooks/useUpdateLookupOptions.spec.ts b/apps/nextjs-app/src/features/app/components/field-setting/hooks/useUpdateLookupOptions.spec.ts index e6fd1dbaa..a396d3889 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/hooks/useUpdateLookupOptions.spec.ts +++ b/apps/nextjs-app/src/features/app/components/field-setting/hooks/useUpdateLookupOptions.spec.ts @@ -1,5 +1,5 @@ -import { CellValueType, FieldType } from '@teable-group/core'; -import type { IFieldInstance, LinkField } from '@teable-group/sdk/model'; +import { CellValueType, FieldType } from '@teable/core'; +import type { IFieldInstance, LinkField } from '@teable/sdk/model'; import { renderHook, act } from '@testing-library/react'; import type { IFieldEditorRo } from '../type'; import { useUpdateLookupOptions } from './useUpdateLookupOptions'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/hooks/useUpdateLookupOptions.ts b/apps/nextjs-app/src/features/app/components/field-setting/hooks/useUpdateLookupOptions.ts index f07f99297..0ff5d6c4f 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/hooks/useUpdateLookupOptions.ts +++ b/apps/nextjs-app/src/features/app/components/field-setting/hooks/useUpdateLookupOptions.ts @@ -1,5 +1,5 @@ -import type { ILookupOptionsRo } from '@teable-group/core'; -import type { LinkField, IFieldInstance } from '@teable-group/sdk/model'; +import type { ILookupOptionsRo } from '@teable/core'; +import type { LinkField, IFieldInstance } from '@teable/sdk/model'; import { useCallback } from 'react'; import type { IFieldEditorRo } from '../type'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/lookup-options/LookupOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/lookup-options/LookupOptions.tsx index 7eeb49e72..97644de92 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/lookup-options/LookupOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/lookup-options/LookupOptions.tsx @@ -1,9 +1,9 @@ -import type { ILookupOptionsRo, ILookupOptionsVo } from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; -import { AnchorProvider } from '@teable-group/sdk/context'; -import { useFields, useTable, useFieldStaticGetter } from '@teable-group/sdk/hooks'; -import type { IFieldInstance, LinkField } from '@teable-group/sdk/model'; -import { Selector } from '@teable-group/ui-lib/base'; +import type { ILookupOptionsRo, ILookupOptionsVo } from '@teable/core'; +import { FieldType } from '@teable/core'; +import { AnchorProvider } from '@teable/sdk/context'; +import { useFields, useTable, useFieldStaticGetter } from '@teable/sdk/hooks'; +import type { IFieldInstance, LinkField } from '@teable/sdk/model'; +import { Selector } from '@teable/ui-lib/base'; import { Trans, useTranslation } from 'next-i18next'; import { useCallback, useMemo, useState } from 'react'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/CreatedTimeOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/CreatedTimeOptions.tsx index 546ec1347..6fe4ad550 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/CreatedTimeOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/CreatedTimeOptions.tsx @@ -2,7 +2,7 @@ import type { IDatetimeFormatting, ICreatedTimeFieldOptionsRo, ILastModifiedTimeFieldOptionsRo, -} from '@teable-group/core'; +} from '@teable/core'; import { DatetimeFormatting } from '../formatting/DatetimeFormatting'; export const CreatedTimeOptions = (props: { diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/DateOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/DateOptions.tsx index d79f40c32..3828616e7 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/DateOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/DateOptions.tsx @@ -1,6 +1,6 @@ -import type { IDateFieldOptions, IDatetimeFormatting } from '@teable-group/core'; -import { Label } from '@teable-group/ui-lib/shadcn/ui/label'; -import { Switch } from '@teable-group/ui-lib/shadcn/ui/switch'; +import type { IDateFieldOptions, IDatetimeFormatting } from '@teable/core'; +import { Label } from '@teable/ui-lib/shadcn/ui/label'; +import { Switch } from '@teable/ui-lib/shadcn/ui/switch'; import { DatetimeFormatting } from '../formatting/DatetimeFormatting'; export const DateOptions = (props: { diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/FormulaOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/FormulaOptions.tsx index 95d74395a..2ee10a461 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/FormulaOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/FormulaOptions.tsx @@ -1,10 +1,10 @@ -import type { IFormulaFieldOptions } from '@teable-group/core'; -import { getFormattingSchema, getShowAsSchema, CellValueType } from '@teable-group/core'; -import { FormulaEditor } from '@teable-group/sdk/components'; -import { useFields } from '@teable-group/sdk/hooks'; -import type { IFieldInstance } from '@teable-group/sdk/model'; -import { FormulaField } from '@teable-group/sdk/model'; -import { Dialog, DialogContent, DialogTrigger } from '@teable-group/ui-lib/shadcn'; +import type { IFormulaFieldOptions } from '@teable/core'; +import { getFormattingSchema, getShowAsSchema, CellValueType } from '@teable/core'; +import { FormulaEditor } from '@teable/sdk/components'; +import { useFields } from '@teable/sdk/hooks'; +import type { IFieldInstance } from '@teable/sdk/model'; +import { FormulaField } from '@teable/sdk/model'; +import { Dialog, DialogContent, DialogTrigger } from '@teable/ui-lib/shadcn'; import { isEmpty, isEqual, keyBy } from 'lodash'; import { useEffect, useMemo, useState } from 'react'; import { UnionFormatting } from '../formatting/UnionFormatting'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/LinkOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/LinkOptions.tsx index 60a10baa6..15a0b9013 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/LinkOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/LinkOptions.tsx @@ -1,8 +1,8 @@ -import type { ILinkFieldOptionsRo } from '@teable-group/core'; -import { Relationship } from '@teable-group/core'; -import { useTableId, useTables } from '@teable-group/sdk/hooks'; -import { Selector } from '@teable-group/ui-lib/base'; -import { Label, Switch } from '@teable-group/ui-lib/shadcn'; +import type { ILinkFieldOptionsRo } from '@teable/core'; +import { Relationship } from '@teable/core'; +import { useTableId, useTables } from '@teable/sdk/hooks'; +import { Selector } from '@teable/ui-lib/base'; +import { Label, Switch } from '@teable/ui-lib/shadcn'; import { Trans, useTranslation } from 'next-i18next'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/NumberOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/NumberOptions.tsx index ba5596e26..5737f0a51 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/NumberOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/NumberOptions.tsx @@ -1,4 +1,4 @@ -import type { INumberShowAs, INumberFormatting, INumberFieldOptions } from '@teable-group/core'; +import type { INumberShowAs, INumberFormatting, INumberFieldOptions } from '@teable/core'; import { NumberFormatting } from '../formatting/NumberFormatting'; import { MultiNumberShowAs } from '../show-as/MultiNumberShowAs'; import { SingleNumberShowAs } from '../show-as/SingleNumberShowAs'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/RatingOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/RatingOptions.tsx index d9d47bda1..29e761f25 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/RatingOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/RatingOptions.tsx @@ -1,7 +1,7 @@ -import type { IRatingColors, IRatingFieldOptions } from '@teable-group/core'; -import { ColorUtils, RATING_ICON_COLORS, RatingIcon } from '@teable-group/core'; -import { RATING_ICON_MAP } from '@teable-group/sdk/components'; -import { RatingField } from '@teable-group/sdk/model'; +import type { IRatingColors, IRatingFieldOptions } from '@teable/core'; +import { ColorUtils, RATING_ICON_COLORS, RatingIcon } from '@teable/core'; +import { RATING_ICON_MAP } from '@teable/sdk/components'; +import { RatingField } from '@teable/sdk/model'; import { Label, Select, @@ -10,7 +10,7 @@ import { SelectTrigger, SelectValue, cn, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; export const RATING_ICON_LIST = RATING_ICON_COLORS.map((colorKey) => { return [ diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/RollupOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/RollupOptions.tsx index 40f643dee..4fd3536f2 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/RollupOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/RollupOptions.tsx @@ -1,7 +1,7 @@ -import type { IRollupFieldOptions, IUnionFormatting, IUnionShowAs } from '@teable-group/core'; -import { assertNever, ROLLUP_FUNCTIONS, CellValueType } from '@teable-group/core'; -import { RollupField } from '@teable-group/sdk/model'; -import { Selector } from '@teable-group/ui-lib/base'; +import type { IRollupFieldOptions, IUnionFormatting, IUnionShowAs } from '@teable/core'; +import { assertNever, ROLLUP_FUNCTIONS, CellValueType } from '@teable/core'; +import { RollupField } from '@teable/sdk/model'; +import { Selector } from '@teable/ui-lib/base'; import { useMemo } from 'react'; import { UnionFormatting } from '../formatting/UnionFormatting'; import { UnionShowAs } from '../show-as/UnionShowAs'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/SelectOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/SelectOptions.tsx index 5e6e57ca8..92be20776 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/SelectOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/SelectOptions.tsx @@ -1,12 +1,12 @@ -import type { ISelectFieldChoice, ISelectFieldOptions, Colors } from '@teable-group/core'; -import { COLOR_PALETTE, ColorUtils } from '@teable-group/core'; -import { DraggableHandle, Plus, Trash } from '@teable-group/icons'; -import { DndKitContext, Droppable, Draggable } from '@teable-group/ui-lib/base/dnd-kit'; -import type { DragEndEvent } from '@teable-group/ui-lib/base/dnd-kit'; +import type { ISelectFieldChoice, ISelectFieldOptions, Colors } from '@teable/core'; +import { COLOR_PALETTE, ColorUtils } from '@teable/core'; +import { DraggableHandle, Plus, Trash } from '@teable/icons'; +import { DndKitContext, Droppable, Draggable } from '@teable/ui-lib/base/dnd-kit'; +import type { DragEndEvent } from '@teable/ui-lib/base/dnd-kit'; -import { Input } from '@teable-group/ui-lib/shadcn'; -import { Button } from '@teable-group/ui-lib/shadcn/ui/button'; -import { Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib/shadcn/ui/popover'; +import { Input } from '@teable/ui-lib/shadcn'; +import { Button } from '@teable/ui-lib/shadcn/ui/button'; +import { Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib/shadcn/ui/popover'; import classNames from 'classnames'; import { useTranslation } from 'next-i18next'; import { useMemo, useRef, useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/SingleLineTextOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/SingleLineTextOptions.tsx index d0cc8e0e6..a642f248d 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/SingleLineTextOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/SingleLineTextOptions.tsx @@ -1,4 +1,4 @@ -import type { ISingleLineTextFieldOptions, ISingleLineTextShowAs } from '@teable-group/core'; +import type { ISingleLineTextFieldOptions, ISingleLineTextShowAs } from '@teable/core'; import { SingleTextLineShowAs } from '../show-as/SingleLineTextShowAs'; export const SingleLineTextOptions = (props: { diff --git a/apps/nextjs-app/src/features/app/components/field-setting/options/UserOptions.tsx b/apps/nextjs-app/src/features/app/components/field-setting/options/UserOptions.tsx index 26a5f2bb3..c675c2959 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/options/UserOptions.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/options/UserOptions.tsx @@ -1,5 +1,5 @@ -import type { CellValueType, IUserFieldOptions } from '@teable-group/core'; -import { Label, Switch } from '@teable-group/ui-lib'; +import type { CellValueType, IUserFieldOptions } from '@teable/core'; +import { Label, Switch } from '@teable/ui-lib'; import { useTranslation } from 'next-i18next'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/show-as/MultiNumberShowAs.tsx b/apps/nextjs-app/src/features/app/components/field-setting/show-as/MultiNumberShowAs.tsx index e157608f0..13575592c 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/show-as/MultiNumberShowAs.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/show-as/MultiNumberShowAs.tsx @@ -1,7 +1,7 @@ -import { ColorUtils, Colors, MultiNumberDisplayType } from '@teable-group/core'; -import type { IMultiNumberShowAs } from '@teable-group/core'; -import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib/shadcn'; -import { Label } from '@teable-group/ui-lib/shadcn/ui/label'; +import { ColorUtils, Colors, MultiNumberDisplayType } from '@teable/core'; +import type { IMultiNumberShowAs } from '@teable/core'; +import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib/shadcn'; +import { Label } from '@teable/ui-lib/shadcn/ui/label'; import classNames from 'classnames'; import { useTranslation } from 'next-i18next'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/show-as/SingleLineTextShowAs.tsx b/apps/nextjs-app/src/features/app/components/field-setting/show-as/SingleLineTextShowAs.tsx index a5dc50d63..8c98a9367 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/show-as/SingleLineTextShowAs.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/show-as/SingleLineTextShowAs.tsx @@ -1,7 +1,7 @@ -import { SingleLineTextDisplayType } from '@teable-group/core'; -import type { ISingleLineTextShowAs } from '@teable-group/core'; -import { Button } from '@teable-group/ui-lib/shadcn'; -import { Label } from '@teable-group/ui-lib/shadcn/ui/label'; +import { SingleLineTextDisplayType } from '@teable/core'; +import type { ISingleLineTextShowAs } from '@teable/core'; +import { Button } from '@teable/ui-lib/shadcn'; +import { Label } from '@teable/ui-lib/shadcn/ui/label'; import classNames from 'classnames'; import { useTranslation } from 'next-i18next'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/show-as/SingleNumberShowAs.tsx b/apps/nextjs-app/src/features/app/components/field-setting/show-as/SingleNumberShowAs.tsx index 0bf8a5e9a..42b64f534 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/show-as/SingleNumberShowAs.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/show-as/SingleNumberShowAs.tsx @@ -1,5 +1,5 @@ -import { ColorUtils, Colors, SingleNumberDisplayType } from '@teable-group/core'; -import type { ISingleNumberShowAs } from '@teable-group/core'; +import { ColorUtils, Colors, SingleNumberDisplayType } from '@teable/core'; +import type { ISingleNumberShowAs } from '@teable/core'; import { Button, Input, @@ -7,8 +7,8 @@ import { PopoverContent, PopoverTrigger, Switch, -} from '@teable-group/ui-lib/shadcn'; -import { Label } from '@teable-group/ui-lib/shadcn/ui/label'; +} from '@teable/ui-lib/shadcn'; +import { Label } from '@teable/ui-lib/shadcn/ui/label'; import classNames from 'classnames'; import { useTranslation } from 'next-i18next'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/show-as/UnionShowAs.tsx b/apps/nextjs-app/src/features/app/components/field-setting/show-as/UnionShowAs.tsx index c732469bc..b36f2149a 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/show-as/UnionShowAs.tsx +++ b/apps/nextjs-app/src/features/app/components/field-setting/show-as/UnionShowAs.tsx @@ -1,5 +1,5 @@ -import type { IUnionShowAs } from '@teable-group/core'; -import { CellValueType } from '@teable-group/core'; +import type { IUnionShowAs } from '@teable/core'; +import { CellValueType } from '@teable/core'; import type { FC } from 'react'; import { useMemo } from 'react'; import { MultiNumberShowAs } from './MultiNumberShowAs'; diff --git a/apps/nextjs-app/src/features/app/components/field-setting/type.ts b/apps/nextjs-app/src/features/app/components/field-setting/type.ts index 02a46e585..5bd76f3a4 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/type.ts +++ b/apps/nextjs-app/src/features/app/components/field-setting/type.ts @@ -1,4 +1,4 @@ -import type { CellValueType, IFieldRo, IFieldVo } from '@teable-group/core'; +import type { CellValueType, IFieldRo, IFieldVo } from '@teable/core'; export enum FieldOperator { Add, diff --git a/apps/nextjs-app/src/features/app/components/field-setting/useFieldTypeSubtitle.ts b/apps/nextjs-app/src/features/app/components/field-setting/useFieldTypeSubtitle.ts index dd7e3faa2..750f7188c 100644 --- a/apps/nextjs-app/src/features/app/components/field-setting/useFieldTypeSubtitle.ts +++ b/apps/nextjs-app/src/features/app/components/field-setting/useFieldTypeSubtitle.ts @@ -1,4 +1,4 @@ -import { assertNever, FieldType } from '@teable-group/core'; +import { assertNever, FieldType } from '@teable/core'; import { useTranslation } from 'next-i18next'; import { useCallback } from 'react'; import { tableConfig } from '@/features/i18n/table.config'; diff --git a/apps/nextjs-app/src/features/app/components/notifications/NotificationActionBar.tsx b/apps/nextjs-app/src/features/app/components/notifications/NotificationActionBar.tsx index 421b9f9a3..32278e7fb 100644 --- a/apps/nextjs-app/src/features/app/components/notifications/NotificationActionBar.tsx +++ b/apps/nextjs-app/src/features/app/components/notifications/NotificationActionBar.tsx @@ -1,5 +1,5 @@ -import { NotificationStatesEnum } from '@teable-group/core'; -import { CheckSquare, MarkUnread, MoreHorizontal } from '@teable-group/icons'; +import { NotificationStatesEnum } from '@teable/core'; +import { CheckSquare, MarkUnread, MoreHorizontal } from '@teable/icons'; import { Button, HoverCard, @@ -9,7 +9,7 @@ import { TooltipContent, TooltipProvider, TooltipTrigger, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import React from 'react'; interface ActionBarProps { diff --git a/apps/nextjs-app/src/features/app/components/notifications/NotificationIcon.tsx b/apps/nextjs-app/src/features/app/components/notifications/NotificationIcon.tsx index e7b35a0a7..d02d192bb 100644 --- a/apps/nextjs-app/src/features/app/components/notifications/NotificationIcon.tsx +++ b/apps/nextjs-app/src/features/app/components/notifications/NotificationIcon.tsx @@ -2,9 +2,9 @@ import type { INotificationUserIcon, INotificationIcon, INotificationSystemIcon, -} from '@teable-group/core'; -import { NotificationTypeEnum } from '@teable-group/core'; -import { Avatar, AvatarFallback, AvatarImage } from '@teable-group/ui-lib'; +} from '@teable/core'; +import { NotificationTypeEnum } from '@teable/core'; +import { Avatar, AvatarFallback, AvatarImage } from '@teable/ui-lib'; import React, { useCallback } from 'react'; interface NotificationIconProps { diff --git a/apps/nextjs-app/src/features/app/components/notifications/NotificationList.tsx b/apps/nextjs-app/src/features/app/components/notifications/NotificationList.tsx index 3fdcd55da..d2060e3ab 100644 --- a/apps/nextjs-app/src/features/app/components/notifications/NotificationList.tsx +++ b/apps/nextjs-app/src/features/app/components/notifications/NotificationList.tsx @@ -1,10 +1,10 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { NotificationStatesEnum } from '@teable-group/core'; -import { Inbox } from '@teable-group/icons'; -import type { INotificationVo } from '@teable-group/openapi'; -import { updateNotificationStatus } from '@teable-group/openapi'; -import { ReactQueryKeys } from '@teable-group/sdk/config/react-query-keys'; -import { Button } from '@teable-group/ui-lib'; +import type { NotificationStatesEnum } from '@teable/core'; +import { Inbox } from '@teable/icons'; +import type { INotificationVo } from '@teable/openapi'; +import { updateNotificationStatus } from '@teable/openapi'; +import { ReactQueryKeys } from '@teable/sdk/config/react-query-keys'; +import { Button } from '@teable/ui-lib'; import dayjs, { extend } from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; import React from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/notifications/NotificationsManage.tsx b/apps/nextjs-app/src/features/app/components/notifications/NotificationsManage.tsx index fa80b6fee..97bf3490d 100644 --- a/apps/nextjs-app/src/features/app/components/notifications/NotificationsManage.tsx +++ b/apps/nextjs-app/src/features/app/components/notifications/NotificationsManage.tsx @@ -1,14 +1,14 @@ import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; -import { NotificationStatesEnum } from '@teable-group/core'; -import { Bell, CheckCircle2 as Read, RefreshCcw } from '@teable-group/icons'; +import { NotificationStatesEnum } from '@teable/core'; +import { Bell, CheckCircle2 as Read, RefreshCcw } from '@teable/icons'; import { getNotificationList, getNotificationUnreadCount, notificationReadAll, -} from '@teable-group/openapi'; -import { useNotification } from '@teable-group/sdk'; -import { ReactQueryKeys } from '@teable-group/sdk/config/react-query-keys'; -import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib'; +} from '@teable/openapi'; +import { useNotification } from '@teable/sdk'; +import { ReactQueryKeys } from '@teable/sdk/config/react-query-keys'; +import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib'; import classNames from 'classnames'; import React, { useEffect, useState } from 'react'; import { NotificationList } from './NotificationList'; diff --git a/apps/nextjs-app/src/features/app/components/setting/Account.tsx b/apps/nextjs-app/src/features/app/components/setting/Account.tsx index e4bce7f3a..abb829734 100644 --- a/apps/nextjs-app/src/features/app/components/setting/Account.tsx +++ b/apps/nextjs-app/src/features/app/components/setting/Account.tsx @@ -1,7 +1,7 @@ import { useMutation } from '@tanstack/react-query'; -import { ArrowUpRight } from '@teable-group/icons'; -import { updateUserAvatar, updateUserName } from '@teable-group/openapi'; -import { useSession } from '@teable-group/sdk'; +import { ArrowUpRight } from '@teable/icons'; +import { updateUserAvatar, updateUserName } from '@teable/openapi'; +import { useSession } from '@teable/sdk'; import { Avatar, AvatarFallback, @@ -14,7 +14,7 @@ import { TooltipContent, TooltipProvider, TooltipTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; import React from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/setting/Notifications.tsx b/apps/nextjs-app/src/features/app/components/setting/Notifications.tsx index 465c48590..48419680d 100644 --- a/apps/nextjs-app/src/features/app/components/setting/Notifications.tsx +++ b/apps/nextjs-app/src/features/app/components/setting/Notifications.tsx @@ -1,6 +1,6 @@ -import { updateUserNotifyMeta } from '@teable-group/openapi'; -import { useSession } from '@teable-group/sdk'; -import { Label, Separator, Switch } from '@teable-group/ui-lib/shadcn'; +import { updateUserNotifyMeta } from '@teable/openapi'; +import { useSession } from '@teable/sdk'; +import { Label, Separator, Switch } from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; export const Notifications: React.FC = () => { diff --git a/apps/nextjs-app/src/features/app/components/setting/SettingDialog.tsx b/apps/nextjs-app/src/features/app/components/setting/SettingDialog.tsx index e48b877dc..953630f32 100644 --- a/apps/nextjs-app/src/features/app/components/setting/SettingDialog.tsx +++ b/apps/nextjs-app/src/features/app/components/setting/SettingDialog.tsx @@ -1,4 +1,4 @@ -import { Bell, Settings, UserEdit } from '@teable-group/icons'; +import { Bell, Settings, UserEdit } from '@teable/icons'; import { Dialog, DialogContent, @@ -6,7 +6,7 @@ import { TabsContent, TabsList, TabsTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; import { System } from '@/features/app/components/setting/System'; import { Account } from './Account'; diff --git a/apps/nextjs-app/src/features/app/components/setting/System.tsx b/apps/nextjs-app/src/features/app/components/setting/System.tsx index 86adcbfe5..739e3630e 100644 --- a/apps/nextjs-app/src/features/app/components/setting/System.tsx +++ b/apps/nextjs-app/src/features/app/components/setting/System.tsx @@ -1,5 +1,5 @@ -import { ThemeKey, useTheme } from '@teable-group/sdk'; -import { Label, RadioGroup, RadioGroupItem, Separator } from '@teable-group/ui-lib/shadcn'; +import { ThemeKey, useTheme } from '@teable/sdk'; +import { Label, RadioGroup, RadioGroupItem, Separator } from '@teable/ui-lib/shadcn'; import { useTranslation } from 'next-i18next'; export const System: React.FC = () => { diff --git a/apps/nextjs-app/src/features/app/components/setting/account/ChangePasswordDialog.tsx b/apps/nextjs-app/src/features/app/components/setting/account/ChangePasswordDialog.tsx index a6210e1ef..9ee87377f 100644 --- a/apps/nextjs-app/src/features/app/components/setting/account/ChangePasswordDialog.tsx +++ b/apps/nextjs-app/src/features/app/components/setting/account/ChangePasswordDialog.tsx @@ -1,7 +1,7 @@ import { useMutation } from '@tanstack/react-query'; -import type { HttpError } from '@teable-group/core'; -import { changePassword, changePasswordRoSchema } from '@teable-group/openapi'; -import { Spin } from '@teable-group/ui-lib/base'; +import type { HttpError } from '@teable/core'; +import { changePassword, changePasswordRoSchema } from '@teable/openapi'; +import { Spin } from '@teable/ui-lib/base'; import { Button, Dialog, @@ -15,7 +15,7 @@ import { Input, Label, useToast, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; import { useState } from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/space/SpaceActionBar.tsx b/apps/nextjs-app/src/features/app/components/space/SpaceActionBar.tsx index 5d65f7506..fcc187aa2 100644 --- a/apps/nextjs-app/src/features/app/components/space/SpaceActionBar.tsx +++ b/apps/nextjs-app/src/features/app/components/space/SpaceActionBar.tsx @@ -1,10 +1,10 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'; -import { hasPermission } from '@teable-group/core'; -import { MoreHorizontal, UserPlus } from '@teable-group/icons'; -import type { IGetSpaceVo } from '@teable-group/openapi'; -import { createBase } from '@teable-group/openapi'; -import type { ButtonProps } from '@teable-group/ui-lib'; -import { Button } from '@teable-group/ui-lib'; +import { hasPermission } from '@teable/core'; +import { MoreHorizontal, UserPlus } from '@teable/icons'; +import type { IGetSpaceVo } from '@teable/openapi'; +import { createBase } from '@teable/openapi'; +import type { ButtonProps } from '@teable/ui-lib'; +import { Button } from '@teable/ui-lib'; import { useTranslation } from 'next-i18next'; import React from 'react'; import { spaceConfig } from '@/features/i18n/space.config'; diff --git a/apps/nextjs-app/src/features/app/components/space/SpaceRenaming.tsx b/apps/nextjs-app/src/features/app/components/space/SpaceRenaming.tsx index be43b0deb..e7aae5c78 100644 --- a/apps/nextjs-app/src/features/app/components/space/SpaceRenaming.tsx +++ b/apps/nextjs-app/src/features/app/components/space/SpaceRenaming.tsx @@ -1,4 +1,4 @@ -import { Input } from '@teable-group/ui-lib'; +import { Input } from '@teable/ui-lib'; import React, { useEffect, useRef } from 'react'; interface SpaceRenamingProps { diff --git a/apps/nextjs-app/src/features/app/components/toggle-side-bar/PaneSkeleton.tsx b/apps/nextjs-app/src/features/app/components/toggle-side-bar/PaneSkeleton.tsx index 59773cbc8..e14398859 100644 --- a/apps/nextjs-app/src/features/app/components/toggle-side-bar/PaneSkeleton.tsx +++ b/apps/nextjs-app/src/features/app/components/toggle-side-bar/PaneSkeleton.tsx @@ -1,4 +1,4 @@ -import { Skeleton, Separator } from '@teable-group/ui-lib'; +import { Skeleton, Separator } from '@teable/ui-lib'; export const PaneSkeleton = () => { return ( diff --git a/apps/nextjs-app/src/features/app/components/toggle-side-bar/ResizablePane.tsx b/apps/nextjs-app/src/features/app/components/toggle-side-bar/ResizablePane.tsx index 4794342cf..5e38f2f67 100644 --- a/apps/nextjs-app/src/features/app/components/toggle-side-bar/ResizablePane.tsx +++ b/apps/nextjs-app/src/features/app/components/toggle-side-bar/ResizablePane.tsx @@ -1,6 +1,6 @@ -import { ChevronsLeft } from '@teable-group/icons'; -import { LocalStorageKeys, useIsHydrated, useIsMobile } from '@teable-group/sdk'; -import { ResizablePanelGroup, ResizableHandle, ResizablePanel, Button } from '@teable-group/ui-lib'; +import { ChevronsLeft } from '@teable/icons'; +import { LocalStorageKeys, useIsHydrated, useIsMobile } from '@teable/sdk'; +import { ResizablePanelGroup, ResizableHandle, ResizablePanel, Button } from '@teable/ui-lib'; import classNames from 'classnames'; import { isString } from 'lodash'; import React, { useRef, useState, useEffect } from 'react'; diff --git a/apps/nextjs-app/src/features/app/components/user/UserNav.tsx b/apps/nextjs-app/src/features/app/components/user/UserNav.tsx index fd165b59e..3a2e1aea7 100644 --- a/apps/nextjs-app/src/features/app/components/user/UserNav.tsx +++ b/apps/nextjs-app/src/features/app/components/user/UserNav.tsx @@ -1,8 +1,8 @@ import { ExitIcon } from '@radix-ui/react-icons'; import { useMutation } from '@tanstack/react-query'; -import { Settings } from '@teable-group/icons'; -import { signout } from '@teable-group/openapi'; -import { useSession } from '@teable-group/sdk/hooks'; +import { Settings } from '@teable/icons'; +import { signout } from '@teable/openapi'; +import { useSession } from '@teable/sdk/hooks'; import { DropdownMenu, DropdownMenuContent, @@ -10,7 +10,7 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from '@teable-group/ui-lib/shadcn'; +} from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import React from 'react'; import { useSettingStore } from '../setting/useSettingStore'; diff --git a/apps/nextjs-app/src/features/app/dashboard/GridContent.tsx b/apps/nextjs-app/src/features/app/dashboard/GridContent.tsx index 456b510f3..2e2e746cc 100644 --- a/apps/nextjs-app/src/features/app/dashboard/GridContent.tsx +++ b/apps/nextjs-app/src/features/app/dashboard/GridContent.tsx @@ -1,7 +1,7 @@ -import { StatisticsFunc } from '@teable-group/core'; -import { ExpandRecorder } from '@teable-group/sdk/components'; -import { useTableId, useViewId } from '@teable-group/sdk/hooks'; -import { TabsContent, Card, CardContent, CardHeader, CardTitle } from '@teable-group/ui-lib/shadcn'; +import { StatisticsFunc } from '@teable/core'; +import { ExpandRecorder } from '@teable/sdk/components'; +import { useTableId, useViewId } from '@teable/sdk/hooks'; +import { TabsContent, Card, CardContent, CardHeader, CardTitle } from '@teable/ui-lib/shadcn'; import { useState } from 'react'; import { GridViewBase } from '../blocks/view/grid/GridViewBase'; import { BarChartCard } from './components/BarChart'; diff --git a/apps/nextjs-app/src/features/app/dashboard/Pages.tsx b/apps/nextjs-app/src/features/app/dashboard/Pages.tsx index 8e0bd3f6b..01ffdb08d 100644 --- a/apps/nextjs-app/src/features/app/dashboard/Pages.tsx +++ b/apps/nextjs-app/src/features/app/dashboard/Pages.tsx @@ -1,6 +1,6 @@ -import { AnchorProvider } from '@teable-group/sdk/context'; -import { Tabs } from '@teable-group/ui-lib/shadcn'; -import { Alert, AlertTitle, AlertDescription } from '@teable-group/ui-lib/shadcn/ui/alert'; +import { AnchorProvider } from '@teable/sdk/context'; +import { Tabs } from '@teable/ui-lib/shadcn'; +import { Alert, AlertTitle, AlertDescription } from '@teable/ui-lib/shadcn/ui/alert'; import { useTranslation } from 'next-i18next'; import { useState } from 'react'; import { dashboardConfig } from '@/features/i18n/dashboard.config'; diff --git a/apps/nextjs-app/src/features/app/dashboard/components/BarChart.tsx b/apps/nextjs-app/src/features/app/dashboard/components/BarChart.tsx index de098e0dd..4b3ae69e8 100644 --- a/apps/nextjs-app/src/features/app/dashboard/components/BarChart.tsx +++ b/apps/nextjs-app/src/features/app/dashboard/components/BarChart.tsx @@ -1,4 +1,4 @@ -import { Card, CardHeader, CardTitle, CardContent } from '@teable-group/ui-lib/shadcn'; +import { Card, CardHeader, CardTitle, CardContent } from '@teable/ui-lib/shadcn'; import { Bar, BarChart, ResponsiveContainer, XAxis, YAxis } from 'recharts'; import { useChartData } from '../hooks/useChartData'; diff --git a/apps/nextjs-app/src/features/app/dashboard/components/LineChart.tsx b/apps/nextjs-app/src/features/app/dashboard/components/LineChart.tsx index d182d6f37..77e7ac43c 100644 --- a/apps/nextjs-app/src/features/app/dashboard/components/LineChart.tsx +++ b/apps/nextjs-app/src/features/app/dashboard/components/LineChart.tsx @@ -1,10 +1,4 @@ -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from '@teable-group/ui-lib/shadcn'; +import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@teable/ui-lib/shadcn'; import { Line, LineChart, ResponsiveContainer, Tooltip } from 'recharts'; import { useLineChartData } from '../hooks/useLineChartData'; diff --git a/apps/nextjs-app/src/features/app/dashboard/components/Pickers.tsx b/apps/nextjs-app/src/features/app/dashboard/components/Pickers.tsx index 212335321..835693991 100644 --- a/apps/nextjs-app/src/features/app/dashboard/components/Pickers.tsx +++ b/apps/nextjs-app/src/features/app/dashboard/components/Pickers.tsx @@ -1,9 +1,9 @@ -import { Filter as FilterIcon } from '@teable-group/icons'; -import type { IFilter } from '@teable-group/sdk/components'; -import { Filter } from '@teable-group/sdk/components'; -import { useTable, useTables, useView, useViews } from '@teable-group/sdk/hooks'; -import { Selector } from '@teable-group/ui-lib/base'; -import { Button, useToast } from '@teable-group/ui-lib/shadcn'; +import { Filter as FilterIcon } from '@teable/icons'; +import type { IFilter } from '@teable/sdk/components'; +import { Filter } from '@teable/sdk/components'; +import { useTable, useTables, useView, useViews } from '@teable/sdk/hooks'; +import { Selector } from '@teable/ui-lib/base'; +import { Button, useToast } from '@teable/ui-lib/shadcn'; import { useCallback, useEffect } from 'react'; import z from 'zod'; import { fromZodError } from 'zod-validation-error'; diff --git a/apps/nextjs-app/src/features/app/dashboard/components/PieChart.tsx b/apps/nextjs-app/src/features/app/dashboard/components/PieChart.tsx index 92b7c6393..b8aff2dc3 100644 --- a/apps/nextjs-app/src/features/app/dashboard/components/PieChart.tsx +++ b/apps/nextjs-app/src/features/app/dashboard/components/PieChart.tsx @@ -1,10 +1,4 @@ -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from '@teable-group/ui-lib/shadcn'; +import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@teable/ui-lib/shadcn'; import { Cell, Pie, PieChart, ResponsiveContainer, Tooltip } from 'recharts'; import { useChartData } from '../hooks/useChartData'; diff --git a/apps/nextjs-app/src/features/app/dashboard/components/RecentSales.tsx b/apps/nextjs-app/src/features/app/dashboard/components/RecentSales.tsx index db9104ffb..aaa715bef 100644 --- a/apps/nextjs-app/src/features/app/dashboard/components/RecentSales.tsx +++ b/apps/nextjs-app/src/features/app/dashboard/components/RecentSales.tsx @@ -1,4 +1,4 @@ -import { Avatar, AvatarFallback, AvatarImage } from '@teable-group/ui-lib/shadcn'; +import { Avatar, AvatarFallback, AvatarImage } from '@teable/ui-lib/shadcn'; export function RecentSales() { return ( diff --git a/apps/nextjs-app/src/features/app/dashboard/components/Search.tsx b/apps/nextjs-app/src/features/app/dashboard/components/Search.tsx index 490e01d83..809c4f085 100644 --- a/apps/nextjs-app/src/features/app/dashboard/components/Search.tsx +++ b/apps/nextjs-app/src/features/app/dashboard/components/Search.tsx @@ -1,4 +1,4 @@ -import { Input } from '@teable-group/ui-lib/shadcn'; +import { Input } from '@teable/ui-lib/shadcn'; export function Search() { return ( diff --git a/apps/nextjs-app/src/features/app/dashboard/hooks/useAggregates.ts b/apps/nextjs-app/src/features/app/dashboard/hooks/useAggregates.ts index eece60004..cad38e72b 100644 --- a/apps/nextjs-app/src/features/app/dashboard/hooks/useAggregates.ts +++ b/apps/nextjs-app/src/features/app/dashboard/hooks/useAggregates.ts @@ -1,8 +1,8 @@ -import type { StatisticsFunc } from '@teable-group/core'; -import { CellValueType } from '@teable-group/core'; -import { useFields, useTable, useViewId } from '@teable-group/sdk/hooks'; -import { Table } from '@teable-group/sdk/model'; -import { statisticsValue2DisplayValue } from '@teable-group/sdk/utils'; +import type { StatisticsFunc } from '@teable/core'; +import { CellValueType } from '@teable/core'; +import { useFields, useTable, useViewId } from '@teable/sdk/hooks'; +import { Table } from '@teable/sdk/model'; +import { statisticsValue2DisplayValue } from '@teable/sdk/utils'; import { useEffect, useMemo, useState } from 'react'; export function useAggregates(funcs: StatisticsFunc[]) { diff --git a/apps/nextjs-app/src/features/app/dashboard/hooks/useChartData.ts b/apps/nextjs-app/src/features/app/dashboard/hooks/useChartData.ts index 725645aff..ba1f0ab4a 100644 --- a/apps/nextjs-app/src/features/app/dashboard/hooks/useChartData.ts +++ b/apps/nextjs-app/src/features/app/dashboard/hooks/useChartData.ts @@ -1,7 +1,7 @@ -import type { ISelectFieldOptions } from '@teable-group/core'; -import { Colors, ColorUtils, CellValueType, FieldType } from '@teable-group/core'; -import { useBase, useFields, useTable, useView } from '@teable-group/sdk/hooks'; -import { Base } from '@teable-group/sdk/model'; +import type { ISelectFieldOptions } from '@teable/core'; +import { Colors, ColorUtils, CellValueType, FieldType } from '@teable/core'; +import { useBase, useFields, useTable, useView } from '@teable/sdk/hooks'; +import { Base } from '@teable/sdk/model'; import { useEffect, useMemo, useState } from 'react'; interface IData { diff --git a/apps/nextjs-app/src/features/app/dashboard/hooks/useLineChartData.ts b/apps/nextjs-app/src/features/app/dashboard/hooks/useLineChartData.ts index cfd47f9dd..327a226a6 100644 --- a/apps/nextjs-app/src/features/app/dashboard/hooks/useLineChartData.ts +++ b/apps/nextjs-app/src/features/app/dashboard/hooks/useLineChartData.ts @@ -1,6 +1,6 @@ -import { CellValueType, FieldType } from '@teable-group/core'; -import { useBase, useFields, useTable, useViewId } from '@teable-group/sdk/hooks'; -import { Base } from '@teable-group/sdk/model'; +import { CellValueType, FieldType } from '@teable/core'; +import { useBase, useFields, useTable, useViewId } from '@teable/sdk/hooks'; +import { Base } from '@teable/sdk/model'; import { useEffect, useMemo, useState } from 'react'; interface IData { diff --git a/apps/nextjs-app/src/features/app/layouts/AppLayout.tsx b/apps/nextjs-app/src/features/app/layouts/AppLayout.tsx index 135a7f66a..6656625dd 100644 --- a/apps/nextjs-app/src/features/app/layouts/AppLayout.tsx +++ b/apps/nextjs-app/src/features/app/layouts/AppLayout.tsx @@ -1,4 +1,4 @@ -import { useIsTouchDevice } from '@teable-group/sdk/hooks'; +import { useIsTouchDevice } from '@teable/sdk/hooks'; import { useEffect, type FC, type PropsWithChildren } from 'react'; import { MainLayout } from '@/components/layout'; diff --git a/apps/nextjs-app/src/features/app/layouts/BaseLayout.tsx b/apps/nextjs-app/src/features/app/layouts/BaseLayout.tsx index 3051afce0..1126a800c 100644 --- a/apps/nextjs-app/src/features/app/layouts/BaseLayout.tsx +++ b/apps/nextjs-app/src/features/app/layouts/BaseLayout.tsx @@ -1,8 +1,8 @@ -import type { ITableVo } from '@teable-group/core'; -import type { IGetBaseVo } from '@teable-group/openapi'; -import { NotificationProvider, SessionProvider } from '@teable-group/sdk'; -import type { IUser } from '@teable-group/sdk'; -import { AnchorContext, AppProvider, BaseProvider, TableProvider } from '@teable-group/sdk/context'; +import type { ITableVo } from '@teable/core'; +import type { IGetBaseVo } from '@teable/openapi'; +import { NotificationProvider, SessionProvider } from '@teable/sdk'; +import type { IUser } from '@teable/sdk'; +import { AnchorContext, AppProvider, BaseProvider, TableProvider } from '@teable/sdk/context'; import { useRouter } from 'next/router'; import React from 'react'; import { SideBar } from '@/features/app/blocks/base/base-side-bar/SideBar'; diff --git a/apps/nextjs-app/src/features/app/layouts/SettingLayout.tsx b/apps/nextjs-app/src/features/app/layouts/SettingLayout.tsx index 4743e5410..1c47119b2 100644 --- a/apps/nextjs-app/src/features/app/layouts/SettingLayout.tsx +++ b/apps/nextjs-app/src/features/app/layouts/SettingLayout.tsx @@ -1,5 +1,5 @@ -import type { IUser } from '@teable-group/sdk'; -import { AppProvider, SessionProvider } from '@teable-group/sdk'; +import type { IUser } from '@teable/sdk'; +import { AppProvider, SessionProvider } from '@teable/sdk'; import React from 'react'; import { AppLayout } from '@/features/app/layouts'; import { useSdkLocale } from '../hooks/useSdkLocale'; diff --git a/apps/nextjs-app/src/features/app/layouts/SpaceLayout.tsx b/apps/nextjs-app/src/features/app/layouts/SpaceLayout.tsx index 7814d6191..cbafa1483 100644 --- a/apps/nextjs-app/src/features/app/layouts/SpaceLayout.tsx +++ b/apps/nextjs-app/src/features/app/layouts/SpaceLayout.tsx @@ -1,6 +1,6 @@ -import type { IUser } from '@teable-group/sdk'; -import { NotificationProvider, SessionProvider } from '@teable-group/sdk'; -import { AppProvider } from '@teable-group/sdk/context'; +import type { IUser } from '@teable/sdk'; +import { NotificationProvider, SessionProvider } from '@teable/sdk'; +import { AppProvider } from '@teable/sdk/context'; import React from 'react'; import { SideBar } from '@/features/app/blocks/space/space-side-bar/SideBar'; import { AppLayout } from '@/features/app/layouts'; diff --git a/apps/nextjs-app/src/features/app/utils/clipboard.spec.ts b/apps/nextjs-app/src/features/app/utils/clipboard.spec.ts index aa8593285..b2aca43be 100644 --- a/apps/nextjs-app/src/features/app/utils/clipboard.spec.ts +++ b/apps/nextjs-app/src/features/app/utils/clipboard.spec.ts @@ -13,7 +13,7 @@ const parseData = [ ['Bob', '40', 'heavy'], ]; -vi.mock('@teable-group/core', () => { +vi.mock('@teable/core', () => { return { __esModule: true, IFieldVo: {}, diff --git a/apps/nextjs-app/src/features/app/utils/clipboard.ts b/apps/nextjs-app/src/features/app/utils/clipboard.ts index ea45199ff..ea637c0a4 100644 --- a/apps/nextjs-app/src/features/app/utils/clipboard.ts +++ b/apps/nextjs-app/src/features/app/utils/clipboard.ts @@ -1,4 +1,4 @@ -import { fieldVoSchema, parseClipboardText, type IFieldVo } from '@teable-group/core'; +import { fieldVoSchema, parseClipboardText, type IFieldVo } from '@teable/core'; import { mapValues } from 'lodash'; import { fromZodError } from 'zod-validation-error'; diff --git a/apps/nextjs-app/src/features/app/utils/file.ts b/apps/nextjs-app/src/features/app/utils/file.ts index d9cc9629e..88f9e0b0d 100644 --- a/apps/nextjs-app/src/features/app/utils/file.ts +++ b/apps/nextjs-app/src/features/app/utils/file.ts @@ -1,4 +1,4 @@ -import UnknownFileIcon from '@teable-group/ui-lib/icons/app/unknown-file.svg'; +import UnknownFileIcon from '@teable/ui-lib/icons/app/unknown-file.svg'; import { renderToString } from 'react-dom/server'; export const getFileCover = (mimetype: string, url: string) => { diff --git a/apps/nextjs-app/src/features/auth/components/SignForm.tsx b/apps/nextjs-app/src/features/auth/components/SignForm.tsx index 64e459545..275f8ef9c 100644 --- a/apps/nextjs-app/src/features/auth/components/SignForm.tsx +++ b/apps/nextjs-app/src/features/auth/components/SignForm.tsx @@ -1,9 +1,9 @@ import { useMutation } from '@tanstack/react-query'; -import type { HttpError } from '@teable-group/core'; -import type { ISignin } from '@teable-group/openapi'; -import { signup, signin, signinSchema, signupSchema } from '@teable-group/openapi'; -import { Spin } from '@teable-group/ui-lib/base'; -import { Button, Input, Label } from '@teable-group/ui-lib/shadcn'; +import type { HttpError } from '@teable/core'; +import type { ISignin } from '@teable/openapi'; +import { signup, signin, signinSchema, signupSchema } from '@teable/openapi'; +import { Spin } from '@teable/ui-lib/base'; +import { Button, Input, Label } from '@teable/ui-lib/shadcn'; import classNames from 'classnames'; import { useTranslation } from 'next-i18next'; import type { FC } from 'react'; diff --git a/apps/nextjs-app/src/features/auth/pages/LoginPage.tsx b/apps/nextjs-app/src/features/auth/pages/LoginPage.tsx index d0f60b79c..f927f77b0 100644 --- a/apps/nextjs-app/src/features/auth/pages/LoginPage.tsx +++ b/apps/nextjs-app/src/features/auth/pages/LoginPage.tsx @@ -1,7 +1,7 @@ import { QueryClientProvider } from '@tanstack/react-query'; -import { TeableNew } from '@teable-group/icons'; -import { createQueryClient } from '@teable-group/sdk/context/app/queryClient'; -import { Tabs, TabsList, TabsTrigger } from '@teable-group/ui-lib/shadcn'; +import { TeableNew } from '@teable/icons'; +import { createQueryClient } from '@teable/sdk/context/app/queryClient'; +import { Tabs, TabsList, TabsTrigger } from '@teable/ui-lib/shadcn'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; import { NextSeo } from 'next-seo'; diff --git a/apps/nextjs-app/src/features/system/pages/NotFoundPage.tsx b/apps/nextjs-app/src/features/system/pages/NotFoundPage.tsx index 910961780..7a760a9a5 100644 --- a/apps/nextjs-app/src/features/system/pages/NotFoundPage.tsx +++ b/apps/nextjs-app/src/features/system/pages/NotFoundPage.tsx @@ -1,4 +1,4 @@ -import { Button } from '@teable-group/ui-lib/shadcn'; +import { Button } from '@teable/ui-lib/shadcn'; import Head from 'next/head'; import { useTranslation } from 'next-i18next'; import type { FC } from 'react'; diff --git a/apps/nextjs-app/src/lib/design-pages-data.ts b/apps/nextjs-app/src/lib/design-pages-data.ts index 82dd59e2b..b566e32be 100644 --- a/apps/nextjs-app/src/lib/design-pages-data.ts +++ b/apps/nextjs-app/src/lib/design-pages-data.ts @@ -1,5 +1,5 @@ -import type { IFieldVo, ITableVo } from '@teable-group/core'; -import type { IGetBaseVo } from '@teable-group/openapi'; +import type { IFieldVo, ITableVo } from '@teable/core'; +import type { IGetBaseVo } from '@teable/openapi'; import { ssrApi } from '@/backend/api/rest/table.ssr'; export interface IDesignPageProps { diff --git a/apps/nextjs-app/src/lib/view-pages-data.ts b/apps/nextjs-app/src/lib/view-pages-data.ts index e729528cb..52c969427 100644 --- a/apps/nextjs-app/src/lib/view-pages-data.ts +++ b/apps/nextjs-app/src/lib/view-pages-data.ts @@ -1,5 +1,5 @@ -import type { IFieldVo, IRecord, ITableVo, IViewVo } from '@teable-group/core'; -import type { IGetBaseVo } from '@teable-group/openapi'; +import type { IFieldVo, IRecord, ITableVo, IViewVo } from '@teable/core'; +import type { IGetBaseVo } from '@teable/openapi'; import { ssrApi } from '@/backend/api/rest/table.ssr'; export interface IViewPageProps { diff --git a/apps/nextjs-app/src/lib/withAuthSSR.ts b/apps/nextjs-app/src/lib/withAuthSSR.ts index c6b2ea05b..917d9bce0 100644 --- a/apps/nextjs-app/src/lib/withAuthSSR.ts +++ b/apps/nextjs-app/src/lib/withAuthSSR.ts @@ -1,4 +1,4 @@ -import type { IHttpError } from '@teable-group/core'; +import type { IHttpError } from '@teable/core'; import type { GetServerSideProps, GetServerSidePropsContext } from 'next'; import { ssrApi } from '@/backend/api/rest/table.ssr'; diff --git a/apps/nextjs-app/src/pages/_app.tsx b/apps/nextjs-app/src/pages/_app.tsx index 739941a15..782d09142 100644 --- a/apps/nextjs-app/src/pages/_app.tsx +++ b/apps/nextjs-app/src/pages/_app.tsx @@ -1,6 +1,6 @@ import { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi'; -import { HttpError, parseDsn } from '@teable-group/core'; -import type { IUser } from '@teable-group/sdk'; +import { HttpError, parseDsn } from '@teable/core'; +import type { IUser } from '@teable/sdk'; import dayjs from 'dayjs'; import timezone from 'dayjs/plugin/timezone'; import utc from 'dayjs/plugin/utc'; diff --git a/apps/nextjs-app/src/pages/base/[baseId]/[tableId].tsx b/apps/nextjs-app/src/pages/base/[baseId]/[tableId].tsx index 34e6c2b41..50403c346 100644 --- a/apps/nextjs-app/src/pages/base/[baseId]/[tableId].tsx +++ b/apps/nextjs-app/src/pages/base/[baseId]/[tableId].tsx @@ -1,4 +1,4 @@ -import type { IHttpError } from '@teable-group/core'; +import type { IHttpError } from '@teable/core'; import type { GetServerSideProps } from 'next'; import { ssrApi } from '@/backend/api/rest/table.ssr'; import type { NextPageWithLayout } from '@/lib/type'; diff --git a/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/[viewId].tsx b/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/[viewId].tsx index 0ea44755a..7cfc99c97 100644 --- a/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/[viewId].tsx +++ b/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/[viewId].tsx @@ -1,4 +1,4 @@ -import type { IHttpError } from '@teable-group/core'; +import type { IHttpError } from '@teable/core'; import type { GetServerSideProps } from 'next'; import type { ReactElement } from 'react'; import type { ITableProps } from '@/features/app/blocks/table/Table'; diff --git a/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/[viewId]/[recordId].tsx b/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/[viewId]/[recordId].tsx index 9a8fd7a60..eb55c5c5a 100644 --- a/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/[viewId]/[recordId].tsx +++ b/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/[viewId]/[recordId].tsx @@ -1,4 +1,4 @@ -import type { IHttpError, IRecord } from '@teable-group/core'; +import type { IHttpError, IRecord } from '@teable/core'; import type { GetServerSideProps } from 'next'; import type { ReactElement } from 'react'; import { ssrApi } from '@/backend/api/rest/table.ssr'; diff --git a/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/design.tsx b/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/design.tsx index 26accab8c..b3fb9283a 100644 --- a/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/design.tsx +++ b/apps/nextjs-app/src/pages/base/[baseId]/[tableId]/design.tsx @@ -1,4 +1,4 @@ -import type { IHttpError } from '@teable-group/core'; +import type { IHttpError } from '@teable/core'; import type { ReactElement } from 'react'; import { Design } from '@/features/app/blocks/design/Design'; import { BaseLayout } from '@/features/app/layouts/BaseLayout'; diff --git a/apps/nextjs-app/src/pages/base/[baseId]/automation.tsx b/apps/nextjs-app/src/pages/base/[baseId]/automation.tsx index 970da7e26..e1743ac1c 100644 --- a/apps/nextjs-app/src/pages/base/[baseId]/automation.tsx +++ b/apps/nextjs-app/src/pages/base/[baseId]/automation.tsx @@ -1,5 +1,5 @@ -import type { ITableVo } from '@teable-group/core'; -import type { IGetBaseVo } from '@teable-group/openapi'; +import type { ITableVo } from '@teable/core'; +import type { IGetBaseVo } from '@teable/openapi'; import type { GetServerSideProps } from 'next'; import type { ReactElement } from 'react'; import { ssrApi } from '@/backend/api/rest/table.ssr'; diff --git a/apps/nextjs-app/src/pages/base/[baseId]/dashboard.tsx b/apps/nextjs-app/src/pages/base/[baseId]/dashboard.tsx index 42c7d5d93..ec8bfb2dd 100644 --- a/apps/nextjs-app/src/pages/base/[baseId]/dashboard.tsx +++ b/apps/nextjs-app/src/pages/base/[baseId]/dashboard.tsx @@ -1,5 +1,5 @@ -import type { ITableVo } from '@teable-group/core'; -import type { IGetBaseVo } from '@teable-group/openapi'; +import type { ITableVo } from '@teable/core'; +import type { IGetBaseVo } from '@teable/openapi'; import type { GetServerSideProps } from 'next'; import type { ReactElement } from 'react'; import { ssrApi } from '@/backend/api/rest/table.ssr'; diff --git a/apps/nextjs-app/src/pages/invite/index.tsx b/apps/nextjs-app/src/pages/invite/index.tsx index 7be5faf27..273e13f69 100644 --- a/apps/nextjs-app/src/pages/invite/index.tsx +++ b/apps/nextjs-app/src/pages/invite/index.tsx @@ -1,4 +1,4 @@ -import type { IHttpError } from '@teable-group/core'; +import type { IHttpError } from '@teable/core'; import type { GetServerSideProps } from 'next'; import { ssrApi } from '@/backend/api/rest/table.ssr'; import { Error } from '@/features/app/blocks/Error'; diff --git a/apps/nextjs-app/src/pages/share/[shareId]/view/auth.tsx b/apps/nextjs-app/src/pages/share/[shareId]/view/auth.tsx index 578c16b32..0f8f6f1f6 100644 --- a/apps/nextjs-app/src/pages/share/[shareId]/view/auth.tsx +++ b/apps/nextjs-app/src/pages/share/[shareId]/view/auth.tsx @@ -1,5 +1,5 @@ import { QueryClientProvider } from '@tanstack/react-query'; -import { createQueryClient } from '@teable-group/sdk/context'; +import { createQueryClient } from '@teable/sdk/context'; import type { GetServerSideProps } from 'next'; import { AuthPage } from '@/features/app/blocks/share/view/AuthPage'; import { shareConfig } from '@/features/i18n/share.config'; diff --git a/apps/nextjs-app/src/pages/share/[shareId]/view/index.tsx b/apps/nextjs-app/src/pages/share/[shareId]/view/index.tsx index 6053cbc19..25fbcc5c5 100644 --- a/apps/nextjs-app/src/pages/share/[shareId]/view/index.tsx +++ b/apps/nextjs-app/src/pages/share/[shareId]/view/index.tsx @@ -1,5 +1,5 @@ -import type { IHttpError } from '@teable-group/core'; -import type { ShareViewGetVo } from '@teable-group/openapi'; +import type { IHttpError } from '@teable/core'; +import type { ShareViewGetVo } from '@teable/openapi'; import type { GetServerSideProps } from 'next'; import { ssrApi } from '@/backend/api/rest/table.ssr'; import type { IShareViewPageProps } from '@/features/app/blocks/share/view/ShareViewPage'; diff --git a/apps/nextjs-app/src/pages/space/[spaceId].tsx b/apps/nextjs-app/src/pages/space/[spaceId].tsx index e07d2d167..9ba6cf561 100644 --- a/apps/nextjs-app/src/pages/space/[spaceId].tsx +++ b/apps/nextjs-app/src/pages/space/[spaceId].tsx @@ -1,5 +1,5 @@ import { dehydrate, QueryClient } from '@tanstack/react-query'; -import { ReactQueryKeys } from '@teable-group/sdk'; +import { ReactQueryKeys } from '@teable/sdk'; import type { GetServerSideProps } from 'next'; import type { ReactElement } from 'react'; import { ssrApi } from '@/backend/api/rest/table.ssr'; diff --git a/apps/nextjs-app/src/styles/global.css b/apps/nextjs-app/src/styles/global.css index a1f2add99..af6f9d51f 100644 --- a/apps/nextjs-app/src/styles/global.css +++ b/apps/nextjs-app/src/styles/global.css @@ -1,4 +1,4 @@ -@import url('@teable-group/ui-lib/shadcn/global.shadcn.css'); +@import url('@teable/ui-lib/shadcn/global.shadcn.css'); :root { --btn-text-case: none; diff --git a/apps/nextjs-app/src/types.d/i18next.d.ts b/apps/nextjs-app/src/types.d/i18next.d.ts index eab1ac06f..6b815a29a 100644 --- a/apps/nextjs-app/src/types.d/i18next.d.ts +++ b/apps/nextjs-app/src/types.d/i18next.d.ts @@ -5,7 +5,7 @@ * @link https://react.i18next.com/latest/typescript */ import 'i18next'; -import type { I18nNamespaces } from '@teable-group/common-i18n'; +import type { I18nNamespaces } from '@teable/common-i18n'; declare module 'i18next' { interface CustomTypeOptions { diff --git a/apps/nextjs-app/src/types.d/react-i18next.d.ts b/apps/nextjs-app/src/types.d/react-i18next.d.ts index dce1f1329..838463be8 100644 --- a/apps/nextjs-app/src/types.d/react-i18next.d.ts +++ b/apps/nextjs-app/src/types.d/react-i18next.d.ts @@ -5,7 +5,7 @@ * @link https://react.i18next.com/latest/typescript */ import 'react-i18next'; -import type { I18nNamespaces } from '@teable-group/common-i18n'; +import type { I18nNamespaces } from '@teable/common-i18n'; declare module 'react-i18next' { interface CustomTypeOptions { diff --git a/apps/nextjs-app/tailwind.config.js b/apps/nextjs-app/tailwind.config.js index 35335d5ff..e0abc5bcb 100644 --- a/apps/nextjs-app/tailwind.config.js +++ b/apps/nextjs-app/tailwind.config.js @@ -1,5 +1,5 @@ const { join } = require('path'); -const uiConfig = require('@teable-group/ui-lib/ui.config.js'); +const uiConfig = require('@teable/ui-lib/ui.config.js'); const filePath = join(__dirname, './src/**/*.{js,ts,jsx,tsx}'); const sdkPath = join(__dirname, '../../packages/sdk/src/**/*.{js,ts,jsx,tsx}'); const uiLibPath = join(__dirname, '../../packages/ui-lib/src/**/*.{js,ts,jsx,tsx}'); diff --git a/apps/nextjs-app/tsconfig.json b/apps/nextjs-app/tsconfig.json index bf2715413..34b3e2a33 100644 --- a/apps/nextjs-app/tsconfig.json +++ b/apps/nextjs-app/tsconfig.json @@ -21,23 +21,23 @@ "@/themes/*": ["./themes/*"], "@/styles/*": ["./styles/*"], "@/api/*": ["./api/*"], - "@teable-group/common-i18n": ["../../../packages/common-i18n/src/index"], - "@teable-group/common-i18n/locales/*": ["../../../packages/common-i18n/src/locales/*"], - "@teable-group/ui-lib/*": ["../../../packages/ui-lib/src/*"], - "@teable-group/ui-lib": ["../../../packages/ui-lib/src/index"], - "@teable-group/sdk/*": ["../../../packages/sdk/src/*"], - "@teable-group/sdk": ["../../../packages/sdk/src/index"], - "@teable-group/db-main-prisma": ["../../../packages/db-main-prisma/src/index"], - "@teable-group/core": ["../../../packages/core/src/index"], - "@teable-group/openapi": ["../../../packages/openapi/src/index"], - "@teable-group/icons": ["../../../packages/icons/src/index"] + "@teable/common-i18n": ["../../../packages/common-i18n/src/index"], + "@teable/common-i18n/locales/*": ["../../../packages/common-i18n/src/locales/*"], + "@teable/ui-lib/*": ["../../../packages/ui-lib/src/*"], + "@teable/ui-lib": ["../../../packages/ui-lib/src/index"], + "@teable/sdk/*": ["../../../packages/sdk/src/*"], + "@teable/sdk": ["../../../packages/sdk/src/index"], + "@teable/db-main-prisma": ["../../../packages/db-main-prisma/src/index"], + "@teable/core": ["../../../packages/core/src/index"], + "@teable/openapi": ["../../../packages/openapi/src/index"], + "@teable/icons": ["../../../packages/icons/src/index"], }, "plugins": [ { - "name": "next" - } + "name": "next", + }, ], - "types": ["vitest/globals"] + "types": ["vitest/globals"], }, "exclude": ["**/node_modules", "**/.*/"], "include": [ @@ -50,6 +50,6 @@ "**/*.mjs", "**/*.jsx", "**/*.json", - ".next/types/**/*.ts" - ] + ".next/types/**/*.ts", + ], } diff --git a/dockers/teable/Dockerfile b/dockers/teable/Dockerfile index 17361c453..04fe16819 100644 --- a/dockers/teable/Dockerfile +++ b/dockers/teable/Dockerfile @@ -22,7 +22,7 @@ RUN pnpm fetch COPY --link . . RUN pnpm install --prefer-offline --frozen-lockfile -RUN pnpm -F @teable-group/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma +RUN pnpm -F @teable/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma ################################################################### # Stage 2: Build the app # @@ -66,7 +66,7 @@ RUN rm -fr node_modules && pnpm nuke:node_modules && \ chmod +x ./scripts/post-build-cleanup.mjs && zx ./scripts/post-build-cleanup.mjs RUN pnpm install --prod --prefer-offline --frozen-lockfile -RUN pnpm -F @teable-group/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma +RUN pnpm -F @teable/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma ################################################################## diff --git a/docs/about-linters.md b/docs/about-linters.md index a47b35a5a..f83a4ca35 100644 --- a/docs/about-linters.md +++ b/docs/about-linters.md @@ -16,14 +16,14 @@ module.exports = { root: true, // Be sure to set root to true in monorepo. ignorePatterns: ["**/node_modules", "**/.cache", "build", ".next"], extends: [ - "@teable-group/eslint-config-bases/typescript", - "@teable-group/eslint-config-bases/sonar", - "@teable-group/eslint-config-bases/regexp", - "@teable-group/eslint-config-bases/jest", - "@teable-group/eslint-config-bases/react", - "@teable-group/eslint-config-bases/rtl", - "@teable-group/eslint-config-bases/graphql-schema", - "@teable-group/eslint-config-bases/storybook", + "@teable/eslint-config-bases/typescript", + "@teable/eslint-config-bases/sonar", + "@teable/eslint-config-bases/regexp", + "@teable/eslint-config-bases/jest", + "@teable/eslint-config-bases/react", + "@teable/eslint-config-bases/rtl", + "@teable/eslint-config-bases/graphql-schema", + "@teable/eslint-config-bases/storybook", // Add specific rules for your framework if needed. // ie: @@ -33,7 +33,7 @@ module.exports = { // Post configure the prettier base so there won't be // any conficts between eslint / prettier - "@teable-group/eslint-config-bases/prettier-plugin", + "@teable/eslint-config-bases/prettier-plugin", ], rules: { // Specific global rules for your app or package diff --git a/docs/development/about-editing-op.md b/docs/development/about-editing-op.md index c55ebeb2c..30e9096cc 100644 --- a/docs/development/about-editing-op.md +++ b/docs/development/about-editing-op.md @@ -79,7 +79,7 @@ export class NumberField extends NumberFieldCore implements Field { 可以看到,Grid 组件 DataEditor 中,使用 onColumnResize 来处理 resize 事件,我们定义一个 useColumnResize 的 hook,用于处理 resize 事件, 它将会返回一个 onColumnResize 方法,同时,接受参数 columns 和 setColumns,用于更新 columns 的 width ```typescript -import { useFields, useViewId } from "@teable-group/sdk/hooks"; +import { useFields, useViewId } from "@teable/sdk/hooks"; import type { Dispatch, SetStateAction } from "react"; import { useCallback, useState } from "react"; import { useDebounce } from "react-use"; diff --git a/docs/docker/docker.md b/docs/docker/docker.md index bd257ca52..8fd9f2047 100644 --- a/docs/docker/docker.md +++ b/docs/docker/docker.md @@ -30,7 +30,7 @@ and build time (taking advantage of buildx cache). - [x] optional: [lazydocker](https://github.com/jesseduffield/lazydocker), a beautiful tui. - [x] optional: [dive](https://github.com/wagoodman/dive) to debug layer sizes. -> Note: Be sure to create a [.dockerignore containing at least those entries](https://github.com/teable-group/teable/blob/main/.dockerignore). +> Note: Be sure to create a [.dockerignore containing at least those entries](https://github.com/teableio/teable/blob/main/.dockerignore). ## Ready made commands @@ -64,8 +64,8 @@ DOCKER_BUILDKIT=1 docker-compose -f ./docker-compose.yml -f ./docker-compose.nex ## Multistage in details -See the latest [./docker-compose.nextjs-app.yml](https://github.com/teable-group/teable/blob/main/docker-compose.nextjs-app.yml) -and [./Dockerfile](https://github.com/teable-group/teable/blob/main/docker-compose.nextjs-app.yml). +See the latest [./docker-compose.nextjs-app.yml](https://github.com/teableio/teable/blob/main/docker-compose.nextjs-app.yml) +and [./Dockerfile](https://github.com/teableio/teable/blob/main/docker-compose.nextjs-app.yml). PS: The goal of multistage is mainly to reduce the size of the resulting image, it also allows to skip deps stage (ie: install deps) when no changes are detected in your deps (lock file). diff --git a/lint-staged.config.js b/lint-staged.config.js index 3267aad58..407dc81c3 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -6,7 +6,7 @@ * where we are able to add customization depending on the nature of the project (eslint...). * * {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} - * {@link https://github.com/teable-group/teable/blob/main/docs/about-lint-staged.md} + * {@link https://github.com/teableio/teable/blob/main/docs/about-lint-staged.md} */ const { concatFilesForPrettier } = require('./lint-staged.common.js'); @@ -15,9 +15,7 @@ const { concatFilesForPrettier } = require('./lint-staged.common.js'); * @type {Record string | string[] | Promise>} */ const rules = { - '**/*.{json,md,mdx,css,html,yml,yaml,scss,ts,js,tsx,jsx,mjs}': ( - filenames - ) => { + '**/*.{json,md,mdx,css,html,yml,yaml,scss,ts,js,tsx,jsx,mjs}': (filenames) => { return [`prettier --write ${concatFilesForPrettier(filenames)}`]; }, }; diff --git a/package.json b/package.json index 1d3d82c10..73dba815f 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "name": "@teable-group/teable", + "name": "@teable/teable", "license": "AGPL-3.0", "private": true, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable" + "url": "https://github.com/teableio/teable" }, "author": { "name": "tea artist", @@ -52,7 +52,7 @@ "@changesets/cli": "2.27.1", "@commitlint/cli": "18.6.0", "@commitlint/config-conventional": "18.6.0", - "@teable-group/eslint-config-bases": "workspace:^", + "@teable/eslint-config-bases": "workspace:^", "@types/shell-quote": "1.7.5", "eslint": "8.56.0", "husky": "9.0.7", diff --git a/packages/common-i18n/.eslintrc.cjs b/packages/common-i18n/.eslintrc.cjs index 247e81b5e..23b4d6ea4 100644 --- a/packages/common-i18n/.eslintrc.cjs +++ b/packages/common-i18n/.eslintrc.cjs @@ -1,9 +1,9 @@ /** * Specific eslint rules for this app/package, extends the base rules - * @see https://github.com/teable-group/teable/blob/main/docs/about-linters.md + * @see https://github.com/teableio/teable/blob/main/docs/about-linters.md */ -const { getDefaultIgnorePatterns } = require('@teable-group/eslint-config-bases/helpers'); +const { getDefaultIgnorePatterns } = require('@teable/eslint-config-bases/helpers'); module.exports = { root: true, @@ -14,9 +14,9 @@ module.exports = { }, ignorePatterns: [...getDefaultIgnorePatterns()], extends: [ - '@teable-group/eslint-config-bases/typescript', + '@teable/eslint-config-bases/typescript', // Apply prettier and disable incompatible rules - '@teable-group/eslint-config-bases/prettier-plugin', + '@teable/eslint-config-bases/prettier-plugin', ], rules: { // optional overrides per project diff --git a/packages/common-i18n/CHANGELOG.md b/packages/common-i18n/CHANGELOG.md index 27bdd78d9..1c02b65e1 100644 --- a/packages/common-i18n/CHANGELOG.md +++ b/packages/common-i18n/CHANGELOG.md @@ -1,34 +1 @@ -# @teable-group/common-i18n - -## 1.2.1 - -### Patch Changes - -- [#2740](https://github.com/teable-group/teable/pull/2740) [`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9) Thanks [@belgattitude](https://github.com/belgattitude)! - Changesets: by default will tag and version private packages - - Doc: https://github.com/changesets/changesets/blob/main/docs/versioning-apps.md - Ref: [changesets@2.25.0](https://github.com/changesets/changesets/releases/tag/%40changesets%2Fcli%402.25.0) & [#662](https://github.com/changesets/changesets/pull/662). - -## 1.2.0 - -### Minor Changes - -- [#2622](https://github.com/teable-group/teable/pull/2622) [`f2339d6e`](https://github.com/teable-group/teable/commit/f2339d6e62d844a1267c416d09110198e4f2af59) Thanks [@belgattitude](https://github.com/belgattitude)! - Add auth namespace and move to esm module (type='module' in package.json) - -## 1.1.1 - -### Patch Changes - -- [#2214](https://github.com/teable-group/teable/pull/2214) [`62818ba`](https://github.com/teable-group/teable/commit/62818badff67ce032a209fe9217c319271833ddc) Thanks [@belgattitude](https://github.com/belgattitude)! - Speedup and clean yarn install on CI - -## 1.1.0 - -### Minor Changes - -- [#1876](https://github.com/teable-group/teable/pull/1876) [`5ad462a`](https://github.com/teable-group/teable/commit/5ad462a9a621564366c7a0ef0a77899fc855de85) Thanks [@belgattitude](https://github.com/belgattitude)! - Enable eslint global cache - -## 1.0.0 - -### Major Changes - -- [#1727](https://github.com/teable-group/teable/pull/1727) [`a844907`](https://github.com/teable-group/teable/commit/a8449073efa6d1311ab9c51f9cacd451fafff3f4) Thanks [@belgattitude](https://github.com/belgattitude)! - Initial common shared locales package example +# @teable/common-i18n diff --git a/packages/common-i18n/README.md b/packages/common-i18n/README.md index 4c095ecea..2c08f2368 100644 --- a/packages/common-i18n/README.md +++ b/packages/common-i18n/README.md @@ -1,8 +1,8 @@ -# @teable-group/common-i18n +# @teable/common-i18n

- - build + + build

@@ -15,7 +15,7 @@ One possible way to share locales amongst apps in the monorepo. Add the workspace dependency to the consuming app or package. ```bash -yarn add @teable-group/common-locales:"workspace:^" +yarn add @teable/common-locales:"workspace:^" ``` Add an alias in tsconfig.js to enable fast-refresh. @@ -24,10 +24,8 @@ Add an alias in tsconfig.js to enable fast-refresh. { "compilerOptions": { "paths": { - "@teable-group/common-i18n": ["../../../packages/common-i18n/src/index"], - "@teable-group/common-i18n/locales/*": [ - "../../../packages/common-i18n/src/locales/*", - ], + "@teable/common-i18n": ["../../../packages/common-i18n/src/index"], + "@teable/common-i18n/locales/*": ["../../../packages/common-i18n/src/locales/*"], }, }, } @@ -37,7 +35,7 @@ Optionally create a file named `./types.d/react-i18next.d.ts` to enable typechec ```typescript import "react-i18next"; -import type { I18nNamespaces } from "@teable-group/common-i18n"; +import type { I18nNamespaces } from "@teable/common-i18n"; declare module "react-i18next" { interface CustomTypeOptions { diff --git a/packages/common-i18n/lint-staged.config.js b/packages/common-i18n/lint-staged.config.js index a25cea85c..15701fec7 100644 --- a/packages/common-i18n/lint-staged.config.js +++ b/packages/common-i18n/lint-staged.config.js @@ -4,7 +4,7 @@ * This files overrides the base lint-staged.config.js present in the root directory. * It allows to run eslint based the package specific requirements. * {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} - * {@link https://github.com/teable-group/teable/blob/main/docs/about-lint-staged.md} + * {@link https://github.com/teableio/teable/blob/main/docs/about-lint-staged.md} */ const { concatFilesForPrettier, getEslintFixCmd } = require('../../lint-staged.common.js'); diff --git a/packages/common-i18n/package.json b/packages/common-i18n/package.json index df3c4cf61..89fac7127 100644 --- a/packages/common-i18n/package.json +++ b/packages/common-i18n/package.json @@ -1,12 +1,12 @@ { - "name": "@teable-group/common-i18n", + "name": "@teable/common-i18n", "version": "1.0.0", "license": "AGPL-3.0", "private": true, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "packages/common-i18n" }, "author": { @@ -32,7 +32,7 @@ "typecheck": "tsc --project ./tsconfig.json --noEmit" }, "devDependencies": { - "@teable-group/eslint-config-bases": "workspace:^", + "@teable/eslint-config-bases": "workspace:^", "@types/node": "18.19.0", "cross-env": "7.0.3", "eslint": "8.56.0", diff --git a/packages/core/.eslintrc.cjs b/packages/core/.eslintrc.cjs index d6d61e84d..31f1595e8 100644 --- a/packages/core/.eslintrc.cjs +++ b/packages/core/.eslintrc.cjs @@ -1,10 +1,10 @@ /** * Specific eslint rules for this workspace, learn how to compose - * @link https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @link https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ -require('@teable-group/eslint-config-bases/patch/modern-module-resolution'); +require('@teable/eslint-config-bases/patch/modern-module-resolution'); -const { getDefaultIgnorePatterns } = require('@teable-group/eslint-config-bases/helpers'); +const { getDefaultIgnorePatterns } = require('@teable/eslint-config-bases/helpers'); module.exports = { root: true, @@ -15,12 +15,12 @@ module.exports = { }, ignorePatterns: [...getDefaultIgnorePatterns(), 'src/formula/parser', 'src/query/parser'], extends: [ - '@teable-group/eslint-config-bases/typescript', - '@teable-group/eslint-config-bases/sonar', - '@teable-group/eslint-config-bases/regexp', - '@teable-group/eslint-config-bases/jest', + '@teable/eslint-config-bases/typescript', + '@teable/eslint-config-bases/sonar', + '@teable/eslint-config-bases/regexp', + '@teable/eslint-config-bases/jest', // Apply prettier and disable incompatible rules - '@teable-group/eslint-config-bases/prettier-plugin', + '@teable/eslint-config-bases/prettier-plugin', ], rules: { // optional overrides per project diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index e88b1d929..285b7cad2 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,18 +1 @@ -# @teable-group/core - -## 1.1.1 - -### Patch Changes - -- [#2740](https://github.com/teable-group/teable/pull/2740) [`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9) Thanks [@belgattitude](https://github.com/belgattitude)! - Changesets: by default will tag and version private packages - - Doc: https://github.com/changesets/changesets/blob/main/docs/versioning-apps.md - Ref: [changesets@2.25.0](https://github.com/changesets/changesets/releases/tag/%40changesets%2Fcli%402.25.0) & [#662](https://github.com/changesets/changesets/pull/662). - -## 1.1.0 - -### Minor Changes - -- [#2713](https://github.com/teable-group/teable/pull/2713) [`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0) Thanks [@belgattitude](https://github.com/belgattitude)! - Move typescript utils to @teable-group/core - -- [#2713](https://github.com/teable-group/teable/pull/2713) [`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0) Thanks [@belgattitude](https://github.com/belgattitude)! - Example core packages as esm with jest and vitest +# @teable/core diff --git a/packages/core/README.md b/packages/core/README.md index b9515c4bf..223e8ad30 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -1,7 +1,7 @@ -# @teable-group/core +# @teable/core > **Note** -> This package is part of [teable-group/teable](https://github.com/teable-group/teable). +> This package is part of [teableio/teable](https://github.com/teableio/teable). A package holding some basic typescript utilities: typeguards, assertions... @@ -14,7 +14,7 @@ A package holding some basic typescript utilities: typeguards, assertions... From any package or apps: ```bash -yarn add @teable-group/core@"workspace:^" +yarn add @teable/core@"workspace:^" ``` ## Enable aliases @@ -25,7 +25,7 @@ yarn add @teable-group/core@"workspace:^" "compilerOptions": { "baseUrl": "./src", "paths": { - "@teable-group/core": ["../../../packages/core/src/index"], + "@teable/core": ["../../../packages/core/src/index"], }, }, } @@ -34,7 +34,7 @@ yarn add @teable-group/core@"workspace:^" ## Consume ```typescript -import { isPlainObject } from "@teable-group/core"; +import { isPlainObject } from "@teable/core"; isPlainObject(true) === false; ``` diff --git a/packages/core/lint-staged.config.js b/packages/core/lint-staged.config.js index 1e649054e..1384bcf5e 100644 --- a/packages/core/lint-staged.config.js +++ b/packages/core/lint-staged.config.js @@ -4,7 +4,7 @@ * This files overrides the base lint-staged.config.js present in the root directory. * It allows to run eslint based the package specific requirements. * {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} - * {@link https://github.com/teable-group/teable/blob/main/docs/about-lint-staged.md} + * {@link https://github.com/teableio/teable/blob/main/docs/about-lint-staged.md} */ const { concatFilesForPrettier, getEslintFixCmd } = require('../../lint-staged.common'); diff --git a/packages/core/package.json b/packages/core/package.json index 193f570b9..0395cae0e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,12 +1,12 @@ { - "name": "@teable-group/core", + "name": "@teable/core", "version": "1.0.0", "license": "AGPL-3.0", "private": true, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "packages/core" }, "author": { @@ -46,7 +46,7 @@ }, "devDependencies": { "@size-limit/file": "11.0.2", - "@teable-group/eslint-config-bases": "workspace:^", + "@teable/eslint-config-bases": "workspace:^", "@types/lodash": "4.14.202", "@types/node": "18.19.0", "antlr4ts-cli": "0.5.0-alpha.4", diff --git a/packages/core/src/models/field/color-utils.ts b/packages/core/src/models/field/color-utils.ts index dbc8f2f41..67caeec96 100644 --- a/packages/core/src/models/field/color-utils.ts +++ b/packages/core/src/models/field/color-utils.ts @@ -1,4 +1,4 @@ -/** @module @teable-group/sdk: colorUtils */ /** */ +/** @module @teable/sdk: colorUtils */ /** */ import Color from 'color'; import { getEnumValueIfExists, has } from '../../utils/enum'; import { Colors, rgbTuplesByColor } from './colors'; @@ -29,7 +29,7 @@ export interface IColorUtils { * @param colorString * @example * ```js - * import {colorUtils, colors} from '@teable-group/sdk'; + * import {colorUtils, colors} from '@teable/sdk'; * * colorUtils.getRgbForColor(colors.PURPLE_DARK_1); * // => {r: 107, g: 28, b: 176} @@ -49,7 +49,7 @@ export interface IColorUtils { * @param alpha * @example * ```js - * import {colorUtils, colors} from '@teable-group/sdk'; + * import {colorUtils, colors} from '@teable/sdk'; * * colorUtils.getRgbForColor(colors.PURPLE_DARK_1, 0.5); * // => rgba(107, 28, 176, 0.5) @@ -66,7 +66,7 @@ export interface IColorUtils { * @param colorString * @example * ```js - * import {colorUtils, colors} from '@teable-group/sdk'; + * import {colorUtils, colors} from '@teable/sdk'; * * colorUtils.shouldUseLightTextOnColor(colors.PINK_LIGHT_1); * // => false diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index f099b0d77..2d69701b8 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "display": "@teable-group/core", + "display": "@teable/core", "extends": "../../tsconfig.base.json", "compilerOptions": { "module": "CommonJS", @@ -19,8 +19,8 @@ "composite": true, "rootDir": "src", "outDir": "dist", - "types": ["vitest/globals"] + "types": ["vitest/globals"], }, "exclude": ["**/node_modules", "**/.*/", "./dist", "./coverage"], - "include": ["src"] + "include": ["src"], } diff --git a/packages/db-main-prisma/.eslintrc.cjs b/packages/db-main-prisma/.eslintrc.cjs index a06ca98ef..da83c647b 100644 --- a/packages/db-main-prisma/.eslintrc.cjs +++ b/packages/db-main-prisma/.eslintrc.cjs @@ -1,12 +1,12 @@ /** * Specific eslint rules for this app/package, extends the base rules - * @see https://github.com/teable-group/teable/blob/main/docs/about-linters.md + * @see https://github.com/teableio/teable/blob/main/docs/about-linters.md */ // Workaround for https://github.com/eslint/eslint/issues/3458 (re-export of @rushstack/eslint-patch) -require('@teable-group/eslint-config-bases/patch/modern-module-resolution'); +require('@teable/eslint-config-bases/patch/modern-module-resolution'); -const { getDefaultIgnorePatterns } = require('@teable-group/eslint-config-bases/helpers'); +const { getDefaultIgnorePatterns } = require('@teable/eslint-config-bases/helpers'); module.exports = { root: true, @@ -17,9 +17,9 @@ module.exports = { }, ignorePatterns: [...getDefaultIgnorePatterns()], extends: [ - '@teable-group/eslint-config-bases/typescript', + '@teable/eslint-config-bases/typescript', // Apply prettier and disable incompatible rules - '@teable-group/eslint-config-bases/prettier-plugin', + '@teable/eslint-config-bases/prettier-plugin', ], rules: { // optional overrides per project diff --git a/packages/db-main-prisma/CHANGELOG.md b/packages/db-main-prisma/CHANGELOG.md index 1fa851f3a..635423513 100644 --- a/packages/db-main-prisma/CHANGELOG.md +++ b/packages/db-main-prisma/CHANGELOG.md @@ -1,156 +1 @@ -# @teable-group/db-main-prisma - -## 2.12.2 - -### Patch Changes - -- [#2740](https://github.com/teable-group/teable/pull/2740) [`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9) Thanks [@belgattitude](https://github.com/belgattitude)! - Changesets: by default will tag and version private packages - - Doc: https://github.com/changesets/changesets/blob/main/docs/versioning-apps.md - Ref: [changesets@2.25.0](https://github.com/changesets/changesets/releases/tag/%40changesets%2Fcli%402.25.0) & [#662](https://github.com/changesets/changesets/pull/662). - -## 2.12.1 - -### Patch Changes - -- [#2214](https://github.com/teable-group/teable/pull/2214) [`62818ba`](https://github.com/teable-group/teable/commit/62818badff67ce032a209fe9217c319271833ddc) Thanks [@belgattitude](https://github.com/belgattitude)! - Speedup and clean yarn install on CI - -## 2.12.0 - -### Minor Changes - -- [#2184](https://github.com/teable-group/teable/pull/2184) [`0279cc2`](https://github.com/teable-group/teable/commit/0279cc2598c0ffbc83219dda893e303a38af6bfd) Thanks [@belgattitude](https://github.com/belgattitude)! - Use tsx for prisma seeds (esbuild) - -## 2.11.0 - -### Minor Changes - -- [#1876](https://github.com/teable-group/teable/pull/1876) [`5ad462a`](https://github.com/teable-group/teable/commit/5ad462a9a621564366c7a0ef0a77899fc855de85) Thanks [@belgattitude](https://github.com/belgattitude)! - Enable eslint global cache - -## 2.10.0 - -### Minor Changes - -- [#1656](https://github.com/teable-group/teable/pull/1656) [`9f2c2d0`](https://github.com/teable-group/teable/commit/9f2c2d049cfb87a3023a38b096f07f998862e3f6) Thanks [@belgattitude](https://github.com/belgattitude)! - Improved linter configs - -## 2.9.0 - -### Minor Changes - -- [#1644](https://github.com/teable-group/teable/pull/1644) [`ee0a3db`](https://github.com/teable-group/teable/commit/ee0a3dbd664c33d7149302ae3f776951dbd50492) Thanks [@belgattitude](https://github.com/belgattitude)! - Rework deps, peer-deps and dev-deps - -## 2.8.0 - -### Minor Changes - -- [#1341](https://github.com/teable-group/teable/pull/1341) [`05291de7`](https://github.com/teable-group/teable/commit/05291de7deeed720e8b7271d339050116b448177) Thanks [@belgattitude](https://github.com/belgattitude)! - Refactor scripts identifiers defined in package.json. Restrict usage of ':' in apps and packages - -## 2.7.0 - -### Minor Changes - -- [#589](https://github.com/teable-group/teable/pull/589) [`bbc1a8f`](https://github.com/teable-group/teable/commit/bbc1a8f07500d13ddf3e86f2cb4111f4f22ddb11) Thanks [@belgattitude](https://github.com/belgattitude)! - Add initial example for prisma cli e2e tests - -## 2.6.0 - -### Minor Changes - -- [#553](https://github.com/teable-group/teable/pull/553) [`77e758b`](https://github.com/teable-group/teable/commit/77e758bbed1bc4f13b99cdd0ed90fa11fde9518f) Thanks [@belgattitude](https://github.com/belgattitude)! - Add eslint-plugin-regexp - -## 2.5.0 - -### Minor Changes - -- [#438](https://github.com/teable-group/teable/pull/438) [`6b78e59`](https://github.com/teable-group/teable/commit/6b78e59e4933814e69c26c86743a5b003c92dc2a) Thanks [@belgattitude](https://github.com/belgattitude)! - Eslint performance by not running test plugins over regular code - -## 2.4.0 - -### Minor Changes - -- [#404](https://github.com/teable-group/teable/pull/404) [`dd239d6`](https://github.com/teable-group/teable/commit/dd239d63d99fdbf23150faf776f8c4be4dcf6e20) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated to prisma 3.0.2 and official seed feature - -## 2.3.1 - -### Patch Changes - -- [#356](https://github.com/teable-group/teable/pull/356) [`db7870f`](https://github.com/teable-group/teable/commit/db7870fbef1ac0422e8d142ab6bcd7d593abd685) Thanks [@belgattitude](https://github.com/belgattitude)! - CI: add extra check for missing / undeclared dependencies - -* [#354](https://github.com/teable-group/teable/pull/354) [`16e4e2d`](https://github.com/teable-group/teable/commit/16e4e2d7b6023a0cc9bf62120d7b5b8e223740b5) Thanks [@belgattitude](https://github.com/belgattitude)! - Improve eslint config and add eslint-plugin-import - -## 2.3.0 - -### Minor Changes - -- [#323](https://github.com/teable-group/teable/pull/323) [`a416f35`](https://github.com/teable-group/teable/commit/a416f3550dd0bb8412297295206f586630e586c0) Thanks [@belgattitude](https://github.com/belgattitude)! - Example: eslint-plugin-sonarjs cause cause it desserves to belong here - -## 2.2.0 - -### Minor Changes - -- [#319](https://github.com/teable-group/teable/pull/319) [`2ccb056`](https://github.com/teable-group/teable/commit/2ccb056660dfd84a75e1a8733e56cc8d9b3fd353) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated to Typescript 4.4.2 strict ("useUnknownInCatchVariables": true) - -## 2.1.0 - -### Minor Changes - -- [#302](https://github.com/teable-group/teable/pull/302) [`6cc466a`](https://github.com/teable-group/teable/commit/6cc466a8d0caf4e2ec8931ce87696ee83af71d19) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated to prisma 2.30.0 with napi by default - -## 2.0.0 - -### Major Changes - -- [#257](https://github.com/teable-group/teable/pull/257) [`d3b8916`](https://github.com/teable-group/teable/commit/d3b8916b9a9e208e746e85363f6a18dc164fee6c) Thanks [@belgattitude](https://github.com/belgattitude)! - PrismaManager, prepare multi connection support for prisma - -## 1.2.1 - -### Patch Changes - -- Updated dependencies [[`c5173ea`](https://github.com/teable-group/teable/commit/c5173ea4d9ae5f476c0434ad25a6ff7735350e06)]: - - @teable-group/sdk@3.4.0 - -## 1.2.0 - -### Minor Changes - -- [#170](https://github.com/teable-group/teable/pull/170) [`3c8ef69`](https://github.com/teable-group/teable/commit/3c8ef6900120557fae33ff565595f8fe2b9628a9) Thanks [@belgattitude](https://github.com/belgattitude)! - Prisma updated to 2.27.0 - -* [#140](https://github.com/teable-group/teable/pull/140) [`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f) Thanks [@belgattitude](https://github.com/belgattitude)! - New schema for posts - -### Patch Changes - -- [#172](https://github.com/teable-group/teable/pull/172) [`01e5e89`](https://github.com/teable-group/teable/commit/01e5e89e028029c5ef415f2f825d022f96a97fd4) Thanks [@belgattitude](https://github.com/belgattitude)! - Relaxed codeclimate config for react components - -* [#140](https://github.com/teable-group/teable/pull/140) [`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f) Thanks [@belgattitude](https://github.com/belgattitude)! - Improved documentation - -* Updated dependencies [[`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f), [`01e5e89`](https://github.com/teable-group/teable/commit/01e5e89e028029c5ef415f2f825d022f96a97fd4), [`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f)]: - - @teable-group/sdk@3.3.0 - -## 1.1.3 - -### Patch Changes - -- [#135](https://github.com/teable-group/teable/pull/135) [`d548b70`](https://github.com/teable-group/teable/commit/d548b70b53baaa67d6de4e8a7c6254b59db3ced3) Thanks [@belgattitude](https://github.com/belgattitude)! - CI: use built-in yarn cache from setup/node@v2.2 - -- Updated dependencies [[`d548b70`](https://github.com/teable-group/teable/commit/d548b70b53baaa67d6de4e8a7c6254b59db3ced3)]: - - @teable-group/sdk@3.2.2 - -## 1.1.2 - -### Patch Changes - -- [#117](https://github.com/teable-group/teable/pull/117) [`4607a02`](https://github.com/teable-group/teable/commit/4607a02d91e87134f306d25dfeabdba9c83b3837) Thanks [@belgattitude](https://github.com/belgattitude)! - Improved documentation - -## 1.1.1 - -### Patch Changes - -- [#84](https://github.com/teable-group/teable/pull/84) [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293) Thanks [@belgattitude](https://github.com/belgattitude)! - Jest: added mock configs - -- Updated dependencies [[`a9c0d5e`](https://github.com/teable-group/teable/commit/a9c0d5e2651732ab23f1a335acddd23aef5a6b88), [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293), [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293)]: - - @teable-group/sdk@3.2.1 - -## 1.1.0 - -### Minor Changes - -- [#74](https://github.com/teable-group/teable/pull/74) [`5010c94`](https://github.com/teable-group/teable/commit/5010c944162165ab47923718a9ccaf1cafc419ee) Thanks [@belgattitude](https://github.com/belgattitude)! - Extract a separate prisma package lib +# @teable/db-main-prisma diff --git a/packages/db-main-prisma/README.md b/packages/db-main-prisma/README.md index 4d11f54b6..0f2de2166 100644 --- a/packages/db-main-prisma/README.md +++ b/packages/db-main-prisma/README.md @@ -1,14 +1,14 @@ -# @teable-group/db-main-prisma +# @teable/db-main-prisma

- - build + + build

## Intro -Basic demo of a shared package using [prisma](<(https://prisma.io)>) to handle database access, part of the [nextjs-monorepo-example](https://github.com/teable-group/teable) +Basic demo of a shared package using [prisma](<(https://prisma.io)>) to handle database access, part of the [nextjs-monorepo-example](https://github.com/teableio/teable) ## Quick start diff --git a/packages/db-main-prisma/lint-staged.config.js b/packages/db-main-prisma/lint-staged.config.js index e6b50984f..f2b95042f 100644 --- a/packages/db-main-prisma/lint-staged.config.js +++ b/packages/db-main-prisma/lint-staged.config.js @@ -4,7 +4,7 @@ * This files overrides the base lint-staged.config.js present in the root directory. * It allows to run eslint based the package specific requirements. * {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} - * {@link https://github.com/teable-group/teable/blob/main/docs/about-lint-staged.md} + * {@link https://github.com/teableio/teable/blob/main/docs/about-lint-staged.md} */ const { concatFilesForPrettier, getEslintFixCmd } = require('../../lint-staged.common.js'); diff --git a/packages/db-main-prisma/package.json b/packages/db-main-prisma/package.json index c82e2650f..456550680 100644 --- a/packages/db-main-prisma/package.json +++ b/packages/db-main-prisma/package.json @@ -1,12 +1,12 @@ { - "name": "@teable-group/db-main-prisma", + "name": "@teable/db-main-prisma", "version": "1.0.0", "license": "AGPL-3.0", "private": true, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "packages/db-main-prisma" }, "author": { @@ -46,7 +46,7 @@ "devDependencies": { "@soluble/dsn-parser": "1.9.2", "@faker-js/faker": "8.4.0", - "@teable-group/eslint-config-bases": "workspace:^", + "@teable/eslint-config-bases": "workspace:^", "@types/node": "18.19.0", "@types/bcrypt": "5.0.2", "camelcase": "8.0.0", diff --git a/packages/eslint-config-bases/CHANGELOG.md b/packages/eslint-config-bases/CHANGELOG.md index abedb5041..f21b8138c 100644 --- a/packages/eslint-config-bases/CHANGELOG.md +++ b/packages/eslint-config-bases/CHANGELOG.md @@ -1,76 +1 @@ -# @teable-group/eslint-config-bases - -## 1.5.3 - -### Patch Changes - -- [#2774](https://github.com/teable-group/teable/pull/2774) [`d940ab6b`](https://github.com/teable-group/teable/commit/d940ab6bd38cb585a1b73f078cb86396481a099a) Thanks [@tianyingchun](https://github.com/tianyingchun)! - fix wrong package json `main` configuration - -## 1.5.2 - -### Patch Changes - -- [#2740](https://github.com/teable-group/teable/pull/2740) [`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9) Thanks [@belgattitude](https://github.com/belgattitude)! - Changesets: by default will tag and version private packages - - Doc: https://github.com/changesets/changesets/blob/main/docs/versioning-apps.md - Ref: [changesets@2.25.0](https://github.com/changesets/changesets/releases/tag/%40changesets%2Fcli%402.25.0) & [#662](https://github.com/changesets/changesets/pull/662). - -## 1.5.1 - -### Patch Changes - -- [#2611](https://github.com/teable-group/teable/pull/2611) [`ebe883ae`](https://github.com/teable-group/teable/commit/ebe883aed91f5a0b41262516846094b40dd5efb5) Thanks [@belgattitude](https://github.com/belgattitude)! - Support mjs files - -## 1.5.0 - -### Minor Changes - -- [#2239](https://github.com/teable-group/teable/pull/2239) [`98ca6d6`](https://github.com/teable-group/teable/commit/98ca6d6a3dc11aee8fdf4eba28f600d6820eb520) Thanks [@belgattitude](https://github.com/belgattitude)! - Export '/patch/modern-module-resolution' based on @rushstack/eslint-patch - -## 1.4.1 - -### Patch Changes - -- [#2214](https://github.com/teable-group/teable/pull/2214) [`62818ba`](https://github.com/teable-group/teable/commit/62818badff67ce032a209fe9217c319271833ddc) Thanks [@belgattitude](https://github.com/belgattitude)! - Speedup and clean yarn install on CI - -## 1.4.0 - -### Minor Changes - -- [#2135](https://github.com/teable-group/teable/pull/2135) [`5c1547b`](https://github.com/teable-group/teable/commit/5c1547b6267ca3c5121c72c21b755d19711d52aa) Thanks [@renovate](https://github.com/apps/renovate)! - Upgrade to eslint-plugin-resolver-typescript v3 - -## 1.3.1 - -### Patch Changes - -- [#1934](https://github.com/teable-group/teable/pull/1934) [`fbfe651`](https://github.com/teable-group/teable/commit/fbfe6516cb257f3f9076c738254ba53352e2ec19) Thanks [@renovate](https://github.com/apps/renovate)! - Improve typescript and jest bases - -## 1.3.0 - -### Minor Changes - -- [#1876](https://github.com/teable-group/teable/pull/1876) [`5ad462a`](https://github.com/teable-group/teable/commit/5ad462a9a621564366c7a0ef0a77899fc855de85) Thanks [@belgattitude](https://github.com/belgattitude)! - Add support for eslint-plugin-tailwind - -* [#1876](https://github.com/teable-group/teable/pull/1876) [`5ad462a`](https://github.com/teable-group/teable/commit/5ad462a9a621564366c7a0ef0a77899fc855de85) Thanks [@belgattitude](https://github.com/belgattitude)! - Enable eslint global cache - -## 1.2.0 - -### Minor Changes - -- [`4b8c9db`](https://github.com/teable-group/teable/commit/4b8c9db72f5048f3020005928992e19c926b0761) Thanks [@belgattitude](https://github.com/belgattitude)! - Support test.js without filename - -## 1.1.1 - -### Patch Changes - -- [#1673](https://github.com/teable-group/teable/pull/1673) [`135afc2`](https://github.com/teable-group/teable/commit/135afc2118847b0710404e2b86c27d86f806323c) Thanks [@belgattitude](https://github.com/belgattitude)! - Improve filename detection patterns - -* [#1673](https://github.com/teable-group/teable/pull/1673) [`135afc2`](https://github.com/teable-group/teable/commit/135afc2118847b0710404e2b86c27d86f806323c) Thanks [@belgattitude](https://github.com/belgattitude)! - Improve documentation - -- [#1673](https://github.com/teable-group/teable/pull/1673) [`135afc2`](https://github.com/teable-group/teable/commit/135afc2118847b0710404e2b86c27d86f806323c) Thanks [@belgattitude](https://github.com/belgattitude)! - Add base prettier configuration - -## 1.1.0 - -### Minor Changes - -- [#1656](https://github.com/teable-group/teable/pull/1656) [`9f2c2d0`](https://github.com/teable-group/teable/commit/9f2c2d049cfb87a3023a38b096f07f998862e3f6) Thanks [@belgattitude](https://github.com/belgattitude)! - Improved linter configs +# @teable/eslint-config-bases diff --git a/packages/eslint-config-bases/README.md b/packages/eslint-config-bases/README.md index d0f2bc666..8073c4238 100644 --- a/packages/eslint-config-bases/README.md +++ b/packages/eslint-config-bases/README.md @@ -1,15 +1,15 @@ -# @teable-group/eslint-config-bases +# @teable/eslint-config-bases

- - build + + build

# About Example of composable eslint config bases that can be easily shared and fine-tuned by apps and -packages that lives in a [monorepo](https://github.com/teable-group/teable). +packages that lives in a [monorepo](https://github.com/teableio/teable). ## Features @@ -27,7 +27,7 @@ Add the following devDependencies to workspace (apps/packages in monorepo) or ma ```bash $ yarn add --dev eslint -$ yarn add --dev @teable-group/eslint-config-bases:"workspace:^" +$ yarn add --dev @teable/eslint-config-bases:"workspace:^" ``` > **Tip** the [workspace:^](https://yarnpkg.com/features/workspaces#workspace-ranges-workspace) is supported by yarn and pnpm. @@ -39,7 +39,7 @@ existing base configs. For example: ```javascript // Workaround for https://github.com/eslint/eslint/issues/3458 (re-export of @rushstack/eslint-patch) -require("@teable-group/eslint-config-bases/patch/modern-module-resolution"); +require("@teable/eslint-config-bases/patch/modern-module-resolution"); module.exports = { // Be sure to set root to true in monorepo. @@ -51,14 +51,14 @@ module.exports = { }, ignorePatterns: ["**/node_modules", "**/.cache", "build", ".next"], extends: [ - "@teable-group/eslint-config-bases/typescript", - "@teable-group/eslint-config-bases/sonar", - "@teable-group/eslint-config-bases/regexp", - "@teable-group/eslint-config-bases/react", - "@teable-group/eslint-config-bases/jest", - "@teable-group/eslint-config-bases/rtl", - "@teable-group/eslint-config-bases/storybook", - "@teable-group/eslint-config-bases/playwright", + "@teable/eslint-config-bases/typescript", + "@teable/eslint-config-bases/sonar", + "@teable/eslint-config-bases/regexp", + "@teable/eslint-config-bases/react", + "@teable/eslint-config-bases/jest", + "@teable/eslint-config-bases/rtl", + "@teable/eslint-config-bases/storybook", + "@teable/eslint-config-bases/playwright", // Add specific rules for your framework if needed. // ie: @@ -68,7 +68,7 @@ module.exports = { // Post configure the prettier base so there won't be // any conficts between eslint / prettier - "@teable-group/eslint-config-bases/prettier-plugin", + "@teable/eslint-config-bases/prettier-plugin", ], rules: { // Specific global rules for your app or package @@ -79,7 +79,7 @@ module.exports = { }; ``` -> **Tip:** "@teable-group/eslint-config-bases/prettier-plugin" must be set at the end to disable any +> **Tip:** "@teable/eslint-config-bases/prettier-plugin" must be set at the end to disable any > conflicting rules. ## Bases @@ -110,10 +110,10 @@ You can find the bases in [./src/bases](./src/bases). ## Prettier integration -To prevent conflicts between prettier and eslint, you must re-export the prettier base from `@teable-group/eslint-config-bases`. +To prevent conflicts between prettier and eslint, you must re-export the prettier base from `@teable/eslint-config-bases`. ```javascript -const { getPrettierConfig } = require("@teable-group/eslint-config-bases/helpers"); +const { getPrettierConfig } = require("@teable/eslint-config-bases/helpers"); module.exports = { ...prettierConfig, overrides: [ diff --git a/packages/eslint-config-bases/lint-staged.config.js b/packages/eslint-config-bases/lint-staged.config.js index a25cea85c..15701fec7 100644 --- a/packages/eslint-config-bases/lint-staged.config.js +++ b/packages/eslint-config-bases/lint-staged.config.js @@ -4,7 +4,7 @@ * This files overrides the base lint-staged.config.js present in the root directory. * It allows to run eslint based the package specific requirements. * {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} - * {@link https://github.com/teable-group/teable/blob/main/docs/about-lint-staged.md} + * {@link https://github.com/teableio/teable/blob/main/docs/about-lint-staged.md} */ const { concatFilesForPrettier, getEslintFixCmd } = require('../../lint-staged.common.js'); diff --git a/packages/eslint-config-bases/package.json b/packages/eslint-config-bases/package.json index 8cdadb2c7..d29caa519 100644 --- a/packages/eslint-config-bases/package.json +++ b/packages/eslint-config-bases/package.json @@ -1,12 +1,12 @@ { - "name": "@teable-group/eslint-config-bases", + "name": "@teable/eslint-config-bases", "version": "1.0.0", "license": "AGPL-3.0", "private": true, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "packages/eslint-config-bases" }, "author": { diff --git a/packages/eslint-config-bases/src/bases/jest.js b/packages/eslint-config-bases/src/bases/jest.js index b42050a08..fae0f2c6b 100644 --- a/packages/eslint-config-bases/src/bases/jest.js +++ b/packages/eslint-config-bases/src/bases/jest.js @@ -1,6 +1,6 @@ /** * Custom config base for projects using jest. - * @see https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @see https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ const jestPatterns = { diff --git a/packages/eslint-config-bases/src/bases/playwright.js b/packages/eslint-config-bases/src/bases/playwright.js index c4aedcffb..77c7292d4 100644 --- a/packages/eslint-config-bases/src/bases/playwright.js +++ b/packages/eslint-config-bases/src/bases/playwright.js @@ -1,6 +1,6 @@ /** * Opinionated config base for projects using playwright. - * @see https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @see https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ const playwrightPatterns = { diff --git a/packages/eslint-config-bases/src/bases/react.js b/packages/eslint-config-bases/src/bases/react.js index d60788728..3a28fa235 100644 --- a/packages/eslint-config-bases/src/bases/react.js +++ b/packages/eslint-config-bases/src/bases/react.js @@ -1,6 +1,6 @@ /** * Opinionated config base for projects using react. - * @see https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @see https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ const reactPatterns = { diff --git a/packages/eslint-config-bases/src/bases/regexp.js b/packages/eslint-config-bases/src/bases/regexp.js index 6f429cdee..4727170d7 100644 --- a/packages/eslint-config-bases/src/bases/regexp.js +++ b/packages/eslint-config-bases/src/bases/regexp.js @@ -1,6 +1,6 @@ /** * Custom config base for projects that wants to enable regexp rules. - * @see https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @see https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ const regexpPatterns = { diff --git a/packages/eslint-config-bases/src/bases/rtl.js b/packages/eslint-config-bases/src/bases/rtl.js index 9dc5ce19d..7af8987d4 100644 --- a/packages/eslint-config-bases/src/bases/rtl.js +++ b/packages/eslint-config-bases/src/bases/rtl.js @@ -1,6 +1,6 @@ /** * Opinionated config base for projects using react-testing-library - * @see https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @see https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ const rtlPatterns = { diff --git a/packages/eslint-config-bases/src/bases/sonar.js b/packages/eslint-config-bases/src/bases/sonar.js index fe8fb6f69..a147a1a3a 100644 --- a/packages/eslint-config-bases/src/bases/sonar.js +++ b/packages/eslint-config-bases/src/bases/sonar.js @@ -1,6 +1,6 @@ /** * Opinionated config base for projects that enable sonarjs - * @see https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @see https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ const sonarPatterns = { diff --git a/packages/eslint-config-bases/src/bases/storybook.js b/packages/eslint-config-bases/src/bases/storybook.js index fbb0a301f..cda969eb0 100644 --- a/packages/eslint-config-bases/src/bases/storybook.js +++ b/packages/eslint-config-bases/src/bases/storybook.js @@ -1,6 +1,6 @@ /** * Opinionated config base for projects using storybook. - * @see https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @see https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ const storybookPatterns = { diff --git a/packages/eslint-config-bases/src/bases/tailwind.js b/packages/eslint-config-bases/src/bases/tailwind.js index 27747d88a..d695ba466 100644 --- a/packages/eslint-config-bases/src/bases/tailwind.js +++ b/packages/eslint-config-bases/src/bases/tailwind.js @@ -1,6 +1,6 @@ /** * Opinionated config base for projects using react. - * @see https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @see https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ const reactPatterns = { diff --git a/packages/eslint-config-bases/src/bases/typescript.js b/packages/eslint-config-bases/src/bases/typescript.js index 39964ac7c..f7e4cf3c4 100644 --- a/packages/eslint-config-bases/src/bases/typescript.js +++ b/packages/eslint-config-bases/src/bases/typescript.js @@ -1,6 +1,6 @@ /** * Custom config base for projects using typescript / javascript. - * @see https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @see https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ module.exports = { diff --git a/packages/icons/.eslintrc.cjs b/packages/icons/.eslintrc.cjs index e4eadee11..19a23cb3e 100644 --- a/packages/icons/.eslintrc.cjs +++ b/packages/icons/.eslintrc.cjs @@ -1,12 +1,12 @@ /** * Specific eslint rules for this app/package, extends the base rules - * @see https://github.com/teable-group/teable/blob/main/docs/about-linters.md + * @see https://github.com/teableio/teable/blob/main/docs/about-linters.md */ // Workaround for https://github.com/eslint/eslint/issues/3458 (re-export of @rushstack/eslint-patch) -require('@teable-group/eslint-config-bases/patch/modern-module-resolution'); +require('@teable/eslint-config-bases/patch/modern-module-resolution'); -const { getDefaultIgnorePatterns } = require('@teable-group/eslint-config-bases/helpers'); +const { getDefaultIgnorePatterns } = require('@teable/eslint-config-bases/helpers'); module.exports = { root: true, @@ -17,10 +17,10 @@ module.exports = { }, ignorePatterns: [...getDefaultIgnorePatterns(), '/scripts'], extends: [ - '@teable-group/eslint-config-bases/sonar', - '@teable-group/eslint-config-bases/react', + '@teable/eslint-config-bases/sonar', + '@teable/eslint-config-bases/react', // Apply prettier and disable incompatible rules - '@teable-group/eslint-config-bases/prettier-plugin', + '@teable/eslint-config-bases/prettier-plugin', ], rules: { // optional overrides per project diff --git a/packages/icons/package.json b/packages/icons/package.json index e89738895..c15c4f4f8 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -1,12 +1,12 @@ { - "name": "@teable-group/icons", + "name": "@teable/icons", "version": "1.0.0", "license": "AGPL-3.0", "private": true, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "packages/icons" }, "main": "./dist/index.js", diff --git a/packages/openapi/.eslintrc.cjs b/packages/openapi/.eslintrc.cjs index cae900b49..6f44660c4 100644 --- a/packages/openapi/.eslintrc.cjs +++ b/packages/openapi/.eslintrc.cjs @@ -1,10 +1,10 @@ /** * Specific eslint rules for this workspace, learn how to compose - * @link https://github.com/teable-group/teable/tree/main/packages/eslint-config-bases + * @link https://github.com/teableio/teable/tree/main/packages/eslint-config-bases */ -require('@teable-group/eslint-config-bases/patch/modern-module-resolution'); +require('@teable/eslint-config-bases/patch/modern-module-resolution'); -const { getDefaultIgnorePatterns } = require('@teable-group/eslint-config-bases/helpers'); +const { getDefaultIgnorePatterns } = require('@teable/eslint-config-bases/helpers'); module.exports = { root: true, @@ -15,10 +15,10 @@ module.exports = { }, ignorePatterns: [...getDefaultIgnorePatterns()], extends: [ - '@teable-group/eslint-config-bases/typescript', - '@teable-group/eslint-config-bases/regexp', - '@teable-group/eslint-config-bases/sonar', - '@teable-group/eslint-config-bases/prettier-plugin', + '@teable/eslint-config-bases/typescript', + '@teable/eslint-config-bases/regexp', + '@teable/eslint-config-bases/sonar', + '@teable/eslint-config-bases/prettier-plugin', ], rules: { // optional overrides per project diff --git a/packages/openapi/lint-staged.config.js b/packages/openapi/lint-staged.config.js index 1e649054e..1384bcf5e 100644 --- a/packages/openapi/lint-staged.config.js +++ b/packages/openapi/lint-staged.config.js @@ -4,7 +4,7 @@ * This files overrides the base lint-staged.config.js present in the root directory. * It allows to run eslint based the package specific requirements. * {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} - * {@link https://github.com/teable-group/teable/blob/main/docs/about-lint-staged.md} + * {@link https://github.com/teableio/teable/blob/main/docs/about-lint-staged.md} */ const { concatFilesForPrettier, getEslintFixCmd } = require('../../lint-staged.common'); diff --git a/packages/openapi/package.json b/packages/openapi/package.json index 44375b2b1..8405395d9 100644 --- a/packages/openapi/package.json +++ b/packages/openapi/package.json @@ -1,12 +1,12 @@ { - "name": "@teable-group/openapi", + "name": "@teable/openapi", "version": "1.0.0", "license": "AGPL-3.0", "private": true, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "packages/openapi" }, "main": "./dist/index.js", @@ -21,13 +21,13 @@ }, "dependencies": { "@asteasolutions/zod-to-openapi": "6.3.1", - "@teable-group/core": "workspace:^", + "@teable/core": "workspace:^", "axios": "1.6.7", "openapi3-ts": "4.2.1", "zod": "3.22.4" }, "devDependencies": { - "@teable-group/eslint-config-bases": "workspace:^", + "@teable/eslint-config-bases": "workspace:^", "eslint": "8.56.0", "rimraf": "5.0.5", "typescript": "5.3.3" diff --git a/packages/openapi/src/aggregation/get-aggregation.ts b/packages/openapi/src/aggregation/get-aggregation.ts index a574499d5..0dd637761 100644 --- a/packages/openapi/src/aggregation/get-aggregation.ts +++ b/packages/openapi/src/aggregation/get-aggregation.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IAggregationRo, IAggregationVo } from '@teable-group/core'; -import { aggregationRoSchema, aggregationVoSchema } from '@teable-group/core'; +import type { IAggregationRo, IAggregationVo } from '@teable/core'; +import { aggregationRoSchema, aggregationVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/aggregation/get-group-points.ts b/packages/openapi/src/aggregation/get-group-points.ts index 254217668..b13671fc6 100644 --- a/packages/openapi/src/aggregation/get-group-points.ts +++ b/packages/openapi/src/aggregation/get-group-points.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IGroupPointsRo, IGroupPointsVo } from '@teable-group/core'; -import { groupPointsRoSchema, groupPointsVoSchema } from '@teable-group/core'; +import type { IGroupPointsRo, IGroupPointsVo } from '@teable/core'; +import { groupPointsRoSchema, groupPointsVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/aggregation/get-row-count.ts b/packages/openapi/src/aggregation/get-row-count.ts index b5745b302..f3229e1eb 100644 --- a/packages/openapi/src/aggregation/get-row-count.ts +++ b/packages/openapi/src/aggregation/get-row-count.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IQueryBaseRo, IRowCountVo } from '@teable-group/core'; -import { queryBaseSchema, rowCountVoSchema } from '@teable-group/core'; +import type { IQueryBaseRo, IRowCountVo } from '@teable/core'; +import { queryBaseSchema, rowCountVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/axios.ts b/packages/openapi/src/axios.ts index 8d3102660..ce259d02e 100644 --- a/packages/openapi/src/axios.ts +++ b/packages/openapi/src/axios.ts @@ -1,4 +1,4 @@ -import { HttpError } from '@teable-group/core'; +import { HttpError } from '@teable/core'; import axiosInstance from 'axios'; export const createAxios = () => { diff --git a/packages/openapi/src/base/get.ts b/packages/openapi/src/base/get.ts index bcbfb851d..3b69537e2 100644 --- a/packages/openapi/src/base/get.ts +++ b/packages/openapi/src/base/get.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { spaceRolesSchema } from '@teable-group/core'; +import { spaceRolesSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/field/convert.ts b/packages/openapi/src/field/convert.ts index a76571288..f3c5aa375 100644 --- a/packages/openapi/src/field/convert.ts +++ b/packages/openapi/src/field/convert.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IFieldVo, IConvertFieldRo } from '@teable-group/core'; -import { fieldVoSchema, convertFieldRoSchema } from '@teable-group/core'; +import type { IFieldVo, IConvertFieldRo } from '@teable/core'; +import { fieldVoSchema, convertFieldRoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/field/create.ts b/packages/openapi/src/field/create.ts index c8e870a12..bd5d9d4e2 100644 --- a/packages/openapi/src/field/create.ts +++ b/packages/openapi/src/field/create.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IFieldRo, IFieldVo } from '@teable-group/core'; -import { createFieldRoSchema, fieldVoSchema } from '@teable-group/core'; +import type { IFieldRo, IFieldVo } from '@teable/core'; +import { createFieldRoSchema, fieldVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/field/get-list.ts b/packages/openapi/src/field/get-list.ts index e8df23ee6..7b4e3614d 100644 --- a/packages/openapi/src/field/get-list.ts +++ b/packages/openapi/src/field/get-list.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IFieldVo, IGetFieldsQuery } from '@teable-group/core'; -import { fieldVoSchema, getFieldsQuerySchema } from '@teable-group/core'; +import type { IFieldVo, IGetFieldsQuery } from '@teable/core'; +import { fieldVoSchema, getFieldsQuerySchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/field/get.ts b/packages/openapi/src/field/get.ts index 6e4c45ac5..5dc341223 100644 --- a/packages/openapi/src/field/get.ts +++ b/packages/openapi/src/field/get.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IFieldVo } from '@teable-group/core'; -import { fieldVoSchema } from '@teable-group/core'; +import type { IFieldVo } from '@teable/core'; +import { fieldVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/field/plan-convert.ts b/packages/openapi/src/field/plan-convert.ts index b2f0c0a75..a9c434890 100644 --- a/packages/openapi/src/field/plan-convert.ts +++ b/packages/openapi/src/field/plan-convert.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IConvertFieldRo } from '@teable-group/core'; -import { convertFieldRoSchema } from '@teable-group/core'; +import type { IConvertFieldRo } from '@teable/core'; +import { convertFieldRoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/field/plan-create.ts b/packages/openapi/src/field/plan-create.ts index b7dea6d45..7107ed4d1 100644 --- a/packages/openapi/src/field/plan-create.ts +++ b/packages/openapi/src/field/plan-create.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IFieldRo } from '@teable-group/core'; -import { createFieldRoSchema } from '@teable-group/core'; +import type { IFieldRo } from '@teable/core'; +import { createFieldRoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/field/update.ts b/packages/openapi/src/field/update.ts index bdc7e71d5..a15ffb6c7 100644 --- a/packages/openapi/src/field/update.ts +++ b/packages/openapi/src/field/update.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IFieldVo, IUpdateFieldRo } from '@teable-group/core'; -import { updateFieldRoSchema } from '@teable-group/core'; +import type { IFieldVo, IUpdateFieldRo } from '@teable/core'; +import { updateFieldRoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/invitation/accept.ts b/packages/openapi/src/invitation/accept.ts index 75a5fe7da..71755ccc8 100644 --- a/packages/openapi/src/invitation/accept.ts +++ b/packages/openapi/src/invitation/accept.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { IdPrefix } from '@teable-group/core'; +import { IdPrefix } from '@teable/core'; import { axios } from '../axios'; import { registerRoute } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/notification/get-list.ts b/packages/openapi/src/notification/get-list.ts index 7c130a1f8..b9e73eb68 100644 --- a/packages/openapi/src/notification/get-list.ts +++ b/packages/openapi/src/notification/get-list.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { notificationSchema, NotificationStatesEnum } from '@teable-group/core'; +import { notificationSchema, NotificationStatesEnum } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/record/create.ts b/packages/openapi/src/record/create.ts index d89fdba47..37a639349 100644 --- a/packages/openapi/src/record/create.ts +++ b/packages/openapi/src/record/create.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { ICreateRecordsRo, ICreateRecordsVo } from '@teable-group/core'; -import { createRecordsVoSchema, createRecordsRoSchema } from '@teable-group/core'; +import type { ICreateRecordsRo, ICreateRecordsVo } from '@teable/core'; +import { createRecordsVoSchema, createRecordsRoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/record/get-list.ts b/packages/openapi/src/record/get-list.ts index f003fd6a0..17da1b3c7 100644 --- a/packages/openapi/src/record/get-list.ts +++ b/packages/openapi/src/record/get-list.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IGetRecordsRo, IRecordsVo } from '@teable-group/core'; -import { getRecordsRoSchema, recordsVoSchema } from '@teable-group/core'; +import type { IGetRecordsRo, IRecordsVo } from '@teable/core'; +import { getRecordsRoSchema, recordsVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/record/get.ts b/packages/openapi/src/record/get.ts index 36cc96a88..b1883a210 100644 --- a/packages/openapi/src/record/get.ts +++ b/packages/openapi/src/record/get.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IGetRecordQuery, IRecord } from '@teable-group/core'; -import { getRecordQuerySchema, recordsVoSchema } from '@teable-group/core'; +import type { IGetRecordQuery, IRecord } from '@teable/core'; +import { getRecordQuerySchema, recordsVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/record/update.ts b/packages/openapi/src/record/update.ts index b69e3faa7..d0d961275 100644 --- a/packages/openapi/src/record/update.ts +++ b/packages/openapi/src/record/update.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IRecord, IUpdateRecordRo } from '@teable-group/core'; -import { recordSchema, updateRecordRoSchema } from '@teable-group/core'; +import type { IRecord, IUpdateRecordRo } from '@teable/core'; +import { recordSchema, updateRecordRoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/selection/copy.ts b/packages/openapi/src/selection/copy.ts index 795457978..38e647d87 100644 --- a/packages/openapi/src/selection/copy.ts +++ b/packages/openapi/src/selection/copy.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { fieldVoSchema } from '@teable-group/core'; +import { fieldVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/selection/paste.ts b/packages/openapi/src/selection/paste.ts index b553964b9..a674b3ffa 100644 --- a/packages/openapi/src/selection/paste.ts +++ b/packages/openapi/src/selection/paste.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { fieldVoSchema } from '@teable-group/core'; +import { fieldVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/selection/range.ts b/packages/openapi/src/selection/range.ts index edb15520f..3423e3ba8 100644 --- a/packages/openapi/src/selection/range.ts +++ b/packages/openapi/src/selection/range.ts @@ -1,10 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { - contentQueryBaseSchema, - filterSchema, - groupSchema, - orderBySchema, -} from '@teable-group/core'; +import { contentQueryBaseSchema, filterSchema, groupSchema, orderBySchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/share/view-aggregations.ts b/packages/openapi/src/share/view-aggregations.ts index fbaaf6d5e..740d23230 100644 --- a/packages/openapi/src/share/view-aggregations.ts +++ b/packages/openapi/src/share/view-aggregations.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IAggregationVo } from '@teable-group/core'; -import { aggregationRoSchema, viewVoSchema } from '@teable-group/core'; +import type { IAggregationVo } from '@teable/core'; +import { aggregationRoSchema, viewVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/share/view-auth.ts b/packages/openapi/src/share/view-auth.ts index 80f9753cd..844b6203b 100644 --- a/packages/openapi/src/share/view-auth.ts +++ b/packages/openapi/src/share/view-auth.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { sharePasswordSchema } from '@teable-group/core'; +import { sharePasswordSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/share/view-form-submit.ts b/packages/openapi/src/share/view-form-submit.ts index 3cae42469..ce06bbd26 100644 --- a/packages/openapi/src/share/view-form-submit.ts +++ b/packages/openapi/src/share/view-form-submit.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IRecord } from '@teable-group/core'; -import { recordSchema } from '@teable-group/core'; +import type { IRecord } from '@teable/core'; +import { recordSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/share/view-get.ts b/packages/openapi/src/share/view-get.ts index 7517eade2..628e9c83f 100644 --- a/packages/openapi/src/share/view-get.ts +++ b/packages/openapi/src/share/view-get.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { fieldVoSchema, recordSchema, shareViewMetaSchema, viewVoSchema } from '@teable-group/core'; +import { fieldVoSchema, recordSchema, shareViewMetaSchema, viewVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/share/view-group-points.ts b/packages/openapi/src/share/view-group-points.ts index 676fcc5f2..cef51ae1d 100644 --- a/packages/openapi/src/share/view-group-points.ts +++ b/packages/openapi/src/share/view-group-points.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IGroupPointsVo } from '@teable-group/core'; -import { groupPointsRoSchema, groupPointsVoSchema } from '@teable-group/core'; +import type { IGroupPointsVo } from '@teable/core'; +import { groupPointsRoSchema, groupPointsVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/share/view-link-records.ts b/packages/openapi/src/share/view-link-records.ts index e3600a84b..639cda464 100644 --- a/packages/openapi/src/share/view-link-records.ts +++ b/packages/openapi/src/share/view-link-records.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { getRecordsRoSchema, recordsVoSchema } from '@teable-group/core'; +import { getRecordsRoSchema, recordsVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/share/view-row-count.ts b/packages/openapi/src/share/view-row-count.ts index da155cedb..3dcd3188a 100644 --- a/packages/openapi/src/share/view-row-count.ts +++ b/packages/openapi/src/share/view-row-count.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IRowCountVo } from '@teable-group/core'; -import { rowCountVoSchema, queryBaseSchema } from '@teable-group/core'; +import type { IRowCountVo } from '@teable/core'; +import { rowCountVoSchema, queryBaseSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/space/collaborator-get-list.ts b/packages/openapi/src/space/collaborator-get-list.ts index 25c87c1be..4adc8ddf9 100644 --- a/packages/openapi/src/space/collaborator-get-list.ts +++ b/packages/openapi/src/space/collaborator-get-list.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { spaceRolesSchema } from '@teable-group/core'; +import { spaceRolesSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/space/collaborator-update.ts b/packages/openapi/src/space/collaborator-update.ts index d32618312..fdd6ba54d 100644 --- a/packages/openapi/src/space/collaborator-update.ts +++ b/packages/openapi/src/space/collaborator-update.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { spaceRolesSchema } from '@teable-group/core'; +import { spaceRolesSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/space/get.ts b/packages/openapi/src/space/get.ts index 95743709a..1e92fab8f 100644 --- a/packages/openapi/src/space/get.ts +++ b/packages/openapi/src/space/get.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { spaceRolesSchema } from '@teable-group/core'; +import { spaceRolesSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/space/invitation-create-link.ts b/packages/openapi/src/space/invitation-create-link.ts index 29e7edde6..6f12a64dd 100644 --- a/packages/openapi/src/space/invitation-create-link.ts +++ b/packages/openapi/src/space/invitation-create-link.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { spaceRolesSchema } from '@teable-group/core'; +import { spaceRolesSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/space/invitation-email.ts b/packages/openapi/src/space/invitation-email.ts index f64ccda5e..58204b67e 100644 --- a/packages/openapi/src/space/invitation-email.ts +++ b/packages/openapi/src/space/invitation-email.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { spaceRolesSchema } from '@teable-group/core'; +import { spaceRolesSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/space/invitation-get-link-list.ts b/packages/openapi/src/space/invitation-get-link-list.ts index f342a830c..49b8ce703 100644 --- a/packages/openapi/src/space/invitation-get-link-list.ts +++ b/packages/openapi/src/space/invitation-get-link-list.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { spaceRolesSchema } from '@teable-group/core'; +import { spaceRolesSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/space/invitation-update-link.ts b/packages/openapi/src/space/invitation-update-link.ts index 8bbc29523..cfd4e6909 100644 --- a/packages/openapi/src/space/invitation-update-link.ts +++ b/packages/openapi/src/space/invitation-update-link.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { spaceRolesSchema } from '@teable-group/core'; +import { spaceRolesSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/table/create.ts b/packages/openapi/src/table/create.ts index 3d0db7f98..6e3c60641 100644 --- a/packages/openapi/src/table/create.ts +++ b/packages/openapi/src/table/create.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { ICreateTableRo, ITableFullVo } from '@teable-group/core'; -import { tableRoSchema, tableFullVoSchema } from '@teable-group/core'; +import type { ICreateTableRo, ITableFullVo } from '@teable/core'; +import { tableRoSchema, tableFullVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/table/get-list.ts b/packages/openapi/src/table/get-list.ts index 9242a2c48..94e07c0ec 100644 --- a/packages/openapi/src/table/get-list.ts +++ b/packages/openapi/src/table/get-list.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { ITableListVo } from '@teable-group/core'; -import { tableListVoSchema } from '@teable-group/core'; +import type { ITableListVo } from '@teable/core'; +import { tableListVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/table/get.ts b/packages/openapi/src/table/get.ts index beda1fd6e..b1385dc90 100644 --- a/packages/openapi/src/table/get.ts +++ b/packages/openapi/src/table/get.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IGetTableQuery, ITableVo } from '@teable-group/core'; -import { getTableQuerySchema, tableVoSchema } from '@teable-group/core'; +import type { IGetTableQuery, ITableVo } from '@teable/core'; +import { getTableQuerySchema, tableVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/create.ts b/packages/openapi/src/view/create.ts index 6b8f85b88..7d47a3efb 100644 --- a/packages/openapi/src/view/create.ts +++ b/packages/openapi/src/view/create.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IViewRo, IViewVo } from '@teable-group/core'; -import { viewRoSchema, viewVoSchema } from '@teable-group/core'; +import type { IViewRo, IViewVo } from '@teable/core'; +import { viewRoSchema, viewVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/get-list.ts b/packages/openapi/src/view/get-list.ts index 94c7cba03..9fb99c94e 100644 --- a/packages/openapi/src/view/get-list.ts +++ b/packages/openapi/src/view/get-list.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IViewVo } from '@teable-group/core'; -import { viewVoSchema } from '@teable-group/core'; +import type { IViewVo } from '@teable/core'; +import { viewVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/get.ts b/packages/openapi/src/view/get.ts index 401072a1b..87bcd3fc1 100644 --- a/packages/openapi/src/view/get.ts +++ b/packages/openapi/src/view/get.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IViewVo } from '@teable-group/core'; -import { viewVoSchema } from '@teable-group/core'; +import type { IViewVo } from '@teable/core'; +import { viewVoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/manual-sort.ts b/packages/openapi/src/view/manual-sort.ts index 9cf369f87..e542a52e7 100644 --- a/packages/openapi/src/view/manual-sort.ts +++ b/packages/openapi/src/view/manual-sort.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IManualSortRo, IViewVo } from '@teable-group/core'; -import { manualSortRoSchema } from '@teable-group/core'; +import type { IManualSortRo, IViewVo } from '@teable/core'; +import { manualSortRoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/update-fields-column-meta.ts b/packages/openapi/src/view/update-fields-column-meta.ts index cbace9559..38a5c2a9f 100644 --- a/packages/openapi/src/view/update-fields-column-meta.ts +++ b/packages/openapi/src/view/update-fields-column-meta.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IColumnMetaRo } from '@teable-group/core'; -import { columnMetaRoSchema } from '@teable-group/core'; +import type { IColumnMetaRo } from '@teable/core'; +import { columnMetaRoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/update-filter.ts b/packages/openapi/src/view/update-filter.ts index 1e2772462..cd31f9f14 100644 --- a/packages/openapi/src/view/update-filter.ts +++ b/packages/openapi/src/view/update-filter.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IFilterRo } from '@teable-group/core'; -import { filterRoSchema } from '@teable-group/core'; +import type { IFilterRo } from '@teable/core'; +import { filterRoSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/update-group.ts b/packages/openapi/src/view/update-group.ts index f31176faf..f783fa8ad 100644 --- a/packages/openapi/src/view/update-group.ts +++ b/packages/openapi/src/view/update-group.ts @@ -1,6 +1,6 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import type { IViewGroupRo } from '@teable-group/core'; -import { groupSchema } from '@teable-group/core'; +import type { IViewGroupRo } from '@teable/core'; +import { groupSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/update-options.ts b/packages/openapi/src/view/update-options.ts index 038e60e2a..c2ab5a176 100644 --- a/packages/openapi/src/view/update-options.ts +++ b/packages/openapi/src/view/update-options.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { viewOptionsSchema } from '@teable-group/core'; +import { viewOptionsSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/update-share-meta.ts b/packages/openapi/src/view/update-share-meta.ts index 353dec3fa..e8e9a385f 100644 --- a/packages/openapi/src/view/update-share-meta.ts +++ b/packages/openapi/src/view/update-share-meta.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { shareViewMetaSchema } from '@teable-group/core'; +import { shareViewMetaSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/src/view/update-sort.ts b/packages/openapi/src/view/update-sort.ts index f58708605..050e8be04 100644 --- a/packages/openapi/src/view/update-sort.ts +++ b/packages/openapi/src/view/update-sort.ts @@ -1,5 +1,5 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi'; -import { sortSchema } from '@teable-group/core'; +import { sortSchema } from '@teable/core'; import { axios } from '../axios'; import { registerRoute, urlBuilder } from '../utils'; import { z } from '../zod'; diff --git a/packages/openapi/tsconfig.json b/packages/openapi/tsconfig.json index 0bcdaf541..805ced321 100644 --- a/packages/openapi/tsconfig.json +++ b/packages/openapi/tsconfig.json @@ -19,9 +19,9 @@ "rootDir": "src", "outDir": "dist", "paths": { - "@teable-group/core": ["../core/src"] - } + "@teable/core": ["../core/src"], + }, }, "exclude": ["**/node_modules", "**/.*/", "./dist", "./coverage"], - "include": ["src"] + "include": ["src"], } diff --git a/packages/sdk/.eslintrc.cjs b/packages/sdk/.eslintrc.cjs index d4a7785d6..d6f6948a8 100644 --- a/packages/sdk/.eslintrc.cjs +++ b/packages/sdk/.eslintrc.cjs @@ -1,12 +1,12 @@ /** * Specific eslint rules for this app/package, extends the base rules - * @see https://github.com/teable-group/teable/blob/main/docs/about-linters.md + * @see https://github.com/teableio/teable/blob/main/docs/about-linters.md */ // Workaround for https://github.com/eslint/eslint/issues/3458 (re-export of @rushstack/eslint-patch) -require('@teable-group/eslint-config-bases/patch/modern-module-resolution'); +require('@teable/eslint-config-bases/patch/modern-module-resolution'); -const { getDefaultIgnorePatterns } = require('@teable-group/eslint-config-bases/helpers'); +const { getDefaultIgnorePatterns } = require('@teable/eslint-config-bases/helpers'); module.exports = { root: true, @@ -17,15 +17,15 @@ module.exports = { }, ignorePatterns: [...getDefaultIgnorePatterns()], extends: [ - '@teable-group/eslint-config-bases/typescript', - '@teable-group/eslint-config-bases/sonar', - '@teable-group/eslint-config-bases/regexp', - '@teable-group/eslint-config-bases/jest', - '@teable-group/eslint-config-bases/rtl', - '@teable-group/eslint-config-bases/react', - '@teable-group/eslint-config-bases/tailwind', + '@teable/eslint-config-bases/typescript', + '@teable/eslint-config-bases/sonar', + '@teable/eslint-config-bases/regexp', + '@teable/eslint-config-bases/jest', + '@teable/eslint-config-bases/rtl', + '@teable/eslint-config-bases/react', + '@teable/eslint-config-bases/tailwind', // Apply prettier and disable incompatible rules - '@teable-group/eslint-config-bases/prettier-plugin', + '@teable/eslint-config-bases/prettier-plugin', ], rules: { // optional overrides per project file match diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 353368c3a..fef172796 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,174 +1 @@ -# @teable-group/sdk - -## 3.15.1 - -### Patch Changes - -- [#2740](https://github.com/teable-group/teable/pull/2740) [`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9) Thanks [@belgattitude](https://github.com/belgattitude)! - Changesets: by default will tag and version private packages - - Doc: https://github.com/changesets/changesets/blob/main/docs/versioning-apps.md - Ref: [changesets@2.25.0](https://github.com/changesets/changesets/releases/tag/%40changesets%2Fcli%402.25.0) & [#662](https://github.com/changesets/changesets/pull/662). - -- Updated dependencies [[`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9)]: - - @teable-group/core@1.1.1 - -## 3.15.0 - -### Minor Changes - -- [#2713](https://github.com/teable-group/teable/pull/2713) [`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0) Thanks [@belgattitude](https://github.com/belgattitude)! - Move typescript utils to @teable-group/core - -### Patch Changes - -- Updated dependencies [[`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0), [`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0)]: - - @teable-group/core@1.1.0 - -## 3.14.2 - -### Patch Changes - -- [#2602](https://github.com/teable-group/teable/pull/2602) [`2fc498cc`](https://github.com/teable-group/teable/commit/2fc498cc928c9a577fa4c4a0112f910e0c24f176) Thanks [@belgattitude](https://github.com/belgattitude)! - Move from @tsed/exceptions to @belgattitude/http-exception - - See https://github.com/belgattitude/http-exception - -## 3.14.1 - -### Patch Changes - -- [#2214](https://github.com/teable-group/teable/pull/2214) [`62818ba`](https://github.com/teable-group/teable/commit/62818badff67ce032a209fe9217c319271833ddc) Thanks [@belgattitude](https://github.com/belgattitude)! - Speedup and clean yarn install on CI - -## 3.14.0 - -### Minor Changes - -- [#1876](https://github.com/teable-group/teable/pull/1876) [`5ad462a`](https://github.com/teable-group/teable/commit/5ad462a9a621564366c7a0ef0a77899fc855de85) Thanks [@belgattitude](https://github.com/belgattitude)! - Enable eslint global cache - -## 3.13.0 - -### Minor Changes - -- [#1656](https://github.com/teable-group/teable/pull/1656) [`9f2c2d0`](https://github.com/teable-group/teable/commit/9f2c2d049cfb87a3023a38b096f07f998862e3f6) Thanks [@belgattitude](https://github.com/belgattitude)! - Improved linter configs - -## 3.12.0 - -### Minor Changes - -- [#1644](https://github.com/teable-group/teable/pull/1644) [`ee0a3db`](https://github.com/teable-group/teable/commit/ee0a3dbd664c33d7149302ae3f776951dbd50492) Thanks [@belgattitude](https://github.com/belgattitude)! - Rework deps, peer-deps and dev-deps - -## 3.11.0 - -### Minor Changes - -- [#1341](https://github.com/teable-group/teable/pull/1341) [`05291de7`](https://github.com/teable-group/teable/commit/05291de7deeed720e8b7271d339050116b448177) Thanks [@belgattitude](https://github.com/belgattitude)! - Refactor scripts identifiers defined in package.json. Restrict usage of ':' in apps and packages - -## 3.10.0 - -### Minor Changes - -- [#1194](https://github.com/teable-group/teable/pull/1194) [`50e79d76`](https://github.com/teable-group/teable/commit/50e79d7659a13a0715e864c5b4aff3bf999afcfe) Thanks [@belgattitude](https://github.com/belgattitude)! - Add isIsoDateString typeguard - -## 3.9.0 - -### Minor Changes - -- [#963](https://github.com/teable-group/teable/pull/963) [`5e25fab2`](https://github.com/teable-group/teable/commit/5e25fab2f0d620e999f536a1fb8e0ef45d56fd64) Thanks [@belgattitude](https://github.com/belgattitude)! - Upgraded to react 18.0.0-rc.0 - -## 3.8.1 - -### Patch Changes - -- [#623](https://github.com/teable-group/teable/pull/623) [`fcd68ed`](https://github.com/teable-group/teable/commit/fcd68ed476734fefda85f5ffa2cf82cbd1502aa6) Thanks [@belgattitude](https://github.com/belgattitude)! - Fix package publishing in esm and cjs - -## 3.8.0 - -### Minor Changes - -- [#553](https://github.com/teable-group/teable/pull/553) [`77e758b`](https://github.com/teable-group/teable/commit/77e758bbed1bc4f13b99cdd0ed90fa11fde9518f) Thanks [@belgattitude](https://github.com/belgattitude)! - Add eslint-plugin-regexp - -## 3.7.0 - -### Minor Changes - -- [#438](https://github.com/teable-group/teable/pull/438) [`6b78e59`](https://github.com/teable-group/teable/commit/6b78e59e4933814e69c26c86743a5b003c92dc2a) Thanks [@belgattitude](https://github.com/belgattitude)! - Eslint performance by not running test plugins over regular code - -## 3.6.1 - -### Patch Changes - -- [#356](https://github.com/teable-group/teable/pull/356) [`db7870f`](https://github.com/teable-group/teable/commit/db7870fbef1ac0422e8d142ab6bcd7d593abd685) Thanks [@belgattitude](https://github.com/belgattitude)! - CI: add extra check for missing / undeclared dependencies - -* [#354](https://github.com/teable-group/teable/pull/354) [`16e4e2d`](https://github.com/teable-group/teable/commit/16e4e2d7b6023a0cc9bf62120d7b5b8e223740b5) Thanks [@belgattitude](https://github.com/belgattitude)! - Improve eslint config and add eslint-plugin-import - -## 3.6.0 - -### Minor Changes - -- [#323](https://github.com/teable-group/teable/pull/323) [`a416f35`](https://github.com/teable-group/teable/commit/a416f3550dd0bb8412297295206f586630e586c0) Thanks [@belgattitude](https://github.com/belgattitude)! - Example: eslint-plugin-sonarjs cause cause it desserves to belong here - -## 3.5.0 - -### Minor Changes - -- [#319](https://github.com/teable-group/teable/pull/319) [`2ccb056`](https://github.com/teable-group/teable/commit/2ccb056660dfd84a75e1a8733e56cc8d9b3fd353) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated to Typescript 4.4.2 strict ("useUnknownInCatchVariables": true) - -## 3.4.0 - -### Minor Changes - -- [#181](https://github.com/teable-group/teable/pull/181) [`c5173ea`](https://github.com/teable-group/teable/commit/c5173ea4d9ae5f476c0434ad25a6ff7735350e06) Thanks [@belgattitude](https://github.com/belgattitude)! - Allow peerDependencies on react to be optional - -## 3.3.0 - -### Minor Changes - -- [#140](https://github.com/teable-group/teable/pull/140) [`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f) Thanks [@belgattitude](https://github.com/belgattitude)! - Added basic example for JSON-API support - -### Patch Changes - -- [#140](https://github.com/teable-group/teable/pull/140) [`4929105`](https://github.com/teable-group/teable/commit/4929105635b9bfd460a5653ceb8cb05353bb9a8f) Thanks [@belgattitude](https://github.com/belgattitude)! - Added Unpromisify utility - -* [#172](https://github.com/teable-group/teable/pull/172) [`01e5e89`](https://github.com/teable-group/teable/commit/01e5e89e028029c5ef415f2f825d022f96a97fd4) Thanks [@belgattitude](https://github.com/belgattitude)! - Relaxed codeclimate config for react components - -## 3.2.2 - -### Patch Changes - -- [#135](https://github.com/teable-group/teable/pull/135) [`d548b70`](https://github.com/teable-group/teable/commit/d548b70b53baaa67d6de4e8a7c6254b59db3ced3) Thanks [@belgattitude](https://github.com/belgattitude)! - CI: use built-in yarn cache from setup/node@v2.2 - -## 3.2.1 - -### Patch Changes - -- [#84](https://github.com/teable-group/teable/pull/84) [`a9c0d5e`](https://github.com/teable-group/teable/commit/a9c0d5e2651732ab23f1a335acddd23aef5a6b88) Thanks [@belgattitude](https://github.com/belgattitude)! - Jest: use css transform from jest-css-modules-transform - -* [#84](https://github.com/teable-group/teable/pull/84) [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293) Thanks [@belgattitude](https://github.com/belgattitude)! - Jest: added mock configs - -- [#84](https://github.com/teable-group/teable/pull/84) [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293) Thanks [@belgattitude](https://github.com/belgattitude)! - ESlint: added plugin:testing-library/react - -## 3.2.0 - -### Minor Changes - -- [#67](https://github.com/teable-group/teable/pull/67) [`152e4ad`](https://github.com/teable-group/teable/commit/152e4adc8be95f192b066f75ef4bb2dd42c46d12) Thanks [@belgattitude](https://github.com/belgattitude)! - Jest 27 and Typescript 4.3.1 - -## 3.1.0 - -### Minor Changes - -- [#64](https://github.com/teable-group/teable/pull/64) [`800ccdc`](https://github.com/teable-group/teable/commit/800ccdcc93884157d4b9535272625a5a5719e83d) Thanks [@belgattitude](https://github.com/belgattitude)! - Add example asserts and typeguards - -* [#64](https://github.com/teable-group/teable/pull/64) [`800ccdc`](https://github.com/teable-group/teable/commit/800ccdcc93884157d4b9535272625a5a5719e83d) Thanks [@belgattitude](https://github.com/belgattitude)! - Add jest example for packages - -## 3.0.0 - -### Major Changes - -- [#39](https://github.com/teable-group/teable/pull/39) [`9f04b88`](https://github.com/teable-group/teable/commit/9f04b88d966e804ddc12e79372b3ac14f7330b86) Thanks [@belgattitude](https://github.com/belgattitude)! - Rename packages foo and bar into ui-lib and sdk - -## 2.0.0 - -### Major Changes - -- [#36](https://github.com/teable-group/teable/pull/36) [`3dd0d6a`](https://github.com/teable-group/teable/commit/3dd0d6a1ff20c49d4ad71907ea243287fbc36890) Thanks [@belgattitude](https://github.com/belgattitude)! - Add husky/lint-staged example - -- [#36](https://github.com/teable-group/teable/pull/36) [`31475c5`](https://github.com/teable-group/teable/commit/31475c58ca1ebc155f178240468d0d6a9d323e34) Thanks [@belgattitude](https://github.com/belgattitude)! - Add eslint integration example +# @teable/sdk diff --git a/packages/sdk/README.md b/packages/sdk/README.md index 41f727b4e..1553c41f2 100644 --- a/packages/sdk/README.md +++ b/packages/sdk/README.md @@ -1,8 +1,8 @@ -# @teable-group/sdk +# @teable/sdk

- - build + + build

diff --git a/packages/sdk/lint-staged.config.js b/packages/sdk/lint-staged.config.js index a25cea85c..15701fec7 100644 --- a/packages/sdk/lint-staged.config.js +++ b/packages/sdk/lint-staged.config.js @@ -4,7 +4,7 @@ * This files overrides the base lint-staged.config.js present in the root directory. * It allows to run eslint based the package specific requirements. * {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} - * {@link https://github.com/teable-group/teable/blob/main/docs/about-lint-staged.md} + * {@link https://github.com/teableio/teable/blob/main/docs/about-lint-staged.md} */ const { concatFilesForPrettier, getEslintFixCmd } = require('../../lint-staged.common.js'); diff --git a/packages/sdk/package.json b/packages/sdk/package.json index cfc9cc90a..fa8d00482 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,12 +1,12 @@ { - "name": "@teable-group/sdk", + "name": "@teable/sdk", "version": "1.0.0", "license": "AGPL-3.0", "private": true, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "packages/sdk" }, "author": { @@ -45,11 +45,11 @@ "@lezer/highlight": "1.2.0", "@radix-ui/react-icons": "1.3.0", "@tanstack/react-query": "4.36.1", - "@teable-group/common-i18n": "workspace:*", - "@teable-group/core": "workspace:*", - "@teable-group/icons": "workspace:*", - "@teable-group/openapi": "workspace:*", - "@teable-group/ui-lib": "workspace:*", + "@teable/common-i18n": "workspace:*", + "@teable/core": "workspace:*", + "@teable/icons": "workspace:*", + "@teable/openapi": "workspace:*", + "@teable/ui-lib": "workspace:*", "@types/mousetrap": "1.6.15", "antlr4ts": "0.5.0-alpha.4", "axios": "1.6.7", @@ -80,7 +80,7 @@ "react-dom": "^18.0.0" }, "devDependencies": { - "@teable-group/eslint-config-bases": "workspace:^", + "@teable/eslint-config-bases": "workspace:^", "@testing-library/jest-dom": "6.4.0", "@testing-library/react": "14.1.2", "@types/lodash": "4.14.202", diff --git a/packages/sdk/src/components/cell-value-editor/CellEditorMain.tsx b/packages/sdk/src/components/cell-value-editor/CellEditorMain.tsx index 7503f4618..7da771dc9 100644 --- a/packages/sdk/src/components/cell-value-editor/CellEditorMain.tsx +++ b/packages/sdk/src/components/cell-value-editor/CellEditorMain.tsx @@ -16,8 +16,8 @@ import type { ISingleSelectCellValue, IUserCellValue, IUserFieldOptions, -} from '@teable-group/core'; -import { ColorUtils, FieldType } from '@teable-group/core'; +} from '@teable/core'; +import { ColorUtils, FieldType } from '@teable/core'; import { useCallback, useEffect, useRef } from 'react'; import { useTableId } from '../../hooks'; import { Field } from '../../model'; diff --git a/packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx b/packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx index c655ed1c6..1d76d3ded 100644 --- a/packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx +++ b/packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx @@ -1,4 +1,4 @@ -import { Input } from '@teable-group/ui-lib'; +import { Input } from '@teable/ui-lib'; export const ComputedEditor = (props: { cellValueString?: string }) => { const { cellValueString } = props; diff --git a/packages/sdk/src/components/editor/attachment/Editor.tsx b/packages/sdk/src/components/editor/attachment/Editor.tsx index 28b311018..3f9b42fa1 100644 --- a/packages/sdk/src/components/editor/attachment/Editor.tsx +++ b/packages/sdk/src/components/editor/attachment/Editor.tsx @@ -1,4 +1,4 @@ -import type { IAttachmentCellValue } from '@teable-group/core'; +import type { IAttachmentCellValue } from '@teable/core'; import { noop } from 'lodash'; import type { ICellEditor } from '../type'; import { UploadAttachment } from './upload-attachment/UploadAttachment'; diff --git a/packages/sdk/src/components/editor/attachment/upload-attachment/FileInput.tsx b/packages/sdk/src/components/editor/attachment/upload-attachment/FileInput.tsx index 9eb8a2892..802bca9d0 100644 --- a/packages/sdk/src/components/editor/attachment/upload-attachment/FileInput.tsx +++ b/packages/sdk/src/components/editor/attachment/upload-attachment/FileInput.tsx @@ -1,5 +1,5 @@ -import { Plus } from '@teable-group/icons'; -import { Button } from '@teable-group/ui-lib'; +import { Plus } from '@teable/icons'; +import { Button } from '@teable/ui-lib'; import { useRef } from 'react'; export const FileInput = (props: { onChange?: (files: File[]) => void }) => { diff --git a/packages/sdk/src/components/editor/attachment/upload-attachment/UploadAttachment.tsx b/packages/sdk/src/components/editor/attachment/upload-attachment/UploadAttachment.tsx index e19224d35..36e7221ec 100644 --- a/packages/sdk/src/components/editor/attachment/upload-attachment/UploadAttachment.tsx +++ b/packages/sdk/src/components/editor/attachment/upload-attachment/UploadAttachment.tsx @@ -1,8 +1,8 @@ -import type { IAttachmentItem, IAttachmentCellValue } from '@teable-group/core'; -import { generateAttachmentId } from '@teable-group/core'; -import { X, Download } from '@teable-group/icons'; -import { UploadType, type INotifyVo } from '@teable-group/openapi'; -import { Button, FilePreviewItem, FilePreviewProvider, Progress, cn } from '@teable-group/ui-lib'; +import type { IAttachmentItem, IAttachmentCellValue } from '@teable/core'; +import { generateAttachmentId } from '@teable/core'; +import { X, Download } from '@teable/icons'; +import { UploadType, type INotifyVo } from '@teable/openapi'; +import { Button, FilePreviewItem, FilePreviewProvider, Progress, cn } from '@teable/ui-lib'; import { map, omit } from 'lodash'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { getFileCover, isSystemFileIcon } from '../utils'; diff --git a/packages/sdk/src/components/editor/attachment/upload-attachment/uploadManage.ts b/packages/sdk/src/components/editor/attachment/upload-attachment/uploadManage.ts index cd30ea82e..44705efa3 100644 --- a/packages/sdk/src/components/editor/attachment/upload-attachment/uploadManage.ts +++ b/packages/sdk/src/components/editor/attachment/upload-attachment/uploadManage.ts @@ -1,5 +1,5 @@ -import type { INotifyVo, UploadType } from '@teable-group/openapi'; -import { getSignature, notify } from '@teable-group/openapi'; +import type { INotifyVo, UploadType } from '@teable/openapi'; +import { getSignature, notify } from '@teable/openapi'; import axios from 'axios'; import { noop } from 'lodash'; diff --git a/packages/sdk/src/components/editor/attachment/utils.ts b/packages/sdk/src/components/editor/attachment/utils.ts index a897294ea..df9eee621 100644 --- a/packages/sdk/src/components/editor/attachment/utils.ts +++ b/packages/sdk/src/components/editor/attachment/utils.ts @@ -1,4 +1,4 @@ -import { getFileIcon, isImage } from '@teable-group/ui-lib'; +import { getFileIcon, isImage } from '@teable/ui-lib'; import { renderToString } from 'react-dom/server'; export const getFileCover = (mimetype: string, url?: string) => { diff --git a/packages/sdk/src/components/editor/checkbox/Editor.tsx b/packages/sdk/src/components/editor/checkbox/Editor.tsx index a717928cb..bd16fa61b 100644 --- a/packages/sdk/src/components/editor/checkbox/Editor.tsx +++ b/packages/sdk/src/components/editor/checkbox/Editor.tsx @@ -1,4 +1,4 @@ -import { Checkbox, cn } from '@teable-group/ui-lib'; +import { Checkbox, cn } from '@teable/ui-lib'; import type { ICellEditor } from '../type'; type ICheckboxEditor = ICellEditor; diff --git a/packages/sdk/src/components/editor/date/Editor.tsx b/packages/sdk/src/components/editor/date/Editor.tsx index 0d8f7492b..c4c82db82 100644 --- a/packages/sdk/src/components/editor/date/Editor.tsx +++ b/packages/sdk/src/components/editor/date/Editor.tsx @@ -1,6 +1,6 @@ -import { TimeFormatting } from '@teable-group/core'; -import { Calendar } from '@teable-group/icons'; -import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib'; +import { TimeFormatting } from '@teable/core'; +import { Calendar } from '@teable/icons'; +import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib'; import classNames from 'classnames'; import dayjs from 'dayjs'; import type { ForwardRefRenderFunction } from 'react'; diff --git a/packages/sdk/src/components/editor/date/EditorMain.tsx b/packages/sdk/src/components/editor/date/EditorMain.tsx index 1824a48b6..3149d0be9 100644 --- a/packages/sdk/src/components/editor/date/EditorMain.tsx +++ b/packages/sdk/src/components/editor/date/EditorMain.tsx @@ -1,5 +1,5 @@ -import { TimeFormatting, type IDateFieldOptions } from '@teable-group/core'; -import { Calendar, Input } from '@teable-group/ui-lib'; +import { TimeFormatting, type IDateFieldOptions } from '@teable/core'; +import { Calendar, Input } from '@teable/ui-lib'; import dayjs from 'dayjs'; import type { ForwardRefRenderFunction } from 'react'; import { forwardRef, useImperativeHandle, useMemo, useRef, useState } from 'react'; diff --git a/packages/sdk/src/components/editor/formula/Editor.tsx b/packages/sdk/src/components/editor/formula/Editor.tsx index 9701eb28f..9ce5038e9 100644 --- a/packages/sdk/src/components/editor/formula/Editor.tsx +++ b/packages/sdk/src/components/editor/formula/Editor.tsx @@ -3,9 +3,9 @@ import { closeBracketsKeymap } from '@codemirror/autocomplete'; import { defaultKeymap, historyKeymap } from '@codemirror/commands'; import type { EditorSelection } from '@codemirror/state'; import { keymap } from '@codemirror/view'; -import type { FunctionName } from '@teable-group/core'; -import { FormulaLexer } from '@teable-group/core'; -import { Button, cn } from '@teable-group/ui-lib'; +import type { FunctionName } from '@teable/core'; +import { FormulaLexer } from '@teable/core'; +import { Button, cn } from '@teable/ui-lib'; import { CharStreams } from 'antlr4ts'; import Fuse from 'fuse.js'; import { keyBy } from 'lodash'; diff --git a/packages/sdk/src/components/editor/formula/components/FunctionGuide.tsx b/packages/sdk/src/components/editor/formula/components/FunctionGuide.tsx index 80f8ddb1e..49e54d012 100644 --- a/packages/sdk/src/components/editor/formula/components/FunctionGuide.tsx +++ b/packages/sdk/src/components/editor/formula/components/FunctionGuide.tsx @@ -1,5 +1,5 @@ -import type { FunctionName } from '@teable-group/core'; -import { cn } from '@teable-group/ui-lib'; +import type { FunctionName } from '@teable/core'; +import { cn } from '@teable/ui-lib'; import type { FC } from 'react'; import { ThemeKey } from '../../../../context'; import { useTranslation } from '../../../../context/app/i18n'; diff --git a/packages/sdk/src/components/editor/formula/components/FunctionHelper.tsx b/packages/sdk/src/components/editor/formula/components/FunctionHelper.tsx index 1e504e5ca..f5be43491 100644 --- a/packages/sdk/src/components/editor/formula/components/FunctionHelper.tsx +++ b/packages/sdk/src/components/editor/formula/components/FunctionHelper.tsx @@ -1,5 +1,5 @@ -import type { FunctionName } from '@teable-group/core'; -import { cn } from '@teable-group/ui-lib'; +import type { FunctionName } from '@teable/core'; +import { cn } from '@teable/ui-lib'; import type { FC } from 'react'; import { useTranslation } from '../../../../context/app/i18n'; import { FORMULA_FUNCTIONS_MAP } from '../constants'; diff --git a/packages/sdk/src/components/editor/formula/constants.ts b/packages/sdk/src/components/editor/formula/constants.ts index d635cd7c9..f5c67ae23 100644 --- a/packages/sdk/src/components/editor/formula/constants.ts +++ b/packages/sdk/src/components/editor/formula/constants.ts @@ -1,6 +1,6 @@ /* eslint-disable sonarjs/no-duplicate-string, @typescript-eslint/naming-convention */ -import { FormulaFuncType, FunctionName, FUNCTIONS, FormulaLexer } from '@teable-group/core'; -import { Hash, A, CheckSquare, Calendar } from '@teable-group/icons'; +import { FormulaFuncType, FunctionName, FUNCTIONS, FormulaLexer } from '@teable/core'; +import { Hash, A, CheckSquare, Calendar } from '@teable/icons'; import type { IFunctionMap, IFunctionSchema } from './interface'; export const Type2IconMap = { diff --git a/packages/sdk/src/components/editor/formula/extensions/token.ts b/packages/sdk/src/components/editor/formula/extensions/token.ts index f30809e6a..cf93bd648 100644 --- a/packages/sdk/src/components/editor/formula/extensions/token.ts +++ b/packages/sdk/src/components/editor/formula/extensions/token.ts @@ -2,7 +2,7 @@ import type { StringStream, TagStyle } from '@codemirror/language'; import { HighlightStyle, syntaxHighlighting, StreamLanguage } from '@codemirror/language'; import { tags as t } from '@lezer/highlight'; -import { FormulaLexer } from '@teable-group/core'; +import { FormulaLexer } from '@teable/core'; import colors from 'tailwindcss/colors'; enum TokenGroup { diff --git a/packages/sdk/src/components/editor/formula/interface.ts b/packages/sdk/src/components/editor/formula/interface.ts index 4bc4265e0..0bbd4c718 100644 --- a/packages/sdk/src/components/editor/formula/interface.ts +++ b/packages/sdk/src/components/editor/formula/interface.ts @@ -1,4 +1,4 @@ -import type { FormulaFuncType, FunctionName, FUNCTIONS } from '@teable-group/core'; +import type { FormulaFuncType, FunctionName, FUNCTIONS } from '@teable/core'; export interface IFocusToken { value: string; diff --git a/packages/sdk/src/components/editor/formula/visitor.ts b/packages/sdk/src/components/editor/formula/visitor.ts index 9a2bf5428..6564efe7c 100644 --- a/packages/sdk/src/components/editor/formula/visitor.ts +++ b/packages/sdk/src/components/editor/formula/visitor.ts @@ -1,4 +1,4 @@ -import { FunctionCallContext } from '@teable-group/core'; +import { FunctionCallContext } from '@teable/core'; import type { ExprContext, IntegerLiteralContext, @@ -6,7 +6,7 @@ import type { RightWhitespaceOrCommentsContext, StringLiteralContext, FormulaVisitor, -} from '@teable-group/core'; +} from '@teable/core'; import { AbstractParseTreeVisitor } from 'antlr4ts/tree/AbstractParseTreeVisitor'; import type { ParseTree } from 'antlr4ts/tree/ParseTree'; import type { TerminalNode } from 'antlr4ts/tree/TerminalNode'; diff --git a/packages/sdk/src/components/editor/link/Editor.tsx b/packages/sdk/src/components/editor/link/Editor.tsx index b110502ff..1dfa92206 100644 --- a/packages/sdk/src/components/editor/link/Editor.tsx +++ b/packages/sdk/src/components/editor/link/Editor.tsx @@ -1,7 +1,7 @@ -import type { ILinkCellValue, ILinkFieldOptions } from '@teable-group/core'; -import { isMultiValueLink } from '@teable-group/core'; -import { Plus } from '@teable-group/icons'; -import { Button, Dialog, DialogContent, DialogTrigger, useToast } from '@teable-group/ui-lib'; +import type { ILinkCellValue, ILinkFieldOptions } from '@teable/core'; +import { isMultiValueLink } from '@teable/core'; +import { Plus } from '@teable/icons'; +import { Button, Dialog, DialogContent, DialogTrigger, useToast } from '@teable/ui-lib'; import { useState, useRef } from 'react'; import { ExpandRecorder } from '../../expand-record'; import type { ILinkEditorMainRef } from './EditorMain'; diff --git a/packages/sdk/src/components/editor/link/EditorMain.tsx b/packages/sdk/src/components/editor/link/EditorMain.tsx index c362c9cec..1aaac3669 100644 --- a/packages/sdk/src/components/editor/link/EditorMain.tsx +++ b/packages/sdk/src/components/editor/link/EditorMain.tsx @@ -1,7 +1,7 @@ -import type { IGetRecordsRo, ILinkCellValue, ILinkFieldOptions } from '@teable-group/core'; -import { isMultiValueLink } from '@teable-group/core'; -import { Plus } from '@teable-group/icons'; -import { Button, Input, Tabs, TabsList, TabsTrigger } from '@teable-group/ui-lib'; +import type { IGetRecordsRo, ILinkCellValue, ILinkFieldOptions } from '@teable/core'; +import { isMultiValueLink } from '@teable/core'; +import { Plus } from '@teable/icons'; +import { Button, Input, Tabs, TabsList, TabsTrigger } from '@teable/ui-lib'; import { uniqueId } from 'lodash'; import { forwardRef, diff --git a/packages/sdk/src/components/editor/link/LinkCard.tsx b/packages/sdk/src/components/editor/link/LinkCard.tsx index 8ab76413c..501307d9d 100644 --- a/packages/sdk/src/components/editor/link/LinkCard.tsx +++ b/packages/sdk/src/components/editor/link/LinkCard.tsx @@ -1,5 +1,5 @@ -import { X } from '@teable-group/icons'; -import { Button, cn } from '@teable-group/ui-lib'; +import { X } from '@teable/icons'; +import { Button, cn } from '@teable/ui-lib'; import { noop } from 'lodash'; interface ILinkCardProps { diff --git a/packages/sdk/src/components/editor/long-text/Editor.tsx b/packages/sdk/src/components/editor/long-text/Editor.tsx index 17830f8f6..42d4df834 100644 --- a/packages/sdk/src/components/editor/long-text/Editor.tsx +++ b/packages/sdk/src/components/editor/long-text/Editor.tsx @@ -1,4 +1,4 @@ -import { Textarea, cn } from '@teable-group/ui-lib'; +import { Textarea, cn } from '@teable/ui-lib'; import type { ForwardRefRenderFunction } from 'react'; import { forwardRef, useImperativeHandle, useRef, useState } from 'react'; import type { ICellEditor, IEditorRef } from '../type'; diff --git a/packages/sdk/src/components/editor/number/Editor.tsx b/packages/sdk/src/components/editor/number/Editor.tsx index 6db3989da..8af22c425 100644 --- a/packages/sdk/src/components/editor/number/Editor.tsx +++ b/packages/sdk/src/components/editor/number/Editor.tsx @@ -1,6 +1,6 @@ -import { formatNumberToString, parseStringToNumber } from '@teable-group/core'; -import type { INumberFieldOptions } from '@teable-group/core'; -import { Input, cn } from '@teable-group/ui-lib'; +import { formatNumberToString, parseStringToNumber } from '@teable/core'; +import type { INumberFieldOptions } from '@teable/core'; +import { Input, cn } from '@teable/ui-lib'; import type { ForwardRefRenderFunction } from 'react'; import { forwardRef, useImperativeHandle, useRef, useState } from 'react'; import type { ICellEditor, IEditorRef } from '../type'; diff --git a/packages/sdk/src/components/editor/rating/Editor.tsx b/packages/sdk/src/components/editor/rating/Editor.tsx index 370856a95..ed1b2274d 100644 --- a/packages/sdk/src/components/editor/rating/Editor.tsx +++ b/packages/sdk/src/components/editor/rating/Editor.tsx @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { ColorUtils, RatingIcon, type IRatingFieldOptions } from '@teable-group/core'; -import { Star, Moon, Sun, Zap, Flame, Heart, Apple, ThumbsUp } from '@teable-group/icons'; -import { cn } from '@teable-group/ui-lib'; +import { ColorUtils, RatingIcon, type IRatingFieldOptions } from '@teable/core'; +import { Star, Moon, Sun, Zap, Flame, Heart, Apple, ThumbsUp } from '@teable/icons'; +import { cn } from '@teable/ui-lib'; import { useState, type FC } from 'react'; import type { ICellEditor } from '../type'; diff --git a/packages/sdk/src/components/editor/select/Editor.tsx b/packages/sdk/src/components/editor/select/Editor.tsx index d0b5c6a53..bb79f5bd4 100644 --- a/packages/sdk/src/components/editor/select/Editor.tsx +++ b/packages/sdk/src/components/editor/select/Editor.tsx @@ -1,5 +1,5 @@ -import { X } from '@teable-group/icons'; -import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib'; +import { X } from '@teable/icons'; +import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib'; import classNames from 'classnames'; import { keyBy } from 'lodash'; import type { ForwardRefRenderFunction } from 'react'; diff --git a/packages/sdk/src/components/editor/select/EditorMain.tsx b/packages/sdk/src/components/editor/select/EditorMain.tsx index 9fab9272b..68a83f5ca 100644 --- a/packages/sdk/src/components/editor/select/EditorMain.tsx +++ b/packages/sdk/src/components/editor/select/EditorMain.tsx @@ -1,4 +1,4 @@ -import { Check, Plus } from '@teable-group/icons'; +import { Check, Plus } from '@teable/icons'; import { Button, Command, @@ -9,7 +9,7 @@ import { CommandList, cn, useCommandState, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import type { ForwardRefRenderFunction } from 'react'; import { forwardRef, useCallback, useImperativeHandle, useRef, useState } from 'react'; import type { ICellEditor, IEditorRef } from '../type'; diff --git a/packages/sdk/src/components/editor/text/Editor.tsx b/packages/sdk/src/components/editor/text/Editor.tsx index 4cd3e5edf..794a7daaf 100644 --- a/packages/sdk/src/components/editor/text/Editor.tsx +++ b/packages/sdk/src/components/editor/text/Editor.tsx @@ -1,7 +1,7 @@ -import { SingleLineTextDisplayType } from '@teable-group/core'; -import type { ISingleLineTextFieldOptions } from '@teable-group/core'; -import { Link, Mail, Phone } from '@teable-group/icons'; -import { Button, Input, cn } from '@teable-group/ui-lib'; +import { SingleLineTextDisplayType } from '@teable/core'; +import type { ISingleLineTextFieldOptions } from '@teable/core'; +import { Link, Mail, Phone } from '@teable/icons'; +import { Button, Input, cn } from '@teable/ui-lib'; import type { ForwardRefRenderFunction } from 'react'; import { forwardRef, useImperativeHandle, useRef, useState } from 'react'; import type { ICellEditor, IEditorRef } from '../type'; diff --git a/packages/sdk/src/components/editor/text/utils.ts b/packages/sdk/src/components/editor/text/utils.ts index 010dc71c5..0a987eafb 100644 --- a/packages/sdk/src/components/editor/text/utils.ts +++ b/packages/sdk/src/components/editor/text/utils.ts @@ -1,4 +1,4 @@ -import { SingleLineTextDisplayType } from '@teable-group/core'; +import { SingleLineTextDisplayType } from '@teable/core'; export const onMixedTextClick = (type: SingleLineTextDisplayType, text: string) => { let url = ''; diff --git a/packages/sdk/src/components/editor/user/Editor.tsx b/packages/sdk/src/components/editor/user/Editor.tsx index c385bec2d..51f8941e4 100644 --- a/packages/sdk/src/components/editor/user/Editor.tsx +++ b/packages/sdk/src/components/editor/user/Editor.tsx @@ -1,5 +1,5 @@ -import type { IUserCellValue } from '@teable-group/core'; -import { X } from '@teable-group/icons'; +import type { IUserCellValue } from '@teable/core'; +import { X } from '@teable/icons'; import { Avatar, AvatarFallback, @@ -8,7 +8,7 @@ import { Popover, PopoverContent, PopoverTrigger, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import classNames from 'classnames'; import React, { useRef, useState } from 'react'; import type { IUserEditorMainProps } from './EditorMain'; diff --git a/packages/sdk/src/components/editor/user/EditorMain.tsx b/packages/sdk/src/components/editor/user/EditorMain.tsx index ecaf93ca1..423c7f51e 100644 --- a/packages/sdk/src/components/editor/user/EditorMain.tsx +++ b/packages/sdk/src/components/editor/user/EditorMain.tsx @@ -1,7 +1,7 @@ import { useQuery } from '@tanstack/react-query'; -import type { IUserCellValue, IUserFieldOptions } from '@teable-group/core'; -import { Check } from '@teable-group/icons'; -import { getBaseCollaboratorList } from '@teable-group/openapi'; +import type { IUserCellValue, IUserFieldOptions } from '@teable/core'; +import { Check } from '@teable/icons'; +import { getBaseCollaboratorList } from '@teable/openapi'; import { Avatar, AvatarFallback, @@ -13,7 +13,7 @@ import { CommandItem, CommandList, Skeleton, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import classNames from 'classnames'; import React, { useCallback } from 'react'; import { ReactQueryKeys } from '../../../config'; diff --git a/packages/sdk/src/components/expand-record/ExpandRecord.tsx b/packages/sdk/src/components/expand-record/ExpandRecord.tsx index 3b3d766f3..32c78a121 100644 --- a/packages/sdk/src/components/expand-record/ExpandRecord.tsx +++ b/packages/sdk/src/components/expand-record/ExpandRecord.tsx @@ -1,5 +1,5 @@ -import type { IRecord } from '@teable-group/core'; -import { Separator, Skeleton } from '@teable-group/ui-lib'; +import type { IRecord } from '@teable/core'; +import { Separator, Skeleton } from '@teable/ui-lib'; import classNames from 'classnames'; import { isEqual } from 'lodash'; import { useMemo } from 'react'; diff --git a/packages/sdk/src/components/expand-record/ExpandRecordHeader.tsx b/packages/sdk/src/components/expand-record/ExpandRecordHeader.tsx index 2e3671866..a3d75ba4b 100644 --- a/packages/sdk/src/components/expand-record/ExpandRecordHeader.tsx +++ b/packages/sdk/src/components/expand-record/ExpandRecordHeader.tsx @@ -1,5 +1,5 @@ -import { ChevronDown, ChevronUp, Link, MessageSquare, X } from '@teable-group/icons'; -import { Button, Separator } from '@teable-group/ui-lib'; +import { ChevronDown, ChevronUp, Link, MessageSquare, X } from '@teable/icons'; +import { Button, Separator } from '@teable/ui-lib'; import classNames from 'classnames'; import { useMeasure } from 'react-use'; import { useTranslation } from '../../context/app/i18n'; diff --git a/packages/sdk/src/components/expand-record/ExpandRecorder.tsx b/packages/sdk/src/components/expand-record/ExpandRecorder.tsx index 12c79aa6e..67ad909e3 100644 --- a/packages/sdk/src/components/expand-record/ExpandRecorder.tsx +++ b/packages/sdk/src/components/expand-record/ExpandRecorder.tsx @@ -1,5 +1,5 @@ -import type { IRecord } from '@teable-group/core'; -import { useToast } from '@teable-group/ui-lib'; +import type { IRecord } from '@teable/core'; +import { useToast } from '@teable/ui-lib'; import { type FC, type PropsWithChildren } from 'react'; import { useLocalStorage } from 'react-use'; import { LocalStorageKeys } from '../../config/local-storage-keys'; diff --git a/packages/sdk/src/components/expand-record/Modal.tsx b/packages/sdk/src/components/expand-record/Modal.tsx index d203a8989..eacc34d21 100644 --- a/packages/sdk/src/components/expand-record/Modal.tsx +++ b/packages/sdk/src/components/expand-record/Modal.tsx @@ -1,4 +1,4 @@ -import { Dialog, DialogContent } from '@teable-group/ui-lib'; +import { Dialog, DialogContent } from '@teable/ui-lib'; import classNames from 'classnames'; import { type FC, type PropsWithChildren } from 'react'; diff --git a/packages/sdk/src/components/expand-record/RecordEditor.tsx b/packages/sdk/src/components/expand-record/RecordEditor.tsx index 204e70f38..da1a08260 100644 --- a/packages/sdk/src/components/expand-record/RecordEditor.tsx +++ b/packages/sdk/src/components/expand-record/RecordEditor.tsx @@ -1,4 +1,4 @@ -import { Button } from '@teable-group/ui-lib'; +import { Button } from '@teable/ui-lib'; import { useRef } from 'react'; import { useMeasure, useToggle } from 'react-use'; import type { Field, Record } from '../../model'; diff --git a/packages/sdk/src/components/expand-record/TooltipWrap.tsx b/packages/sdk/src/components/expand-record/TooltipWrap.tsx index 84e39aac4..2a4228c10 100644 --- a/packages/sdk/src/components/expand-record/TooltipWrap.tsx +++ b/packages/sdk/src/components/expand-record/TooltipWrap.tsx @@ -1,4 +1,4 @@ -import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@teable-group/ui-lib'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@teable/ui-lib'; import type { FC, PropsWithChildren } from 'react'; export const TooltipWrap: FC> = ( diff --git a/packages/sdk/src/components/filter/FilterBase.tsx b/packages/sdk/src/components/filter/FilterBase.tsx index 537ab7077..91794a4fd 100644 --- a/packages/sdk/src/components/filter/FilterBase.tsx +++ b/packages/sdk/src/components/filter/FilterBase.tsx @@ -1,9 +1,9 @@ -import type { IFilter, IFilterItem, IConjunction } from '@teable-group/core'; -import { getValidFilterOperators } from '@teable-group/core'; +import type { IFilter, IFilterItem, IConjunction } from '@teable/core'; +import { getValidFilterOperators } from '@teable/core'; -import { Plus } from '@teable-group/icons'; +import { Plus } from '@teable/icons'; -import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib'; +import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib'; import { produce } from 'immer'; import { cloneDeep, isEqual, set, get } from 'lodash'; diff --git a/packages/sdk/src/components/filter/component/FilterCheckBox.tsx b/packages/sdk/src/components/filter/component/FilterCheckBox.tsx index 338e501dc..672351ac8 100644 --- a/packages/sdk/src/components/filter/component/FilterCheckBox.tsx +++ b/packages/sdk/src/components/filter/component/FilterCheckBox.tsx @@ -1,4 +1,4 @@ -import { Checkbox } from '@teable-group/ui-lib'; +import { Checkbox } from '@teable/ui-lib'; import { useEffect } from 'react'; interface IFilterCheckboxProps { diff --git a/packages/sdk/src/components/filter/component/FilterInput.tsx b/packages/sdk/src/components/filter/component/FilterInput.tsx index bf82870b3..e4f78cbce 100644 --- a/packages/sdk/src/components/filter/component/FilterInput.tsx +++ b/packages/sdk/src/components/filter/component/FilterInput.tsx @@ -1,5 +1,5 @@ -import type { IFilterItem } from '@teable-group/core'; -import { Input } from '@teable-group/ui-lib'; +import type { IFilterItem } from '@teable/core'; +import { Input } from '@teable/ui-lib'; import classNames from 'classnames'; import { debounce } from 'lodash'; import { useEffect, useMemo, useState } from 'react'; diff --git a/packages/sdk/src/components/filter/component/FilterInputNumber.tsx b/packages/sdk/src/components/filter/component/FilterInputNumber.tsx index 3ec9725d0..7eec9575c 100644 --- a/packages/sdk/src/components/filter/component/FilterInputNumber.tsx +++ b/packages/sdk/src/components/filter/component/FilterInputNumber.tsx @@ -1,4 +1,4 @@ -import { Input } from '@teable-group/ui-lib'; +import { Input } from '@teable/ui-lib'; import classNames from 'classnames'; import { useEffect } from 'react'; diff --git a/packages/sdk/src/components/filter/component/FilterMultipleSelect.tsx b/packages/sdk/src/components/filter/component/FilterMultipleSelect.tsx index 791156a80..1383afcbb 100644 --- a/packages/sdk/src/components/filter/component/FilterMultipleSelect.tsx +++ b/packages/sdk/src/components/filter/component/FilterMultipleSelect.tsx @@ -1,4 +1,4 @@ -import { ColorUtils } from '@teable-group/core'; +import { ColorUtils } from '@teable/core'; import classNames from 'classnames'; import { useMemo, useEffect } from 'react'; import type { MultipleSelectField, SingleSelectField } from '../../../model'; diff --git a/packages/sdk/src/components/filter/component/FilterSingleSelect.tsx b/packages/sdk/src/components/filter/component/FilterSingleSelect.tsx index 87ecbdc55..489413a56 100644 --- a/packages/sdk/src/components/filter/component/FilterSingleSelect.tsx +++ b/packages/sdk/src/components/filter/component/FilterSingleSelect.tsx @@ -1,4 +1,4 @@ -import { ColorUtils } from '@teable-group/core'; +import { ColorUtils } from '@teable/core'; import { useMemo } from 'react'; import type { SingleSelectField } from '../../../model'; import type { IColorOption } from './base'; diff --git a/packages/sdk/src/components/filter/component/FilterUserSelect.tsx b/packages/sdk/src/components/filter/component/FilterUserSelect.tsx index a7515332d..d156dc964 100644 --- a/packages/sdk/src/components/filter/component/FilterUserSelect.tsx +++ b/packages/sdk/src/components/filter/component/FilterUserSelect.tsx @@ -1,8 +1,8 @@ import { useQuery } from '@tanstack/react-query'; -import { isMeTag, Me } from '@teable-group/core'; -import { User as UserIcon } from '@teable-group/icons'; -import { getBaseCollaboratorList } from '@teable-group/openapi'; -import { Avatar, AvatarFallback, AvatarImage } from '@teable-group/ui-lib'; +import { isMeTag, Me } from '@teable/core'; +import { User as UserIcon } from '@teable/icons'; +import { getBaseCollaboratorList } from '@teable/openapi'; +import { Avatar, AvatarFallback, AvatarImage } from '@teable/ui-lib'; import React, { useCallback, useMemo } from 'react'; import { ReactQueryKeys } from '../../../config'; import { useTranslation } from '../../../context/app/i18n'; diff --git a/packages/sdk/src/components/filter/component/base/BaseMultipleSelect.tsx b/packages/sdk/src/components/filter/component/base/BaseMultipleSelect.tsx index 4ac4aed32..0cc28b0c6 100644 --- a/packages/sdk/src/components/filter/component/base/BaseMultipleSelect.tsx +++ b/packages/sdk/src/components/filter/component/base/BaseMultipleSelect.tsx @@ -9,7 +9,7 @@ import { Popover, PopoverContent, PopoverTrigger, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import classNames from 'classnames'; import { Check, ChevronsUpDown } from 'lucide-react'; diff --git a/packages/sdk/src/components/filter/component/base/BaseSingleSelect.tsx b/packages/sdk/src/components/filter/component/base/BaseSingleSelect.tsx index 3b09e693c..be5f67c9d 100644 --- a/packages/sdk/src/components/filter/component/base/BaseSingleSelect.tsx +++ b/packages/sdk/src/components/filter/component/base/BaseSingleSelect.tsx @@ -8,7 +8,7 @@ import { Popover, PopoverContent, PopoverTrigger, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import classNames from 'classnames'; import { Check, ChevronsUpDown } from 'lucide-react'; import { useState, useMemo, useEffect, useCallback } from 'react'; diff --git a/packages/sdk/src/components/filter/component/base/types.ts b/packages/sdk/src/components/filter/component/base/types.ts index 4974e313c..38cee1a2f 100644 --- a/packages/sdk/src/components/filter/component/base/types.ts +++ b/packages/sdk/src/components/filter/component/base/types.ts @@ -1,4 +1,4 @@ -import type { Colors } from '@teable-group/core'; +import type { Colors } from '@teable/core'; interface IOption { value: T; diff --git a/packages/sdk/src/components/filter/component/filterDatePicker/DatePicker.tsx b/packages/sdk/src/components/filter/component/filterDatePicker/DatePicker.tsx index c56852d67..0b03d6e6d 100644 --- a/packages/sdk/src/components/filter/component/filterDatePicker/DatePicker.tsx +++ b/packages/sdk/src/components/filter/component/filterDatePicker/DatePicker.tsx @@ -1,5 +1,5 @@ import { CalendarIcon } from '@radix-ui/react-icons'; -import { Button, Calendar, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib'; +import { Button, Calendar, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib'; import classNames from 'classnames'; import * as React from 'react'; diff --git a/packages/sdk/src/components/filter/component/filterDatePicker/FilterDatePicker.tsx b/packages/sdk/src/components/filter/component/filterDatePicker/FilterDatePicker.tsx index a5915228c..b3c8b792c 100644 --- a/packages/sdk/src/components/filter/component/filterDatePicker/FilterDatePicker.tsx +++ b/packages/sdk/src/components/filter/component/filterDatePicker/FilterDatePicker.tsx @@ -1,6 +1,6 @@ -import type { IDateTimeFieldOperator, IDateFilter, ITimeZoneString } from '@teable-group/core'; -import { exactDate, FieldType, getValidFilterSubOperators } from '@teable-group/core'; -import { Input } from '@teable-group/ui-lib'; +import type { IDateTimeFieldOperator, IDateFilter, ITimeZoneString } from '@teable/core'; +import { exactDate, FieldType, getValidFilterSubOperators } from '@teable/core'; +import { Input } from '@teable/ui-lib'; import { useCallback, useEffect, useMemo, useState } from 'react'; import type { DateField } from '../../../../model'; import { BaseSingleSelect } from '../base'; diff --git a/packages/sdk/src/components/filter/component/filterDatePicker/constant.ts b/packages/sdk/src/components/filter/component/filterDatePicker/constant.ts index 96e4c5f27..95a1e7467 100644 --- a/packages/sdk/src/components/filter/component/filterDatePicker/constant.ts +++ b/packages/sdk/src/components/filter/component/filterDatePicker/constant.ts @@ -1,15 +1,9 @@ -import { - daysAgo, - daysFromNow, - exactDate, - nextNumberOfDays, - pastNumberOfDays, -} from '@teable-group/core'; +import { daysAgo, daysFromNow, exactDate, nextNumberOfDays, pastNumberOfDays } from '@teable/core'; import type { IDateTimeFieldSubOperator, IDateTimeFieldSubOperatorByIsWithin, ITimeZoneString, -} from '@teable-group/core'; +} from '@teable/core'; const defaultMapping: Record< IDateTimeFieldSubOperator | IDateTimeFieldSubOperatorByIsWithin, diff --git a/packages/sdk/src/components/filter/condition/Condition.tsx b/packages/sdk/src/components/filter/condition/Condition.tsx index 830004ab9..2e685e4da 100644 --- a/packages/sdk/src/components/filter/condition/Condition.tsx +++ b/packages/sdk/src/components/filter/condition/Condition.tsx @@ -1,7 +1,7 @@ -import type { IFilterItem } from '@teable-group/core'; +import type { IFilterItem } from '@teable/core'; -import { Trash2 } from '@teable-group/icons'; -import { Button } from '@teable-group/ui-lib'; +import { Trash2 } from '@teable/icons'; +import { Button } from '@teable/ui-lib'; import { isEqual } from 'lodash'; import { useContext, useMemo } from 'react'; diff --git a/packages/sdk/src/components/filter/condition/ConditionGroup.tsx b/packages/sdk/src/components/filter/condition/ConditionGroup.tsx index d4a588494..2f29cd95e 100644 --- a/packages/sdk/src/components/filter/condition/ConditionGroup.tsx +++ b/packages/sdk/src/components/filter/condition/ConditionGroup.tsx @@ -1,4 +1,4 @@ -import { Trash2, Plus } from '@teable-group/icons'; +import { Trash2, Plus } from '@teable/icons'; import { Button, DropdownMenu, @@ -9,7 +9,7 @@ import { TooltipContent, TooltipProvider, TooltipTrigger, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import classNames from 'classnames'; import { useContext } from 'react'; diff --git a/packages/sdk/src/components/filter/condition/Conjunction.tsx b/packages/sdk/src/components/filter/condition/Conjunction.tsx index d1c0f7c76..6a74387ef 100644 --- a/packages/sdk/src/components/filter/condition/Conjunction.tsx +++ b/packages/sdk/src/components/filter/condition/Conjunction.tsx @@ -1,4 +1,4 @@ -import type { IConjunction } from '@teable-group/core'; +import type { IConjunction } from '@teable/core'; import { ConjunctionSelect } from './ConjunctionSelect'; interface IConjunctionProps { diff --git a/packages/sdk/src/components/filter/condition/ConjunctionSelect.tsx b/packages/sdk/src/components/filter/condition/ConjunctionSelect.tsx index 795cfed1f..a03751093 100644 --- a/packages/sdk/src/components/filter/condition/ConjunctionSelect.tsx +++ b/packages/sdk/src/components/filter/condition/ConjunctionSelect.tsx @@ -1,4 +1,4 @@ -import type { IConjunction } from '@teable-group/core'; +import type { IConjunction } from '@teable/core'; import { BaseSingleSelect } from '../component'; diff --git a/packages/sdk/src/components/filter/condition/FieldValue.tsx b/packages/sdk/src/components/filter/condition/FieldValue.tsx index b7ae0a8d7..37bd2b73c 100644 --- a/packages/sdk/src/components/filter/condition/FieldValue.tsx +++ b/packages/sdk/src/components/filter/condition/FieldValue.tsx @@ -1,7 +1,7 @@ -import type { IDateFilter, IFilterItem } from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; +import type { IDateFilter, IFilterItem } from '@teable/core'; +import { FieldType } from '@teable/core'; -import { Input } from '@teable-group/ui-lib'; +import { Input } from '@teable/ui-lib'; import { useCallback, useMemo } from 'react'; import { useField } from '../../../hooks'; diff --git a/packages/sdk/src/components/filter/condition/OperatorSelect.tsx b/packages/sdk/src/components/filter/condition/OperatorSelect.tsx index b2ea4446f..a108d1ae3 100644 --- a/packages/sdk/src/components/filter/condition/OperatorSelect.tsx +++ b/packages/sdk/src/components/filter/condition/OperatorSelect.tsx @@ -1,5 +1,5 @@ -import type { IFilterOperator } from '@teable-group/core'; -import { getValidFilterOperators } from '@teable-group/core'; +import type { IFilterOperator } from '@teable/core'; +import { getValidFilterOperators } from '@teable/core'; import { useEffect, useMemo } from 'react'; import { useField } from '../../../hooks'; import { BaseSingleSelect } from '../component'; diff --git a/packages/sdk/src/components/filter/context.tsx b/packages/sdk/src/components/filter/context.tsx index 88c4cc8f0..22ee793bb 100644 --- a/packages/sdk/src/components/filter/context.tsx +++ b/packages/sdk/src/components/filter/context.tsx @@ -1,4 +1,4 @@ -import type { IFilterItem } from '@teable-group/core'; +import type { IFilterItem } from '@teable/core'; import React from 'react'; import type { IFilterProps, IFiltersPath, ConditionAddType } from './types'; diff --git a/packages/sdk/src/components/filter/types/typeguard.ts b/packages/sdk/src/components/filter/types/typeguard.ts index 2f28236f3..facd717f2 100644 --- a/packages/sdk/src/components/filter/types/typeguard.ts +++ b/packages/sdk/src/components/filter/types/typeguard.ts @@ -1,4 +1,4 @@ -import type { IFilterItem, IFilterSet } from '@teable-group/core'; +import type { IFilterItem, IFilterSet } from '@teable/core'; function isFilterItem(item: unknown): item is IFilterItem { return !Array.isArray((item as IFilterSet)?.filterSet); diff --git a/packages/sdk/src/components/filter/types/types.ts b/packages/sdk/src/components/filter/types/types.ts index a48e0c2c5..c8ca0982f 100644 --- a/packages/sdk/src/components/filter/types/types.ts +++ b/packages/sdk/src/components/filter/types/types.ts @@ -1,4 +1,4 @@ -import type { IFilter, IFilterItem, IFilterSet, IConjunction } from '@teable-group/core'; +import type { IFilter, IFilterItem, IFilterSet, IConjunction } from '@teable/core'; import type { IFieldInstance } from '../../../model'; enum ConditionAddType { diff --git a/packages/sdk/src/components/filter/useFilterNode.ts b/packages/sdk/src/components/filter/useFilterNode.ts index 0a71d1103..24408ea0b 100644 --- a/packages/sdk/src/components/filter/useFilterNode.ts +++ b/packages/sdk/src/components/filter/useFilterNode.ts @@ -1,4 +1,4 @@ -import { Filter as FilterIcon } from '@teable-group/icons'; +import { Filter as FilterIcon } from '@teable/icons'; import { keyBy } from 'lodash'; import { useMemo } from 'react'; import { useFields } from '../../hooks'; diff --git a/packages/sdk/src/components/filter/utils.ts b/packages/sdk/src/components/filter/utils.ts index a46e2941b..5c3088efa 100644 --- a/packages/sdk/src/components/filter/utils.ts +++ b/packages/sdk/src/components/filter/utils.ts @@ -1,5 +1,5 @@ -import type { IFilter } from '@teable-group/core'; -import { FieldType } from '@teable-group/core'; +import type { IFilter } from '@teable/core'; +import { FieldType } from '@teable/core'; import { cloneDeep } from 'lodash'; import type { IFieldInstance } from '../../model'; import { operatorLabelMapping, fieldNumberLabelMap, EMPTYOPERATORS } from './constant'; diff --git a/packages/sdk/src/components/grid-enhancements/components/grid-tooltip/GridTooltip.tsx b/packages/sdk/src/components/grid-enhancements/components/grid-tooltip/GridTooltip.tsx index 5ded30dca..0c44e1689 100644 --- a/packages/sdk/src/components/grid-enhancements/components/grid-tooltip/GridTooltip.tsx +++ b/packages/sdk/src/components/grid-enhancements/components/grid-tooltip/GridTooltip.tsx @@ -1,4 +1,4 @@ -import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@teable-group/ui-lib'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@teable/ui-lib'; import classNames from 'classnames'; import type { FC } from 'react'; import { useGridTooltipStore } from './grid-tooltip'; diff --git a/packages/sdk/src/components/grid-enhancements/components/row-counter/RowCounter.tsx b/packages/sdk/src/components/grid-enhancements/components/row-counter/RowCounter.tsx index c4d0744c1..776a63b68 100644 --- a/packages/sdk/src/components/grid-enhancements/components/row-counter/RowCounter.tsx +++ b/packages/sdk/src/components/grid-enhancements/components/row-counter/RowCounter.tsx @@ -1,5 +1,5 @@ -import { ChevronLeft, ChevronRight } from '@teable-group/icons'; -import { Button, cn } from '@teable-group/ui-lib'; +import { ChevronLeft, ChevronRight } from '@teable/icons'; +import { Button, cn } from '@teable/ui-lib'; import { useState } from 'react'; interface IRowCounterProps { diff --git a/packages/sdk/src/components/grid-enhancements/editor/GridAttachmentEditor.tsx b/packages/sdk/src/components/grid-enhancements/editor/GridAttachmentEditor.tsx index 5e355c9d9..6c909fb6f 100644 --- a/packages/sdk/src/components/grid-enhancements/editor/GridAttachmentEditor.tsx +++ b/packages/sdk/src/components/grid-enhancements/editor/GridAttachmentEditor.tsx @@ -1,11 +1,6 @@ -import type { IAttachmentCellValue } from '@teable-group/core'; -import type { IFilePreviewDialogRef } from '@teable-group/ui-lib'; -import { - Dialog, - DialogContent, - FilePreviewDialog, - FilePreviewProvider, -} from '@teable-group/ui-lib'; +import type { IAttachmentCellValue } from '@teable/core'; +import type { IFilePreviewDialogRef } from '@teable/ui-lib'; +import { Dialog, DialogContent, FilePreviewDialog, FilePreviewProvider } from '@teable/ui-lib'; import { forwardRef, useImperativeHandle, useMemo, useRef } from 'react'; import { AttachmentEditorMain } from '../../editor'; import type { IEditorProps } from '../../grid/components'; diff --git a/packages/sdk/src/components/grid-enhancements/editor/GridDateEditor.tsx b/packages/sdk/src/components/grid-enhancements/editor/GridDateEditor.tsx index 3ff035120..88d94ae14 100644 --- a/packages/sdk/src/components/grid-enhancements/editor/GridDateEditor.tsx +++ b/packages/sdk/src/components/grid-enhancements/editor/GridDateEditor.tsx @@ -1,5 +1,5 @@ -import type { IDateFieldOptions } from '@teable-group/core'; -import { TimeFormatting } from '@teable-group/core'; +import type { IDateFieldOptions } from '@teable/core'; +import { TimeFormatting } from '@teable/core'; import type { ForwardRefRenderFunction } from 'react'; import { forwardRef, useCallback, useImperativeHandle, useRef } from 'react'; import { DateEditorMain } from '../../editor'; diff --git a/packages/sdk/src/components/grid-enhancements/editor/GridLinkEditor.tsx b/packages/sdk/src/components/grid-enhancements/editor/GridLinkEditor.tsx index 978e5f39c..0ad791886 100644 --- a/packages/sdk/src/components/grid-enhancements/editor/GridLinkEditor.tsx +++ b/packages/sdk/src/components/grid-enhancements/editor/GridLinkEditor.tsx @@ -1,5 +1,5 @@ -import type { ILinkCellValue } from '@teable-group/core'; -import { Dialog, DialogContent } from '@teable-group/ui-lib'; +import type { ILinkCellValue } from '@teable/core'; +import { Dialog, DialogContent } from '@teable/ui-lib'; import { useRef, type FC, useState, useMemo } from 'react'; import { type LinkField } from '../../../model'; import type { ILinkEditorMainRef } from '../../editor'; diff --git a/packages/sdk/src/components/grid-enhancements/editor/GridNumberEditor.tsx b/packages/sdk/src/components/grid-enhancements/editor/GridNumberEditor.tsx index 7fe04a38e..02be4edcb 100644 --- a/packages/sdk/src/components/grid-enhancements/editor/GridNumberEditor.tsx +++ b/packages/sdk/src/components/grid-enhancements/editor/GridNumberEditor.tsx @@ -1,4 +1,4 @@ -import type { INumberFieldOptions } from '@teable-group/core'; +import type { INumberFieldOptions } from '@teable/core'; import type { ForwardRefRenderFunction } from 'react'; import { forwardRef, useImperativeHandle, useMemo, useRef } from 'react'; import { NumberEditor } from '../../editor'; diff --git a/packages/sdk/src/components/grid-enhancements/editor/GridSelectEditor.tsx b/packages/sdk/src/components/grid-enhancements/editor/GridSelectEditor.tsx index 38281c0ad..4e853fe8b 100644 --- a/packages/sdk/src/components/grid-enhancements/editor/GridSelectEditor.tsx +++ b/packages/sdk/src/components/grid-enhancements/editor/GridSelectEditor.tsx @@ -3,8 +3,8 @@ import type { ISingleSelectCellValue, IMultipleSelectCellValue, ISelectFieldChoice, -} from '@teable-group/core'; -import { FieldType, ColorUtils } from '@teable-group/core'; +} from '@teable/core'; +import { FieldType, ColorUtils } from '@teable/core'; import type { ForwardRefRenderFunction } from 'react'; import { forwardRef, useCallback, useImperativeHandle, useMemo, useRef } from 'react'; import { useTableId } from '../../../hooks'; diff --git a/packages/sdk/src/components/grid-enhancements/editor/GridUserEditor.tsx b/packages/sdk/src/components/grid-enhancements/editor/GridUserEditor.tsx index 5906e58a3..d6691e84c 100644 --- a/packages/sdk/src/components/grid-enhancements/editor/GridUserEditor.tsx +++ b/packages/sdk/src/components/grid-enhancements/editor/GridUserEditor.tsx @@ -1,4 +1,4 @@ -import type { IUserCellValue } from '@teable-group/core'; +import type { IUserCellValue } from '@teable/core'; import type { UserField } from '../../../model'; import { UserEditorMain } from '../../editor/user'; import type { IEditorProps } from '../../grid'; diff --git a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-async-records.ts b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-async-records.ts index 34877ac77..54794f5d0 100644 --- a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-async-records.ts +++ b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-async-records.ts @@ -1,4 +1,4 @@ -import type { IRecord, IGetRecordsRo } from '@teable-group/core'; +import type { IRecord, IGetRecordsRo } from '@teable/core'; import { inRange, debounce } from 'lodash'; import { useCallback, useEffect, useRef, useState, useMemo } from 'react'; import type { IGridProps, IRectangle } from '../..'; diff --git a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-collapsed-group.ts b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-collapsed-group.ts index 6a4bfb3b8..595b95534 100644 --- a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-collapsed-group.ts +++ b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-collapsed-group.ts @@ -1,12 +1,4 @@ -import { - is, - and, - isNot, - hasNoneOf, - isNotEmpty, - FieldType, - GroupPointType, -} from '@teable-group/core'; +import { is, and, isNot, hasNoneOf, isNotEmpty, FieldType, GroupPointType } from '@teable/core'; import type { IFilter, IGetRecordsRo, @@ -15,7 +7,7 @@ import type { ILinkCellValue, IOperator, IUserCellValue, -} from '@teable-group/core'; +} from '@teable/core'; import { useCallback, useMemo } from 'react'; import { useFields, useView, useViewId } from '../../../hooks'; import type { GridView, IFieldInstance } from '../../../model'; diff --git a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-column-statistics.ts b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-column-statistics.ts index 48d99225f..aa1303e79 100644 --- a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-column-statistics.ts +++ b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-column-statistics.ts @@ -1,5 +1,5 @@ -import type { IAggregationVo } from '@teable-group/core'; -import { statisticFunc2NameMap } from '@teable-group/core'; +import type { IAggregationVo } from '@teable/core'; +import { statisticFunc2NameMap } from '@teable/core'; import { isEmpty, keyBy } from 'lodash'; import { useEffect, useRef, useState } from 'react'; import type { IColumnStatistics, IGridColumn } from '../..'; diff --git a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx index 996574db2..79234396c 100644 --- a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx +++ b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx @@ -1,9 +1,5 @@ -import type { - INumberShowAs, - ISingleLineTextShowAs, - IAttachmentCellValue, -} from '@teable-group/core'; -import { CellValueType, ColorUtils, FieldType } from '@teable-group/core'; +import type { INumberShowAs, ISingleLineTextShowAs, IAttachmentCellValue } from '@teable/core'; +import { CellValueType, ColorUtils, FieldType } from '@teable/core'; import { keyBy } from 'lodash'; import { LRUCache } from 'lru-cache'; import { useMemo } from 'react'; diff --git a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-group-collection.ts b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-group-collection.ts index 582b25ae1..e19d2be7e 100644 --- a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-group-collection.ts +++ b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-group-collection.ts @@ -1,9 +1,5 @@ -import type { - IAttachmentCellValue, - INumberShowAs, - ISingleLineTextShowAs, -} from '@teable-group/core'; -import { CellValueType, ColorUtils, FieldType } from '@teable-group/core'; +import type { IAttachmentCellValue, INumberShowAs, ISingleLineTextShowAs } from '@teable/core'; +import { CellValueType, ColorUtils, FieldType } from '@teable/core'; import { LRUCache } from 'lru-cache'; import { useMemo } from 'react'; import { useFields, useView } from '../../../hooks'; diff --git a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-icons.ts b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-icons.ts index 692cad42a..08f520bb7 100644 --- a/packages/sdk/src/components/grid-enhancements/hooks/use-grid-icons.ts +++ b/packages/sdk/src/components/grid-enhancements/hooks/use-grid-icons.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import type { RatingIcon } from '@teable-group/core'; -import { Check, DraggableHandle, Maximize2 } from '@teable-group/icons'; +import type { RatingIcon } from '@teable/core'; +import { Check, DraggableHandle, Maximize2 } from '@teable/icons'; import { useMemo } from 'react'; import { useFieldStaticGetter } from '../../../hooks/use-field-static-getter'; import { FIELD_TYPE_ORDER, getSpriteMap } from '../../../utils'; diff --git a/packages/sdk/src/components/grid/components/editor/SelectEditor.tsx b/packages/sdk/src/components/grid/components/editor/SelectEditor.tsx index 5d02a26b3..8c67be012 100644 --- a/packages/sdk/src/components/grid/components/editor/SelectEditor.tsx +++ b/packages/sdk/src/components/grid/components/editor/SelectEditor.tsx @@ -1,4 +1,4 @@ -import { Check } from '@teable-group/icons'; +import { Check } from '@teable/icons'; import { Command, CommandEmpty, @@ -6,7 +6,7 @@ import { CommandInput, CommandItem, CommandList, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import { noop } from 'lodash'; import { forwardRef, useImperativeHandle, useRef, useState } from 'react'; import type { ForwardRefRenderFunction } from 'react'; diff --git a/packages/sdk/src/components/grid/components/editor/TextEditor.tsx b/packages/sdk/src/components/grid/components/editor/TextEditor.tsx index 0c8aac7d7..50242d056 100644 --- a/packages/sdk/src/components/grid/components/editor/TextEditor.tsx +++ b/packages/sdk/src/components/grid/components/editor/TextEditor.tsx @@ -1,4 +1,4 @@ -import { Input, Textarea } from '@teable-group/ui-lib'; +import { Input, Textarea } from '@teable/ui-lib'; import type { ChangeEvent, ForwardRefRenderFunction, KeyboardEvent, RefObject } from 'react'; import { useState, useRef, useImperativeHandle, forwardRef, useMemo } from 'react'; import { Key } from 'ts-keycode-enum'; diff --git a/packages/sdk/src/components/grid/managers/sprite-manager/sprites.tsx b/packages/sdk/src/components/grid/managers/sprite-manager/sprites.tsx index 14063a38e..d57b84765 100644 --- a/packages/sdk/src/components/grid/managers/sprite-manager/sprites.tsx +++ b/packages/sdk/src/components/grid/managers/sprite-manager/sprites.tsx @@ -7,7 +7,7 @@ import { ChevronDown, ChevronRight, Lock, -} from '@teable-group/icons'; +} from '@teable/icons'; import { renderToString } from 'react-dom/server'; export interface ISpriteProps { diff --git a/packages/sdk/src/components/grid/renderers/layout-renderer/layoutRenderer.ts b/packages/sdk/src/components/grid/renderers/layout-renderer/layoutRenderer.ts index 886715bcc..86133fa3b 100644 --- a/packages/sdk/src/components/grid/renderers/layout-renderer/layoutRenderer.ts +++ b/packages/sdk/src/components/grid/renderers/layout-renderer/layoutRenderer.ts @@ -1,4 +1,4 @@ -import { contractColorForTheme } from '@teable-group/core'; +import { contractColorForTheme } from '@teable/core'; import { isEqual, groupBy } from 'lodash'; import { GRID_DEFAULT, ROW_RELATED_REGIONS } from '../../configs'; import { getDropTargetIndex } from '../../hooks'; diff --git a/packages/sdk/src/components/group/Group.tsx b/packages/sdk/src/components/group/Group.tsx index ba74c7137..70e200d6f 100644 --- a/packages/sdk/src/components/group/Group.tsx +++ b/packages/sdk/src/components/group/Group.tsx @@ -1,6 +1,6 @@ -import type { IGroup } from '@teable-group/core'; -import { LayoutList } from '@teable-group/icons'; -import { Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib'; +import type { IGroup } from '@teable/core'; +import { LayoutList } from '@teable/icons'; +import { Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib'; import React, { useMemo, useState } from 'react'; import { useTranslation } from '../../context/app/i18n'; import { SortContent } from '../sort/SortContent'; diff --git a/packages/sdk/src/components/hide-fields/HideFieldsBase.tsx b/packages/sdk/src/components/hide-fields/HideFieldsBase.tsx index 85d58380f..30fe2f0d3 100644 --- a/packages/sdk/src/components/hide-fields/HideFieldsBase.tsx +++ b/packages/sdk/src/components/hide-fields/HideFieldsBase.tsx @@ -1,4 +1,4 @@ -import { DraggableHandle } from '@teable-group/icons'; +import { DraggableHandle } from '@teable/icons'; import { Switch, Label, @@ -15,13 +15,13 @@ import { TooltipContent, TooltipProvider, TooltipTrigger, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import { DndKitContext, Droppable, Draggable, type DragEndEvent, -} from '@teable-group/ui-lib/src/base/dnd-kit'; +} from '@teable/ui-lib/src/base/dnd-kit'; import { map } from 'lodash'; import React, { useEffect, useMemo, useState, useCallback } from 'react'; import { useTranslation } from '../../context/app/i18n'; diff --git a/packages/sdk/src/components/row-height/RowHeight.tsx b/packages/sdk/src/components/row-height/RowHeight.tsx index 8d357e064..2259ba22f 100644 --- a/packages/sdk/src/components/row-height/RowHeight.tsx +++ b/packages/sdk/src/components/row-height/RowHeight.tsx @@ -1,4 +1,4 @@ -import type { RowHeightLevel } from '@teable-group/core'; +import type { RowHeightLevel } from '@teable/core'; import React from 'react'; import { RowHeightBase } from './RowHeightBase'; import { useRowHeightNode } from './useRowHeightNode'; diff --git a/packages/sdk/src/components/row-height/RowHeightBase.tsx b/packages/sdk/src/components/row-height/RowHeightBase.tsx index 6cc57fb28..b25d83dfe 100644 --- a/packages/sdk/src/components/row-height/RowHeightBase.tsx +++ b/packages/sdk/src/components/row-height/RowHeightBase.tsx @@ -1,11 +1,11 @@ -import { RowHeightLevel } from '@teable-group/core'; -import { DivideSquare, Menu, Square, StretchHorizontal } from '@teable-group/icons'; +import { RowHeightLevel } from '@teable/core'; +import { DivideSquare, Menu, Square, StretchHorizontal } from '@teable/icons'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import React from 'react'; // eslint-disable-next-line @typescript-eslint/naming-convention diff --git a/packages/sdk/src/components/row-height/useRowHeightNode.ts b/packages/sdk/src/components/row-height/useRowHeightNode.ts index efefe799d..5d4f6120b 100644 --- a/packages/sdk/src/components/row-height/useRowHeightNode.ts +++ b/packages/sdk/src/components/row-height/useRowHeightNode.ts @@ -1,5 +1,5 @@ -import { RowHeightLevel } from '@teable-group/core'; -import { Menu } from '@teable-group/icons'; +import { RowHeightLevel } from '@teable/core'; +import { Menu } from '@teable/icons'; import { useMemo } from 'react'; import { ROW_HEIGHT_MENU_ITEMS } from './RowHeightBase'; diff --git a/packages/sdk/src/components/sort/DraggableSortList.tsx b/packages/sdk/src/components/sort/DraggableSortList.tsx index 7353d50c2..f9de65947 100644 --- a/packages/sdk/src/components/sort/DraggableSortList.tsx +++ b/packages/sdk/src/components/sort/DraggableSortList.tsx @@ -1,12 +1,12 @@ -import type { ISort, ISortItem } from '@teable-group/core'; -import { DraggableHandle, Trash2 } from '@teable-group/icons'; -import { Button } from '@teable-group/ui-lib'; +import type { ISort, ISortItem } from '@teable/core'; +import { DraggableHandle, Trash2 } from '@teable/icons'; +import { Button } from '@teable/ui-lib'; import type { DraggableAttributes, SyntheticListenerMap, DragEndEvent, -} from '@teable-group/ui-lib/src/base/dnd-kit'; -import { DndKitContext, Droppable, Draggable } from '@teable-group/ui-lib/src/base/dnd-kit'; +} from '@teable/ui-lib/src/base/dnd-kit'; +import { DndKitContext, Droppable, Draggable } from '@teable/ui-lib/src/base/dnd-kit'; import classNames from 'classnames'; import { useIsHydrated } from '../../hooks'; import { SortItem } from './SortItem'; diff --git a/packages/sdk/src/components/sort/OrderSelect.tsx b/packages/sdk/src/components/sort/OrderSelect.tsx index 5a59bcac7..c3ebf17e7 100644 --- a/packages/sdk/src/components/sort/OrderSelect.tsx +++ b/packages/sdk/src/components/sort/OrderSelect.tsx @@ -1,5 +1,5 @@ -import type { FieldCore, SortFunc } from '@teable-group/core'; -import { Checked, Square } from '@teable-group/icons'; +import type { FieldCore, SortFunc } from '@teable/core'; +import { Checked, Square } from '@teable/icons'; import { Select, SelectTrigger, @@ -7,7 +7,7 @@ import { SelectGroup, SelectContent, SelectItem, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import { useMemo } from 'react'; import { useTranslation } from '../../context/app/i18n'; import { useFields } from '../../hooks'; diff --git a/packages/sdk/src/components/sort/Sort.tsx b/packages/sdk/src/components/sort/Sort.tsx index 49e962bf8..aad3158c0 100644 --- a/packages/sdk/src/components/sort/Sort.tsx +++ b/packages/sdk/src/components/sort/Sort.tsx @@ -1,5 +1,5 @@ import { useMutation } from '@tanstack/react-query'; -import type { ISort, IManualSortRo } from '@teable-group/core'; +import type { ISort, IManualSortRo } from '@teable/core'; import { isEqual } from 'lodash'; import React, { useEffect, useRef, useState } from 'react'; import { useDebounce } from 'react-use'; diff --git a/packages/sdk/src/components/sort/SortBase.tsx b/packages/sdk/src/components/sort/SortBase.tsx index fb5056a66..a8846bee9 100644 --- a/packages/sdk/src/components/sort/SortBase.tsx +++ b/packages/sdk/src/components/sort/SortBase.tsx @@ -1,5 +1,5 @@ -import type { ISort } from '@teable-group/core'; -import { Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib'; +import type { ISort } from '@teable/core'; +import { Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib'; import React, { forwardRef, useImperativeHandle, useState } from 'react'; import { useTranslation } from '../../context/app/i18n'; import { SortConfig } from './SortConfig'; diff --git a/packages/sdk/src/components/sort/SortConfig.tsx b/packages/sdk/src/components/sort/SortConfig.tsx index 482d071bf..2151aa64a 100644 --- a/packages/sdk/src/components/sort/SortConfig.tsx +++ b/packages/sdk/src/components/sort/SortConfig.tsx @@ -1,4 +1,4 @@ -import { Button, Label, Spin, Switch } from '@teable-group/ui-lib'; +import { Button, Label, Spin, Switch } from '@teable/ui-lib'; interface ISortConfigProps { value?: boolean; diff --git a/packages/sdk/src/components/sort/SortContent.tsx b/packages/sdk/src/components/sort/SortContent.tsx index d7c2ca296..be493d396 100644 --- a/packages/sdk/src/components/sort/SortContent.tsx +++ b/packages/sdk/src/components/sort/SortContent.tsx @@ -1,5 +1,5 @@ -import type { ISort } from '@teable-group/core'; -import { SortFunc } from '@teable-group/core'; +import type { ISort } from '@teable/core'; +import { SortFunc } from '@teable/core'; import { useMemo } from 'react'; import { DraggableSortList } from './DraggableSortList'; import { SortFieldAddButton } from './SortFieldAddButton'; diff --git a/packages/sdk/src/components/sort/SortFieldAddButton.tsx b/packages/sdk/src/components/sort/SortFieldAddButton.tsx index bda71354b..af7a116d6 100644 --- a/packages/sdk/src/components/sort/SortFieldAddButton.tsx +++ b/packages/sdk/src/components/sort/SortFieldAddButton.tsx @@ -1,5 +1,5 @@ -import { Plus } from '@teable-group/icons'; -import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable-group/ui-lib'; +import { Plus } from '@teable/icons'; +import { Button, Popover, PopoverContent, PopoverTrigger } from '@teable/ui-lib'; import classNames from 'classnames'; import { useState } from 'react'; import { useTranslation } from '../../context/app/i18n'; diff --git a/packages/sdk/src/components/sort/SortFieldCommand.tsx b/packages/sdk/src/components/sort/SortFieldCommand.tsx index e74f4e208..40ebc4f86 100644 --- a/packages/sdk/src/components/sort/SortFieldCommand.tsx +++ b/packages/sdk/src/components/sort/SortFieldCommand.tsx @@ -5,7 +5,7 @@ import { CommandInput, CommandItem, CommandList, -} from '@teable-group/ui-lib'; +} from '@teable/ui-lib'; import { useMemo } from 'react'; import { useTranslation } from '../../context/app/i18n'; import { useFields, useFieldStaticGetter } from '../../hooks'; diff --git a/packages/sdk/src/components/sort/SortFieldSelect.tsx b/packages/sdk/src/components/sort/SortFieldSelect.tsx index 7a2f9c56b..49f4cc4f6 100644 --- a/packages/sdk/src/components/sort/SortFieldSelect.tsx +++ b/packages/sdk/src/components/sort/SortFieldSelect.tsx @@ -1,4 +1,4 @@ -import { Button, Popover, PopoverTrigger, PopoverContent } from '@teable-group/ui-lib'; +import { Button, Popover, PopoverTrigger, PopoverContent } from '@teable/ui-lib'; import { ChevronsUpDown } from 'lucide-react'; import { useState, useMemo } from 'react'; import { useFields } from '../../hooks'; diff --git a/packages/sdk/src/components/sort/SortItem.tsx b/packages/sdk/src/components/sort/SortItem.tsx index de65401df..d46af6a06 100644 --- a/packages/sdk/src/components/sort/SortItem.tsx +++ b/packages/sdk/src/components/sort/SortItem.tsx @@ -1,4 +1,4 @@ -import type { ISortItem } from '@teable-group/core'; +import type { ISortItem } from '@teable/core'; import { OrderSelect } from './OrderSelect'; import { SortFieldSelect } from './SortFieldSelect'; diff --git a/packages/sdk/src/components/sort/useSortNode.ts b/packages/sdk/src/components/sort/useSortNode.ts index 9b3452e1c..72704cb71 100644 --- a/packages/sdk/src/components/sort/useSortNode.ts +++ b/packages/sdk/src/components/sort/useSortNode.ts @@ -1,5 +1,5 @@ -import type { ISort } from '@teable-group/core'; -import { ArrowUpDown } from '@teable-group/icons'; +import type { ISort } from '@teable/core'; +import { ArrowUpDown } from '@teable/icons'; import { useMemo } from 'react'; export const useSortNode = (value?: ISort | null) => { diff --git a/packages/sdk/src/config/react-query-keys.ts b/packages/sdk/src/config/react-query-keys.ts index 5df59559a..4419ca965 100644 --- a/packages/sdk/src/config/react-query-keys.ts +++ b/packages/sdk/src/config/react-query-keys.ts @@ -6,8 +6,8 @@ import type { IQueryBaseRo, IConvertFieldRo, NotificationStatesEnum, -} from '@teable-group/core'; -import type { IShareViewRowCountRo, IShareViewAggregationsRo } from '@teable-group/openapi'; +} from '@teable/core'; +import type { IShareViewRowCountRo, IShareViewAggregationsRo } from '@teable/openapi'; export const ReactQueryKeys = { spaceCollaboratorList: (spaceId: string) => ['space-collaborator-list', spaceId] as const, diff --git a/packages/sdk/src/context/__tests__/createAppContext.tsx b/packages/sdk/src/context/__tests__/createAppContext.tsx index 9753ea7c3..6a8873589 100644 --- a/packages/sdk/src/context/__tests__/createAppContext.tsx +++ b/packages/sdk/src/context/__tests__/createAppContext.tsx @@ -1,4 +1,4 @@ -import type { DriverClient } from '@teable-group/core'; +import type { DriverClient } from '@teable/core'; import { noop } from 'lodash'; import type { IAppContext } from '../app/AppContext'; import { AppContext, ThemeKey } from '../app/AppContext'; diff --git a/packages/sdk/src/context/action-trigger/ActionTriggerContext.ts b/packages/sdk/src/context/action-trigger/ActionTriggerContext.ts index e8acfde1c..887a2e6fb 100644 --- a/packages/sdk/src/context/action-trigger/ActionTriggerContext.ts +++ b/packages/sdk/src/context/action-trigger/ActionTriggerContext.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import type { IActionTriggerBuffer } from '@teable-group/core'; +import type { IActionTriggerBuffer } from '@teable/core'; import React from 'react'; export type PropKeys = keyof IActionTriggerBuffer; diff --git a/packages/sdk/src/context/action-trigger/ActionTriggerProvider.tsx b/packages/sdk/src/context/action-trigger/ActionTriggerProvider.tsx index 137e7f93c..fa05270b5 100644 --- a/packages/sdk/src/context/action-trigger/ActionTriggerProvider.tsx +++ b/packages/sdk/src/context/action-trigger/ActionTriggerProvider.tsx @@ -1,5 +1,5 @@ -import type { IActionTriggerBuffer } from '@teable-group/core'; -import { getActionTriggerChannel } from '@teable-group/core'; +import type { IActionTriggerBuffer } from '@teable/core'; +import { getActionTriggerChannel } from '@teable/core'; import type { FC, ReactNode } from 'react'; import { useCallback, useContext, useEffect, useMemo, useState } from 'react'; import type { Presence } from 'sharedb/lib/client'; diff --git a/packages/sdk/src/context/aggregation/AggregationContext.ts b/packages/sdk/src/context/aggregation/AggregationContext.ts index 601cb8113..93a641f51 100644 --- a/packages/sdk/src/context/aggregation/AggregationContext.ts +++ b/packages/sdk/src/context/aggregation/AggregationContext.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import type { IAggregationVo } from '@teable-group/core'; +import type { IAggregationVo } from '@teable/core'; import React from 'react'; export const AggregationContext = React.createContext(null); diff --git a/packages/sdk/src/context/aggregation/AggregationProvider.tsx b/packages/sdk/src/context/aggregation/AggregationProvider.tsx index 425747a9b..d4a35f497 100644 --- a/packages/sdk/src/context/aggregation/AggregationProvider.tsx +++ b/packages/sdk/src/context/aggregation/AggregationProvider.tsx @@ -1,6 +1,6 @@ import { useQuery, useQueryClient } from '@tanstack/react-query'; -import type { IActionTriggerBuffer } from '@teable-group/core'; -import { getAggregation } from '@teable-group/openapi'; +import type { IActionTriggerBuffer } from '@teable/core'; +import { getAggregation } from '@teable/openapi'; import type { FC, ReactNode } from 'react'; import { useCallback, useContext, useEffect, useMemo } from 'react'; import { ReactQueryKeys } from '../../config'; diff --git a/packages/sdk/src/context/aggregation/GroupPointContext.ts b/packages/sdk/src/context/aggregation/GroupPointContext.ts index 9296d4cc4..94c345556 100644 --- a/packages/sdk/src/context/aggregation/GroupPointContext.ts +++ b/packages/sdk/src/context/aggregation/GroupPointContext.ts @@ -1,4 +1,4 @@ -import type { IGroupPointsVo } from '@teable-group/core'; +import type { IGroupPointsVo } from '@teable/core'; import React from 'react'; export const GroupPointContext = React.createContext(null); diff --git a/packages/sdk/src/context/aggregation/GroupPointProvider.tsx b/packages/sdk/src/context/aggregation/GroupPointProvider.tsx index 77bf7659a..c2cdb7c5d 100644 --- a/packages/sdk/src/context/aggregation/GroupPointProvider.tsx +++ b/packages/sdk/src/context/aggregation/GroupPointProvider.tsx @@ -1,5 +1,5 @@ import { useQuery, useQueryClient } from '@tanstack/react-query'; -import { getGroupPoints } from '@teable-group/openapi'; +import { getGroupPoints } from '@teable/openapi'; import type { FC, ReactNode } from 'react'; import { useCallback, useContext, useEffect, useMemo } from 'react'; import { ReactQueryKeys } from '../../config'; diff --git a/packages/sdk/src/context/aggregation/RowCountProvider.tsx b/packages/sdk/src/context/aggregation/RowCountProvider.tsx index bb8c3df1c..cc89067b5 100644 --- a/packages/sdk/src/context/aggregation/RowCountProvider.tsx +++ b/packages/sdk/src/context/aggregation/RowCountProvider.tsx @@ -1,5 +1,5 @@ import { useQuery, useQueryClient } from '@tanstack/react-query'; -import { getRowCount } from '@teable-group/openapi'; +import { getRowCount } from '@teable/openapi'; import type { FC, ReactNode } from 'react'; import { useCallback, useContext, useEffect, useMemo } from 'react'; import { ReactQueryKeys } from '../../config'; diff --git a/packages/sdk/src/context/app/AppContext.ts b/packages/sdk/src/context/app/AppContext.ts index 76f8fc77e..7bd1db185 100644 --- a/packages/sdk/src/context/app/AppContext.ts +++ b/packages/sdk/src/context/app/AppContext.ts @@ -1,4 +1,4 @@ -import type { DriverClient } from '@teable-group/core'; +import type { DriverClient } from '@teable/core'; import React from 'react'; import type { Connection } from 'sharedb/lib/client'; import type { ILocale } from './i18n'; diff --git a/packages/sdk/src/context/app/i18n/const.ts b/packages/sdk/src/context/app/i18n/const.ts index 1a43bb45a..30b09b1a9 100644 --- a/packages/sdk/src/context/app/i18n/const.ts +++ b/packages/sdk/src/context/app/i18n/const.ts @@ -1,2 +1,2 @@ -import defaultLocale from '@teable-group/common-i18n/src/locales/en/sdk.json'; +import defaultLocale from '@teable/common-i18n/src/locales/en/sdk.json'; export { defaultLocale }; diff --git a/packages/sdk/src/context/app/queryClient.tsx b/packages/sdk/src/context/app/queryClient.tsx index ee6e9bbd2..f80d8bfd1 100644 --- a/packages/sdk/src/context/app/queryClient.tsx +++ b/packages/sdk/src/context/app/queryClient.tsx @@ -1,6 +1,6 @@ import { MutationCache, QueryCache, QueryClient } from '@tanstack/react-query'; -import type { IHttpError } from '@teable-group/core'; -import { toast } from '@teable-group/ui-lib'; +import type { IHttpError } from '@teable/core'; +import { toast } from '@teable/ui-lib'; export const errorRequestHandler = (error: unknown) => { const { code, message, status } = error as IHttpError; diff --git a/packages/sdk/src/context/app/useConnection.tsx b/packages/sdk/src/context/app/useConnection.tsx index f0e9d2a34..e32e11d4f 100644 --- a/packages/sdk/src/context/app/useConnection.tsx +++ b/packages/sdk/src/context/app/useConnection.tsx @@ -1,5 +1,5 @@ -import { HttpError, HttpErrorCode } from '@teable-group/core'; -import { toast } from '@teable-group/ui-lib'; +import { HttpError, HttpErrorCode } from '@teable/core'; +import { toast } from '@teable/ui-lib'; import { useEffect, useMemo, useState } from 'react'; import ReconnectingWebSocket from 'reconnecting-websocket'; import { Connection } from 'sharedb/lib/client'; diff --git a/packages/sdk/src/context/base/BaseProvider.tsx b/packages/sdk/src/context/base/BaseProvider.tsx index 24618c9e6..a24e162e1 100644 --- a/packages/sdk/src/context/base/BaseProvider.tsx +++ b/packages/sdk/src/context/base/BaseProvider.tsx @@ -1,6 +1,6 @@ import { useQuery } from '@tanstack/react-query'; -import type { IGetBaseVo } from '@teable-group/openapi'; -import { getBaseById } from '@teable-group/openapi'; +import type { IGetBaseVo } from '@teable/openapi'; +import { getBaseById } from '@teable/openapi'; import type { FC, ReactNode } from 'react'; import { useContext, useMemo } from 'react'; import { Base } from '../../model'; diff --git a/packages/sdk/src/context/field/FieldProvider.tsx b/packages/sdk/src/context/field/FieldProvider.tsx index 404b649ae..b22084c0b 100644 --- a/packages/sdk/src/context/field/FieldProvider.tsx +++ b/packages/sdk/src/context/field/FieldProvider.tsx @@ -1,5 +1,5 @@ -import type { IFieldVo } from '@teable-group/core'; -import { IdPrefix } from '@teable-group/core'; +import type { IFieldVo } from '@teable/core'; +import { IdPrefix } from '@teable/core'; import type { FC, ReactNode } from 'react'; import { useContext, useMemo } from 'react'; import { createFieldInstance } from '../../model'; diff --git a/packages/sdk/src/context/notification/NotificationContext.ts b/packages/sdk/src/context/notification/NotificationContext.ts index b6c0570ca..56758fa20 100644 --- a/packages/sdk/src/context/notification/NotificationContext.ts +++ b/packages/sdk/src/context/notification/NotificationContext.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import type { INotificationBuffer } from '@teable-group/core'; +import type { INotificationBuffer } from '@teable/core'; import React from 'react'; export const NotificationContext = React.createContext(null); diff --git a/packages/sdk/src/context/notification/NotificationProvider.tsx b/packages/sdk/src/context/notification/NotificationProvider.tsx index 5fc9d197d..2b82cf803 100644 --- a/packages/sdk/src/context/notification/NotificationProvider.tsx +++ b/packages/sdk/src/context/notification/NotificationProvider.tsx @@ -1,5 +1,5 @@ -import type { INotificationBuffer } from '@teable-group/core'; -import { getUserNotificationChannel } from '@teable-group/core'; +import type { INotificationBuffer } from '@teable/core'; +import { getUserNotificationChannel } from '@teable/core'; import type { FC, ReactNode } from 'react'; import { useContext, useEffect, useState } from 'react'; import type { Presence } from 'sharedb/lib/client'; diff --git a/packages/sdk/src/context/record/RecordContext.ts b/packages/sdk/src/context/record/RecordContext.ts index 33c60f7fc..336dca842 100644 --- a/packages/sdk/src/context/record/RecordContext.ts +++ b/packages/sdk/src/context/record/RecordContext.ts @@ -1,4 +1,4 @@ -import type { IRecord } from '@teable-group/core'; +import type { IRecord } from '@teable/core'; import React from 'react'; // eslint-disable-next-line @typescript-eslint/naming-convention diff --git a/packages/sdk/src/context/record/RecordProvider.tsx b/packages/sdk/src/context/record/RecordProvider.tsx index ea9434299..54c6deba1 100644 --- a/packages/sdk/src/context/record/RecordProvider.tsx +++ b/packages/sdk/src/context/record/RecordProvider.tsx @@ -1,4 +1,4 @@ -import type { IRecord } from '@teable-group/core'; +import type { IRecord } from '@teable/core'; import type { ReactNode } from 'react'; import { useMemo } from 'react'; import { RecordContext } from './RecordContext'; diff --git a/packages/sdk/src/context/session/SessionContext.ts b/packages/sdk/src/context/session/SessionContext.ts index 2af4d5d38..d5fbf0c68 100644 --- a/packages/sdk/src/context/session/SessionContext.ts +++ b/packages/sdk/src/context/session/SessionContext.ts @@ -1,4 +1,4 @@ -import type { IUserMeVo } from '@teable-group/openapi'; +import type { IUserMeVo } from '@teable/openapi'; import React from 'react'; export type IUser = IUserMeVo; diff --git a/packages/sdk/src/context/session/SessionProvider.tsx b/packages/sdk/src/context/session/SessionProvider.tsx index b2c84a56f..243935be5 100644 --- a/packages/sdk/src/context/session/SessionProvider.tsx +++ b/packages/sdk/src/context/session/SessionProvider.tsx @@ -1,5 +1,5 @@ import { useMutation } from '@tanstack/react-query'; -import { userMe } from '@teable-group/openapi'; +import { userMe } from '@teable/openapi'; import { useCallback, useMemo, useState } from 'react'; import type { IUser } from './SessionContext'; import { SessionContext } from './SessionContext'; diff --git a/packages/sdk/src/context/table/TableProvider.tsx b/packages/sdk/src/context/table/TableProvider.tsx index 69606b511..38558f2bc 100644 --- a/packages/sdk/src/context/table/TableProvider.tsx +++ b/packages/sdk/src/context/table/TableProvider.tsx @@ -1,5 +1,5 @@ -import type { ITableVo } from '@teable-group/core'; -import { IdPrefix } from '@teable-group/core'; +import type { ITableVo } from '@teable/core'; +import { IdPrefix } from '@teable/core'; import type { FC, ReactNode } from 'react'; import { useContext, useMemo } from 'react'; import { createTableInstance } from '../../model'; diff --git a/packages/sdk/src/context/view/ViewProvider.tsx b/packages/sdk/src/context/view/ViewProvider.tsx index e4ffc2045..88f6e73ca 100644 --- a/packages/sdk/src/context/view/ViewProvider.tsx +++ b/packages/sdk/src/context/view/ViewProvider.tsx @@ -1,5 +1,5 @@ -import type { IViewVo } from '@teable-group/core'; -import { IdPrefix } from '@teable-group/core'; +import type { IViewVo } from '@teable/core'; +import { IdPrefix } from '@teable/core'; import type { FC, ReactNode } from 'react'; import { useContext, useMemo } from 'react'; import { createViewInstance } from '../../model/view/factory'; diff --git a/packages/sdk/src/hooks/use-field-static-getter.ts b/packages/sdk/src/hooks/use-field-static-getter.ts index 0e66df7cf..8e5799f4b 100644 --- a/packages/sdk/src/hooks/use-field-static-getter.ts +++ b/packages/sdk/src/hooks/use-field-static-getter.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; import { Calendar as CalendarIcon, @@ -19,7 +19,7 @@ import { History as LastModifiedTimeIcon, ListOrdered as AutoNumberIcon, User as UserIcon, -} from '@teable-group/icons'; +} from '@teable/icons'; import { useCallback } from 'react'; import { useTranslation } from '../context/app/i18n'; diff --git a/packages/sdk/src/hooks/use-permission-actions-static.spec.ts b/packages/sdk/src/hooks/use-permission-actions-static.spec.ts index 3670d2711..e24e36c8e 100644 --- a/packages/sdk/src/hooks/use-permission-actions-static.spec.ts +++ b/packages/sdk/src/hooks/use-permission-actions-static.spec.ts @@ -1,4 +1,4 @@ -import { ActionPrefix } from '@teable-group/core'; +import { ActionPrefix } from '@teable/core'; import { renderHook } from '@testing-library/react'; import { createAppContext } from '../context/__tests__/createAppContext'; import { usePermissionActionsStatic } from './use-permission-actions-static'; diff --git a/packages/sdk/src/hooks/use-permission-actions-static.ts b/packages/sdk/src/hooks/use-permission-actions-static.ts index e74e52ddb..2f1475a52 100644 --- a/packages/sdk/src/hooks/use-permission-actions-static.ts +++ b/packages/sdk/src/hooks/use-permission-actions-static.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import type { AllActions } from '@teable-group/core'; -import { ActionPrefix } from '@teable-group/core'; +import type { AllActions } from '@teable/core'; +import { ActionPrefix } from '@teable/core'; import { useMemo } from 'react'; import { useTranslation } from '../context/app/i18n'; import type { TKey } from '../context/app/i18n'; diff --git a/packages/sdk/src/hooks/use-record.ts b/packages/sdk/src/hooks/use-record.ts index e704e2916..77ecbbd2a 100644 --- a/packages/sdk/src/hooks/use-record.ts +++ b/packages/sdk/src/hooks/use-record.ts @@ -1,5 +1,5 @@ -import type { IRecord } from '@teable-group/core'; -import { IdPrefix } from '@teable-group/core'; +import type { IRecord } from '@teable/core'; +import { IdPrefix } from '@teable/core'; import { keyBy } from 'lodash'; import { useEffect, useMemo, useState } from 'react'; import type { Record } from '../model/record'; diff --git a/packages/sdk/src/hooks/use-records.ts b/packages/sdk/src/hooks/use-records.ts index b470e598f..647a41c4d 100644 --- a/packages/sdk/src/hooks/use-records.ts +++ b/packages/sdk/src/hooks/use-records.ts @@ -1,5 +1,5 @@ -import type { IGetRecordsRo, IRecord } from '@teable-group/core'; -import { IdPrefix } from '@teable-group/core'; +import type { IGetRecordsRo, IRecord } from '@teable/core'; +import { IdPrefix } from '@teable/core'; import { keyBy } from 'lodash'; import { useMemo } from 'react'; import { useInstances } from '../context/use-instances'; diff --git a/packages/sdk/src/hooks/use-space-role-static.ts b/packages/sdk/src/hooks/use-space-role-static.ts index de81c57cb..39fcfa989 100644 --- a/packages/sdk/src/hooks/use-space-role-static.ts +++ b/packages/sdk/src/hooks/use-space-role-static.ts @@ -1,4 +1,4 @@ -import { SpaceRole } from '@teable-group/core'; +import { SpaceRole } from '@teable/core'; import { useMemo } from 'react'; import { useTranslation } from '../context/app/i18n'; diff --git a/packages/sdk/src/hooks/use-table-permission.ts b/packages/sdk/src/hooks/use-table-permission.ts index 7dfd5d7c9..1f9605214 100644 --- a/packages/sdk/src/hooks/use-table-permission.ts +++ b/packages/sdk/src/hooks/use-table-permission.ts @@ -1,4 +1,4 @@ -import { getPermissionMap, spacePermissions } from '@teable-group/core'; +import { getPermissionMap, spacePermissions } from '@teable/core'; import { useBase } from './use-base'; export const useTablePermission = () => { diff --git a/packages/sdk/src/model/base.ts b/packages/sdk/src/model/base.ts index 21a962f17..f1d200cdc 100644 --- a/packages/sdk/src/model/base.ts +++ b/packages/sdk/src/model/base.ts @@ -1,5 +1,5 @@ -import type { ICreateTableRo, SpaceRole } from '@teable-group/core'; -import type { IGetBaseVo } from '@teable-group/openapi'; +import type { ICreateTableRo, SpaceRole } from '@teable/core'; +import type { IGetBaseVo } from '@teable/openapi'; import knex from 'knex'; import { getDriver } from '../utils/driver'; import { Table } from './table/table'; diff --git a/packages/sdk/src/model/field/attachment.field.ts b/packages/sdk/src/model/field/attachment.field.ts index 5788b6242..26d35cac5 100644 --- a/packages/sdk/src/model/field/attachment.field.ts +++ b/packages/sdk/src/model/field/attachment.field.ts @@ -1,4 +1,4 @@ -import { AttachmentFieldCore } from '@teable-group/core'; +import { AttachmentFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/auto-number.field.ts b/packages/sdk/src/model/field/auto-number.field.ts index b81b04591..2d3781a4d 100644 --- a/packages/sdk/src/model/field/auto-number.field.ts +++ b/packages/sdk/src/model/field/auto-number.field.ts @@ -1,4 +1,4 @@ -import { AutoNumberFieldCore } from '@teable-group/core'; +import { AutoNumberFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/checkbox.field.ts b/packages/sdk/src/model/field/checkbox.field.ts index f3bd45885..951ea3a93 100644 --- a/packages/sdk/src/model/field/checkbox.field.ts +++ b/packages/sdk/src/model/field/checkbox.field.ts @@ -1,4 +1,4 @@ -import { CheckboxFieldCore } from '@teable-group/core'; +import { CheckboxFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/created-time.field.ts b/packages/sdk/src/model/field/created-time.field.ts index 24f8f69c9..709076cca 100644 --- a/packages/sdk/src/model/field/created-time.field.ts +++ b/packages/sdk/src/model/field/created-time.field.ts @@ -1,4 +1,4 @@ -import { CreatedTimeFieldCore } from '@teable-group/core'; +import { CreatedTimeFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/date.field.ts b/packages/sdk/src/model/field/date.field.ts index dcdecd3d8..dd8bc25ff 100644 --- a/packages/sdk/src/model/field/date.field.ts +++ b/packages/sdk/src/model/field/date.field.ts @@ -1,4 +1,4 @@ -import { DateFieldCore } from '@teable-group/core'; +import { DateFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/factory.ts b/packages/sdk/src/model/field/factory.ts index eef141bf1..cf3114665 100644 --- a/packages/sdk/src/model/field/factory.ts +++ b/packages/sdk/src/model/field/factory.ts @@ -1,5 +1,5 @@ -import type { IFieldVo } from '@teable-group/core'; -import { assertNever, FieldType } from '@teable-group/core'; +import type { IFieldVo } from '@teable/core'; +import { assertNever, FieldType } from '@teable/core'; import { plainToInstance } from 'class-transformer'; import type { Doc } from 'sharedb/lib/client'; import { AttachmentField } from './attachment.field'; diff --git a/packages/sdk/src/model/field/field.ts b/packages/sdk/src/model/field/field.ts index b71e13aa3..85e1185b5 100644 --- a/packages/sdk/src/model/field/field.ts +++ b/packages/sdk/src/model/field/field.ts @@ -1,13 +1,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import type { IFieldRo, IFieldVo, IUpdateFieldRo } from '@teable-group/core'; -import { FieldCore } from '@teable-group/core'; -import { - createField, - deleteField, - getFields, - convertField, - updateField, -} from '@teable-group/openapi'; +import type { IFieldRo, IFieldVo, IUpdateFieldRo } from '@teable/core'; +import { FieldCore } from '@teable/core'; +import { createField, deleteField, getFields, convertField, updateField } from '@teable/openapi'; import type { Doc } from 'sharedb/lib/client'; import { requestWrap } from '../../utils/requestWrap'; diff --git a/packages/sdk/src/model/field/formula.field.ts b/packages/sdk/src/model/field/formula.field.ts index cc9d1944b..dce1a027f 100644 --- a/packages/sdk/src/model/field/formula.field.ts +++ b/packages/sdk/src/model/field/formula.field.ts @@ -1,4 +1,4 @@ -import { FormulaFieldCore } from '@teable-group/core'; +import { FormulaFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/last-modified-time.field.ts b/packages/sdk/src/model/field/last-modified-time.field.ts index 4cb465f13..23d341505 100644 --- a/packages/sdk/src/model/field/last-modified-time.field.ts +++ b/packages/sdk/src/model/field/last-modified-time.field.ts @@ -1,4 +1,4 @@ -import { LastModifiedTimeFieldCore } from '@teable-group/core'; +import { LastModifiedTimeFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/link.field.ts b/packages/sdk/src/model/field/link.field.ts index 7af1c65aa..6e2e87f89 100644 --- a/packages/sdk/src/model/field/link.field.ts +++ b/packages/sdk/src/model/field/link.field.ts @@ -1,4 +1,4 @@ -import { LinkFieldCore } from '@teable-group/core'; +import { LinkFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/long-text.field.ts b/packages/sdk/src/model/field/long-text.field.ts index ec4edb8b7..7551c7225 100644 --- a/packages/sdk/src/model/field/long-text.field.ts +++ b/packages/sdk/src/model/field/long-text.field.ts @@ -1,4 +1,4 @@ -import { LongTextFieldCore } from '@teable-group/core'; +import { LongTextFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/multiple-select.field.ts b/packages/sdk/src/model/field/multiple-select.field.ts index c061ef3e4..e133783b6 100644 --- a/packages/sdk/src/model/field/multiple-select.field.ts +++ b/packages/sdk/src/model/field/multiple-select.field.ts @@ -1,4 +1,4 @@ -import { MultipleSelectFieldCore } from '@teable-group/core'; +import { MultipleSelectFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/number.field.ts b/packages/sdk/src/model/field/number.field.ts index 06c6923be..95e472ad1 100644 --- a/packages/sdk/src/model/field/number.field.ts +++ b/packages/sdk/src/model/field/number.field.ts @@ -1,4 +1,4 @@ -import { NumberFieldCore } from '@teable-group/core'; +import { NumberFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/rating.field.ts b/packages/sdk/src/model/field/rating.field.ts index 9ef7df961..e43fd7276 100644 --- a/packages/sdk/src/model/field/rating.field.ts +++ b/packages/sdk/src/model/field/rating.field.ts @@ -1,4 +1,4 @@ -import { RatingFieldCore } from '@teable-group/core'; +import { RatingFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/rollup.field.ts b/packages/sdk/src/model/field/rollup.field.ts index 3e3fc7b62..20cee2785 100644 --- a/packages/sdk/src/model/field/rollup.field.ts +++ b/packages/sdk/src/model/field/rollup.field.ts @@ -1,4 +1,4 @@ -import { RollupFieldCore } from '@teable-group/core'; +import { RollupFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/single-line-text.field.ts b/packages/sdk/src/model/field/single-line-text.field.ts index 9a33585e3..648a97774 100644 --- a/packages/sdk/src/model/field/single-line-text.field.ts +++ b/packages/sdk/src/model/field/single-line-text.field.ts @@ -1,4 +1,4 @@ -import { SingleLineTextFieldCore } from '@teable-group/core'; +import { SingleLineTextFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/single-select.field.ts b/packages/sdk/src/model/field/single-select.field.ts index 50e325219..491f7fe11 100644 --- a/packages/sdk/src/model/field/single-select.field.ts +++ b/packages/sdk/src/model/field/single-select.field.ts @@ -1,4 +1,4 @@ -import { SingleSelectFieldCore } from '@teable-group/core'; +import { SingleSelectFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/field/user.field.ts b/packages/sdk/src/model/field/user.field.ts index bb4b8e528..7173b4b1d 100644 --- a/packages/sdk/src/model/field/user.field.ts +++ b/packages/sdk/src/model/field/user.field.ts @@ -1,4 +1,4 @@ -import { UserFieldCore } from '@teable-group/core'; +import { UserFieldCore } from '@teable/core'; import { Mixin } from 'ts-mixer'; import { Field } from './field'; diff --git a/packages/sdk/src/model/record/factory.ts b/packages/sdk/src/model/record/factory.ts index 95e814d17..60fdf70f7 100644 --- a/packages/sdk/src/model/record/factory.ts +++ b/packages/sdk/src/model/record/factory.ts @@ -1,4 +1,4 @@ -import type { IRecord } from '@teable-group/core'; +import type { IRecord } from '@teable/core'; import { plainToInstance } from 'class-transformer'; import type { Doc } from 'sharedb/lib/client'; import type { IFieldInstance } from '../field'; diff --git a/packages/sdk/src/model/record/record.ts b/packages/sdk/src/model/record/record.ts index 56fd2efe6..971a09dce 100644 --- a/packages/sdk/src/model/record/record.ts +++ b/packages/sdk/src/model/record/record.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import type { IRecord } from '@teable-group/core'; -import { RecordOpBuilder, RecordCore } from '@teable-group/core'; -import { createRecords, getRecords } from '@teable-group/openapi'; +import type { IRecord } from '@teable/core'; +import { RecordOpBuilder, RecordCore } from '@teable/core'; +import { createRecords, getRecords } from '@teable/openapi'; import type { Doc } from 'sharedb/lib/client'; import { requestWrap } from '../../utils/requestWrap'; import type { IFieldInstance } from '../field/factory'; diff --git a/packages/sdk/src/model/table/factory.ts b/packages/sdk/src/model/table/factory.ts index 95ccf0cbd..2a852112b 100644 --- a/packages/sdk/src/model/table/factory.ts +++ b/packages/sdk/src/model/table/factory.ts @@ -1,4 +1,4 @@ -import type { ITableVo } from '@teable-group/core'; +import type { ITableVo } from '@teable/core'; import { plainToInstance } from 'class-transformer'; import type { Doc } from 'sharedb/lib/client'; import { Table } from './table'; diff --git a/packages/sdk/src/model/table/table.ts b/packages/sdk/src/model/table/table.ts index ad330f235..1768e6463 100644 --- a/packages/sdk/src/model/table/table.ts +++ b/packages/sdk/src/model/table/table.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import type { IFieldRo, IRecord, ITableVo, IUpdateFieldRo, IViewRo } from '@teable-group/core'; -import { FieldKeyType, TableCore } from '@teable-group/core'; +import type { IFieldRo, IRecord, ITableVo, IUpdateFieldRo, IViewRo } from '@teable/core'; +import { FieldKeyType, TableCore } from '@teable/core'; import { createTable, deleteTable, @@ -13,7 +13,7 @@ import { updateTableIcon, updateTableName, updateTableOrder, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import type { Doc } from 'sharedb/lib/client'; import { requestWrap } from '../../utils/requestWrap'; import { Field } from '../field/field'; diff --git a/packages/sdk/src/model/view/factory.ts b/packages/sdk/src/model/view/factory.ts index bd172aa50..d956c3a8b 100644 --- a/packages/sdk/src/model/view/factory.ts +++ b/packages/sdk/src/model/view/factory.ts @@ -1,5 +1,5 @@ -import type { IViewVo } from '@teable-group/core'; -import { assertNever, ViewType } from '@teable-group/core'; +import type { IViewVo } from '@teable/core'; +import { assertNever, ViewType } from '@teable/core'; import { plainToInstance } from 'class-transformer'; import type { Doc } from 'sharedb/lib/client'; import { FormView } from './form.view'; diff --git a/packages/sdk/src/model/view/form.view.ts b/packages/sdk/src/model/view/form.view.ts index 49ce91e25..d806834a8 100644 --- a/packages/sdk/src/model/view/form.view.ts +++ b/packages/sdk/src/model/view/form.view.ts @@ -1,5 +1,5 @@ -import { FormViewCore } from '@teable-group/core'; -import { updateViewOptions } from '@teable-group/openapi'; +import { FormViewCore } from '@teable/core'; +import { updateViewOptions } from '@teable/openapi'; import { Mixin } from 'ts-mixer'; import { requestWrap } from '../../utils/requestWrap'; import { View } from './view'; diff --git a/packages/sdk/src/model/view/grid.view.ts b/packages/sdk/src/model/view/grid.view.ts index 3b8f9fea6..b130ad18b 100644 --- a/packages/sdk/src/model/view/grid.view.ts +++ b/packages/sdk/src/model/view/grid.view.ts @@ -1,5 +1,5 @@ -import { GridViewCore } from '@teable-group/core'; -import { updateViewOptions } from '@teable-group/openapi'; +import { GridViewCore } from '@teable/core'; +import { updateViewOptions } from '@teable/openapi'; import { Mixin } from 'ts-mixer'; import { requestWrap } from '../../utils/requestWrap'; import { View } from './view'; diff --git a/packages/sdk/src/model/view/kanban.view.ts b/packages/sdk/src/model/view/kanban.view.ts index 2c53f7c18..efff52563 100644 --- a/packages/sdk/src/model/view/kanban.view.ts +++ b/packages/sdk/src/model/view/kanban.view.ts @@ -1,4 +1,4 @@ -import { KanbanViewCore } from '@teable-group/core'; +import { KanbanViewCore } from '@teable/core'; import type { AxiosResponse } from 'axios'; import { Mixin } from 'ts-mixer'; import { View } from './view'; diff --git a/packages/sdk/src/model/view/view.ts b/packages/sdk/src/model/view/view.ts index 13c59919f..74403b74c 100644 --- a/packages/sdk/src/model/view/view.ts +++ b/packages/sdk/src/model/view/view.ts @@ -7,8 +7,8 @@ import type { IColumnMetaRo, IManualSortRo, IGroup, -} from '@teable-group/core'; -import { ViewCore } from '@teable-group/core'; +} from '@teable/core'; +import { ViewCore } from '@teable/core'; import { createView, deleteView, @@ -25,7 +25,7 @@ import { updateViewDescription, updateViewShareMeta, refreshViewShareId, -} from '@teable-group/openapi'; +} from '@teable/openapi'; import type { AxiosResponse } from 'axios'; import type { Doc } from 'sharedb/lib/client'; import { requestWrap } from '../../utils/requestWrap'; diff --git a/packages/sdk/src/utils/driver.ts b/packages/sdk/src/utils/driver.ts index 4f0189acb..6af44aa88 100644 --- a/packages/sdk/src/utils/driver.ts +++ b/packages/sdk/src/utils/driver.ts @@ -1,4 +1,4 @@ -import { DriverClient } from '@teable-group/core'; +import { DriverClient } from '@teable/core'; export function getDriver(): DriverClient { if (typeof window === 'object') { diff --git a/packages/sdk/src/utils/fieldType.ts b/packages/sdk/src/utils/fieldType.ts index 9b15cadc7..6e44b474f 100644 --- a/packages/sdk/src/utils/fieldType.ts +++ b/packages/sdk/src/utils/fieldType.ts @@ -1,4 +1,4 @@ -import { FieldType } from '@teable-group/core'; +import { FieldType } from '@teable/core'; export const FIELD_TYPE_ORDER = [ FieldType.SingleLineText, diff --git a/packages/sdk/src/utils/statistic.ts b/packages/sdk/src/utils/statistic.ts index 41a9b1d0f..5bb7e5c7d 100644 --- a/packages/sdk/src/utils/statistic.ts +++ b/packages/sdk/src/utils/statistic.ts @@ -1,4 +1,4 @@ -import { CellValueType, StatisticsFunc } from '@teable-group/core'; +import { CellValueType, StatisticsFunc } from '@teable/core'; import type { IFieldInstance } from '../model'; export const percentFormatting = (value: number) => { diff --git a/packages/sdk/tailwind.config.js b/packages/sdk/tailwind.config.js index a8869df71..8a869122b 100644 --- a/packages/sdk/tailwind.config.js +++ b/packages/sdk/tailwind.config.js @@ -1,5 +1,5 @@ const { join } = require('path'); -const uiConfig = require('@teable-group/ui-lib/ui.config.js'); +const uiConfig = require('@teable/ui-lib/ui.config.js'); const sdkPath = join(__dirname, './src/**/*.{js,ts,jsx,tsx}'); /** @type {import('tailwindcss').Config} */ diff --git a/packages/sdk/tsconfig.json b/packages/sdk/tsconfig.json index 5d2c13570..f5c179802 100644 --- a/packages/sdk/tsconfig.json +++ b/packages/sdk/tsconfig.json @@ -17,13 +17,13 @@ "sourceMap": true, "incremental": true, "paths": { - "@teable-group/icons": ["../icons/src"], - "@teable-group/core": ["../core/src"], - "@teable-group/ui-lib": ["../ui-lib/src"], - "@teable-group/openapi": ["../openapi/src"] + "@teable/icons": ["../icons/src"], + "@teable/core": ["../core/src"], + "@teable/ui-lib": ["../ui-lib/src"], + "@teable/openapi": ["../openapi/src"], }, - "types": ["vitest/globals"] + "types": ["vitest/globals"], }, "exclude": ["**/node_modules", "**/.*/", "./dist", "./coverage"], - "include": ["src", "../icons/src", "../core/src", "../ui-lib/src", "../openapi/src"] + "include": ["src", "../icons/src", "../core/src", "../ui-lib/src", "../openapi/src"], } diff --git a/packages/ui-lib/.eslintrc.cjs b/packages/ui-lib/.eslintrc.cjs index 2c5a6d893..60df4d943 100644 --- a/packages/ui-lib/.eslintrc.cjs +++ b/packages/ui-lib/.eslintrc.cjs @@ -1,12 +1,12 @@ /** * Specific eslint rules for this app/package, extends the base rules - * @see https://github.com/teable-group/teable/blob/main/docs/about-linters.md + * @see https://github.com/teableio/teable/blob/main/docs/about-linters.md */ // Workaround for https://github.com/eslint/eslint/issues/3458 (re-export of @rushstack/eslint-patch) -require('@teable-group/eslint-config-bases/patch/modern-module-resolution'); +require('@teable/eslint-config-bases/patch/modern-module-resolution'); -const { getDefaultIgnorePatterns } = require('@teable-group/eslint-config-bases/helpers'); +const { getDefaultIgnorePatterns } = require('@teable/eslint-config-bases/helpers'); module.exports = { root: true, @@ -21,15 +21,15 @@ module.exports = { 'tailwind.shadcnui.config.js', ], extends: [ - '@teable-group/eslint-config-bases/typescript', - '@teable-group/eslint-config-bases/regexp', - '@teable-group/eslint-config-bases/sonar', - '@teable-group/eslint-config-bases/jest', - '@teable-group/eslint-config-bases/rtl', - '@teable-group/eslint-config-bases/storybook', - '@teable-group/eslint-config-bases/react', + '@teable/eslint-config-bases/typescript', + '@teable/eslint-config-bases/regexp', + '@teable/eslint-config-bases/sonar', + '@teable/eslint-config-bases/jest', + '@teable/eslint-config-bases/rtl', + '@teable/eslint-config-bases/storybook', + '@teable/eslint-config-bases/react', // Apply prettier and disable incompatible rules - '@teable-group/eslint-config-bases/prettier-plugin', + '@teable/eslint-config-bases/prettier-plugin', ], rules: { // optional overrides per project diff --git a/packages/ui-lib/CHANGELOG.md b/packages/ui-lib/CHANGELOG.md index c94b97ba2..27535fef4 100644 --- a/packages/ui-lib/CHANGELOG.md +++ b/packages/ui-lib/CHANGELOG.md @@ -1,229 +1 @@ -# @teable-group/ui-lib - -## 3.15.1 - -### Patch Changes - -- [#2740](https://github.com/teable-group/teable/pull/2740) [`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9) Thanks [@belgattitude](https://github.com/belgattitude)! - Changesets: by default will tag and version private packages - - Doc: https://github.com/changesets/changesets/blob/main/docs/versioning-apps.md - Ref: [changesets@2.25.0](https://github.com/changesets/changesets/releases/tag/%40changesets%2Fcli%402.25.0) & [#662](https://github.com/changesets/changesets/pull/662). - -- Updated dependencies [[`e0b03b05`](https://github.com/teable-group/teable/commit/e0b03b059ea2b75272c2a86139f7ff8b0af874a9)]: - - @teable-group/core@1.1.1 - -## 3.15.0 - -### Minor Changes - -- [#2713](https://github.com/teable-group/teable/pull/2713) [`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0) Thanks [@belgattitude](https://github.com/belgattitude)! - Move typescript utils to @teable-group/core - -### Patch Changes - -- Updated dependencies [[`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0), [`e279d984`](https://github.com/teable-group/teable/commit/e279d984d01937264b077a111863b38d15fcb1d0)]: - - @teable-group/core@1.1.0 - -## 3.14.5 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/sdk@3.14.2 - -## 3.14.4 - -### Patch Changes - -- Updated dependencies [[`2fc498cc`](https://github.com/teable-group/teable/commit/2fc498cc928c9a577fa4c4a0112f910e0c24f176)]: - - @teable-group/sdk@3.14.2 - -## 3.14.3 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/sdk@3.14.1 - -## 3.14.2 - -### Patch Changes - -- [#2214](https://github.com/teable-group/teable/pull/2214) [`62818ba`](https://github.com/teable-group/teable/commit/62818badff67ce032a209fe9217c319271833ddc) Thanks [@belgattitude](https://github.com/belgattitude)! - Speedup and clean yarn install on CI - -- Updated dependencies [[`62818ba`](https://github.com/teable-group/teable/commit/62818badff67ce032a209fe9217c319271833ddc)]: - - @teable-group/sdk@3.14.1 - -## 3.14.1 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/sdk@3.14.0 - -## 3.14.0 - -### Minor Changes - -- [#1959](https://github.com/teable-group/teable/pull/1959) [`31ac0da`](https://github.com/teable-group/teable/commit/31ac0da08875ece918777fa54379e7b2e4c4286f) Thanks [@belgattitude](https://github.com/belgattitude)! - Simplify storybook according to new defaults in 6.5+ - -## 3.13.1 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/sdk@3.14.0 - -## 3.13.0 - -### Minor Changes - -- [#1876](https://github.com/teable-group/teable/pull/1876) [`5ad462a`](https://github.com/teable-group/teable/commit/5ad462a9a621564366c7a0ef0a77899fc855de85) Thanks [@belgattitude](https://github.com/belgattitude)! - Enable eslint global cache - -### Patch Changes - -- Updated dependencies [[`5ad462a`](https://github.com/teable-group/teable/commit/5ad462a9a621564366c7a0ef0a77899fc855de85)]: - - @teable-group/sdk@3.14.0 - -## 3.12.2 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/sdk@3.13.0 - -## 3.12.1 - -### Patch Changes - -- Updated dependencies []: - - @teable-group/sdk@3.13.0 - -## 3.12.0 - -### Minor Changes - -- [#1656](https://github.com/teable-group/teable/pull/1656) [`9f2c2d0`](https://github.com/teable-group/teable/commit/9f2c2d049cfb87a3023a38b096f07f998862e3f6) Thanks [@belgattitude](https://github.com/belgattitude)! - Improved linter configs - -### Patch Changes - -- Updated dependencies [[`9f2c2d0`](https://github.com/teable-group/teable/commit/9f2c2d049cfb87a3023a38b096f07f998862e3f6)]: - - @teable-group/sdk@3.13.0 - -## 3.11.0 - -### Minor Changes - -- [#1644](https://github.com/teable-group/teable/pull/1644) [`ee0a3db`](https://github.com/teable-group/teable/commit/ee0a3dbd664c33d7149302ae3f776951dbd50492) Thanks [@belgattitude](https://github.com/belgattitude)! - Rework deps, peer-deps and dev-deps - -### Patch Changes - -- Updated dependencies [[`ee0a3db`](https://github.com/teable-group/teable/commit/ee0a3dbd664c33d7149302ae3f776951dbd50492)]: - - @teable-group/sdk@3.12.0 - -## 3.10.0 - -### Minor Changes - -- [#1347](https://github.com/teable-group/teable/pull/1347) [`e269ada4`](https://github.com/teable-group/teable/commit/e269ada479151a243128612278bc0d5642e6db04) Thanks [@belgattitude](https://github.com/belgattitude)! - Example to use the sdk as dependency - -* [#1347](https://github.com/teable-group/teable/pull/1347) [`82e77f7c`](https://github.com/teable-group/teable/commit/82e77f7ce8a8fda3db16796685c817cb142114bb) Thanks [@belgattitude](https://github.com/belgattitude)! - Use and enforce workspace:^ protocol rather than workspace:\* - -## 3.9.0 - -### Minor Changes - -- [#1341](https://github.com/teable-group/teable/pull/1341) [`05291de7`](https://github.com/teable-group/teable/commit/05291de7deeed720e8b7271d339050116b448177) Thanks [@belgattitude](https://github.com/belgattitude)! - Refactor scripts identifiers defined in package.json. Restrict usage of ':' in apps and packages - -## 3.8.1 - -### Patch Changes - -- [#1105](https://github.com/teable-group/teable/pull/1105) [`43fd9647`](https://github.com/teable-group/teable/commit/43fd964796af951d1cfff78592330bc2fa231b75) Thanks [@belgattitude](https://github.com/belgattitude)! - Test bug - -## 3.8.0 - -### Minor Changes - -- [#963](https://github.com/teable-group/teable/pull/963) [`5e25fab2`](https://github.com/teable-group/teable/commit/5e25fab2f0d620e999f536a1fb8e0ef45d56fd64) Thanks [@belgattitude](https://github.com/belgattitude)! - Upgraded to react 18.0.0-rc.0 - -## 3.7.0 - -### Minor Changes - -- [`cfcab664`](https://github.com/teable-group/teable/commit/cfcab66479a8b28468f67748abb559c4eb2fb10a) Thanks [@belgattitude](https://github.com/belgattitude)! - Add storybook basic example - -## 3.6.1 - -### Patch Changes - -- [#623](https://github.com/teable-group/teable/pull/623) [`fcd68ed`](https://github.com/teable-group/teable/commit/fcd68ed476734fefda85f5ffa2cf82cbd1502aa6) Thanks [@belgattitude](https://github.com/belgattitude)! - Fix package publishing in esm and cjs - -## 3.6.0 - -### Minor Changes - -- [#553](https://github.com/teable-group/teable/pull/553) [`77e758b`](https://github.com/teable-group/teable/commit/77e758bbed1bc4f13b99cdd0ed90fa11fde9518f) Thanks [@belgattitude](https://github.com/belgattitude)! - Add eslint-plugin-regexp - -## 3.5.0 - -### Minor Changes - -- [#438](https://github.com/teable-group/teable/pull/438) [`6b78e59`](https://github.com/teable-group/teable/commit/6b78e59e4933814e69c26c86743a5b003c92dc2a) Thanks [@belgattitude](https://github.com/belgattitude)! - Eslint performance by not running test plugins over regular code - -## 3.4.1 - -### Patch Changes - -- [#356](https://github.com/teable-group/teable/pull/356) [`db7870f`](https://github.com/teable-group/teable/commit/db7870fbef1ac0422e8d142ab6bcd7d593abd685) Thanks [@belgattitude](https://github.com/belgattitude)! - CI: add extra check for missing / undeclared dependencies - -* [#354](https://github.com/teable-group/teable/pull/354) [`16e4e2d`](https://github.com/teable-group/teable/commit/16e4e2d7b6023a0cc9bf62120d7b5b8e223740b5) Thanks [@belgattitude](https://github.com/belgattitude)! - Improve eslint config and add eslint-plugin-import - -## 3.4.0 - -### Minor Changes - -- [#323](https://github.com/teable-group/teable/pull/323) [`a416f35`](https://github.com/teable-group/teable/commit/a416f3550dd0bb8412297295206f586630e586c0) Thanks [@belgattitude](https://github.com/belgattitude)! - Example: eslint-plugin-sonarjs cause cause it desserves to belong here - -## 3.3.0 - -### Minor Changes - -- [#319](https://github.com/teable-group/teable/pull/319) [`2ccb056`](https://github.com/teable-group/teable/commit/2ccb056660dfd84a75e1a8733e56cc8d9b3fd353) Thanks [@belgattitude](https://github.com/belgattitude)! - Updated to Typescript 4.4.2 strict ("useUnknownInCatchVariables": true) - -## 3.2.0 - -### Minor Changes - -- [#278](https://github.com/teable-group/teable/pull/278) [`3b15241`](https://github.com/teable-group/teable/commit/3b15241726d57c7ddafc9b2766cb670ada617def) Thanks [@belgattitude](https://github.com/belgattitude)! - Add example of svg icons - -## 3.1.3 - -### Patch Changes - -- [#172](https://github.com/teable-group/teable/pull/172) [`01e5e89`](https://github.com/teable-group/teable/commit/01e5e89e028029c5ef415f2f825d022f96a97fd4) Thanks [@belgattitude](https://github.com/belgattitude)! - Relaxed codeclimate config for react components - -## 3.1.2 - -### Patch Changes - -- [#135](https://github.com/teable-group/teable/pull/135) [`d548b70`](https://github.com/teable-group/teable/commit/d548b70b53baaa67d6de4e8a7c6254b59db3ced3) Thanks [@belgattitude](https://github.com/belgattitude)! - CI: use built-in yarn cache from setup/node@v2.2 - -## 3.1.1 - -### Patch Changes - -- [#84](https://github.com/teable-group/teable/pull/84) [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293) Thanks [@belgattitude](https://github.com/belgattitude)! - Jest: added mock configs - -* [#84](https://github.com/teable-group/teable/pull/84) [`697842e`](https://github.com/teable-group/teable/commit/697842e913bd7164b21b51c9c9adb943b0904293) Thanks [@belgattitude](https://github.com/belgattitude)! - ESlint: added plugin:testing-library/react - -## 3.1.0 - -### Minor Changes - -- [#67](https://github.com/teable-group/teable/pull/67) [`152e4ad`](https://github.com/teable-group/teable/commit/152e4adc8be95f192b066f75ef4bb2dd42c46d12) Thanks [@belgattitude](https://github.com/belgattitude)! - Jest 27 and Typescript 4.3.1 - -## 3.0.0 - -### Major Changes - -- [#39](https://github.com/teable-group/teable/pull/39) [`9f04b88`](https://github.com/teable-group/teable/commit/9f04b88d966e804ddc12e79372b3ac14f7330b86) Thanks [@belgattitude](https://github.com/belgattitude)! - Rename packages foo and bar into ui-lib and sdk +# @teable/ui-lib diff --git a/packages/ui-lib/README.md b/packages/ui-lib/README.md index 471f89f61..1754b5223 100644 --- a/packages/ui-lib/README.md +++ b/packages/ui-lib/README.md @@ -1,8 +1,8 @@ -# @teable-group/ui-lib +# @teable/ui-lib

- - build + + build

diff --git a/packages/ui-lib/lint-staged.config.js b/packages/ui-lib/lint-staged.config.js index a25cea85c..15701fec7 100644 --- a/packages/ui-lib/lint-staged.config.js +++ b/packages/ui-lib/lint-staged.config.js @@ -4,7 +4,7 @@ * This files overrides the base lint-staged.config.js present in the root directory. * It allows to run eslint based the package specific requirements. * {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo} - * {@link https://github.com/teable-group/teable/blob/main/docs/about-lint-staged.md} + * {@link https://github.com/teableio/teable/blob/main/docs/about-lint-staged.md} */ const { concatFilesForPrettier, getEslintFixCmd } = require('../../lint-staged.common.js'); diff --git a/packages/ui-lib/package.json b/packages/ui-lib/package.json index fa0a7d035..271d5d90e 100644 --- a/packages/ui-lib/package.json +++ b/packages/ui-lib/package.json @@ -1,12 +1,12 @@ { - "name": "@teable-group/ui-lib", + "name": "@teable/ui-lib", "version": "1.0.0", "license": "AGPL-3.0", "private": true, - "homepage": "https://github.com/teable-group/teable", + "homepage": "https://github.com/teableio/teable", "repository": { "type": "git", - "url": "https://github.com/teable-group/teable", + "url": "https://github.com/teableio/teable", "directory": "packages/ui-lib" }, "author": { @@ -61,7 +61,7 @@ "@storybook/manager-webpack5": "6.5.16", "@storybook/react": "7.6.10", "@tailwindcss/aspect-ratio": "0.4.2", - "@teable-group/eslint-config-bases": "workspace:^", + "@teable/eslint-config-bases": "workspace:^", "@testing-library/react": "14.1.2", "@types/node": "18.19.0", "@types/react": "18.2.48", @@ -111,7 +111,7 @@ "@radix-ui/react-tabs": "1.0.4", "@radix-ui/react-toast": "1.1.5", "@radix-ui/react-tooltip": "1.0.7", - "@teable-group/icons": "workspace:^", + "@teable/icons": "workspace:^", "class-variance-authority": "0.7.0", "clsx": "2.1.0", "cmdk": "0.2.1", diff --git a/packages/ui-lib/src/base/file/preview/FilePreviewContent.tsx b/packages/ui-lib/src/base/file/preview/FilePreviewContent.tsx index 21dc26c63..d2a013b18 100644 --- a/packages/ui-lib/src/base/file/preview/FilePreviewContent.tsx +++ b/packages/ui-lib/src/base/file/preview/FilePreviewContent.tsx @@ -1,6 +1,6 @@ /* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/no-static-element-interactions */ -import { X, ChevronRight } from '@teable-group/icons'; +import { X, ChevronRight } from '@teable/icons'; import { useContext, useMemo } from 'react'; import { Dialog, DialogContent, DialogTrigger, cn } from '../../../shadcn'; import { FilePreview } from './FilePreview'; diff --git a/packages/ui-lib/src/base/file/preview/getFileIcon.ts b/packages/ui-lib/src/base/file/preview/getFileIcon.ts index a1fed37d8..41b284aa7 100644 --- a/packages/ui-lib/src/base/file/preview/getFileIcon.ts +++ b/packages/ui-lib/src/base/file/preview/getFileIcon.ts @@ -9,7 +9,7 @@ import { FileText, FileUnknown, FileVideo, -} from '@teable-group/icons'; +} from '@teable/icons'; import { isAudio, isExcel, diff --git a/packages/ui-lib/src/base/selector/Selector.tsx b/packages/ui-lib/src/base/selector/Selector.tsx index 955c7e299..ce232850f 100644 --- a/packages/ui-lib/src/base/selector/Selector.tsx +++ b/packages/ui-lib/src/base/selector/Selector.tsx @@ -1,4 +1,4 @@ -import { Check, ChevronDown } from '@teable-group/icons'; +import { Check, ChevronDown } from '@teable/icons'; import { useMemo, useRef, useState } from 'react'; import { Popover, diff --git a/packages/ui-lib/tsconfig.json b/packages/ui-lib/tsconfig.json index 8fb0a24cf..6852b3671 100644 --- a/packages/ui-lib/tsconfig.json +++ b/packages/ui-lib/tsconfig.json @@ -14,9 +14,9 @@ "incremental": true, "composite": true, "paths": { - "@teable-group/icons": ["../../icons/src"] - } + "@teable/icons": ["../../icons/src"], + }, }, "exclude": ["**/node_modules", "**/.*/", "dist", "build"], - "include": ["./src"] + "include": ["./src"], } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c09f34b94..f9d4c1ddf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,7 +24,7 @@ importers: '@commitlint/config-conventional': specifier: 18.6.0 version: 18.6.0 - '@teable-group/eslint-config-bases': + '@teable/eslint-config-bases': specifier: workspace:^ version: link:packages/eslint-config-bases '@types/shell-quote': @@ -138,16 +138,16 @@ importers: '@prisma/instrumentation': specifier: 5.8.1 version: 5.8.1 - '@teable-group/common-i18n': + '@teable/common-i18n': specifier: workspace:^ version: link:../../packages/common-i18n - '@teable-group/core': + '@teable/core': specifier: workspace:^ version: link:../../packages/core - '@teable-group/db-main-prisma': + '@teable/db-main-prisma': specifier: workspace:^ version: link:../../packages/db-main-prisma - '@teable-group/openapi': + '@teable/openapi': specifier: workspace:^ version: link:../../packages/openapi '@teamwork/websocket-json-stream': @@ -313,7 +313,7 @@ importers: '@nestjs/testing': specifier: 10.3.1 version: 10.3.1(@nestjs/common@10.3.1)(@nestjs/core@10.3.1)(@nestjs/platform-express@10.3.1) - '@teable-group/eslint-config-bases': + '@teable/eslint-config-bases': specifier: workspace:^ version: link:../../packages/eslint-config-bases '@types/bcrypt': @@ -511,22 +511,22 @@ importers: '@tanstack/react-table': specifier: 8.11.7 version: 8.11.7(react-dom@18.2.0)(react@18.2.0) - '@teable-group/common-i18n': + '@teable/common-i18n': specifier: workspace:^ version: link:../../packages/common-i18n - '@teable-group/core': + '@teable/core': specifier: workspace:^ version: link:../../packages/core - '@teable-group/icons': + '@teable/icons': specifier: workspace:^ version: link:../../packages/icons - '@teable-group/openapi': + '@teable/openapi': specifier: workspace:^ version: link:../../packages/openapi - '@teable-group/sdk': + '@teable/sdk': specifier: workspace:^ version: link:../../packages/sdk - '@teable-group/ui-lib': + '@teable/ui-lib': specifier: workspace:^ version: link:../../packages/ui-lib allotment: @@ -815,7 +815,7 @@ importers: packages/common-i18n: devDependencies: - '@teable-group/eslint-config-bases': + '@teable/eslint-config-bases': specifier: workspace:^ version: link:../eslint-config-bases '@types/node': @@ -876,7 +876,7 @@ importers: '@size-limit/file': specifier: 11.0.2 version: 11.0.2(size-limit@11.0.2) - '@teable-group/eslint-config-bases': + '@teable/eslint-config-bases': specifier: workspace:^ version: link:../eslint-config-bases '@types/lodash': @@ -943,7 +943,7 @@ importers: '@soluble/dsn-parser': specifier: 1.9.2 version: 1.9.2 - '@teable-group/eslint-config-bases': + '@teable/eslint-config-bases': specifier: workspace:^ version: link:../eslint-config-bases '@types/bcrypt': @@ -1164,7 +1164,7 @@ importers: '@asteasolutions/zod-to-openapi': specifier: 6.3.1 version: 6.3.1(zod@3.22.4) - '@teable-group/core': + '@teable/core': specifier: workspace:^ version: link:../core axios: @@ -1177,7 +1177,7 @@ importers: specifier: 3.22.4 version: 3.22.4 devDependencies: - '@teable-group/eslint-config-bases': + '@teable/eslint-config-bases': specifier: workspace:^ version: link:../eslint-config-bases eslint: @@ -1228,19 +1228,19 @@ importers: '@tanstack/react-query': specifier: 4.36.1 version: 4.36.1(react-dom@18.2.0)(react@18.2.0) - '@teable-group/common-i18n': + '@teable/common-i18n': specifier: workspace:* version: link:../common-i18n - '@teable-group/core': + '@teable/core': specifier: workspace:* version: link:../core - '@teable-group/icons': + '@teable/icons': specifier: workspace:* version: link:../icons - '@teable-group/openapi': + '@teable/openapi': specifier: workspace:* version: link:../openapi - '@teable-group/ui-lib': + '@teable/ui-lib': specifier: workspace:* version: link:../ui-lib '@types/mousetrap': @@ -1316,7 +1316,7 @@ importers: specifier: 4.5.0 version: 4.5.0(@types/react@18.2.48)(immer@10.0.3)(react@18.2.0) devDependencies: - '@teable-group/eslint-config-bases': + '@teable/eslint-config-bases': specifier: workspace:^ version: link:../eslint-config-bases '@testing-library/jest-dom': @@ -1463,7 +1463,7 @@ importers: '@radix-ui/react-tooltip': specifier: 1.0.7 version: 1.0.7(@types/react-dom@18.2.18)(@types/react@18.2.48)(react-dom@18.2.0)(react@18.2.0) - '@teable-group/icons': + '@teable/icons': specifier: workspace:^ version: link:../icons class-variance-authority: @@ -1536,7 +1536,7 @@ importers: '@tailwindcss/aspect-ratio': specifier: 0.4.2 version: 0.4.2(tailwindcss@3.4.1) - '@teable-group/eslint-config-bases': + '@teable/eslint-config-bases': specifier: workspace:^ version: link:../eslint-config-bases '@testing-library/react':