@vendure/dashboard 3.4.3-master-202509120226 → 3.4.3-master-202509190229
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 +11 -7
- package/src/app/common/duplicate-bulk-action.tsx +37 -23
- package/src/app/common/duplicate-entity-dialog.tsx +117 -0
- package/src/app/routes/_authenticated/_collections/collections.graphql.ts +1 -0
- package/src/app/routes/_authenticated/_collections/collections.tsx +21 -0
- package/src/app/routes/_authenticated/_product-variants/product-variants.graphql.ts +1 -0
- package/src/app/routes/_authenticated/_products/components/product-variants-table.tsx +30 -2
- package/src/app/routes/_authenticated/_products/products.graphql.ts +25 -16
- package/src/lib/components/data-input/rich-text-input.tsx +2 -115
- package/src/lib/components/shared/rich-text-editor/image-dialog.tsx +223 -0
- package/src/lib/components/shared/rich-text-editor/link-dialog.tsx +151 -0
- package/src/lib/components/shared/rich-text-editor/responsive-toolbar.tsx +439 -0
- package/src/lib/components/shared/rich-text-editor/rich-text-editor.tsx +338 -0
- package/src/lib/components/shared/rich-text-editor/table-delete-menu.tsx +104 -0
- package/src/lib/components/shared/rich-text-editor/table-edit-icons.tsx +225 -0
- package/src/lib/graphql/common-operations.ts +19 -0
- package/src/lib/graphql/fragments.ts +23 -13
- package/src/lib/hooks/use-floating-bulk-actions.ts +3 -1
|
@@ -34,23 +34,32 @@ export const configurableOperationFragment = graphql(`
|
|
|
34
34
|
|
|
35
35
|
export type ConfigurableOperationFragment = ResultOf<typeof configurableOperationFragment>;
|
|
36
36
|
|
|
37
|
-
export const
|
|
38
|
-
fragment
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
label
|
|
47
|
-
description
|
|
48
|
-
}
|
|
49
|
-
code
|
|
37
|
+
export const configArgDefinitionFragment = graphql(`
|
|
38
|
+
fragment ConfigArgDefinition on ConfigArgDefinition {
|
|
39
|
+
name
|
|
40
|
+
type
|
|
41
|
+
required
|
|
42
|
+
defaultValue
|
|
43
|
+
list
|
|
44
|
+
ui
|
|
45
|
+
label
|
|
50
46
|
description
|
|
51
47
|
}
|
|
52
48
|
`);
|
|
53
49
|
|
|
50
|
+
export const configurableOperationDefFragment = graphql(
|
|
51
|
+
`
|
|
52
|
+
fragment ConfigurableOperationDef on ConfigurableOperationDefinition {
|
|
53
|
+
args {
|
|
54
|
+
...ConfigArgDefinition
|
|
55
|
+
}
|
|
56
|
+
code
|
|
57
|
+
description
|
|
58
|
+
}
|
|
59
|
+
`,
|
|
60
|
+
[configArgDefinitionFragment],
|
|
61
|
+
);
|
|
62
|
+
|
|
54
63
|
export const errorResultFragment = graphql(`
|
|
55
64
|
fragment ErrorResult on ErrorResult {
|
|
56
65
|
errorCode
|
|
@@ -59,3 +68,4 @@ export const errorResultFragment = graphql(`
|
|
|
59
68
|
`);
|
|
60
69
|
|
|
61
70
|
export type ConfigurableOperationDefFragment = ResultOf<typeof configurableOperationDefFragment>;
|
|
71
|
+
export type ConfigArgDefFragment = ResultOf<typeof configArgDefinitionFragment>;
|
|
@@ -32,7 +32,9 @@ export function useFloatingBulkActions({
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const updatePosition = () => {
|
|
35
|
-
|
|
35
|
+
// Find the container by searching upwards from the current component
|
|
36
|
+
const currentElement = document.activeElement || document.body;
|
|
37
|
+
const container = currentElement.closest(containerSelector) as HTMLElement;
|
|
36
38
|
if (!container) return;
|
|
37
39
|
|
|
38
40
|
const containerRect = container.getBoundingClientRect();
|