orgnote-api 0.17.2 → 0.17.4

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 (96) hide show
  1. package/README.md +158 -0
  2. package/package.json +8 -9
  3. package/{dist/tools → tools}/index.d.ts +1 -0
  4. package/{dist/tools → tools}/index.js +1 -0
  5. package/LICENSE +0 -674
  6. package/README.org +0 -97
  7. /package/{dist/api.d.ts → api.d.ts} +0 -0
  8. /package/{dist/api.js → api.js} +0 -0
  9. /package/{dist/encryption → encryption}/__tests__/encryption-keys.d.ts +0 -0
  10. /package/{dist/encryption → encryption}/__tests__/encryption-keys.js +0 -0
  11. /package/{dist/encryption → encryption}/__tests__/encryption.spec.d.ts +0 -0
  12. /package/{dist/encryption → encryption}/__tests__/encryption.spec.js +0 -0
  13. /package/{dist/encryption → encryption}/__tests__/note-encryption.spec.d.ts +0 -0
  14. /package/{dist/encryption → encryption}/__tests__/note-encryption.spec.js +0 -0
  15. /package/{dist/encryption → encryption}/encryption.d.ts +0 -0
  16. /package/{dist/encryption → encryption}/encryption.js +0 -0
  17. /package/{dist/encryption → encryption}/index.d.ts +0 -0
  18. /package/{dist/encryption → encryption}/index.js +0 -0
  19. /package/{dist/encryption → encryption}/note-encryption.d.ts +0 -0
  20. /package/{dist/encryption → encryption}/note-encryption.js +0 -0
  21. /package/{dist/files-api.d.ts → files-api.d.ts} +0 -0
  22. /package/{dist/files-api.js → files-api.js} +0 -0
  23. /package/{dist/index.d.ts → index.d.ts} +0 -0
  24. /package/{dist/index.js → index.js} +0 -0
  25. /package/{dist/models → models}/command.d.ts +0 -0
  26. /package/{dist/models → models}/command.js +0 -0
  27. /package/{dist/models → models}/completion.d.ts +0 -0
  28. /package/{dist/models → models}/completion.js +0 -0
  29. /package/{dist/models → models}/default-commands.d.ts +0 -0
  30. /package/{dist/models → models}/default-commands.js +0 -0
  31. /package/{dist/models → models}/editor.d.ts +0 -0
  32. /package/{dist/models → models}/editor.js +0 -0
  33. /package/{dist/models → models}/encryption.d.ts +0 -0
  34. /package/{dist/models → models}/encryption.js +0 -0
  35. /package/{dist/models → models}/extension.d.ts +0 -0
  36. /package/{dist/models → models}/extension.js +0 -0
  37. /package/{dist/models → models}/file-system.d.ts +0 -0
  38. /package/{dist/models → models}/file-system.js +0 -0
  39. /package/{dist/models → models}/index.d.ts +0 -0
  40. /package/{dist/models → models}/index.js +0 -0
  41. /package/{dist/models → models}/modal.d.ts +0 -0
  42. /package/{dist/models → models}/modal.js +0 -0
  43. /package/{dist/models → models}/note.d.ts +0 -0
  44. /package/{dist/models → models}/note.js +0 -0
  45. /package/{dist/models → models}/sync.d.ts +0 -0
  46. /package/{dist/models → models}/sync.js +0 -0
  47. /package/{dist/models → models}/theme-variables.d.ts +0 -0
  48. /package/{dist/models → models}/theme-variables.js +0 -0
  49. /package/{dist/models → models}/vue-component.d.ts +0 -0
  50. /package/{dist/models → models}/vue-component.js +0 -0
  51. /package/{dist/models → models}/widget-type.d.ts +0 -0
  52. /package/{dist/models → models}/widget-type.js +0 -0
  53. /package/{dist/models → models}/widget.d.ts +0 -0
  54. /package/{dist/models → models}/widget.js +0 -0
  55. /package/{dist/remote-api → remote-api}/api.d.ts +0 -0
  56. /package/{dist/remote-api → remote-api}/api.js +0 -0
  57. /package/{dist/remote-api → remote-api}/base.d.ts +0 -0
  58. /package/{dist/remote-api → remote-api}/base.js +0 -0
  59. /package/{dist/remote-api → remote-api}/common.d.ts +0 -0
  60. /package/{dist/remote-api → remote-api}/common.js +0 -0
  61. /package/{dist/remote-api → remote-api}/configuration.d.ts +0 -0
  62. /package/{dist/remote-api → remote-api}/configuration.js +0 -0
  63. /package/{dist/remote-api → remote-api}/index.d.ts +0 -0
  64. /package/{dist/remote-api → remote-api}/index.js +0 -0
  65. /package/{dist/tools → tools}/__tests__/find-files-diff.spec.d.ts +0 -0
  66. /package/{dist/tools → tools}/__tests__/find-files-diff.spec.js +0 -0
  67. /package/{dist/tools → tools}/__tests__/find-note-files-diff.spec.d.ts +0 -0
  68. /package/{dist/tools → tools}/__tests__/find-note-files-diff.spec.js +0 -0
  69. /package/{dist/tools → tools}/__tests__/get-file-name.spec.d.ts +0 -0
  70. /package/{dist/tools → tools}/__tests__/get-file-name.spec.js +0 -0
  71. /package/{dist/tools → tools}/__tests__/get-string-path.spec.d.ts +0 -0
  72. /package/{dist/tools → tools}/__tests__/get-string-path.spec.js +0 -0
  73. /package/{dist/tools → tools}/__tests__/is-gpg-encrypted.spec.d.ts +0 -0
  74. /package/{dist/tools → tools}/__tests__/is-gpg-encrypted.spec.js +0 -0
  75. /package/{dist/tools → tools}/__tests__/is-org-file.spec.d.ts +0 -0
  76. /package/{dist/tools → tools}/__tests__/is-org-file.spec.js +0 -0
  77. /package/{dist/tools → tools}/__tests__/join.spec.d.ts +0 -0
  78. /package/{dist/tools → tools}/__tests__/join.spec.js +0 -0
  79. /package/{dist/tools → tools}/__tests__/read-org-files-recursively.spec.d.ts +0 -0
  80. /package/{dist/tools → tools}/__tests__/read-org-files-recursively.spec.js +0 -0
  81. /package/{dist/tools → tools}/extend-notes-files-diff.d.ts +0 -0
  82. /package/{dist/tools → tools}/extend-notes-files-diff.js +0 -0
  83. /package/{dist/tools → tools}/find-notes-files-diff.d.ts +0 -0
  84. /package/{dist/tools → tools}/find-notes-files-diff.js +0 -0
  85. /package/{dist/tools → tools}/get-file-name.d.ts +0 -0
  86. /package/{dist/tools → tools}/get-file-name.js +0 -0
  87. /package/{dist/tools → tools}/get-string-path.d.ts +0 -0
  88. /package/{dist/tools → tools}/get-string-path.js +0 -0
  89. /package/{dist/tools → tools}/is-gpg-encrypted.d.ts +0 -0
  90. /package/{dist/tools → tools}/is-gpg-encrypted.js +0 -0
  91. /package/{dist/tools → tools}/is-org-file.d.ts +0 -0
  92. /package/{dist/tools → tools}/is-org-file.js +0 -0
  93. /package/{dist/tools → tools}/join.d.ts +0 -0
  94. /package/{dist/tools → tools}/join.js +0 -0
  95. /package/{dist/tools → tools}/mock-server.d.ts +0 -0
  96. /package/{dist/tools → tools}/mock-server.js +0 -0
