@yimingliao/cms 0.0.155 → 0.0.157

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 +17 -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/fields/twitter-tags.js +125 -0
  15. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.js +85 -0
  16. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.js +56 -0
  17. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.js +186 -0
  18. package/dist/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.js +69 -0
  19. package/dist/src/client/interfaces/components/resources/tag/tag-card.js +78 -0
  20. package/dist/src/client/interfaces/components/resources/tag/tag-list.js +142 -0
  21. package/dist/src/client/interfaces/components/resources/tag/tag-relations-section.js +70 -0
  22. package/dist/src/client/interfaces/components/resources/topic/topic-card.js +91 -0
  23. package/dist/src/client/interfaces/components/resources/topic/topic-list.js +141 -0
  24. package/dist/src/client/interfaces/components/resources/topic/topic-relations-section.js +104 -0
  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 +18 -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 +17 -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,91 @@
1
+ "use client";
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { useTranslator } from 'intor/react';
4
+ import { FileSpreadsheet, File, Folder } from 'lucide-react';
5
+ import { PATHS } from '../../../../../constants/paths/index.js';
6
+ import '../../../../../constants/redirect-paths.js';
7
+ import '../../../../../domain/resources/admin/constants.js';
8
+ import { POST_TYPES } from '../../../../../domain/resources/post/props.js';
9
+ import 'mime-types';
10
+ import { findTranslation } from '../../../../../shared/translation/find-translation.js';
11
+ import 'react';
12
+ import 'ua-parser-js';
13
+ import { cn } from '../../../../applications/shadcn/utils.js';
14
+ import 'next/navigation';
15
+ import '@radix-ui/react-avatar';
16
+ import '../../shadcn/badge.js';
17
+ import '../../shadcn/button.js';
18
+ import '@radix-ui/react-collapsible';
19
+ import '@radix-ui/react-dialog';
20
+ import '@radix-ui/react-dropdown-menu';
21
+ import '../../shadcn/input-group.js';
22
+ import '../../shadcn/item.js';
23
+ import '@radix-ui/react-label';
24
+ import '@radix-ui/react-select';
25
+ import '@radix-ui/react-separator';
26
+ import '../../shadcn/sidebar.js';
27
+ import 'next-themes';
28
+ import 'sonner';
29
+ import '@radix-ui/react-tabs';
30
+ import '@radix-ui/react-tooltip';
31
+ import { ResourceCard } from '../../ui/cards/resource-card/resource-card.js';
32
+ import 'next/link';
33
+ import 'next/image';
34
+ import { PostStatusBarIcons } from '../post/post-status-bar-icons.js';
35
+
36
+ function TopicCard({
37
+ topic,
38
+ // Link Props
39
+ openNewTab = false,
40
+ anchorProps,
41
+ // Base
42
+ className = ""
43
+ }) {
44
+ const { locale } = useTranslator();
45
+ const title = findTranslation(topic.translations, locale)?.title;
46
+ const { isActive, isSlugActive, index } = topic;
47
+ const childPosts = topic.postsInTopic;
48
+ const categories = childPosts.filter((p) => p.type === POST_TYPES.CATEGORY);
49
+ const posts = childPosts.filter((p) => p.type === POST_TYPES.POST);
50
+ return /* @__PURE__ */ jsx(
51
+ ResourceCard,
52
+ {
53
+ className: cn(className, "w-72!"),
54
+ href: `${PATHS.resources.topic.path}/${topic.id}`,
55
+ openNewTab,
56
+ anchorProps,
57
+ cardStatusBarProps: {
58
+ badge: /* @__PURE__ */ jsx(Folder, { className: "size-4" }),
59
+ children: /* @__PURE__ */ jsx(
60
+ PostStatusBarIcons,
61
+ {
62
+ isActive,
63
+ index,
64
+ isSlugActive
65
+ }
66
+ )
67
+ },
68
+ cardTextContentProps: {
69
+ title,
70
+ children: /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1", "p-2", "text-sm"), children: [
71
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
72
+ /* @__PURE__ */ jsx(FileSpreadsheet, { className: "size-4" }),
73
+ /* @__PURE__ */ jsxs("p", { className: "truncate", children: [
74
+ ":\xA0",
75
+ categories.length
76
+ ] })
77
+ ] }),
78
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
79
+ /* @__PURE__ */ jsx(File, { className: "size-4" }),
80
+ /* @__PURE__ */ jsxs("p", { className: "truncate", children: [
81
+ ":\xA0",
82
+ posts.length
83
+ ] })
84
+ ] })
85
+ ] })
86
+ }
87
+ }
88
+ );
89
+ }
90
+
91
+ export { TopicCard };
@@ -0,0 +1,141 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { useState, useMemo, useEffect } from 'react';
3
+ import '../../../../../constants/paths/auth.js';
4
+ import '../../../../../constants/paths/main.js';
5
+ import '../../../../../constants/paths/resources.js';
6
+ import { CACHE_KEYS } from '../../../../../constants/cache-keys.js';
7
+ import '../../../../../constants/redirect-paths.js';
8
+ import '../../../../../domain/resources/admin/constants.js';
9
+ import { POST_TYPES } from '../../../../../domain/resources/post/props.js';
10
+ import 'mime-types';
11
+ import { debounce } from '../../../../../shared/utils/debounce.js';
12
+ import { ensureArray } from '../../../../../shared/utils/ensure-array.js';
13
+ import 'ua-parser-js';
14
+ import { cn } from '../../../../applications/shadcn/utils.js';
15
+ import 'next/navigation';
16
+ import 'intor/react';
17
+ import 'lucide-react';
18
+ import '@radix-ui/react-avatar';
19
+ import '../../shadcn/badge.js';
20
+ import '../../shadcn/button.js';
21
+ import '@radix-ui/react-collapsible';
22
+ import '@radix-ui/react-dialog';
23
+ import '@radix-ui/react-dropdown-menu';
24
+ import '../../shadcn/input-group.js';
25
+ import '../../shadcn/item.js';
26
+ import '@radix-ui/react-label';
27
+ import '@radix-ui/react-select';
28
+ import '@radix-ui/react-separator';
29
+ import '../../shadcn/sidebar.js';
30
+ import 'next-themes';
31
+ import 'sonner';
32
+ import '@radix-ui/react-tabs';
33
+ import '@radix-ui/react-tooltip';
34
+ import { ListCardsContainer } from '../../ui/blocks/list-cards-container/list-cards-container.js';
35
+ import 'next/link';
36
+ import 'next/image';
37
+ import { Tick } from '../../ui/features/tick.js';
38
+ import { ControlFieldsButtons } from '../post/control-fields-buttons.js';
39
+ import { TopicCard } from './topic-card.js';
40
+
41
+ function createTopicList({
42
+ useQuery,
43
+ postFindListCardsAction
44
+ }) {
45
+ return function TopicList({
46
+ usableFields,
47
+ //
48
+ setItemStates,
49
+ // Pick Mode
50
+ pickedItems,
51
+ handleClick
52
+ }) {
53
+ const [page, setPage] = useState(1);
54
+ const [pageSize, setPageSize] = useState(20);
55
+ const [searchString, setSearchString] = useState("");
56
+ const debouncedSetSearchString = useMemo(
57
+ () => debounce((v) => setSearchString(v), 300),
58
+ []
59
+ );
60
+ const [controlFields, setControlFields] = useState({
61
+ isActive: false,
62
+ isIndexActive: false,
63
+ isSlugActive: false
64
+ });
65
+ useEffect(() => {
66
+ queueMicrotask(() => setPage(1));
67
+ }, [controlFields, setPage]);
68
+ const { data, isFetching } = useQuery(
69
+ () => postFindListCardsAction({
70
+ type: POST_TYPES.TOPIC,
71
+ page,
72
+ pageSize,
73
+ searchString,
74
+ ...controlFields
75
+ }),
76
+ [
77
+ CACHE_KEYS.findListCards("topic"),
78
+ page,
79
+ pageSize,
80
+ searchString,
81
+ JSON.stringify(controlFields)
82
+ ]
83
+ );
84
+ const topics = useMemo(() => ensureArray(data?.items), [data?.items]);
85
+ useEffect(() => {
86
+ setItemStates?.({
87
+ items: topics,
88
+ count: data?.total ?? 0,
89
+ isFetching
90
+ });
91
+ }, [topics, data?.total, isFetching, setItemStates]);
92
+ return /* @__PURE__ */ jsx(
93
+ ListCardsContainer,
94
+ {
95
+ page,
96
+ setPage,
97
+ pageSize,
98
+ setPageSize,
99
+ total: data?.total ?? 0,
100
+ searchString,
101
+ setSearchString: debouncedSetSearchString,
102
+ isFetching,
103
+ headerChildren: /* @__PURE__ */ jsx(
104
+ ControlFieldsButtons,
105
+ {
106
+ usableFields,
107
+ controlFields,
108
+ setControlFields
109
+ }
110
+ ),
111
+ children: topics.map((topic) => {
112
+ const isPicked = pickedItems?.some((item) => item.id === topic.id);
113
+ return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
114
+ /* @__PURE__ */ jsx(
115
+ TopicCard,
116
+ {
117
+ topic,
118
+ className: cn(pickedItems && !isPicked && "opacity-50"),
119
+ anchorProps: handleClick && {
120
+ onClick: (e) => {
121
+ e.preventDefault();
122
+ handleClick(topic);
123
+ }
124
+ }
125
+ }
126
+ ),
127
+ pickedItems && /* @__PURE__ */ jsx(
128
+ Tick,
129
+ {
130
+ isPicked: isPicked ?? false,
131
+ className: "absolute top-2 right-2"
132
+ }
133
+ )
134
+ ] }, topic.id);
135
+ })
136
+ }
137
+ );
138
+ };
139
+ }
140
+
141
+ export { createTopicList };
@@ -0,0 +1,104 @@
1
+ "use client";
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { useTranslator } from 'intor/react';
4
+ import '../../../../../domain/resources/admin/constants.js';
5
+ import { POST_TYPES } from '../../../../../domain/resources/post/props.js';
6
+ import 'mime-types';
7
+ import { ensureArray } from '../../../../../shared/utils/ensure-array.js';
8
+ import 'lucide-react';
9
+ import 'react';
10
+ import 'ua-parser-js';
11
+ import 'clsx';
12
+ import 'tailwind-merge';
13
+ import 'next/navigation';
14
+ import '@radix-ui/react-avatar';
15
+ import '../../shadcn/badge.js';
16
+ import '../../shadcn/button.js';
17
+ import '@radix-ui/react-collapsible';
18
+ import '@radix-ui/react-dialog';
19
+ import '@radix-ui/react-dropdown-menu';
20
+ import '../../shadcn/input-group.js';
21
+ import '../../shadcn/item.js';
22
+ import '@radix-ui/react-label';
23
+ import '@radix-ui/react-select';
24
+ import '@radix-ui/react-separator';
25
+ import '../../shadcn/sidebar.js';
26
+ import 'next-themes';
27
+ import 'sonner';
28
+ import '@radix-ui/react-tabs';
29
+ import '@radix-ui/react-tooltip';
30
+ import 'next/link';
31
+ import '../../../../../constants/paths/auth.js';
32
+ import '../../../../../constants/paths/main.js';
33
+ import '../../../../../constants/paths/resources.js';
34
+ import '../../../../../constants/redirect-paths.js';
35
+ import { Accordion } from '../../ui/features/accordion/accordion.js';
36
+ import { AccordionContainer } from '../../ui/features/accordion/accordion-container.js';
37
+ import 'next/image';
38
+
39
+ function createTopicRelationsSection({
40
+ CategoryList,
41
+ PostList
42
+ }) {
43
+ return function TopicRelationsSection({
44
+ topic,
45
+ categoryUsableFields = ["isActive", "isIndexActive", "isSlugActive"],
46
+ postUsableFields = [
47
+ "isActive",
48
+ "isIndexActive",
49
+ "isSlugActive",
50
+ "isFeatured",
51
+ "isShownOnHome"
52
+ ]
53
+ }) {
54
+ const { t } = useTranslator();
55
+ const postsInTopic = ensureArray(topic?.postsInTopic);
56
+ const categories = postsInTopic.filter(
57
+ (p) => p.type === POST_TYPES.CATEGORY
58
+ );
59
+ const posts = postsInTopic.filter((p) => p.type === POST_TYPES.POST);
60
+ return /* @__PURE__ */ jsxs(AccordionContainer, { children: [
61
+ /* @__PURE__ */ jsx(
62
+ Accordion,
63
+ {
64
+ hasBorder: true,
65
+ accordionHeaderProps: {
66
+ count: categories.length,
67
+ isRelated: true,
68
+ children: t("resources.category.text")
69
+ },
70
+ children: /* @__PURE__ */ jsx(
71
+ CategoryList,
72
+ {
73
+ postIds: categories.map((p) => p.id),
74
+ openNewTab: true,
75
+ usableFields: categoryUsableFields
76
+ }
77
+ )
78
+ }
79
+ ),
80
+ /* @__PURE__ */ jsx(
81
+ Accordion,
82
+ {
83
+ hasBorder: true,
84
+ accordionHeaderProps: {
85
+ count: posts.length,
86
+ isRelated: true,
87
+ children: t("resources.post.text")
88
+ },
89
+ children: /* @__PURE__ */ jsx(
90
+ PostList,
91
+ {
92
+ postIds: posts.map((p) => p.id),
93
+ openNewTab: true,
94
+ type: null,
95
+ usableFields: postUsableFields
96
+ }
97
+ )
98
+ }
99
+ )
100
+ ] });
101
+ };
102
+ }
103
+
104
+ export { createTopicRelationsSection };
@@ -1,2 +1,2 @@
1
- export { AdminCard, createAdminList, createAdminRelationsSection, ActiveSessionsBadge, AdminRefreshTokenCard, createFileCard, createFileList, createFileRelationsSection, createPostCard, createPostList, createPostRelationsSection, PostTypeGate, CategoryCard, createCategoryList, createCategoryRelationsSection, } from "../../../../src/client/interfaces/components/resources";
1
+ export { AdminCard, createAdminList, createAdminRelationsSection, ActiveSessionsBadge, AdminRefreshTokenCard, createFileCard, createFileList, createFileRelationsSection, FolderCard, createFolderList, FolderFullPath, createFileManagerList, createFolderRelationsSection, createPostCard, createPostList, createPostRelationsSection, PostTypeGate, CategoryCard, createCategoryList, createCategoryRelationsSection, TopicCard, createTopicList, createTopicRelationsSection, TagCard, createTagList, createTagRelationsSection, createBaseTags, createOpenGraphTags, createTwitterTags, createJsonLdTags, createSeoForm, createSeoMetadataDialog, } from "../../../../src/client/interfaces/components/resources";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../export/client/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EAErB,cAAc,EACd,cAAc,EACd,0BAA0B,EAE1B,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,EAEZ,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,GAC/B,MAAM,wDAAwD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../export/client/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EAErB,cAAc,EACd,cAAc,EACd,0BAA0B,EAE1B,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,4BAA4B,EAE5B,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,EAEZ,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,EAE9B,SAAS,EACT,eAAe,EACf,2BAA2B,EAE3B,OAAO,EACP,aAAa,EACb,yBAAyB,EAEzB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,uBAAuB,GACxB,MAAM,wDAAwD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useSeoMetadataUpsertFormData } from "./use-upsert-form-data";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,34 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,79 @@
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
@@ -0,0 +1 @@
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 +1 @@
1
- {"version":3,"file":"category-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/category-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,8BAA8B,CAAC,EAC7C,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0C,6BAStC;IACD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,6CA0BF"}
1
+ {"version":3,"file":"category-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/category-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0C,6BAGtC;IACD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,6CAuBF"}
@@ -6,7 +6,7 @@ import type { createUseQuery } from "../../../../infrastructure";
6
6
  import type { Dispatch, SetStateAction } from "react";
