@hywax/cms 0.0.16 → 0.0.17

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 (29) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +3 -9
  3. package/dist/runtime/components/AutocompleteSelect.vue +1 -1
  4. package/dist/runtime/components/ButtonClear.vue +1 -1
  5. package/dist/runtime/components/ButtonCopy.vue +1 -1
  6. package/dist/runtime/components/ButtonDelete.vue +1 -1
  7. package/dist/runtime/components/EditorContentFull.vue +1 -1
  8. package/dist/runtime/components/EditorContentLight.vue +1 -1
  9. package/dist/runtime/components/FormPanel.vue +1 -1
  10. package/dist/runtime/components/FormPanelAsideSection.vue +1 -1
  11. package/dist/runtime/components/FormPanelSection.vue +1 -1
  12. package/dist/runtime/components/InputSeo.vue +1 -1
  13. package/dist/runtime/components/InputSlug.vue +1 -1
  14. package/dist/runtime/components/InputUploraImage.vue +1 -1
  15. package/dist/runtime/components/ModalConfirm.vue +1 -1
  16. package/dist/runtime/components/TableCellPreview.vue +1 -1
  17. package/dist/runtime/components/TableCellSeo.vue +1 -1
  18. package/dist/runtime/components/TableCellUser.vue +1 -1
  19. package/dist/runtime/components/TablePanel.vue +1 -1
  20. package/dist/runtime/components/TablePanelColumnSorting.vue +1 -1
  21. package/dist/runtime/components/TablePanelColumnVisibility.vue +1 -1
  22. package/dist/runtime/components/TablePanelFilters.vue +1 -1
  23. package/dist/runtime/components/UploraImage.vue +1 -1
  24. package/dist/runtime/components/prose/UploraImage.vue +1 -1
  25. package/dist/runtime/editor/extensions/callout/CalloutView.vue +1 -1
  26. package/dist/runtime/editor/extensions/uplora-image/UploraImageView.vue +1 -1
  27. package/package.json +1 -1
  28. /package/dist/runtime/{utils/tv.d.ts → tv.d.ts} +0 -0
  29. /package/dist/runtime/{utils/tv.js → tv.js} +0 -0
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hywax/cms",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "configKey": "cms",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ import { snakeCase, kebabCase } from 'scule';
6
6
  import { readFile, writeFile } from 'node:fs/promises';
7
7
 
8
8
  const name = "@hywax/cms";
9
- const version = "0.0.16";
9
+ const version = "0.0.17";
10
10
 
