@openeventkit/event-site 1.0.41 → 1.0.42

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/env.template CHANGED
@@ -30,4 +30,5 @@ GATSBY_SENTRY_AUTH_TOKEN=
30
30
  GATSBY_SENTRY_RELEASE=
31
31
  GATSBY_METADATA_TITLE=
32
32
  GATSBY_METADATA_DESCRIPTION=
33
- GATSBY_CMS_BACKEND_REPO=
33
+ GATSBY_CMS_BACKEND_REPO=
34
+ GATSBY_CMS_BACKEND_BRANCH=
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openeventkit/event-site",
3
3
  "description": "Event Site",
4
- "version": "1.0.41",
4
+ "version": "1.0.42",
5
5
  "author": "Tipit LLC",
6
6
  "dependencies": {
7
7
  "@mui/base": "^5.0.0-alpha.114",
@@ -75,7 +75,7 @@
75
75
  "netlify-cms-app": "^2.15.72",
76
76
  "netlify-cms-lib-widgets": "^1.8.0",
77
77
  "node-sass-utils": "^1.1.3",
78
- "openstack-uicore-foundation": "^4.1.30",
78
+ "openstack-uicore-foundation": "^4.1.39",
79
79
  "path-browserify": "^1.0.1",
80
80
  "prop-types": "^15.6.0",
81
81
  "react": "^18.2.0",
@@ -79,9 +79,10 @@ export const updateFiltersFromHash =
79
79
  // clear hash that match filters
80
80
  fragmentParser.deleteParams([...filterKeys, "view"]);
81
81
 
82
- // reset url hash
82
+ // remove from hash all params that are related to filters
83
83
  if (windowExists) {
84
- window.history.replaceState(null, null, " ");
84
+ const fragment = fragmentParser.serialize();
85
+ window.location.hash = fragment;
85
86
  }
86
87
 
87
88
  // escape if no filter hash
@@ -3,6 +3,7 @@ import defaultPagesCollection from "./collections/defaultPagesCollection";
3
3
  import contentPagesCollection from "./collections/contentPagesCollection";
4
4
 
5
5
  const CMS_BACKEND_REPO = process.env.GATSBY_CMS_BACKEND_REPO;
6
+ const CMS_BACKEND_BRANCH = process.env.GATSBY_CMS_BACKEND_BRANCH || "main";
6
7
 
7
8
  export const collections = [
8
9
  configurationsCollection,
@@ -14,7 +15,7 @@ const config = {
14
15
  backend: {
15
16
  name: "github",
16
17
  repo: CMS_BACKEND_REPO,
17
- branch: "main",
18
+ branch: CMS_BACKEND_BRANCH,
18
19
  commit_messages: {
19
20
  create: "Create {{collection}} “{{slug}}”",
20
21
  update: "Update {{collection}} “{{slug}}”",