refactor: rename ui -> journey
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
extends: ['@commitlint/config-conventional'],
|
extends: ['@commitlint/config-conventional'],
|
||||||
rules: {
|
rules: {
|
||||||
'type-enum': [2, 'always', [...rules['type-enum'][2], 'api', 'release']],
|
'type-enum': [2, 'always', [...rules['type-enum'][2], 'api', 'release']],
|
||||||
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'ui', 'deps','cli', 'toolkit', 'cloud', 'app-insights']],
|
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'journey', 'deps','cli', 'toolkit', 'app-insights']],
|
||||||
// Slightly increase the tolerance to allow the appending PR number
|
// Slightly increase the tolerance to allow the appending PR number
|
||||||
...(isCi && { 'header-max-length': [2, 'always', 110] }),
|
...(isCi && { 'header-max-length': [2, 'always', 110] }),
|
||||||
'body-max-line-length': [2, 'always', 110],
|
'body-max-line-length': [2, 'always', 110],
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
"@logto/core-kit": "workspace:^2.0.1",
|
"@logto/core-kit": "workspace:^2.0.1",
|
||||||
"@logto/language-kit": "workspace:^1.0.0",
|
"@logto/language-kit": "workspace:^1.0.0",
|
||||||
"@logto/phrases": "workspace:^1.4.1",
|
"@logto/phrases": "workspace:^1.4.1",
|
||||||
"@logto/phrases-ui": "workspace:^1.2.0",
|
"@logto/phrases-journey": "workspace:^1.2.0",
|
||||||
"@logto/schemas": "workspace:1.8.0",
|
"@logto/schemas": "workspace:1.8.0",
|
||||||
"@logto/shared": "workspace:^2.0.0",
|
"@logto/shared": "workspace:^2.0.0",
|
||||||
"@silverhand/essentials": "^2.8.4",
|
"@silverhand/essentials": "^2.8.4",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { isLanguageTag } from '@logto/language-kit';
|
import { isLanguageTag } from '@logto/language-kit';
|
||||||
import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases';
|
import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases';
|
||||||
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui';
|
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-journey';
|
||||||
import type { CommandModule } from 'yargs';
|
import type { CommandModule } from 'yargs';
|
||||||
|
|
||||||
import { consoleLog } from '../../utils.js';
|
import { consoleLog } from '../../utils.js';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { languages } from '@logto/language-kit';
|
import { languages } from '@logto/language-kit';
|
||||||
import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases';
|
import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases';
|
||||||
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui';
|
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-journey';
|
||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import type { CommandModule } from 'yargs';
|
import type { CommandModule } from 'yargs';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { languages } from '@logto/language-kit';
|
import { languages } from '@logto/language-kit';
|
||||||
import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases';
|
import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases';
|
||||||
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui';
|
import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-journey';
|
||||||
import PQueue from 'p-queue';
|
import PQueue from 'p-queue';
|
||||||
import type { CommandModule } from 'yargs';
|
import type { CommandModule } from 'yargs';
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
"@logto/core-kit": "workspace:^2.0.1",
|
"@logto/core-kit": "workspace:^2.0.1",
|
||||||
"@logto/language-kit": "workspace:^1.0.0",
|
"@logto/language-kit": "workspace:^1.0.0",
|
||||||
"@logto/phrases": "workspace:^1.4.1",
|
"@logto/phrases": "workspace:^1.4.1",
|
||||||
"@logto/phrases-ui": "workspace:^1.2.0",
|
"@logto/phrases-journey": "workspace:^1.2.0",
|
||||||
"@logto/react": "^2.1.0",
|
"@logto/react": "^2.1.0",
|
||||||
"@logto/schemas": "workspace:^1.8.0",
|
"@logto/schemas": "workspace:^1.8.0",
|
||||||
"@logto/shared": "workspace:^2.0.0",
|
"@logto/shared": "workspace:^2.0.0",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { LanguageTag } from '@logto/language-kit';
|
import type { LanguageTag } from '@logto/language-kit';
|
||||||
import { builtInLanguages as builtInUiLanguages } from '@logto/phrases-ui';
|
import { builtInLanguages as builtInUiLanguages } from '@logto/phrases-journey';
|
||||||
import { deduplicate } from '@silverhand/essentials';
|
import { deduplicate } from '@silverhand/essentials';
|
||||||
import { useCallback, useMemo } from 'react';
|
import { useCallback, useMemo } from 'react';
|
||||||
import useSWR from 'swr';
|
import useSWR from 'swr';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { LanguageTag } from '@logto/language-kit';
|
import type { LanguageTag } from '@logto/language-kit';
|
||||||
import { languages as uiLanguageNameMapping } from '@logto/language-kit';
|
import { languages as uiLanguageNameMapping } from '@logto/language-kit';
|
||||||
import resource, { isBuiltInLanguageTag } from '@logto/phrases-ui';
|
import resource, { isBuiltInLanguageTag } from '@logto/phrases-journey';
|
||||||
import en from '@logto/phrases-ui/lib/locales/en';
|
import en from '@logto/phrases-journey/lib/locales/en';
|
||||||
import type { SignInExperience, Translation } from '@logto/schemas';
|
import type { SignInExperience, Translation } from '@logto/schemas';
|
||||||
import cleanDeep from 'clean-deep';
|
import cleanDeep from 'clean-deep';
|
||||||
import deepmerge from 'deepmerge';
|
import deepmerge from 'deepmerge';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import en from '@logto/phrases-ui/lib/locales/en';
|
import en from '@logto/phrases-journey/lib/locales/en';
|
||||||
import type { Translation } from '@logto/schemas';
|
import type { Translation } from '@logto/schemas';
|
||||||
|
|
||||||
export const flattenTranslation = (
|
export const flattenTranslation = (
|
||||||
|
|
|
@ -37,10 +37,10 @@
|
||||||
"@logto/demo-app": "workspace:*",
|
"@logto/demo-app": "workspace:*",
|
||||||
"@logto/language-kit": "workspace:^1.0.0",
|
"@logto/language-kit": "workspace:^1.0.0",
|
||||||
"@logto/phrases": "workspace:^1.4.1",
|
"@logto/phrases": "workspace:^1.4.1",
|
||||||
"@logto/phrases-ui": "workspace:^1.2.0",
|
"@logto/phrases-journey": "workspace:^1.2.0",
|
||||||
"@logto/schemas": "workspace:^1.8.0",
|
"@logto/schemas": "workspace:^1.8.0",
|
||||||
"@logto/shared": "workspace:^2.0.0",
|
"@logto/shared": "workspace:^2.0.0",
|
||||||
"@logto/ui": "workspace:*",
|
"@logto/journey": "workspace:*",
|
||||||
"@silverhand/essentials": "^2.8.4",
|
"@silverhand/essentials": "^2.8.4",
|
||||||
"@withtyped/client": "^0.7.22",
|
"@withtyped/client": "^0.7.22",
|
||||||
"chalk": "^5.0.0",
|
"chalk": "^5.0.0",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import resource from '@logto/phrases-ui';
|
import resource from '@logto/phrases-journey';
|
||||||
import { type CustomPhrase } from '@logto/schemas';
|
import { type CustomPhrase } from '@logto/schemas';
|
||||||
import deepmerge from 'deepmerge';
|
import deepmerge from 'deepmerge';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { LocalePhrase } from '@logto/phrases-ui';
|
import type { LocalePhrase } from '@logto/phrases-journey';
|
||||||
import resource, { isBuiltInLanguageTag } from '@logto/phrases-ui';
|
import resource, { isBuiltInLanguageTag } from '@logto/phrases-journey';
|
||||||
import { trySafe } from '@silverhand/essentials';
|
import { trySafe } from '@silverhand/essentials';
|
||||||
import cleanDeep from 'clean-deep';
|
import cleanDeep from 'clean-deep';
|
||||||
import deepmerge from 'deepmerge';
|
import deepmerge from 'deepmerge';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { LanguageTag } from '@logto/language-kit';
|
import type { LanguageTag } from '@logto/language-kit';
|
||||||
import { builtInLanguages } from '@logto/phrases-ui';
|
import { builtInLanguages } from '@logto/phrases-journey';
|
||||||
import type { CreateSignInExperience, SignInExperience } from '@logto/schemas';
|
import type { CreateSignInExperience, SignInExperience } from '@logto/schemas';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { builtInLanguages } from '@logto/phrases-ui';
|
import { builtInLanguages } from '@logto/phrases-journey';
|
||||||
import type { ConnectorMetadata, LanguageInfo } from '@logto/schemas';
|
import type { ConnectorMetadata, LanguageInfo } from '@logto/schemas';
|
||||||
import { ConnectorType } from '@logto/schemas';
|
import { ConnectorType } from '@logto/schemas';
|
||||||
import { deduplicate } from '@silverhand/essentials';
|
import { deduplicate } from '@silverhand/essentials';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import en from '@logto/phrases-ui/lib/locales/en/index.js';
|
import en from '@logto/phrases-journey/lib/locales/en/index.js';
|
||||||
import { type CustomPhrase, type SignInExperience } from '@logto/schemas';
|
import { type CustomPhrase, type SignInExperience } from '@logto/schemas';
|
||||||
import { pickDefault, createMockUtils } from '@logto/shared/esm';
|
import { pickDefault, createMockUtils } from '@logto/shared/esm';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { languageTagGuard } from '@logto/language-kit';
|
import { languageTagGuard } from '@logto/language-kit';
|
||||||
import resource from '@logto/phrases-ui';
|
import resource from '@logto/phrases-journey';
|
||||||
import type { Translation } from '@logto/schemas';
|
import type { Translation } from '@logto/schemas';
|
||||||
import { CustomPhrases, translationGuard } from '@logto/schemas';
|
import { CustomPhrases, translationGuard } from '@logto/schemas';
|
||||||
import cleanDeep from 'clean-deep';
|
import cleanDeep from 'clean-deep';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import en from '@logto/phrases-ui/lib/locales/en/index.js';
|
import en from '@logto/phrases-journey/lib/locales/en/index.js';
|
||||||
import type { SignInExperience } from '@logto/schemas';
|
import type { SignInExperience } from '@logto/schemas';
|
||||||
import { pickDefault } from '@logto/shared/esm';
|
import { pickDefault } from '@logto/shared/esm';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import zhCN from '@logto/phrases-ui/lib/locales/zh-cn/index.js';
|
import zhCN from '@logto/phrases-journey/lib/locales/zh-cn/index.js';
|
||||||
import type { CustomPhrase, SignInExperience } from '@logto/schemas';
|
import type { CustomPhrase, SignInExperience } from '@logto/schemas';
|
||||||
import { pickDefault, createMockUtils } from '@logto/shared/esm';
|
import { pickDefault, createMockUtils } from '@logto/shared/esm';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { isBuiltInLanguageTag } from '@logto/phrases-ui';
|
import { isBuiltInLanguageTag } from '@logto/phrases-journey';
|
||||||
import { adminTenantId } from '@logto/schemas';
|
import { adminTenantId } from '@logto/schemas';
|
||||||
import { conditionalArray } from '@silverhand/essentials';
|
import { conditionalArray } from '@silverhand/essentials';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import en from '@logto/phrases-ui/lib/locales/en/index.js';
|
import en from '@logto/phrases-journey/lib/locales/en/index.js';
|
||||||
import fr from '@logto/phrases-ui/lib/locales/fr/index.js';
|
import fr from '@logto/phrases-journey/lib/locales/fr/index.js';
|
||||||
|
|
||||||
import { isStrictlyPartial } from '#src/utils/translation.js';
|
import { isStrictlyPartial } from '#src/utils/translation.js';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# @logto/ui
|
# @logto/journey
|
||||||
|
|
||||||
The register / sign-in experience for end-users.
|
The register / sign-in experience for end-users.
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "@logto/ui",
|
"name": "@logto/journey",
|
||||||
"version": "1.1.5",
|
"version": "1.1.5",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
"@logto/core-kit": "workspace:^2.0.1",
|
"@logto/core-kit": "workspace:^2.0.1",
|
||||||
"@logto/language-kit": "workspace:^1.0.0",
|
"@logto/language-kit": "workspace:^1.0.0",
|
||||||
"@logto/phrases": "workspace:^1.4.1",
|
"@logto/phrases": "workspace:^1.4.1",
|
||||||
"@logto/phrases-ui": "workspace:^1.2.0",
|
"@logto/phrases-journey": "workspace:^1.2.0",
|
||||||
"@logto/schemas": "workspace:^1.6.0",
|
"@logto/schemas": "workspace:^1.6.0",
|
||||||
"@parcel/compressor-brotli": "2.9.3",
|
"@parcel/compressor-brotli": "2.9.3",
|
||||||
"@parcel/compressor-gzip": "2.9.3",
|
"@parcel/compressor-gzip": "2.9.3",
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 592 B After Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 939 B After Width: | Height: | Size: 939 B |
Before Width: | Height: | Size: 977 B After Width: | Height: | Size: 977 B |
Before Width: | Height: | Size: 959 B After Width: | Height: | Size: 959 B |
Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 772 B After Width: | Height: | Size: 772 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 541 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 823 B After Width: | Height: | Size: 823 B |
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 587 B After Width: | Height: | Size: 587 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |