@bigbinary/neeto-commons-frontend 2.0.13 → 2.0.14
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/README.md +1 -1
- package/package.json +1 -1
- package/react-utils.cjs.js +265 -257
- package/react-utils.d.ts +11 -2
- package/react-utils.js +266 -258
package/react-utils.cjs.js
CHANGED
|
@@ -11,11 +11,11 @@ var relativeTime = require('dayjs/plugin/relativeTime');
|
|
|
11
11
|
var updateLocale = require('dayjs/plugin/updateLocale');
|
|
12
12
|
var react = require('@honeybadger-io/react');
|
|
13
13
|
var reactI18next = require('react-i18next');
|
|
14
|
-
var reactQuery = require('react-query');
|
|
15
14
|
var i18next = require('i18next');
|
|
15
|
+
var yup = require('yup');
|
|
16
|
+
var reactQuery = require('react-query');
|
|
16
17
|
var formik$1 = require('@bigbinary/neetoui/formik');
|
|
17
18
|
var formik = require('formik');
|
|
18
|
-
var yup = require('yup');
|
|
19
19
|
var reactRouterDom = require('react-router-dom');
|
|
20
20
|
var layouts = require('@bigbinary/neetoui/layouts');
|
|
21
21
|
var axios$1 = require('axios');
|
|
@@ -290,8 +290,8 @@ var removeFixedColumns = function removeFixedColumns(fixedColumns, columnData) {
|
|
|
290
290
|
};
|
|
291
291
|
var filterBySearchTerm = function filterBySearchTerm(searchTerm, columns) {
|
|
292
292
|
return ramda.filter(function (_ref) {
|
|
293
|
-
var
|
|
294
|
-
return ramda.includes(ramda.trim(ramda.toLower(searchTerm)), ramda.trim(ramda.toLower(
|
|
293
|
+
var title = _ref.title;
|
|
294
|
+
return ramda.includes(ramda.trim(ramda.toLower(searchTerm)), ramda.trim(ramda.toLower(title)));
|
|
295
295
|
}, columns);
|
|
296
296
|
};
|
|
297
297
|
|
|
@@ -369,16 +369,18 @@ var Columns = function Columns(_ref) {
|
|
|
369
369
|
}, searchProps)), isNotEmpty(filteredColumns) ? filteredColumns.map(function (_ref4) {
|
|
370
370
|
var dataIndex = _ref4.dataIndex,
|
|
371
371
|
key = _ref4.key,
|
|
372
|
-
|
|
373
|
-
return /*#__PURE__*/React__default["default"].createElement(MenuItem
|
|
372
|
+
title = _ref4.title;
|
|
373
|
+
return /*#__PURE__*/React__default["default"].createElement(MenuItem, {
|
|
374
374
|
key: key
|
|
375
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
376
|
-
className: "neeto-ui-w-full"
|
|
375
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
|
|
376
|
+
className: "neeto-ui-w-full neeto-ui-px-3 neeto-ui-py-2 hover:neeto-ui-bg-gray-200 neeto-ui-cursor-pointer",
|
|
377
|
+
htmlFor: dataIndex
|
|
377
378
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Checkbox, _extends$4({
|
|
379
|
+
id: dataIndex,
|
|
378
380
|
name: dataIndex,
|
|
379
381
|
checked: !hiddenColumns.includes(dataIndex),
|
|
380
382
|
"data-cy": "neeto-ui-columns-checkbox",
|
|
381
|
-
label:
|
|
383
|
+
label: title,
|
|
382
384
|
onChange: handleChange
|
|
383
385
|
}, checkboxProps))));
|
|
384
386
|
}) : /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -524,6 +526,27 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
524
526
|
}, children);
|
|
525
527
|
};
|
|
526
528
|
|
|
529
|
+
var EMBED_WIDGET_S3_SCRIPT_STRING = "<script src=\"https://neeto-widget.s3.ap-south-1.amazonaws.com/embedNeetoWidget.js\"></script>";
|
|
530
|
+
var DISABLE_NEETO_CHAT = "disableNeetoChat: true,";
|
|
531
|
+
var DISABLE_NEETO_CHANGELOG = "disableNeetoChangelog: true,";
|
|
532
|
+
var DISABLE_NEETO_REPLAY = "disableNeetoReplay: true,";
|
|
533
|
+
var SAMPLE_CONTEXT_CODE_STRING = "window.NeetoReplayWidgetSessionContext = {\n key1: \"value\",\n key2: [\"array\", \"of\", \"values\"],\n /* More key-value pairs */\n}";
|
|
534
|
+
var SAMPLE_USER_IDENTITY_CODE_STRING = "window.NeetoWidgetUserIdentity = {\n user_identifier: \"USER_ID_HERE\",\n name: \"USER_NAME_HERE\",\n email: \"USER_EMAIL_HERE\",\n started_at: \"YYYY-MM-DD\",\n}";
|
|
535
|
+
var WIDGET_TYPES = {
|
|
536
|
+
changelog: "changelog",
|
|
537
|
+
chat: "chat",
|
|
538
|
+
replay: "replay"
|
|
539
|
+
};
|
|
540
|
+
var WIDGET_TYPES_VALUES = ramda.values(WIDGET_TYPES);
|
|
541
|
+
var EMAIL_WIDGET_SNIPPET_FORM_VALIDATION_SCHEMA = yup__namespace.object({
|
|
542
|
+
emails: yup__namespace.array().required().label(i18next__default["default"].t("neetoCommons.widget.email.fields.emails.label")),
|
|
543
|
+
subject: yup__namespace.string().required().label(i18next__default["default"].t("neetoCommons.widget.email.fields.subject.label"))
|
|
544
|
+
});
|
|
545
|
+
var QUERY_KEYS = {
|
|
546
|
+
apiKey: "neetoWidgetApiKey"
|
|
547
|
+
};
|
|
548
|
+
var DEFAULT_QUERY_STALE_TIME = 60 * 60 * 1000; // 1 hour in milliseconds
|
|
549
|
+
|
|
527
550
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
528
551
|
|
|
529
552
|
var propTypes = {exports: {}};
|
|
@@ -51558,7 +51581,7 @@ var languageLoaders = {
|
|
|
51558
51581
|
return Promise.resolve().then(function () { return apex$1; });
|
|
51559
51582
|
}),
|
|
51560
51583
|
apl: createLanguageAsyncLoader("apl", function () {
|
|
51561
|
-
return Promise.resolve().then(function () { return apl; });
|
|
51584
|
+
return Promise.resolve().then(function () { return apl$1; });
|
|
51562
51585
|
}),
|
|
51563
51586
|
applescript: createLanguageAsyncLoader("applescript", function () {
|
|
51564
51587
|
return Promise.resolve().then(function () { return applescript$2; });
|
|
@@ -51591,7 +51614,7 @@ var languageLoaders = {
|
|
|
51591
51614
|
return Promise.resolve().then(function () { return autoit$2; });
|
|
51592
51615
|
}),
|
|
51593
51616
|
avisynth: createLanguageAsyncLoader("avisynth", function () {
|
|
51594
|
-
return Promise.resolve().then(function () { return avisynth
|
|
51617
|
+
return Promise.resolve().then(function () { return avisynth; });
|
|
51595
51618
|
}),
|
|
51596
51619
|
avroIdl: createLanguageAsyncLoader("avroIdl", function () {
|
|
51597
51620
|
return Promise.resolve().then(function () { return avroIdl; });
|
|
@@ -61375,54 +61398,50 @@ var apex$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
61375
61398
|
'default': apex_1
|
|
61376
61399
|
}, [apex_1]);
|
|
61377
61400
|
|
|
61378
|
-
var apl_1;
|
|
61379
|
-
|
|
61380
|
-
|
|
61381
|
-
function
|
|
61382
|
-
|
|
61383
|
-
|
|
61384
|
-
|
|
61385
|
-
|
|
61386
|
-
|
|
61387
|
-
|
|
61388
|
-
|
|
61389
|
-
|
|
61390
|
-
|
|
61391
|
-
|
|
61392
|
-
|
|
61393
|
-
|
|
61394
|
-
|
|
61395
|
-
|
|
61396
|
-
|
|
61397
|
-
|
|
61398
|
-
|
|
61399
|
-
|
|
61400
|
-
|
|
61401
|
-
|
|
61402
|
-
|
|
61403
|
-
|
|
61404
|
-
|
|
61405
|
-
|
|
61406
|
-
|
|
61407
|
-
|
|
61408
|
-
|
|
61409
|
-
|
|
61410
|
-
|
|
61411
|
-
|
|
61412
|
-
|
|
61413
|
-
|
|
61414
|
-
|
|
61415
|
-
},
|
|
61416
|
-
punctuation: /[\[;\]()◇⋄]/,
|
|
61417
|
-
dfn: {
|
|
61418
|
-
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
61419
|
-
alias: 'builtin'
|
|
61420
|
-
}
|
|
61421
|
-
};
|
|
61422
|
-
}
|
|
61423
|
-
return apl_1;
|
|
61401
|
+
var apl_1 = apl;
|
|
61402
|
+
apl.displayName = 'apl';
|
|
61403
|
+
apl.aliases = [];
|
|
61404
|
+
function apl(Prism) {
|
|
61405
|
+
Prism.languages.apl = {
|
|
61406
|
+
comment: /(?:⍝|#[! ]).*$/m,
|
|
61407
|
+
string: {
|
|
61408
|
+
pattern: /'(?:[^'\r\n]|'')*'/,
|
|
61409
|
+
greedy: true
|
|
61410
|
+
},
|
|
61411
|
+
number:
|
|
61412
|
+
/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
|
|
61413
|
+
statement: /:[A-Z][a-z][A-Za-z]*\b/,
|
|
61414
|
+
'system-function': {
|
|
61415
|
+
pattern: /⎕[A-Z]+/i,
|
|
61416
|
+
alias: 'function'
|
|
61417
|
+
},
|
|
61418
|
+
constant: /[⍬⌾#⎕⍞]/,
|
|
61419
|
+
function: /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
|
|
61420
|
+
'monadic-operator': {
|
|
61421
|
+
pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
|
|
61422
|
+
alias: 'operator'
|
|
61423
|
+
},
|
|
61424
|
+
'dyadic-operator': {
|
|
61425
|
+
pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
|
|
61426
|
+
alias: 'operator'
|
|
61427
|
+
},
|
|
61428
|
+
assignment: {
|
|
61429
|
+
pattern: /←/,
|
|
61430
|
+
alias: 'keyword'
|
|
61431
|
+
},
|
|
61432
|
+
punctuation: /[\[;\]()◇⋄]/,
|
|
61433
|
+
dfn: {
|
|
61434
|
+
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
61435
|
+
alias: 'builtin'
|
|
61436
|
+
}
|
|
61437
|
+
};
|
|
61424
61438
|
}
|
|
61425
61439
|
|
|
61440
|
+
var apl$1 = /*#__PURE__*/_mergeNamespaces({
|
|
61441
|
+
__proto__: null,
|
|
61442
|
+
'default': apl_1
|
|
61443
|
+
}, [apl_1]);
|
|
61444
|
+
|
|
61426
61445
|
var applescript_1 = applescript$1;
|
|
61427
61446
|
applescript$1.displayName = 'applescript';
|
|
61428
61447
|
applescript$1.aliases = [];
|
|
@@ -62743,179 +62762,183 @@ var autoit$2 = /*#__PURE__*/_mergeNamespaces({
|
|
|
62743
62762
|
'default': autoit_1
|
|
62744
62763
|
}, [autoit_1]);
|
|
62745
62764
|
|
|
62746
|
-
var avisynth_1
|
|
62747
|
-
|
|
62748
|
-
|
|
62749
|
-
function
|
|
62765
|
+
var avisynth_1;
|
|
62766
|
+
var hasRequiredAvisynth;
|
|
62767
|
+
|
|
62768
|
+
function requireAvisynth () {
|
|
62769
|
+
if (hasRequiredAvisynth) return avisynth_1;
|
|
62770
|
+
hasRequiredAvisynth = 1;
|
|
62771
|
+
|
|
62772
|
+
avisynth_1 = avisynth;
|
|
62773
|
+
avisynth.displayName = 'avisynth';
|
|
62774
|
+
avisynth.aliases = ['avs'];
|
|
62775
|
+
function avisynth(Prism) {
|
|
62750
62776
|
(function (Prism) {
|
|
62751
|
-
|
|
62752
|
-
|
|
62753
|
-
|
|
62754
|
-
|
|
62755
|
-
|
|
62756
|
-
|
|
62757
|
-
|
|
62758
|
-
|
|
62759
|
-
|
|
62760
|
-
|
|
62761
|
-
|
|
62762
|
-
|
|
62763
|
-
|
|
62764
|
-
|
|
62765
|
-
|
|
62766
|
-
|
|
62767
|
-
|
|
62768
|
-
|
|
62769
|
-
|
|
62770
|
-
|
|
62771
|
-
|
|
62772
|
-
|
|
62773
|
-
|
|
62774
|
-
|
|
62775
|
-
|
|
62776
|
-
|
|
62777
|
-
|
|
62778
|
-
|
|
62779
|
-
|
|
62780
|
-
|
|
62781
|
-
|
|
62782
|
-
|
|
62783
|
-
|
|
62784
|
-
|
|
62785
|
-
|
|
62786
|
-
|
|
62787
|
-
|
|
62788
|
-
|
|
62789
|
-
|
|
62790
|
-
|
|
62791
|
-
|
|
62792
|
-
|
|
62793
|
-
|
|
62794
|
-
|
|
62795
|
-
|
|
62796
|
-
|
|
62797
|
-
|
|
62798
|
-
|
|
62799
|
-
|
|
62800
|
-
|
|
62801
|
-
|
|
62802
|
-
|
|
62803
|
-
|
|
62804
|
-
|
|
62805
|
-
|
|
62806
|
-
|
|
62807
|
-
|
|
62808
|
-
|
|
62809
|
-
|
|
62810
|
-
|
|
62811
|
-
|
|
62812
|
-
|
|
62813
|
-
|
|
62814
|
-
|
|
62815
|
-
|
|
62816
|
-
|
|
62817
|
-
|
|
62818
|
-
|
|
62819
|
-
|
|
62820
|
-
|
|
62821
|
-
|
|
62822
|
-
|
|
62823
|
-
|
|
62824
|
-
|
|
62825
|
-
|
|
62826
|
-
|
|
62827
|
-
|
|
62828
|
-
|
|
62829
|
-
|
|
62830
|
-
|
|
62831
|
-
|
|
62832
|
-
|
|
62833
|
-
|
|
62834
|
-
|
|
62835
|
-
|
|
62836
|
-
|
|
62837
|
-
|
|
62838
|
-
|
|
62839
|
-
|
|
62840
|
-
|
|
62841
|
-
|
|
62842
|
-
|
|
62843
|
-
|
|
62844
|
-
|
|
62845
|
-
|
|
62846
|
-
|
|
62847
|
-
|
|
62848
|
-
|
|
62849
|
-
|
|
62850
|
-
|
|
62851
|
-
|
|
62852
|
-
|
|
62853
|
-
|
|
62854
|
-
|
|
62855
|
-
|
|
62856
|
-
|
|
62857
|
-
|
|
62858
|
-
|
|
62859
|
-
|
|
62860
|
-
|
|
62861
|
-
|
|
62862
|
-
|
|
62863
|
-
|
|
62864
|
-
|
|
62865
|
-
|
|
62866
|
-
|
|
62867
|
-
|
|
62868
|
-
|
|
62869
|
-
|
|
62870
|
-
|
|
62871
|
-
|
|
62872
|
-
|
|
62873
|
-
|
|
62874
|
-
|
|
62875
|
-
|
|
62876
|
-
|
|
62877
|
-
|
|
62878
|
-
|
|
62879
|
-
|
|
62880
|
-
|
|
62881
|
-
|
|
62882
|
-
|
|
62883
|
-
|
|
62884
|
-
|
|
62885
|
-
|
|
62886
|
-
|
|
62887
|
-
|
|
62888
|
-
|
|
62889
|
-
|
|
62890
|
-
|
|
62891
|
-
|
|
62892
|
-
|
|
62893
|
-
|
|
62894
|
-
|
|
62895
|
-
|
|
62896
|
-
|
|
62897
|
-
|
|
62898
|
-
|
|
62899
|
-
|
|
62900
|
-
|
|
62901
|
-
|
|
62902
|
-
|
|
62903
|
-
|
|
62904
|
-
|
|
62905
|
-
|
|
62906
|
-
|
|
62907
|
-
|
|
62908
|
-
|
|
62909
|
-
|
|
62910
|
-
|
|
62911
|
-
|
|
62777
|
+
function replace(pattern, replacements) {
|
|
62778
|
+
return pattern.replace(/<<(\d+)>>/g, function (m, index) {
|
|
62779
|
+
return replacements[+index]
|
|
62780
|
+
})
|
|
62781
|
+
}
|
|
62782
|
+
function re(pattern, replacements, flags) {
|
|
62783
|
+
return RegExp(replace(pattern, replacements), flags || '')
|
|
62784
|
+
}
|
|
62785
|
+
var types = /bool|clip|float|int|string|val/.source;
|
|
62786
|
+
var internals = [
|
|
62787
|
+
// bools
|
|
62788
|
+
/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/
|
|
62789
|
+
.source, // control
|
|
62790
|
+
/apply|assert|default|eval|import|nop|select|undefined/.source, // global
|
|
62791
|
+
/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/
|
|
62792
|
+
.source, // conv
|
|
62793
|
+
/hex(?:value)?|value/.source, // numeric
|
|
62794
|
+
/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/
|
|
62795
|
+
.source, // trig
|
|
62796
|
+
/a?sinh?|a?cosh?|a?tan[2h]?/.source, // bit
|
|
62797
|
+
/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/
|
|
62798
|
+
.source, // runtime
|
|
62799
|
+
/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/
|
|
62800
|
+
.source, // script
|
|
62801
|
+
/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/
|
|
62802
|
+
.source, // string
|
|
62803
|
+
/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/
|
|
62804
|
+
.source, // version
|
|
62805
|
+
/isversionorgreater|version(?:number|string)/.source, // helper
|
|
62806
|
+
/buildpixeltype|colorspacenametopixeltype/.source, // avsplus
|
|
62807
|
+
/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source
|
|
62808
|
+
].join('|');
|
|
62809
|
+
var properties = [
|
|
62810
|
+
// content
|
|
62811
|
+
/has(?:audio|video)/.source, // resolution
|
|
62812
|
+
/height|width/.source, // framerate
|
|
62813
|
+
/frame(?:count|rate)|framerate(?:denominator|numerator)/.source, // interlacing
|
|
62814
|
+
/getparity|is(?:field|frame)based/.source, // color format
|
|
62815
|
+
/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/
|
|
62816
|
+
.source, // audio
|
|
62817
|
+
/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/
|
|
62818
|
+
.source
|
|
62819
|
+
].join('|');
|
|
62820
|
+
var filters = [
|
|
62821
|
+
// source
|
|
62822
|
+
/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/
|
|
62823
|
+
.source, // color
|
|
62824
|
+
/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/
|
|
62825
|
+
.source, // overlay
|
|
62826
|
+
/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source, // geometry
|
|
62827
|
+
/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/
|
|
62828
|
+
.source, // pixel
|
|
62829
|
+
/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/
|
|
62830
|
+
.source, // timeline
|
|
62831
|
+
/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/
|
|
62832
|
+
.source, // interlace
|
|
62833
|
+
/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/
|
|
62834
|
+
.source, // audio
|
|
62835
|
+
/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/
|
|
62836
|
+
.source, // conditional
|
|
62837
|
+
/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/
|
|
62838
|
+
.source, // export
|
|
62839
|
+
/imagewriter/.source, // debug
|
|
62840
|
+
/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/
|
|
62841
|
+
.source
|
|
62842
|
+
].join('|');
|
|
62843
|
+
var allinternals = [internals, properties, filters].join('|');
|
|
62844
|
+
Prism.languages.avisynth = {
|
|
62845
|
+
comment: [
|
|
62846
|
+
{
|
|
62847
|
+
// Matches [* *] nestable block comments, but only supports 1 level of nested comments
|
|
62848
|
+
// /\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|<self>)*\*\]/
|
|
62849
|
+
pattern:
|
|
62850
|
+
/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,
|
|
62851
|
+
lookbehind: true,
|
|
62852
|
+
greedy: true
|
|
62853
|
+
},
|
|
62854
|
+
{
|
|
62855
|
+
// Matches /* */ block comments
|
|
62856
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
62857
|
+
lookbehind: true,
|
|
62858
|
+
greedy: true
|
|
62859
|
+
},
|
|
62860
|
+
{
|
|
62861
|
+
// Matches # comments
|
|
62862
|
+
pattern: /(^|[^\\$])#.*/,
|
|
62863
|
+
lookbehind: true,
|
|
62864
|
+
greedy: true
|
|
62865
|
+
}
|
|
62866
|
+
],
|
|
62867
|
+
// Handle before strings because optional arguments are surrounded by double quotes
|
|
62868
|
+
argument: {
|
|
62869
|
+
pattern: re(/\b(?:<<0>>)\s+("?)\w+\1/.source, [types], 'i'),
|
|
62870
|
+
inside: {
|
|
62871
|
+
keyword: /^\w+/
|
|
62872
|
+
}
|
|
62873
|
+
},
|
|
62874
|
+
// Optional argument assignment
|
|
62875
|
+
'argument-label': {
|
|
62876
|
+
pattern: /([,(][\s\\]*)\w+\s*=(?!=)/,
|
|
62877
|
+
lookbehind: true,
|
|
62878
|
+
inside: {
|
|
62879
|
+
'argument-name': {
|
|
62880
|
+
pattern: /^\w+/,
|
|
62881
|
+
alias: 'punctuation'
|
|
62882
|
+
},
|
|
62883
|
+
punctuation: /=$/
|
|
62884
|
+
}
|
|
62885
|
+
},
|
|
62886
|
+
string: [
|
|
62887
|
+
{
|
|
62888
|
+
// triple double-quoted
|
|
62889
|
+
pattern: /"""[\s\S]*?"""/,
|
|
62890
|
+
greedy: true
|
|
62891
|
+
},
|
|
62892
|
+
{
|
|
62893
|
+
// single double-quoted
|
|
62894
|
+
pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
|
|
62895
|
+
greedy: true,
|
|
62896
|
+
inside: {
|
|
62897
|
+
constant: {
|
|
62898
|
+
// These *are* case-sensitive!
|
|
62899
|
+
pattern:
|
|
62900
|
+
/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/
|
|
62901
|
+
}
|
|
62902
|
+
}
|
|
62903
|
+
}
|
|
62904
|
+
],
|
|
62905
|
+
// The special "last" variable that takes the value of the last implicitly returned clip
|
|
62906
|
+
variable: /\b(?:last)\b/i,
|
|
62907
|
+
boolean: /\b(?:false|no|true|yes)\b/i,
|
|
62908
|
+
keyword:
|
|
62909
|
+
/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,
|
|
62910
|
+
constant: /\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,
|
|
62911
|
+
// AviSynth's internal functions, filters, and properties
|
|
62912
|
+
'builtin-function': {
|
|
62913
|
+
pattern: re(/\b(?:<<0>>)\b/.source, [allinternals], 'i'),
|
|
62914
|
+
alias: 'function'
|
|
62915
|
+
},
|
|
62916
|
+
'type-cast': {
|
|
62917
|
+
pattern: re(/\b(?:<<0>>)(?=\s*\()/.source, [types], 'i'),
|
|
62918
|
+
alias: 'keyword'
|
|
62919
|
+
},
|
|
62920
|
+
// External/user-defined filters
|
|
62921
|
+
function: {
|
|
62922
|
+
pattern: /\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,
|
|
62923
|
+
lookbehind: true
|
|
62924
|
+
},
|
|
62925
|
+
// Matches a \ as the first or last character on a line
|
|
62926
|
+
'line-continuation': {
|
|
62927
|
+
pattern: /(^[ \t]*)\\|\\(?=[ \t]*$)/m,
|
|
62928
|
+
lookbehind: true,
|
|
62929
|
+
alias: 'punctuation'
|
|
62930
|
+
},
|
|
62931
|
+
number:
|
|
62932
|
+
/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,
|
|
62933
|
+
operator: /\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,
|
|
62934
|
+
punctuation: /[{}\[\]();,.]/
|
|
62935
|
+
};
|
|
62936
|
+
Prism.languages.avs = Prism.languages.avisynth;
|
|
62937
|
+
})(Prism);
|
|
62938
|
+
}
|
|
62939
|
+
return avisynth_1;
|
|
62912
62940
|
}
|
|
62913
62941
|
|
|
62914
|
-
var avisynth$1 = /*#__PURE__*/_mergeNamespaces({
|
|
62915
|
-
__proto__: null,
|
|
62916
|
-
'default': avisynth_1
|
|
62917
|
-
}, [avisynth_1]);
|
|
62918
|
-
|
|
62919
62942
|
var avroIdl_1;
|
|
62920
62943
|
var hasRequiredAvroIdl;
|
|
62921
62944
|
|
|
@@ -84149,7 +84172,7 @@ refractor.register(al_1);
|
|
|
84149
84172
|
refractor.register(antlr4_1);
|
|
84150
84173
|
refractor.register(apacheconf_1);
|
|
84151
84174
|
refractor.register(apex_1);
|
|
84152
|
-
refractor.register(
|
|
84175
|
+
refractor.register(apl_1);
|
|
84153
84176
|
refractor.register(applescript_1);
|
|
84154
84177
|
refractor.register(aql_1);
|
|
84155
84178
|
refractor.register(arduino_1);
|
|
@@ -84160,7 +84183,7 @@ refractor.register(asmatmel_1);
|
|
|
84160
84183
|
refractor.register(aspnet_1);
|
|
84161
84184
|
refractor.register(autohotkey_1);
|
|
84162
84185
|
refractor.register(autoit_1);
|
|
84163
|
-
refractor.register(
|
|
84186
|
+
refractor.register(requireAvisynth());
|
|
84164
84187
|
refractor.register(requireAvroIdl());
|
|
84165
84188
|
refractor.register(requireBash());
|
|
84166
84189
|
refractor.register(requireBasic());
|
|
@@ -85663,27 +85686,6 @@ CodeBlock.propTypes = {
|
|
|
85663
85686
|
codeStyles: propTypes.exports.object
|
|
85664
85687
|
};
|
|
85665
85688
|
|
|
85666
|
-
var EMBED_WIDGET_S3_SCRIPT_STRING = "<script src=\"https://neeto-widget.s3.ap-south-1.amazonaws.com/embedNeetoWidget.js\"></script>";
|
|
85667
|
-
var DISABLE_NEETO_CHAT = "disableNeetoChat: true,";
|
|
85668
|
-
var DISABLE_NEETO_CHANGELOG = "disableNeetoChangelog: true,";
|
|
85669
|
-
var DISABLE_NEETO_REPLAY = "disableNeetoReplay: true,";
|
|
85670
|
-
var SAMPLE_CONTEXT_CODE_STRING = "window.NeetoReplayWidgetSessionContext = {\n key1: \"value\",\n key2: [\"array\", \"of\", \"values\"],\n /* More key-value pairs */\n}";
|
|
85671
|
-
var SAMPLE_USER_IDENTITY_CODE_STRING = "window.NeetoWidgetUserIdentity = {\n user_identifier: \"USER_ID_HERE\",\n name: \"USER_NAME_HERE\",\n email: \"USER_EMAIL_HERE\",\n started_at: \"YYYY-MM-DD\",\n}";
|
|
85672
|
-
var WIDGET_TYPES = {
|
|
85673
|
-
changelog: "changelog",
|
|
85674
|
-
chat: "chat",
|
|
85675
|
-
replay: "replay"
|
|
85676
|
-
};
|
|
85677
|
-
var WIDGET_TYPES_VALUES = ramda.values(WIDGET_TYPES);
|
|
85678
|
-
var EMAIL_WIDGET_SNIPPET_FORM_VALIDATION_SCHEMA = yup__namespace.object({
|
|
85679
|
-
emails: yup__namespace.array().required().label(i18next__default["default"].t("neetoCommons.widget.email.fields.emails.label")),
|
|
85680
|
-
subject: yup__namespace.string().required().label(i18next__default["default"].t("neetoCommons.widget.email.fields.subject.label"))
|
|
85681
|
-
});
|
|
85682
|
-
var QUERY_KEYS = {
|
|
85683
|
-
apiKey: "neetoWidgetApiKey"
|
|
85684
|
-
};
|
|
85685
|
-
var DEFAULT_QUERY_STALE_TIME = 60 * 60 * 1000; // 1 hour in milliseconds
|
|
85686
|
-
|
|
85687
85689
|
var getWidgetApiKeyUrl = function getWidgetApiKeyUrl() {
|
|
85688
85690
|
return "api/v1/widget/api_keys/".concat(window.globalProps.organization.subdomain);
|
|
85689
85691
|
};
|
|
@@ -85927,6 +85929,12 @@ CodeSnippet.propTypes = {
|
|
|
85927
85929
|
|
|
85928
85930
|
var useFetchApiKey = function useFetchApiKey() {
|
|
85929
85931
|
return reactQuery.useQuery(QUERY_KEYS.apiKey, function () {
|
|
85932
|
+
if (window.globalProps.railsEnv === "heroku" || !process.env.ENABLE_SSO) {
|
|
85933
|
+
return Promise.resolve({
|
|
85934
|
+
widgetApiKey: "placeholder-api-key"
|
|
85935
|
+
});
|
|
85936
|
+
}
|
|
85937
|
+
|
|
85930
85938
|
return queryWidgetApiKey();
|
|
85931
85939
|
}, {
|
|
85932
85940
|
staleTime: DEFAULT_QUERY_STALE_TIME
|
|
@@ -85944,9 +85952,8 @@ var SelectionTabs = function SelectionTabs(_ref) {
|
|
|
85944
85952
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
85945
85953
|
className: "mb-1",
|
|
85946
85954
|
key: widget
|
|
85947
|
-
}, primarySelectedWidget !== widget ? /*#__PURE__*/React__default["default"].createElement(neetoui.
|
|
85955
|
+
}, primarySelectedWidget !== widget ? /*#__PURE__*/React__default["default"].createElement(neetoui.Switch, {
|
|
85948
85956
|
label: "neeto".concat(capitalize(widget)),
|
|
85949
|
-
size: "small",
|
|
85950
85957
|
checked: selectedWidgets.includes(widget),
|
|
85951
85958
|
onChange: function onChange() {
|
|
85952
85959
|
return updateSelectedWidgets(widget);
|
|
@@ -86257,7 +86264,8 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
86257
86264
|
};
|
|
86258
86265
|
|
|
86259
86266
|
var NeetoWidget = {
|
|
86260
|
-
EmbedCode: EmbedCodeQueryClient
|
|
86267
|
+
EmbedCode: EmbedCodeQueryClient,
|
|
86268
|
+
WIDGET_TYPES: WIDGET_TYPES
|
|
86261
86269
|
};
|
|
86262
86270
|
|
|
86263
86271
|
function useDebounce(value) {
|
|
@@ -88072,12 +88080,12 @@ var zephir = /*#__PURE__*/_mergeNamespaces({
|
|
|
88072
88080
|
'default': zephirExports
|
|
88073
88081
|
}, [zephirExports]);
|
|
88074
88082
|
|
|
88075
|
-
var
|
|
88083
|
+
var avisynthExports = requireAvisynth();
|
|
88076
88084
|
|
|
88077
|
-
var
|
|
88085
|
+
var avisynth = /*#__PURE__*/_mergeNamespaces({
|
|
88078
88086
|
__proto__: null,
|
|
88079
|
-
'default':
|
|
88080
|
-
}, [
|
|
88087
|
+
'default': avisynthExports
|
|
88088
|
+
}, [avisynthExports]);
|
|
88081
88089
|
|
|
88082
88090
|
var avroIdlExports = requireAvroIdl();
|
|
88083
88091
|
|