@pageproof/sdk-pr 754.0.1794947550042 → 755.0.1795136459206
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/lib/api/Comments.d.ts +5 -28
- package/lib/api/admin/TeamFeatures.d.ts +1 -0
- package/lib/api/admin/TeamFeatures.js +3 -0
- package/lib/enum/CommentState.d.ts +17 -5
- package/lib/models/TeamWorkflowFeatures.d.ts +6 -0
- package/lib/models/TeamWorkflowFeatures.js +1 -1
- package/lib/network/endpoints.json +1 -1
- package/lib/pageproof.js +1 -1
- package/lib/util/comments/getCommentState.d.ts +1 -1
- package/lib/util/comments/renderHTML.js +10 -6
- package/lib/util/comments/skipEntities.d.ts +2 -0
- package/lib/util/comments/skipEntities.js +51 -0
- package/package.json +1 -1
package/lib/api/Comments.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export default Comments;
|
|
2
|
+
export type CommentState = "done" | "todo" | "unmarked";
|
|
2
3
|
declare class Comments extends API {
|
|
3
4
|
/** @private */
|
|
4
5
|
private constructor();
|
|
@@ -21,15 +22,7 @@ declare class Comments extends API {
|
|
|
21
22
|
* @param {CommentState} state The comment mark type (otherwise known as the "state")
|
|
22
23
|
* @returns {Promise<CommentState>}
|
|
23
24
|
*/
|
|
24
|
-
mark(commentId: string, state:
|
|
25
|
-
TODO: string;
|
|
26
|
-
DONE: string;
|
|
27
|
-
UNMARKED: string;
|
|
28
|
-
}): Promise<{
|
|
29
|
-
TODO: string;
|
|
30
|
-
DONE: string;
|
|
31
|
-
UNMARKED: string;
|
|
32
|
-
}>;
|
|
25
|
+
mark(commentId: string, state: CommentState): Promise<CommentState>;
|
|
33
26
|
/**
|
|
34
27
|
* Unmarks a comment as to-do or done.
|
|
35
28
|
*
|
|
@@ -39,15 +32,7 @@ declare class Comments extends API {
|
|
|
39
32
|
* @param {CommentState} state The comment mark type (otherwise known as the "state")
|
|
40
33
|
* @returns {Promise<CommentState>}
|
|
41
34
|
*/
|
|
42
|
-
unmark(commentId: string, state:
|
|
43
|
-
TODO: string;
|
|
44
|
-
DONE: string;
|
|
45
|
-
UNMARKED: string;
|
|
46
|
-
}): Promise<{
|
|
47
|
-
TODO: string;
|
|
48
|
-
DONE: string;
|
|
49
|
-
UNMARKED: string;
|
|
50
|
-
}>;
|
|
35
|
+
unmark(commentId: string, state: CommentState): Promise<CommentState>;
|
|
51
36
|
/**
|
|
52
37
|
* Mark comments as to-do or done.
|
|
53
38
|
*
|
|
@@ -58,11 +43,7 @@ declare class Comments extends API {
|
|
|
58
43
|
* @param {CommentState} state The comment mark type (otherwise known as the "state")
|
|
59
44
|
* @returns {Promise<Array<{CommentId, CommentState}>>}
|
|
60
45
|
*/
|
|
61
|
-
markAll(proofId: string, commentIds: Array<string>, state: {
|
|
62
|
-
TODO: string;
|
|
63
|
-
DONE: string;
|
|
64
|
-
UNMARKED: string;
|
|
65
|
-
}): Promise<Array<{
|
|
46
|
+
markAll(proofId: string, commentIds: Array<string>, state: CommentState): Promise<Array<{
|
|
66
47
|
CommentId;
|
|
67
48
|
CommentState;
|
|
68
49
|
}>>;
|
|
@@ -76,11 +57,7 @@ declare class Comments extends API {
|
|
|
76
57
|
* @param {CommentState} state The comment mark type (otherwise known as the "state")
|
|
77
58
|
* @returns {Promise<Array<{CommentId, CommentState}>>}
|
|
78
59
|
*/
|
|
79
|
-
unmarkAll(proofId: string, commentIds: Array<string>, state: {
|
|
80
|
-
TODO: string;
|
|
81
|
-
DONE: string;
|
|
82
|
-
UNMARKED: string;
|
|
83
|
-
}): Promise<Array<{
|
|
60
|
+
unmarkAll(proofId: string, commentIds: Array<string>, state: CommentState): Promise<Array<{
|
|
84
61
|
CommentId;
|
|
85
62
|
CommentState;
|
|
86
63
|
}>>;
|
|
@@ -56,6 +56,7 @@ declare class TeamFeatures extends API {
|
|
|
56
56
|
* @param {boolean} options.userGroups.enableUserGroups Whether the user groups feature is enabled for the team.
|
|
57
57
|
* @param {boolean} options.webhooks.enabled Whether the webhooks feature is enabled for the team, and the team's active will trigger.
|
|
58
58
|
* @param {boolean} options.workflows.enableViewOnlyReviewers Whether users in a workflow can be given the view only role.
|
|
59
|
+
* @param {boolean} options.workflows.restrictTemplateCreation Whether only team admins with the templates permission can create new workflow templates (enterprise only).
|
|
59
60
|
* @param {boolean} options.intelligence.enableIntelligence Whether PageProof intelligence is enabled for the team.
|
|
60
61
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsInProofing Whether PI Insights in Proofing is licensed for the team.
|
|
61
62
|
* @param {boolean} options.intelligence.enableIntelligenceInsightsInProofing Whether PI Insights in Proofing is enabled for the team.
|
|
@@ -94,6 +94,7 @@ var TeamFeatures = function (_API) {
|
|
|
94
94
|
* @param {boolean} options.userGroups.enableUserGroups Whether the user groups feature is enabled for the team.
|
|
95
95
|
* @param {boolean} options.webhooks.enabled Whether the webhooks feature is enabled for the team, and the team's active will trigger.
|
|
96
96
|
* @param {boolean} options.workflows.enableViewOnlyReviewers Whether users in a workflow can be given the view only role.
|
|
97
|
+
* @param {boolean} options.workflows.restrictTemplateCreation Whether only team admins with the templates permission can create new workflow templates (enterprise only).
|
|
97
98
|
* @param {boolean} options.intelligence.enableIntelligence Whether PageProof intelligence is enabled for the team.
|
|
98
99
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsInProofing Whether PI Insights in Proofing is licensed for the team.
|
|
99
100
|
* @param {boolean} options.intelligence.enableIntelligenceInsightsInProofing Whether PI Insights in Proofing is enabled for the team.
|
|
@@ -133,6 +134,7 @@ var TeamFeatures = function (_API) {
|
|
|
133
134
|
var enableCommentVisibility = comments && comments.enableCommentVisibility;
|
|
134
135
|
var defaultCommentVisibility = comments && comments.defaultCommentVisibility;
|
|
135
136
|
var enableViewOnlyReviewers = workflows && workflows.enableViewOnlyReviewers;
|
|
137
|
+
var restrictWorkflowTemplateCreation = workflows && workflows.restrictTemplateCreation;
|
|
136
138
|
var emailTitleTextColor = emails && emails.titleTextColor;
|
|
137
139
|
var emailLinkTextColor = emails && emails.linkTextColor;
|
|
138
140
|
var emailButtonBackgroundColor = emails && emails.buttonBackgroundColor;
|
|
@@ -184,6 +186,7 @@ var TeamFeatures = function (_API) {
|
|
|
184
186
|
enableCommentVisibility: enableCommentVisibility,
|
|
185
187
|
defaultCommentVisibility: defaultCommentVisibility,
|
|
186
188
|
enableViewOnlyReviewers: enableViewOnlyReviewers,
|
|
189
|
+
restrictWorkflowTemplateCreation: restrictWorkflowTemplateCreation,
|
|
187
190
|
emailTitleTextColor: emailTitleTextColor,
|
|
188
191
|
emailLinkTextColor: emailLinkTextColor,
|
|
189
192
|
emailButtonBackgroundColor: emailButtonBackgroundColor,
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
export default CommentState;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
/**
|
|
3
|
+
* A comment's state value. Used wherever the SDK accepts or returns a comment
|
|
4
|
+
* state (eg. `client.comments.mark`, `client.comments.unmark`).
|
|
5
|
+
*/
|
|
6
|
+
export type CommentState = "done" | "todo" | "unmarked";
|
|
7
|
+
/**
|
|
8
|
+
* A comment's state value. Used wherever the SDK accepts or returns a comment
|
|
9
|
+
* state (eg. `client.comments.mark`, `client.comments.unmark`).
|
|
10
|
+
*
|
|
11
|
+
* @typedef {('todo' | 'done' | 'unmarked')} CommentState
|
|
12
|
+
*/
|
|
13
|
+
/** @type {{TODO: CommentState, DONE: CommentState, UNMARKED: CommentState}} */
|
|
14
|
+
declare const CommentState: {
|
|
15
|
+
TODO: CommentState;
|
|
16
|
+
DONE: CommentState;
|
|
17
|
+
UNMARKED: CommentState;
|
|
18
|
+
};
|
|
@@ -12,6 +12,12 @@ declare class TeamWorkflowFeatures {
|
|
|
12
12
|
* @type {boolean}
|
|
13
13
|
*/
|
|
14
14
|
enableViewOnlyReviewers: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether only team admins with the templates permission can create new workflow templates (enterprise only).
|
|
17
|
+
*
|
|
18
|
+
* @type {boolean}
|
|
19
|
+
*/
|
|
20
|
+
restrictTemplateCreation: boolean;
|
|
15
21
|
/** @private */
|
|
16
22
|
private fromTeamWorkflowFeatures;
|
|
17
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var TeamWorkflowFeatureSchema={configureViewOnlyReviewers:"LicenseViewOnlyReviewers",enableViewOnlyReviewers:"EnableViewOnlyReviewers"};var TeamWorkflowFeatures=function(){function TeamWorkflowFeatures(){_classCallCheck(this,TeamWorkflowFeatures)}TeamWorkflowFeatures.prototype.fromTeamWorkflowFeatures=function fromTeamWorkflowFeatures(teamWorkflowFeaturesData){(0,_transform2.default)(this,TeamWorkflowFeatureSchema,teamWorkflowFeaturesData);return this};return TeamWorkflowFeatures}();exports.default=TeamWorkflowFeatures;
|
|
1
|
+
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var TeamWorkflowFeatureSchema={configureViewOnlyReviewers:"LicenseViewOnlyReviewers",enableViewOnlyReviewers:"EnableViewOnlyReviewers",restrictTemplateCreation:"RestrictWorkflowTemplateCreation"};var TeamWorkflowFeatures=function(){function TeamWorkflowFeatures(){_classCallCheck(this,TeamWorkflowFeatures)}TeamWorkflowFeatures.prototype.fromTeamWorkflowFeatures=function fromTeamWorkflowFeatures(teamWorkflowFeaturesData){(0,_transform2.default)(this,TeamWorkflowFeatureSchema,teamWorkflowFeaturesData);return this};return TeamWorkflowFeatures}();exports.default=TeamWorkflowFeatures;
|
|
@@ -921,7 +921,7 @@
|
|
|
921
921
|
"version": 2,
|
|
922
922
|
"method": "POST",
|
|
923
923
|
"path": "/api/admin/settings",
|
|
924
|
-
"body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "enableBulkNewVersions", "suggestionsIncludeTeamMembers", "enableUserGroups", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "addReviewersViaMention", "enableViewOnlyReviewers", "enableIntelligence", "licenseIntelligenceInsightsInProofing", "enableIntelligenceInsightsInProofing", "defaultIntelligenceInsightsInProofing", "enableIntelligenceInsightsTeamOnlyVisibility", "enableIntelligenceInsightsCommentsInProofing", "defaultIntelligenceInsightsCommentsInProofing", "licenseIntelligenceInsightsOnDashboard", "defaultIntelligenceInsightsCommentsOnDashboard", "enableIntelligenceInsightsOnDashboard", "licenseIntelligenceInsightsInReports", "enableIntelligenceInsightsInReports", "enableIntelligenceSmartTags", "enableProofMagicAccess", "enableIntelligenceSmartCheckCr", "defaultGifOutput", "enableCelebrations", "licenseDigitalVerification", "enableDigitalVerification", "defaultDigitalVerification", "reauthentication", "enableProofSoftDeletion", "enableLabels"]
|
|
924
|
+
"body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "enableBulkNewVersions", "suggestionsIncludeTeamMembers", "enableUserGroups", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "addReviewersViaMention", "enableViewOnlyReviewers", "restrictWorkflowTemplateCreation", "enableIntelligence", "licenseIntelligenceInsightsInProofing", "enableIntelligenceInsightsInProofing", "defaultIntelligenceInsightsInProofing", "enableIntelligenceInsightsTeamOnlyVisibility", "enableIntelligenceInsightsCommentsInProofing", "defaultIntelligenceInsightsCommentsInProofing", "licenseIntelligenceInsightsOnDashboard", "defaultIntelligenceInsightsCommentsOnDashboard", "enableIntelligenceInsightsOnDashboard", "licenseIntelligenceInsightsInReports", "enableIntelligenceInsightsInReports", "enableIntelligenceSmartTags", "enableProofMagicAccess", "enableIntelligenceSmartCheckCr", "defaultGifOutput", "enableCelebrations", "licenseDigitalVerification", "enableDigitalVerification", "defaultDigitalVerification", "reauthentication", "enableProofSoftDeletion", "enableLabels"]
|
|
925
925
|
},
|
|
926
926
|
"admin.team.features.sender-email.set": {
|
|
927
927
|
"version": 2,
|