@hywax/cms-console 1.1.2 → 1.2.0

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 (38) hide show
  1. package/dist/module.d.mts +1 -1
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +32 -32
  4. package/dist/runtime/components/AutocompleteSelect.d.vue.ts +1 -1
  5. package/dist/runtime/components/AutocompleteSelect.vue.d.ts +1 -1
  6. package/dist/runtime/components/ButtonCopyText.d.vue.ts +1 -1
  7. package/dist/runtime/components/ButtonCopyText.vue.d.ts +1 -1
  8. package/dist/runtime/components/ButtonDeleteConfirm.d.vue.ts +1 -1
  9. package/dist/runtime/components/ButtonDeleteConfirm.vue +0 -1
  10. package/dist/runtime/components/ButtonDeleteConfirm.vue.d.ts +1 -1
  11. package/dist/runtime/components/FormPanel.d.vue.ts +1 -1
  12. package/dist/runtime/components/FormPanel.vue.d.ts +1 -1
  13. package/dist/runtime/components/FormPanelAsideSection.d.vue.ts +1 -1
  14. package/dist/runtime/components/FormPanelAsideSection.vue.d.ts +1 -1
  15. package/dist/runtime/components/FormPanelSection.d.vue.ts +1 -1
  16. package/dist/runtime/components/FormPanelSection.vue.d.ts +1 -1
  17. package/dist/runtime/components/InputSeo.d.vue.ts +1 -1
  18. package/dist/runtime/components/InputSeo.vue.d.ts +1 -1
  19. package/dist/runtime/components/InputSlug.d.vue.ts +1 -1
  20. package/dist/runtime/components/InputSlug.vue.d.ts +1 -1
  21. package/dist/runtime/components/InputUploraImage.d.vue.ts +1 -1
  22. package/dist/runtime/components/InputUploraImage.vue.d.ts +1 -1
  23. package/dist/runtime/components/ModalConfirm.d.vue.ts +1 -2
  24. package/dist/runtime/components/ModalConfirm.vue +0 -3
  25. package/dist/runtime/components/ModalConfirm.vue.d.ts +1 -2
  26. package/dist/runtime/components/TableFilters.d.vue.ts +1 -1
  27. package/dist/runtime/components/TableFilters.vue.d.ts +1 -1
  28. package/dist/runtime/components/TablePanel.d.vue.ts +1 -1
  29. package/dist/runtime/components/TablePanel.vue.d.ts +1 -1
  30. package/dist/runtime/components/TableSearchInput.d.vue.ts +1 -1
  31. package/dist/runtime/components/TableSearchInput.vue.d.ts +1 -1
  32. package/dist/runtime/composables/useTable.d.ts +1 -1
  33. package/dist/runtime/index.css +1 -1
  34. package/dist/runtime/utils/index.d.ts +0 -1
  35. package/dist/runtime/utils/index.js +0 -1
  36. package/package.json +2 -2
  37. package/dist/runtime/utils/auth.d.ts +0 -2
  38. package/dist/runtime/utils/auth.js +0 -5
package/dist/module.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { CMSRuntimeOptions } from '@hywax/cms-runtime';
2
+ import { CMSRuntimeOptions } from '@hywax/cms-core';
3
3
  export * from '../dist/runtime/types/index.js';
4
4
 
