@23blocks/block-onboarding 3.1.0 → 3.1.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.esm.js +21 -1
- package/dist/src/index.d.ts +3 -4
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -36,6 +36,26 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
36
36
|
}
|
|
37
37
|
return false;
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Parse an array of strings
|
|
41
|
+
*/ function parseStringArray(value) {
|
|
42
|
+
if (value === null || value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (Array.isArray(value)) {
|
|
46
|
+
return value.map(String);
|
|
47
|
+
}
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Parse a number value
|
|
52
|
+
*/ function parseNumber(value) {
|
|
53
|
+
if (value === null || value === undefined) {
|
|
54
|
+
return 0;
|
|
55
|
+
}
|
|
56
|
+
const num = Number(value);
|
|
57
|
+
return isNaN(num) ? 0 : num;
|
|
58
|
+
}
|
|
39
59
|
/**
|
|
40
60
|
* Parse an optional number value
|
|
41
61
|
*/ function parseOptionalNumber(value) {
|
|
@@ -800,4 +820,4 @@ const onboardingBlockMetadata = {
|
|
|
800
820
|
]
|
|
801
821
|
};
|
|
802
822
|
|
|
803
|
-
export { createFlowsService, createOnboardingBlock, createOnboardingsService, createUserIdentitiesService, createUserJourneysService, flowMapper, onboardingBlockMetadata, onboardingMapper, userIdentityMapper, userJourneyMapper };
|
|
823
|
+
export { createFlowsService, createMailTemplatesService, createOnboardService, createOnboardingBlock, createOnboardingsService, createRemarketingService, createUserIdentitiesService, createUserJourneysService, flowMapper, mailTemplateMapper, onboardJourneyMapper, onboardingBlockMetadata, onboardingMapper, onboardingStepMapper, parseBoolean, parseDate, parseJourneyStatus, parseNumber, parseNumberArray, parseObject, parseObjectArray, parseOptionalNumber, parseStatus, parseString, parseStringArray, userIdentityMapper, userJourneyMapper };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { createOnboardingBlock, onboardingBlockMetadata } from './lib/onboarding.block';
|
|
2
2
|
export type { OnboardingBlock, OnboardingBlockConfig } from './lib/onboarding.block';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export { onboardingMapper, flowMapper, userJourneyMapper, userIdentityMapper, } from './lib/mappers';
|
|
3
|
+
export * from './lib/types';
|
|
4
|
+
export * from './lib/services';
|
|
5
|
+
export * from './lib/mappers';
|
|
7
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACxF,YAAY,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGrF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACxF,YAAY,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGrF,cAAc,aAAa,CAAC;AAG5B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,eAAe,CAAC"}
|
package/package.json
CHANGED