11
11
  function createContext(options, nuxt) {
12
12
  const { resolve } = createResolver(import.meta.url);
@@ -50,12 +50,6 @@ function transformHttpCodes(httpCodes) {
50
50
  function prepareAutoImports({ resolve, options, nuxt }) {
51
51
  const httpCodesPath = resolve(nuxt.options.buildDir, "cms/http-codes");
52
52
  const httpCodesImports = transformHttpCodes(options.httpCodes).map(({ code }) => ({ name: code, from: httpCodesPath }));
53
- const sharedUtils = [
54
- "avatar",
55
- "dictionaries",
56
- "image",
57
- "slugify"
58
- ].map((name) => resolve(`./runtime/utils/${name}`));
59
53
  addComponentsDir({
60
54
  path: resolve("./runtime/components"),
61
55
  pathPrefix: false,
@@ -75,7 +69,7 @@ function prepareAutoImports({ resolve, options, nuxt }) {
75
69
  { name: "markdownToDoc", from: resolve("./runtime/editor/markdown") }
76
70
  ]);
77
71
  addImportsDir([
78
- ...sharedUtils,
72
+ resolve("./runtime/utils"),
79
73
  resolve("./runtime/composables")
80
74
  ]);
81
75
  addServerImports([
@@ -84,7 +78,7 @@ function prepareAutoImports({ resolve, options, nuxt }) {
84
78
  { name: "markdownToDoc", from: resolve("./runtime/editor/markdown") }
85
79
  ]);
86
80
  addServerImportsDir([
87
- ...sharedUtils,
81
+ resolve("./runtime/utils"),
88
82
  resolve("./runtime/server/utils")
89
83
  ]);
90
84
  nuxt.options.nitro.alias ||= {};
@@ -32,7 +32,7 @@
32
32
  <script>
33
33
  import theme from "#build/cms/autocomplete-select";
34
34
  import { computed, ref, refDebounced, shallowRef, toRaw, triggerRef, useAppConfig, useAsyncData, useId, useInfiniteScroll, useNuxtData, useOffsetPagination, watch } from "#imports";
35
- import { tv } from "../utils/tv";
35
+ import { tv } from "../tv";
36
36
  </script>
37
37
 
38
38
  <script setup>
@@ -14,7 +14,7 @@
14
14
  <script>
15
15
  import theme from "#build/cms/button-clear";
16
16
  import { computed, useAppConfig } from "#imports";
17
- import { tv } from "../utils/tv";
17
+ import { tv } from "../tv";
18
18
  </script>
19
19
 
20
20
  <script setup>
@@ -19,7 +19,7 @@
19
19
  <script>
20
20
  import theme from "#build/cms/button-copy";
21
21
  import { computed, useAppConfig, useClipboard } from "#imports";
22
- import { tv } from "../utils/tv";
22
+ import { tv } from "../tv";
23
23
  </script>
24
24
 
25
25
  <script setup>
@@ -21,7 +21,7 @@
21
21
  <script>
22
22
  import theme from "#build/cms/button-delete";
23
23
  import { computed, useAppConfig, useOverlay } from "#imports";
24
- import { tv } from "../utils/tv";
24
+ import { tv } from "../tv";
25
25
  import ModalConfirm from "./ModalConfirm.vue";
26
26
  </script>
27
27
 
@@ -21,7 +21,7 @@ import SlashCommand from "../editor/components/SlashCommand.vue";
21
21
  import TooltipMenu from "../editor/components/TooltipMenu.vue";
22
22
  import { defineFullExtension } from "../editor/extensions";
23
23
  import { docToMarkdown, markdownToDoc } from "../editor/markdown";
24
- import { tv } from "../utils/tv";
24
+ import { tv } from "../tv";
25
25
  import "prosekit/basic/style.css";
26
26
  </script>
27
27
 
@@ -14,7 +14,7 @@ import { ProseKit, useDocChange } from "prosekit/vue";
14
14
  import { Primitive } from "reka-ui";
15
15
  import { defineLightExtension } from "../editor/extensions";
16
16
  import { docToMarkdown, markdownToDoc } from "../editor/markdown";
17
- import { tv } from "../utils/tv";
17
+ import { tv } from "../tv";
18
18
  import "prosekit/basic/style.css";
19
19
  </script>
20
20
 
@@ -44,7 +44,7 @@
44
44
  <script>
45
45
  import theme from "#build/cms/form-panel";
46
46
  import { computed, useAppConfig, useTemplateRef } from "#imports";
47
- import { tv } from "../utils/tv";
47
+ import { tv } from "../tv";
48
48
  </script>
49
49
 
50
50
  <script setup>
@@ -24,7 +24,7 @@
24
24
  <script>
25
25
  import theme from "#build/cms/form-panel-aside-section";
26
26
  import { computed, useAppConfig } from "#imports";
27
- import { tv } from "../utils/tv";
27
+ import { tv } from "../tv";
28
28
  </script>
29
29
 
30
30
  <script setup>
@@ -15,7 +15,7 @@
15
15
  <script>
16
16
  import theme from "#build/cms/form-panel-section";
17
17
  import { computed, useAppConfig } from "#imports";
18
- import { tv } from "../utils/tv";
18
+ import { tv } from "../tv";
19
19
  </script>
20
20
 
21
21
  <script setup>
@@ -52,7 +52,7 @@ import theme from "#build/cms/input-seo";
52
52
  import { computed, useAppConfig } from "#imports";
53
53
  import { Primitive } from "reka-ui";
54
54
  import { useSeoStats } from "../composables/useSeoStats";
55
- import { tv } from "../utils/tv";
55
+ import { tv } from "../tv";
56
56
  </script>
57
57
 
58
58
  <script setup>
@@ -43,8 +43,8 @@
43
43
  import theme from "#build/cms/input-slug";
44
44
  import { computed, ref, useAppConfig, watch } from "#imports";
45
45
  import { Primitive } from "reka-ui";
46
+ import { tv } from "../tv";
46
47
  import { slugify } from "../utils/slugify";
47
- import { tv } from "../utils/tv";
48
48
  </script>
49
49
 
50
50
  <script setup>
@@ -83,7 +83,7 @@ import { computed, reactive, useAppConfig } from "#imports";
83
83
  import { imagesExtensions } from "@uplora/formats";
84
84
  import { Primitive } from "reka-ui";
85
85
  import { useUploraDelete, useUploraUpload } from "../composables/useUplora";
86
- import { tv } from "../utils/tv";
86
+ import { tv } from "../tv";
87
87
  import ButtonDelete from "./ButtonDelete.vue";
88
88
  import UploraImage from "./UploraImage.vue";
89
89
  </script>
@@ -67,7 +67,7 @@
67
67
  <script>
68
68
  import theme from "#build/cms/modal-confirm";
69
69
  import { computed, reactive, useAppConfig, useTemplateRef } from "#imports";
70
- import { tv } from "../utils/tv";
70
+ import { tv } from "../tv";
71
71
  </script>
72
72
 
73
73
  <script setup>
@@ -23,7 +23,7 @@
23
23
  <script>
24
24
  import theme from "#build/cms/table-cell-preview";
25
25
  import { computed, useAppConfig } from "#imports";
26
- import { tv } from "../utils/tv";
26
+ import { tv } from "../tv";
27
27
  </script>
28
28
 
29
29
  <script setup>
@@ -18,7 +18,7 @@ import theme from "#build/cms/table-cell-seo";
18
18
  import { computed, useAppConfig } from "#imports";
19
19
  import { Primitive } from "reka-ui";
20
20
  import { useSeoStats } from "../composables/useSeoStats";
21
- import { tv } from "../utils/tv";
21
+ import { tv } from "../tv";
22
22
  </script>
23
23
 
24
24
  <script setup>
@@ -15,8 +15,8 @@
15
15
  <script>
16
16
  import theme from "#build/cms/table-cell-user";
17
17
  import { computed, useAppConfig } from "#imports";
18
+ import { tv } from "../tv";
18
19
  import { createAvatarByName } from "../utils/avatar";
19
- import { tv } from "../utils/tv";
20
20
  </script>
21
21
 
22
22
  <script setup>
@@ -93,7 +93,7 @@ import { UButton, UDropdownMenu } from "#components";
93
93
  import { computed, h, ref, useAppConfig, useTemplateRef } from "#imports";
94
94
  import { objectOmit, reactivePick } from "@vueuse/core";
95
95
  import { useForwardProps } from "reka-ui";
96
- import { tv } from "../utils/tv";
96
+ import { tv } from "../tv";
97
97
  </script>
98
98
 
99
99
  <script setup>
@@ -41,7 +41,7 @@
41
41
  <script>
42
42
  import theme from "#build/cms/table-panel-column-sorting";
43
43
  import { computed, useAppConfig } from "#imports";
44
- import { tv } from "../utils/tv";
44
+ import { tv } from "../tv";
45
45
  </script>
46
46
 
47
47
  <script setup>
@@ -19,7 +19,7 @@
19
19
  <script>
20
20
  import theme from "#build/cms/table-panel-column-visibility";
21
21
  import { computed, useAppConfig } from "#imports";
22
- import { tv } from "../utils/tv";
22
+ import { tv } from "../tv";
23
23
  </script>
24
24
 
25
25
  <script setup>
@@ -51,7 +51,7 @@ import theme from "#build/cms/table-panel-filters";
51
51
  import { computed, ref, useAppConfig, useId } from "#imports";
52
52
  import { reactivePick } from "@vueuse/core";
53
53
  import { useForwardProps } from "reka-ui";
54
- import { tv } from "../utils/tv";
54
+ import { tv } from "../tv";
55
55
  </script>
56
56
 
57
57
  <script setup>
@@ -33,8 +33,8 @@
33
33
  <script>
34
34
  import theme from "#build/cms/uplora-image";
35
35
  import { computed, onMounted, useAppConfig, useHead, useNuxtApp, useTemplateRef } from "#imports";
36
+ import { tv } from "../tv";
36
37
  import { buildUploraImage } from "../utils";
37
- import { tv } from "../utils/tv";
38
38
  </script>
39
39
 
40
40
  <script setup>
@@ -11,7 +11,7 @@
11
11
  <script>
12
12
  import theme from "#build/cms/prose/uplora-image";
13
13
  import { computed, useAppConfig } from "#imports";
14
- import { tv } from "../../utils/tv";
14
+ import { tv } from "../../tv";
15
15
  import BaseUploraImage from "../UploraImage.vue";
16
16
  </script>
17
17
 
@@ -18,7 +18,7 @@
18
18
  <script>
19
19
  import theme from "#build/cms/editor/callout";
20
20
  import { computed, ref, useAppConfig } from "#imports";
21
- import { tv } from "../../../utils/tv";
21
+ import { tv } from "../../../tv";
22
22
  </script>
23
23
 
24
24
  <script setup>
@@ -6,7 +6,7 @@
6
6
  import theme from "#build/cms/editor/uplora-image";
7
7
  import { computed, useAppConfig } from "#imports";
8
8
  import InputUploraImage from "../../../components/InputUploraImage.vue";
9
- import { tv } from "../../../utils/tv";
9
+ import { tv } from "../../../tv";
10
10
  </script>
11
11
 
12
12
  <script setup>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hywax/cms",
3
3
  "type": "module",
4
- "version": "0.0.16",
4
+ "version": "0.0.17",
5
5
  "description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
6
6
  "repository": {
7
7
  "type": "git",
File without changes
File without changes