@docyrus/ui-pro-ai-assistant 0.4.7 → 0.4.8

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/index.js CHANGED
@@ -3338,12 +3338,14 @@ async function updateRecordSharePermission(apiClient, dataSourceId, recordId, sh
3338
3338
  const response = await apiClient.post("/users/acl/share", {
3339
3339
  dataSourceId,
3340
3340
  recordId,
3341
- items: [{
3342
- principalType: share.principalType,
3343
- principalId: share.principalId,
3344
- permissions,
3345
- expiresAt: share.expiresAt || null
3346
- }]
3341
+ items: [
3342
+ {
3343
+ principalType: share.principalType,
3344
+ principalId: share.principalId,
3345
+ permissions,
3346
+ expiresAt: share.expiresAt || null
3347
+ }
3348
+ ]
3347
3349
  });
3348
3350
  return response.success;
3349
3351
  } catch (error) {
@@ -3356,10 +3358,12 @@ async function removeRecordShare(apiClient, dataSourceId, recordId, share) {
3356
3358
  const body = {
3357
3359
  dataSourceId,
3358
3360
  recordId,
3359
- items: [{
3360
- principalType: share.principalType,
3361
- principalId: share.principalId
3362
- }]
3361
+ items: [
3362
+ {
3363
+ principalType: share.principalType,
3364
+ principalId: share.principalId
3365
+ }
3366
+ ]
3363
3367
  };
3364
3368
  if (apiClient.deleteWithBody) {
3365
3369
  const response = await apiClient.deleteWithBody("/users/acl/share", body);
@@ -5662,7 +5666,7 @@ var AIInputArea = ({
5662
5666
  {
5663
5667
  variant: "ghost",
5664
5668
  size: "sm",
5665
- className: "h-7 w-7",
5669
+ className: "-mb-2 h-7 w-7",
5666
5670
  disabled: isOptimizing || !value.trim(),
5667
5671
  onClick: () => void optimizePrompt(),
5668
5672
  children: isOptimizing ? /* @__PURE__ */ jsx(Loader2, { className: "w-4 h-4 animate-spin" }) : /* @__PURE__ */ jsx(Wand2, { className: "w-4 h-4" })