@plasmicpkgs/airtable 0.0.19
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 +1 -0
- package/dist/RecordData.d.ts +61 -0
- package/dist/airtable.cjs.development.js +1166 -0
- package/dist/airtable.cjs.development.js.map +1 -0
- package/dist/airtable.cjs.production.min.js +2 -0
- package/dist/airtable.cjs.production.min.js.map +1 -0
- package/dist/airtable.esm.js +1149 -0
- package/dist/airtable.esm.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/package.json +47 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Plasmic components for Airtable integration.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ComponentMeta, GlobalContextMeta, registerComponent, registerGlobalContext } from "@plasmicapp/host";
|
|
2
|
+
import { CanvasComponentProps } from "@plasmicapp/host/dist/registerComponent";
|
|
3
|
+
import React from "react";
|
|
4
|
+
interface RecordData {
|
|
5
|
+
[field: string]: string | {
|
|
6
|
+
id: string;
|
|
7
|
+
url: string;
|
|
8
|
+
filename: string;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
export interface AirtableRecordProps {
|
|
12
|
+
dataSourceId?: string;
|
|
13
|
+
base?: string;
|
|
14
|
+
table: string;
|
|
15
|
+
record: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function AirtableRecord({ table, record, children, ...props }: React.PropsWithChildren<AirtableRecordProps>): JSX.Element;
|
|
18
|
+
export interface AirtableRecordFieldProps extends CanvasComponentProps<RecordData | undefined> {
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
field?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function AirtableRecordField({ className, field, style, setControlContextData, }: AirtableRecordFieldProps): JSX.Element;
|
|
24
|
+
export interface AirtableCollectionProps {
|
|
25
|
+
dataSourceId?: string;
|
|
26
|
+
base?: string;
|
|
27
|
+
table: string;
|
|
28
|
+
fields?: string[];
|
|
29
|
+
filterByFormula?: string;
|
|
30
|
+
maxRecords?: number;
|
|
31
|
+
pageSize?: number;
|
|
32
|
+
sort?: {
|
|
33
|
+
field: string;
|
|
34
|
+
direction?: "asc" | "desc";
|
|
35
|
+
}[];
|
|
36
|
+
view?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function AirtableCollection({ table, children, ...props }: React.PropsWithChildren<AirtableCollectionProps>): JSX.Element;
|
|
39
|
+
interface AirtableCredentialsProviderProps {
|
|
40
|
+
dataSourceId: string;
|
|
41
|
+
base: string;
|
|
42
|
+
host?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function AirtableCredentialsProvider({ base, dataSourceId, host: maybeHost, children, }: React.PropsWithChildren<AirtableCredentialsProviderProps>): JSX.Element;
|
|
45
|
+
export declare const airtableRecordMeta: ComponentMeta<AirtableRecordProps>;
|
|
46
|
+
export declare function registerAirtableRecord(loader?: {
|
|
47
|
+
registerComponent: typeof registerComponent;
|
|
48
|
+
}, customAirtableRecordMeta?: ComponentMeta<AirtableRecordProps>): void;
|
|
49
|
+
export declare const airtableRecordFieldMeta: ComponentMeta<AirtableRecordFieldProps>;
|
|
50
|
+
export declare function registerAirtableRecordField(loader?: {
|
|
51
|
+
registerComponent: typeof registerComponent;
|
|
52
|
+
}, customAirtableRecordFieldMeta?: ComponentMeta<AirtableRecordFieldProps>): void;
|
|
53
|
+
export declare const airtableCollectionMeta: ComponentMeta<AirtableCollectionProps>;
|
|
54
|
+
export declare function registerAirtableCollection(loader?: {
|
|
55
|
+
registerComponent: typeof registerComponent;
|
|
56
|
+
}, customAirtableCollectionMeta?: ComponentMeta<AirtableCollectionProps>): void;
|
|
57
|
+
export declare const airtableCredentialsProviderMeta: GlobalContextMeta<AirtableCredentialsProviderProps>;
|
|
58
|
+
export declare function registerAirtableCredentialsProvider(loader?: {
|
|
59
|
+
registerGlobalContext: typeof registerGlobalContext;
|
|
60
|
+
}, customAirtableCredentialsProviderMeta?: GlobalContextMeta<AirtableCredentialsProviderProps>): void;
|
|
61
|
+
export {};
|