@alpaca-editor/sharedien-dam 1.0.4162 → 1.0.4164
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alpaca-editor/sharedien-dam",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4164",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"postcss": "^8.5.3",
|
|
32
32
|
"react": "^19.0.0",
|
|
33
33
|
"react-dom": "^19.0.0",
|
|
34
|
-
"tailwindcss": "^4.0.14"
|
|
34
|
+
"tailwindcss": "^4.0.14",
|
|
35
|
+
"lucide-react": "^0.486.0"
|
|
35
36
|
}
|
|
36
37
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ClientFieldButton, PictureRawValue, VariantFieldActionProps } from "@alpaca-editor/core";
|
|
2
3
|
import { DamSelector } from "./DamSelector";
|
|
3
4
|
import { DamImageValue, DamSelectorProps } from "./types";
|
|
5
|
+
import { ExternalLink } from "lucide-react";
|
|
4
6
|
|
|
5
7
|
export const DamSelectorButton: ClientFieldButton = {
|
|
6
8
|
label: "Select from DAM",
|
|
7
|
-
icon:
|
|
9
|
+
icon: (<ExternalLink strokeWidth={1} size={16} />) as React.ReactNode,
|
|
8
10
|
showInMenu: false, // Primary action - appears outside menu
|
|
9
11
|
clientAction: async ({ editContext, field, variantName: contextVariantName }: VariantFieldActionProps) => {
|
|
10
12
|
const data = await editContext.openDialog<DamImageValue, DamSelectorProps>(DamSelector, {
|