@antelopejs/dms-marketing 0.2.4 → 0.2.5

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.
@@ -1,6 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, onMounted, watch } from 'vue'
3
3
  import { useI18n } from '#dms/frontend-module'
4
+ import { MS_PER_DAY } from '../constants'
4
5
  import { useChildId } from '../composables/useChildId'
5
6
  import { useLatestRequest } from '../composables/useLatestRequest'
6
7
  import {
@@ -10,7 +11,6 @@ import {
10
11
  import {
11
12
  DEFAULT_PERIOD_PRESET,
12
13
  MARKETING_PERIOD_PRESETS,
13
- MS_PER_DAY,
14
14
  periodDays,
15
15
  useMarketingPeriod,
16
16
  } from '../composables/useMarketingPeriod'
@@ -1,4 +1,5 @@
1
1
  import { computed, type ComputedRef } from 'vue'
2
+ import { MS_PER_DAY } from '../constants'
2
3
 
3
4
  /**
4
5
  * Bridge between the DMS period selector and the marketing endpoints.
@@ -9,8 +10,6 @@ import { computed, type ComputedRef } from 'vue'
9
10
  * carry the window as a query parameter and have to map it back onto a preset.
10
11
  */
11
12
 
12
- export const MS_PER_DAY = 86_400_000
13
-
14
13
  export const DEFAULT_PERIOD_DAYS = 7
15
14
  export const DEFAULT_PERIOD = `${DEFAULT_PERIOD_DAYS}d`
16
15
 
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Module-wide constants, imported explicitly.
3
+ *
4
+ * Deliberately outside `app/composables`, `app/types` and `app/utils`: the DMS
5
+ * frontend builder auto-imports everything those directories export into the
6
+ * shared namespace, where a generic name silently shadows the core's. This
7
+ * file is never scanned, so anything here has to be imported by hand.
8
+ */
9
+
10
+ export const MS_PER_DAY = 86_400_000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/dms-marketing",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",