@bikdotai/bik-component-library 0.0.838-beta.6 → 0.0.838
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/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js +23 -23
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/AiTextArea.js +1 -1
- package/dist/cjs/components/agent-builder/components/AiTextArea.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/ToolInstructionsField.js +2 -2
- package/dist/cjs/components/agent-builder/components/ToolInstructionsField.js.map +1 -1
- package/dist/cjs/components/bik-chatbot/components/ChatWindow.js +20 -20
- package/dist/cjs/components/bik-chatbot/components/ChatWindow.js.map +1 -1
- package/dist/cjs/components/input/ChipInput.js +1 -1
- package/dist/cjs/components/input/ChipInput.js.map +1 -1
- package/dist/cjs/components/input/Input-helper.js +1 -1
- package/dist/cjs/components/input/Input-helper.js.map +1 -1
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/input/Input.js.map +1 -1
- package/dist/cjs/components/plans/SubscriptionPlanSelector.js +5 -5
- package/dist/cjs/components/plans/SubscriptionPlanSelector.js.map +1 -1
- package/dist/cjs/editor/BikEditor.js +1 -1
- package/dist/cjs/editor/BikEditor.js.map +1 -1
- package/dist/cjs/editor/BikEditor.utils.js +3 -3
- package/dist/cjs/editor/BikEditor.utils.js.map +1 -1
- package/dist/cjs/editor/extensions/buildExtensions.js +2 -2
- package/dist/cjs/editor/extensions/buildExtensions.js.map +1 -1
- package/dist/cjs/icons/Informational/General/HourglassFilled.js +2 -0
- package/dist/cjs/icons/Informational/General/HourglassFilled.js.map +1 -0
- package/dist/cjs/icons/index.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js +143 -144
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js.map +1 -1
- package/dist/esm/components/agent-builder/components/AiTextArea.js +23 -24
- package/dist/esm/components/agent-builder/components/AiTextArea.js.map +1 -1
- package/dist/esm/components/agent-builder/components/ToolInstructionsField.js +30 -31
- package/dist/esm/components/agent-builder/components/ToolInstructionsField.js.map +1 -1
- package/dist/esm/components/bik-chatbot/components/ChatWindow.js +53 -54
- package/dist/esm/components/bik-chatbot/components/ChatWindow.js.map +1 -1
- package/dist/esm/components/input/ChipInput.js +40 -41
- package/dist/esm/components/input/ChipInput.js.map +1 -1
- package/dist/esm/components/input/Input-helper.d.ts +0 -7
- package/dist/esm/components/input/Input-helper.js +25 -16
- package/dist/esm/components/input/Input-helper.js.map +1 -1
- package/dist/esm/components/input/Input.js +58 -60
- package/dist/esm/components/input/Input.js.map +1 -1
- package/dist/esm/components/input/Input.model.d.ts +0 -1
- package/dist/esm/components/plans/SubscriptionPlanSelector.js +40 -42
- package/dist/esm/components/plans/SubscriptionPlanSelector.js.map +1 -1
- package/dist/esm/editor/BikEditor.js +118 -122
- package/dist/esm/editor/BikEditor.js.map +1 -1
- package/dist/esm/editor/BikEditor.utils.d.ts +1 -1
- package/dist/esm/editor/BikEditor.utils.js +140 -141
- package/dist/esm/editor/BikEditor.utils.js.map +1 -1
- package/dist/esm/editor/extensions/buildExtensions.js +39 -49
- package/dist/esm/editor/extensions/buildExtensions.js.map +1 -1
- package/dist/esm/helpers/index.d.ts +0 -1
- package/dist/esm/icons/Informational/General/HourglassFilled.d.ts +7 -0
- package/dist/esm/icons/Informational/General/HourglassFilled.js +33 -0
- package/dist/esm/icons/Informational/General/HourglassFilled.js.map +1 -0
- package/dist/esm/icons/Informational/General/index.d.ts +1 -0
- package/dist/esm/icons/Media/Visual/index.d.ts +0 -2
- package/dist/esm/icons/index.d.ts +25 -25
- package/dist/esm/icons/index.js +416 -418
- package/dist/esm/icons/index.js.map +1 -1
- package/dist/esm/index.js +114 -124
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -2
- package/dist/cjs/editor/extensions/htmlTagStrip/HtmlTagStripExtension.js +0 -2
- package/dist/cjs/editor/extensions/htmlTagStrip/HtmlTagStripExtension.js.map +0 -1
- package/dist/cjs/helpers/sanitize.js +0 -2
- package/dist/cjs/helpers/sanitize.js.map +0 -1
- package/dist/cjs/icons/Media/Visual/FormkitNeutral.js +0 -2
- package/dist/cjs/icons/Media/Visual/FormkitNeutral.js.map +0 -1
- package/dist/cjs/icons/Media/Visual/FormkitSad.js +0 -2
- package/dist/cjs/icons/Media/Visual/FormkitSad.js.map +0 -1
- package/dist/esm/editor/extensions/htmlTagStrip/HtmlTagStripExtension.d.ts +0 -13
- package/dist/esm/editor/extensions/htmlTagStrip/HtmlTagStripExtension.js +0 -64
- package/dist/esm/editor/extensions/htmlTagStrip/HtmlTagStripExtension.js.map +0 -1
- package/dist/esm/helpers/sanitize.d.ts +0 -32
- package/dist/esm/helpers/sanitize.js +0 -204
- package/dist/esm/helpers/sanitize.js.map +0 -1
- package/dist/esm/icons/Media/Visual/FormkitNeutral.js +0 -58
- package/dist/esm/icons/Media/Visual/FormkitNeutral.js.map +0 -1
- package/dist/esm/icons/Media/Visual/FormkitSad.js +0 -61
- package/dist/esm/icons/Media/Visual/FormkitSad.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { BASE_COLORS as f, COLORS as p, DEFAULT_THEME as m, FONTS as l } from ".
|
|
|
4
4
|
import { ComponentZindex as n } from "./constants/zindex.js";
|
|
5
5
|
import { AiBodyCaption as s, AiBodyTiny as d, BodyCaption as u, BodyLarge as T, BodyPrimary as c, BodyPrimaryLink as A, BodyRegular as C, BodySecondary as S, BodySecondaryLink as E, BodySmall as I, BodyTiny as P, BodyTinySemiBold as R, ButtonLarge as _, ButtonLargeAI as h, ButtonRegular as O, ButtonRegularAI as g, Caption as B, CaptionBold as N, Display as D, SmallRegular as L, SubHeading as M, TextPlaceholder as y, Tiny as k, TitleFour as F, TitleLarge as U, TitleMedium as b, TitleRegular as w, TitleSmall as V, TitleTiny as H, TitleXlarge as G } from "./components/TypographyStyle.js";
|
|
6
6
|
import { SearchFilter as W } from "./components/SearchFilter/index.js";
|
|
7
|
-
import { ResizableImage as
|
|
8
|
-
import { validateURL as
|
|
7
|
+
import { ResizableImage as K } from "./components/resizeImage/index.js";
|
|
8
|
+
import { validateURL as X } from "./utils/validator.js";
|
|
9
9
|
import { CustomPortal as j } from "./components/input-with-vars/customPortal.js";
|
|
10
10
|
import { MultilevelDropdownPopover as q } from "./components/dropdown/MultilevelDropdownPopover/index.js";
|
|
11
11
|
import { UnsatisfactoryResponseList as $ } from "./components/unsatisfactory-response-list/UnsatisfactoryResponseList.js";
|
|
@@ -30,8 +30,8 @@ import { default as bo } from "./assets/icons/Bik_logo.svg.js";
|
|
|
30
30
|
import { default as Vo } from "./assets/icons/bold.svg.js";
|
|
31
31
|
import { default as Go } from "./assets/icons/box.svg.js";
|
|
32
32
|
import { default as Wo } from "./assets/icons/box_round.svg.js";
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
33
|
+
import { default as Ko } from "./assets/icons/box_search.svg.js";
|
|
34
|
+
import { default as Xo } from "./assets/icons/boxV2.svg.js";
|
|
35
35
|
import { default as jo } from "./assets/icons/brand_home.svg.js";
|
|
36
36
|
import { default as qo } from "./assets/icons/broken_media_image.svg.js";
|
|
37
37
|
import { default as $o } from "./assets/icons/calendar.svg.js";
|
|
@@ -57,8 +57,8 @@ import { default as br } from "./assets/icons/click.svg.js";
|
|
|
57
57
|
import { default as Vr } from "./assets/icons/clock.svg.js";
|
|
58
58
|
import { default as Gr } from "./assets/icons/copy-code-icon.svg.js";
|
|
59
59
|
import { default as Wr } from "./assets/icons/cross.svg.js";
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
60
|
+
import { default as Kr } from "./assets/icons/cubeIcon.svg.js";
|
|
61
|
+
import { default as Xr } from "./assets/icons/cursor.svg.js";
|
|
62
62
|
import { default as jr } from "./assets/icons/CustomiseIcon.js";
|
|
63
63
|
import { default as qr } from "./assets/icons/delete.svg.js";
|
|
64
64
|
import { default as $r } from "./assets/icons/desktop_custom.svg.js";
|
|
@@ -84,8 +84,8 @@ import { default as be } from "./assets/icons/GoLiveIcon.js";
|
|
|
84
84
|
import { default as Ve } from "./assets/icons/graph.svg.js";
|
|
85
85
|
import { default as Ge } from "./assets/icons/grid.svg.js";
|
|
86
86
|
import { default as We } from "./assets/icons/halfRectangle.svg.js";
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
87
|
+
import { default as Ke } from "./assets/icons/HeadsetIcon.js";
|
|
88
|
+
import { default as Xe } from "./assets/icons/help.svg.js";
|
|
89
89
|
import { default as je } from "./assets/icons/HelpIcon.svg.js";
|
|
90
90
|
import { default as qe } from "./assets/icons/home.svg.js";
|
|
91
91
|
import { default as $e } from "./assets/icons/horizontal_dots.svg.js";
|
|
@@ -111,8 +111,8 @@ import { default as bt } from "./assets/icons/more_vertical.svg.js";
|
|
|
111
111
|
import { default as Vt } from "./assets/icons/NotesIcon.js";
|
|
112
112
|
import { default as Gt } from "./assets/icons/NudgesIcon.js";
|
|
113
113
|
import { default as Wt } from "./assets/icons/OnboardingLogo.js";
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
114
|
+
import { default as Kt } from "./assets/icons/openai.svg.js";
|
|
115
|
+
import { default as Xt } from "./assets/icons/OrderTrackingIcon.js";
|
|
116
116
|
import { default as jt } from "./assets/icons/paperclip.svg.js";
|
|
117
117
|
import { default as qt } from "./assets/icons/percentage_icon.svg.js";
|
|
118
118
|
import { default as $t } from "./assets/icons/phone.svg.js";
|
|
@@ -138,8 +138,8 @@ import { default as ba } from "./assets/icons/searchIcon.svg.js";
|
|
|
138
138
|
import { default as Va } from "./assets/icons/send.svg.js";
|
|
139
139
|
import { default as Ga } from "./assets/icons/send_template.svg.js";
|
|
140
140
|
import { default as Wa } from "./assets/icons/shipping_icon.svg.js";
|
|
141
|
-
import { default as
|
|
142
|
-
import { default as
|
|
141
|
+
import { default as Ka } from "./assets/icons/ShoppingIcon.js";
|
|
142
|
+
import { default as Xa } from "./assets/icons/similar.svg.js";
|
|
143
143
|
import { default as ja } from "./assets/icons/smile_emoji.svg.js";
|
|
144
144
|
import { default as qa } from "./assets/icons/smiley_emoji.svg.js";
|
|
145
145
|
import { default as $a } from "./assets/icons/sparkle.svg.js";
|
|
@@ -165,8 +165,8 @@ import { default as wf } from "./assets/icons/triangle_error.svg.js";
|
|
|
165
165
|
import { default as Hf } from "./assets/icons/undo.svg.js";
|
|
166
166
|
import { default as vf } from "./assets/icons/union.svg.js";
|
|
167
167
|
import { default as Yf } from "./assets/icons/upload.svg.js";
|
|
168
|
-
import { default as
|
|
169
|
-
import { default as
|
|
168
|
+
import { default as Qf } from "./assets/icons/user_icon.svg.js";
|
|
169
|
+
import { default as zf } from "./assets/icons/vertical_dots.svg.js";
|
|
170
170
|
import { default as Zf } from "./components/vertical-full-screen-modal/component.js";
|
|
171
171
|
import { default as Jf } from "./assets/icons/video_camcorder.svg.js";
|
|
172
172
|
import { default as op } from "./assets/icons/videoRecorder.svg.js";
|
|
@@ -180,7 +180,7 @@ import { default as up } from "./assets/icons/WhiteStarFilled.svg.js";
|
|
|
180
180
|
import { ACTIONS_TYPES as cp, CUSTOM_URL_NAME as Ap, HEADER_TYPES as Cp, STATIC_URL_CTA_OPTION as Sp, TEMPLATE_EDITOR as Ep, TEMPLATE_STATUS as Ip, UNSUBSCRIBE_URL_OPTION as Pp } from "./components/template-preview/models/TemplateMeta.js";
|
|
181
181
|
import { AD_STRING_OPERATORS as _p, ANY_AD_OPERATORS as hp, ANY_IG_OPERATORS as Op, BOOLEAN_OPERATORS as gp, DATE_OPERATORS as Bp, EVENT_VALUES as Np, EXACTLY_OPERATORS as Dp, FREQUENCY_OPERATORS as Lp, ICE_BREAKER_OPERATORS as Mp, IG_STRING_OPERATORS as yp, INTEGER_OPERATORS as kp, MAIL_SUBJECT_OPERATORS as Fp, REACTION_OPERATORS as Up, SPECIFIC_IG_OPERATORS as bp, STRING_OPERATORS as wp, STRING_RESTRICTED_OPERATORS as Vp, STRING_RESTRICTED_OPERATORS_2 as Hp, STRING_RESTRICTED_OPERATORS_3 as Gp } from "./components/QueryBuilder/types/QueryBuilderOperator.type.js";
|
|
182
182
|
import { AGENT_CHAR_LIMITS as Wp } from "./components/agent-builder/constants/charLimits.js";
|
|
183
|
-
import { AIActionVariant as
|
|
183
|
+
import { AIActionVariant as Kp, AIEditorActionTypes as Qp, CustomRightBorder as Xp, EditorActionTypes as zp, WhatsAppTextEditorHeader as jp } from "./components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js";
|
|
184
184
|
import { AIChat as qp } from "./components/bik-chatbot/components/AIChat.js";
|
|
185
185
|
import { AIProvider as $p, useAIContext as om } from "./components/bik-chatbot/contexts/AIContext.js";
|
|
186
186
|
import { AI_TAG_CHANGE_RATIO_THRESHOLD as em, computeAiTagOnAccept as tm, levenshteinDistance as am } from "./components/WhatsAppTextEditor/ai/aiTag.js";
|
|
@@ -200,8 +200,8 @@ import { AgentListing as wm } from "./components/agent-listing/AgentListing.js";
|
|
|
200
200
|
import { AiCreditsExhausted as Hm } from "./components/ai-modals/AiCreditsExhausted.js";
|
|
201
201
|
import { AiCreditsLow as vm } from "./components/ai-modals/AiCreditsLow.js";
|
|
202
202
|
import { AiSyncProgress as Ym } from "./components/ai-modals/AiSyncProgress.js";
|
|
203
|
-
import { Alert as
|
|
204
|
-
import { AnalyticsCard as
|
|
203
|
+
import { Alert as Qm } from "./components/alerts/Alert.js";
|
|
204
|
+
import { AnalyticsCard as zm } from "./components/analytics-card/AnalyticsCard.js";
|
|
205
205
|
import { AnalyticsChip as Zm } from "./components/analytics-chips-and-dropdowns/AnalyticsChip.js";
|
|
206
206
|
import { AnalyticsContainer as Jm, CardDataContainer as $m } from "./components/analytics-card/AnalyticsCard.styled.js";
|
|
207
207
|
import { AnalyticsDropdown as rl, EachItem as el, formatDate as tl } from "./components/analytics-chips-and-dropdowns/AnalyticsDropdown.js";
|
|
@@ -214,8 +214,8 @@ import { BOLD_TEXT_PATTERN as Cl, CODE_TEXT_PATTERN as Sl, EMAIL_PATTERN as El,
|
|
|
214
214
|
import { BUTTON_TYPE as Ll, POD as Ml, TEMPLATE_QUALITY as yl } from "./components/template-preview/models/WhatsAppTemplate.js";
|
|
215
215
|
import { BackgroundImageContainer as Fl, MainCardContainer as Ul, MainContainer as bl, WhatsNewIconContainer as wl, WhatsNewWrapper as Vl } from "./components/whats-new/WhatsNew.styles.js";
|
|
216
216
|
import { BannerThirdPartyIcon as Gl, BannerType as vl, getUrlForBannerThirdPartyIcon as Wl } from "./components/adbanner/model.js";
|
|
217
|
-
import { BaseQueryBuilderNode as
|
|
218
|
-
import { BaseWhatsappContentLangHelper as
|
|
217
|
+
import { BaseQueryBuilderNode as Kl } from "./components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";
|
|
218
|
+
import { BaseWhatsappContentLangHelper as Xl } from "./helpers/BaseWhatsappContentLang.helper.js";
|
|
219
219
|
import { BikAccordion as jl } from "./components/accordion/Accordion.js";
|
|
220
220
|
import { BikEditor as ql } from "./editor/BikEditor.js";
|
|
221
221
|
import { BikEditorToolbar as $l } from "./editor/toolbar/BikEditorToolbar.js";
|
|
@@ -237,7 +237,7 @@ import { ButtonActions as Mx, ButtonTypes as yx, StateComponent as kx, StateInte
|
|
|
237
237
|
import { ButtonGroup as bx } from "./components/buttonGroup/ButtonGroup.js";
|
|
238
238
|
import { CHANNEL_TYPE as Vx } from "./components/template-preview/models/Channels.js";
|
|
239
239
|
import { CHAT_MESSAGE_ROLES as Gx, DEFAULT_CONVERSATION_ID as vx, createSessionRecord as Wx } from "./components/bik-chatbot/types/chat.js";
|
|
240
|
-
import { COUPON_EXPIRATION as
|
|
240
|
+
import { COUPON_EXPIRATION as Kx, DISCOUNT_APPLIES_TO as Qx, DISCOUNT_TARGET_SELECTION as Xx, DISCOUNT_TARGET_TYPES as zx, DISCOUNT_TYPES as jx, DISCOUNT_VALUE_TYPES as Zx, MIN_PURCHASE_REQUIREMENT as qx, OFFER_APPLIES_TO as Jx, initialDynamicCouponErrorState as $x, initialStaticCouponErrorState as on } from "./components/discount-modal/type.js";
|
|
241
241
|
import { CURTAIN_COLOR_CONFIG_MAP as en, CURTAIN_MODE as tn, CURTAIN_TYPES as an } from "./components/curtain/CurtainHelper.js";
|
|
242
242
|
import { Card as pn, PieChartAnalytics as mn } from "./components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js";
|
|
243
243
|
import { CardSelectionModal as xn } from "./components/card-selection-modal/CardSelectionModal.js";
|
|
@@ -257,8 +257,8 @@ import { CodeLanguage as bn } from "./components/code-block/types.js";
|
|
|
257
257
|
import { CohortError as Vn } from "./utils/logging/ErrorConstructor/CohortError.js";
|
|
258
258
|
import { ColourInput as Gn } from "./components/colourInput/ColourInput.js";
|
|
259
259
|
import { CompletedChecklistIcon as Wn } from "./assets/icons/CompletedChecklistIcon.js";
|
|
260
|
-
import { ConnectedAppDialog as
|
|
261
|
-
import { CountriesData as
|
|
260
|
+
import { ConnectedAppDialog as Kn } from "./components/connected-app-dialog/ConnectedAppDialog.js";
|
|
261
|
+
import { CountriesData as Xn } from "./components/country-code-picker/CountryCodePicker.modal.js";
|
|
262
262
|
import { CountryCodePicker as jn } from "./components/country-code-picker/CountryCodePicker.js";
|
|
263
263
|
import { CountryPicker as qn } from "./components/country-code-picker/CountryPicker.js";
|
|
264
264
|
import { CouponExpiration as $n } from "./components/discount-modal/CouponExpiration/CouponExpiration.js";
|
|
@@ -278,8 +278,8 @@ import { DeleteConfirmationModal as wi } from "./components/states-modal/DeleteC
|
|
|
278
278
|
import { DiscountModal as Hi } from "./components/discount-modal/DiscountModal.js";
|
|
279
279
|
import { DotPulse as vi } from "./components/dot-pulse/DotPulse.js";
|
|
280
280
|
import { DropShadow as Yi } from "./components/dropShadow/DropShadow.js";
|
|
281
|
-
import { Dropdown as
|
|
282
|
-
import { DropdownButton as
|
|
281
|
+
import { Dropdown as Qi } from "./components/dropdown/Dropdown.js";
|
|
282
|
+
import { DropdownButton as zi } from "./components/dropdown-button/DropdownButton.js";
|
|
283
283
|
import { DropdownPopover as Zi } from "./components/dropdown/DropdownPopover/index.js";
|
|
284
284
|
import { DualIconButton as Ji } from "./components/dual-icon-button/DualIconButton.js";
|
|
285
285
|
import { DurationUnit as os } from "./components/analytics-chips-and-dropdowns/chart/scoreBlock/types.js";
|
|
@@ -301,7 +301,7 @@ import { GRAPH_ORIENTATION as Ms } from "./components/analytics-chips-and-dropdo
|
|
|
301
301
|
import { HEAT as ks, HEAT_COLORS as Fs, HEAT_GRADING_TYPE as Us, HeatMap as bs } from "./components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js";
|
|
302
302
|
import { HTTPMethods as Vs, HTTP_CODE as Hs, RequestExecutor as Gs, TRANSACTION_ENABLED_STORE_IDS as vs } from "./request-executor/executor.js";
|
|
303
303
|
import { HalfDoughnutChart as Ys } from "./components/half-doughnut-chart/HalfDoughnutChart.js";
|
|
304
|
-
import { HeatBoxStyled as
|
|
304
|
+
import { HeatBoxStyled as Qs, HeatMapVertical as Xs } from "./components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js";
|
|
305
305
|
import { HorinzontalBar as js } from "./components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js";
|
|
306
306
|
import { HorizontalGraph as qs } from "./components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js";
|
|
307
307
|
import { IconButton as $s } from "./components/icon-button/IconButton.js";
|
|
@@ -323,8 +323,8 @@ import { OUT_OF_STOCK_ACTION as bd, ScreenName as wd } from "./components/produc
|
|
|
323
323
|
import { OpenedDropdown as Hd } from "./components/dropdown/OpenedDropdown/components/OpennedDropdown.js";
|
|
324
324
|
import { POPUP_DIMENSIONS as vd } from "./components/feature-announcements/constants/dimensions.js";
|
|
325
325
|
import { Pagination as Yd } from "./components/pagination/Pagination.js";
|
|
326
|
-
import { PickerType as
|
|
327
|
-
import { PieChart as
|
|
326
|
+
import { PickerType as Qd } from "./components/variable-picker-v3/model.js";
|
|
327
|
+
import { PieChart as zd } from "./components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js";
|
|
328
328
|
import { PostLiveChecklist as Zd } from "./components/post-live-checklist/PostLiveChecklist.js";
|
|
329
329
|
import { PostLiveChecklistItem as Jd } from "./components/post-live-checklist-item/PostLiveChecklistItem.js";
|
|
330
330
|
import { PricePleaseProductPicker as ou, ProductPickerContent as ru } from "./components/product-picker/ProductPickerModal.js";
|
|
@@ -346,8 +346,8 @@ import { ScoreBlock as bu } from "./components/analytics-chips-and-dropdowns/cha
|
|
|
346
346
|
import { SearchBar as Vu } from "./components/searchBar/searchBar.js";
|
|
347
347
|
import { SearchIcon as Gu } from "./assets/icons/searchIcon.js";
|
|
348
348
|
import { ShopifyScopeWrapper as Wu } from "./components/states/ShopifyScopeWrapper.js";
|
|
349
|
-
import { ShowShopifyRestrictedModal as
|
|
350
|
-
import { SideModal as
|
|
349
|
+
import { ShowShopifyRestrictedModal as Ku } from "./components/bik-layout/ShowShopifyRestrictedModal.js";
|
|
350
|
+
import { SideModal as Xu } from "./components/side-modal/SideModal.js";
|
|
351
351
|
import { SidebarSkeleton as ju } from "./components/bik-layout/SidebarSkeleton.js";
|
|
352
352
|
import { SimpleSidebar as qu } from "./components/bik-layout/SimpleSidebar.js";
|
|
353
353
|
import { SmallCheckIcon as $u } from "./assets/icons/SmallCheckIcon.js";
|
|
@@ -372,8 +372,8 @@ import { TextPickerModal as bT } from "./components/text-picker/TextPickerModal.
|
|
|
372
372
|
import { TimePicker as VT } from "./components/datePicker/TimePicker.js";
|
|
373
373
|
import { Toaster as GT } from "./components/toaster/Toaster.js";
|
|
374
374
|
import { ToolSource as WT } from "./components/agent-builder/constants/tools.js";
|
|
375
|
-
import { Tooltip as
|
|
376
|
-
import { TruncateValue as
|
|
375
|
+
import { Tooltip as KT } from "./components/tooltips/Tooltip.js";
|
|
376
|
+
import { TruncateValue as XT, calculatePercentage as zT, roundNumber as jT, truncateValueForIndianStore as ZT, truncateValueForInternationalStore as qT, truncateValueTo10K as JT, truncateValueToA as $T, truncateValueToB as oc, truncateValueToC as rc, truncateValueToK as ec, truncateValueToL as tc, truncateValueToM as ac, truncateValueToT as fc } from "./components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js";
|
|
377
377
|
import { VariableEditorHelper as mc } from "./components/template-preview/helpers/VariableEditorHelper.js";
|
|
378
378
|
import { VariablePicker as xc } from "./components/variable-picker-v3/VariablePicker.js";
|
|
379
379
|
import { VerticalBarAndLinearGraph as ic } from "./components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js";
|
|
@@ -390,32 +390,31 @@ import { WhatsappLikePreview as Mc } from "./components/template-preview/WhatsAp
|
|
|
390
390
|
import { WhatsappLikePreviewV2 as kc } from "./components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js";
|
|
391
391
|
import { buildAgentMentionItems as Uc, editorDocToInstructions as bc, instructionsToEditorHtml as wc } from "./components/agent-builder/utils/mentionSerialization.js";
|
|
392
392
|
import { environment as Hc } from "./firebase/environment.js";
|
|
393
|
-
import {
|
|
394
|
-
import {
|
|
395
|
-
import {
|
|
396
|
-
import {
|
|
397
|
-
import {
|
|
398
|
-
import {
|
|
399
|
-
import {
|
|
400
|
-
import {
|
|
401
|
-
import {
|
|
402
|
-
import {
|
|
403
|
-
import {
|
|
404
|
-
import {
|
|
405
|
-
import {
|
|
406
|
-
import {
|
|
407
|
-
import {
|
|
408
|
-
import {
|
|
409
|
-
import {
|
|
410
|
-
import {
|
|
411
|
-
import { useWhatsNew as HA } from "./components/whats-new/useWhatsNew.js";
|
|
393
|
+
import { getAllDataFromTemplateComponent as vc, getAllDataFromWebpushTemplateComponent as Wc } from "./components/template-context-mapper/utils/getDataFromTemplateComponent.js";
|
|
394
|
+
import { getAuthMethods as Kc, getFirestoreLiteMethods as Qc, getFirestoreMethods as Xc, getFunctionsMethods as zc, getMessagingMethods as jc, getStorageMethods as Zc } from "./firebase/lazyFirebaseMethods.js";
|
|
395
|
+
import { getBodyHtml as Jc, getSectionsHtml as $c } from "./editor/BikEditor.utils.js";
|
|
396
|
+
import { getFireStoreDb as rA } from "./firebase/lazyFirestore.js";
|
|
397
|
+
import { getFireStoreLiteDb as tA } from "./firebase/lazyFirestoreLite.js";
|
|
398
|
+
import { getFirebaseChatStorage as fA } from "./firebase/lazyStorage.js";
|
|
399
|
+
import { isVariable as mA, validateIsUrl as lA } from "./components/template-context-mapper/utils/validateIsUrl.js";
|
|
400
|
+
import { queryBuilderCacheSlice as nA } from "./components/QueryBuilder/redux/queryBuilderCache.reducer.js";
|
|
401
|
+
import { queryBuilderSlice as sA } from "./components/QueryBuilder/redux/queryBuilder.reducer.js";
|
|
402
|
+
import { renderVariableUIForPreview as uA } from "./components/template-preview/helpers/SmsTemplateHelper.js";
|
|
403
|
+
import { resizeImage as cA } from "./utils/resizeImage.js";
|
|
404
|
+
import { toLiveChatText as CA } from "./editor/serializers/toLiveChatText.js";
|
|
405
|
+
import { toWhatsAppText as EA } from "./editor/serializers/toWhatsAppText.js";
|
|
406
|
+
import { unwrapDropdownValue as PA } from "./components/dropdown/utils.js";
|
|
407
|
+
import { useAIChat as _A } from "./components/bik-chatbot/services/useAIChat.js";
|
|
408
|
+
import { useAgentDraft as OA } from "./components/agent-builder/hooks/useAgentDraft.js";
|
|
409
|
+
import { useFeatureAnnouncements as BA } from "./components/feature-announcements/hooks/useFeatureAnnouncements.js";
|
|
410
|
+
import { useWhatsNew as DA } from "./components/whats-new/useWhatsNew.js";
|
|
412
411
|
export {
|
|
413
412
|
cp as ACTIONS_TYPES,
|
|
414
413
|
_p as AD_STRING_OPERATORS,
|
|
415
414
|
Wp as AGENT_CHAR_LIMITS,
|
|
416
|
-
|
|
415
|
+
Kp as AIActionVariant,
|
|
417
416
|
qp as AIChat,
|
|
418
|
-
|
|
417
|
+
Qp as AIEditorActionTypes,
|
|
419
418
|
$p as AIProvider,
|
|
420
419
|
em as AI_TAG_CHANGE_RATIO_THRESHOLD,
|
|
421
420
|
pm as ALERT_TYPES,
|
|
@@ -446,10 +445,10 @@ export {
|
|
|
446
445
|
To as AiEventGenerating,
|
|
447
446
|
Ym as AiSyncProgress,
|
|
448
447
|
Ao as Alarm,
|
|
449
|
-
|
|
448
|
+
Qm as Alert,
|
|
450
449
|
So as AlertIcon,
|
|
451
450
|
Io as AlertTriangle,
|
|
452
|
-
|
|
451
|
+
zm as AnalyticsCard,
|
|
453
452
|
Zm as AnalyticsChip,
|
|
454
453
|
Jm as AnalyticsContainer,
|
|
455
454
|
rl as AnalyticsDropdown,
|
|
@@ -472,8 +471,8 @@ export {
|
|
|
472
471
|
Fl as BackgroundImageContainer,
|
|
473
472
|
Gl as BannerThirdPartyIcon,
|
|
474
473
|
vl as BannerType,
|
|
475
|
-
|
|
476
|
-
|
|
474
|
+
Kl as BaseQueryBuilderNode,
|
|
475
|
+
Xl as BaseWhatsappContentLangHelper,
|
|
477
476
|
jl as BikAccordion,
|
|
478
477
|
yo as BikAiStarsIcon,
|
|
479
478
|
ql as BikEditor,
|
|
@@ -504,8 +503,8 @@ export {
|
|
|
504
503
|
Ix as BottomWrapper,
|
|
505
504
|
Go as Box,
|
|
506
505
|
Wo as BoxRound,
|
|
507
|
-
|
|
508
|
-
|
|
506
|
+
Ko as BoxSearch,
|
|
507
|
+
Xo as BoxV2,
|
|
509
508
|
jo as BrandHome,
|
|
510
509
|
Ox as BroadcastFlowError,
|
|
511
510
|
qo as BrokenMediaImage,
|
|
@@ -524,7 +523,7 @@ export {
|
|
|
524
523
|
p as COLORS,
|
|
525
524
|
mm as COLOR_CONFIG_MAP,
|
|
526
525
|
lm as CONTENT_POSITION,
|
|
527
|
-
|
|
526
|
+
Kx as COUPON_EXPIRATION,
|
|
528
527
|
en as CURTAIN_COLOR_CONFIG_MAP,
|
|
529
528
|
tn as CURTAIN_MODE,
|
|
530
529
|
an as CURTAIN_TYPES,
|
|
@@ -573,22 +572,22 @@ export {
|
|
|
573
572
|
Gn as ColourInput,
|
|
574
573
|
Wn as CompletedChecklistIcon,
|
|
575
574
|
n as ComponentZindex,
|
|
576
|
-
|
|
575
|
+
Kn as ConnectedAppDialog,
|
|
577
576
|
Gr as CopyCodeIcon,
|
|
578
|
-
|
|
577
|
+
Xn as CountriesData,
|
|
579
578
|
jn as CountryCodePicker,
|
|
580
579
|
qn as CountryPicker,
|
|
581
580
|
$n as CouponExpiration,
|
|
582
581
|
Wr as Cross,
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
Kr as CubeIcon,
|
|
583
|
+
Xr as Cursor,
|
|
585
584
|
ri as Curtain,
|
|
586
585
|
to as CustomDataCategories,
|
|
587
586
|
ao as CustomDataType,
|
|
588
587
|
ti as CustomDateTime,
|
|
589
588
|
fi as CustomError,
|
|
590
589
|
j as CustomPortal,
|
|
591
|
-
|
|
590
|
+
Xp as CustomRightBorder,
|
|
592
591
|
jr as CustomiseIcon,
|
|
593
592
|
Bp as DATE_OPERATORS,
|
|
594
593
|
mi as DEFAULT_ACTIVE_FORMATS,
|
|
@@ -597,9 +596,9 @@ export {
|
|
|
597
596
|
si as DEFAULT_MAX_TOOL_CALLS,
|
|
598
597
|
di as DEFAULT_RESPONSE_FORMAT,
|
|
599
598
|
m as DEFAULT_THEME,
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
599
|
+
Qx as DISCOUNT_APPLIES_TO,
|
|
600
|
+
Xx as DISCOUNT_TARGET_SELECTION,
|
|
601
|
+
zx as DISCOUNT_TARGET_TYPES,
|
|
603
602
|
jx as DISCOUNT_TYPES,
|
|
604
603
|
Zx as DISCOUNT_VALUE_TYPES,
|
|
605
604
|
ci as DROP_POSITION,
|
|
@@ -619,8 +618,8 @@ export {
|
|
|
619
618
|
fe as Doubt,
|
|
620
619
|
me as DragHandle,
|
|
621
620
|
Yi as DropShadow,
|
|
622
|
-
|
|
623
|
-
|
|
621
|
+
Qi as Dropdown,
|
|
622
|
+
zi as DropdownButton,
|
|
624
623
|
Zi as DropdownPopover,
|
|
625
624
|
Ai as DropdownToggleContainer,
|
|
626
625
|
Ji as DualIconButton,
|
|
@@ -634,7 +633,7 @@ export {
|
|
|
634
633
|
el as EachItem,
|
|
635
634
|
xe as Edit,
|
|
636
635
|
ie as EditLabel,
|
|
637
|
-
|
|
636
|
+
zp as EditorActionTypes,
|
|
638
637
|
de as EmailChannel,
|
|
639
638
|
Te as Emoji,
|
|
640
639
|
Ae as EnableIcon,
|
|
@@ -677,11 +676,11 @@ export {
|
|
|
677
676
|
Ys as HalfDoughnutChart,
|
|
678
677
|
We as HalfRectangle,
|
|
679
678
|
Px as HeaderWrapper,
|
|
680
|
-
|
|
681
|
-
|
|
679
|
+
Ke as HeadsetIcon,
|
|
680
|
+
Qs as HeatBoxStyled,
|
|
682
681
|
bs as HeatMap,
|
|
683
|
-
|
|
684
|
-
|
|
682
|
+
Xs as HeatMapVertical,
|
|
683
|
+
Xe as Help,
|
|
685
684
|
je as HelpIcon,
|
|
686
685
|
qe as Home,
|
|
687
686
|
js as HorinzontalBar,
|
|
@@ -741,9 +740,9 @@ export {
|
|
|
741
740
|
Jx as OFFER_APPLIES_TO,
|
|
742
741
|
bd as OUT_OF_STOCK_ACTION,
|
|
743
742
|
Wt as OnboardingLogo,
|
|
744
|
-
|
|
743
|
+
Kt as OpenAI,
|
|
745
744
|
Hd as OpenedDropdown,
|
|
746
|
-
|
|
745
|
+
Xt as OrderTrackingIcon,
|
|
747
746
|
Ml as POD,
|
|
748
747
|
vd as POPUP_DIMENSIONS,
|
|
749
748
|
Yd as Pagination,
|
|
@@ -751,8 +750,8 @@ export {
|
|
|
751
750
|
qt as PercentageIcon,
|
|
752
751
|
$t as Phone,
|
|
753
752
|
ra as PhoneRound,
|
|
754
|
-
|
|
755
|
-
|
|
753
|
+
Qd as PickerType,
|
|
754
|
+
zd as PieChart,
|
|
756
755
|
mn as PieChartAnalytics,
|
|
757
756
|
ta as Play,
|
|
758
757
|
fa as Plus,
|
|
@@ -793,7 +792,7 @@ export {
|
|
|
793
792
|
ha as RedirectToNew,
|
|
794
793
|
ga as Refresh,
|
|
795
794
|
Gs as RequestExecutor,
|
|
796
|
-
|
|
795
|
+
K as ResizableImage,
|
|
797
796
|
Na as Retry,
|
|
798
797
|
La as RetryIcon,
|
|
799
798
|
ml as RightPanelTemplateAnalytics,
|
|
@@ -818,11 +817,11 @@ export {
|
|
|
818
817
|
ni as ShimmerImage,
|
|
819
818
|
Wa as ShippingIcon,
|
|
820
819
|
Wu as ShopifyScopeWrapper,
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
820
|
+
Ka as ShoppingIcon,
|
|
821
|
+
Ku as ShowShopifyRestrictedModal,
|
|
822
|
+
Xu as SideModal,
|
|
824
823
|
ju as SidebarSkeleton,
|
|
825
|
-
|
|
824
|
+
Xa as Similar,
|
|
826
825
|
qu as SimpleSidebar,
|
|
827
826
|
$u as SmallCheckIcon,
|
|
828
827
|
L as SmallRegular,
|
|
@@ -895,11 +894,11 @@ export {
|
|
|
895
894
|
G as TitleXlarge,
|
|
896
895
|
GT as Toaster,
|
|
897
896
|
WT as ToolSource,
|
|
898
|
-
|
|
897
|
+
KT as Tooltip,
|
|
899
898
|
Ri as TooltipStyled,
|
|
900
899
|
Uf as TrainingIcon,
|
|
901
900
|
wf as TriangleError,
|
|
902
|
-
|
|
901
|
+
XT as TruncateValue,
|
|
903
902
|
Pp as UNSUBSCRIBE_URL_OPTION,
|
|
904
903
|
_l as URL_PATTERN,
|
|
905
904
|
Hf as Undo,
|
|
@@ -907,11 +906,11 @@ export {
|
|
|
907
906
|
ro as UnsatisfactoryCountIntentWiseModal,
|
|
908
907
|
$ as UnsatisfactoryResponseList,
|
|
909
908
|
Yf as Upload,
|
|
910
|
-
|
|
909
|
+
Qf as UserIcon,
|
|
911
910
|
mc as VariableEditorHelper,
|
|
912
911
|
xc as VariablePicker,
|
|
913
912
|
ic as VerticalBarAndLinearGraph,
|
|
914
|
-
|
|
913
|
+
zf as VerticalDots,
|
|
915
914
|
Zf as VerticalFullScreenModal,
|
|
916
915
|
dc as VerticalGraph,
|
|
917
916
|
Jf as VideoCamcorder,
|
|
@@ -937,59 +936,50 @@ export {
|
|
|
937
936
|
kc as WhatsappLikePreviewV2,
|
|
938
937
|
up as WhiteStarFilled,
|
|
939
938
|
Uc as buildAgentMentionItems,
|
|
940
|
-
|
|
939
|
+
zT as calculatePercentage,
|
|
941
940
|
tm as computeAiTagOnAccept,
|
|
942
941
|
Wx as createSessionRecord,
|
|
943
942
|
Mi as dateOptions,
|
|
944
943
|
_x as defaultTabs,
|
|
945
944
|
bc as editorDocToInstructions,
|
|
946
945
|
Hc as environment,
|
|
947
|
-
vc as escapeFormulaInjection,
|
|
948
946
|
hl as filterPhoneCandidates,
|
|
949
947
|
tl as formatDate,
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
948
|
+
vc as getAllDataFromTemplateComponent,
|
|
949
|
+
Wc as getAllDataFromWebpushTemplateComponent,
|
|
950
|
+
Kc as getAuthMethods,
|
|
951
|
+
Jc as getBodyHtml,
|
|
952
|
+
rA as getFireStoreDb,
|
|
953
|
+
tA as getFireStoreLiteDb,
|
|
954
|
+
fA as getFirebaseChatStorage,
|
|
955
|
+
Qc as getFirestoreLiteMethods,
|
|
956
|
+
Xc as getFirestoreMethods,
|
|
957
|
+
zc as getFunctionsMethods,
|
|
958
|
+
jc as getMessagingMethods,
|
|
961
959
|
sd as getOrInitFirebaseChatApp,
|
|
962
|
-
|
|
963
|
-
|
|
960
|
+
$c as getSectionsHtml,
|
|
961
|
+
Zc as getStorageMethods,
|
|
964
962
|
Wl as getUrlForBannerThirdPartyIcon,
|
|
965
963
|
$x as initialDynamicCouponErrorState,
|
|
966
964
|
on as initialStaticCouponErrorState,
|
|
967
965
|
wc as instructionsToEditorHtml,
|
|
968
|
-
Wc as isAllowedImageUrl,
|
|
969
|
-
Yc as isAllowedLinkUrl,
|
|
970
|
-
zc as isAllowedUrl,
|
|
971
966
|
Ol as isCompleteFormatting,
|
|
972
967
|
gl as isCompleteMarkdownLink,
|
|
973
968
|
Bl as isCompleteUrl,
|
|
974
|
-
|
|
969
|
+
mA as isVariable,
|
|
975
970
|
dd as lazyChatConfig,
|
|
976
971
|
ud as lazyStagingConfig,
|
|
977
972
|
am as levenshteinDistance,
|
|
978
|
-
|
|
979
|
-
|
|
973
|
+
nA as queryBuilderCacheSlice,
|
|
974
|
+
sA as queryBuilderSlice,
|
|
980
975
|
o as regexPatterns,
|
|
981
|
-
|
|
982
|
-
|
|
976
|
+
uA as renderVariableUIForPreview,
|
|
977
|
+
cA as resizeImage,
|
|
983
978
|
Td as rnSecondaryAuth,
|
|
984
979
|
jT as roundNumber,
|
|
985
|
-
Kc as sanitizeBasicHtml,
|
|
986
|
-
Qc as sanitizeCssProperties,
|
|
987
|
-
Xc as sanitizeEmailHtml,
|
|
988
|
-
jc as sanitizePlainText,
|
|
989
|
-
Zc as stripHtmlTags,
|
|
990
980
|
Nl as stripMarkdownFormatting,
|
|
991
|
-
|
|
992
|
-
|
|
981
|
+
CA as toLiveChatText,
|
|
982
|
+
EA as toWhatsAppText,
|
|
993
983
|
ZT as truncateValueForIndianStore,
|
|
994
984
|
qT as truncateValueForInternationalStore,
|
|
995
985
|
JT as truncateValueTo10K,
|
|
@@ -1000,14 +990,14 @@ export {
|
|
|
1000
990
|
tc as truncateValueToL,
|
|
1001
991
|
ac as truncateValueToM,
|
|
1002
992
|
fc as truncateValueToT,
|
|
1003
|
-
|
|
1004
|
-
|
|
993
|
+
PA as unwrapDropdownValue,
|
|
994
|
+
_A as useAIChat,
|
|
1005
995
|
om as useAIContext,
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
996
|
+
OA as useAgentDraft,
|
|
997
|
+
BA as useFeatureAnnouncements,
|
|
998
|
+
DA as useWhatsNew,
|
|
1009
999
|
Bc as useWhatsNewContext,
|
|
1010
|
-
|
|
1011
|
-
|
|
1000
|
+
lA as validateIsUrl,
|
|
1001
|
+
X as validateURL
|
|
1012
1002
|
};
|
|
1013
1003
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bikdotai/bik-component-library",
|
|
3
|
-
"version": "0.0.838
|
|
3
|
+
"version": "0.0.838",
|
|
4
4
|
"description": "Bik Component Library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
"browser-image-compression": "^2.0.2",
|
|
94
94
|
"chart.js": "^3.9.1",
|
|
95
95
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
96
|
-
"dompurify": "^3.3.3",
|
|
97
96
|
"emoji-picker-react": "^4.16.1",
|
|
98
97
|
"firebase": "^12.13.0",
|
|
99
98
|
"idb-keyval": "^6.2.2",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../node_modules/@tiptap/core/dist/index.js"),d=require("@tiptap/pm/state"),r=/<\/?[a-zA-Z][a-zA-Z0-9]*(?:\s[^>]*)?\/?>/g,g=new Set(["script","iframe","object","embed","applet","form","input","button","select","option","textarea","style","link","meta","base","svg","math","noscript","template"]),f=/<\/?([a-zA-Z][a-zA-Z0-9]*)/;function x(s){const n=s.match(f);return n?g.has(n[1].toLowerCase()):!1}const A=m.Extension.create({name:"htmlTagStrip",addOptions(){return{stripAll:!0}},addProseMirrorPlugins(){const{stripAll:s}=this.options,n=s?()=>!0:a=>x(a);return[new d.Plugin({appendTransaction(a,T,i){if(!a.some(t=>t.docChanged))return null;const{tr:e}=i;let p=!1;return i.doc.descendants((t,o)=>{if(!t.isText||!t.text||(r.lastIndex=0,!r.test(t.text)))return;r.lastIndex=0;const l=t.text.replace(r,u=>n(u)?"":u);if(l===t.text)return;const c=o+t.nodeSize;l?e.replaceWith(e.mapping.map(o),e.mapping.map(c),i.schema.text(l,t.marks)):e.delete(e.mapping.map(o),e.mapping.map(c)),p=!0}),p?(e.setMeta("addToHistory",!1),e):null}})]}});exports.HtmlTagStripExtension=A;
|
|
2
|
-
//# sourceMappingURL=HtmlTagStripExtension.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HtmlTagStripExtension.js","sources":["../../../../../src/editor/extensions/htmlTagStrip/HtmlTagStripExtension.ts"],"sourcesContent":["import { Extension } from '@tiptap/core';\nimport { Plugin } from '@tiptap/pm/state';\n\nconst COMPLETE_TAG = /<\\/?[a-zA-Z][a-zA-Z0-9]*(?:\\s[^>]*)?\\/?>/g;\n\n// Tags that have no business in an email — stripped even in rich-paste mode.\nconst DANGEROUS_TAG_NAMES = new Set([\n\t'script',\n\t'iframe',\n\t'object',\n\t'embed',\n\t'applet',\n\t'form',\n\t'input',\n\t'button',\n\t'select',\n\t'option',\n\t'textarea',\n\t'style',\n\t'link',\n\t'meta',\n\t'base',\n\t'svg',\n\t'math',\n\t'noscript',\n\t'template',\n]);\n\nconst TAG_NAME_RE = /<\\/?([a-zA-Z][a-zA-Z0-9]*)/;\n\nfunction isDangerousTag(tag: string): boolean {\n\tconst m = tag.match(TAG_NAME_RE);\n\treturn m ? DANGEROUS_TAG_NAMES.has(m[1].toLowerCase()) : false;\n}\n\n/**\n * Strips HTML tags from typed text in real time.\n *\n * Two modes controlled by `stripAll`:\n * - `true` (non-email): strip ALL complete tags — `<h1>Hello</h1>` → `Hello`\n * - `false` (email): strip only DANGEROUS tags — `<script>`, `<iframe>`,\n * `<form>`, etc. — while preserving legitimate email tags like `<h1>`, `<table>`\n *\n * Incomplete tags like `<h` are preserved (the regex requires a closing `>`).\n * Non-tag angle brackets like `2 < 3` are also preserved.\n */\nexport const HtmlTagStripExtension = Extension.create({\n\tname: 'htmlTagStrip',\n\taddOptions() {\n\t\treturn { stripAll: true };\n\t},\n\taddProseMirrorPlugins() {\n\t\tconst { stripAll } = this.options;\n\t\tconst shouldStrip = stripAll\n\t\t\t? () => true\n\t\t\t: (tag: string) => isDangerousTag(tag);\n\n\t\treturn [\n\t\t\tnew Plugin({\n\t\t\t\tappendTransaction(transactions, _oldState, newState) {\n\t\t\t\t\tif (!transactions.some((t) => t.docChanged)) return null;\n\n\t\t\t\t\tconst { tr } = newState;\n\t\t\t\t\tlet changed = false;\n\n\t\t\t\t\tnewState.doc.descendants((node, pos) => {\n\t\t\t\t\t\tif (!node.isText || !node.text) return;\n\t\t\t\t\t\tCOMPLETE_TAG.lastIndex = 0;\n\t\t\t\t\t\tif (!COMPLETE_TAG.test(node.text)) return;\n\n\t\t\t\t\t\tCOMPLETE_TAG.lastIndex = 0;\n\t\t\t\t\t\tconst stripped = node.text.replace(COMPLETE_TAG, (match) =>\n\t\t\t\t\t\t\tshouldStrip(match) ? '' : match,\n\t\t\t\t\t\t);\n\t\t\t\t\t\tif (stripped === node.text) return;\n\n\t\t\t\t\t\tconst end = pos + node.nodeSize;\n\t\t\t\t\t\tif (stripped) {\n\t\t\t\t\t\t\ttr.replaceWith(\n\t\t\t\t\t\t\t\ttr.mapping.map(pos),\n\t\t\t\t\t\t\t\ttr.mapping.map(end),\n\t\t\t\t\t\t\t\tnewState.schema.text(stripped, node.marks),\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttr.delete(tr.mapping.map(pos), tr.mapping.map(end));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchanged = true;\n\t\t\t\t\t});\n\n\t\t\t\t\tif (!changed) return null;\n\t\t\t\t\ttr.setMeta('addToHistory', false);\n\t\t\t\t\treturn tr;\n\t\t\t\t},\n\t\t\t}),\n\t\t];\n\t},\n});\n"],"names":["COMPLETE_TAG","DANGEROUS_TAG_NAMES","TAG_NAME_RE","isDangerousTag","tag","m","HtmlTagStripExtension","Extension","stripAll","shouldStrip","Plugin","transactions","_oldState","newState","tr","changed","node","pos","stripped","match","end"],"mappings":"kLAGMA,EAAe,4CAGfC,MAA0B,IAAI,CACnC,SACA,SACA,SACA,QACA,SACA,OACA,QACA,SACA,SACA,SACA,WACA,QACA,OACA,OACA,OACA,MACA,OACA,WACA,UACD,CAAC,EAEKC,EAAc,6BAEpB,SAASC,EAAeC,EAAsB,CAC7C,MAAMC,EAAID,EAAI,MAAMF,CAAW,EAC/B,OAAOG,EAAIJ,EAAoB,IAAII,EAAE,CAAC,EAAE,YAAA,CAAa,EAAI,EAC1D,CAaO,MAAMC,EAAwBC,EAAAA,UAAU,OAAO,CACrD,KAAM,eACN,YAAa,CACZ,MAAO,CAAE,SAAU,EAAA,CACpB,EACA,uBAAwB,CACvB,KAAM,CAAE,SAAAC,GAAa,KAAK,QACpBC,EAAcD,EACjB,IAAM,GACLJ,GAAgBD,EAAeC,CAAG,EAEtC,MAAO,CACN,IAAIM,SAAO,CACV,kBAAkBC,EAAcC,EAAWC,EAAU,CACpD,GAAI,CAACF,EAAa,KAAM,GAAM,EAAE,UAAU,EAAG,OAAO,KAEpD,KAAM,CAAE,GAAAG,GAAOD,EACf,IAAIE,EAAU,GA0Bd,OAxBAF,EAAS,IAAI,YAAY,CAACG,EAAMC,IAAQ,CAGvC,GAFI,CAACD,EAAK,QAAU,CAACA,EAAK,OAC1BhB,EAAa,UAAY,EACrB,CAACA,EAAa,KAAKgB,EAAK,IAAI,GAAG,OAEnChB,EAAa,UAAY,EACzB,MAAMkB,EAAWF,EAAK,KAAK,QAAQhB,EAAemB,GACjDV,EAAYU,CAAK,EAAI,GAAKA,CAAA,EAE3B,GAAID,IAAaF,EAAK,KAAM,OAE5B,MAAMI,EAAMH,EAAMD,EAAK,SACnBE,EACHJ,EAAG,YACFA,EAAG,QAAQ,IAAIG,CAAG,EAClBH,EAAG,QAAQ,IAAIM,CAAG,EAClBP,EAAS,OAAO,KAAKK,EAAUF,EAAK,KAAK,CAAA,EAG1CF,EAAG,OAAOA,EAAG,QAAQ,IAAIG,CAAG,EAAGH,EAAG,QAAQ,IAAIM,CAAG,CAAC,EAEnDL,EAAU,EACX,CAAC,EAEIA,GACLD,EAAG,QAAQ,eAAgB,EAAK,EACzBA,GAFc,IAGtB,CAAA,CACA,CAAA,CAEH,CACD,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("dompurify"),u=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},i=u(f),l=()=>typeof window<"u",n=/<\/?[^>]+(>|$)/g,p=new Set(["https:","mailto:","tel:"]),g=new Set(["https:","data:"]),a=(t,e)=>{if(!t)return null;try{const r=new URL(t,"https://bik.local");return e.has(r.protocol)?t:null}catch{return null}},m=t=>a(t,p)!==null,b=t=>a(t,g)!==null,h=/<\/?[a-zA-Z][a-zA-Z0-9]*(?:\s[^>]*)?\/?>/g,A=t=>t?t.replace(h,""):"",O=/^[=+\-@\t\r]/,L=t=>t?O.test(t)?`'${t}`:t:"",w=t=>t?l()?i.default.sanitize(t,{ALLOWED_TAGS:[],ALLOWED_ATTR:[],KEEP_CONTENT:!0}):t.replace(n,""):"",_=t=>t?l()?i.default.sanitize(t,{ALLOWED_TAGS:["p","br","b","strong","i","em","u","s","span","a","ul","ol","li","blockquote"],ALLOWED_ATTR:["href","target","rel","class"],FORBID_TAGS:["style"],FORBID_ATTR:["style"],ALLOWED_URI_REGEXP:/^(?:https|mailto|tel):/i}):t.replace(n,""):"",T=new Set(["color","background-color","background","font-family","font-size","font-weight","font-style","font-variant","font","line-height","letter-spacing","word-spacing","text-align","text-decoration","text-transform","text-indent","vertical-align","white-space","word-wrap","word-break","overflow-wrap","direction","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border","border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-collapse","border-spacing","border-radius","width","min-width","max-width","height","min-height","max-height","display","visibility","opacity","float","clear","overflow","overflow-x","overflow-y","table-layout","list-style","list-style-type","list-style-position","box-sizing"]),E=/url\s*\(|expression\s*\(|-moz-binding|behavior\s*:|@import|javascript:|data:/i,d=t=>t.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;const r=e.indexOf(":");if(r<0)return!1;const s=e.slice(0,r).trim().toLowerCase(),o=e.slice(r+1).trim();return T.has(s)&&!E.test(o)}).join("; "),y=t=>{if(!t)return"";if(!l())return t.replace(n,"");const e=(s,o)=>{if(o.attrName!=="style")return;const c=d(o.attrValue);c?o.attrValue=c:o.keepAttr=!1};i.default.addHook("uponSanitizeAttribute",e);const r=i.default.sanitize(t,{ALLOWED_TAGS:["p","br","div","span","strong","b","em","i","u","s","ul","ol","li","blockquote","h1","h2","h3","h4","h5","h6","a","img","table","thead","tbody","tfoot","tr","th","td","caption","colgroup","col","center","font","hr","pre","code","sub","sup","small","big","figure","figcaption","section","article","header","footer","abbr","cite","mark","del","ins"],ALLOWED_ATTR:["href","target","rel","src","alt","title","width","height","style","class","align","valign","colspan","rowspan","cellpadding","cellspacing","border","color","bgcolor"],ALLOW_UNKNOWN_PROTOCOLS:!1});return i.default.removeHook("uponSanitizeAttribute"),r};exports.escapeFormulaInjection=L;exports.isAllowedImageUrl=b;exports.isAllowedLinkUrl=m;exports.isAllowedUrl=a;exports.sanitizeBasicHtml=_;exports.sanitizeCssProperties=d;exports.sanitizeEmailHtml=y;exports.sanitizePlainText=w;exports.stripHtmlTags=A;
|
|
2
|
-
//# sourceMappingURL=sanitize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize.js","sources":["../../../src/helpers/sanitize.ts"],"sourcesContent":["import DOMPurify from 'dompurify';\n\n/**\n * Central HTML/CSS-injection sanitisation for the component library.\n *\n * Two categories:\n *\n * INPUT layer (onChange) — strips tags, keeps plain text:\n * - stripHtmlTags: remove every HTML tag, return raw text\n * - escapeFormulaInjection: prefix CSV-dangerous leading chars with '\n *\n * RENDER layer (dangerouslySetInnerHTML / innerHTML) — DOMPurify-based:\n * - sanitizePlainText: ALLOWED_TAGS: [] (for sinks that must show plain text)\n * - sanitizeBasicHtml: formatting allowlist (chat bubbles, rich previews)\n * - sanitizeEmailHtml: full email allowlist (tables, images, inline style)\n */\n\nconst hasDOM = (): boolean => typeof window !== 'undefined';\n\nconst REGEX_TAG_STRIP = /<\\/?[^>]+(>|$)/g;\n\nconst ALLOWED_LINK_PROTOCOLS = new Set(['https:', 'mailto:', 'tel:']);\nconst ALLOWED_IMG_PROTOCOLS = new Set(['https:', 'data:']);\n\nexport const isAllowedUrl = (\n\turl: string | null | undefined,\n\tallowed: Set<string>,\n): string | null => {\n\tif (!url) return null;\n\ttry {\n\t\tconst parsed = new URL(url, 'https://bik.local');\n\t\treturn allowed.has(parsed.protocol) ? url : null;\n\t} catch {\n\t\treturn null;\n\t}\n};\n\nexport const isAllowedLinkUrl = (url?: string | null): boolean =>\n\tisAllowedUrl(url, ALLOWED_LINK_PROTOCOLS) !== null;\n\nexport const isAllowedImageUrl = (url?: string | null): boolean =>\n\tisAllowedUrl(url, ALLOWED_IMG_PROTOCOLS) !== null;\n\n// ---------------------------------------------------------------------------\n// INPUT layer — for onChange handlers on plain-text inputs\n// ---------------------------------------------------------------------------\n\n/**\n * Strip complete HTML tags from the input, return the raw text content.\n * Uses a regex that only matches tags with both < and >, so partial input\n * like \"<h\" while typing is preserved (no closing >, not a tag yet).\n *\n * \"<h1>Hello</h1>\" → \"Hello\"\n * \"<h\" → \"<h\" (incomplete, kept)\n * \"2 < 3\" → \"2 < 3\"\n * \"<script>x</script>\" → \"x\"\n */\nconst COMPLETE_TAG = /<\\/?[a-zA-Z][a-zA-Z0-9]*(?:\\s[^>]*)?\\/?>/g;\n\nexport const stripHtmlTags = (input: string | null | undefined): string => {\n\tif (!input) return '';\n\treturn input.replace(COMPLETE_TAG, '');\n};\n\nconst CSV_FORMULA_PREFIX = /^[=+\\-@\\t\\r]/;\n\n/**\n * Escape CSV/Excel formula injection. Prefixes values starting with a\n * formula-triggering character (=, +, -, @, tab, CR) with a single quote\n * so spreadsheet software treats them as literal text.\n */\nexport const escapeFormulaInjection = (\n\tinput: string | null | undefined,\n): string => {\n\tif (!input) return '';\n\treturn CSV_FORMULA_PREFIX.test(input) ? `'${input}` : input;\n};\n\n// ---------------------------------------------------------------------------\n// RENDER layer — for dangerouslySetInnerHTML / innerHTML sinks\n// ---------------------------------------------------------------------------\n\n/**\n * Render-safe plain text. Strips every tag and returns safe HTML (with\n * entities). Use at render sinks that must show plain text via innerHTML.\n * For input onChange, use stripHtmlTags instead.\n */\nexport const sanitizePlainText = (input: string | null | undefined): string => {\n\tif (!input) return '';\n\tif (!hasDOM()) return input.replace(REGEX_TAG_STRIP, '');\n\treturn DOMPurify.sanitize(input, {\n\t\tALLOWED_TAGS: [],\n\t\tALLOWED_ATTR: [],\n\t\tKEEP_CONTENT: true,\n\t});\n};\n\n/**\n * Basic rich text. A small formatting allowlist; no style tag/attr, links\n * restricted to safe protocols.\n */\nexport const sanitizeBasicHtml = (input: string | null | undefined): string => {\n\tif (!input) return '';\n\tif (!hasDOM()) return input.replace(REGEX_TAG_STRIP, '');\n\treturn DOMPurify.sanitize(input, {\n\t\tALLOWED_TAGS: [\n\t\t\t'p',\n\t\t\t'br',\n\t\t\t'b',\n\t\t\t'strong',\n\t\t\t'i',\n\t\t\t'em',\n\t\t\t'u',\n\t\t\t's',\n\t\t\t'span',\n\t\t\t'a',\n\t\t\t'ul',\n\t\t\t'ol',\n\t\t\t'li',\n\t\t\t'blockquote',\n\t\t],\n\t\tALLOWED_ATTR: ['href', 'target', 'rel', 'class'],\n\t\tFORBID_TAGS: ['style'],\n\t\tFORBID_ATTR: ['style'],\n\t\tALLOWED_URI_REGEXP: /^(?:https|mailto|tel):/i,\n\t});\n};\n\n// CSS properties safe for email rendering. Everything else is stripped from\n// inline style attributes to block position-overlay, url()-exfiltration,\n// expression(), and -moz-binding attacks.\nconst SAFE_CSS_PROPERTIES = new Set([\n\t'color',\n\t'background-color',\n\t'background',\n\t'font-family',\n\t'font-size',\n\t'font-weight',\n\t'font-style',\n\t'font-variant',\n\t'font',\n\t'line-height',\n\t'letter-spacing',\n\t'word-spacing',\n\t'text-align',\n\t'text-decoration',\n\t'text-transform',\n\t'text-indent',\n\t'vertical-align',\n\t'white-space',\n\t'word-wrap',\n\t'word-break',\n\t'overflow-wrap',\n\t'direction',\n\t'margin',\n\t'margin-top',\n\t'margin-right',\n\t'margin-bottom',\n\t'margin-left',\n\t'padding',\n\t'padding-top',\n\t'padding-right',\n\t'padding-bottom',\n\t'padding-left',\n\t'border',\n\t'border-top',\n\t'border-right',\n\t'border-bottom',\n\t'border-left',\n\t'border-width',\n\t'border-style',\n\t'border-color',\n\t'border-collapse',\n\t'border-spacing',\n\t'border-radius',\n\t'width',\n\t'min-width',\n\t'max-width',\n\t'height',\n\t'min-height',\n\t'max-height',\n\t'display',\n\t'visibility',\n\t'opacity',\n\t'float',\n\t'clear',\n\t'overflow',\n\t'overflow-x',\n\t'overflow-y',\n\t'table-layout',\n\t'list-style',\n\t'list-style-type',\n\t'list-style-position',\n\t'box-sizing',\n]);\n\n// Values that indicate CSS injection attempts regardless of property.\nconst DANGEROUS_CSS_VALUE =\n\t/url\\s*\\(|expression\\s*\\(|-moz-binding|behavior\\s*:|@import|javascript:|data:/i;\n\n/**\n * Filter an inline style string to only safe CSS properties with safe values.\n * Returns the cleaned style string (empty string if nothing survives).\n */\nexport const sanitizeCssProperties = (style: string): string => {\n\treturn style\n\t\t.split(';')\n\t\t.map((decl) => decl.trim())\n\t\t.filter((decl) => {\n\t\t\tif (!decl) return false;\n\t\t\tconst colonIdx = decl.indexOf(':');\n\t\t\tif (colonIdx < 0) return false;\n\t\t\tconst prop = decl.slice(0, colonIdx).trim().toLowerCase();\n\t\t\tconst value = decl.slice(colonIdx + 1).trim();\n\t\t\treturn SAFE_CSS_PROPERTIES.has(prop) && !DANGEROUS_CSS_VALUE.test(value);\n\t\t})\n\t\t.join('; ');\n};\n\n/**\n * Full rich text / inbound email HTML. Allowlist of tags and attributes an\n * email needs to render; everything else is stripped. Inline style attributes\n * are filtered to a safe CSS property allowlist.\n */\nexport const sanitizeEmailHtml = (input: string | null | undefined): string => {\n\tif (!input) return '';\n\tif (!hasDOM()) return input.replace(REGEX_TAG_STRIP, '');\n\n\tconst hook = (\n\t\t_node: Element,\n\t\tdata: { attrName: string; attrValue: string; keepAttr: boolean },\n\t) => {\n\t\tif (data.attrName !== 'style') return;\n\t\tconst clean = sanitizeCssProperties(data.attrValue);\n\t\tif (clean) {\n\t\t\tdata.attrValue = clean;\n\t\t} else {\n\t\t\tdata.keepAttr = false;\n\t\t}\n\t};\n\tDOMPurify.addHook('uponSanitizeAttribute', hook);\n\n\tconst result = DOMPurify.sanitize(input, {\n\t\tALLOWED_TAGS: [\n\t\t\t'p',\n\t\t\t'br',\n\t\t\t'div',\n\t\t\t'span',\n\t\t\t'strong',\n\t\t\t'b',\n\t\t\t'em',\n\t\t\t'i',\n\t\t\t'u',\n\t\t\t's',\n\t\t\t'ul',\n\t\t\t'ol',\n\t\t\t'li',\n\t\t\t'blockquote',\n\t\t\t'h1',\n\t\t\t'h2',\n\t\t\t'h3',\n\t\t\t'h4',\n\t\t\t'h5',\n\t\t\t'h6',\n\t\t\t'a',\n\t\t\t'img',\n\t\t\t'table',\n\t\t\t'thead',\n\t\t\t'tbody',\n\t\t\t'tfoot',\n\t\t\t'tr',\n\t\t\t'th',\n\t\t\t'td',\n\t\t\t'caption',\n\t\t\t'colgroup',\n\t\t\t'col',\n\t\t\t'center',\n\t\t\t'font',\n\t\t\t'hr',\n\t\t\t'pre',\n\t\t\t'code',\n\t\t\t'sub',\n\t\t\t'sup',\n\t\t\t'small',\n\t\t\t'big',\n\t\t\t'figure',\n\t\t\t'figcaption',\n\t\t\t'section',\n\t\t\t'article',\n\t\t\t'header',\n\t\t\t'footer',\n\t\t\t'abbr',\n\t\t\t'cite',\n\t\t\t'mark',\n\t\t\t'del',\n\t\t\t'ins',\n\t\t],\n\t\tALLOWED_ATTR: [\n\t\t\t'href',\n\t\t\t'target',\n\t\t\t'rel',\n\t\t\t'src',\n\t\t\t'alt',\n\t\t\t'title',\n\t\t\t'width',\n\t\t\t'height',\n\t\t\t'style',\n\t\t\t'class',\n\t\t\t'align',\n\t\t\t'valign',\n\t\t\t'colspan',\n\t\t\t'rowspan',\n\t\t\t'cellpadding',\n\t\t\t'cellspacing',\n\t\t\t'border',\n\t\t\t'color',\n\t\t\t'bgcolor',\n\t\t],\n\t\tALLOW_UNKNOWN_PROTOCOLS: false,\n\t});\n\n\tDOMPurify.removeHook('uponSanitizeAttribute');\n\treturn result;\n};\n"],"names":["hasDOM","REGEX_TAG_STRIP","ALLOWED_LINK_PROTOCOLS","ALLOWED_IMG_PROTOCOLS","isAllowedUrl","url","allowed","parsed","isAllowedLinkUrl","isAllowedImageUrl","COMPLETE_TAG","stripHtmlTags","input","CSV_FORMULA_PREFIX","escapeFormulaInjection","sanitizePlainText","DOMPurify","sanitizeBasicHtml","SAFE_CSS_PROPERTIES","DANGEROUS_CSS_VALUE","sanitizeCssProperties","style","decl","colonIdx","prop","value","sanitizeEmailHtml","hook","_node","data","clean","result"],"mappings":"4KAiBMA,EAAS,IAAe,OAAO,OAAW,IAE1CC,EAAkB,kBAElBC,EAAyB,IAAI,IAAI,CAAC,SAAU,UAAW,MAAM,CAAC,EAC9DC,EAAwB,IAAI,IAAI,CAAC,SAAU,OAAO,CAAC,EAE5CC,EAAe,CAC3BC,EACAC,IACmB,CACnB,GAAI,CAACD,EAAK,OAAO,KACjB,GAAI,CACH,MAAME,EAAS,IAAI,IAAIF,EAAK,mBAAmB,EAC/C,OAAOC,EAAQ,IAAIC,EAAO,QAAQ,EAAIF,EAAM,IAC7C,MAAQ,CACP,OAAO,IACR,CACD,EAEaG,EAAoBH,GAChCD,EAAaC,EAAKH,CAAsB,IAAM,KAElCO,EAAqBJ,GACjCD,EAAaC,EAAKF,CAAqB,IAAM,KAgBxCO,EAAe,4CAERC,EAAiBC,GACxBA,EACEA,EAAM,QAAQF,EAAc,EAAE,EADlB,GAIdG,EAAqB,eAOdC,EACZF,GAEKA,EACEC,EAAmB,KAAKD,CAAK,EAAI,IAAIA,CAAK,GAAKA,EADnC,GAaPG,EAAqBH,GAC5BA,EACAZ,EAAA,EACEgB,EAAAA,QAAU,SAASJ,EAAO,CAChC,aAAc,CAAA,EACd,aAAc,CAAA,EACd,aAAc,EAAA,CACd,EALqBA,EAAM,QAAQX,EAAiB,EAAE,EADpC,GAaPgB,EAAqBL,GAC5BA,EACAZ,EAAA,EACEgB,EAAAA,QAAU,SAASJ,EAAO,CAChC,aAAc,CACb,IACA,KACA,IACA,SACA,IACA,KACA,IACA,IACA,OACA,IACA,KACA,KACA,KACA,YAAA,EAED,aAAc,CAAC,OAAQ,SAAU,MAAO,OAAO,EAC/C,YAAa,CAAC,OAAO,EACrB,YAAa,CAAC,OAAO,EACrB,mBAAoB,yBAAA,CACpB,EAtBqBA,EAAM,QAAQX,EAAiB,EAAE,EADpC,GA6BdiB,MAA0B,IAAI,CACnC,QACA,mBACA,aACA,cACA,YACA,cACA,aACA,eACA,OACA,cACA,iBACA,eACA,aACA,kBACA,iBACA,cACA,iBACA,cACA,YACA,aACA,gBACA,YACA,SACA,aACA,eACA,gBACA,cACA,UACA,cACA,gBACA,iBACA,eACA,SACA,aACA,eACA,gBACA,cACA,eACA,eACA,eACA,kBACA,iBACA,gBACA,QACA,YACA,YACA,SACA,aACA,aACA,UACA,aACA,UACA,QACA,QACA,WACA,aACA,aACA,eACA,aACA,kBACA,sBACA,YACD,CAAC,EAGKC,EACL,gFAMYC,EAAyBC,GAC9BA,EACL,MAAM,GAAG,EACT,IAAKC,GAASA,EAAK,KAAA,CAAM,EACzB,OAAQA,GAAS,CACjB,GAAI,CAACA,EAAM,MAAO,GAClB,MAAMC,EAAWD,EAAK,QAAQ,GAAG,EACjC,GAAIC,EAAW,EAAG,MAAO,GACzB,MAAMC,EAAOF,EAAK,MAAM,EAAGC,CAAQ,EAAE,KAAA,EAAO,YAAA,EACtCE,EAAQH,EAAK,MAAMC,EAAW,CAAC,EAAE,KAAA,EACvC,OAAOL,EAAoB,IAAIM,CAAI,GAAK,CAACL,EAAoB,KAAKM,CAAK,CACxE,CAAC,EACA,KAAK,IAAI,EAQCC,EAAqBd,GAA6C,CAC9E,GAAI,CAACA,EAAO,MAAO,GACnB,GAAI,CAACZ,EAAA,SAAiBY,EAAM,QAAQX,EAAiB,EAAE,EAEvD,MAAM0B,EAAO,CACZC,EACAC,IACI,CACJ,GAAIA,EAAK,WAAa,QAAS,OAC/B,MAAMC,EAAQV,EAAsBS,EAAK,SAAS,EAC9CC,EACHD,EAAK,UAAYC,EAEjBD,EAAK,SAAW,EAElB,EACAb,UAAU,QAAQ,wBAAyBW,CAAI,EAE/C,MAAMI,EAASf,EAAAA,QAAU,SAASJ,EAAO,CACxC,aAAc,CACb,IACA,KACA,MACA,OACA,SACA,IACA,KACA,IACA,IACA,IACA,KACA,KACA,KACA,aACA,KACA,KACA,KACA,KACA,KACA,KACA,IACA,MACA,QACA,QACA,QACA,QACA,KACA,KACA,KACA,UACA,WACA,MACA,SACA,OACA,KACA,MACA,OACA,MACA,MACA,QACA,MACA,SACA,aACA,UACA,UACA,SACA,SACA,OACA,OACA,OACA,MACA,KAAA,EAED,aAAc,CACb,OACA,SACA,MACA,MACA,MACA,QACA,QACA,SACA,QACA,QACA,QACA,SACA,UACA,UACA,cACA,cACA,SACA,QACA,SAAA,EAED,wBAAyB,EAAA,CACzB,EAEDI,OAAAA,EAAAA,QAAU,WAAW,uBAAuB,EACrCe,CACR"}
|