@yimingliao/cms 0.0.154 → 0.0.156

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 (90) hide show
  1. package/dist/export/client/components/resources/index.js +46 -0
  2. package/dist/src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.js +54 -0
  3. package/dist/src/client/applications/resources/seo-metadata/use-upsert-form-data.js +15 -0
  4. package/dist/src/client/interfaces/components/resources/category/category-relations-section.js +3 -11
  5. package/dist/src/client/interfaces/components/resources/folder/file-manager/file-manager-header.js +115 -0
  6. package/dist/src/client/interfaces/components/resources/folder/file-manager-list.js +127 -0
  7. package/dist/src/client/interfaces/components/resources/folder/folder-card.js +62 -0
  8. package/dist/src/client/interfaces/components/resources/folder/folder-full-path.js +40 -0
  9. package/dist/src/client/interfaces/components/resources/folder/folder-list.js +156 -0
  10. package/dist/src/client/interfaces/components/resources/folder/folder-relations-section.js +75 -0
  11. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.js +187 -0
  12. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.js +78 -0
  13. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.js +441 -0
  14. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.js +85 -0
  15. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.js +56 -0
  16. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.js +186 -0
  17. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.js +69 -0
  18. package/dist/src/client/interfaces/components/resources/tag/tag-card.js +78 -0
  19. package/dist/src/client/interfaces/components/resources/tag/tag-list.js +139 -0
  20. package/dist/src/client/interfaces/components/resources/tag/tag-relations-section.js +70 -0
  21. package/dist/src/client/interfaces/components/resources/topic/topic-card.js +91 -0
  22. package/dist/src/client/interfaces/components/resources/topic/topic-list.js +138 -0
  23. package/dist/src/client/interfaces/components/resources/topic/topic-relations-section.js +104 -0
  24. package/dist/src/server/infrastructure/database/post/query/create-post-query-repository.js +15 -15
  25. package/dist/types/export/client/components/resources/index.d.ts +1 -1
  26. package/dist/types/export/client/components/resources/index.d.ts.map +1 -1
  27. package/dist/types/src/client/applications/resources/seo-metadata/index.d.ts +2 -0
  28. package/dist/types/src/client/applications/resources/seo-metadata/index.d.ts.map +1 -0
  29. package/dist/types/src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.d.ts +34 -0
  30. package/dist/types/src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.d.ts.map +1 -0
  31. package/dist/types/src/client/applications/resources/seo-metadata/use-upsert-form-data.d.ts +79 -0
  32. package/dist/types/src/client/applications/resources/seo-metadata/use-upsert-form-data.d.ts.map +1 -0
  33. package/dist/types/src/client/interfaces/components/resources/category/category-relations-section.d.ts.map +1 -1
  34. package/dist/types/src/client/interfaces/components/resources/file/file-list.d.ts +1 -1
  35. package/dist/types/src/client/interfaces/components/resources/file/file-list.d.ts.map +1 -1
  36. package/dist/types/src/client/interfaces/components/resources/folder/file-manager/file-manager-header.d.ts +8 -0
  37. package/dist/types/src/client/interfaces/components/resources/folder/file-manager/file-manager-header.d.ts.map +1 -0
  38. package/dist/types/src/client/interfaces/components/resources/folder/file-manager-list.d.ts +28 -0
  39. package/dist/types/src/client/interfaces/components/resources/folder/file-manager-list.d.ts.map +1 -0
  40. package/dist/types/src/client/interfaces/components/resources/folder/folder-card.d.ts +13 -0
  41. package/dist/types/src/client/interfaces/components/resources/folder/folder-card.d.ts.map +1 -0
  42. package/dist/types/src/client/interfaces/components/resources/folder/folder-full-path.d.ts +9 -0
  43. package/dist/types/src/client/interfaces/components/resources/folder/folder-full-path.d.ts.map +1 -0
  44. package/dist/types/src/client/interfaces/components/resources/folder/folder-list.d.ts +26 -0
  45. package/dist/types/src/client/interfaces/components/resources/folder/folder-list.d.ts.map +1 -0
  46. package/dist/types/src/client/interfaces/components/resources/folder/folder-relations-section.d.ts +10 -0
  47. package/dist/types/src/client/interfaces/components/resources/folder/folder-relations-section.d.ts.map +1 -0
  48. package/dist/types/src/client/interfaces/components/resources/folder/index.d.ts +6 -0
  49. package/dist/types/src/client/interfaces/components/resources/folder/index.d.ts.map +1 -0
  50. package/dist/types/src/client/interfaces/components/resources/index.d.ts +4 -0
  51. package/dist/types/src/client/interfaces/components/resources/index.d.ts.map +1 -1
  52. package/dist/types/src/client/interfaces/components/resources/seo-metadata/index.d.ts +3 -0
  53. package/dist/types/src/client/interfaces/components/resources/seo-metadata/index.d.ts.map +1 -0
  54. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.d.ts +11 -0
  55. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.d.ts.map +1 -0
  56. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/index.d.ts +5 -0
  57. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/index.d.ts.map +1 -0
  58. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.d.ts +9 -0
  59. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.d.ts.map +1 -0
  60. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.d.ts +13 -0
  61. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.d.ts.map +1 -0
  62. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/twitter-tags.d.ts +9 -0
  63. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/twitter-tags.d.ts.map +1 -0
  64. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/index.d.ts +3 -0
  65. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/index.d.ts.map +1 -0
  66. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.d.ts +2 -0
  67. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.d.ts.map +1 -0
  68. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.d.ts +8 -0
  69. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.d.ts.map +1 -0
  70. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.d.ts +28 -0
  71. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.d.ts.map +1 -0
  72. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.d.ts +11 -0
  73. package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.d.ts.map +1 -0
  74. package/dist/types/src/client/interfaces/components/resources/tag/index.d.ts +4 -0
  75. package/dist/types/src/client/interfaces/components/resources/tag/index.d.ts.map +1 -0
  76. package/dist/types/src/client/interfaces/components/resources/tag/tag-card.d.ts +11 -0
  77. package/dist/types/src/client/interfaces/components/resources/tag/tag-card.d.ts.map +1 -0
  78. package/dist/types/src/client/interfaces/components/resources/tag/tag-list.d.ts +17 -0
  79. package/dist/types/src/client/interfaces/components/resources/tag/tag-list.d.ts.map +1 -0
  80. package/dist/types/src/client/interfaces/components/resources/tag/tag-relations-section.d.ts +9 -0
  81. package/dist/types/src/client/interfaces/components/resources/tag/tag-relations-section.d.ts.map +1 -0
  82. package/dist/types/src/client/interfaces/components/resources/topic/index.d.ts +4 -0
  83. package/dist/types/src/client/interfaces/components/resources/topic/index.d.ts.map +1 -0
  84. package/dist/types/src/client/interfaces/components/resources/topic/topic-card.d.ts +11 -0
  85. package/dist/types/src/client/interfaces/components/resources/topic/topic-card.d.ts.map +1 -0
  86. package/dist/types/src/client/interfaces/components/resources/topic/topic-list.d.ts +16 -0
  87. package/dist/types/src/client/interfaces/components/resources/topic/topic-list.d.ts.map +1 -0
  88. package/dist/types/src/client/interfaces/components/resources/topic/topic-relations-section.d.ts +12 -0
  89. package/dist/types/src/client/interfaces/components/resources/topic/topic-relations-section.d.ts.map +1 -0
  90. package/package.json +1 -1
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,13 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export { createSeoForm } from "./seo-form";
2
+ export { createBaseTags, createJsonLdTags, createOpenGraphTags, createTwitterTags, } from "./fields";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export declare function ReferenceCard(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=reference-card.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,28 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,11 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ export { TagCard } from "./tag-card";
2
+ export { createTagList } from "./tag-list";
3
+ export { createTagRelationsSection } from "./tag-relations-section";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { PostListCard } from "../../../../../domain";
2
+ import type { ComponentProps } from "react";
3
+ interface TagCardProps {
4
+ tag: PostListCard;
5
+ className?: string;
6
+ openNewTab?: boolean;
7
+ anchorProps?: ComponentProps<"a"> | undefined;
8
+ }
9
+ export declare function TagCard({ tag, openNewTab, anchorProps, className, }: TagCardProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=tag-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/tag/tag-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAS5C,UAAU,YAAY;IACpB,GAAG,EAAE,YAAY,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CAC/C;AAED,wBAAgB,OAAO,CAAC,EACtB,GAAG,EAEH,UAAkB,EAClB,WAAW,EAEX,SAAc,GACf,EAAE,YAAY,2CA8Cd"}
@@ -0,0 +1,17 @@
1
+ import type { createPostFindListCardsAction } from "../../../../../server";
2
+ import type { createUseQuery } from "../../../../infrastructure";
3
+ import { type Dispatch, type SetStateAction } from "react";
4
+ import { type MultiItems, type PostListCard, type SingleItem } from "../../../../../domain";
5
+ import { type ListItemsState } from "../../../../../shared";
6
+ interface TagListProps {
7
+ setItemStates?: Dispatch<SetStateAction<ListItemsState<PostListCard>>>;
8
+ openNewTab?: boolean;
9
+ pickedItems?: MultiItems;
10
+ handleClick?: (item: SingleItem) => void;
11
+ }
12
+ export declare function createTagList({ useQuery, postFindListCardsAction, }: {
13
+ useQuery: ReturnType<typeof createUseQuery>;
14
+ postFindListCardsAction: ReturnType<typeof createPostFindListCardsAction>;
15
+ }): ({ setItemStates, openNewTab, pickedItems, handleClick, }: TagListProps) => import("react/jsx-runtime").JSX.Element;
16
+ export {};
17
+ //# sourceMappingURL=tag-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/tag/tag-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAS/B,UAAU,YAAY;IACpB,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,uBAAuB,GACxB,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,uBAAuB,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;CAC3E,IACyB,0DAOrB,YAAY,6CAmGhB"}
@@ -0,0 +1,9 @@
1
+ import type { PostFull } from "../../../../../domain/resources/post/full";
2
+ import type { createPostList } from "../post";
3
+ export declare function createTagRelationsSection({ PostList, }: {
4
+ PostList: ReturnType<typeof createPostList>;
5
+ }): ({ tag, usableFields, }: {
6
+ tag?: PostFull;
7
+ usableFields?: string[];
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=tag-relations-section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/tag/tag-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACqC,wBAGjC;IACD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,6CA0BF"}
@@ -0,0 +1,4 @@
1
+ export { TopicCard } from "./topic-card";
2
+ export { createTopicList } from "./topic-list";
3
+ export { createTopicRelationsSection } from "./topic-relations-section";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/topic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ComponentProps } from "react";
2
+ import { type PostListCard } from "../../../../../domain";
3
+ interface PostTypesCardProps {
4
+ topic: PostListCard;
5
+ openNewTab?: boolean;
6
+ className?: string;
7
+ anchorProps?: ComponentProps<"a"> | undefined;
8
+ }
9
+ export declare function TopicCard({ topic, openNewTab, anchorProps, className, }: PostTypesCardProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=topic-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topic-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/topic/topic-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMtE,UAAU,kBAAkB;IAC1B,KAAK,EAAE,YAAY,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CAC/C;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EAEL,UAAkB,EAClB,WAAW,EAEX,SAAc,GACf,EAAE,kBAAkB,2CA6CpB"}
@@ -0,0 +1,16 @@
1
+ import type { createPostFindListCardsAction } from "../../../../../server";
2
+ import type { createUseQuery } from "../../../../infrastructure";
3
+ import { type Dispatch, type SetStateAction } from "react";
4
+ import { type MultiItems, type PostListCard, type SingleItem } from "../../../../../domain";
5
+ import { type ListItemsState } from "../../../../../shared";
6
+ interface TopicListProps {
7
+ setItemStates?: Dispatch<SetStateAction<ListItemsState<PostListCard>>>;
8
+ pickedItems?: MultiItems;
9
+ handleClick?: (item: SingleItem) => void;
10
+ }
11
+ export declare function createTopicList({ useQuery, postFindListCardsAction, }: {
12
+ useQuery: ReturnType<typeof createUseQuery>;
13
+ postFindListCardsAction: ReturnType<typeof createPostFindListCardsAction>;
14
+ }): ({ setItemStates, pickedItems, handleClick, }: TopicListProps) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=topic-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topic-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/topic/topic-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAS/B,UAAU,cAAc;IACtB,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACvE,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,uBAAuB,GACxB,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,uBAAuB,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;CAC3E,IAC2B,8CAKvB,cAAc,6CAmGlB"}
@@ -0,0 +1,12 @@
1
+ import type { PostFull } from "../../../../../domain/resources/post/full";
2
+ import type { createCategoryList } from "../category";
3
+ import type { createPostList } from "../post";
4
+ export declare function createTopicRelationsSection({ CategoryList, PostList, }: {
5
+ CategoryList: ReturnType<typeof createCategoryList>;
6
+ PostList: ReturnType<typeof createPostList>;
7
+ }): ({ topic, categoryUsableFields, postUsableFields, }: {
8
+ topic?: PostFull;
9
+ categoryUsableFields?: string[];
10
+ postUsableFields?: string[];
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=topic-relations-section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topic-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/topic/topic-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAM9C,wBAAgB,2BAA2B,CAAC,EAC1C,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACpD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACuC,oDAUnC;IACD,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,6CA8CF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.154",
3
+ "version": "0.0.156",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",