@vicacha-devs/strapi-plugin-notes 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +20 -2
  3. package/dist/admin/NotesHomePage-CIWSOu3n.js +457 -0
  4. package/dist/admin/NotesHomePage-Da5Eu2o9.cjs +475 -0
  5. package/dist/admin/ar-NJ-XJhAU.cjs +64 -0
  6. package/dist/admin/ar-uSBvoP4-.js +64 -0
  7. package/dist/admin/de-DlFY4yCr.js +64 -0
  8. package/dist/admin/de-d-M42GQs.cjs +64 -0
  9. package/dist/admin/en-C8MGI5Fp.cjs +64 -0
  10. package/dist/admin/en-DQUtJt3K.js +64 -0
  11. package/dist/admin/es-BZY_kUPd.cjs +64 -0
  12. package/dist/admin/es-DcTVGahO.js +64 -0
  13. package/dist/admin/fr-D6Ism7Y3.cjs +64 -0
  14. package/dist/admin/fr-QW7vMjBs.js +64 -0
  15. package/dist/admin/index-BD0jLH1y.cjs +1458 -0
  16. package/dist/admin/index-ClQtejgN.js +1442 -0
  17. package/dist/admin/index.cjs +4 -0
  18. package/dist/admin/index.js +4 -0
  19. package/dist/admin/index.mjs +4 -0
  20. package/dist/admin/it-DyBVYzjD.cjs +64 -0
  21. package/dist/admin/it-F24NTVne.js +64 -0
  22. package/dist/admin/pt-B4OG4ZiY.js +64 -0
  23. package/dist/admin/pt-BOHJueLP.cjs +64 -0
  24. package/dist/admin/ru-DGiT4YZI.js +64 -0
  25. package/dist/admin/ru-DhigZM8k.cjs +64 -0
  26. package/dist/admin/src/components/DeleteNoteDialog.d.ts +10 -0
  27. package/dist/admin/src/components/Initializer.d.ts +5 -0
  28. package/dist/admin/src/components/NoteListItem.d.ts +10 -0
  29. package/dist/admin/src/components/NoteModal.d.ts +18 -0
  30. package/dist/admin/src/components/NotesHubFilterBar.d.ts +14 -0
  31. package/dist/admin/src/components/NotesSidePanel.d.ts +13 -0
  32. package/dist/admin/src/components/PluginIcon.d.ts +2 -0
  33. package/dist/admin/src/hooks/useNotes.d.ts +12 -0
  34. package/dist/admin/src/index.d.ts +21 -0
  35. package/dist/admin/src/pages/NotesHomePage.d.ts +3 -0
  36. package/dist/admin/src/pluginId.d.ts +4 -0
  37. package/dist/admin/src/utils/getTrad.d.ts +2 -0
  38. package/dist/admin/src/utils/index.d.ts +1 -0
  39. package/dist/admin/tr-CNFZeutu.cjs +64 -0
  40. package/dist/admin/tr-CwzORNP2.js +64 -0
  41. package/dist/admin/zh-BriU4KiK.cjs +64 -0
  42. package/dist/admin/zh-C1EjzGrj.js +64 -0
  43. package/dist/package.json +3 -0
  44. package/dist/server/index.cjs +1212 -0
  45. package/dist/server/index.js +1212 -0
  46. package/dist/server/index.mjs +1212 -0
  47. package/dist/server/src/bootstrap.d.ts +5 -0
  48. package/dist/server/src/config/index.d.ts +8 -0
  49. package/dist/server/src/content-types/index.d.ts +70 -0
  50. package/dist/server/src/content-types/note/schema.json.d.ts +68 -0
  51. package/dist/server/src/controllers/index.d.ts +2 -0
  52. package/dist/server/src/controllers/notesController.d.ts +27 -0
  53. package/dist/server/src/destroy.d.ts +5 -0
  54. package/dist/server/src/index.d.ts +2 -0
  55. package/dist/server/src/register.d.ts +5 -0
  56. package/dist/server/src/routes/admin.d.ts +17 -0
  57. package/dist/server/src/routes/content-api.d.ts +12 -0
  58. package/dist/server/src/routes/index.d.ts +30 -0
  59. package/dist/server/src/services/index.d.ts +2 -0
  60. package/dist/server/src/services/notesQueryHelpers.d.ts +11 -0
  61. package/dist/server/src/services/notesService.d.ts +25 -0
  62. package/dist/shared/index.cjs +525 -0
  63. package/dist/shared/index.d.ts +1 -0
  64. package/dist/shared/index.js +525 -0
  65. package/dist/shared/index.mjs +525 -0
  66. package/package.json +102 -3
