@hywax/cms 1.10.1 → 2.0.1
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/.nuxt/cms/config.ts +6 -0
- package/.nuxt/cms/editor/uplora-image.ts +5 -0
- package/.nuxt/cms/index.ts +4 -1
- package/.nuxt/cms/input-seo.ts +5 -0
- package/.nuxt/cms/input-slug.ts +5 -0
- package/.nuxt/cms/input-uplora-image.ts +27 -0
- package/.nuxt/cms.css +18 -30
- package/dist/module.d.mts +20 -5
- package/dist/module.json +1 -1
- package/dist/module.mjs +287 -96
- package/dist/runtime/components/AutocompleteSelect.d.vue.ts +3 -3
- package/dist/runtime/components/AutocompleteSelect.vue.d.ts +3 -3
- package/dist/runtime/components/ButtonCopyText.d.vue.ts +2 -2
- package/dist/runtime/components/ButtonCopyText.vue.d.ts +2 -2
- package/dist/runtime/components/ButtonDeleteConfirm.vue +3 -3
- package/dist/runtime/components/DatePicker.d.vue.ts +3 -3
- package/dist/runtime/components/DatePicker.vue +1 -2
- package/dist/runtime/components/DatePicker.vue.d.ts +3 -3
- package/dist/runtime/components/EditorFull.d.vue.ts +7 -6
- package/dist/runtime/components/EditorFull.vue +23 -8
- package/dist/runtime/components/EditorFull.vue.d.ts +7 -6
- package/dist/runtime/components/FormPanelAsideSection.vue +2 -1
- package/dist/runtime/components/FormPanelSection.vue +2 -1
- package/dist/runtime/components/InputSeo.d.vue.ts +20 -0
- package/dist/runtime/components/InputSeo.vue +74 -0
- package/dist/runtime/components/InputSeo.vue.d.ts +20 -0
- package/dist/runtime/components/InputSlug.d.vue.ts +30 -0
- package/dist/runtime/components/InputSlug.vue +71 -0
- package/dist/runtime/components/InputSlug.vue.d.ts +30 -0
- package/dist/runtime/components/InputUploraImage.d.vue.ts +40 -0
- package/dist/runtime/components/InputUploraImage.vue +181 -0
- package/dist/runtime/components/InputUploraImage.vue.d.ts +40 -0
- package/dist/runtime/components/ModalConfirm.d.vue.ts +0 -1
- package/dist/runtime/components/ModalConfirm.vue +2 -4
- package/dist/runtime/components/ModalConfirm.vue.d.ts +0 -1
- package/dist/runtime/components/TableColumnVisibility.vue +1 -2
- package/dist/runtime/components/TableFilters.d.vue.ts +1 -1
- package/dist/runtime/components/TableFilters.vue +12 -11
- package/dist/runtime/components/TableFilters.vue.d.ts +1 -1
- package/dist/runtime/components/TablePanel.vue +6 -6
- package/dist/runtime/components/UploraImage.d.vue.ts +2 -1
- package/dist/runtime/components/UploraImage.vue +7 -4
- package/dist/runtime/components/UploraImage.vue.d.ts +2 -1
- package/dist/runtime/components/prose/UploraImage.d.vue.ts +3 -3
- package/dist/runtime/components/prose/UploraImage.vue +11 -5
- package/dist/runtime/components/prose/UploraImage.vue.d.ts +3 -3
- package/dist/runtime/composables/useEditorDragHandle.d.ts +2 -1
- package/dist/runtime/composables/useEditorDragHandle.js +2 -2
- package/dist/runtime/composables/useEditorSuggestions.d.ts +7 -1
- package/dist/runtime/composables/useEditorSuggestions.js +2 -1
- package/dist/runtime/composables/useEditorToolbar.d.ts +2 -1
- package/dist/runtime/composables/useFormState.js +2 -2
- package/dist/runtime/composables/useModal.js +1 -1
- package/dist/runtime/composables/useSeoStats.d.ts +12 -0
- package/dist/runtime/composables/useSeoStats.js +44 -0
- package/dist/runtime/composables/useTable.d.ts +1 -2
- package/dist/runtime/composables/useTable.js +2 -2
- package/dist/runtime/composables/useTableColumns.js +1 -2
- package/dist/runtime/editor/uplora-image/EditorUploraImage.d.ts +18 -0
- package/dist/runtime/editor/uplora-image/EditorUploraImage.js +43 -0
- package/dist/runtime/editor/uplora-image/EditorUploraImageNode.d.vue.ts +9 -0
- package/dist/runtime/editor/uplora-image/EditorUploraImageNode.vue +28 -0
- package/dist/runtime/editor/uplora-image/EditorUploraImageNode.vue.d.ts +9 -0
- package/dist/runtime/editor/utils.d.ts +13 -0
- package/dist/runtime/editor/utils.js +73 -0
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/server/api/uplora/index.post.d.ts +1 -0
- package/dist/runtime/server/api/uplora/index.post.js +1 -0
- package/dist/runtime/types/index.d.ts +36 -3
- package/dist/runtime/types/index.js +36 -1
- package/dist/runtime/types/tv.d.ts +1 -1
- package/dist/runtime/utils/date.d.ts +0 -4
- package/dist/runtime/utils/date.js +0 -15
- package/dist/runtime/utils/formatters.d.ts +2 -1
- package/dist/runtime/utils/index.d.ts +0 -1
- package/dist/runtime/utils/index.js +0 -1
- package/dist/runtime/utils/slugify.js +2 -1
- package/dist/types.d.mts +2 -0
- package/package.json +19 -25
- package/cli/commands/make/component.mjs +0 -75
- package/cli/commands/make/index.mjs +0 -12
- package/cli/index.mjs +0 -15
- package/cli/package.json +0 -13
- package/cli/templates.mjs +0 -102
- package/cli/utils.mjs +0 -31
- package/dist/runtime/composables/useRowSelection.d.ts +0 -8
- package/dist/runtime/composables/useRowSelection.js +0 -46
- package/dist/runtime/types/dictionaries.d.ts +0 -1
- package/dist/runtime/types/dictionaries.js +0 -0
- package/dist/runtime/utils/features.d.ts +0 -4
- package/dist/runtime/utils/features.js +0 -13
package/.nuxt/cms/config.ts
CHANGED
package/.nuxt/cms/index.ts
CHANGED
|
@@ -3,7 +3,10 @@ export { default as ButtonDeleteConfirm } from './button-delete-confirm'
|
|
|
3
3
|
export { default as FormPanel } from './form-panel'
|
|
4
4
|
export { default as FormPanelAsideSection } from './form-panel-aside-section'
|
|
5
5
|
export { default as FormPanelSection } from './form-panel-section'
|
|
6
|
+
export { default as InputSeo } from './input-seo'
|
|
7
|
+
export { default as InputUploraImage } from './input-uplora-image'
|
|
6
8
|
export { default as ModalConfirm } from './modal-confirm'
|
|
7
9
|
export { default as TablePanel } from './table-panel'
|
|
8
10
|
export { default as TableSearchInput } from './table-search-input'
|
|
9
|
-
export { default as UploraImage } from './uplora-image'
|
|
11
|
+
export { default as UploraImage } from './uplora-image'
|
|
12
|
+
export { default as inputSlug } from './input-slug'
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "relative w-full rounded-md overflow-hidden border-1 border-default aspect-3/2 text-sm bg-default",
|
|
4
|
+
"image": "",
|
|
5
|
+
"imageActions": "absolute top-4 right-4 flex gap-2",
|
|
6
|
+
"imageActionsWarning": "absolute top-0 right-0 size-6 bg-linear-to-bl from-error/90 to-transparent rounded-bl-lg text-error flex items-center justify-center",
|
|
7
|
+
"uploader": "flex flex-col items-center justify-center w-full h-full",
|
|
8
|
+
"uploaderPendingIcon": "size-6 animate-spin",
|
|
9
|
+
"uploaderIdleButton": "cursor-pointer h-full w-full",
|
|
10
|
+
"uploaderIdleText": "mt-2 font-medium",
|
|
11
|
+
"uploaderIdleExtensions": "mt-2 text-xs text-muted uppercase",
|
|
12
|
+
"uploaderErrorText": "text-center font-medium p-2",
|
|
13
|
+
"uploaderErrorActions": "flex gap-2 mt-4"
|
|
14
|
+
},
|
|
15
|
+
"variants": {
|
|
16
|
+
"disabled": {
|
|
17
|
+
"true": {
|
|
18
|
+
"root": "cursor-not-allowed opacity-75"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"uploaded": {
|
|
22
|
+
"false": {
|
|
23
|
+
"root": "border-dashed"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
package/.nuxt/cms.css
CHANGED
|
@@ -1,31 +1,19 @@
|
|
|
1
|
-
@source "./cms";
|
|
1
|
+
@source "./cms/autocomplete-select.ts";
|
|
2
|
+
@source "./cms/layout.ts";
|
|
3
|
+
@source "./cms/ms.ts";
|
|
4
|
+
@source "./cms/form-panel.ts";
|
|
5
|
+
@source "./cms/editor-full.ts";
|
|
6
|
+
@source "./cms/form-panel-section.ts";
|
|
7
|
+
@source "./cms/input-slug.ts";
|
|
8
|
+
@source "./cms/input-seo.ts";
|
|
9
|
+
@source "./cms/input-uplora-image.ts";
|
|
10
|
+
@source "./cms/uplora-image.ts";
|
|
11
|
+
@source "./cms/table-panel.ts";
|
|
12
|
+
@source "./cms/modal-confirm.ts";
|
|
13
|
+
@source "./cms/table-search-input.ts";
|
|
14
|
+
@source "./cms/ms-core-options.ts";
|
|
15
|
+
@source "./cms/ms-nuxt-context.ts";
|
|
16
|
+
@source "./cms/date-picker.ts";
|
|
17
|
+
@source "./cms/ss.ts";
|
|
2
18
|
|
|
3
|
-
|
|
4
|
-
.unvois {
|
|
5
|
-
--vis-crosshair-line-stroke-color: var(--ui-bg-elevated);
|
|
6
|
-
--vis-crosshair-circle-stroke-color: transparent;
|
|
7
|
-
|
|
8
|
-
--vis-axis-grid-color: var(--ui-border);
|
|
9
|
-
--vis-axis-tick-color: var(--ui-border);
|
|
10
|
-
--vis-axis-tick-label-color: var(--ui-text-dimmed);
|
|
11
|
-
|
|
12
|
-
--vis-tooltip-background-color: var(--ui-bg);
|
|
13
|
-
--vis-tooltip-border-color: var(--ui-border);
|
|
14
|
-
--vis-tooltip-text-color: var(--ui-text-highlighted);
|
|
15
|
-
|
|
16
|
-
--vis-color0: var(--ui-primary);
|
|
17
|
-
--vis-color1: var(--ui-secondary);
|
|
18
|
-
--vis-color2: var(--ui-info);
|
|
19
|
-
--vis-color3: var(--ui-warning);
|
|
20
|
-
--vis-color4: var(--ui-error);
|
|
21
|
-
--vis-color5: var(--ui-success);
|
|
22
|
-
|
|
23
|
-
--vis-dark-color0: var(--ui-primary);
|
|
24
|
-
--vis-dark-color1: var(--ui-secondary);
|
|
25
|
-
--vis-dark-color2: var(--ui-info);
|
|
26
|
-
--vis-dark-color3: var(--ui-warning);
|
|
27
|
-
--vis-dark-color4: var(--ui-error);
|
|
28
|
-
--vis-dark-color5: var(--ui-success);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
19
|
+
|
package/dist/module.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { ImageFormat, ImageSize } from '../dist/runtime/types/index.js';
|
|
2
3
|
export * from '../dist/runtime/types/index.js';
|
|
3
4
|
|
|
4
|
-
interface
|
|
5
|
+
interface CMSCoreOptions {
|
|
5
6
|
/**
|
|
6
7
|
* Name of the module
|
|
7
8
|
* @defaultValue 'cms'
|
|
@@ -27,21 +28,34 @@ interface CMSOptions {
|
|
|
27
28
|
* @defaultValue 'APP_'
|
|
28
29
|
*/
|
|
29
30
|
envPrefix?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Use Unovis
|
|
33
|
+
* @defaultValue false
|
|
34
|
+
*/
|
|
35
|
+
unovis?: boolean;
|
|
30
36
|
/**
|
|
31
37
|
* HTTP codes
|
|
32
38
|
*/
|
|
33
39
|
httpCodes?: Record<string, string>;
|
|
34
40
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @defaultValue {}
|
|
41
|
+
* Component detection
|
|
37
42
|
*/
|
|
38
|
-
|
|
43
|
+
componentDetection?: boolean | string[];
|
|
39
44
|
/**
|
|
40
45
|
* Formats
|
|
41
46
|
*/
|
|
42
47
|
formats?: {
|
|
43
48
|
serverDateTime?: string;
|
|
44
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Prose configuration
|
|
52
|
+
*/
|
|
53
|
+
prose?: {
|
|
54
|
+
uploraImage?: {
|
|
55
|
+
formats?: ImageFormat[];
|
|
56
|
+
sizes?: ImageSize[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
45
59
|
}
|
|
46
60
|
|
|
47
61
|
declare module '@nuxt/schema' {
|
|
@@ -55,6 +69,7 @@ declare module '@nuxt/schema' {
|
|
|
55
69
|
}
|
|
56
70
|
}
|
|
57
71
|
|
|
58
|
-
declare const _default: _nuxt_schema.NuxtModule<
|
|
72
|
+
declare const _default: _nuxt_schema.NuxtModule<CMSCoreOptions, CMSCoreOptions, false>;
|
|
59
73
|
|
|
60
74
|
export { _default as default };
|
|
75
|
+
export type { CMSCoreOptions };
|