@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.
@@ -34,23 +34,32 @@ export const configurableOperationFragment = graphql(`
34
34
 
35
35
  export type ConfigurableOperationFragment = ResultOf<typeof configurableOperationFragment>;
36
36
 
37
- export const configurableOperationDefFragment = graphql(`
38
- fragment ConfigurableOperationDef on ConfigurableOperationDefinition {
39
- args {
40
- name
41
- type
42
- required
43
- defaultValue
44
- list
45
- ui
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
- const container = document.querySelector(containerSelector)?.closest('div') as HTMLElement;
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();