@guidelytech/shared 0.4.0 → 0.5.0
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/chunk-5IQVBZO6.js +662 -0
- package/dist/chunk-5IQVBZO6.js.map +1 -0
- package/dist/index.cjs +203 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -15
- package/dist/index.d.ts +19 -15
- package/dist/index.js +37 -3
- package/dist/index.js.map +1 -1
- package/dist/runtime.cjs +204 -2
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +89 -1
- package/dist/runtime.d.ts +89 -1
- package/dist/runtime.js +37 -3
- package/package.json +1 -1
- package/dist/chunk-OFBIZEM5.js +0 -322
- package/dist/chunk-OFBIZEM5.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuleGroup, Rule } from './runtime.cjs';
|
|
2
|
-
export { DEFAULT_PLATFORMS, ExceptionProperties, GUIDELY_ID_ATTRIBUTE, MAX_PROPERTY_BYTES, MAX_STACK_FRAMES, NETWORK_PLUGIN, NetworkPluginPayload, NetworkRequest, NetworkRequestType, PLATFORMS, Platform, RULE_FIELDS, RULE_OPERATORS, RuleField, RuleOperator, SENSITIVE_HEADER_PATTERN, SENSITIVE_PARAM_PATTERN, SENSITIVE_PROPERTY_PATTERN, SERVER_ASSISTED_FIELDS, SOURCEMAP_MAX_FILES_PER_UPLOAD, SOURCEMAP_MAX_FILE_BYTES, ShowWhen, StackFrame, SurveyAnswer, SurveyAnswers, TargetingContext, WS_MAX_MESSAGES_PER_SOCKET, WS_MAX_MESSAGE_BYTES, WebSocketMessage, clamp, compare, compareVersions, describeRule, emptyRuleGroup, evaluateRule, evaluateRules, fingerprintError, fnv1a, getPath, guidePlatforms, guidelyIdFromSelector, isChecklistComplete, isPlainObject, isQuestionVisible, isRuleGroup, matchUrlPattern, normalizeErrorMessage, normalizeFrameFile, parseStack, randomId, rolloutBucket, safeRegExp, sanitizeProperties, screenPath, slugify, stripOrigin, supportsPlatform } from './runtime.cjs';
|
|
2
|
+
export { DEFAULT_PLATFORMS, EMBED_IFRAME_ATTRS, EmbedProvider, ExceptionProperties, GUIDELY_ID_ATTRIBUTE, MAX_COLLECTION_DEPTH, MAX_PROPERTY_BYTES, MAX_STACK_FRAMES, MEDIA_IMAGE_MAX_BYTES, MEDIA_IMAGE_TYPES, MEDIA_VIDEO_MAX_BYTES, MEDIA_VIDEO_TYPES, MediaContentType, NETWORK_PLUGIN, NetworkPluginPayload, NetworkRequest, NetworkRequestType, PLATFORMS, Platform, RULE_FIELDS, RULE_OPERATORS, RcArticleLike, RcCollectionLike, RcSection, RuleField, RuleOperator, SENSITIVE_HEADER_PATTERN, SENSITIVE_PARAM_PATTERN, SENSITIVE_PROPERTY_PATTERN, SERVER_ASSISTED_FIELDS, SOURCEMAP_MAX_FILES_PER_UPLOAD, SOURCEMAP_MAX_FILE_BYTES, ShowWhen, StackFrame, SurveyAnswer, SurveyAnswers, TargetingContext, VIDEO_ATTRS, VideoEmbed, WS_MAX_MESSAGES_PER_SOCKET, WS_MAX_MESSAGE_BYTES, WebSocketMessage, clamp, compare, compareVersions, describeRule, emptyRuleGroup, evaluateRule, evaluateRules, fingerprintError, fnv1a, getPath, guidePlatforms, guidelyIdFromSelector, isAllowedEmbedSrc, isArticleListed, isChecklistComplete, isMediaContentType, isPlainObject, isQuestionVisible, isRuleGroup, isSafeMediaUrl, isVideoContentType, matchUrlPattern, matchesAudiences, mediaMaxBytes, normalizeErrorMessage, normalizeFrameFile, parseStack, randomId, resourceCenterSections, rolloutBucket, safeRegExp, sanitizeProperties, screenPath, slugify, stripOrigin, supportsPlatform, toEmbedUrl, visibleArticleIds } from './runtime.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const RuleSchema: z.ZodType<Rule>;
|
|
@@ -1870,15 +1870,12 @@ interface SdkArticleSummary {
|
|
|
1870
1870
|
summary: string;
|
|
1871
1871
|
collectionId: string | null;
|
|
1872
1872
|
externalUrl: string | null;
|
|
1873
|
+
/** Listed only for members of these audiences (absent = everyone). */
|
|
1874
|
+
audienceIds?: string[];
|
|
1873
1875
|
updatedAt: string;
|
|
1874
1876
|
}
|
|
1875
1877
|
interface SdkArticlesResponse {
|
|
1876
|
-
collections:
|
|
1877
|
-
id: string;
|
|
1878
|
-
name: string;
|
|
1879
|
-
description: string;
|
|
1880
|
-
order: number;
|
|
1881
|
-
}>;
|
|
1878
|
+
collections: ResourceCenterCollection[];
|
|
1882
1879
|
articles: SdkArticleSummary[];
|
|
1883
1880
|
}
|
|
1884
1881
|
|
|
@@ -2153,8 +2150,20 @@ interface ResourceCenterArticle {
|
|
|
2153
2150
|
bodyOmitted?: boolean;
|
|
2154
2151
|
collectionId?: string | null;
|
|
2155
2152
|
externalUrl?: string | null;
|
|
2153
|
+
/** Listed only for members of any of these audiences (absent = everyone). Not access control. */
|
|
2154
|
+
audienceIds?: string[];
|
|
2156
2155
|
updatedAt: string;
|
|
2157
2156
|
}
|
|
2157
|
+
interface ResourceCenterCollection {
|
|
2158
|
+
id: string;
|
|
2159
|
+
name: string;
|
|
2160
|
+
description: string;
|
|
2161
|
+
order: number;
|
|
2162
|
+
/** Parent collection for nested collections (absent/null = top level). */
|
|
2163
|
+
parentId?: string | null;
|
|
2164
|
+
/** Listed only for members of any of these audiences, with everything inside it (absent = everyone). */
|
|
2165
|
+
audienceIds?: string[];
|
|
2166
|
+
}
|
|
2158
2167
|
interface ResourceCenterConfig {
|
|
2159
2168
|
enabled: boolean;
|
|
2160
2169
|
title: string;
|
|
@@ -2163,12 +2172,7 @@ interface ResourceCenterConfig {
|
|
|
2163
2172
|
label: string;
|
|
2164
2173
|
showIcon: boolean;
|
|
2165
2174
|
};
|
|
2166
|
-
collections:
|
|
2167
|
-
id: string;
|
|
2168
|
-
name: string;
|
|
2169
|
-
description: string;
|
|
2170
|
-
order: number;
|
|
2171
|
-
}>;
|
|
2175
|
+
collections: ResourceCenterCollection[];
|
|
2172
2176
|
articles: ResourceCenterArticle[];
|
|
2173
2177
|
recommendedGuideIds: string[];
|
|
2174
2178
|
checklistGuideIds: string[];
|
|
@@ -3620,6 +3624,6 @@ declare function templateConfig(id: string): {
|
|
|
3620
3624
|
} | null;
|
|
3621
3625
|
|
|
3622
3626
|
declare const SDK_API_VERSION = "v1";
|
|
3623
|
-
declare const SHARED_VERSION = "0.
|
|
3627
|
+
declare const SHARED_VERSION = "0.5.0";
|
|
3624
3628
|
|
|
3625
|
-
export { ADVANCE_ON, AUTOCAPTURE_EVENTS, type ApiError, type AppSnapshot, type Appearance, AppearanceSchema, type AuthoringPick, AuthoringPickSchema, type AuthoringSessionInfo, type AutocaptureSettings, AutocaptureSettingsSchema, BUTTON_ACTIONS, ButtonSchema, type CaptureSettings, type ChecklistConfig, ChecklistConfigSchema, type ChecklistProgressRequest, ChecklistProgressRequestSchema, type ChecklistTask, ChecklistTaskSchema, type ConversationLookupResponse, ConversationLookupSchema, type ConversationMessagesResponse, ConversationRatingSchema, type ConversationStatus, DEFAULT_CAPTURE_SETTINGS, EVENT_NAMES, type ErrorTrackingSettings, ErrorTrackingSettingsSchema, type EventBatch, EventBatchSchema, type EventName, type FrequencyConfig, FrequencySchema, GUIDE_KINDS, GUIDE_LIFECYCLE_EVENTS, GUIDE_STATUSES, GUIDE_TEMPLATES, type GuideConfig, type GuideConfigInput, GuideConfigSchema, type GuideKind, GuideStateUpdateSchema, type GuideStatus, type GuideStep, type GuideStepInput, type GuideTemplate, HEATMAP_VIEWPORTS, type HeatmapPoint, type HeatmapProperties, type HeatmapViewport, type IdentifyRequest, IdentifyRequestSchema, type IdentifyResponse, MAX_MESSAGE_LENGTH, MESSAGE_AUTHORS, type MessageAuthor, type MessengerCitation, type MessengerConfig, type MessengerConversation, type MessengerMessage, type MessengerSuggestedGuide, PLACEMENTS, type Placement, PostMessageSchema, type ProjectTheme, ProjectThemeSchema, type PublishedGuide, PublishedGuideSchema, REPLAY_MAX_COMPRESSED_BYTES, REPLAY_MAX_RAW_BYTES, type ReplayChunk, ReplayChunkSchema, type ReplaySettings, ReplaySettingsSchema, type ResourceCenterArticle, type ResourceCenterConfig, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SDK_API_VERSION, SELECTOR_KINDS, SHARED_VERSION, STEP_TYPES, SURVEY_QUESTION_TYPES, type ScoutStreamEvent, type SdkArticleSummary, type SdkArticlesResponse, type SdkConfigResponse, type SdkEvent, SdkEventSchema, type SelectorStrategy, SelectorStrategySchema, type StartConversationRequest, type StartConversationResponse, StartConversationSchema, StepBranchSchema, type StepButton, StepSchema, type StepTarget, type StepType, type SurveyConfig, SurveyConfigSchema, type SurveyQuestion, SurveyQuestionSchema, type SurveyResponseRequest, SurveyResponseRequestSchema, TRIGGER_TYPES, TargetSchema, type TriggerConfig, TriggerSchema, type ValidationIssue, defaultGuideConfig, defaultStep, resolveCaptureSettings, templateConfig, validateGuideConfig, visibleButtons };
|
|
3629
|
+
export { ADVANCE_ON, AUTOCAPTURE_EVENTS, type ApiError, type AppSnapshot, type Appearance, AppearanceSchema, type AuthoringPick, AuthoringPickSchema, type AuthoringSessionInfo, type AutocaptureSettings, AutocaptureSettingsSchema, BUTTON_ACTIONS, ButtonSchema, type CaptureSettings, type ChecklistConfig, ChecklistConfigSchema, type ChecklistProgressRequest, ChecklistProgressRequestSchema, type ChecklistTask, ChecklistTaskSchema, type ConversationLookupResponse, ConversationLookupSchema, type ConversationMessagesResponse, ConversationRatingSchema, type ConversationStatus, DEFAULT_CAPTURE_SETTINGS, EVENT_NAMES, type ErrorTrackingSettings, ErrorTrackingSettingsSchema, type EventBatch, EventBatchSchema, type EventName, type FrequencyConfig, FrequencySchema, GUIDE_KINDS, GUIDE_LIFECYCLE_EVENTS, GUIDE_STATUSES, GUIDE_TEMPLATES, type GuideConfig, type GuideConfigInput, GuideConfigSchema, type GuideKind, GuideStateUpdateSchema, type GuideStatus, type GuideStep, type GuideStepInput, type GuideTemplate, HEATMAP_VIEWPORTS, type HeatmapPoint, type HeatmapProperties, type HeatmapViewport, type IdentifyRequest, IdentifyRequestSchema, type IdentifyResponse, MAX_MESSAGE_LENGTH, MESSAGE_AUTHORS, type MessageAuthor, type MessengerCitation, type MessengerConfig, type MessengerConversation, type MessengerMessage, type MessengerSuggestedGuide, PLACEMENTS, type Placement, PostMessageSchema, type ProjectTheme, ProjectThemeSchema, type PublishedGuide, PublishedGuideSchema, REPLAY_MAX_COMPRESSED_BYTES, REPLAY_MAX_RAW_BYTES, type ReplayChunk, ReplayChunkSchema, type ReplaySettings, ReplaySettingsSchema, type ResourceCenterArticle, type ResourceCenterCollection, type ResourceCenterConfig, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SDK_API_VERSION, SELECTOR_KINDS, SHARED_VERSION, STEP_TYPES, SURVEY_QUESTION_TYPES, type ScoutStreamEvent, type SdkArticleSummary, type SdkArticlesResponse, type SdkConfigResponse, type SdkEvent, SdkEventSchema, type SelectorStrategy, SelectorStrategySchema, type StartConversationRequest, type StartConversationResponse, StartConversationSchema, StepBranchSchema, type StepButton, StepSchema, type StepTarget, type StepType, type SurveyConfig, SurveyConfigSchema, type SurveyQuestion, SurveyQuestionSchema, type SurveyResponseRequest, SurveyResponseRequestSchema, TRIGGER_TYPES, TargetSchema, type TriggerConfig, TriggerSchema, type ValidationIssue, defaultGuideConfig, defaultStep, resolveCaptureSettings, templateConfig, validateGuideConfig, visibleButtons };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuleGroup, Rule } from './runtime.js';
|
|
2
|
-
export { DEFAULT_PLATFORMS, ExceptionProperties, GUIDELY_ID_ATTRIBUTE, MAX_PROPERTY_BYTES, MAX_STACK_FRAMES, NETWORK_PLUGIN, NetworkPluginPayload, NetworkRequest, NetworkRequestType, PLATFORMS, Platform, RULE_FIELDS, RULE_OPERATORS, RuleField, RuleOperator, SENSITIVE_HEADER_PATTERN, SENSITIVE_PARAM_PATTERN, SENSITIVE_PROPERTY_PATTERN, SERVER_ASSISTED_FIELDS, SOURCEMAP_MAX_FILES_PER_UPLOAD, SOURCEMAP_MAX_FILE_BYTES, ShowWhen, StackFrame, SurveyAnswer, SurveyAnswers, TargetingContext, WS_MAX_MESSAGES_PER_SOCKET, WS_MAX_MESSAGE_BYTES, WebSocketMessage, clamp, compare, compareVersions, describeRule, emptyRuleGroup, evaluateRule, evaluateRules, fingerprintError, fnv1a, getPath, guidePlatforms, guidelyIdFromSelector, isChecklistComplete, isPlainObject, isQuestionVisible, isRuleGroup, matchUrlPattern, normalizeErrorMessage, normalizeFrameFile, parseStack, randomId, rolloutBucket, safeRegExp, sanitizeProperties, screenPath, slugify, stripOrigin, supportsPlatform } from './runtime.js';
|
|
2
|
+
export { DEFAULT_PLATFORMS, EMBED_IFRAME_ATTRS, EmbedProvider, ExceptionProperties, GUIDELY_ID_ATTRIBUTE, MAX_COLLECTION_DEPTH, MAX_PROPERTY_BYTES, MAX_STACK_FRAMES, MEDIA_IMAGE_MAX_BYTES, MEDIA_IMAGE_TYPES, MEDIA_VIDEO_MAX_BYTES, MEDIA_VIDEO_TYPES, MediaContentType, NETWORK_PLUGIN, NetworkPluginPayload, NetworkRequest, NetworkRequestType, PLATFORMS, Platform, RULE_FIELDS, RULE_OPERATORS, RcArticleLike, RcCollectionLike, RcSection, RuleField, RuleOperator, SENSITIVE_HEADER_PATTERN, SENSITIVE_PARAM_PATTERN, SENSITIVE_PROPERTY_PATTERN, SERVER_ASSISTED_FIELDS, SOURCEMAP_MAX_FILES_PER_UPLOAD, SOURCEMAP_MAX_FILE_BYTES, ShowWhen, StackFrame, SurveyAnswer, SurveyAnswers, TargetingContext, VIDEO_ATTRS, VideoEmbed, WS_MAX_MESSAGES_PER_SOCKET, WS_MAX_MESSAGE_BYTES, WebSocketMessage, clamp, compare, compareVersions, describeRule, emptyRuleGroup, evaluateRule, evaluateRules, fingerprintError, fnv1a, getPath, guidePlatforms, guidelyIdFromSelector, isAllowedEmbedSrc, isArticleListed, isChecklistComplete, isMediaContentType, isPlainObject, isQuestionVisible, isRuleGroup, isSafeMediaUrl, isVideoContentType, matchUrlPattern, matchesAudiences, mediaMaxBytes, normalizeErrorMessage, normalizeFrameFile, parseStack, randomId, resourceCenterSections, rolloutBucket, safeRegExp, sanitizeProperties, screenPath, slugify, stripOrigin, supportsPlatform, toEmbedUrl, visibleArticleIds } from './runtime.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const RuleSchema: z.ZodType<Rule>;
|
|
@@ -1870,15 +1870,12 @@ interface SdkArticleSummary {
|
|
|
1870
1870
|
summary: string;
|
|
1871
1871
|
collectionId: string | null;
|
|
1872
1872
|
externalUrl: string | null;
|
|
1873
|
+
/** Listed only for members of these audiences (absent = everyone). */
|
|
1874
|
+
audienceIds?: string[];
|
|
1873
1875
|
updatedAt: string;
|
|
1874
1876
|
}
|
|
1875
1877
|
interface SdkArticlesResponse {
|
|
1876
|
-
collections:
|
|
1877
|
-
id: string;
|
|
1878
|
-
name: string;
|
|
1879
|
-
description: string;
|
|
1880
|
-
order: number;
|
|
1881
|
-
}>;
|
|
1878
|
+
collections: ResourceCenterCollection[];
|
|
1882
1879
|
articles: SdkArticleSummary[];
|
|
1883
1880
|
}
|
|
1884
1881
|
|
|
@@ -2153,8 +2150,20 @@ interface ResourceCenterArticle {
|
|
|
2153
2150
|
bodyOmitted?: boolean;
|
|
2154
2151
|
collectionId?: string | null;
|
|
2155
2152
|
externalUrl?: string | null;
|
|
2153
|
+
/** Listed only for members of any of these audiences (absent = everyone). Not access control. */
|
|
2154
|
+
audienceIds?: string[];
|
|
2156
2155
|
updatedAt: string;
|
|
2157
2156
|
}
|
|
2157
|
+
interface ResourceCenterCollection {
|
|
2158
|
+
id: string;
|
|
2159
|
+
name: string;
|
|
2160
|
+
description: string;
|
|
2161
|
+
order: number;
|
|
2162
|
+
/** Parent collection for nested collections (absent/null = top level). */
|
|
2163
|
+
parentId?: string | null;
|
|
2164
|
+
/** Listed only for members of any of these audiences, with everything inside it (absent = everyone). */
|
|
2165
|
+
audienceIds?: string[];
|
|
2166
|
+
}
|
|
2158
2167
|
interface ResourceCenterConfig {
|
|
2159
2168
|
enabled: boolean;
|
|
2160
2169
|
title: string;
|
|
@@ -2163,12 +2172,7 @@ interface ResourceCenterConfig {
|
|
|
2163
2172
|
label: string;
|
|
2164
2173
|
showIcon: boolean;
|
|
2165
2174
|
};
|
|
2166
|
-
collections:
|
|
2167
|
-
id: string;
|
|
2168
|
-
name: string;
|
|
2169
|
-
description: string;
|
|
2170
|
-
order: number;
|
|
2171
|
-
}>;
|
|
2175
|
+
collections: ResourceCenterCollection[];
|
|
2172
2176
|
articles: ResourceCenterArticle[];
|
|
2173
2177
|
recommendedGuideIds: string[];
|
|
2174
2178
|
checklistGuideIds: string[];
|
|
@@ -3620,6 +3624,6 @@ declare function templateConfig(id: string): {
|
|
|
3620
3624
|
} | null;
|
|
3621
3625
|
|
|
3622
3626
|
declare const SDK_API_VERSION = "v1";
|
|
3623
|
-
declare const SHARED_VERSION = "0.
|
|
3627
|
+
declare const SHARED_VERSION = "0.5.0";
|
|
3624
3628
|
|
|
3625
|
-
export { ADVANCE_ON, AUTOCAPTURE_EVENTS, type ApiError, type AppSnapshot, type Appearance, AppearanceSchema, type AuthoringPick, AuthoringPickSchema, type AuthoringSessionInfo, type AutocaptureSettings, AutocaptureSettingsSchema, BUTTON_ACTIONS, ButtonSchema, type CaptureSettings, type ChecklistConfig, ChecklistConfigSchema, type ChecklistProgressRequest, ChecklistProgressRequestSchema, type ChecklistTask, ChecklistTaskSchema, type ConversationLookupResponse, ConversationLookupSchema, type ConversationMessagesResponse, ConversationRatingSchema, type ConversationStatus, DEFAULT_CAPTURE_SETTINGS, EVENT_NAMES, type ErrorTrackingSettings, ErrorTrackingSettingsSchema, type EventBatch, EventBatchSchema, type EventName, type FrequencyConfig, FrequencySchema, GUIDE_KINDS, GUIDE_LIFECYCLE_EVENTS, GUIDE_STATUSES, GUIDE_TEMPLATES, type GuideConfig, type GuideConfigInput, GuideConfigSchema, type GuideKind, GuideStateUpdateSchema, type GuideStatus, type GuideStep, type GuideStepInput, type GuideTemplate, HEATMAP_VIEWPORTS, type HeatmapPoint, type HeatmapProperties, type HeatmapViewport, type IdentifyRequest, IdentifyRequestSchema, type IdentifyResponse, MAX_MESSAGE_LENGTH, MESSAGE_AUTHORS, type MessageAuthor, type MessengerCitation, type MessengerConfig, type MessengerConversation, type MessengerMessage, type MessengerSuggestedGuide, PLACEMENTS, type Placement, PostMessageSchema, type ProjectTheme, ProjectThemeSchema, type PublishedGuide, PublishedGuideSchema, REPLAY_MAX_COMPRESSED_BYTES, REPLAY_MAX_RAW_BYTES, type ReplayChunk, ReplayChunkSchema, type ReplaySettings, ReplaySettingsSchema, type ResourceCenterArticle, type ResourceCenterConfig, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SDK_API_VERSION, SELECTOR_KINDS, SHARED_VERSION, STEP_TYPES, SURVEY_QUESTION_TYPES, type ScoutStreamEvent, type SdkArticleSummary, type SdkArticlesResponse, type SdkConfigResponse, type SdkEvent, SdkEventSchema, type SelectorStrategy, SelectorStrategySchema, type StartConversationRequest, type StartConversationResponse, StartConversationSchema, StepBranchSchema, type StepButton, StepSchema, type StepTarget, type StepType, type SurveyConfig, SurveyConfigSchema, type SurveyQuestion, SurveyQuestionSchema, type SurveyResponseRequest, SurveyResponseRequestSchema, TRIGGER_TYPES, TargetSchema, type TriggerConfig, TriggerSchema, type ValidationIssue, defaultGuideConfig, defaultStep, resolveCaptureSettings, templateConfig, validateGuideConfig, visibleButtons };
|
|
3629
|
+
export { ADVANCE_ON, AUTOCAPTURE_EVENTS, type ApiError, type AppSnapshot, type Appearance, AppearanceSchema, type AuthoringPick, AuthoringPickSchema, type AuthoringSessionInfo, type AutocaptureSettings, AutocaptureSettingsSchema, BUTTON_ACTIONS, ButtonSchema, type CaptureSettings, type ChecklistConfig, ChecklistConfigSchema, type ChecklistProgressRequest, ChecklistProgressRequestSchema, type ChecklistTask, ChecklistTaskSchema, type ConversationLookupResponse, ConversationLookupSchema, type ConversationMessagesResponse, ConversationRatingSchema, type ConversationStatus, DEFAULT_CAPTURE_SETTINGS, EVENT_NAMES, type ErrorTrackingSettings, ErrorTrackingSettingsSchema, type EventBatch, EventBatchSchema, type EventName, type FrequencyConfig, FrequencySchema, GUIDE_KINDS, GUIDE_LIFECYCLE_EVENTS, GUIDE_STATUSES, GUIDE_TEMPLATES, type GuideConfig, type GuideConfigInput, GuideConfigSchema, type GuideKind, GuideStateUpdateSchema, type GuideStatus, type GuideStep, type GuideStepInput, type GuideTemplate, HEATMAP_VIEWPORTS, type HeatmapPoint, type HeatmapProperties, type HeatmapViewport, type IdentifyRequest, IdentifyRequestSchema, type IdentifyResponse, MAX_MESSAGE_LENGTH, MESSAGE_AUTHORS, type MessageAuthor, type MessengerCitation, type MessengerConfig, type MessengerConversation, type MessengerMessage, type MessengerSuggestedGuide, PLACEMENTS, type Placement, PostMessageSchema, type ProjectTheme, ProjectThemeSchema, type PublishedGuide, PublishedGuideSchema, REPLAY_MAX_COMPRESSED_BYTES, REPLAY_MAX_RAW_BYTES, type ReplayChunk, ReplayChunkSchema, type ReplaySettings, ReplaySettingsSchema, type ResourceCenterArticle, type ResourceCenterCollection, type ResourceCenterConfig, Rule, RuleGroup, RuleGroupSchema, RuleSchema, SDK_API_VERSION, SELECTOR_KINDS, SHARED_VERSION, STEP_TYPES, SURVEY_QUESTION_TYPES, type ScoutStreamEvent, type SdkArticleSummary, type SdkArticlesResponse, type SdkConfigResponse, type SdkEvent, SdkEventSchema, type SelectorStrategy, SelectorStrategySchema, type StartConversationRequest, type StartConversationResponse, StartConversationSchema, StepBranchSchema, type StepButton, StepSchema, type StepTarget, type StepType, type SurveyConfig, SurveyConfigSchema, type SurveyQuestion, SurveyQuestionSchema, type SurveyResponseRequest, SurveyResponseRequestSchema, TRIGGER_TYPES, TargetSchema, type TriggerConfig, TriggerSchema, type ValidationIssue, defaultGuideConfig, defaultStep, resolveCaptureSettings, templateConfig, validateGuideConfig, visibleButtons };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_PLATFORMS,
|
|
3
|
+
EMBED_IFRAME_ATTRS,
|
|
3
4
|
GUIDELY_ID_ATTRIBUTE,
|
|
5
|
+
MAX_COLLECTION_DEPTH,
|
|
4
6
|
MAX_PROPERTY_BYTES,
|
|
5
7
|
MAX_STACK_FRAMES,
|
|
8
|
+
MEDIA_IMAGE_MAX_BYTES,
|
|
9
|
+
MEDIA_IMAGE_TYPES,
|
|
10
|
+
MEDIA_VIDEO_MAX_BYTES,
|
|
11
|
+
MEDIA_VIDEO_TYPES,
|
|
6
12
|
NETWORK_PLUGIN,
|
|
7
13
|
PLATFORMS,
|
|
8
14
|
RULE_FIELDS,
|
|
@@ -13,6 +19,7 @@ import {
|
|
|
13
19
|
SERVER_ASSISTED_FIELDS,
|
|
14
20
|
SOURCEMAP_MAX_FILES_PER_UPLOAD,
|
|
15
21
|
SOURCEMAP_MAX_FILE_BYTES,
|
|
22
|
+
VIDEO_ATTRS,
|
|
16
23
|
WS_MAX_MESSAGES_PER_SOCKET,
|
|
17
24
|
WS_MAX_MESSAGE_BYTES,
|
|
18
25
|
clamp,
|
|
@@ -27,23 +34,33 @@ import {
|
|
|
27
34
|
getPath,
|
|
28
35
|
guidePlatforms,
|
|
29
36
|
guidelyIdFromSelector,
|
|
37
|
+
isAllowedEmbedSrc,
|
|
38
|
+
isArticleListed,
|
|
30
39
|
isChecklistComplete,
|
|
40
|
+
isMediaContentType,
|
|
31
41
|
isPlainObject,
|
|
32
42
|
isQuestionVisible,
|
|
33
43
|
isRuleGroup,
|
|
44
|
+
isSafeMediaUrl,
|
|
45
|
+
isVideoContentType,
|
|
34
46
|
matchUrlPattern,
|
|
47
|
+
matchesAudiences,
|
|
48
|
+
mediaMaxBytes,
|
|
35
49
|
normalizeErrorMessage,
|
|
36
50
|
normalizeFrameFile,
|
|
37
51
|
parseStack,
|
|
38
52
|
randomId,
|
|
53
|
+
resourceCenterSections,
|
|
39
54
|
rolloutBucket,
|
|
40
55
|
safeRegExp,
|
|
41
56
|
sanitizeProperties,
|
|
42
57
|
screenPath,
|
|
43
58
|
slugify,
|
|
44
59
|
stripOrigin,
|
|
45
|
-
supportsPlatform
|
|
46
|
-
|
|
60
|
+
supportsPlatform,
|
|
61
|
+
toEmbedUrl,
|
|
62
|
+
visibleArticleIds
|
|
63
|
+
} from "./chunk-5IQVBZO6.js";
|
|
47
64
|
|
|
48
65
|
// src/targeting.ts
|
|
49
66
|
import { z } from "zod";
|
|
@@ -677,7 +694,7 @@ function templateConfig(id) {
|
|
|
677
694
|
|
|
678
695
|
// src/index.ts
|
|
679
696
|
var SDK_API_VERSION = "v1";
|
|
680
|
-
var SHARED_VERSION = "0.
|
|
697
|
+
var SHARED_VERSION = "0.5.0";
|
|
681
698
|
export {
|
|
682
699
|
ADVANCE_ON,
|
|
683
700
|
AUTOCAPTURE_EVENTS,
|
|
@@ -693,6 +710,7 @@ export {
|
|
|
693
710
|
ConversationRatingSchema,
|
|
694
711
|
DEFAULT_CAPTURE_SETTINGS,
|
|
695
712
|
DEFAULT_PLATFORMS,
|
|
713
|
+
EMBED_IFRAME_ATTRS,
|
|
696
714
|
EVENT_NAMES,
|
|
697
715
|
ErrorTrackingSettingsSchema,
|
|
698
716
|
EventBatchSchema,
|
|
@@ -706,9 +724,14 @@ export {
|
|
|
706
724
|
GuideStateUpdateSchema,
|
|
707
725
|
HEATMAP_VIEWPORTS,
|
|
708
726
|
IdentifyRequestSchema,
|
|
727
|
+
MAX_COLLECTION_DEPTH,
|
|
709
728
|
MAX_MESSAGE_LENGTH,
|
|
710
729
|
MAX_PROPERTY_BYTES,
|
|
711
730
|
MAX_STACK_FRAMES,
|
|
731
|
+
MEDIA_IMAGE_MAX_BYTES,
|
|
732
|
+
MEDIA_IMAGE_TYPES,
|
|
733
|
+
MEDIA_VIDEO_MAX_BYTES,
|
|
734
|
+
MEDIA_VIDEO_TYPES,
|
|
712
735
|
MESSAGE_AUTHORS,
|
|
713
736
|
NETWORK_PLUGIN,
|
|
714
737
|
PLACEMENTS,
|
|
@@ -746,6 +769,7 @@ export {
|
|
|
746
769
|
TRIGGER_TYPES,
|
|
747
770
|
TargetSchema,
|
|
748
771
|
TriggerSchema,
|
|
772
|
+
VIDEO_ATTRS,
|
|
749
773
|
WS_MAX_MESSAGES_PER_SOCKET,
|
|
750
774
|
WS_MAX_MESSAGE_BYTES,
|
|
751
775
|
clamp,
|
|
@@ -762,16 +786,24 @@ export {
|
|
|
762
786
|
getPath,
|
|
763
787
|
guidePlatforms,
|
|
764
788
|
guidelyIdFromSelector,
|
|
789
|
+
isAllowedEmbedSrc,
|
|
790
|
+
isArticleListed,
|
|
765
791
|
isChecklistComplete,
|
|
792
|
+
isMediaContentType,
|
|
766
793
|
isPlainObject,
|
|
767
794
|
isQuestionVisible,
|
|
768
795
|
isRuleGroup,
|
|
796
|
+
isSafeMediaUrl,
|
|
797
|
+
isVideoContentType,
|
|
769
798
|
matchUrlPattern,
|
|
799
|
+
matchesAudiences,
|
|
800
|
+
mediaMaxBytes,
|
|
770
801
|
normalizeErrorMessage,
|
|
771
802
|
normalizeFrameFile,
|
|
772
803
|
parseStack,
|
|
773
804
|
randomId,
|
|
774
805
|
resolveCaptureSettings,
|
|
806
|
+
resourceCenterSections,
|
|
775
807
|
rolloutBucket,
|
|
776
808
|
safeRegExp,
|
|
777
809
|
sanitizeProperties,
|
|
@@ -780,7 +812,9 @@ export {
|
|
|
780
812
|
stripOrigin,
|
|
781
813
|
supportsPlatform,
|
|
782
814
|
templateConfig,
|
|
815
|
+
toEmbedUrl,
|
|
783
816
|
validateGuideConfig,
|
|
817
|
+
visibleArticleIds,
|
|
784
818
|
visibleButtons
|
|
785
819
|
};
|
|
786
820
|
//# sourceMappingURL=index.js.map
|