@yimingliao/cms 0.0.158 → 0.0.161

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 (62) hide show
  1. package/dist/export/client/components/resources/index.js +0 -6
  2. package/dist/export/client/index.js +4 -2
  3. package/dist/export/index.js +2 -0
  4. package/dist/src/client/applications/form/get-img-ids-from-htmls.js +22 -0
  5. package/dist/src/client/applications/form/process-content-html.js +65 -0
  6. package/dist/types/export/client/components/resources/index.d.ts +1 -1
  7. package/dist/types/export/client/components/resources/index.d.ts.map +1 -1
  8. package/dist/types/export/client/index.d.ts +1 -1
  9. package/dist/types/export/client/index.d.ts.map +1 -1
  10. package/dist/types/export/index.d.ts +1 -1
  11. package/dist/types/export/index.d.ts.map +1 -1
  12. package/dist/types/src/client/applications/form/get-img-ids-from-htmls.d.ts +2 -0
  13. package/dist/types/src/client/applications/form/get-img-ids-from-htmls.d.ts.map +1 -0
  14. package/dist/types/src/client/applications/form/index.d.ts +2 -0
  15. package/dist/types/src/client/applications/form/index.d.ts.map +1 -1
  16. package/dist/types/src/client/applications/form/process-content-html.d.ts +6 -0
  17. package/dist/types/src/client/applications/form/process-content-html.d.ts.map +1 -0
  18. package/dist/types/src/client/applications/index.d.ts +1 -1
  19. package/dist/types/src/client/applications/index.d.ts.map +1 -1
  20. package/dist/types/src/client/index.d.ts +1 -1
  21. package/dist/types/src/client/index.d.ts.map +1 -1
  22. package/dist/types/src/client/interfaces/components/resources/index.d.ts +0 -1
  23. package/dist/types/src/client/interfaces/components/resources/index.d.ts.map +1 -1
  24. package/package.json +6 -6
  25. package/dist/src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.js +0 -54
  26. package/dist/src/client/applications/resources/seo-metadata/use-upsert-form-data.js +0 -15
  27. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.js +0 -187
  28. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.js +0 -78
  29. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.js +0 -441
  30. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/twitter-tags.js +0 -125
  31. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.js +0 -85
  32. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.js +0 -56
  33. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.js +0 -186
  34. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.js +0 -69
  35. package/dist/types/src/client/applications/resources/seo-metadata/index.d.ts +0 -2
  36. package/dist/types/src/client/applications/resources/seo-metadata/index.d.ts.map +0 -1
  37. package/dist/types/src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.d.ts +0 -34
  38. package/dist/types/src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.d.ts.map +0 -1
  39. package/dist/types/src/client/applications/resources/seo-metadata/use-upsert-form-data.d.ts +0 -79
  40. package/dist/types/src/client/applications/resources/seo-metadata/use-upsert-form-data.d.ts.map +0 -1
  41. package/dist/types/src/client/interfaces/components/resources/seo-metadata/index.d.ts +0 -3
  42. package/dist/types/src/client/interfaces/components/resources/seo-metadata/index.d.ts.map +0 -1
  43. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.d.ts +0 -11
  44. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.d.ts.map +0 -1
  45. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/index.d.ts +0 -5
  46. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/index.d.ts.map +0 -1
  47. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.d.ts +0 -9
  48. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.d.ts.map +0 -1
  49. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.d.ts +0 -13
  50. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.d.ts.map +0 -1
  51. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/twitter-tags.d.ts +0 -9
  52. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/twitter-tags.d.ts.map +0 -1
  53. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/index.d.ts +0 -3
  54. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/index.d.ts.map +0 -1
  55. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.d.ts +0 -2
  56. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.d.ts.map +0 -1
  57. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.d.ts +0 -8
  58. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.d.ts.map +0 -1
  59. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.d.ts +0 -28
  60. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.d.ts.map +0 -1
  61. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.d.ts +0 -11
  62. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.d.ts.map +0 -1