package/README.org DELETED
@@ -1,97 +0,0 @@
1
- :PROPERTIES:
2
- :ID: orgnote-api
3
- :END:
4
-
5
- #+html: <div align='center'>
6
- #+html: <img src='./images/image.png' width='256px' height='256px'>
7
- #+html: </div>
8
- #+html: &nbsp;
9
-
10
- #+TITLE: ✨ OrgNote API
11
-
12
- #+html: <div align='center'>
13
- #+html: <span class='badge-buymeacoffee'>
14
- #+html: <a href='https://www.paypal.me/darkawower' title='Paypal' target='_blank'><img src='https://img.shields.io/badge/paypal-donate-blue.svg' alt='Buy Me A Coffee donate button' /></a>
15
- #+html: </span>
16
- #+html: <span class='badge-patreon'>
17
- #+html: <a href='https://patreon.com/artawower' target='_blank' title='Donate to this project using Patreon'><img src='https://img.shields.io/badge/patreon-donate-orange.svg' alt='Patreon donate button' /></a>
18
- #+html: </span>
19
- #+html: <a href='https://wakatime.com/badge/github/Artawower/orgnote-api'><img src='https://wakatime.com/badge/github/Artawower/orgnote-api.svg' alt='wakatime'></a>
20
- #+html: <a href='https://github.com/artawower/orgnote-api/actions/workflows/melpazoid.yml/badge.svg'><img src='https://github.com/artawower/orgnote-api/actions/workflows/melpazoid.yml/badge.svg' alt='ci' /></a>
21
- #+html: </div>
22
-
23
-
24
- * Introduction
25
- This is API for [[https://github.com/artawower/orgnote][OrgNote]] extensions.
26
-
27
- *Warning* This API is not stable yet, so it can be changed in the future.
28
-
29
- You can find all available methods here. They are currently undocumented.
30
-
31
-
32
- * Connected links
33
- - [[https://github.com/Artawower/orgnote-client/tree/master/src/components/extensions][Built-in extensions]]
34
- - [[https://github.com/Artawower/orgnote-api/blob/master/src/api.ts#L24][Type definition for existing extension API]]
35
- - [[https://github.com/artawower/orgnote][OrgNote entrypoint]]
36
- - [[https://org-note.com/][Official website]]
37
- - [[https://github.com/Artawower/orgnote-client][Org Note client]]
38
- - [[https://github.com/Artawower/orgnote-extensions][Repository with collection of extensions]]
39
- - [[https://github.com/Artawower/org-mode-ast][Typescript abstract syntax tree for org mode.]]
40
-
41
- * Extension structure
42
- ** Folder structure
43
- *Compiled extension should be placed in the =index.js= file or =/dist/index.js= file in the public GIT repository*
44
- ** Extension entrypoint
45
-
46
- Each extension should *export an object by default* with the following structure:
47
- #+BEGIN_SRC typescript
48
- interface Extension {
49
- [key: string]: unknown;
50
-
51
- onMounted: (api: OrgNoteApi) => Promise<void>;
52
- onUnmounted?: (api: OrgNoteApi) => Promise<void>;
53
- }
54
- #+END_SRC
55
-
56
- You can find available methods of =OrgNoteApi= [[https://github.com/Artawower/orgnote-api/blob/master/src/api.ts#L24][here]]
57
-
58
- ** Extension manifest
59
- Also, each extension should export manifest const:
60
- #+BEGIN_SRC typescript
61
- interface ExtensionManifest {
62
- /* Should be unique in the extension repo */
63
- name: string;
64
- version: string;
65
- category: 'theme' | 'extension' | 'language pack' | 'other';
66
- /* OrgNote api semver, 0.13.4 for example */
67
- apiVersion?: string;
68
- author?: string;
69
- description?: string;
70
- keywords?: string[];
71
- // Repository url
72
- sourceType: 'git' | 'file' | 'builtin';
73
- /* Default value is README.org */
74
- readmeFilePath?: string;
75
- /* WIP */
76
- permissions?: Array<'files' | 'personal info' | '*' | 'third party'>;
77
- reloadRequired?: boolean;
78
- sourceUrl?: string;
79
- sponsor?: string[];
80
- development?: boolean;
81
- icon?: string;
82
- }
83
- #+END_SRC
84
- ** Extension API
85
- * Publish to official repository
86
- OrgNote has an official [[https://github.com/Artawower/orgnote-extensions][repository]] for user-based extensions. You can easily add new =recipes/<package>.json=
87
- with =ExtensionManifest=
88
-
89
- * Extensions example
90
- /Themes/
91
- - [[https://github.com/Artawower/orgnote-atom-one-dark][Atom One Dark theme (pure js)]]
92
- /UI/
93
- - [[https://github.com/Artawower/orgnote-colorful-headlines][Colorful Headlines (typescript + API package)]]
94
-
95
- * Contribute guide
96
- Any contribution is very much appreciated! Please read the [[./CONTRIBUTE.org][style guide]] before contributing to avoid misunderstandings!
97
- I would also appreciate it if you would consider becoming my [[https://www.patreon.com/artawower][patron]]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes