@rmdes/indiekit-endpoint-activitypub 3.11.0 → 3.11.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-activitypub",
3
- "version": "3.11.0",
3
+ "version": "3.11.1",
4
4
  "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
5
5
  "keywords": [
6
6
  "indiekit",
@@ -45,33 +45,45 @@
45
45
  {# Rich content editor (EasyMDE with media browser) #}
46
46
  <div class="ap-compose__editor">
47
47
  {{ textarea({
48
- id: "content",
49
48
  name: "content",
50
- label: { text: __("activitypub.compose.contentLabel") if __("activitypub.compose.contentLabel") else "Content" },
51
- attributes: {
52
- rows: "8",
53
- required: "true"
54
- },
55
- endpoint: mediaEndpoint
49
+ label: "Content",
50
+ rows: 8,
51
+ field: {
52
+ attributes: {
53
+ editor: true,
54
+ "editor-endpoint": mediaEndpoint,
55
+ "editor-id": "ap-compose-content",
56
+ "editor-locale": application.locale if application else "en",
57
+ "editor-image-upload": true
58
+ }
59
+ }
56
60
  }) }}
57
61
  </div>
58
62
 
59
63
  {# Featured image #}
60
64
  <div class="ap-compose__media">
61
65
  {{ fileInput({
62
- id: "photo",
63
66
  name: "photo",
64
- label: { text: __("activitypub.compose.photoLabel") if __("activitypub.compose.photoLabel") else "Photo" },
65
- endpoint: mediaEndpoint
67
+ label: "Photo",
68
+ field: {
69
+ attributes: {
70
+ endpoint: mediaEndpoint
71
+ }
72
+ },
73
+ accept: "image/*",
74
+ attributes: {
75
+ placeholder: "https://"
76
+ }
66
77
  }) }}
67
78
  </div>
68
79
 
69
80
  {# Tags / categories #}
70
81
  <div class="ap-compose__tags">
71
82
  {{ tagInput({
72
- id: "category",
73
83
  name: "category",
74
- label: { text: __("activitypub.compose.tagsLabel") if __("activitypub.compose.tagsLabel") else "Tags" }
84
+ label: "Tags",
85
+ optional: true,
86
+ hint: "Separate with commas"
75
87
  }) }}
76
88
  </div>
77
89