@plasmicpkgs/airtable 0.0.263 → 0.0.264
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/RecordData.d.ts +61 -61
- package/dist/index.d.ts +7 -7
- package/package.json +4 -4
package/dist/RecordData.d.ts
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import registerComponent, { CanvasComponentProps, CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import registerGlobalContext, { GlobalContextMeta } from "@plasmicapp/host/registerGlobalContext";
|
|
3
|
-
import React from "react";
|
|
4
|
-
export interface DataSourceInfo {
|
|
5
|
-
id: string;
|
|
6
|
-
base: string;
|
|
7
|
-
host?: string;
|
|
8
|
-
}
|
|
9
|
-
interface RecordData {
|
|
10
|
-
[field: string]: string | {
|
|
11
|
-
id: string;
|
|
12
|
-
url: string;
|
|
13
|
-
filename: string;
|
|
14
|
-
}[];
|
|
15
|
-
}
|
|
16
|
-
export interface AirtableRecordProps {
|
|
17
|
-
table: string;
|
|
18
|
-
record: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function AirtableRecord({ table, record, children, }: React.PropsWithChildren<AirtableRecordProps>): React.JSX.Element;
|
|
21
|
-
export interface AirtableRecordFieldProps extends CanvasComponentProps<RecordData | undefined> {
|
|
22
|
-
className?: string;
|
|
23
|
-
style?: React.CSSProperties;
|
|
24
|
-
field?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare function AirtableRecordField({ className, field, style, setControlContextData, }: AirtableRecordFieldProps): React.JSX.Element;
|
|
27
|
-
export interface AirtableCollectionProps {
|
|
28
|
-
table: string;
|
|
29
|
-
fields?: string[];
|
|
30
|
-
filterByFormula?: string;
|
|
31
|
-
maxRecords?: number;
|
|
32
|
-
pageSize?: number;
|
|
33
|
-
sort?: {
|
|
34
|
-
field: string;
|
|
35
|
-
direction?: "asc" | "desc";
|
|
36
|
-
}[];
|
|
37
|
-
view?: string;
|
|
38
|
-
}
|
|
39
|
-
export declare function AirtableCollection({ table, children, ...props }: React.PropsWithChildren<AirtableCollectionProps>): React.JSX.Element;
|
|
40
|
-
interface AirtableCredentialsProviderProps {
|
|
41
|
-
dataSource: DataSourceInfo;
|
|
42
|
-
host?: string;
|
|
43
|
-
}
|
|
44
|
-
export declare function AirtableCredentialsProvider({ dataSource, host: maybeHost, children, }: React.PropsWithChildren<AirtableCredentialsProviderProps>): React.JSX.Element;
|
|
45
|
-
export declare const airtableRecordMeta: CodeComponentMeta<AirtableRecordProps>;
|
|
46
|
-
export declare function registerAirtableRecord(loader?: {
|
|
47
|
-
registerComponent: typeof registerComponent;
|
|
48
|
-
}, customAirtableRecordMeta?: CodeComponentMeta<AirtableRecordProps>): void;
|
|
49
|
-
export declare const airtableRecordFieldMeta: CodeComponentMeta<AirtableRecordFieldProps>;
|
|
50
|
-
export declare function registerAirtableRecordField(loader?: {
|
|
51
|
-
registerComponent: typeof registerComponent;
|
|
52
|
-
}, customAirtableRecordFieldMeta?: CodeComponentMeta<AirtableRecordFieldProps>): void;
|
|
53
|
-
export declare const airtableCollectionMeta: CodeComponentMeta<AirtableCollectionProps>;
|
|
54
|
-
export declare function registerAirtableCollection(loader?: {
|
|
55
|
-
registerComponent: typeof registerComponent;
|
|
56
|
-
}, customAirtableCollectionMeta?: CodeComponentMeta<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 {};
|
|
1
|
+
import registerComponent, { CanvasComponentProps, CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import registerGlobalContext, { GlobalContextMeta } from "@plasmicapp/host/registerGlobalContext";
|
|
3
|
+
import React from "react";
|
|
4
|
+
export interface DataSourceInfo {
|
|
5
|
+
id: string;
|
|
6
|
+
base: string;
|
|
7
|
+
host?: string;
|
|
8
|
+
}
|
|
9
|
+
interface RecordData {
|
|
10
|
+
[field: string]: string | {
|
|
11
|
+
id: string;
|
|
12
|
+
url: string;
|
|
13
|
+
filename: string;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export interface AirtableRecordProps {
|
|
17
|
+
table: string;
|
|
18
|
+
record: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function AirtableRecord({ table, record, children, }: React.PropsWithChildren<AirtableRecordProps>): React.JSX.Element;
|
|
21
|
+
export interface AirtableRecordFieldProps extends CanvasComponentProps<RecordData | undefined> {
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
field?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function AirtableRecordField({ className, field, style, setControlContextData, }: AirtableRecordFieldProps): React.JSX.Element;
|
|
27
|
+
export interface AirtableCollectionProps {
|
|
28
|
+
table: string;
|
|
29
|
+
fields?: string[];
|
|
30
|
+
filterByFormula?: string;
|
|
31
|
+
maxRecords?: number;
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
sort?: {
|
|
34
|
+
field: string;
|
|
35
|
+
direction?: "asc" | "desc";
|
|
36
|
+
}[];
|
|
37
|
+
view?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function AirtableCollection({ table, children, ...props }: React.PropsWithChildren<AirtableCollectionProps>): React.JSX.Element;
|
|
40
|
+
interface AirtableCredentialsProviderProps {
|
|
41
|
+
dataSource: DataSourceInfo;
|
|
42
|
+
host?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function AirtableCredentialsProvider({ dataSource, host: maybeHost, children, }: React.PropsWithChildren<AirtableCredentialsProviderProps>): React.JSX.Element;
|
|
45
|
+
export declare const airtableRecordMeta: CodeComponentMeta<AirtableRecordProps>;
|
|
46
|
+
export declare function registerAirtableRecord(loader?: {
|
|
47
|
+
registerComponent: typeof registerComponent;
|
|
48
|
+
}, customAirtableRecordMeta?: CodeComponentMeta<AirtableRecordProps>): void;
|
|
49
|
+
export declare const airtableRecordFieldMeta: CodeComponentMeta<AirtableRecordFieldProps>;
|
|
50
|
+
export declare function registerAirtableRecordField(loader?: {
|
|
51
|
+
registerComponent: typeof registerComponent;
|
|
52
|
+
}, customAirtableRecordFieldMeta?: CodeComponentMeta<AirtableRecordFieldProps>): void;
|
|
53
|
+
export declare const airtableCollectionMeta: CodeComponentMeta<AirtableCollectionProps>;
|
|
54
|
+
export declare function registerAirtableCollection(loader?: {
|
|
55
|
+
registerComponent: typeof registerComponent;
|
|
56
|
+
}, customAirtableCollectionMeta?: CodeComponentMeta<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 {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./RecordData";
|
|
2
|
-
import registerComponent from "@plasmicapp/host/registerComponent";
|
|
3
|
-
import registerGlobalContext from "@plasmicapp/host/registerGlobalContext";
|
|
4
|
-
export declare function registerAll(loader?: {
|
|
5
|
-
registerComponent: typeof registerComponent;
|
|
6
|
-
registerGlobalContext: typeof registerGlobalContext;
|
|
7
|
-
}): void;
|
|
1
|
+
export * from "./RecordData";
|
|
2
|
+
import registerComponent from "@plasmicapp/host/registerComponent";
|
|
3
|
+
import registerGlobalContext from "@plasmicapp/host/registerGlobalContext";
|
|
4
|
+
export declare function registerAll(loader?: {
|
|
5
|
+
registerComponent: typeof registerComponent;
|
|
6
|
+
registerGlobalContext: typeof registerGlobalContext;
|
|
7
|
+
}): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/airtable",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.264",
|
|
4
4
|
"description": "Plasmic registration call for the HTML5 video element",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "tsdx build",
|
|
23
23
|
"start": "tsdx watch",
|
|
24
|
-
"test": "TEST_CWD=`pwd`
|
|
24
|
+
"test": "TEST_CWD=`pwd` pnpm -w test --passWithNoTests",
|
|
25
25
|
"lint": "tsdx lint",
|
|
26
26
|
"prepublishOnly": "npm run build",
|
|
27
27
|
"size": "size-limit",
|
|
28
28
|
"analyze": "size-limit --why"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@plasmicapp/host": "2.0.
|
|
31
|
+
"@plasmicapp/host": "2.0.7",
|
|
32
32
|
"@types/node": "^14.0.26",
|
|
33
33
|
"@types/react": "^18",
|
|
34
34
|
"tsdx": "^0.14.1",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"react": ">=16.8.0",
|
|
41
41
|
"react-dom": ">=16.8.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "6087f1621240c66b20d4a8fcf02c8bf889c554aa"
|
|
44
44
|
}
|