@dev.smartpricing/platform-layer 0.0.7 → 0.0.9

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.
@@ -48,6 +48,7 @@ export function useProductSwitcher() {
48
48
  /** Access state for each suite product. */
49
49
  const productStates = computed<Map<SuiteProduct, ProductAccessState>>(() => {
50
50
  const map = new Map<SuiteProduct, ProductAccessState>()
51
+ map.set('administration', 'accessible')
51
52
  if (!permissions.value) return map
52
53
 
53
54
  for (const [key, bundle] of Object.entries(permissions.value.products)) {
@@ -78,7 +79,6 @@ export function useProductSwitcher() {
78
79
  if (!product) return
79
80
 
80
81
  const state = productStates.value.get(product) ?? 'not_subscribed'
81
-
82
82
  switch (state) {
83
83
  case 'accessible': {
84
84
  const url = productUrls[product]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev.smartpricing/platform-layer",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./nuxt.config.ts",