7
7
  import { type ListItemsState } from "../../../../../shared";
8
8
  interface FileListProps {
9
- setItemStates?: Dispatch<SetStateAction<ListItemsState<FileFull>>>;
9
+ setItemStates?: Dispatch<SetStateAction<ListItemsState<FileFull>>> | undefined;
10
10
  folderId?: string;
11
11
  isDeleted?: boolean;
12
12
  fileIds?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"file-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/file-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAO/B,UAAU,aAAa;IACrB,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,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,cAAc,CAAC,EAC7B,QAAQ,EACR,uBAAuB,EACvB,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,uBAAuB,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;IAC1E,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0B,wFAWtB,aAAa,6CAgHjB"}
1
+ {"version":3,"file":"file-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/file-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAO/B,UAAU,aAAa;IACrB,aAAa,CAAC,EACV,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,GAClD,SAAS,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,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,cAAc,CAAC,EAC7B,QAAQ,EACR,uBAAuB,EACvB,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,uBAAuB,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;IAC1E,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0B,wFAWtB,aAAa,6CAgHjB"}
@@ -0,0 +1,8 @@
1
+ import type { FolderFull } from "../../../../../../domain/resources/folder/full";
2
+ interface FileManagerHeaderProps {
3
+ folder?: FolderFull | null;
4
+ folderKey: string;
5
+ }
6
+ export declare function FileManagerHeader({ folder, folderKey, }: FileManagerHeaderProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=file-manager-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-manager-header.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/folder/file-manager/file-manager-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAQjF,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,GACV,EAAE,sBAAsB,2CAkFxB"}
@@ -0,0 +1,28 @@
1
+ import type { createFolderList } from "./folder-list";
2
+ import type { FileFull } from "../../../../../domain/resources/file/full";
3
+ import type { FolderFull } from "../../../../../domain/resources/folder/full";
4
+ import type { createFolderFindFullAction } from "../../../../../server";
5
+ import type { createUseQuery } from "../../../../infrastructure";
6
+ import type { createFileList } from "../file";
7
+ import type { Dispatch, SetStateAction } from "react";
8
+ import { type MultiItems, type SingleItem } from "../../../../../domain";
9
+ import { type ListItemsState } from "../../../../../shared";
10
+ interface FileManagerListProps {
11
+ folderStates?: ListItemsState;
12
+ setFolderStates?: Dispatch<SetStateAction<ListItemsState<FolderFull>>>;
13
+ showFiles?: boolean;
14
+ fileStates?: ListItemsState;
15
+ setFileStates?: Dispatch<SetStateAction<ListItemsState<FileFull>>>;
16
+ pickedItems?: MultiItems;
17
+ handleClick?: (item: SingleItem) => void;
18
+ isInModal?: boolean;
19
+ excludeId?: string;
20
+ }
21
+ export declare function createFileManagerList({ useQuery, folderFindFullAction, FolderList, FileList, }: {
22
+ useQuery: ReturnType<typeof createUseQuery>;
23
+ folderFindFullAction: ReturnType<typeof createFolderFindFullAction>;
24
+ FolderList: ReturnType<typeof createFolderList>;
25
+ FileList: ReturnType<typeof createFileList>;
26
+ }): ({ folderStates, setFolderStates, showFiles, fileStates, setFileStates, pickedItems, handleClick, isInModal, excludeId, }: FileManagerListProps) => import("react/jsx-runtime").JSX.Element;
27
+ export {};
28
+ //# sourceMappingURL=file-manager-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-manager-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/file-manager-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAItD,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI9E,UAAU,oBAAoB;IAC5B,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnE,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,oBAAoB,EACpB,UAAU,EACV,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,oBAAoB,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;IACpE,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACiC,0HAa7B,oBAAoB,6CAwExB"}
@@ -0,0 +1,13 @@
1
+ import type { FolderFull } from "../../../../../domain/resources/folder/full";
2
+ import type { AnchorHTMLAttributes } from "react";
3
+ import { type Folder } from "../../../../../domain";
4
+ interface FolderCardProps {
5
+ folder?: FolderFull | Folder;
6
+ openNewTab?: boolean;
7
+ anchorProps?: AnchorHTMLAttributes<HTMLAnchorElement>;
8
+ isInFileManager?: boolean;
9
+ className?: string;
10
+ }
11
+ export declare function FolderCard({ folder, openNewTab, anchorProps, isInFileManager, className, }: FolderCardProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=folder-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/folder-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAIpE,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IACtD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,wBAAgB,UAAU,CAAC,EACzB,MAAM,EAEN,UAAkB,EAClB,WAAW,EACX,eAAuB,EAEvB,SAAc,GACf,EAAE,eAAe,2CAqBjB"}
@@ -0,0 +1,9 @@
1
+ import type { Folder } from "../../../../../domain";
2
+ interface Props {
3
+ parentFolder: Folder | null;
4
+ name: string;
5
+ isLoading?: boolean;
6
+ }
7
+ export declare function FolderFullPath({ parentFolder, name, isLoading }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=folder-full-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-full-path.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/folder-full-path.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAGpD,UAAU,KAAK;IACb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,KAAK,2CAgBtE"}
@@ -0,0 +1,26 @@
1
+ import type { FolderFull } from "../../../../../domain/resources/folder/full";
2
+ import type { createFolderFindListCardsAction } from "../../../../../server";
3
+ import type { createUseQuery } from "../../../../infrastructure";
4
+ import type { Dispatch, SetStateAction } from "react";
5
+ import { type MultiItems, type SingleItem } from "../../../../../domain";
6
+ import { type ListItemsState } from "../../../../../shared";
7
+ type FoldersListProps = {
8
+ setItemStates?: Dispatch<SetStateAction<ListItemsState<FolderFull>>> | undefined;
9
+ parentFolderId?: string;
10
+ folderIds?: string[];
11
+ openNewTab?: boolean;
12
+ isInFileManager?: boolean;
13
+ pickedItems?: MultiItems | undefined;
14
+ handleClick?: ((item: SingleItem) => void) | undefined;
15
+ isInModal?: boolean | undefined;
16
+ handleDoubleClick?: (item: {
17
+ key: string;
18
+ }) => void;
19
+ excludeId?: string | undefined;
20
+ };
21
+ export declare function createFolderList({ useQuery, folderFindListCardsAction, }: {
22
+ useQuery: ReturnType<typeof createUseQuery>;
23
+ folderFindListCardsAction: ReturnType<typeof createFolderFindListCardsAction>;
24
+ }): ({ setItemStates, parentFolderId, folderIds, openNewTab, isInFileManager, pickedItems, handleClick, isInModal, handleDoubleClick, excludeId, }: FoldersListProps) => import("react/jsx-runtime").JSX.Element;
25
+ export {};
26
+ //# sourceMappingURL=folder-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/folder-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAItD,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAK/B,KAAK,gBAAgB,GAAG;IACtB,aAAa,CAAC,EACV,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,GACpD,SAAS,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACvD,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,yBAAyB,GAC1B,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,yBAAyB,EAAE,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;CAC/E,IAC4B,+IAcxB,gBAAgB,6CA8GpB"}
@@ -0,0 +1,10 @@
1
+ import type { createFolderList } from "./folder-list";
2
+ import type { FolderFull } from "../../../../../domain/resources/folder/full";
3
+ import type { createFileList } from "../file";
4
+ export declare function createFolderRelationsSection({ FolderList, FileList, }: {
5
+ FolderList: ReturnType<typeof createFolderList>;
6
+ FileList: ReturnType<typeof createFileList>;
7
+ }): ({ folder }: {
8
+ folder?: FolderFull;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=folder-relations-section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/folder-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,wBAAgB,4BAA4B,CAAC,EAC3C,UAAU,EACV,QAAQ,GACT,EAAE;IACD,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACwC,YAAY;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,6CAkC3E"}
@@ -0,0 +1,6 @@
1
+ export { FolderCard } from "./folder-card";
2
+ export { createFolderList } from "./folder-list";
3
+ export { createFolderRelationsSection } from "./folder-relations-section";
4
+ export { createFileManagerList } from "./file-manager-list";
5
+ export { FolderFullPath } from "./folder-full-path";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}