freemium-survey-components 2.0.486 → 2.0.487
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/.nvmrc +1 -0
- package/README.md +9 -0
- package/lib/types/types.d.ts +11 -0
- package/package.json +1 -1
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18
|
package/README.md
CHANGED
|
@@ -219,3 +219,12 @@ import { Range } from 'freemium-survey-components';
|
|
|
219
219
|
### Rules
|
|
220
220
|
|
|
221
221
|
- Props (survey,answers) passed to Survey component and WebInAppSurvey component are cached on mount. In order to pass new value, component needs to be remounted.
|
|
222
|
+
|
|
223
|
+
## AIPDLC (SurveyServ)
|
|
224
|
+
|
|
225
|
+
This repo is onboarded to AIPDLC (Freshworks AI Product Development Lifecycle) for the SurveyServ team.
|
|
226
|
+
|
|
227
|
+
- Run AIPDLC phases with the SurveyServ scope, e.g. `/fw-system-design --scope=bu/surveyserv`.
|
|
228
|
+
- `/fw-init` generates a local `.aipdlc/workspace.json` pointer; it is **gitignored** (per-developer, per-epic state) — run `/fw-init` locally to (re)create it.
|
|
229
|
+
- Team-wide AIPDLC customization (dev/deploy overlays, rules) lives in `freshworks/ai-builder-artifacts` under `bu/platform/modules/surveyserv/`.
|
|
230
|
+
- This package pins **Node 18** (see `.nvmrc`; Storybook 8 requires Node ≥18) — run `nvm use` before installing.
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1182,6 +1182,8 @@ export type HostConfigType = {
|
|
|
1182
1182
|
dateFormat?: string;
|
|
1183
1183
|
dateTimeFormat?: string;
|
|
1184
1184
|
supportedChannels?: string[];
|
|
1185
|
+
/** Host-supplied Allowed Links policy; omit entirely when hyperlink domains are unrestricted. See {@link AllowedLinksPolicy}. */
|
|
1186
|
+
allowedLinksPolicy?: AllowedLinksPolicy;
|
|
1185
1187
|
};
|
|
1186
1188
|
export type WcTypes = 'collector-list' | 'list' | 'builder' | 'email' | 'preview' | 'response' | 'template' | 'theme' | 'slack' | 'teams' | 'schedule' | 'customize-link' | 'survey-serv-configs';
|
|
1187
1189
|
export type ProductType = 'freshsurvey' | 'freshsuccess' | 'freshdesk' | 'freshchat' | 'freshservice' | 'default';
|
|
@@ -1283,6 +1285,13 @@ export type EmailEmbedChannelHiddenFieldsType = {
|
|
|
1283
1285
|
partial_complete_response?: boolean;
|
|
1284
1286
|
response_window?: boolean;
|
|
1285
1287
|
};
|
|
1288
|
+
/** Warn (confirm before applying) or block (never apply as a clickable anchor) a disallowed link. */
|
|
1289
|
+
export type AllowedLinksMode = 'warn' | 'block';
|
|
1290
|
+
/** Host-supplied policy restricting linkable domains, supplied on {@link HostConfigType.allowedLinksPolicy} and enforced in survey-admin-microfrontend (not here) only when {@link ProductConfigType.enableAllowedLinks} is true and `allowedDomains` holds at least one entry; supply the policy only when restricting links and omit it entirely otherwise, `allowedDomains` takes bare hostnames (a root domain also permits its subdomains, a subdomain entry only itself) and `mode` defaults to `warn`. */
|
|
1291
|
+
export type AllowedLinksPolicy = {
|
|
1292
|
+
mode?: AllowedLinksMode;
|
|
1293
|
+
allowedDomains?: string[];
|
|
1294
|
+
};
|
|
1286
1295
|
export type ExportedComponentType = {
|
|
1287
1296
|
goToRoute: GoToRouteType;
|
|
1288
1297
|
hostParams: HostParamsType & {
|
|
@@ -1394,6 +1403,8 @@ export type ProductConfigType = {
|
|
|
1394
1403
|
enableSurveyLimits?: boolean;
|
|
1395
1404
|
enableSurveyBlockLimits?: boolean;
|
|
1396
1405
|
enableRTE?: boolean;
|
|
1406
|
+
/** Product switch for Allowed Links; the host policy on {@link HostConfigType.allowedLinksPolicy} is honoured only when this is true and that policy supplies at least one `allowedDomains` entry. */
|
|
1407
|
+
enableAllowedLinks?: boolean;
|
|
1397
1408
|
surveyBlockLimit?: number;
|
|
1398
1409
|
enableAnalyticsPivot?: boolean;
|
|
1399
1410
|
noOfFileQns?: number;
|