@gravitywiz/types 0.0.6 → 0.0.8
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/index.d.ts +40 -2
- package/package.json +2 -3
- package/tsconfig.json +6 -0
- package/.editorconfig +0 -9
package/index.d.ts
CHANGED
|
@@ -88,7 +88,20 @@ declare global {
|
|
|
88
88
|
operator: string;
|
|
89
89
|
value: number | string;
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
|
|
92
|
+
type Feed<M = {}> = {
|
|
93
|
+
id: string;
|
|
94
|
+
form_id: string;
|
|
95
|
+
is_active: '1' | '0';
|
|
96
|
+
feed_order: string;
|
|
97
|
+
addon_slug: string;
|
|
98
|
+
meta: FeedMeta<M>
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
type FeedMeta<M = {}> = M & {
|
|
102
|
+
feed_name: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
92
105
|
type GFConditionalLogicOperators = 'is' | 'isnot' | '>' | '<' | 'contains' | 'starts_with' | 'ends_with';
|
|
93
106
|
|
|
94
107
|
type GFConditionalLogicLogicType = 'all' | 'any';
|
|
@@ -129,6 +142,7 @@ declare global {
|
|
|
129
142
|
selectedValue: string,
|
|
130
143
|
inputName: string | false
|
|
131
144
|
) => string;
|
|
145
|
+
CreateConditionalLogic: (objectType: string, object: any) => void
|
|
132
146
|
|
|
133
147
|
// Frontend
|
|
134
148
|
gform: {
|
|
@@ -180,6 +194,8 @@ declare global {
|
|
|
180
194
|
|
|
181
195
|
gformToNumber(text: string): number;
|
|
182
196
|
|
|
197
|
+
gform_initialize_tooltips(): void;
|
|
198
|
+
|
|
183
199
|
gf_global: {
|
|
184
200
|
base_url: string;
|
|
185
201
|
gf_currency_config: GFCurrencyConfig;
|
|
@@ -189,9 +205,21 @@ declare global {
|
|
|
189
205
|
version_hash: string;
|
|
190
206
|
};
|
|
191
207
|
|
|
208
|
+
gfMergeTags: {
|
|
209
|
+
getMergeTags: () => {
|
|
210
|
+
custom: MergeTagGroup;
|
|
211
|
+
optional: MergeTagGroup;
|
|
212
|
+
other: MergeTagGroup;
|
|
213
|
+
pricing: MergeTagGroup;
|
|
214
|
+
required: MergeTagGroup;
|
|
215
|
+
ungrouped: MergeTagGroup;
|
|
216
|
+
};
|
|
217
|
+
// placeholder
|
|
218
|
+
[key: string]: any
|
|
219
|
+
};
|
|
220
|
+
|
|
192
221
|
// Placeholders
|
|
193
222
|
mOxie: any;
|
|
194
|
-
gfMergeTagsObj: any;
|
|
195
223
|
gf_raw_input_change: any;
|
|
196
224
|
gf_check_field_rule: any;
|
|
197
225
|
gf_vars: any;
|
|
@@ -207,6 +235,16 @@ declare global {
|
|
|
207
235
|
gf_apply_rules: any;
|
|
208
236
|
}
|
|
209
237
|
|
|
238
|
+
interface MergeTag {
|
|
239
|
+
tag: string;
|
|
240
|
+
label: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
interface MergeTagGroup {
|
|
244
|
+
label: string;
|
|
245
|
+
tags: MergeTag[];
|
|
246
|
+
}
|
|
247
|
+
|
|
210
248
|
interface String {
|
|
211
249
|
// Deprecated, being removed in GF 2.8.
|
|
212
250
|
format: (...format: any[]) => string;
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitywiz/types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "TypesScript type definitions for Gravity Forms and Gravity Wiz.",
|
|
5
5
|
"author": "Gravity Wiz",
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "GPL-2.0-or-later",
|
|
7
7
|
"main": "",
|
|
8
8
|
"types": "index.d.ts",
|
|
9
|
-
"private": false,
|
|
10
9
|
"dependencies": {
|
|
11
10
|
"@types/jquery": "^3.5.16",
|
|
12
11
|
"@types/plupload": "^2.0.10"
|
package/tsconfig.json
ADDED