@@ -7,6 +7,33 @@ const { apiFetch } = window.wp;
77
88createModalStore ( 'activitypub/follow-me' ) ;
99
10+ /**
11+ * @typedef {Object } state
12+ * @property {String } namespace ActivityPub REST Namespace.
13+ * @property {Object } i18n Internationalization strings.
14+ * @property {String } i18n.copy "Copy" button text.
15+ * @property {String } i18n.copied "Copied" button text.
16+ * @property {String } i18n.emptyProfileError Error message for empty remote profile.
17+ * @property {String } i18n.genericError Generic error message.
18+ * @property {String } i18n.invalidProfileError Error message for invalid remote profile.
19+ */
20+
21+ /**
22+ * @typedef {Object } context
23+ * @property {String } backgroundColor The background color for the button.
24+ * @property {String } blockId The block ID.
25+ * @property {String } buttonStyle The button style.
26+ * @property {String } copyButtonText The copy button text.
27+ * @property {String } errorMessage The error message.
28+ * @property {boolean } isError Whether the remote profile input has an error.
29+ * @property {boolean } isLoading Whether the remote profile is being submitted.
30+ * @property {Object } modal The modal state.
31+ * @property {boolean } modal.isOpen Whether the modal is open.
32+ * @property {String } template The template for the remote reply URL.
33+ * @property {String } userId The user ID.
34+ * @property {String } webfinger The webfinger of the user.
35+ */
36+
1037const { actions, callbacks, state } = store ( 'activitypub/follow-me' , {
1138 actions : {
1239 /**
0 commit comments