@@ -0,0 +1,5 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const _default: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => Promise<void>;
5
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ default: {
3
+ defaultSortOrder: string;
4
+ enableLocaleScoping: boolean;
5
+ };
6
+ validator(config: Record<string, unknown>): void;
7
+ };
8
+ export default _default;
@@ -0,0 +1,70 @@
1
+ declare const _default: {
2
+ note: {
3
+ schema: {
4
+ kind: string;
5
+ collectionName: string;
6
+ info: {
7
+ singularName: string;
8
+ pluralName: string;
9
+ displayName: string;
10
+ description: string;
11
+ };
12
+ options: {
13
+ draftAndPublish: boolean;
14
+ };
15
+ pluginOptions: {
16
+ "content-manager": {
17
+ visible: boolean;
18
+ };
19
+ "content-type-builder": {
20
+ visible: boolean;
21
+ };
22
+ };
23
+ attributes: {
24
+ title: {
25
+ type: string;
26
+ required: boolean;
27
+ maxLength: number;
28
+ };
29
+ content: {
30
+ type: string;
31
+ };
32
+ category: {
33
+ type: string;
34
+ enum: string[];
35
+ default: string;
36
+ required: boolean;
37
+ };
38
+ isPinned: {
39
+ type: string;
40
+ default: boolean;
41
+ };
42
+ entityId: {
43
+ type: string;
44
+ };
45
+ entityDocumentId: {
46
+ type: string;
47
+ maxLength: number;
48
+ };
49
+ entitySlug: {
50
+ type: string;
51
+ required: boolean;
52
+ maxLength: number;
53
+ };
54
+ entityLocale: {
55
+ type: string;
56
+ maxLength: number;
57
+ };
58
+ createdByName: {
59
+ type: string;
60
+ maxLength: number;
61
+ };
62
+ updatedByName: {
63
+ type: string;
64
+ maxLength: number;
65
+ };
66
+ };
67
+ };
68
+ };
69
+ };
70
+ export default _default;
@@ -0,0 +1,68 @@
1
+ declare const _default: {
2
+ "kind": "collectionType",
3
+ "collectionName": "notes",
4
+ "info": {
5
+ "singularName": "note",
6
+ "pluralName": "notes",
7
+ "displayName": "Notes",
8
+ "description": "Editorial notes attached to Content Manager entity records"
9
+ },
10
+ "options": {
11
+ "draftAndPublish": false
12
+ },
13
+ "pluginOptions": {
14
+ "content-manager": {
15
+ "visible": false
16
+ },
17
+ "content-type-builder": {
18
+ "visible": false
19
+ }
20
+ },
21
+ "attributes": {
22
+ "title": {
23
+ "type": "string",
24
+ "required": true,
25
+ "maxLength": 255
26
+ },
27
+ "content": {
28
+ "type": "text"
29
+ },
30
+ "category": {
31
+ "type": "enumeration",
32
+ "enum": ["general", "todo", "blocker", "idea"],
33
+ "default": "general",
34
+ "required": true
35
+ },
36
+ "isPinned": {
37
+ "type": "boolean",
38
+ "default": false
39
+ },
40
+ "entityId": {
41
+ "type": "integer"
42
+ },
43
+ "entityDocumentId": {
44
+ "type": "string",
45
+ "maxLength": 128
46
+ },
47
+ "entitySlug": {
48
+ "type": "string",
49
+ "required": true,
50
+ "maxLength": 160
51
+ },
52
+ "entityLocale": {
53
+ "type": "string",
54
+ "maxLength": 32
55
+ },
56
+ "createdByName": {
57
+ "type": "string",
58
+ "maxLength": 120
59
+ },
60
+ "updatedByName": {
61
+ "type": "string",
62
+ "maxLength": 120
63
+ }
64
+ }
65
+ }
66
+ ;
67
+
68
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const controllers: Record<string, unknown>;
2
+ export default controllers;
@@ -0,0 +1,27 @@
1
+ import { Core } from '@strapi/strapi';
2
+ export interface KoaContext {
3
+ params?: Record<string, string>;
4
+ query?: Record<string, unknown>;
5
+ request?: {
6
+ body?: unknown;
7
+ };
8
+ state?: {
9
+ user?: unknown;
10
+ };
11
+ status?: number;
12
+ body?: unknown;
13
+ badRequest?: (message: string, details?: unknown) => unknown;
14
+ notFound?: (message?: string) => unknown;
15
+ send?: (payload: unknown) => unknown;
16
+ }
17
+ declare const _default: ({ strapi }: {
18
+ strapi: Core.Strapi;
19
+ }) => {
20
+ find(ctx: KoaContext): Promise<unknown>;
21
+ stats(ctx: KoaContext): Promise<unknown>;
22
+ findOne(ctx: KoaContext): Promise<unknown>;
23
+ create(ctx: KoaContext): Promise<unknown>;
24
+ update(ctx: KoaContext): Promise<unknown>;
25
+ delete(ctx: KoaContext): Promise<unknown>;
26
+ };
27
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const _default: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => void;
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const plugin: Record<string, unknown>;
2
+ export default plugin;
@@ -0,0 +1,5 @@
1
+ import { Core } from '@strapi/strapi';
2
+ declare const _default: ({ strapi }: {
3
+ strapi: Core.Strapi;
4
+ }) => void;
5
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ type: string;
3
+ routes: {
4
+ method: string;
5
+ path: string;
6
+ handler: string;
7
+ config: {
8
+ policies: (string | {
9
+ name: string;
10
+ config: {
11
+ actions: string[];
12
+ };
13
+ })[];
14
+ };
15
+ }[];
16
+ };
17
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ type: string;
3
+ routes: {
4
+ method: string;
5
+ path: string;
6
+ handler: string;
7
+ config: {
8
+ policies: never[];
9
+ };
10
+ }[];
11
+ };
12
+ export default _default;
@@ -0,0 +1,30 @@
1
+ declare const _default: {
2
+ admin: {
3
+ type: string;
4
+ routes: {
5
+ method: string;
6
+ path: string;
7
+ handler: string;
8
+ config: {
9
+ policies: (string | {
10
+ name: string;
11
+ config: {
12
+ actions: string[];
13
+ };
14
+ })[];
15
+ };
16
+ }[];
17
+ };
18
+ "content-api": {
19
+ type: string;
20
+ routes: {
21
+ method: string;
22
+ path: string;
23
+ handler: string;
24
+ config: {
25
+ policies: never[];
26
+ };
27
+ }[];
28
+ };
29
+ };
30
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const services: Record<string, unknown>;
2
+ export default services;
@@ -0,0 +1,11 @@
1
+ import { Core } from '@strapi/strapi';
2
+ import { NoteFilterParams } from '../../../shared';
3
+ export interface NotesPluginConfig {
4
+ defaultSortOrder: "ASC" | "DESC";
5
+ enableLocaleScoping: boolean;
6
+ }
7
+ export declare function getNotesPluginConfig(strapi?: Core.Strapi): NotesPluginConfig;
8
+ export declare function parseNoteQueryFilters(rawQuery?: Record<string, unknown>, pluginConfig?: Partial<NotesPluginConfig>): NoteFilterParams;
9
+ export declare function buildDbWhereClause(filters?: NoteFilterParams): Record<string, unknown>;
10
+ export declare function hasPopulatedAuthorIdentity(value: unknown): boolean;
11
+ export declare function resolvePopulatedAuthor(dbValue: unknown, fallbackAuthor: unknown): unknown;
@@ -0,0 +1,25 @@
1
+ import { Core } from '@strapi/strapi';
2
+ import { NoteRecord, NotesSummaryStats } from '../../../shared';
3
+ import { getNotesPluginConfig, parseNoteQueryFilters, NotesPluginConfig } from './notesQueryHelpers';
4
+ export { getNotesPluginConfig, parseNoteQueryFilters, type NotesPluginConfig };
5
+ export declare class NotesValidationError extends Error {
6
+ status: number;
7
+ details: string[];
8
+ constructor(errors: string[]);
9
+ }
10
+ declare const _default: ({ strapi }: {
11
+ strapi: Core.Strapi;
12
+ }) => {
13
+ findWithMeta(rawQuery?: Record<string, unknown>): Promise<{
14
+ data: NoteRecord[];
15
+ total: number;
16
+ summary: NotesSummaryStats;
17
+ }>;
18
+ find(rawQuery?: Record<string, unknown>): Promise<NoteRecord[]>;
19
+ findOne(identifier: string | number): Promise<NoteRecord | null>;
20
+ getSummaryStats(rawQuery?: Record<string, unknown>): Promise<NotesSummaryStats>;
21
+ create(input: unknown, actorUser?: unknown): Promise<NoteRecord>;
22
+ update(identifier: string | number, input: unknown, actorUser?: unknown): Promise<NoteRecord | null>;
23
+ delete(identifier: string | number): Promise<NoteRecord | null>;
24
+ };
25
+ export default _default;