@sprig-technologies/sprig-bundled 2.37.0 → 2.38.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/dist/{index-M_lw8BlN.cjs → index-BvoTbkev.cjs} +23 -29
- package/dist/{index-BO6_4fuH.js → index-CPT0Y_x9.js} +1494 -1520
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +41 -3
- package/dist/index.js +1 -1
- package/dist/view-CX9hYdLA.js +2224 -0
- package/dist/view-qbFF2KYJ.cjs +12 -0
- package/package.json +1 -1
- package/dist/view-BLTLs8qM.js +0 -2260
- package/dist/view-CiIcnVI2.cjs +0 -12
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BvoTbkev.cjs");exports.DismissReason=e.DismissReason,exports.SprigAPI=e.SprigAPI,exports.SprigEvent=e.SprigEvent,exports.sprig=e.sprig;
|
package/dist/index.d.ts
CHANGED
|
@@ -1023,8 +1023,9 @@ declare const BOOLEAN_OPERATOR: {
|
|
|
1023
1023
|
};
|
|
1024
1024
|
type BooleanOperator = (typeof BOOLEAN_OPERATOR)[keyof typeof BOOLEAN_OPERATOR];
|
|
1025
1025
|
|
|
1026
|
-
type CardType = "consentlegal" | "likert" | "matrix" | "multiplechoice" | "multipleselect" | "nps" | "open" | "rankorder" | "recordedtask" | "texturlprompt" | "thanks" | "uploading" | "videovoice";
|
|
1026
|
+
type CardType = "consentlegal" | "likert" | "matrix" | "maxdiff" | "multiplechoice" | "multipleselect" | "nps" | "open" | "rankorder" | "recordedtask" | "texturlprompt" | "thanks" | "uploading" | "videovoice";
|
|
1027
1027
|
type ConceptUrl = string | null;
|
|
1028
|
+
type GroupType = "page";
|
|
1028
1029
|
interface BaseCard {
|
|
1029
1030
|
name: number;
|
|
1030
1031
|
surveyId: number;
|
|
@@ -1033,6 +1034,7 @@ interface BaseCard {
|
|
|
1033
1034
|
type: CardType;
|
|
1034
1035
|
groupId?: number;
|
|
1035
1036
|
secondaryValue?: MultiChoiceSecondaryValueType | null;
|
|
1037
|
+
groupType?: GroupType;
|
|
1036
1038
|
}
|
|
1037
1039
|
type Comparator = "answered" | "contains" | "notcontains" | "list_dni" | "eq" | "given_up" | "gt" | "gte" | "lt" | "lte" | "list_all" | "list_alo" | "list_exact" | "neq" | "partial" | "skipped";
|
|
1038
1040
|
type Randomize = "none" | "all";
|
|
@@ -1317,7 +1319,7 @@ interface RankOrderOption {
|
|
|
1317
1319
|
updatedAt: string;
|
|
1318
1320
|
value: string;
|
|
1319
1321
|
}
|
|
1320
|
-
interface
|
|
1322
|
+
interface RankOrderType extends BaseCard {
|
|
1321
1323
|
props: {
|
|
1322
1324
|
labels: Labels;
|
|
1323
1325
|
message: string;
|
|
@@ -1334,6 +1336,42 @@ interface RankOderType extends BaseCard {
|
|
|
1334
1336
|
};
|
|
1335
1337
|
type: "rankorder";
|
|
1336
1338
|
}
|
|
1339
|
+
type MaxDiffOption = {
|
|
1340
|
+
id: number;
|
|
1341
|
+
label: string;
|
|
1342
|
+
};
|
|
1343
|
+
interface MaxDiffType extends BaseCard {
|
|
1344
|
+
props: {
|
|
1345
|
+
labels: {
|
|
1346
|
+
left: string | null;
|
|
1347
|
+
right: string | null;
|
|
1348
|
+
};
|
|
1349
|
+
message: string;
|
|
1350
|
+
options: MaxDiffOption[];
|
|
1351
|
+
routingOptions: RoutingOptions<"skipped" | "answered">;
|
|
1352
|
+
properties: {
|
|
1353
|
+
ratingIcons?: {
|
|
1354
|
+
idx?: number;
|
|
1355
|
+
svg: string;
|
|
1356
|
+
}[];
|
|
1357
|
+
mode: "recommended" | "custom";
|
|
1358
|
+
labels: {
|
|
1359
|
+
left: string | null;
|
|
1360
|
+
right: string | null;
|
|
1361
|
+
};
|
|
1362
|
+
options: string[];
|
|
1363
|
+
required: boolean;
|
|
1364
|
+
answerStyle: "radio" | "smiley";
|
|
1365
|
+
captionText: string;
|
|
1366
|
+
itemsPerSet: number;
|
|
1367
|
+
setsPerUser: number;
|
|
1368
|
+
numberOfItems: number;
|
|
1369
|
+
numberOfTimesToShowItem: number;
|
|
1370
|
+
buttonText?: string;
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
type: "maxdiff";
|
|
1374
|
+
}
|
|
1337
1375
|
interface VideoVoiceCard extends BaseCard {
|
|
1338
1376
|
props: {
|
|
1339
1377
|
message: string;
|
|
@@ -1353,7 +1391,7 @@ interface VideoVoiceCard extends BaseCard {
|
|
|
1353
1391
|
};
|
|
1354
1392
|
type: "videovoice";
|
|
1355
1393
|
}
|
|
1356
|
-
type Card = TextUrlPromptCard | ConsentLegalCard | RecordedTaskCard | LikertCard | OpenTextCard | MatrixCard | MultipleChoiceSingleSelectCard | MultipleChoiceMultiSelectCard | NPSCard |
|
|
1394
|
+
type Card = TextUrlPromptCard | ConsentLegalCard | RecordedTaskCard | LikertCard | OpenTextCard | MatrixCard | MaxDiffType | MultipleChoiceSingleSelectCard | MultipleChoiceMultiSelectCard | NPSCard | RankOrderType | VideoVoiceCard;
|
|
1357
1395
|
|
|
1358
1396
|
type InteractiveMatchType = "exactly" | "legacy";
|
|
1359
1397
|
type PageUrlMatchType = "contains" | "exactly" | "legacy" | "notContains" | "regex" | "startsWith";
|
package/dist/index.js
CHANGED