@bbki.ng/site 1.2.21 → 1.2.23

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,9 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 1.2.23
4
+
5
+ ## 1.2.22
6
+
3
7
  ## 1.2.21
4
8
 
5
9
  ## 1.2.20
package/dev-dist/sw.js CHANGED
@@ -98,7 +98,7 @@ define(["./workbox-baccbcc1"], function (workbox) {
98
98
  [
99
99
  {
100
100
  url: "index.html",
101
- revision: "0.tmo9mjvl31o",
101
+ revision: "0.clbi8di3vmg",
102
102
  },
103
103
  ],
104
104
  {}
@@ -832,7 +832,7 @@ define(["exports"], function (exports) {
832
832
  }
833
833
  /**
834
834
  * @return {Map<string, Array<workbox-routing.Route>>} routes A `Map` of HTTP
835
- * method title ('GET', etc.) to an array of all the corresponding `Route`
835
+ * method name ('GET', etc.) to an array of all the corresponding `Route`
836
836
  * instances that are registered.
837
837
  */
838
838
 
@@ -1958,7 +1958,7 @@ define(["exports"], function (exports) {
1958
1958
  url,
1959
1959
  timestamp,
1960
1960
  cacheName: this._cacheName,
1961
- // Creating an ID from the URL and cache title won't be necessary once
1961
+ // Creating an ID from the URL and cache name won't be necessary once
1962
1962
  // Edge switches to Chromium and all browsers we support work with
1963
1963
  // array keyPaths.
1964
1964
  id: this._getId(url),
@@ -2055,7 +2055,7 @@ define(["exports"], function (exports) {
2055
2055
  */
2056
2056
 
2057
2057
  _getId(url) {
2058
- // Creating an ID from the URL and cache title won't be necessary once
2058
+ // Creating an ID from the URL and cache name won't be necessary once
2059
2059
  // Edge switches to Chromium and all browsers we support work with
2060
2060
  // array keyPaths.
2061
2061
  return this._cacheName + "|" + normalizeURL(url);
@@ -2276,7 +2276,7 @@ define(["exports"], function (exports) {
2276
2276
  * It can only be used with `workbox-strategy` instances that have a
2277
2277
  * [custom `cacheName` property set](/web/tools/workbox/guides/configure-workbox#custom_cache_names_in_strategies).
2278
2278
  * In other words, it can't be used to expire entries in strategy that uses the
2279
- * default runtime cache title.
2279
+ * default runtime cache name.
2280
2280
  *
2281
2281
  * Whenever a cached response is used or updated, this plugin will look
2282
2282
  * at the associated cache and remove any old or extra responses.
@@ -2435,7 +2435,7 @@ define(["exports"], function (exports) {
2435
2435
  }
2436
2436
  /**
2437
2437
  * A simple helper method to return a CacheExpiration instance for a given
2438
- * cache title.
2438
+ * cache name.
2439
2439
  *
2440
2440
  * @param {string} cacheName
2441
2441
  * @return {CacheExpiration}
@@ -2523,7 +2523,7 @@ define(["exports"], function (exports) {
2523
2523
  * metadata is also cleanly removed and open IndexedDB instances are deleted.
2524
2524
  *
2525
2525
  * Note that if you're *not* using cache expiration for a given cache, calling
2526
- * `caches.delete()` and passing in the cache's title should be sufficient.
2526
+ * `caches.delete()` and passing in the cache's name should be sufficient.
2527
2527
  * There is no Workbox-specific method needed for cleanup in that case.
2528
2528
  */
2529
2529
 
@@ -2911,7 +2911,7 @@ define(["exports"], function (exports) {
2911
2911
  /**
2912
2912
  * The request the strategy is performing (passed to the strategy's
2913
2913
  * `handle()` or `handleAll()` method).
2914
- * @title request
2914
+ * @name request
2915
2915
  * @instance
2916
2916
  * @type {Request}
2917
2917
  * @memberof workbox-strategies.StrategyHandler
@@ -2919,7 +2919,7 @@ define(["exports"], function (exports) {
2919
2919
 
2920
2920
  /**
2921
2921
  * The event associated with this request.
2922
- * @title event
2922
+ * @name event
2923
2923
  * @instance
2924
2924
  * @type {ExtendableEvent}
2925
2925
  * @memberof workbox-strategies.StrategyHandler
@@ -2930,7 +2930,7 @@ define(["exports"], function (exports) {
2930
2930
  * `handle()` or `handleAll()` method).
2931
2931
  * Note: the `url` param will be present if the strategy was invoked
2932
2932
  * from a workbox `Route` object.
2933
- * @title url
2933
+ * @name url
2934
2934
  * @instance
2935
2935
  * @type {URL|undefined}
2936
2936
  * @memberof workbox-strategies.StrategyHandler
@@ -2943,7 +2943,7 @@ define(["exports"], function (exports) {
2943
2943
  * from a workbox `Route` object and the
2944
2944
  * {@link workbox-routing~matchCallback} returned
2945
2945
  * a truthy value (it will be that value).
2946
- * @title params
2946
+ * @name params
2947
2947
  * @instance
2948
2948
  * @type {*|undefined}
2949
2949
  * @memberof workbox-strategies.StrategyHandler
@@ -3305,7 +3305,7 @@ define(["exports"], function (exports) {
3305
3305
  * Returns true if the strategy has at least one plugin with the given
3306
3306
  * callback.
3307
3307
  *
3308
- * @param {string} name The title of the callback to check for.
3308
+ * @param {string} name The name of the callback to check for.
3309
3309
  * @return {boolean}
3310
3310
  */
3311
3311
 
@@ -3319,7 +3319,7 @@ define(["exports"], function (exports) {
3319
3319
  return false;
3320
3320
  }
3321
3321
  /**
3322
- * Runs all plugin callbacks matching the given title, in order, passing the
3322
+ * Runs all plugin callbacks matching the given name, in order, passing the
3323
3323
  * given param object (merged ith the current plugin state) as the only
3324
3324
  * argument.
3325
3325
  *
@@ -3329,7 +3329,7 @@ define(["exports"], function (exports) {
3329
3329
  * {@link workbox-strategies.StrategyHandler#iterateCallbacks}
3330
3330
  * below for how to handle that case.
3331
3331
  *
3332
- * @param {string} name The title of the callback to run within each plugin.
3332
+ * @param {string} name The name of the callback to run within each plugin.
3333
3333
  * @param {Object} param The object to pass as the first (and only) param
3334
3334
  * when executing each callback. This object will be merged with the
3335
3335
  * current plugin state prior to callback execution.
@@ -3348,7 +3348,7 @@ define(["exports"], function (exports) {
3348
3348
  * you call each callback, whatever object parameter you pass it will
3349
3349
  * be merged with the plugin's current state).
3350
3350
  *
3351
- * @param {string} name The title fo the callback to run
3351
+ * @param {string} name The name fo the callback to run
3352
3352
  * @return {Array<Function>}
3353
3353
  */
3354
3354
 
@@ -3497,7 +3497,7 @@ define(["exports"], function (exports) {
3497
3497
  * constructor.
3498
3498
  *
3499
3499
  * @param {Object} [options]
3500
- * @param {string} [options.cacheName] Cache title to store and retrieve
3500
+ * @param {string} [options.cacheName] Cache name to store and retrieve
3501
3501
  * requests. Defaults to the cache names provided by
3502
3502
  * {@link workbox-core.cacheNames}.
3503
3503
  * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}
@@ -3512,7 +3512,7 @@ define(["exports"], function (exports) {
3512
3512
  */
3513
3513
  constructor(options = {}) {
3514
3514
  /**
3515
- * Cache title to store and retrieve
3515
+ * Cache name to store and retrieve
3516
3516
  * requests. Defaults to the cache names provided by
3517
3517
  * {@link workbox-core.cacheNames}.
3518
3518
  *
@@ -3728,7 +3728,7 @@ define(["exports"], function (exports) {
3728
3728
  * cache, cache options, fetch options and plugins are used (per the current
3729
3729
  * strategy instance).
3730
3730
  *
3731
- * @title _handle
3731
+ * @name _handle
3732
3732
  * @instance
3733
3733
  * @abstract
3734
3734
  * @function
@@ -4263,7 +4263,7 @@ define(["exports"], function (exports) {
4263
4263
  /**
4264
4264
  *
4265
4265
  * @param {Object} [options]
4266
- * @param {string} [options.cacheName] Cache title to store and retrieve
4266
+ * @param {string} [options.cacheName] Cache name to store and retrieve
4267
4267
  * requests. Defaults to the cache names provided by
4268
4268
  * {@link workbox-core.cacheNames}.
4269
4269
  * @param {Array<Object>} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using-plugins|Plugins}
@@ -4777,7 +4777,7 @@ define(["exports"], function (exports) {
4777
4777
  * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)
4778
4778
  * with the following differences:
4779
4779
  *
4780
- * - It knows what the title of the precache is, and only checks in that cache.
4780
+ * - It knows what the name of the precache is, and only checks in that cache.
4781
4781
  * - It allows you to pass in an "original" URL without versioning parameters,
4782
4782
  * and it will automatically look up the correct cache key for the currently
4783
4783
  * active revision of that URL.
@@ -4866,7 +4866,7 @@ define(["exports"], function (exports) {
4866
4866
  *
4867
4867
  * @param {URL} urlObject The original URL.
4868
4868
  * @param {Array<RegExp>} ignoreURLParametersMatching RegExps to test against
4869
- * each search parameter title. Matches mean that the search parameter should be
4869
+ * each search parameter name. Matches mean that the search parameter should be
4870
4870
  * ignored.
4871
4871
  * @return {URL} The URL with any ignored search parameters removed.
4872
4872
  *
@@ -5118,7 +5118,7 @@ define(["exports"], function (exports) {
5118
5118
  * This should be safe to use as long as you don't include `substringToFind`
5119
5119
  * (defaulting to `-precache-`) in your non-precache cache names.
5120
5120
  *
5121
- * @param {string} currentPrecacheName The cache title currently in use for
5121
+ * @param {string} currentPrecacheName The cache name currently in use for
5122
5122
  * precaching. This cache won't be deleted.
5123
5123
  * @param {string} [substringToFind='-precache-'] Cache names which include this
5124
5124
  * substring will be deleted (excluding `currentPrecacheName`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "1.2.21",
3
+ "version": "1.2.23",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "url": "git+https://github.com/bbbottle/bbki.ng.git"
17
17
  },
18
18
  "dependencies": {
19
- "@bbki.ng/components": "workspace:2.2.5",
19
+ "@bbki.ng/components": "workspace:2.2.6",
20
20
  "@supabase/supabase-js": "^1.30.6",
21
21
  "classnames": "2.3.1",
22
22
  "react": "^18.0.0",
@@ -3,8 +3,6 @@ import { toast } from "sonner";
3
3
  // @ts-ignore
4
4
  import { useRegisterSW } from "virtual:pwa-register/react";
5
5
 
6
- const intervalMS = 1000 * 10;
7
-
8
6
  export const ReloadPrompt = () => {
9
7
  const {
10
8
  needRefresh: [needRefresh, setNeedRefresh],
@@ -15,20 +13,6 @@ export const ReloadPrompt = () => {
15
13
  },
16
14
  onRegisteredSW(swScriptUrl: string, r: ServiceWorkerRegistration) {
17
15
  console.log("SW registered: ", swScriptUrl, r);
18
- r &&
19
- setInterval(async () => {
20
- if (!(!r.installing && navigator)) return;
21
-
22
- if ("connection" in navigator && !navigator.onLine) return;
23
-
24
- await fetch(swScriptUrl, {
25
- cache: "no-store",
26
- headers: {
27
- cache: "no-store",
28
- "cache-control": "no-cache",
29
- },
30
- });
31
- }, intervalMS);
32
16
  },
33
17
  onOfflineReady() {
34
18
  console.log("App is offline-ready");
package/vite.config.js CHANGED
@@ -60,7 +60,7 @@ export default defineConfig({
60
60
  "Logo.svg",
61
61
  ],
62
62
  devOptions: {
63
- enabled: false,
63
+ enabled: true,
64
64
  /* other options */
65
65
  },
66
66
  workbox: {