powerpagestoolkit 2.7.1311 → 2.7.1401

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/bundle.js CHANGED
@@ -1335,10 +1335,15 @@ function createReferenceString(tagName, datafieldname) {
1335
1335
  return `[data-name="${datafieldname}"]`;
1336
1336
  return null;
1337
1337
  }
1338
+
1339
+ // src/index.ts
1340
+ var toolkit = { API: API_default, createRef: createDOMNodeReference, waitFor, bindForm };
1341
+ var src_default = toolkit;
1338
1342
  export {
1339
1343
  API_default as API,
1340
1344
  bindForm,
1341
1345
  createDOMNodeReference as createRef,
1346
+ src_default as default,
1342
1347
  waitFor
1343
1348
  };
1344
1349
 
@@ -4,3 +4,15 @@ import createRef from "./core/createDOMNodeReferences.js";
4
4
  import waitFor from "./core/waitFor.js";
5
5
  import bindForm from "./core/bindForm.js";
6
6
  export { API, createRef, waitFor, bindForm };
7
+ declare const toolkit: {
8
+ API: {
9
+ createRecord(tableSetName: string, data: object): Promise<string>;
10
+ getRecord<T>(tableSetName: string, recordID: string, selectColumns?: string): Promise<T>;
11
+ getMultiple(tableSetName: string, queryParameters?: string): Promise<Array<object>>;
12
+ updateRecord(tableSetName: string, recordId: string, data: object): Promise<any>;
13
+ };
14
+ createRef: typeof createRef;
15
+ waitFor: typeof waitFor;
16
+ bindForm: typeof bindForm;
17
+ };
18
+ export default toolkit;
package/package.json CHANGED
@@ -1,15 +1,44 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "2.7.1311",
3
+ "version": "2.7.1401",
4
4
  "description": "Reference, manipulate, and engage with Power Pages sites through the nodes in the DOM; use a variety of custom methods that allow customizing your power pages site quicker and easier. ",
5
5
  "main": "./dist/bundle.js",
6
- "types": "./dist/index.d.ts",
7
- "unpkg": "./dist/index.iife.js",
8
- "jsdelivr": "./dist/index.iife.js",
9
- "browser": "./dist/index.iife.js",
6
+ "module": "./dist/bundle.js",
7
+ "types": "./dist/types/index.d.ts",
10
8
  "typesVersions": {
11
9
  "*": {
12
- "*": ["./dist/types/*"]
10
+ "*": [
11
+ "./dist/types/*"
12
+ ]
13
+ }
14
+ },
15
+ "unpkg": "./dist/bundle.js",
16
+ "jsdelivr": "./dist/bundle.js",
17
+ "browser": "./dist/bundle.js",
18
+ "author": "KeatonBrewster",
19
+ "license": "AGPL-3.0-only",
20
+ "type": "module",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/Keaton-Brewster/PowerPagesToolKit"
24
+ },
25
+ "files": [
26
+ "dist/bundle.js",
27
+ "dist/bundle.css",
28
+ "dist/types/**/*.d.ts",
29
+ "assets/**"
30
+ ],
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/types/index.d.ts",
34
+ "import": "./dist/bundle.js"
35
+ },
36
+ "./createDOMNodeReference": {
37
+ "import": "./dist/createDOMNodeReference.js",
38
+ "types": "./dist/createDOMNodeReference.d.ts"
39
+ },
40
+ "./style.css": {
41
+ "import": "./dist/bundle.css"
13
42
  }
14
43
  },
15
44
  "scripts": {
@@ -35,13 +64,6 @@
35
64
  "typescript": "^5.6.3",
36
65
  "typescript-eslint": "^8.12.2"
37
66
  },
38
- "author": "KeatonBrewster",
39
- "license": "AGPL-3.0-only",
40
- "type": "module",
41
- "repository": {
42
- "type": "git",
43
- "url": "https://github.com/Keaton-Brewster/PowerPagesToolKit"
44
- },
45
67
  "keywords": [
46
68
  "powerpages",
47
69
  "power pages",
@@ -64,25 +86,5 @@
64
86
  "form-management",
65
87
  "frontend",
66
88
  "web-development"
67
- ],
68
- "files": [
69
- "dist/bundle.js",
70
- "dist/bundle.css",
71
- "dist/index.iife.js",
72
- "dist/types/**/*.d.ts",
73
- "assets/**"
74
- ],
75
- "exports": {
76
- ".": {
77
- "import": "./dist/bundle.js",
78
- "types": "./dist/types/index.d.ts"
79
- },
80
- "./createDOMNodeReference": {
81
- "import": "./dist/createDOMNodeReference.js",
82
- "types": "./dist/createDOMNodeReference.d.ts"
83
- },
84
- "./style.css": {
85
- "import": "./dist/bundle.css"
86
- }
87
- }
89
+ ]
88
90
  }