@intlayer/design-system 8.6.10 → 8.7.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +0 -82
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +3 -3
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +0 -42
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/Modal/Modal.mjs +2 -2
- package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +3 -3
- package/dist/esm/components/TabSelector/TabSelector.mjs +1 -1
- package/dist/esm/components/TabSelector/TabSelector.mjs.map +1 -1
- package/dist/esm/hooks/index.mjs +9 -9
- package/dist/esm/hooks/useAuth/useOAuth2.mjs +1 -1
- package/dist/esm/hooks/useAuth/useSession.mjs +1 -1
- package/dist/esm/libs/auth.mjs +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +1 -1
- package/dist/types/components/Command/index.d.ts +1 -1
- package/dist/types/components/Container/index.d.ts +6 -6
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +0 -82
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +0 -42
- package/dist/types/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +1 -1
- package/package.json +334 -29
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { useUser } from "../../hooks/useUser/index.mjs";
|
|
3
4
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
4
5
|
import { AutoCompleteTextarea } from "../TextArea/AutocompleteTextArea.mjs";
|
|
5
|
-
import { useUser } from "../../hooks/useUser/index.mjs";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
import { Check, X } from "lucide-react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { useAuditContentDeclarationField } from "../../../hooks/reactQuery.mjs";
|
|
3
4
|
import { Container } from "../../Container/index.mjs";
|
|
4
5
|
import { Button, ButtonColor, ButtonSize, ButtonTextAlign, ButtonVariant } from "../../Button/Button.mjs";
|
|
5
6
|
import { InputVariant } from "../../Input/Input.mjs";
|
|
6
7
|
import { SwitchSelector, SwitchSelectorColor, SwitchSelectorSize } from "../../SwitchSelector/index.mjs";
|
|
7
8
|
import { useLocaleSwitcherContent } from "../../LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs";
|
|
8
9
|
import { ContentEditorInput as ContentEditorInput$1 } from "../../ContentEditor/ContentEditorInput.mjs";
|
|
9
|
-
import { useAuditContentDeclarationField } from "../../../hooks/reactQuery.mjs";
|
|
10
10
|
import { ContentEditorTextArea as ContentEditorTextArea$1 } from "../../ContentEditor/ContentEditorTextArea.mjs";
|
|
11
11
|
import { renameKey } from "./object.mjs";
|
|
12
12
|
import { Label } from "../../Label/index.mjs";
|
|
@@ -15,9 +15,9 @@ import { EnumKeyInput } from "../EnumKeyInput.mjs";
|
|
|
15
15
|
import { Fragment, useState } from "react";
|
|
16
16
|
import { Plus, Trash, WandSparkles } from "lucide-react";
|
|
17
17
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { useConfiguration, useEditedContent } from "@intlayer/editor-react";
|
|
18
19
|
import { useIntlayer, useLocale } from "react-intlayer";
|
|
19
20
|
import { getLocaleName } from "@intlayer/core/localization";
|
|
20
|
-
import { useConfiguration, useEditedContent } from "@intlayer/editor-react";
|
|
21
21
|
import { getEmptyNode, getNodeType } from "@intlayer/core/dictionaryManipulator";
|
|
22
22
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
23
23
|
|
package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { ButtonColor } from "../../Button/Button.mjs";
|
|
4
3
|
import { useSession } from "../../../hooks/useAuth/useSession.mjs";
|
|
5
4
|
import { useAddDictionary, useGetProjects } from "../../../hooks/reactQuery.mjs";
|
|
5
|
+
import { ButtonColor } from "../../Button/Button.mjs";
|
|
6
6
|
import { MultiSelect } from "../../Select/Multiselect.mjs";
|
|
7
7
|
import { useForm } from "../../Form/FormBase.mjs";
|
|
8
8
|
import { Form } from "../../Form/Form.mjs";
|
|
@@ -88,88 +88,6 @@ const dictionaryFormContent = {
|
|
|
88
88
|
uk: "Виберіть один або кілька проєктів, щоб пов'язати їх із вашим словником"
|
|
89
89
|
})
|
|
90
90
|
},
|
|
91
|
-
noDictionaryView: {
|
|
92
|
-
title: t({
|
|
93
|
-
en: "No dictionary",
|
|
94
|
-
"en-GB": "No dictionary",
|
|
95
|
-
fr: "Aucun dictionnaire",
|
|
96
|
-
es: "Sin diccionario",
|
|
97
|
-
de: "Kein Wörterbuch",
|
|
98
|
-
ja: "辞書がありません",
|
|
99
|
-
ko: "사전이 없습니다",
|
|
100
|
-
zh: "没有字典",
|
|
101
|
-
it: "Nessun dizionario",
|
|
102
|
-
pt: "Nenhum dicionário",
|
|
103
|
-
hi: "कोई शब्दकोश नहीं",
|
|
104
|
-
ar: "لا يوجد قاموس",
|
|
105
|
-
ru: "Нет словаря",
|
|
106
|
-
tr: "Hiç sözlük yok",
|
|
107
|
-
pl: "Brak słownika",
|
|
108
|
-
id: "Tidak ada dictionary",
|
|
109
|
-
vi: "Chưa có từ điển",
|
|
110
|
-
uk: "Немає словника"
|
|
111
|
-
}),
|
|
112
|
-
description: t({
|
|
113
|
-
en: "Create your first dictionary to start using Intlayer",
|
|
114
|
-
"en-GB": "Create your first dictionary to start using Intlayer",
|
|
115
|
-
fr: "Créez votre premier dictionnaire pour commencer à utiliser Intlayer",
|
|
116
|
-
es: "Cree su primer diccionario para comenzar a usar Intlayer",
|
|
117
|
-
de: "Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",
|
|
118
|
-
ja: "Intlayerを使用するために最初の辞書を作成してください",
|
|
119
|
-
ko: "Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",
|
|
120
|
-
zh: "创建您的第一个字典以开始使用Intlayer",
|
|
121
|
-
it: "Crea il tuo primo dizionario per iniziare a usare Intlayer",
|
|
122
|
-
pt: "Crie seu primeiro dicionário para começar a usar o Intlayer",
|
|
123
|
-
hi: "Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",
|
|
124
|
-
ar: "أنشئ قاموسك الأول لبدء استخدام Intlayer",
|
|
125
|
-
ru: "Создайте свой первый словарь, чтобы начать использовать Intlayer",
|
|
126
|
-
tr: "Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun",
|
|
127
|
-
pl: "Utwórz swój pierwszy słownik, aby zacząć korzystać z Intlayer",
|
|
128
|
-
id: "Buat dictionary pertama Anda untuk mulai menggunakan Intlayer",
|
|
129
|
-
vi: "Tạo từ điển đầu tiên của bạn để bắt đầu sử dụng Intlayer",
|
|
130
|
-
uk: "Створіть свій перший словник, щоб почати користуватися Intlayer"
|
|
131
|
-
})
|
|
132
|
-
},
|
|
133
|
-
createDictionaryTitle: t({
|
|
134
|
-
en: "No dictionary",
|
|
135
|
-
"en-GB": "No dictionary",
|
|
136
|
-
fr: "Aucun dictionnaire",
|
|
137
|
-
es: "Sin diccionario",
|
|
138
|
-
de: "Kein Wörterbuch",
|
|
139
|
-
ja: "辞書がありません",
|
|
140
|
-
ko: "사전이 없습니다",
|
|
141
|
-
zh: "没有字典",
|
|
142
|
-
it: "Nessun dizionario",
|
|
143
|
-
pt: "Nenhum dicionário",
|
|
144
|
-
hi: "कोई शब्दकोश नहीं",
|
|
145
|
-
ar: "لا يوجد قاموس",
|
|
146
|
-
ru: "Нет словаря",
|
|
147
|
-
tr: "Hiç sözlük yok",
|
|
148
|
-
pl: "Brak słownika",
|
|
149
|
-
id: "Tidak ada dictionary",
|
|
150
|
-
vi: "Chưa có từ điển",
|
|
151
|
-
uk: "Немає словника"
|
|
152
|
-
}),
|
|
153
|
-
createDictionaryDescription: t({
|
|
154
|
-
en: "Create your first dictionary to start using Intlayer",
|
|
155
|
-
"en-GB": "Create your first dictionary to start using Intlayer",
|
|
156
|
-
fr: "Créez votre premier dictionnaire pour commencer à utiliser Intlayer",
|
|
157
|
-
es: "Cree su primer diccionario para comenzar a usar Intlayer",
|
|
158
|
-
de: "Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",
|
|
159
|
-
ja: "Intlayerを使用するために最初の辞書を作成してください",
|
|
160
|
-
ko: "Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",
|
|
161
|
-
zh: "创建您的第一个字典以开始使用Intlayer",
|
|
162
|
-
it: "Crea il tuo primo dizionario per iniziare a usare Intlayer",
|
|
163
|
-
pt: "Crie seu primeiro dicionário para começar a usar o Intlayer",
|
|
164
|
-
hi: "Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",
|
|
165
|
-
ar: "أنشئ قاموسك الأول لبدء استخدام Intlayer",
|
|
166
|
-
ru: "Создайте свой первый словарь, чтобы начать использовать Intlayer",
|
|
167
|
-
tr: "Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun",
|
|
168
|
-
pl: "Utwórz swój pierwszy słownik, aby zacząć korzystać z Intlayer",
|
|
169
|
-
id: "Buat dictionary pertama Anda untuk mulai menggunakan Intlayer",
|
|
170
|
-
vi: "Tạo từ điển đầu tiên của bạn để bắt đầu sử dụng Intlayer",
|
|
171
|
-
uk: "Створіть свій перший словник, щоб почати користуватися Intlayer"
|
|
172
|
-
}),
|
|
173
91
|
createDictionaryButton: {
|
|
174
92
|
text: t({
|
|
175
93
|
en: "Create dictionary",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionaryCreationForm.content.mjs","names":[],"sources":["../../../../../src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],"sourcesContent":["import { type Dictionary, t } from 'intlayer';\n\nexport const dictionaryFormContent = {\n key: 'dictionary-form',\n content: {\n keyInput: {\n label: t({\n en: 'Key',\n 'en-GB': 'Key',\n fr: 'Clé',\n es: 'Clave',\n de: 'Schlüssel',\n ja: 'キー',\n ko: '키',\n zh: '键',\n it: 'Chiave',\n pt: 'Chave',\n hi: 'कुंजी',\n ar: 'مفتاح',\n ru: 'Ключ',\n tr: 'Anahtar',\n pl: 'Klucz',\n id: 'Key',\n vi: 'Key',\n uk: 'Ключ',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n 'en-GB': 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n de: 'Geben Sie den Schlüssel Ihres Wörterbuchs ein',\n ja: '辞書のキーを入力してください',\n ko: '사전의 키를 입력하세요',\n zh: '输入字典的键',\n it: 'Inserisci la chiave del tuo dizionario',\n pt: 'Insira a chave do seu dicionário',\n hi: 'अपने शब्दकोश की कुंजी दर्ज करें',\n ar: 'أدخل مفتاح القاموس الخاص بك',\n ru: 'Введите ключ вашего словаря',\n tr: 'Sözlüğünüzün anahtarını girin',\n pl: 'Wprowadź klucz słownika',\n id: 'Masukkan key dictionary Anda',\n vi: 'Nhập key của từ điển của bạn',\n uk: 'Введіть ключ вашого словника',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n 'en-GB': 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n de: 'Projekte',\n ja: 'プロジェクト',\n ko: '프로젝트',\n zh: '项目',\n it: 'Progetti',\n pt: 'Projetos',\n hi: 'प्रोजेक्ट',\n ar: 'مشاريع',\n ru: 'Проекты',\n tr: 'Projeler',\n pl: 'Projekty',\n id: 'Projects',\n vi: 'Dự án',\n uk: 'Проєкти',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n 'en-GB':\n 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n de: 'Wählen Sie ein oder mehrere Projekte aus, um sie mit Ihrem Wörterbuch zu verknüpfen',\n ja: '辞書に関連付けるプロジェクトを1つ以上選択してください',\n ko: '사전과 연결할 프로젝트를 하나 이상 선택하세요',\n zh: '选择一个或多个项目与您的字典关联',\n it: 'Seleziona uno o più progetti da associare al tuo dizionario',\n pt: 'Selecione um ou mais projetos para associar ao seu dicionário',\n hi: 'अपने शब्दकोश से जोड़ने के लिए एक या एक से अधिक प्रोजेक्ट चुनें',\n ar: 'حدد مشروعًا أو أكثر للربط مع قاموسك',\n ru: 'Выберите один или несколько проектов для связывания со словарем',\n tr: 'Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin',\n pl: 'Wybierz jeden lub więcej projektów do powiązania z tym słownikiem',\n id: 'Pilih satu atau lebih Projects untuk dikaitkan dengan dictionary Anda',\n vi: 'Chọn một hoặc nhiều dự án để liên kết với từ điển của bạn',\n uk: \"Виберіть один або кілька проєктів, щоб пов'язати їх із вашим словником\",\n }),\n },\n\n noDictionaryView: {\n title: t({\n en: 'No dictionary',\n 'en-GB': 'No dictionary',\n fr: 'Aucun dictionnaire',\n es: 'Sin diccionario',\n de: 'Kein Wörterbuch',\n ja: '辞書がありません',\n ko: '사전이 없습니다',\n zh: '没有字典',\n it: 'Nessun dizionario',\n pt: 'Nenhum dicionário',\n hi: 'कोई शब्दकोश नहीं',\n ar: 'لا يوجد قاموس',\n ru: 'Нет словаря',\n tr: 'Hiç sözlük yok',\n pl: 'Brak słownika',\n id: 'Tidak ada dictionary',\n vi: 'Chưa có từ điển',\n uk: 'Немає словника',\n }),\n description: t({\n en: 'Create your first dictionary to start using Intlayer',\n 'en-GB': 'Create your first dictionary to start using Intlayer',\n fr: 'Créez votre premier dictionnaire pour commencer à utiliser Intlayer',\n es: 'Cree su primer diccionario para comenzar a usar Intlayer',\n de: 'Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden',\n ja: 'Intlayerを使用するために最初の辞書を作成してください',\n ko: 'Intlayer를 사용하려면 첫 번째 사전을 만들어주세요',\n zh: '创建您的第一个字典以开始使用Intlayer',\n it: 'Crea il tuo primo dizionario per iniziare a usare Intlayer',\n pt: 'Crie seu primeiro dicionário para começar a usar o Intlayer',\n hi: 'Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं',\n ar: 'أنشئ قاموسك الأول لبدء استخدام Intlayer',\n ru: 'Создайте свой первый словарь, чтобы начать использовать Intlayer',\n tr: \"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun\",\n pl: 'Utwórz swój pierwszy słownik, aby zacząć korzystać z Intlayer',\n id: 'Buat dictionary pertama Anda untuk mulai menggunakan Intlayer',\n vi: 'Tạo từ điển đầu tiên của bạn để bắt đầu sử dụng Intlayer',\n uk: 'Створіть свій перший словник, щоб почати користуватися Intlayer',\n }),\n },\n\n createDictionaryTitle: t({\n en: 'No dictionary',\n 'en-GB': 'No dictionary',\n fr: 'Aucun dictionnaire',\n es: 'Sin diccionario',\n de: 'Kein Wörterbuch',\n ja: '辞書がありません',\n ko: '사전이 없습니다',\n zh: '没有字典',\n it: 'Nessun dizionario',\n pt: 'Nenhum dicionário',\n hi: 'कोई शब्दकोश नहीं',\n ar: 'لا يوجد قاموس',\n ru: 'Нет словаря',\n tr: 'Hiç sözlük yok',\n pl: 'Brak słownika',\n id: 'Tidak ada dictionary',\n vi: 'Chưa có từ điển',\n uk: 'Немає словника',\n }),\n\n createDictionaryDescription: t({\n en: 'Create your first dictionary to start using Intlayer',\n 'en-GB': 'Create your first dictionary to start using Intlayer',\n fr: 'Créez votre premier dictionnaire pour commencer à utiliser Intlayer',\n es: 'Cree su primer diccionario para comenzar a usar Intlayer',\n de: 'Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden',\n ja: 'Intlayerを使用するために最初の辞書を作成してください',\n ko: 'Intlayer를 사용하려면 첫 번째 사전을 만들어주세요',\n zh: '创建您的第一个字典以开始使用Intlayer',\n it: 'Crea il tuo primo dizionario per iniziare a usare Intlayer',\n pt: 'Crie seu primeiro dicionário para começar a usar o Intlayer',\n hi: 'Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं',\n ar: 'أنشئ قاموسك الأول لبدء استخدام Intlayer',\n ru: 'Создайте свой первый словарь, чтобы начать использовать Intlayer',\n tr: \"Intlayer'ı kullanmaya başlamak için ilk sözlüğünüzü oluşturun\",\n pl: 'Utwórz swój pierwszy słownik, aby zacząć korzystać z Intlayer',\n id: 'Buat dictionary pertama Anda untuk mulai menggunakan Intlayer',\n vi: 'Tạo từ điển đầu tiên của bạn để bắt đầu sử dụng Intlayer',\n uk: 'Створіть свій перший словник, щоб почати користуватися Intlayer',\n }),\n\n createDictionaryButton: {\n text: t({\n en: 'Create dictionary',\n 'en-GB': 'Create dictionary',\n fr: 'Créer un dictionnaire',\n es: 'Crear un diccionario',\n de: 'Wörterbuch erstellen',\n ja: '辞書を作成',\n ko: '사전 만들기',\n zh: '创建字典',\n it: 'Crea dizionario',\n pt: 'Criar dicionário',\n hi: 'शब्दकोश बनाएँ',\n ar: 'إنشاء قاموس',\n ru: 'Создать словарь',\n tr: 'Sözlük oluştur',\n pl: 'Utwórz słownik',\n id: 'Buat dictionary',\n vi: 'Tạo từ điển',\n uk: 'Створити словник',\n }),\n ariaLabel: t({\n en: 'Click to create dictionary',\n 'en-GB': 'Click to create dictionary',\n fr: 'Cliquez pour créer un dictionnaire',\n es: 'Haga clic para crear un diccionario',\n de: 'Klicken Sie, um ein Wörterbuch zu erstellen',\n ja: '辞書を作成するにはクリックしてください',\n ko: '사전을 만들려면 클릭하세요',\n zh: '点击创建字典',\n it: 'Clicca per creare un dizionario',\n pt: 'Clique para criar dicionário',\n hi: 'शब्दकोश बनाने के लिए क्लिक करें',\n ar: 'انقر لإنشاء قاموس',\n ru: 'Нажмите, чтобы создать словарь',\n tr: 'Sözlük oluşturmak için tıklayın',\n pl: 'Kliknij, aby utworzyć słownik',\n id: 'Klik untuk membuat dictionary',\n vi: 'Nhấn để tạo từ điển',\n uk: 'Натисніть, щоб створити словник',\n }),\n },\n\n editButton: {\n text: t({\n en: 'Edit dictionary',\n 'en-GB': 'Edit dictionary',\n fr: 'Modifier le dictionnaire',\n es: 'Editar el diccionario',\n de: 'Wörterbuch bearbeiten',\n ja: '辞書を編集',\n ko: '사전 편집',\n zh: '编辑字典',\n it: 'Modifica dizionario',\n pt: 'Editar dicionário',\n hi: 'शब्दकोश संपादित करें',\n ar: 'تعديل القاموس',\n ru: 'Редактировать словарь',\n tr: 'Sözlüğü düzenle',\n pl: 'Edytuj słownik',\n id: 'Edit dictionary',\n vi: 'Chỉnh sửa từ điển',\n uk: 'Редагувати словник',\n }),\n ariaLabel: t({\n en: 'Click to edit',\n 'en-GB': 'Click to edit',\n fr: 'Cliquez pour modifier',\n es: 'Haga clic para editar',\n de: 'Klicken Sie, um zu bearbeiten',\n ja: '編集するにはクリックしてください',\n ko: '편집하려면 클릭하세요',\n zh: '点击编辑',\n it: 'Clicca per modificare',\n pt: 'Clique para editar',\n hi: 'संपादित करने के लिए क्लिक करें',\n ar: 'انقر لتعديل',\n ru: 'Нажмите, чтобы отредактировать',\n tr: 'Düzenlemek için tıklayın',\n pl: 'Kliknij, aby edytować',\n id: 'Klik untuk mengedit',\n vi: 'Nhấn để chỉnh sửa',\n uk: 'Натисніть, щоб редагувати словник',\n }),\n },\n },\n title: 'Dictionary form',\n description:\n 'Content declarations for the dictionary creation form, including labels, placeholders, titles, descriptions, and button texts for managing dictionaries within Intlayer.',\n tags: ['form', 'dictionary creation', 'intlayer cms'],\n} satisfies Dictionary;\n\nexport default dictionaryFormContent;\n"],"mappings":";;;AAEA,MAAa,wBAAwB;CACnC,KAAK;CACL,SAAS;EACP,UAAU;GACR,OAAO,EAAE;IACP,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACF,aAAa,EAAE;IACb,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ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,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACH;EACF;CACD,OAAO;CACP,aACE;CACF,MAAM;EAAC;EAAQ;EAAuB;EAAe;CACtD"}
|
|
1
|
+
{"version":3,"file":"dictionaryCreationForm.content.mjs","names":[],"sources":["../../../../../src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],"sourcesContent":["import { type Dictionary, t } from 'intlayer';\n\nexport const dictionaryFormContent = {\n key: 'dictionary-form',\n content: {\n keyInput: {\n label: t({\n en: 'Key',\n 'en-GB': 'Key',\n fr: 'Clé',\n es: 'Clave',\n de: 'Schlüssel',\n ja: 'キー',\n ko: '키',\n zh: '键',\n it: 'Chiave',\n pt: 'Chave',\n hi: 'कुंजी',\n ar: 'مفتاح',\n ru: 'Ключ',\n tr: 'Anahtar',\n pl: 'Klucz',\n id: 'Key',\n vi: 'Key',\n uk: 'Ключ',\n }),\n placeholder: t({\n en: 'Enter the key of your dictionary',\n 'en-GB': 'Enter the key of your dictionary',\n fr: 'Entrez la clé de votre dictionnaire',\n es: 'Ingrese la clave de su diccionario',\n de: 'Geben Sie den Schlüssel Ihres Wörterbuchs ein',\n ja: '辞書のキーを入力してください',\n ko: '사전의 키를 입력하세요',\n zh: '输入字典的键',\n it: 'Inserisci la chiave del tuo dizionario',\n pt: 'Insira a chave do seu dicionário',\n hi: 'अपने शब्दकोश की कुंजी दर्ज करें',\n ar: 'أدخل مفتاح القاموس الخاص بك',\n ru: 'Введите ключ вашего словаря',\n tr: 'Sözlüğünüzün anahtarını girin',\n pl: 'Wprowadź klucz słownika',\n id: 'Masukkan key dictionary Anda',\n vi: 'Nhập key của từ điển của bạn',\n uk: 'Введіть ключ вашого словника',\n }),\n },\n\n projectInput: {\n label: t({\n en: 'Projects',\n 'en-GB': 'Projects',\n fr: 'Projets',\n es: 'Proyectos',\n de: 'Projekte',\n ja: 'プロジェクト',\n ko: '프로젝트',\n zh: '项目',\n it: 'Progetti',\n pt: 'Projetos',\n hi: 'प्रोजेक्ट',\n ar: 'مشاريع',\n ru: 'Проекты',\n tr: 'Projeler',\n pl: 'Projekty',\n id: 'Projects',\n vi: 'Dự án',\n uk: 'Проєкти',\n }),\n placeholder: t({\n en: 'Select one or more projects to associate with your dictionary',\n 'en-GB':\n 'Select one or more projects to associate with your dictionary',\n fr: 'Sélectionnez un ou plusieurs projets à associer à votre dictionnaire',\n es: 'Seleccione uno o más proyectos para asociar con su diccionario',\n de: 'Wählen Sie ein oder mehrere Projekte aus, um sie mit Ihrem Wörterbuch zu verknüpfen',\n ja: '辞書に関連付けるプロジェクトを1つ以上選択してください',\n ko: '사전과 연결할 프로젝트를 하나 이상 선택하세요',\n zh: '选择一个或多个项目与您的字典关联',\n it: 'Seleziona uno o più progetti da associare al tuo dizionario',\n pt: 'Selecione um ou mais projetos para associar ao seu dicionário',\n hi: 'अपने शब्दकोश से जोड़ने के लिए एक या एक से अधिक प्रोजेक्ट चुनें',\n ar: 'حدد مشروعًا أو أكثر للربط مع قاموسك',\n ru: 'Выберите один или несколько проектов для связывания со словарем',\n tr: 'Sözlüğünüzle ilişkilendirmek için bir veya daha fazla proje seçin',\n pl: 'Wybierz jeden lub więcej projektów do powiązania z tym słownikiem',\n id: 'Pilih satu atau lebih Projects untuk dikaitkan dengan dictionary Anda',\n vi: 'Chọn một hoặc nhiều dự án để liên kết với từ điển của bạn',\n uk: \"Виберіть один або кілька проєктів, щоб пов'язати їх із вашим словником\",\n }),\n },\n\n createDictionaryButton: {\n text: t({\n en: 'Create dictionary',\n 'en-GB': 'Create dictionary',\n fr: 'Créer un dictionnaire',\n es: 'Crear un diccionario',\n de: 'Wörterbuch erstellen',\n ja: '辞書を作成',\n ko: '사전 만들기',\n zh: '创建字典',\n it: 'Crea dizionario',\n pt: 'Criar dicionário',\n hi: 'शब्दकोश बनाएँ',\n ar: 'إنشاء قاموس',\n ru: 'Создать словарь',\n tr: 'Sözlük oluştur',\n pl: 'Utwórz słownik',\n id: 'Buat dictionary',\n vi: 'Tạo từ điển',\n uk: 'Створити словник',\n }),\n ariaLabel: t({\n en: 'Click to create dictionary',\n 'en-GB': 'Click to create dictionary',\n fr: 'Cliquez pour créer un dictionnaire',\n es: 'Haga clic para crear un diccionario',\n de: 'Klicken Sie, um ein Wörterbuch zu erstellen',\n ja: '辞書を作成するにはクリックしてください',\n ko: '사전을 만들려면 클릭하세요',\n zh: '点击创建字典',\n it: 'Clicca per creare un dizionario',\n pt: 'Clique para criar dicionário',\n hi: 'शब्दकोश बनाने के लिए क्लिक करें',\n ar: 'انقر لإنشاء قاموس',\n ru: 'Нажмите, чтобы создать словарь',\n tr: 'Sözlük oluşturmak için tıklayın',\n pl: 'Kliknij, aby utworzyć słownik',\n id: 'Klik untuk membuat dictionary',\n vi: 'Nhấn để tạo từ điển',\n uk: 'Натисніть, щоб створити словник',\n }),\n },\n\n editButton: {\n text: t({\n en: 'Edit dictionary',\n 'en-GB': 'Edit dictionary',\n fr: 'Modifier le dictionnaire',\n es: 'Editar el diccionario',\n de: 'Wörterbuch bearbeiten',\n ja: '辞書を編集',\n ko: '사전 편집',\n zh: '编辑字典',\n it: 'Modifica dizionario',\n pt: 'Editar dicionário',\n hi: 'शब्दकोश संपादित करें',\n ar: 'تعديل القاموس',\n ru: 'Редактировать словарь',\n tr: 'Sözlüğü düzenle',\n pl: 'Edytuj słownik',\n id: 'Edit dictionary',\n vi: 'Chỉnh sửa từ điển',\n uk: 'Редагувати словник',\n }),\n ariaLabel: t({\n en: 'Click to edit',\n 'en-GB': 'Click to edit',\n fr: 'Cliquez pour modifier',\n es: 'Haga clic para editar',\n de: 'Klicken Sie, um zu bearbeiten',\n ja: '編集するにはクリックしてください',\n ko: '편집하려면 클릭하세요',\n zh: '点击编辑',\n it: 'Clicca per modificare',\n pt: 'Clique para editar',\n hi: 'संपादित करने के लिए क्लिक करें',\n ar: 'انقر لتعديل',\n ru: 'Нажмите, чтобы отредактировать',\n tr: 'Düzenlemek için tıklayın',\n pl: 'Kliknij, aby edytować',\n id: 'Klik untuk mengedit',\n vi: 'Nhấn để chỉnh sửa',\n uk: 'Натисніть, щоб редагувати словник',\n }),\n },\n },\n title: 'Dictionary form',\n description:\n 'Content declarations for the dictionary creation form, including labels, placeholders, titles, descriptions, and button texts for managing dictionaries within Intlayer.',\n tags: ['form', 'dictionary creation', 'intlayer cms'],\n} satisfies Dictionary;\n\nexport default dictionaryFormContent;\n"],"mappings":";;;AAEA,MAAa,wBAAwB;CACnC,KAAK;CACL,SAAS;EACP,UAAU;GACR,OAAO,EAAE;IACP,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACF,aAAa,EAAE;IACb,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACH;EAED,cAAc;GACZ,OAAO,EAAE;IACP,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACF,aAAa,EAAE;IACb,IAAI;IACJ,SACE;IACF,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IAC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
package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { useSession } from "../../../hooks/useAuth/useSession.mjs";
|
|
4
|
+
import { useAuditContentDeclarationMetadata, useGetProjects, useGetTags } from "../../../hooks/reactQuery.mjs";
|
|
3
5
|
import { Loader } from "../../Loader/index.mjs";
|
|
4
6
|
import { ButtonColor, ButtonSize, ButtonVariant } from "../../Button/Button.mjs";
|
|
5
7
|
import { Checkbox } from "../../Input/Checkbox.mjs";
|
|
6
|
-
import { useSession } from "../../../hooks/useAuth/useSession.mjs";
|
|
7
|
-
import { useAuditContentDeclarationMetadata, useGetProjects, useGetTags } from "../../../hooks/reactQuery.mjs";
|
|
8
8
|
import { MultiSelect } from "../../Select/Multiselect.mjs";
|
|
9
9
|
import { Select } from "../../Select/Select.mjs";
|
|
10
10
|
import { useForm as useForm$1 } from "../../Form/FormBase.mjs";
|
|
@@ -13,8 +13,8 @@ import { useDictionaryDetailsSchema } from "./useDictionaryDetailsSchema.mjs";
|
|
|
13
13
|
import { useEffect } from "react";
|
|
14
14
|
import { WandSparkles } from "lucide-react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { useIntlayer } from "react-intlayer";
|
|
17
16
|
import { useEditedContent } from "@intlayer/editor-react";
|
|
17
|
+
import { useIntlayer } from "react-intlayer";
|
|
18
18
|
import { AnimatePresence, motion } from "framer-motion";
|
|
19
19
|
import { useWatch } from "react-hook-form";
|
|
20
20
|
|
|
@@ -12,8 +12,8 @@ import { StructureEditor } from "./StructureEditor.mjs";
|
|
|
12
12
|
import { useEffect } from "react";
|
|
13
13
|
import { ArrowLeft } from "lucide-react";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { useIntlayer } from "react-intlayer";
|
|
16
15
|
import { useConfiguration, useDictionariesRecordActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
16
|
+
import { useIntlayer } from "react-intlayer";
|
|
17
17
|
|
|
18
18
|
//#region src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx
|
|
19
19
|
const DictionaryFieldEditor = ({ dictionary, onClickDictionaryList, isDarkMode, mode, onDelete, onSave, showReturnButton = true }) => {
|
|
@@ -3,9 +3,9 @@ import { Accordion } from "../../Accordion/Accordion.mjs";
|
|
|
3
3
|
import { getIsEditableSection } from "../getIsEditableSection.mjs";
|
|
4
4
|
import { ChevronRight, Plus } from "lucide-react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
6
7
|
import { internationalization } from "@intlayer/config/built";
|
|
7
8
|
import { useIntlayer } from "react-intlayer";
|
|
8
|
-
import { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
9
9
|
import { getContentNodeByKeyPath, getEmptyNode, getNodeType } from "@intlayer/core/dictionaryManipulator";
|
|
10
10
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
11
11
|
import { isSameKeyPath } from "@intlayer/core/utils";
|
package/dist/esm/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs
CHANGED
|
@@ -211,48 +211,6 @@ const navigationViewContent = {
|
|
|
211
211
|
vi: "Xóa enumeration",
|
|
212
212
|
uk: "Видалити перелік"
|
|
213
213
|
})
|
|
214
|
-
},
|
|
215
|
-
addNewCondition: {
|
|
216
|
-
label: t({
|
|
217
|
-
en: "Click to add condition",
|
|
218
|
-
"en-GB": "Click to add condition",
|
|
219
|
-
fr: "Cliquez pour ajouter une condition",
|
|
220
|
-
es: "Haga clic para agregar una condición",
|
|
221
|
-
de: "Klicken Sie, um eine Bedingung hinzuzufügen",
|
|
222
|
-
ja: "条件を追加するにはクリック",
|
|
223
|
-
ko: "조건을 추가하려면 클릭하세요",
|
|
224
|
-
zh: "点击添加条件",
|
|
225
|
-
it: "Clicca per aggiungere una condizione",
|
|
226
|
-
pt: "Clique para adicionar uma condição",
|
|
227
|
-
hi: "शर्ते जोड़ने के लिए क्लिक करें",
|
|
228
|
-
ar: "انقر لإضافة شرط",
|
|
229
|
-
ru: "Нажмите, чтобы добавить условие",
|
|
230
|
-
tr: "Koşul eklemek için tıklayın",
|
|
231
|
-
pl: "Kliknij, aby dodać warunek",
|
|
232
|
-
id: "Klik untuk menambah kondisi",
|
|
233
|
-
vi: "Nhấp để thêm điều kiện",
|
|
234
|
-
uk: "Натисніть, щоб додати умову"
|
|
235
|
-
}),
|
|
236
|
-
text: t({
|
|
237
|
-
en: "Add new condition",
|
|
238
|
-
"en-GB": "Add new condition",
|
|
239
|
-
fr: "Ajouter une nouvelle condition",
|
|
240
|
-
es: "Agregar nueva condición",
|
|
241
|
-
de: "Neue Bedingung hinzufügen",
|
|
242
|
-
ja: "新しい条件を追加",
|
|
243
|
-
ko: "새 조건 추가",
|
|
244
|
-
zh: "添加新条件",
|
|
245
|
-
it: "Aggiungi nuova condizione",
|
|
246
|
-
pt: "Adicionar nova condição",
|
|
247
|
-
hi: "नया शर्ते जोड़ें",
|
|
248
|
-
ar: "أضف شرطًا جديدًا",
|
|
249
|
-
ru: "Добавить новое условие",
|
|
250
|
-
tr: "Yeni koşul ekle",
|
|
251
|
-
pl: "Dodaj nowy warunek",
|
|
252
|
-
id: "Tambahkan kondisi baru",
|
|
253
|
-
vi: "Thêm điều kiện mới",
|
|
254
|
-
uk: "Додати нову умову"
|
|
255
|
-
})
|
|
256
214
|
}
|
|
257
215
|
},
|
|
258
216
|
title: "Navigation view content",
|
package/dist/esm/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigationViewNode.content.mjs","names":[],"sources":["../../../../../src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],"sourcesContent":["import { type Dictionary, t } from 'intlayer';\n\nexport const navigationViewContent = {\n key: 'navigation-view',\n content: {\n tsxNotEditable: t({\n en: 'React node is not editable',\n 'en-GB': 'React node is not editable',\n fr: 'Node React non éditable',\n es: 'Nodo React no editable',\n de: 'React-Knoten ist nicht bearbeitbar',\n ja: '編集できないReactノードです',\n ko: '편집할 수 없는 React 노드입니다',\n zh: '不可编辑的 React 节点',\n it: 'Node React non modificabile',\n pt: 'Nó React não editável',\n hi: 'सम्पादित न करने योग्य React नोड',\n ar: 'عقدة React غير قابلة للتحرير',\n ru: 'React-узел не редактируемый',\n tr: 'React düğümü düzenlenemez',\n pl: 'Węzeł React nie jest edytowalny',\n id: 'React node tidak dapat diedit',\n vi: 'React node không thể chỉnh sửa',\n uk: 'Елемент React не редагується',\n }),\n goToField: {\n label: t({\n en: 'Go to field',\n 'en-GB': 'Go to field',\n fr: 'Aller au champ',\n es: 'Ir al campo',\n de: 'Zum Feld gehen',\n ja: 'フィールドに移動',\n ko: '필드로 이동',\n zh: '转到字段',\n it: 'Vai al campo',\n pt: 'Ir para o campo',\n hi: 'फ़ील्ड पर जाएं',\n ar: 'اذهب إلى الحقل',\n ru: 'Перейти к полю',\n tr: 'Alana git',\n pl: 'Przejdź do pola',\n id: 'Buka field',\n vi: 'Đi tới trường',\n uk: 'Перейти до поля',\n }),\n },\n addNewElement: {\n label: t({\n en: 'Click to add element',\n 'en-GB': 'Click to add element',\n fr: 'Cliquez pour ajouter un élément',\n es: 'Haga clic para agregar un elemento',\n de: 'Klicken Sie, um ein Element hinzuzufügen',\n ja: '要素を追加するにはクリック',\n ko: '요소를 추가하려면 클릭하세요',\n zh: '点击添加元素',\n it: 'Clicca per aggiungere un elemento',\n pt: 'Clique para adicionar um elemento',\n hi: 'तत्व जोड़ने के लिए क्लिक करें',\n ar: 'انقر لإضافة عنصر',\n ru: 'Нажмите, чтобы добавить элемент',\n tr: 'Eleman eklemek için tıklayın',\n pl: 'Kliknij, aby dodać element',\n id: 'Klik untuk menambah elemen',\n vi: 'Nhấp để thêm phần tử',\n uk: 'Натисніть, щоб додати елемент',\n }),\n text: t({\n en: 'Add new element',\n 'en-GB': 'Add new element',\n fr: 'Ajouter un nouvel élément',\n es: 'Agregar nuevo elemento',\n de: 'Neues Element hinzufügen',\n ja: '新しい要素を追加',\n ko: '새 요소 추가',\n zh: '添加新元素',\n it: 'Aggiungi nuovo elemento',\n pt: 'Adicionar novo elemento',\n hi: 'नया तत्व जोड़ें',\n ar: 'أضف عنصرًا جديدًا',\n ru: 'Добавить новый элемент',\n tr: 'Yeni eleman ekle',\n pl: 'Dodaj nowy element',\n id: 'Tambahkan elemen baru',\n vi: 'Thêm phần tử mới',\n uk: 'Додати новий елемент',\n }),\n },\n removeElement: {\n label: t({\n en: 'Click to remove element',\n 'en-GB': 'Click to remove element',\n fr: 'Cliquez pour supprimer un élément',\n es: 'Haga clic para eliminar un elemento',\n de: 'Klicken Sie, um ein Element zu entfernen',\n ja: '要素を削除するにはクリック',\n ko: '요소를 제거하려면 클릭하세요',\n zh: '点击删除元素',\n it: 'Clicca per rimuovere un elemento',\n pt: 'Clique para remover um elemento',\n hi: 'तत्व निकालने के लिए क्लिक करें',\n ar: 'انقر لإزالة عنصر',\n ru: 'Нажмите, чтобы удалить элемент',\n tr: 'Elemanı kaldırmak için tıklayın',\n pl: 'Kliknij, aby usunąć element',\n id: 'Klik untuk menghapus elemen',\n vi: 'Nhấp để xóa phần tử',\n uk: 'Натисніть, щоб видалити елемент',\n }),\n text: t({\n en: 'Remove element',\n 'en-GB': 'Remove element',\n fr: 'Supprimer l’élément',\n es: 'Eliminar elemento',\n de: 'Element entfernen',\n ja: '要素を削除',\n ko: '요소 제거',\n zh: '删除元素',\n it: 'Rimuovi elemento',\n pt: 'Remover elemento',\n hi: 'तत्व निकालें',\n ar: 'إزالة عنصر',\n ru: 'Удалить элемент',\n tr: 'Elemanı kaldır',\n pl: 'Usuń element',\n id: 'Hapus elemen',\n vi: 'Xóa phần tử',\n uk: 'Видалити елемент',\n }),\n },\n addNewEnumeration: {\n label: t({\n en: 'Click to add enumeration',\n 'en-GB': 'Click to add enumeration',\n fr: 'Cliquez pour ajouter une énumération',\n es: 'Haga clic para agregar una enumeración',\n de: 'Klicken Sie, um eine Aufzählung hinzuzufügen',\n ja: '列挙を追加するにはクリック',\n ko: '열거를 추가하려면 클릭하세요',\n zh: '点击添加枚举',\n it: 'Clicca per aggiungere un enumerazione',\n pt: 'Clique para adicionar uma enumeração',\n hi: 'सूची जोड़ने के लिए क्लिक करें',\n ar: 'انقر لإضافة تعداد',\n ru: 'Нажмите, чтобы добавить перечисление',\n tr: 'Numaralandırma eklemek için tıklayın',\n pl: 'Kliknij, aby dodać enumerację',\n id: 'Klik untuk menambah enumerasi',\n vi: 'Nhấp để thêm enumeration',\n uk: 'Натисніть, щоб додати перелік',\n }),\n text: t({\n en: 'Add new enumeration',\n 'en-GB': 'Add new enumeration',\n fr: 'Ajouter une nouvelle énumération',\n es: 'Agregar nueva enumeración',\n de: 'Neue Aufzählung hinzufügen',\n ja: '新しい列挙を追加',\n ko: '새 목록 추가',\n zh: '添加新枚举',\n it: 'Aggiungi nuova enumerazione',\n pt: 'Adicionar nova enumeração',\n hi: 'नया सूची जोड़ें',\n ar: 'أضف تعدادًا جديدًا',\n ru: 'Добавить новое перечисление',\n tr: 'Yeni numaralandırma ekle',\n pl: 'Dodaj nową enumerację',\n id: 'Tambahkan enumerasi baru',\n vi: 'Thêm enumeration mới',\n uk: 'Додати новий перелік',\n }),\n },\n removeEnumeration: {\n label: t({\n en: 'Click to remove enumeration',\n 'en-GB': 'Click to remove enumeration',\n fr: 'Cliquez pour supprimer une énumération',\n es: 'Haga clic para eliminar una enumeración',\n de: 'Klicken Sie, um eine Aufzählung zu entfernen',\n ja: '列挙を削除するにはクリック',\n ko: '목록을 제거하려면 클릭하세요',\n zh: '点击删除枚举',\n it: \"Clicca per rimuovere un'enumerazione\",\n pt: 'Clique para remover uma enumeração',\n hi: 'सूची निकालने के लिए क्लिक करें',\n ar: 'انقر لإزالة تعداد',\n ru: 'Нажмите, чтобы удалить перечисление',\n tr: 'Numaralandırmayı kaldırmak için tıklayın',\n pl: 'Kliknij, aby usunąć enumerację',\n id: 'Klik untuk menghapus enumerasi',\n vi: 'Nhấp để xóa enumeration',\n uk: 'Натисніть, щоб видалити перелік',\n }),\n text: t({\n en: 'Remove enumeration',\n 'en-GB': 'Remove enumeration',\n fr: 'Supprimer l’énumération',\n es: 'Eliminar enumeración',\n de: 'Aufzählung entfernen',\n ja: '列挙を削除',\n ko: '목록 제거',\n zh: '删除枚举',\n it: 'Rimuovi enumerazione',\n pt: 'Remover enumeração',\n hi: 'सूची निकालें',\n ar: 'إزالة تعداد',\n ru: 'Удалить перечисление',\n tr: 'Numaralandırmayı kaldır',\n pl: 'Usuń enumerację',\n id: 'Hapus enumerasi',\n vi: 'Xóa enumeration',\n uk: 'Видалити перелік',\n }),\n },\n addNewCondition: {\n label: t({\n en: 'Click to add condition',\n 'en-GB': 'Click to add condition',\n fr: 'Cliquez pour ajouter une condition',\n es: 'Haga clic para agregar una condición',\n de: 'Klicken Sie, um eine Bedingung hinzuzufügen',\n ja: '条件を追加するにはクリック',\n ko: '조건을 추가하려면 클릭하세요',\n zh: '点击添加条件',\n it: 'Clicca per aggiungere una condizione',\n pt: 'Clique para adicionar uma condição',\n hi: 'शर्ते जोड़ने के लिए क्लिक करें',\n ar: 'انقر لإضافة شرط',\n ru: 'Нажмите, чтобы добавить условие',\n tr: 'Koşul eklemek için tıklayın',\n pl: 'Kliknij, aby dodać warunek',\n id: 'Klik untuk menambah kondisi',\n vi: 'Nhấp để thêm điều kiện',\n uk: 'Натисніть, щоб додати умову',\n }),\n text: t({\n en: 'Add new condition',\n 'en-GB': 'Add new condition',\n fr: 'Ajouter une nouvelle condition',\n es: 'Agregar nueva condición',\n de: 'Neue Bedingung hinzufügen',\n ja: '新しい条件を追加',\n ko: '새 조건 추가',\n zh: '添加新条件',\n it: 'Aggiungi nuova condizione',\n pt: 'Adicionar nova condição',\n hi: 'नया शर्ते जोड़ें',\n ar: 'أضف شرطًا جديدًا',\n ru: 'Добавить новое условие',\n tr: 'Yeni koşul ekle',\n pl: 'Dodaj nowy warunek',\n id: 'Tambahkan kondisi baru',\n vi: 'Thêm điều kiện mới',\n uk: 'Додати нову умову',\n }),\n },\n },\n title: 'Navigation view content',\n description:\n 'Content declarations used for UI interactions within the navigation view of the Dictionary Field Editor. Includes labels and helper texts for adding or removing elements, enumerations, and conditions.',\n tags: ['editor UI', 'form navigation', 'dictionary editor'],\n} satisfies Dictionary;\n\nexport default navigationViewContent;\n"],"mappings":";;;AAEA,MAAa,wBAAwB;CACnC,KAAK;CACL,SAAS;EACP,gBAAgB,EAAE;GAChB,IAAI;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL,CAAC;EACF,WAAW,EACT,OAAO,EAAE;GACP,IAAI;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL,CAAC,EACH;EACD,eAAe;GACb,OAAO,EAAE;IACP,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACF,MAAM,EAAE;IACN,IAAI;IACJ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jB,OAAO,EAAE;IACP,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACF,MAAM,EAAE;IACN,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACH;EACD,iBAAiB;GACf,OAAO,EAAE;IACP,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACF,MAAM,EAAE;IACN,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACH;EACF;CACD,OAAO;CACP,aACE;CACF,MAAM;EAAC;EAAa;EAAmB;EAAoB;CAC5D"}
|
|
1
|
+
{"version":3,"file":"navigationViewNode.content.mjs","names":[],"sources":["../../../../../src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],"sourcesContent":["import { type Dictionary, t } from 'intlayer';\n\nexport const navigationViewContent = {\n key: 'navigation-view',\n content: {\n tsxNotEditable: t({\n en: 'React node is not editable',\n 'en-GB': 'React node is not editable',\n fr: 'Node React non éditable',\n es: 'Nodo React no editable',\n de: 'React-Knoten ist nicht bearbeitbar',\n ja: '編集できないReactノードです',\n ko: '편집할 수 없는 React 노드입니다',\n zh: '不可编辑的 React 节点',\n it: 'Node React non modificabile',\n pt: 'Nó React não editável',\n hi: 'सम्पादित न करने योग्य React नोड',\n ar: 'عقدة React غير قابلة للتحرير',\n ru: 'React-узел не редактируемый',\n tr: 'React düğümü düzenlenemez',\n pl: 'Węzeł React nie jest edytowalny',\n id: 'React node tidak dapat diedit',\n vi: 'React node không thể chỉnh sửa',\n uk: 'Елемент React не редагується',\n }),\n goToField: {\n label: t({\n en: 'Go to field',\n 'en-GB': 'Go to field',\n fr: 'Aller au champ',\n es: 'Ir al campo',\n de: 'Zum Feld gehen',\n ja: 'フィールドに移動',\n ko: '필드로 이동',\n zh: '转到字段',\n it: 'Vai al campo',\n pt: 'Ir para o campo',\n hi: 'फ़ील्ड पर जाएं',\n ar: 'اذهب إلى الحقل',\n ru: 'Перейти к полю',\n tr: 'Alana git',\n pl: 'Przejdź do pola',\n id: 'Buka field',\n vi: 'Đi tới trường',\n uk: 'Перейти до поля',\n }),\n },\n addNewElement: {\n label: t({\n en: 'Click to add element',\n 'en-GB': 'Click to add element',\n fr: 'Cliquez pour ajouter un élément',\n es: 'Haga clic para agregar un elemento',\n de: 'Klicken Sie, um ein Element hinzuzufügen',\n ja: '要素を追加するにはクリック',\n ko: '요소를 추가하려면 클릭하세요',\n zh: '点击添加元素',\n it: 'Clicca per aggiungere un elemento',\n pt: 'Clique para adicionar um elemento',\n hi: 'तत्व जोड़ने के लिए क्लिक करें',\n ar: 'انقر لإضافة عنصر',\n ru: 'Нажмите, чтобы добавить элемент',\n tr: 'Eleman eklemek için tıklayın',\n pl: 'Kliknij, aby dodać element',\n id: 'Klik untuk menambah elemen',\n vi: 'Nhấp để thêm phần tử',\n uk: 'Натисніть, щоб додати елемент',\n }),\n text: t({\n en: 'Add new element',\n 'en-GB': 'Add new element',\n fr: 'Ajouter un nouvel élément',\n es: 'Agregar nuevo elemento',\n de: 'Neues Element hinzufügen',\n ja: '新しい要素を追加',\n ko: '새 요소 추가',\n zh: '添加新元素',\n it: 'Aggiungi nuovo elemento',\n pt: 'Adicionar novo elemento',\n hi: 'नया तत्व जोड़ें',\n ar: 'أضف عنصرًا جديدًا',\n ru: 'Добавить новый элемент',\n tr: 'Yeni eleman ekle',\n pl: 'Dodaj nowy element',\n id: 'Tambahkan elemen baru',\n vi: 'Thêm phần tử mới',\n uk: 'Додати новий елемент',\n }),\n },\n removeElement: {\n label: t({\n en: 'Click to remove element',\n 'en-GB': 'Click to remove element',\n fr: 'Cliquez pour supprimer un élément',\n es: 'Haga clic para eliminar un elemento',\n de: 'Klicken Sie, um ein Element zu entfernen',\n ja: '要素を削除するにはクリック',\n ko: '요소를 제거하려면 클릭하세요',\n zh: '点击删除元素',\n it: 'Clicca per rimuovere un elemento',\n pt: 'Clique para remover um elemento',\n hi: 'तत्व निकालने के लिए क्लिक करें',\n ar: 'انقر لإزالة عنصر',\n ru: 'Нажмите, чтобы удалить элемент',\n tr: 'Elemanı kaldırmak için tıklayın',\n pl: 'Kliknij, aby usunąć element',\n id: 'Klik untuk menghapus elemen',\n vi: 'Nhấp để xóa phần tử',\n uk: 'Натисніть, щоб видалити елемент',\n }),\n text: t({\n en: 'Remove element',\n 'en-GB': 'Remove element',\n fr: 'Supprimer l’élément',\n es: 'Eliminar elemento',\n de: 'Element entfernen',\n ja: '要素を削除',\n ko: '요소 제거',\n zh: '删除元素',\n it: 'Rimuovi elemento',\n pt: 'Remover elemento',\n hi: 'तत्व निकालें',\n ar: 'إزالة عنصر',\n ru: 'Удалить элемент',\n tr: 'Elemanı kaldır',\n pl: 'Usuń element',\n id: 'Hapus elemen',\n vi: 'Xóa phần tử',\n uk: 'Видалити елемент',\n }),\n },\n addNewEnumeration: {\n label: t({\n en: 'Click to add enumeration',\n 'en-GB': 'Click to add enumeration',\n fr: 'Cliquez pour ajouter une énumération',\n es: 'Haga clic para agregar una enumeración',\n de: 'Klicken Sie, um eine Aufzählung hinzuzufügen',\n ja: '列挙を追加するにはクリック',\n ko: '열거를 추가하려면 클릭하세요',\n zh: '点击添加枚举',\n it: 'Clicca per aggiungere un enumerazione',\n pt: 'Clique para adicionar uma enumeração',\n hi: 'सूची जोड़ने के लिए क्लिक करें',\n ar: 'انقر لإضافة تعداد',\n ru: 'Нажмите, чтобы добавить перечисление',\n tr: 'Numaralandırma eklemek için tıklayın',\n pl: 'Kliknij, aby dodać enumerację',\n id: 'Klik untuk menambah enumerasi',\n vi: 'Nhấp để thêm enumeration',\n uk: 'Натисніть, щоб додати перелік',\n }),\n text: t({\n en: 'Add new enumeration',\n 'en-GB': 'Add new enumeration',\n fr: 'Ajouter une nouvelle énumération',\n es: 'Agregar nueva enumeración',\n de: 'Neue Aufzählung hinzufügen',\n ja: '新しい列挙を追加',\n ko: '새 목록 추가',\n zh: '添加新枚举',\n it: 'Aggiungi nuova enumerazione',\n pt: 'Adicionar nova enumeração',\n hi: 'नया सूची जोड़ें',\n ar: 'أضف تعدادًا جديدًا',\n ru: 'Добавить новое перечисление',\n tr: 'Yeni numaralandırma ekle',\n pl: 'Dodaj nową enumerację',\n id: 'Tambahkan enumerasi baru',\n vi: 'Thêm enumeration mới',\n uk: 'Додати новий перелік',\n }),\n },\n removeEnumeration: {\n label: t({\n en: 'Click to remove enumeration',\n 'en-GB': 'Click to remove enumeration',\n fr: 'Cliquez pour supprimer une énumération',\n es: 'Haga clic para eliminar una enumeración',\n de: 'Klicken Sie, um eine Aufzählung zu entfernen',\n ja: '列挙を削除するにはクリック',\n ko: '목록을 제거하려면 클릭하세요',\n zh: '点击删除枚举',\n it: \"Clicca per rimuovere un'enumerazione\",\n pt: 'Clique para remover uma enumeração',\n hi: 'सूची निकालने के लिए क्लिक करें',\n ar: 'انقر لإزالة تعداد',\n ru: 'Нажмите, чтобы удалить перечисление',\n tr: 'Numaralandırmayı kaldırmak için tıklayın',\n pl: 'Kliknij, aby usunąć enumerację',\n id: 'Klik untuk menghapus enumerasi',\n vi: 'Nhấp để xóa enumeration',\n uk: 'Натисніть, щоб видалити перелік',\n }),\n text: t({\n en: 'Remove enumeration',\n 'en-GB': 'Remove enumeration',\n fr: 'Supprimer l’énumération',\n es: 'Eliminar enumeración',\n de: 'Aufzählung entfernen',\n ja: '列挙を削除',\n ko: '목록 제거',\n zh: '删除枚举',\n it: 'Rimuovi enumerazione',\n pt: 'Remover enumeração',\n hi: 'सूची निकालें',\n ar: 'إزالة تعداد',\n ru: 'Удалить перечисление',\n tr: 'Numaralandırmayı kaldır',\n pl: 'Usuń enumerację',\n id: 'Hapus enumerasi',\n vi: 'Xóa enumeration',\n uk: 'Видалити перелік',\n }),\n },\n },\n title: 'Navigation view content',\n description:\n 'Content declarations used for UI interactions within the navigation view of the Dictionary Field Editor. Includes labels and helper texts for adding or removing elements, enumerations, and conditions.',\n tags: ['editor UI', 'form navigation', 'dictionary editor'],\n} satisfies Dictionary;\n\nexport default navigationViewContent;\n"],"mappings":";;;AAEA,MAAa,wBAAwB;CACnC,KAAK;CACL,SAAS;EACP,gBAAgB,EAAE;GAChB,IAAI;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL,CAAC;EACF,WAAW,EACT,OAAO,EAAE;GACP,IAAI;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;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AI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACF,MAAM,EAAE;IACN,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACH;EACD,mBAAmB;GACjB,OAAO,EAAE;IACP,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACF,MAAM,EAAE;IACN,IAAI;IACJ,SAAS;IACT,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACL,CAAC;GACH;EACF;CACD,OAAO;CACP,aACE;CACF,MAAM;EAAC;EAAa;EAAmB;EAAoB;CAC5D"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../../utils/cn.mjs";
|
|
4
|
-
import { ButtonColor, ButtonVariant } from "../../Button/Button.mjs";
|
|
5
4
|
import { useAuth } from "../../../hooks/useAuth/useAuth.mjs";
|
|
6
5
|
import { useDeleteDictionary, usePushDictionaries, useWriteDictionary } from "../../../hooks/reactQuery.mjs";
|
|
6
|
+
import { ButtonColor, ButtonVariant } from "../../Button/Button.mjs";
|
|
7
7
|
import { Modal, ModalSize } from "../../Modal/Modal.mjs";
|
|
8
8
|
import { Form } from "../../Form/Form.mjs";
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
import { ArrowUpFromLine, Download, RotateCcw, Save, Trash } from "lucide-react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import { useIntlayer } from "react-intlayer";
|
|
13
12
|
import { useDictionariesRecordActions, useEditedContent } from "@intlayer/editor-react";
|
|
13
|
+
import { useIntlayer } from "react-intlayer";
|
|
14
14
|
|
|
15
15
|
//#region src/components/DictionaryFieldEditor/SaveForm/SaveForm.tsx
|
|
16
16
|
const SaveForm = ({ dictionary, mode, className, onDelete, onSave, ...props }) => {
|
|
@@ -7,8 +7,8 @@ import { EditableFieldInput } from "../../EditableField/EditableFieldInput.mjs";
|
|
|
7
7
|
import { NodeTypeSelector } from "../NodeTypeSelector.mjs";
|
|
8
8
|
import { Plus, Trash } from "lucide-react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { useIntlayer } from "react-intlayer";
|
|
11
10
|
import { useConfiguration, useEditedContentActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
11
|
+
import { useIntlayer } from "react-intlayer";
|
|
12
12
|
import { getDefaultNode, getNodeChildren, getNodeType } from "@intlayer/core/dictionaryManipulator";
|
|
13
13
|
import * as NodeTypes from "@intlayer/types/nodeType";
|
|
14
14
|
import { isSameKeyPath } from "@intlayer/core/utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "../../Input/OTPInput.mjs";
|
|
4
3
|
import { useItemSelector } from "../../../hooks/useItemSelector.mjs";
|
|
4
|
+
import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "../../Input/OTPInput.mjs";
|
|
5
5
|
import { useFormField } from "../FormField.mjs";
|
|
6
6
|
import { FormItemLayout } from "../layout/FormItemLayout.mjs";
|
|
7
7
|
import { Form } from "../Form.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
|
|
3
4
|
import { Container } from "../Container/index.mjs";
|
|
4
5
|
import { Button, ButtonColor, ButtonSize, ButtonTextAlign, ButtonVariant } from "../Button/Button.mjs";
|
|
5
6
|
import { Input } from "../Input/Input.mjs";
|
|
6
7
|
import { SwitchSelector, SwitchSelectorColor, SwitchSelectorSize } from "../SwitchSelector/index.mjs";
|
|
7
|
-
import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
|
|
8
8
|
import { DropDown } from "../DropDown/index.mjs";
|
|
9
9
|
import { useLocaleSwitcherContent } from "./LocaleSwitcherContentContext.mjs";
|
|
10
10
|
import { useMemo, useRef, useState } from "react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
+
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
5
|
+
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
4
6
|
import { Container } from "../Container/index.mjs";
|
|
5
7
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
6
8
|
import { H3 } from "../Headers/index.mjs";
|
|
7
|
-
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
8
|
-
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
9
9
|
import { useEffect } from "react";
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
11
11
|
import { X } from "lucide-react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
5
4
|
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
6
5
|
import { useScrollDetection } from "../../hooks/useScrollDetection.mjs";
|
|
6
|
+
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
7
7
|
import { Burger } from "./Burger.mjs";
|
|
8
8
|
import { useRef, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
5
4
|
import { useItemSelector } from "../../hooks/useItemSelector.mjs";
|
|
5
|
+
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
6
6
|
import { useEffect, useRef } from "react";
|
|
7
7
|
import { cva } from "class-variance-authority";
|
|
8
8
|
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
4
|
+
import { useDevice } from "../../hooks/useDevice.mjs";
|
|
5
|
+
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
3
6
|
import { Container } from "../Container/index.mjs";
|
|
4
7
|
import { Button, ButtonColor, ButtonSize, ButtonVariant } from "../Button/Button.mjs";
|
|
5
|
-
import { useDevice } from "../../hooks/useDevice.mjs";
|
|
6
8
|
import { KeyboardShortcut } from "../KeyboardShortcut/KeyboardShortcut.mjs";
|
|
7
9
|
import { Popover } from "../Popover/dynamic.mjs";
|
|
8
|
-
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
9
|
-
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
10
10
|
import { MaxWidthSmoother } from "../MaxWidthSmoother/index.mjs";
|
|
11
11
|
import { isElementAtTopAndNotCovered } from "./isElementAtTopAndNotCovered.mjs";
|
|
12
12
|
import { useRightDrawer } from "./useRightDrawer.mjs";
|
|
@@ -73,7 +73,7 @@ const TabSelector = ({ tabs, selectedChoice, onTabClick, color = TabSelectorColo
|
|
|
73
73
|
});
|
|
74
74
|
useEffect(() => {
|
|
75
75
|
calculatePosition();
|
|
76
|
-
}, [selectedChoice
|
|
76
|
+
}, [selectedChoice]);
|
|
77
77
|
return /* @__PURE__ */ jsxs("div", {
|
|
78
78
|
className: cn(tabSelectorVariant({ color }), className),
|
|
79
79
|
"aria-orientation": orientation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabSelector.mjs","names":[],"sources":["../../../../src/components/TabSelector/TabSelector.tsx"],"sourcesContent":["'use client';\n\nimport {\n type ItemSelectorOrientation,\n useItemSelector,\n} from '@hooks/useItemSelector';\nimport { cn } from '@utils/cn';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n cloneElement,\n type HTMLAttributes,\n type MouseEvent,\n type ReactElement,\n useEffect,\n useRef,\n} from 'react';\n\nexport enum TabSelectorColor {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n DESTRUCTIVE = 'destructive',\n NEUTRAL = 'neutral',\n LIGHT = 'light',\n DARK = 'dark',\n TEXT = 'text',\n}\n\nconst tabSelectorVariant = cva(\n 'relative z-0 flex size-full flex-row items-center gap-2',\n {\n variants: {\n color: {\n primary: 'border-primary text-primary',\n secondary: 'border-secondary text-secondary',\n destructive: 'border-destructive bg-destructive text-destructive',\n neutral: 'border-neutral text-neutral',\n light: 'border-white text-white',\n dark: 'border-neutral-800 text-neutral-800',\n text: 'border-text text-text',\n },\n },\n defaultVariants: {\n color: 'primary',\n },\n }\n);\n\nconst indicatorVariant = cva(\n 'absolute -z-1 rounded-lg duration-300 ease-in-out motion-reduce:transition-none',\n {\n variants: {\n color: {\n primary: 'bg-primary/10 aria-selected:text-text',\n secondary: 'bg-secondary/10 aria-selected:text-text',\n destructive: 'bg-destructive/10 aria-selected:text-text',\n neutral: 'bg-neutral/10 aria-selected:text-white/10',\n light: 'bg-white/10 aria-selected:text-black',\n dark: 'bg-neutral-800/10 aria-selected:text-white',\n text: 'bg-text/10 aria-selected:text-text-opposite',\n },\n orientation: {\n horizontal: 'top-0 h-full w-auto transition-[left,width]',\n vertical: 'left-0 h-auto w-full transition-[top,height]',\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n },\n }\n);\n\nexport type TabSelectorItemProps = HTMLAttributes<HTMLElement> & {\n key: string | number;\n};\n\nexport type TabSelectorProps<T extends TabSelectorItemProps> = {\n tabs: ReactElement<T>[];\n selectedChoice: T['key'];\n onTabClick?: (choice: T['key']) => void;\n hoverable?: boolean;\n orientation?: ItemSelectorOrientation;\n} & HTMLAttributes<HTMLElement> &\n Omit<VariantProps<typeof tabSelectorVariant>, 'color'> & {\n color?: TabSelectorColor | `${TabSelectorColor}`;\n };\n\n/**\n *\n * Component that allows the user to select one of the provided choices.\n *\n * Example:\n * ```jsx\n * <TabSelector\n * selectedChoice=\"option1\"\n * onTabClick={(choice) => console.log(choice)}\n * hoverable={true}\n * >\n * <Button key=\"option1\"/>\n * <Button key=\"option2\"/>\n * <Button key=\"option3\"/>\n * </TabSelector>\n * ```\n */\nexport const TabSelector = <T extends TabSelectorItemProps>({\n tabs,\n selectedChoice,\n onTabClick,\n color = TabSelectorColor.PRIMARY,\n hoverable = false,\n orientation = 'horizontal',\n className,\n}: TabSelectorProps<T>) => {\n const optionsRefs = useRef<HTMLElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition, calculatePosition } = useItemSelector(\n optionsRefs,\n { isHoverable: hoverable, orientation }\n );\n\n useEffect(() => {\n calculatePosition();\n }, [selectedChoice
|
|
1
|
+
{"version":3,"file":"TabSelector.mjs","names":[],"sources":["../../../../src/components/TabSelector/TabSelector.tsx"],"sourcesContent":["'use client';\n\nimport {\n type ItemSelectorOrientation,\n useItemSelector,\n} from '@hooks/useItemSelector';\nimport { cn } from '@utils/cn';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n cloneElement,\n type HTMLAttributes,\n type MouseEvent,\n type ReactElement,\n useEffect,\n useRef,\n} from 'react';\n\nexport enum TabSelectorColor {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n DESTRUCTIVE = 'destructive',\n NEUTRAL = 'neutral',\n LIGHT = 'light',\n DARK = 'dark',\n TEXT = 'text',\n}\n\nconst tabSelectorVariant = cva(\n 'relative z-0 flex size-full flex-row items-center gap-2',\n {\n variants: {\n color: {\n primary: 'border-primary text-primary',\n secondary: 'border-secondary text-secondary',\n destructive: 'border-destructive bg-destructive text-destructive',\n neutral: 'border-neutral text-neutral',\n light: 'border-white text-white',\n dark: 'border-neutral-800 text-neutral-800',\n text: 'border-text text-text',\n },\n },\n defaultVariants: {\n color: 'primary',\n },\n }\n);\n\nconst indicatorVariant = cva(\n 'absolute -z-1 rounded-lg duration-300 ease-in-out motion-reduce:transition-none',\n {\n variants: {\n color: {\n primary: 'bg-primary/10 aria-selected:text-text',\n secondary: 'bg-secondary/10 aria-selected:text-text',\n destructive: 'bg-destructive/10 aria-selected:text-text',\n neutral: 'bg-neutral/10 aria-selected:text-white/10',\n light: 'bg-white/10 aria-selected:text-black',\n dark: 'bg-neutral-800/10 aria-selected:text-white',\n text: 'bg-text/10 aria-selected:text-text-opposite',\n },\n orientation: {\n horizontal: 'top-0 h-full w-auto transition-[left,width]',\n vertical: 'left-0 h-auto w-full transition-[top,height]',\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n },\n }\n);\n\nexport type TabSelectorItemProps = HTMLAttributes<HTMLElement> & {\n key: string | number;\n};\n\nexport type TabSelectorProps<T extends TabSelectorItemProps> = {\n tabs: ReactElement<T>[];\n selectedChoice: T['key'];\n onTabClick?: (choice: T['key']) => void;\n hoverable?: boolean;\n orientation?: ItemSelectorOrientation;\n} & HTMLAttributes<HTMLElement> &\n Omit<VariantProps<typeof tabSelectorVariant>, 'color'> & {\n color?: TabSelectorColor | `${TabSelectorColor}`;\n };\n\n/**\n *\n * Component that allows the user to select one of the provided choices.\n *\n * Example:\n * ```jsx\n * <TabSelector\n * selectedChoice=\"option1\"\n * onTabClick={(choice) => console.log(choice)}\n * hoverable={true}\n * >\n * <Button key=\"option1\"/>\n * <Button key=\"option2\"/>\n * <Button key=\"option3\"/>\n * </TabSelector>\n * ```\n */\nexport const TabSelector = <T extends TabSelectorItemProps>({\n tabs,\n selectedChoice,\n onTabClick,\n color = TabSelectorColor.PRIMARY,\n hoverable = false,\n orientation = 'horizontal',\n className,\n}: TabSelectorProps<T>) => {\n const optionsRefs = useRef<HTMLElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition, calculatePosition } = useItemSelector(\n optionsRefs,\n { isHoverable: hoverable, orientation }\n );\n\n useEffect(() => {\n calculatePosition();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [selectedChoice]);\n\n return (\n <div\n className={cn(\n tabSelectorVariant({\n color,\n }),\n className\n )}\n aria-orientation={orientation}\n aria-multiselectable=\"false\"\n role=\"tablist\"\n >\n {tabs.map((Tab, index) => {\n const key = Tab.key!;\n\n const isSelected = selectedChoice === key;\n\n return cloneElement(Tab, {\n key: key ?? index,\n role: 'tab',\n onClick: (e: MouseEvent<HTMLElement>) => {\n Tab.props?.onClick?.(e);\n onTabClick?.(key);\n },\n 'aria-selected': isSelected,\n 'data-active': isSelected as unknown as string,\n tabIndex: isSelected ? 0 : -1,\n ref: (el: HTMLElement) => {\n optionsRefs.current[index] = el!;\n },\n } as unknown as T);\n })}\n {choiceIndicatorPosition && (\n <div\n className={cn(\n indicatorVariant({\n color,\n orientation,\n })\n )}\n style={choiceIndicatorPosition}\n ref={indicatorRef}\n key={`${selectedChoice}${JSON.stringify(tabs.map((tab) => tab.key))}`}\n />\n )}\n </div>\n );\n};\n"],"mappings":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oBAAC,OAAD;GACE,WAAW,GACT,iBAAiB;IACf;IACA;IACD,CAAC,CACH;GACD,OAAO;GACP,KAAK;GAEL,EADK,GAAG,iBAAiB,KAAK,UAAU,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,GACnE,CAEA"}
|
package/dist/esm/hooks/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useKeyboardDetector } from "./useKeyboardDetector.mjs";
|
|
2
|
+
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
3
|
+
import { useScrollY } from "./useScrollY.mjs";
|
|
3
4
|
import { usePersistedStore } from "./usePersistedStore.mjs";
|
|
5
|
+
import { useHorizontalSwipe } from "./useHorizontalSwipe.mjs";
|
|
6
|
+
import { useItemSelector } from "./useItemSelector.mjs";
|
|
7
|
+
import { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice } from "./useDevice.mjs";
|
|
4
8
|
import { useOAuth2 } from "./useAuth/useOAuth2.mjs";
|
|
5
9
|
import { useSession } from "./useAuth/useSession.mjs";
|
|
6
10
|
import { useAuth } from "./useAuth/useAuth.mjs";
|
|
7
11
|
import { useIntlayerAuth, useIntlayerOAuth } from "./useIntlayerAPI.mjs";
|
|
8
12
|
import { useAddDictionary, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddPasskey, useAddProject, useAddTag, useAppQuery, useAskDocQuestion, useAskResetPassword, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditScan, useAuditTag, useAutocomplete, useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos, useCancelSubscription, useChangePassword, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteOrganization, useDeletePasskey, useDeleteProject, useDeleteSSOProvider, useDeleteShowcaseProject, useDeleteTag, useDeleteUser, useDisableTwoFactor, useEnableTwoFactor, useGetCIConfig, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetDiscussions, useGetDiscussionsData, useGetEditorDictionaries, useGetNewsletterStatus, useGetOrganizations, useGetOtherShowcaseProjects, useGetPricing, useGetProjects, useGetRecursiveAuditStatus, useGetShowcaseProjectById, useGetShowcaseProjects, useGetSubscription, useGetTags, useGetUserByAccount, useGetUserById, useGetUsers, useGetVerifyEmailStatus, useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects, useInfiniteGetDictionaries, useListPasskeys, useListSSOProviders, useLogin, useLogout, usePushCIConfig, usePushDictionaries, useQueryClient, useRefreshAccessKey, useRegister, useRegisterSSO, useResetPassword, useSearchDoc, useSelectOrganization, useSelectProject, useSignInMagicLink, useSignInPasskey, useSignInSSO, useStartRecursiveAudit, useSubmitShowcaseProject, useSubscribeToNewsletter, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useTranslateJSONDeclaration, useTriggerBuild, useTriggerWebhook, useUnselectOrganization, useUnselectProject, useUnsubscribeFromNewsletter, useUpdateDictionary, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById, useUpdateProject, useUpdateProjectMembers, useUpdateShowcaseProject, useUpdateTag, useUpdateUser, useVerifyBackupCode, useVerifyEmail, useVerifyTotp, useWriteDictionary } from "./reactQuery.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
13
|
+
import { useSearch } from "./useSearch.mjs";
|
|
14
|
+
import { useIsMounted } from "./useIsMounted.mjs";
|
|
11
15
|
import { useGetElementById } from "./useGetElementById.mjs";
|
|
12
|
-
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
13
16
|
import { useIsDarkMode } from "./useIsDarkMode.mjs";
|
|
14
|
-
import { useIsMounted } from "./useIsMounted.mjs";
|
|
15
|
-
import { useKeyboardDetector } from "./useKeyboardDetector.mjs";
|
|
16
17
|
import { useScreenWidth } from "./useScreenWidth.mjs";
|
|
17
18
|
import { useScrollBlockage } from "./useScrollBlockage/index.mjs";
|
|
18
19
|
import { useScrollDetection } from "./useScrollDetection.mjs";
|
|
19
|
-
import {
|
|
20
|
-
import { useSearch } from "./useSearch.mjs";
|
|
20
|
+
import { useUser } from "./useUser/index.mjs";
|
|
21
21
|
|
|
22
22
|
export { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useAddDictionary, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddPasskey, useAddProject, useAddTag, useAppQuery, useAskDocQuestion, useAskResetPassword, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditScan, useAuditTag, useAuth, useAutocomplete, useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos, useCancelSubscription, useChangePassword, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteOrganization, useDeletePasskey, useDeleteProject, useDeleteSSOProvider, useDeleteShowcaseProject, useDeleteTag, useDeleteUser, useDevice, useDisableTwoFactor, useEnableTwoFactor, useGetCIConfig, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetDiscussions, useGetDiscussionsData, useGetEditorDictionaries, useGetElementById, useGetElementOrWindow, useGetNewsletterStatus, useGetOrganizations, useGetOtherShowcaseProjects, useGetPricing, useGetProjects, useGetRecursiveAuditStatus, useGetShowcaseProjectById, useGetShowcaseProjects, useGetSubscription, useGetTags, useGetUserByAccount, useGetUserById, useGetUsers, useGetVerifyEmailStatus, useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects, useHorizontalSwipe, useInfiniteGetDictionaries, useIntlayerAuth, useIntlayerOAuth, useIsDarkMode, useIsMounted, useItemSelector, useKeyboardDetector, useListPasskeys, useListSSOProviders, useLogin, useLogout, useOAuth2, usePersistedStore, usePushCIConfig, usePushDictionaries, useQueryClient, useRefreshAccessKey, useRegister, useRegisterSSO, useResetPassword, useScreenWidth, useScrollBlockage, useScrollDetection, useScrollY, useSearch, useSearchDoc, useSelectOrganization, useSelectProject, useSession, useSignInMagicLink, useSignInPasskey, useSignInSSO, useStartRecursiveAudit, useSubmitShowcaseProject, useSubscribeToNewsletter, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useTranslateJSONDeclaration, useTriggerBuild, useTriggerWebhook, useUnselectOrganization, useUnselectProject, useUnsubscribeFromNewsletter, useUpdateDictionary, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById, useUpdateProject, useUpdateProjectMembers, useUpdateShowcaseProject, useUpdateTag, useUpdateUser, useUser, useVerifyBackupCode, useVerifyEmail, useVerifyTotp, useWriteDictionary };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useQuery } from "@tanstack/react-query";
|
|
4
|
-
import configuration from "@intlayer/config/built";
|
|
5
4
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
6
5
|
import { getOAuthAPI } from "@intlayer/api";
|
|
6
|
+
import configuration from "@intlayer/config/built";
|
|
7
7
|
|
|
8
8
|
//#region src/hooks/useAuth/useOAuth2.ts
|
|
9
9
|
const useOAuth2 = (intlayerConfiguration) => {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { getAuthAPI } from "../../libs/auth.mjs";
|
|
4
4
|
import { useQueryClient } from "../reactQuery.mjs";
|
|
5
5
|
import { useQuery } from "@tanstack/react-query";
|
|
6
|
-
import configuration from "@intlayer/config/built";
|
|
7
6
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
7
|
+
import configuration from "@intlayer/config/built";
|
|
8
8
|
|
|
9
9
|
//#region src/hooks/useAuth/useSession.ts
|
|
10
10
|
const useSession = (sessionProp, intlayerConfiguration) => {
|
package/dist/esm/libs/auth.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import configuration from "@intlayer/config/built";
|
|
1
2
|
import { passkeyClient } from "@better-auth/passkey/client";
|
|
2
3
|
import { ssoClient } from "@better-auth/sso/client";
|
|
3
|
-
import configuration from "@intlayer/config/built";
|
|
4
4
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
5
5
|
import { createAuthClient } from "better-auth/client";
|
|
6
6
|
import { magicLinkClient, twoFactorClient } from "better-auth/client/plugins";
|