@canva/intents 0.0.0-beta.2 → 0.0.0-beta.3

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/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # @canva/intents
2
2
 
3
- > **_⚠️ This package is currently in beta_**
4
-
5
3
  A package for Canva's Apps SDK that provides types and utilities for working with App Intents.
6
4
 
7
5
  ![](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)
@@ -61,9 +59,9 @@ import { DataSelectionUI } from './data_selection_ui';
61
59
  import { fetchData } from './fetch_data';
62
60
 
63
61
  prepareDataConnector({
64
- fetchDataTable: async (params) => {
62
+ getDataTable: async (request) => {
65
63
  try {
66
- const dataTable = await fetchData(params); // your data fetching logic here
64
+ const dataTable = await fetchData(request); // your data fetching logic here
67
65
  return {
68
66
  status: 'completed',
69
67
  dataTable,
@@ -76,11 +74,11 @@ prepareDataConnector({
76
74
  }
77
75
  },
78
76
 
79
- renderSelectionUi: (params) => {
77
+ renderSelectionUi: (request) => {
80
78
  const root = createRoot(document.getElementById('root') as Element);
81
79
  root.render(
82
80
  <AppUiProvider>
83
- <DataSelectionUI {...params} />
81
+ <DataSelectionUI {...request} />
84
82
  </AppUiProvider>
85
83
  );
86
84
  },