5
5
  interface CMSConsoleOptions extends CMSRuntimeOptions {
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hywax/cms-console",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "configKey": "cmsConsole",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -5,7 +5,7 @@ import { defu } from 'defu';
5
5
  import { kebabCase } from 'scule';
6
6
 
7
7
  const name = "@hywax/cms-console";
8
- const version = "1.1.2";
8
+ const version = "1.2.0";
9
9
 
10
10
  function createContext(options, nuxt) {
11
11
  const { resolve } = createResolver(import.meta.url);
@@ -42,36 +42,36 @@ function prepareAutoImports({ resolve, options, nuxt }) {
42
42
  }
43
43
 
44
44
  const icons = {
45
- calendar: "lucide:calendar",
46
- sort: "lucide:arrow-down-up",
47
- sortAsc: "lucide:arrow-up-wide-narrow",
48
- sortDesc: "lucide:arrow-down-wide-narrow",
49
- columns: "lucide:columns-3-cog",
50
- filter: "lucide:filter",
51
- ellipsisVertical: "lucide:ellipsis-vertical",
52
- repeat: "lucide:repeat-2",
53
- clipboard: "lucide:clipboard",
54
- trash: "lucide:trash",
55
- paragraph: "lucide:type",
56
- heading1: "lucide:heading-1",
57
- heading2: "lucide:heading-2",
58
- heading3: "lucide:heading-3",
59
- heading4: "lucide:heading-4",
60
- list: "lucide:list",
61
- listOrdered: "lucide:list-ordered",
62
- blockquote: "lucide:text-quote",
63
- codeBlock: "lucide:square-code",
64
- horizontalRule: "lucide:separator-horizontal",
65
- enter: "lucide:corner-down-left",
66
- link: "lucide:link",
67
- download: "lucide:download",
68
- bold: "lucide:bold",
69
- italic: "lucide:italic",
70
- underline: "lucide:underline",
71
- strikethrough: "lucide:strikethrough",
72
- code: "lucide:code",
73
- image: "lucide:image",
74
- editLine: "lucide:pen-line"
45
+ calendar: "i-lucide-calendar",
46
+ sort: "i-lucide-arrow-down-up",
47
+ sortAsc: "i-lucide-arrow-up-wide-narrow",
48
+ sortDesc: "i-lucide-arrow-down-wide-narrow",
49
+ columns: "i-lucide-columns-3-cog",
50
+ filter: "i-lucide-filter",
51
+ ellipsisVertical: "i-lucide-ellipsis-vertical",
52
+ repeat: "i-lucide-repeat-2",
53
+ clipboard: "i-lucide-clipboard",
54
+ trash: "i-lucide-trash",
55
+ paragraph: "i-lucide-type",
56
+ heading1: "i-lucide-heading-1",
57
+ heading2: "i-lucide-heading-2",
58
+ heading3: "i-lucide-heading-3",
59
+ heading4: "i-lucide-heading-4",
60
+ list: "i-lucide-list",
61
+ listOrdered: "i-lucide-list-ordered",
62
+ blockquote: "i-lucide-text-quote",
63
+ codeBlock: "i-lucide-square-code",
64
+ horizontalRule: "i-lucide-separator-horizontal",
65
+ enter: "i-lucide-corner-down-left",
66
+ link: "i-lucide-link",
67
+ download: "i-lucide-download",
68
+ bold: "i-lucide-bold",
69
+ italic: "i-lucide-italic",
70
+ underline: "i-lucide-underline",
71
+ strikethrough: "i-lucide-strikethrough",
72
+ code: "i-lucide-code",
73
+ image: "i-lucide-image",
74
+ editLine: "i-lucide-pen-line"
75
75
  };
76
76
 
77
77
  function prepareMergeConfigs({ nuxt }) {
@@ -373,7 +373,7 @@ const module$1 = defineNuxtModule({
373
373
  configKey: "cmsConsole"
374
374
  },
375
375
  moduleDependencies: {
376
- "@hywax/cms-runtime": {}
376
+ "@hywax/cms-core": {}
377
377
  },
378
378
  defaults: defaultModuleOptions,
379
379
  async setup(options, nuxt) {
@@ -1,4 +1,4 @@
1
- import type { Pagination, PaginationQueryRaw } from '@hywax/cms-runtime';
1
+ import type { Pagination, PaginationQueryRaw } from '@hywax/cms-core';
2
2
  import type { InputMenuItem } from '@nuxt/ui';
3
3
  type PaginationQuery = Required<PaginationQueryRaw>;
4
4
  export type AutocompleteSelectItem = Extract<InputMenuItem, object> & {
@@ -1,4 +1,4 @@
1
- import type { Pagination, PaginationQueryRaw } from '@hywax/cms-runtime';
1
+ import type { Pagination, PaginationQueryRaw } from '@hywax/cms-core';
2
2
  import type { InputMenuItem } from '@nuxt/ui';
3
3
  type PaginationQuery = Required<PaginationQueryRaw>;
4
4
  export type AutocompleteSelectItem = Extract<InputMenuItem, object> & {
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { ButtonProps } from '@nuxt/ui';
4
4
  import type { RouteLocationRaw } from 'vue-router';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { ButtonProps } from '@nuxt/ui';
4
4
  import type { RouteLocationRaw } from 'vue-router';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { ButtonProps, ModalProps } from '@nuxt/ui';
4
4
  import type { ComponentProps } from 'vue-component-type-helpers';
@@ -52,7 +52,6 @@ function handleDeleteClick() {
52
52
  title: props.title ?? "\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435",
53
53
  message: props.message ?? "\u0412\u044B \u0434\u0435\u0438\u0306\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C?",
54
54
  color: "error",
55
- variant: props.variant,
56
55
  confirmLabel: props.confirmLabel,
57
56
  confirmText: props.confirmText,
58
57
  onConfirm: props.onConfirm
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { ButtonProps, ModalProps } from '@nuxt/ui';
4
4
  import type { ComponentProps } from 'vue-component-type-helpers';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { FormData, FormSchema, FormSubmitEvent } from '@nuxt/ui';
4
4
  import type { RouteLocationRaw } from 'vue-router';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { FormData, FormSchema, FormSubmitEvent } from '@nuxt/ui';
4
4
  import type { RouteLocationRaw } from 'vue-router';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/cms-console/form-panel-aside-section';
4
4
  type FormPanelAsideSection = ComponentConfig<typeof theme, AppConfig, 'formPanelAsideSection'>;
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/cms-console/form-panel-aside-section';
4
4
  type FormPanelAsideSection = ComponentConfig<typeof theme, AppConfig, 'formPanelAsideSection'>;
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/cms-console/form-panel-section';
4
4
  type FormPanelSection = ComponentConfig<typeof theme, AppConfig, 'formPanelSection'>;
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/cms-console/form-panel-section';
4
4
  type FormPanelSection = ComponentConfig<typeof theme, AppConfig, 'formPanelSection'>;
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { SEO } from '../types';
4
4
  import theme from '#build/cms-console/input-seo';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { SEO } from '../types';
4
4
  import theme from '#build/cms-console/input-seo';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { InputProps } from '@nuxt/ui';
4
4
  import theme from '#build/cms-console/input-slug';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { InputProps } from '@nuxt/ui';
4
4
  import theme from '#build/cms-console/input-slug';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/cms-console/input-uplora-image';
4
4
  type InputUploraImage = ComponentConfig<typeof theme, AppConfig, 'inputUploraImage'>;
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/cms-console/input-uplora-image';
4
4
  type InputUploraImage = ComponentConfig<typeof theme, AppConfig, 'inputUploraImage'>;
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { ButtonProps } from '@nuxt/ui';
4
4
  import theme from '#build/cms-console/modal-confirm';
@@ -9,7 +9,6 @@ export interface ModalConfirmProps {
9
9
  confirmText?: string;
10
10
  confirmLabel?: string;
11
11
  color?: ButtonProps['color'];
12
- variant?: ButtonProps['variant'];
13
12
  size?: ButtonProps['size'];
14
13
  onConfirm?: () => Promise<any> | any;
15
14
  class?: any;
@@ -48,7 +48,6 @@
48
48
  :disabled="state.confirmTextValue !== confirmText"
49
49
  :loading="form?.loading"
50
50
  :color="color"
51
- :variant="variant"
52
51
  :size="size"
53
52
  />
54
53
  <UButton
@@ -56,7 +55,6 @@
56
55
  label="Подтвердить"
57
56
  loading-auto
58
57
  :color="color"
59
- :variant="variant"
60
58
  :size="size"
61
59
  @click="handleConfirmClick()"
62
60
  />
@@ -77,7 +75,6 @@ const props = defineProps({
77
75
  confirmText: { type: String, required: false },
78
76
  confirmLabel: { type: String, required: false, default: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C" },
79
77
  color: { type: null, required: false },
80
- variant: { type: null, required: false },
81
78
  size: { type: null, required: false, default: "lg" },
82
79
  onConfirm: { type: Function, required: false },
83
80
  class: { type: null, required: false },
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { ButtonProps } from '@nuxt/ui';
4
4
  import theme from '#build/cms-console/modal-confirm';
@@ -9,7 +9,6 @@ export interface ModalConfirmProps {
9
9
  confirmText?: string;
10
10
  confirmLabel?: string;
11
11
  color?: ButtonProps['color'];
12
- variant?: ButtonProps['variant'];
13
12
  size?: ButtonProps['size'];
14
13
  onConfirm?: () => Promise<any> | any;
15
14
  class?: any;
@@ -1,4 +1,4 @@
1
- import type { KeysMatching } from '@hywax/cms-runtime';
1
+ import type { KeysMatching } from '@hywax/cms-core';
2
2
  import type { FormData, FormFieldProps, FormProps, FormSchema, SelectItem, SelectProps, SelectValue } from '@nuxt/ui';
3
3
  import type { MaybeRef, VNode } from 'vue';
4
4
  import type { DatePickerProps } from './DatePicker.vue';
@@ -1,4 +1,4 @@
1
- import type { KeysMatching } from '@hywax/cms-runtime';
1
+ import type { KeysMatching } from '@hywax/cms-core';
2
2
  import type { FormData, FormFieldProps, FormProps, FormSchema, SelectItem, SelectProps, SelectValue } from '@nuxt/ui';
3
3
  import type { MaybeRef, VNode } from 'vue';
4
4
  import type { DatePickerProps } from './DatePicker.vue';
@@ -1,5 +1,5 @@
1
1
  import type { AsyncDataRequestStatus } from '#app';
2
- import type { ComponentConfig, OptionalKeys } from '@hywax/cms-runtime';
2
+ import type { ComponentConfig, OptionalKeys } from '@hywax/cms-core';
3
3
  import type { AppConfig } from '@nuxt/schema';
4
4
  import type { DropdownMenuItem, FormSchema, PaginationEmits, PaginationProps, TableData, TableProps, TableRow, TableSlots } from '@nuxt/ui';
5
5
  import type { ColumnPinningState, GroupingState, RowSelectionState } from '@tanstack/vue-table';
@@ -1,5 +1,5 @@
1
1
  import type { AsyncDataRequestStatus } from '#app';
2
- import type { ComponentConfig, OptionalKeys } from '@hywax/cms-runtime';
2
+ import type { ComponentConfig, OptionalKeys } from '@hywax/cms-core';
3
3
  import type { AppConfig } from '@nuxt/schema';
4
4
  import type { DropdownMenuItem, FormSchema, PaginationEmits, PaginationProps, TableData, TableProps, TableRow, TableSlots } from '@nuxt/ui';
5
5
  import type { ColumnPinningState, GroupingState, RowSelectionState } from '@tanstack/vue-table';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { InputEmits, InputProps, InputValue } from '@nuxt/ui';
4
4
  import theme from '#build/cms-console/table-search-input';
@@ -1,4 +1,4 @@
1
- import type { ComponentConfig } from '@hywax/cms-runtime';
1
+ import type { ComponentConfig } from '@hywax/cms-core';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { InputEmits, InputProps, InputValue } from '@nuxt/ui';
4
4
  import theme from '#build/cms-console/table-search-input';
@@ -1,4 +1,4 @@
1
- import type { PaginationQuery, RequiredOptional, SortQuery } from '@hywax/cms-runtime';
1
+ import type { PaginationQuery, RequiredOptional, SortQuery } from '@hywax/cms-core';
2
2
  import type { SortingState } from '@tanstack/vue-table';
3
3
  import type { ComputedRef, MaybeRefOrGetter, Ref } from 'vue';
4
4
  import type { GetQueryTransforms } from '../types';
@@ -1 +1 @@
1
- @import "@hywax/cms-runtime";@import "#build/cms-console.css";@source "./components";@source "./editor";
1
+ @import "@hywax/cms-core";@import "#build/cms-console.css";@source "./components";@source "./editor";
@@ -1,4 +1,3 @@
1
- export * from './auth';
2
1
  export * from './date';
3
2
  export * from './formatters';
4
3
  export * from './slugify';
@@ -1,4 +1,3 @@
1
- export * from "./auth.js";
2
1
  export * from "./date.js";
3
2
  export * from "./formatters.js";
4
3
  export * from "./slugify.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hywax/cms-console",
3
3
  "type": "module",
4
- "version": "1.1.2",
4
+ "version": "1.2.0",
5
5
  "description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -61,7 +61,7 @@
61
61
  "pathe": "^2.0.3",
62
62
  "scule": "^1.3.0",
63
63
  "sortablejs": "^1.15.6",
64
- "@hywax/cms-runtime": "1.1.4"
64
+ "@hywax/cms-core": "1.4.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@nuxt/devtools": "^3.1.1",
@@ -1,2 +0,0 @@
1
- export declare const authRedirectToCookie: string;
2
- export declare function getAuthRedirectTo(redirectTo?: string): string;
@@ -1,5 +0,0 @@
1
- import { getCmsConfig } from "#imports";
2
- export const authRedirectToCookie = `${getCmsConfig().name}-auth-redirect`;
3
- export function getAuthRedirectTo(redirectTo) {
4
- return redirectTo ? decodeURIComponent(redirectTo) : "/";
5
- }