gentiq 0.7.20 → 0.7.21

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.
@@ -145,7 +145,17 @@ declare const _default: {
145
145
  "history_show_delete": "Allow Deleting Conversations",
146
146
  "history_show_rename": "Allow Renaming Conversations",
147
147
  "history_show_share": "Allow Sharing Conversations",
148
- "history_show_pin": "Allow Pinning Conversations"
148
+ "history_show_pin": "Allow Pinning Conversations",
149
+ "sections_modes": "Settings Tab Modes",
150
+ "sections_modes_help": "Control visibility and interactability of settings tabs for users.",
151
+ "mode_editable": "Enable (Editable)",
152
+ "mode_faded": "Fade (Readonly)",
153
+ "mode_hidden": "Hide (Disable)",
154
+ "general_tab": "General Tab",
155
+ "profile_tab": "Profile Tab",
156
+ "account_tab": "Account Tab",
157
+ "inner_fields_modes": "Inner Fields Visibility",
158
+ "inner_fields_modes_help": "Configure visibility for individual fields within each tab."
149
159
  },
150
160
  "save_success": "Settings saved successfully",
151
161
  "save_error": "Failed to save settings",
@@ -144,7 +144,17 @@ declare const _default: {
144
144
  "history_show_delete": "اجازه حذف گفتگوها",
145
145
  "history_show_rename": "اجازه تغییر نام گفتگوها",
146
146
  "history_show_share": "اجازه اشتراک‌گذاری گفتگوها",
147
- "history_show_pin": "اجازه پین کردن گفتگوها"
147
+ "history_show_pin": "اجازه پین کردن گفتگوها",
148
+ "sections_modes": "وضعیت نمایش تب‌های تنظیمات",
149
+ "sections_modes_help": "کنترل نمایش یا غیرفعال بودن تب‌های مختلف در بخش تنظیمات کاربر.",
150
+ "mode_editable": "فعال (قابل ویرایش)",
151
+ "mode_faded": "محو (فقط خواندنی)",
152
+ "mode_hidden": "مخفی (غیرفعال)",
153
+ "general_tab": "تب عمومی",
154
+ "profile_tab": "تب پروفایل",
155
+ "account_tab": "تب حساب کاربری",
156
+ "inner_fields_modes": "مشاهده‌پذیری فیلدهای داخلی",
157
+ "inner_fields_modes_help": "وضعیت نمایش فیلدهای هر تب را به‌صورت مجزا پیکربندی کنید."
148
158
  },
149
159
  "save_success": "تنظیمات با موفقیت ذخیره شد",
150
160
  "save_error": "خطا در ذخیره‌سازی تنظیمات",
@@ -217,6 +217,8 @@ export type SettingsFieldMode = 'editable' | 'faded' | 'hidden';
217
217
  export interface SettingsSectionConfig<T = Record<string, SettingsFieldMode>> {
218
218
  /** Whether the entire section is enabled and visible. */
219
219
  enabled?: boolean;
220
+ /** Display mode for the entire section. Overrides enabled if provided. */
221
+ mode?: SettingsFieldMode;
220
222
  /**
221
223
  * Visibility and editability modes for individual fields in this section.
222
224
  */
@@ -317,6 +319,12 @@ export interface AppConfig {
317
319
  userMetadataFields?: UserMetadataField[];
318
320
  /** Whether to show the settings icon in the UI. */
319
321
  showSettings?: boolean;
322
+ /** Display mode for the General settings tab. */
323
+ settingsGeneralMode?: SettingsFieldMode;
324
+ /** Display mode for the Profile settings tab. */
325
+ settingsProfileMode?: SettingsFieldMode;
326
+ /** Display mode for the Account settings tab. */
327
+ settingsAccountMode?: SettingsFieldMode;
320
328
  }
321
329
  /**
322
330
  * Props for the TextPart component, which renders text fragments of a message.
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "provenance": true
11
11
  },
12
12
  "description": "React UI library for the Gentiq AI framework.",
13
- "version": "0.7.20",
13
+ "version": "0.7.21",
14
14
  "type": "module",
15
15
  "files": [
16
16
  "dist"
@@ -19,12 +19,10 @@
19
19
  "types": "./dist/index.d.ts",
20
20
  "exports": {
21
21
  ".": {
22
- "development": "./src/index.ts",
23
22
  "types": "./dist/src/index.d.ts",
24
23
  "import": "./dist/gentiq-index.es.js"
25
24
  },
26
25
  "./admin": {
27
- "development": "./src/admin.ts",
28
26
  "types": "./dist/src/admin.d.ts",
29
27
  "import": "./dist/gentiq-admin.es.js"
30
28
  },