@@ -1,56 +0,0 @@
1
- "use client";
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import 'react';
4
- import 'ua-parser-js';
5
- import { cn } from '../../../../../applications/shadcn/utils.js';
6
- import 'next/navigation';
7
- import 'intor/react';
8
- import 'lucide-react';
9
- import '@radix-ui/react-avatar';
10
- import '../../../shadcn/badge.js';
11
- import '../../../shadcn/button.js';
12
- import '@radix-ui/react-collapsible';
13
- import '@radix-ui/react-dialog';
14
- import '@radix-ui/react-dropdown-menu';
15
- import '../../../shadcn/input-group.js';
16
- import '../../../shadcn/item.js';
17
- import '@radix-ui/react-label';
18
- import '@radix-ui/react-select';
19
- import '@radix-ui/react-separator';
20
- import '../../../shadcn/sidebar.js';
21
- import 'next-themes';
22
- import 'sonner';
23
- import '@radix-ui/react-tabs';
24
- import '@radix-ui/react-tooltip';
25
- import 'next/link';
26
- import '../../../../../../constants/paths/auth.js';
27
- import '../../../../../../constants/paths/main.js';
28
- import '../../../../../../constants/paths/resources.js';
29
- import '../../../../../../constants/redirect-paths.js';
30
- import 'mime-types';
31
- import { ActionButtonsCard } from '../../../ui/cards/action-buttons-card.js';
32
- import '../../../../../../domain/resources/admin/constants.js';
33
- import 'next/image';
34
- import { ReferenceCard } from './reference-card.js';
35
-
36
- function SeoFormSideFields({
37
- hasBeenCreated,
38
- isLoading,
39
- isTriggering,
40
- setIsOpen
41
- }) {
42
- return /* @__PURE__ */ jsxs("div", { className: cn("sticky top-0", "h-fit w-max", "flex flex-col gap-6"), children: [
43
- /* @__PURE__ */ jsx(
44
- ActionButtonsCard,
45
- {
46
- action: hasBeenCreated ? "update" : "create",
47
- isInitializing: isLoading,
48
- isProcessing: isTriggering,
49
- cancelButtonProps: { onClick: () => setIsOpen(false) }
50
- }
51
- ),
52
- /* @__PURE__ */ jsx(ReferenceCard, {})
53
- ] });
54
- }
55
-
56
- export { SeoFormSideFields };
@@ -1,186 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
- import { useEffect } from 'react';
4
- import '../../../../../../constants/paths/auth.js';
5
- import '../../../../../../constants/paths/main.js';
6
- import '../../../../../../constants/paths/resources.js';
7
- import { CACHE_KEYS } from '../../../../../../constants/cache-keys.js';
8
- import '../../../../../../constants/redirect-paths.js';
9
- import '../../../../../../domain/resources/admin/constants.js';
10
- import { POST_TYPES } from '../../../../../../domain/resources/post/props.js';
11
- import 'mime-types';
12
- import { datetimeToUi } from '../../../../../../shared/form/normalizers/datetime-to-ui.js';
13
- import { jsonArrayToUi } from '../../../../../../shared/form/normalizers/json-array-to-ui.js';
14
- import { ensureArray } from '../../../../../../shared/utils/ensure-array.js';
15
- import { useSeoMetadataUpsertFormData } from '../../../../../applications/resources/seo-metadata/use-upsert-form-data.js';
16
- import 'intor/react';
17
- import 'lucide-react';
18
- import 'ua-parser-js';
19
- import 'clsx';
20
- import 'tailwind-merge';
21
- import 'next/navigation';
22
- import '@radix-ui/react-avatar';
23
- import '../../../shadcn/badge.js';
24
- import '../../../shadcn/button.js';
25
- import '@radix-ui/react-collapsible';
26
- import '@radix-ui/react-dialog';
27
- import '@radix-ui/react-dropdown-menu';
28
- import '../../../shadcn/input-group.js';
29
- import '../../../shadcn/item.js';
30
- import '@radix-ui/react-label';
31
- import '@radix-ui/react-select';
32
- import '@radix-ui/react-separator';
33
- import '../../../shadcn/sidebar.js';
34
- import 'next-themes';
35
- import 'sonner';
36
- import '@radix-ui/react-tabs';
37
- import '@radix-ui/react-tooltip';
38
- import 'next/link';
39
- import { Form } from '../../../ui/form/form.js';
40
- import { FieldsContainer } from '../../../ui/form/containers/fields-container.js';
41
- import 'next/image';
42
- import { SeoFormSideFields } from './seo-form-side-fields.js';
43
-
44
- function createSeoForm({
45
- postFindFullAction,
46
- seoMetadataUpsertAction,
47
- useQuery,
48
- useCommand,
49
- buildTranslations,
50
- BaseTags,
51
- JsonLdTags,
52
- OpenGraphTags,
53
- TwitterTags
54
- }) {
55
- return function SeoForm({
56
- id,
57
- type = POST_TYPES.POST,
58
- slug,
59
- setIsOpen
60
- }) {
61
- const {
62
- data: post,
63
- isFetching,
64
- refetch
65
- } = useQuery(
66
- () => postFindFullAction({
67
- ...id && { id },
68
- type,
69
- ...slug && { slug }
70
- }),
71
- [CACHE_KEYS.findFull, id, type, slug],
72
- { select: (data) => data?.post, enabled: !!(id || slug) }
73
- );
74
- const postTranslations = ensureArray(post?.translations);
75
- const seoMetadatas = ensureArray(post?.seoMetadatas);
76
- const hasBeenCreated = seoMetadatas.length > 0;
77
- const { formData, setFormData } = useSeoMetadataUpsertFormData({
78
- ...id && { id },
79
- buildTranslations
80
- });
81
- const { execute, isPending, errors } = useCommand(
82
- () => seoMetadataUpsertAction({ formData }),
83
- { onSuccess: () => void refetch() }
84
- );
85
- useEffect(() => {
86
- if (post && seoMetadatas.length > 0) {
87
- queueMicrotask(
88
- () => setFormData({
89
- postId: post.id,
90
- translations: seoMetadatas.map((s) => {
91
- return {
92
- ...s,
93
- ogType: s.ogType,
94
- twitterCard: s.twitterCard,
95
- // Datetime to UI
96
- ogArticlePublishedTime: datetimeToUi(s.ogArticlePublishedTime),
97
- ogArticleModifiedTime: datetimeToUi(s.ogArticleModifiedTime),
98
- // Json Array to UI
99
- jsonLd: jsonArrayToUi(s.jsonLd)
100
- };
101
- })
102
- })
103
- );
104
- }
105
- }, [post, seoMetadatas, setFormData]);
106
- useEffect(() => {
107
- if (post && !hasBeenCreated && postTranslations) {
108
- queueMicrotask(
109
- () => setFormData((prev) => ({
110
- ...prev,
111
- postId: post.id,
112
- translations: prev.translations.map((prevTranslation) => {
113
- const t = postTranslations.find(
114
- (pt) => pt.locale === prevTranslation.locale
115
- );
116
- if (!t)
117
- return {
118
- ...prevTranslation,
119
- ogArticlePublishedTime: datetimeToUi(
120
- (/* @__PURE__ */ new Date()).toISOString()
121
- ),
122
- ogArticleModifiedTime: datetimeToUi((/* @__PURE__ */ new Date()).toISOString())
123
- };
124
- const title = t.title ?? prevTranslation.title;
125
- const description = t.description ?? prevTranslation.description;
126
- return {
127
- ...prevTranslation,
128
- title,
129
- description,
130
- ogArticlePublishedTime: datetimeToUi((/* @__PURE__ */ new Date()).toISOString()),
131
- ogArticleModifiedTime: datetimeToUi((/* @__PURE__ */ new Date()).toISOString())
132
- };
133
- })
134
- }))
135
- );
136
- }
137
- }, [post, hasBeenCreated, postTranslations, type, setFormData]);
138
- return /* @__PURE__ */ jsx(Form, { onSubmit: () => void execute(), children: /* @__PURE__ */ jsxs(FieldsContainer, { children: [
139
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-6 pb-64", children: [
140
- /* @__PURE__ */ jsx(
141
- BaseTags,
142
- {
143
- formData,
144
- setFormData,
145
- errors
146
- }
147
- ),
148
- /* @__PURE__ */ jsx(
149
- OpenGraphTags,
150
- {
151
- formData,
152
- setFormData,
153
- errors
154
- }
155
- ),
156
- /* @__PURE__ */ jsx(
157
- TwitterTags,
158
- {
159
- formData,
160
- setFormData,
161
- errors
162
- }
163
- ),
164
- /* @__PURE__ */ jsx(
165
- JsonLdTags,
166
- {
167
- formData,
168
- setFormData,
169
- errors
170
- }
171
- )
172
- ] }),
173
- /* @__PURE__ */ jsx(
174
- SeoFormSideFields,
175
- {
176
- hasBeenCreated,
177
- isLoading: isFetching,
178
- isTriggering: isPending,
179
- setIsOpen
180
- }
181
- )
182
- ] }) });
183
- };
184
- }
185
-
186
- export { createSeoForm };
@@ -1,69 +0,0 @@
1
- "use client";
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { useTranslator } from 'intor/react';
4
- import { useState } from 'react';
5
- import '@radix-ui/react-avatar';
6
- import 'ua-parser-js';
7
- import 'clsx';
8
- import 'tailwind-merge';
9
- import 'next/navigation';
10
- import '../../shadcn/badge.js';
11
- import '../../shadcn/button.js';
12
- import '@radix-ui/react-collapsible';
13
- import { Dialog, DialogTrigger, DialogContent, DialogTitle } from '../../shadcn/dialog.js';
14
- import '@radix-ui/react-dropdown-menu';
15
- import 'lucide-react';
16
- import '../../shadcn/input-group.js';
17
- import '../../shadcn/item.js';
18
- import '@radix-ui/react-label';
19
- import '@radix-ui/react-select';
20
- import '@radix-ui/react-separator';
21
- import '@radix-ui/react-dialog';
22
- import '../../shadcn/sidebar.js';
23
- import 'next-themes';
24
- import 'sonner';
25
- import '@radix-ui/react-tabs';
26
- import '@radix-ui/react-tooltip';
27
- import { Button } from '../../ui/buttons/button.js';
28
- import 'next/link';
29
- import '../../../../../constants/paths/auth.js';
30
- import '../../../../../constants/paths/main.js';
31
- import '../../../../../constants/paths/resources.js';
32
- import '../../../../../constants/redirect-paths.js';
33
- import 'mime-types';
34
- import '../../../../../domain/resources/admin/constants.js';
35
- import 'next/image';
36
-
37
- function createSeoMetadataDialog({
38
- SeoForm
39
- }) {
40
- return function SeoMetadataDialog({
41
- id,
42
- type,
43
- slug,
44
- // ui states
45
- isLoading = false,
46
- isDisabled = false
47
- }) {
48
- const { t } = useTranslator();
49
- const [isOpen, setIsOpen] = useState(false);
50
- return /* @__PURE__ */ jsxs(Dialog, { open: isOpen, onOpenChange: setIsOpen, children: [
51
- /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
52
- Button,
53
- {
54
- variant: "outline",
55
- isLoading,
56
- isDisabled,
57
- onClick: () => setIsOpen(true),
58
- children: t("resources.seo-metadata.text")
59
- }
60
- ) }),
61
- /* @__PURE__ */ jsxs(DialogContent, { className: "container h-[80%]", children: [
62
- /* @__PURE__ */ jsx(DialogTitle, { className: "sr-only", children: "Dialog" }),
63
- /* @__PURE__ */ jsx("div", { className: "size-full overflow-y-scroll pr-6", children: !!(id || type && slug) && /* @__PURE__ */ jsx(SeoForm, { id, type, slug, setIsOpen }) })
64
- ] })
65
- ] });
66
- };
67
- }
68
-
69
- export { createSeoMetadataDialog };
@@ -1,2 +0,0 @@
1
- export { useSeoMetadataUpsertFormData } from "./use-upsert-form-data";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/applications/resources/seo-metadata/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,34 +0,0 @@
1
- import type { createBuildTranslations } from "../../../../shared";
2
- import type { Alternate } from "@yimingliao/cms";
3
- export declare function createSeoMetadataEmptyTranslation(buildTranslations: ReturnType<typeof createBuildTranslations>): ({
4
- locale: string;
5
- } & {
6
- title: null;
7
- description: null;
8
- author: null;
9
- canonical: null;
10
- alternate: Alternate[];
11
- robots: null;
12
- ogTitle: null;
13
- ogDescription: null;
14
- ogUrl: null;
15
- ogType: null;
16
- ogSiteName: null;
17
- ogImage: null;
18
- ogImageAlt: null;
19
- ogImageType: null;
20
- ogImageWidth: 0;
21
- ogImageHeight: 0;
22
- ogLocale: null;
23
- ogLocaleAlternate: [];
24
- ogArticlePublishedTime: null;
25
- ogArticleModifiedTime: null;
26
- ogArticleAuthor: null;
27
- ogArticleSection: null;
28
- ogArticleTag: [];
29
- twitterCard: null;
30
- twitterSite: null;
31
- twitterCreator: null;
32
- jsonLd: [];
33
- })[];
34
- //# sourceMappingURL=seo-metadata-empty-translation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seo-metadata-empty-translation.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,wBAAgB,iCAAiC,CAC/C,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgE9D"}
@@ -1,79 +0,0 @@
1
- import type { createBuildTranslations } from "../../../../shared";
2
- export declare function useSeoMetadataUpsertFormData({ id, buildTranslations, }: {
3
- id?: string;
4
- buildTranslations: ReturnType<typeof createBuildTranslations>;
5
- }): {
6
- formData: {
7
- postId: string;
8
- translations: {
9
- locale: string;
10
- title: string | null;
11
- description: string | null;
12
- author: string | null;
13
- canonical: string | null;
14
- alternate: {
15
- hreflang: string;
16
- href: string;
17
- }[];
18
- robots: string | null;
19
- ogTitle: string | null;
20
- ogDescription: string | null;
21
- ogUrl: string | null;
22
- ogType: "article" | "book" | "music.song" | "music.album" | "music.playlist" | "music.radio_station" | "profile" | "website" | "video.tv_show" | "video.other" | "video.movie" | "video.episode" | null;
23
- ogSiteName: string | null;
24
- ogImage: string | null;
25
- ogImageAlt: string | null;
26
- ogImageType: string | null;
27
- ogImageWidth: number | null;
28
- ogImageHeight: number | null;
29
- ogLocale: string | null;
30
- ogLocaleAlternate: string[];
31
- ogArticlePublishedTime: string | null;
32
- ogArticleModifiedTime: string | null;
33
- ogArticleAuthor: string | null;
34
- ogArticleSection: string | null;
35
- ogArticleTag: string[];
36
- twitterCard: "summary" | "summary_large_image" | "player" | "app" | null;
37
- twitterSite: string | null;
38
- twitterCreator: string | null;
39
- jsonLd: any[];
40
- }[];
41
- };
42
- setFormData: import("react").Dispatch<import("react").SetStateAction<{
43
- postId: string;
44
- translations: {
45
- locale: string;
46
- title: string | null;
47
- description: string | null;
48
- author: string | null;
49
- canonical: string | null;
50
- alternate: {
51
- hreflang: string;
52
- href: string;
53
- }[];
54
- robots: string | null;
55
- ogTitle: string | null;
56
- ogDescription: string | null;
57
- ogUrl: string | null;
58
- ogType: "article" | "book" | "music.song" | "music.album" | "music.playlist" | "music.radio_station" | "profile" | "website" | "video.tv_show" | "video.other" | "video.movie" | "video.episode" | null;
59
- ogSiteName: string | null;
60
- ogImage: string | null;
61
- ogImageAlt: string | null;
62
- ogImageType: string | null;
63
- ogImageWidth: number | null;
64
- ogImageHeight: number | null;
65
- ogLocale: string | null;
66
- ogLocaleAlternate: string[];
67
- ogArticlePublishedTime: string | null;
68
- ogArticleModifiedTime: string | null;
69
- ogArticleAuthor: string | null;
70
- ogArticleSection: string | null;
71
- ogArticleTag: string[];
72
- twitterCard: "summary" | "summary_large_image" | "player" | "app" | null;
73
- twitterSite: string | null;
74
- twitterCreator: string | null;
75
- jsonLd: any[];
76
- }[];
77
- }>>;
78
- };
79
- //# sourceMappingURL=use-upsert-form-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-upsert-form-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/applications/resources/seo-metadata/use-upsert-form-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAKlE,wBAAgB,4BAA4B,CAAC,EAC3C,EAAE,EACF,iBAAiB,GAClB,EAAE;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;CAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOA"}
@@ -1,3 +0,0 @@
1
- export { createSeoMetadataDialog } from "./seo-metadata-dialog";
2
- export { createSeoForm, createBaseTags, createOpenGraphTags, createTwitterTags, createJsonLdTags, } from "./seo-form";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/seo-metadata/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { SeoMetadataUpsertFormData } from "../../../../../../../server";
2
- import type { FormFieldController } from "../../../../../../../shared";
3
- import type { createI18nInput, createI18nObjectArrayInput, createI18nTextarea } from "../../../../ui/i18n";
4
- export declare function createBaseTags({ I18nInput, I18nTextarea, I18nObjectArrayInput, }: {
5
- I18nInput: ReturnType<typeof createI18nInput>;
6
- I18nTextarea: ReturnType<typeof createI18nTextarea>;
7
- I18nObjectArrayInput: ReturnType<typeof createI18nObjectArrayInput>;
8
- }): ({ formData, setFormData, errors, }: FormFieldController<SeoMetadataUpsertFormData> & {
9
- errors: string[];
10
- }) => import("react/jsx-runtime").JSX.Element;
11
- //# sourceMappingURL=base-tags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-tags.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAI7B,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,YAAY,EACZ,oBAAoB,GACrB,EAAE;IACD,SAAS,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IAC9C,YAAY,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACpD,oBAAoB,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;CACrE,IAC0B,oCAItB,mBAAmB,CAAC,yBAAyB,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,6CA6HzE"}
@@ -1,5 +0,0 @@
1
- export { createBaseTags } from "./base-tags";
2
- export { createOpenGraphTags } from "./open-graph-tags";
3
- export { createTwitterTags } from "./twitter-tags";
4
- export { createJsonLdTags } from "./json-ld-tags";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-form/fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { SeoMetadataUpsertFormData } from "../../../../../../../server";
2
- import type { FormFieldController } from "../../../../../../../shared";
3
- import type { createI18nJsonInput } from "../../../../ui/i18n";
4
- export declare function createJsonLdTags({ I18nJsonInput, }: {
5
- I18nJsonInput: ReturnType<typeof createI18nJsonInput>;
6
- }): ({ formData, setFormData, errors, }: FormFieldController<SeoMetadataUpsertFormData> & {
7
- errors: string[];
8
- }) => import("react/jsx-runtime").JSX.Element;
9
- //# sourceMappingURL=json-ld-tags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-ld-tags.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,wBAAgB,gBAAgB,CAAC,EAC/B,aAAa,GACd,EAAE;IACD,aAAa,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;CACvD,IAC4B,oCAIxB,mBAAmB,CAAC,yBAAyB,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,6CA8BzE"}
@@ -1,13 +0,0 @@
1
- import type { SeoMetadataUpsertFormData } from "../../../../../../../server";
2
- import type { FormFieldController } from "../../../../../../../shared";
3
- import type { createI18nArrayInput, createI18nDateInput, createI18nInput, createI18nNumberInput, createI18nTextarea } from "../../../../ui/i18n";
4
- export declare function createOpenGraphTags({ I18nInput, I18nTextarea, I18nNumberInput, I18nDateInput, I18nArrayInput, }: {
5
- I18nInput: ReturnType<typeof createI18nInput>;
6
- I18nTextarea: ReturnType<typeof createI18nTextarea>;
7
- I18nNumberInput: ReturnType<typeof createI18nNumberInput>;
8
- I18nDateInput: ReturnType<typeof createI18nDateInput>;
9
- I18nArrayInput: ReturnType<typeof createI18nArrayInput>;
10
- }): ({ formData, setFormData, errors, }: FormFieldController<SeoMetadataUpsertFormData> & {
11
- errors: string[];
12
- }) => import("react/jsx-runtime").JSX.Element;
13
- //# sourceMappingURL=open-graph-tags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"open-graph-tags.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAI7B,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,YAAY,EACZ,eAAe,EACf,aAAa,EACb,cAAc,GACf,EAAE;IACD,SAAS,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IAC9C,YAAY,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACpD,eAAe,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAC1D,aAAa,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IACtD,cAAc,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACzD,IAC+B,oCAI3B,mBAAmB,CAAC,yBAAyB,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,6CAoVzE"}
@@ -1,9 +0,0 @@
1
- import type { SeoMetadataUpsertFormData } from "../../../../../../../server";
2
- import type { FormFieldController } from "../../../../../../../shared";
3
- import type { createI18nInput } from "../../../../ui/i18n";
4
- export declare function createTwitterTags({ I18nInput, }: {
5
- I18nInput: ReturnType<typeof createI18nInput>;
6
- }): ({ formData, setFormData, errors, }: FormFieldController<SeoMetadataUpsertFormData> & {
7
- errors: string[];
8
- }) => import("react/jsx-runtime").JSX.Element;
9
- //# sourceMappingURL=twitter-tags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"twitter-tags.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-form/fields/twitter-tags.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,GACV,EAAE;IACD,SAAS,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;CAC/C,IAC6B,oCAIzB,mBAAmB,CAAC,yBAAyB,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,6CAsEzE"}
@@ -1,3 +0,0 @@
1
- export { createSeoForm } from "./seo-form";
2
- export { createBaseTags, createJsonLdTags, createOpenGraphTags, createTwitterTags, } from "./fields";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function ReferenceCard(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=reference-card.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference-card.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.tsx"],"names":[],"mappings":"AASA,wBAAgB,aAAa,4CAsD5B"}
@@ -1,8 +0,0 @@
1
- import type { Dispatch, SetStateAction } from "react";
2
- export declare function SeoFormSideFields({ hasBeenCreated, isLoading, isTriggering, setIsOpen, }: {
3
- hasBeenCreated: boolean;
4
- isLoading: boolean;
5
- isTriggering: boolean;
6
- setIsOpen: Dispatch<SetStateAction<boolean>>;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- //# sourceMappingURL=seo-form-side-fields.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seo-form-side-fields.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKtD,wBAAgB,iBAAiB,CAAC,EAChC,cAAc,EACd,SAAS,EACT,YAAY,EACZ,SAAS,GACV,EAAE;IACD,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC9C,2CAeA"}
@@ -1,28 +0,0 @@
1
- import type { createBaseTags } from "./fields/base-tags";
2
- import type { createJsonLdTags } from "./fields/json-ld-tags";
3
- import type { createOpenGraphTags } from "./fields/open-graph-tags";
4
- import type { createTwitterTags } from "./fields/twitter-tags";
5
- import type { createPostFindFullAction, createSeoMetadataUpsertAction } from "../../../../../../server";
6
- import type { createUseCommand, createUseQuery } from "../../../../../infrastructure";
7
- import type { Dispatch, SetStateAction } from "react";
8
- import { type PostType } from "../../../../../../domain";
9
- import { type createBuildTranslations } from "../../../../../../shared";
10
- interface SeoFormProps {
11
- id?: string | undefined;
12
- type?: PostType | undefined;
13
- slug?: string | undefined;
14
- setIsOpen: Dispatch<SetStateAction<boolean>>;
15
- }
16
- export declare function createSeoForm({ postFindFullAction, seoMetadataUpsertAction, useQuery, useCommand, buildTranslations, BaseTags, JsonLdTags, OpenGraphTags, TwitterTags, }: {
17
- postFindFullAction: ReturnType<typeof createPostFindFullAction>;
18
- seoMetadataUpsertAction: ReturnType<typeof createSeoMetadataUpsertAction>;
19
- useQuery: ReturnType<typeof createUseQuery>;
20
- useCommand: ReturnType<typeof createUseCommand>;
21
- buildTranslations: ReturnType<typeof createBuildTranslations>;
22
- BaseTags: ReturnType<typeof createBaseTags>;
23
- JsonLdTags: ReturnType<typeof createJsonLdTags>;
24
- OpenGraphTags: ReturnType<typeof createOpenGraphTags>;
25
- TwitterTags: ReturnType<typeof createTwitterTags>;
26
- }): ({ id, type, slug, setIsOpen, }: SeoFormProps) => import("react/jsx-runtime").JSX.Element;
27
- export {};
28
- //# sourceMappingURL=seo-form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seo-form.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EACV,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAIL,KAAK,uBAAuB,EAG7B,MAAM,0BAA0B,CAAC;AAKlC,UAAU,YAAY;IACpB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC9C;AAED,wBAAgB,aAAa,CAAC,EAC5B,kBAAkB,EAClB,uBAAuB,EACvB,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,aAAa,EACb,WAAW,GACZ,EAAE;IACD,kBAAkB,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;IAChE,uBAAuB,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;IAC1E,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IAC9D,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,aAAa,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IACtD,WAAW,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;CACnD,IACyB,gCAKrB,YAAY,6CAoIhB"}
@@ -1,11 +0,0 @@
1
- import type { createSeoForm } from "./seo-form";
2
- import type { PostType } from "../../../../../domain";
3
- import type { FormFieldController } from "../../../../../shared";
4
- export declare function createSeoMetadataDialog({ SeoForm, }: {
5
- SeoForm: ReturnType<typeof createSeoForm>;
6
- }): ({ id, type, slug, isLoading, isDisabled, }: {
7
- id?: string;
8
- type?: PostType;
9
- slug?: string;
10
- } & FormFieldController) => import("react/jsx-runtime").JSX.Element;
11
- //# sourceMappingURL=seo-metadata-dialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seo-metadata-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAWjE,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,GACR,EAAE;IACD,OAAO,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;CAC3C,IACmC,4CAO/B;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,6CA8BzE"}