browser-extension-settings 0.2.5 → 0.2.6

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/lib/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export {
2
2
  initSettings,
3
3
  showSettings,
4
+ hideSettings,
4
5
  getSettingsValue,
5
6
  saveSattingsValues,
6
7
  resetSattingsValues,
package/lib/settings.ts CHANGED
@@ -155,6 +155,10 @@ const closeModal = () => {
155
155
  removeEventListener(document, "keydown", onDocumentKeyDown, true)
156
156
  }
157
157
 
158
+ export function hideSettings() {
159
+ closeModal()
160
+ }
161
+
158
162
  const onDocumentClick = (event: Event) => {
159
163
  const target = event.target as HTMLElement
160
164
  if (target?.closest(`.${prefix}container`)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-settings",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Settings module for developing browser extensions and userscripts",
5
5
  "type": "module",
6
6
  "main": "./lib/index.ts",