@optiaxiom/globals 1.1.4 → 1.1.5

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/cjs/index.js CHANGED
@@ -14,6 +14,7 @@ const SurfaceProvider = ({
14
14
  accept,
15
15
  children,
16
16
  executeTool,
17
+ reject,
17
18
  renderSuggestionValue,
18
19
  ...props
19
20
  }) => {
@@ -28,6 +29,7 @@ const SurfaceProvider = ({
28
29
  return store.add(suggestion, {
29
30
  accept,
30
31
  executeTool,
32
+ reject,
31
33
  renderSuggestionValue
32
34
  });
33
35
  }, [
@@ -35,6 +37,7 @@ const SurfaceProvider = ({
35
37
  executeTool,
36
38
  props.suggestionAlert.registered,
37
39
  props.suggestionPopover.registered,
40
+ reject,
38
41
  renderSuggestionValue,
39
42
  store,
40
43
  suggestion
@@ -44,6 +47,7 @@ const SurfaceProvider = ({
44
47
  value: {
45
48
  accept,
46
49
  executeTool,
50
+ reject,
47
51
  renderSuggestionValue,
48
52
  ...props
49
53
  }
@@ -7,6 +7,7 @@ const SurfaceProvider = ({
7
7
  accept,
8
8
  children,
9
9
  executeTool,
10
+ reject,
10
11
  renderSuggestionValue,
11
12
  ...props
12
13
  }) => {
@@ -21,6 +22,7 @@ const SurfaceProvider = ({
21
22
  return store.add(suggestion, {
22
23
  accept,
23
24
  executeTool,
25
+ reject,
24
26
  renderSuggestionValue
25
27
  });
26
28
  }, [
@@ -28,6 +30,7 @@ const SurfaceProvider = ({
28
30
  executeTool,
29
31
  props.suggestionAlert.registered,
30
32
  props.suggestionPopover.registered,
33
+ reject,
31
34
  renderSuggestionValue,
32
35
  store,
33
36
  suggestion
@@ -37,6 +40,7 @@ const SurfaceProvider = ({
37
40
  value: {
38
41
  accept,
39
42
  executeTool,
43
+ reject,
40
44
  renderSuggestionValue,
41
45
  ...props
42
46
  }
package/dist/index.d.ts CHANGED
@@ -113,9 +113,9 @@ declare function useSurfaceContext(): SurfaceContextValue | null;
113
113
  declare const unstable_SuggestionContext: react.Context<{
114
114
  add: (suggestion: Extract<SurfaceSuggestion, {
115
115
  type: "message" | "value";
116
- }>, surface: Pick<SurfaceContextValue, "accept" | "executeTool" | "renderSuggestionValue">) => () => void;
116
+ }>, surface: Pick<SurfaceContextValue, "accept" | "executeTool" | "reject" | "renderSuggestionValue">) => () => void;
117
117
  } | null>;
118
- declare const unstable_SurfaceProvider: ({ accept, children, executeTool, renderSuggestionValue, ...props }: SurfaceContextValue & {
118
+ declare const unstable_SurfaceProvider: ({ accept, children, executeTool, reject, renderSuggestionValue, ...props }: SurfaceContextValue & {
119
119
  children?: ReactNode;
120
120
  }) => react.FunctionComponentElement<react.ProviderProps<SurfaceContextValue | null>>;
121
121
  declare const unstable_useSurfaceContext: typeof useSurfaceContext;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/optimizely-axiom/optiaxiom.git"
8
8
  },
9
9
  "type": "module",
10
- "version": "1.1.4",
10
+ "version": "1.1.5",
11
11
  "files": [
12
12
  "dist/**",
13
13
  "LICENSE"