frayerjj-frontend 0.7.8 → 0.8.0

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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/src/init.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frayerjj-frontend",
3
- "version": "0.7.8",
3
+ "version": "0.8.0",
4
4
  "description": "My base frontend for various projects",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -20,9 +20,10 @@
20
20
  "author": "Joshua Frayer",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "ckeditor5": "^47.6.1",
24
23
  "@popperjs/core": "^2.11.8",
25
24
  "bootstrap": "^5.3.8",
25
+ "ckeditor5": "^47.6.1",
26
+ "corejs-typeahead": "^1.3.4",
26
27
  "cropperjs": "^2.1.0",
27
28
  "flag-icons": "^7.5.0",
28
29
  "libphonenumber-js": "^1.12.39",
package/src/init.js CHANGED
@@ -153,7 +153,8 @@ export const init = (args) => {
153
153
  }
154
154
 
155
155
  // Tab Session Persistence
156
- document.querySelectorAll('.tab-session-persist').forEach(container => {
156
+ const PERSIST_CLASS = 'tab-session-persist';
157
+ document.querySelectorAll(`.${PERSIST_CLASS}`).forEach(container => {
157
158
  const storageKey = `activeTab_${window.location.pathname}_${container.id}`;
158
159
  const savedTarget = session.getStrVar(storageKey);
159
160
  msg.verbose(`Restoring tab for container #${container.id} with key ${storageKey}:`, savedTarget);