@prairielearn/browser-utils 2.5.0 → 2.5.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @prairielearn/browser-utils
2
2
 
3
+ ## 2.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c0b1c74: Enable `declarationMap`
8
+ - Updated dependencies [c0b1c74]
9
+ - @prairielearn/html@4.0.21
10
+
3
11
  ## 2.5.0
4
12
 
5
13
  ### Minor Changes
@@ -21,3 +21,4 @@ export declare function downloadAsJSON(data: any, filename: string): void;
21
21
  * @param filename The desired filename.
22
22
  */
23
23
  export declare function downloadAsCSV(header: string[], data: unknown[][], filename: string): void;
24
+ //# sourceMappingURL=downloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"downloads.d.ts","sourceRoot":"","sources":["../src/downloads.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAW1F;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAGhE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAGzF"}
@@ -14,3 +14,4 @@ export declare function EncodedData<T = unknown>(data: T, elementId: string): Ht
14
14
  * @returns The decoded data.
15
15
  */
16
16
  export declare function decodeData<T = unknown>(elementId: string): T;
17
+ //# sourceMappingURL=encode-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode-data.d.ts","sourceRoot":"","sources":["../src/encode-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAoB,MAAM,oBAAoB,CAAC;AAE3E;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,cAAc,CAKnF;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC,CAQ5D"}
package/dist/focus.d.ts CHANGED
@@ -3,3 +3,4 @@ export interface FocusTrap {
3
3
  }
4
4
  export declare function trapFocus(element: Element): FocusTrap;
5
5
  export declare function focusFirstFocusableChild(el: HTMLElement): void;
6
+ //# sourceMappingURL=focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../src/focus.ts"],"names":[],"mappings":"AA+DA,MAAM,WAAW,SAAS;IACxB,UAAU,IAAI,IAAI,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,CAsCrD;AAED,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,WAAW,QAsBvD"}
package/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export { EncodedData, decodeData } from './encode-data.js';
4
4
  export { templateFromAttributes } from './template-from-attributes.js';
5
5
  export { trapFocus, focusFirstFocusableChild } from './focus.js';
6
6
  export { downloadAsCSV, downloadAsJSON } from './downloads.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare function onDocumentReady(fn: () => void): void;
2
+ //# sourceMappingURL=on-document-ready.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-document-ready.d.ts","sourceRoot":"","sources":["../src/on-document-ready.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI,CAQpD"}
@@ -6,3 +6,4 @@ export declare function parseHTML(document: Document, html: string | HtmlSafeStr
6
6
  * exactly one element, an error is thrown.
7
7
  */
8
8
  export declare function parseHTMLElement<T extends Element = Element>(document: Document, html: string | HtmlSafeString): T;
9
+ //# sourceMappingURL=parse-html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-html.d.ts","sourceRoot":"","sources":["../src/parse-html.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,gBAAgB,CAK7F;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,EAC1D,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,GAAG,cAAc,GAC5B,CAAC,CAMH"}
@@ -15,3 +15,4 @@ type AttributeMap = Record<string, string>;
15
15
  */
16
16
  export declare function templateFromAttributes(source: HTMLElement, target: HTMLElement, attributes: AttributeMap): void;
17
17
  export {};
18
+ //# sourceMappingURL=template-from-attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-from-attributes.d.ts","sourceRoot":"","sources":["../src/template-from-attributes.ts"],"names":[],"mappings":"AAAA,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE3C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,YAAY,QAyCzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prairielearn/browser-utils",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,7 @@
13
13
  "dev": "tsc --watch --preserveWatchOutput"
14
14
  },
15
15
  "dependencies": {
16
- "@prairielearn/html": "^4.0.20",
16
+ "@prairielearn/html": "^4.0.21",
17
17
  "csv-stringify": "^6.6.0",
18
18
  "js-base64": "^3.7.8"
19
19
  },