@adminforth/bulk-ai-flow 1.20.0 → 1.21.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/build.log CHANGED
@@ -13,5 +13,5 @@ custom/package-lock.json
13
13
  custom/package.json
14
14
  custom/tsconfig.json
15
15
 
16
- sent 95,557 bytes received 172 bytes 191,458.00 bytes/sec
17
- total size is 94,921 speedup is 0.99
16
+ sent 95,541 bytes received 172 bytes 191,426.00 bytes/sec
17
+ total size is 94,896 speedup is 0.99
@@ -140,19 +140,19 @@
140
140
  <div class="flex items-center justify-between mb-2 w-full">
141
141
  <div class="flex items-center justify-center gap-2">
142
142
  <IconShieldSolid class="w-6 h-6 text-lightPrimary dark:text-darkPrimary" />
143
- <p class="sm:text-base text-sm">{{ t('Do not overwrite existing values') }}</p>
143
+ <p class="sm:text-base text-sm">{{ t('Overwrite existing values') }}</p>
144
144
  <Tooltip>
145
145
  <IconInfoCircleSolid class="w-5 h-5 me-2 text-lightPrimary dark:text-darkPrimary"/>
146
146
  <template #tooltip>
147
- <p class="max-w-64">{{ t('When enabled, the AI will skip generating content for fields that already have data. This helps to preserve existing information and avoid overwriting valuable content.') }}</p>
147
+ <p class="max-w-64">{{ t('When enabled, the AI will overwrite content for fields that already have data. When off - this helps to preserve existing information and avoid overwriting valuable content.') }}</p>
148
148
  </template>
149
149
  </Tooltip>
150
150
  </div>
151
151
  <Toggle
152
- v-model="skipFilledFieldsForGeneration"
152
+ v-model="overwriteExistingValues"
153
153
  />
154
154
  </div>
155
- <div :class="skipFilledFieldsForGeneration === false ? 'opacity-100' : 'opacity-0'" class="flex items-center text-yellow-800 bg-yellow-100 p-2 rounded-md border border-yellow-300">
155
+ <div :class="overwriteExistingValues === true ? 'opacity-100' : 'opacity-0'" class="flex items-center text-yellow-800 bg-yellow-100 p-2 rounded-md border border-yellow-300">
156
156
  <IconExclamationTriangle class="w-6 h-6 me-2"/>
157
157
  <p class="sm:text-base text-sm">{{ t('Warning: Existing values will be overwritten.') }}</p>
158
158
  </div>
@@ -236,7 +236,7 @@ const generationPrompts = ref<any>({});
236
236
  const isDataSaved = ref(false);
237
237
 
238
238
  const regeneratingFieldsStatus = ref<Record<string, Record<string, boolean>>>({});
239
- const skipFilledFieldsForGeneration = ref<boolean>(true);
239
+ const overwriteExistingValues = ref<boolean>(false);
240
240
 
241
241
  const openDialog = async () => {
242
242
  window.addEventListener('beforeunload', beforeUnloadHandler);
@@ -668,7 +668,7 @@ async function runAiAction({
668
668
  actionType: actionType,
669
669
  recordId: checkbox,
670
670
  ...(customPrompt !== undefined ? { customPrompt: JSON.stringify(customPrompt) } : {}),
671
- filterFilledFields: skipFilledFieldsForGeneration.value,
671
+ filterFilledFields: !overwriteExistingValues.value,
672
672
  },
673
673
  silentError: true,
674
674
  });
@@ -140,19 +140,19 @@
140
140
  <div class="flex items-center justify-between mb-2 w-full">
141
141
  <div class="flex items-center justify-center gap-2">
142
142
  <IconShieldSolid class="w-6 h-6 text-lightPrimary dark:text-darkPrimary" />
143
- <p class="sm:text-base text-sm">{{ t('Do not overwrite existing values') }}</p>
143
+ <p class="sm:text-base text-sm">{{ t('Overwrite existing values') }}</p>
144
144
  <Tooltip>
145
145
  <IconInfoCircleSolid class="w-5 h-5 me-2 text-lightPrimary dark:text-darkPrimary"/>
146
146
  <template #tooltip>
147
- <p class="max-w-64">{{ t('When enabled, the AI will skip generating content for fields that already have data. This helps to preserve existing information and avoid overwriting valuable content.') }}</p>
147
+ <p class="max-w-64">{{ t('When enabled, the AI will overwrite content for fields that already have data. When off - this helps to preserve existing information and avoid overwriting valuable content.') }}</p>
148
148
  </template>
149
149
  </Tooltip>
150
150
  </div>
151
151
  <Toggle
152
- v-model="skipFilledFieldsForGeneration"
152
+ v-model="overwriteExistingValues"
153
153
  />
154
154
  </div>
155
- <div :class="skipFilledFieldsForGeneration === false ? 'opacity-100' : 'opacity-0'" class="flex items-center text-yellow-800 bg-yellow-100 p-2 rounded-md border border-yellow-300">
155
+ <div :class="overwriteExistingValues === true ? 'opacity-100' : 'opacity-0'" class="flex items-center text-yellow-800 bg-yellow-100 p-2 rounded-md border border-yellow-300">
156
156
  <IconExclamationTriangle class="w-6 h-6 me-2"/>
157
157
  <p class="sm:text-base text-sm">{{ t('Warning: Existing values will be overwritten.') }}</p>
158
158
  </div>
@@ -236,7 +236,7 @@ const generationPrompts = ref<any>({});
236
236
  const isDataSaved = ref(false);
237
237
 
238
238
  const regeneratingFieldsStatus = ref<Record<string, Record<string, boolean>>>({});
239
- const skipFilledFieldsForGeneration = ref<boolean>(true);
239
+ const overwriteExistingValues = ref<boolean>(false);
240
240
 
241
241
  const openDialog = async () => {
242
242
  window.addEventListener('beforeunload', beforeUnloadHandler);
@@ -668,7 +668,7 @@ async function runAiAction({
668
668
  actionType: actionType,
669
669
  recordId: checkbox,
670
670
  ...(customPrompt !== undefined ? { customPrompt: JSON.stringify(customPrompt) } : {}),
671
- filterFilledFields: skipFilledFieldsForGeneration.value,
671
+ filterFilledFields: !overwriteExistingValues.value,
672
672
  },
673
673
  silentError: true,
674
674
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/bulk-ai-flow",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },