@markee_team/sdk 0.1.0-beta.2 → 0.1.0-beta.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.
- package/README.md +6 -5
- package/dist/errors.d.ts +2 -0
- package/dist/index.js +3 -3
- package/dist/react.js +3 -3
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -330,17 +330,18 @@ wallet payments remain available independently.
|
|
|
330
330
|
|
|
331
331
|
### Automatic message moderation
|
|
332
332
|
|
|
333
|
-
When enabled by Markee, create/edit forms warn if a message matches
|
|
334
|
-
|
|
333
|
+
When enabled by Markee, create/edit forms warn if a message matches an automatic moderation
|
|
334
|
+
rule. Authors can edit or explicitly continue; publication may still be hidden. A passing
|
|
335
335
|
message edit clears an automatic flag, while manual flags require moderator action.
|
|
336
336
|
|
|
337
337
|
`await client.checkMessage(message)` exposes the same draft check for custom interfaces. It
|
|
338
|
-
returns `enabled`, `state`, `contentHash`, `engine`, `policyVersion`, and optional `reason`.
|
|
338
|
+
returns `enabled`, `state`, `contentHash`, `engine`, `policyVersion`, and optional `reason` and `reasonCodes`.
|
|
339
339
|
Treat `unavailable` as unknown, never as a pass. Names are not automatically checked.
|
|
340
340
|
The standard modal handles these warnings for React and vanilla JavaScript integrations.
|
|
341
341
|
No API key or moderation configuration is required in the host app.
|
|
342
342
|
|
|
343
343
|
Snapshots retain `entry.moderated` (`false`, `true`, or `null`) and can additionally include
|
|
344
|
-
`entry.moderation` with the state and
|
|
344
|
+
`entry.moderation` with the state, reason, and optional `reasonCodes`. Hide unavailable and flagged content and do not
|
|
345
345
|
record views for it. A moderator's false-positive exception on Markee applies only on Markee;
|
|
346
|
-
it does not change SDK visibility.
|
|
346
|
+
it does not change SDK visibility. Automatic moderation is enabled by default on Markee.
|
|
347
|
+
Markee operators can explicitly disable it with `FLAG_AUTO_MODERATION=false`; host apps need no configuration.
|
package/dist/errors.d.ts
ADDED