@rmdes/indiekit-endpoint-posts 1.0.0-beta.41 → 1.0.0-beta.42

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/locales/en.json CHANGED
@@ -121,6 +121,10 @@
121
121
  "visibility": {
122
122
  "label": "Visibility"
123
123
  },
124
+ "sensitive": {
125
+ "label": "Content warning",
126
+ "hint": "Mark this post as sensitive and add an optional warning text"
127
+ },
124
128
  "pinned": {
125
129
  "label": "Featured post",
126
130
  "no": "No",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-posts",
3
- "version": "1.0.0-beta.41",
3
+ "version": "1.0.0-beta.42",
4
4
  "description": "Post management endpoint for Indiekit with syndicate form fix. View posts published by your Micropub endpoint and publish new posts to it.",
5
5
  "keywords": [
6
6
  "indiekit",
@@ -40,9 +40,9 @@
40
40
  "url": "https://github.com/rmdes/indiekit-endpoint-posts.git"
41
41
  },
42
42
  "dependencies": {
43
- "@indiekit/endpoint-micropub": "^1.0.0-beta.25",
44
- "@indiekit/error": "^1.0.0-beta.25",
45
- "@indiekit/frontend": "^1.0.0-beta.25",
43
+ "@indiekit/endpoint-micropub": "^1.0.0-beta.27",
44
+ "@indiekit/error": "^1.0.0-beta.27",
45
+ "@indiekit/frontend": "^1.0.0-beta.27",
46
46
  "@indiekit/util": "^1.0.0-beta.25",
47
47
  "@paulrobertlloyd/mf2tojf2": "^3.0.0",
48
48
  "express": "^5.0.0",
@@ -72,6 +72,24 @@
72
72
  }]
73
73
  }) | indent(4) if fields.visibility }}
74
74
 
75
+ {{ checkboxes({
76
+ name: "sensitive",
77
+ values: properties.sensitive,
78
+ fieldset: {
79
+ legend: __("posts.form.sensitive.label")
80
+ },
81
+ items: [{
82
+ label: __("posts.form.sensitive.hint"),
83
+ value: "true",
84
+ conditional: input({
85
+ name: "summary",
86
+ value: properties.summary,
87
+ label: __("posts.form.summary.label"),
88
+ optional: true
89
+ })
90
+ }]
91
+ }) | indent(4) }}
92
+
75
93
  {{ input({
76
94
  classes: "input--width-25",
77
95
  name: "mp-slug",