@nuxt/scripts 0.4.1 → 0.4.3
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/client/200.html +14 -14
- package/dist/client/404.html +14 -14
- package/dist/client/_nuxt/{CDJL3WWm.js → B3g-KkBK.js} +1 -1
- package/dist/client/_nuxt/{Di3qjVs2.js → B4ACM-c0.js} +1 -1
- package/dist/client/_nuxt/B7rNE5kf.js +1 -0
- package/dist/client/_nuxt/{BE5dUAj2.js → B9T-hdPi.js} +1 -1
- package/dist/client/_nuxt/BcF9sHHc.js +6 -0
- package/dist/client/_nuxt/{BGq4KZyx.js → Br6ll-O0.js} +1 -1
- package/dist/client/_nuxt/{CnGjBSoe.js → BvCpKIQU.js} +1 -1
- package/dist/client/_nuxt/Bx89rGXK.js +1 -0
- package/dist/client/_nuxt/{V_y36BGi.js → Bxkoe-BC.js} +1 -1
- package/dist/client/_nuxt/{CX2EUjC8.js → C3qUB5O8.js} +7 -7
- package/dist/client/_nuxt/{yPaGq8vJ.js → D2Id3jI5.js} +3 -3
- package/dist/client/_nuxt/{C3OXR31I.js → DH8runP0.js} +1 -1
- package/dist/client/_nuxt/{DIr-ordK.js → DKlGn9uv.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/57975886-3e65-4f06-9b8d-c072a775a94c.json +1 -0
- package/dist/client/index.html +14 -14
- package/dist/module.json +1 -1
- package/dist/runtime/components/ScriptGoogleMaps.vue +2 -2
- package/dist/runtime/components/ScriptLemonSqueezyButton.vue +2 -3
- package/dist/runtime/components/ScriptStripePricingTable.vue +1 -1
- package/dist/runtime/components/ScriptVimeoPlayer.vue +45 -37
- package/dist/runtime/components/ScriptYouTubePlayer.vue +1 -1
- package/dist/runtime/composables/useAnalyticsPageEvent.d.ts +4 -1
- package/dist/runtime/composables/useElementScriptTrigger.d.ts +1 -1
- package/dist/runtime/registry/cloudflare-web-analytics.d.ts +16 -1
- package/dist/runtime/registry/fathom-analytics.d.ts +28 -1
- package/dist/runtime/registry/google-analytics.d.ts +8 -1
- package/dist/runtime/registry/google-maps.d.ts +18 -8
- package/dist/runtime/registry/google-tag-manager.d.ts +5 -1
- package/dist/runtime/registry/hotjar.d.ts +7 -1
- package/dist/runtime/registry/intercom.d.ts +20 -2
- package/dist/runtime/registry/matomo-analytics.d.ts +11 -1
- package/dist/runtime/registry/meta-pixel.d.ts +5 -1
- package/dist/runtime/registry/npm.d.ts +11 -1
- package/dist/runtime/registry/plausible-analytics.d.ts +7 -1
- package/dist/runtime/registry/segment.d.ts +7 -1
- package/dist/runtime/registry/stripe.d.ts +5 -1
- package/dist/runtime/registry/vimeo-player.d.ts +3 -2
- package/dist/runtime/registry/x-pixel.d.ts +7 -1
- package/dist/runtime/registry/youtube-player.d.ts +3 -1
- package/dist/runtime/types.d.ts +1 -0
- package/dist/runtime/utils.d.ts +1 -1
- package/package.json +24 -20
- package/dist/client/_nuxt/Dszwcx0o.js +0 -1
- package/dist/client/_nuxt/DtT2Dbx_.js +0 -6
- package/dist/client/_nuxt/builds/meta/d030288c-d564-4054-b340-ad07c9c6d534.json +0 -1
- package/dist/client/_nuxt/zkPAHE4u.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as d,u as f,r as i,f as h,g as p,h as v,j as m,k as y,l as g}from"./
|
|
1
|
+
import{i as d,u as f,r as i,f as h,g as p,h as v,j as m,k as y,l as g}from"./D2Id3jI5.js";let _;function b(){return _}function j(e){return typeof e=="function"?e():f(e)}function s(e,a=""){if(e instanceof Promise)return e;const t=j(e);return!e||!t?t:Array.isArray(t)?t.map(n=>s(n,a)):typeof t=="object"?Object.fromEntries(Object.entries(t).map(([n,o])=>n==="titleTemplate"||n.startsWith("on")?[n,f(o)]:[n,s(o,n)])):t}const w="usehead",u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c="__unhead_injection_handler__";function H(){if(c in u)return u[c]();const e=d(w);return e||b()}function T(e,a={}){const t=a.head||H();if(t)return t.ssr?t.push(e,a):x(t,e,a)}function x(e,a,t={}){const n=i(!1),o=i({});h(()=>{o.value=n.value?{}:s(a)});const r=e.push(o.value,t);return p(o,l=>{r.patch(l)}),g()&&(v(()=>{r.dispose()}),m(()=>{n.value=!0}),y(()=>{n.value=!1})),r}const I=(e,a)=>{const t=e.__vccOpts||e;for(const[n,o]of a)t[n]=o;return t};export{I as _,T as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Object.freeze({displayName:"Kusto",fileTypes:["csl","kusto","kql"],name:"kusto",patterns:[{comment:"Tabular operators: common helper operators",match:"\\b(by|from|of|to|step|with)\\b",name:"keyword.other.operator.kusto"},{comment:"Query statements: https://docs.microsoft.com/en-us/azure/kusto/query/statements",match:"\\b(let|set|alias|declare|pattern|query_parameters|restrict|access|set)\\b",name:"keyword.control.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators",match:"\\b(and|or|has_all|has_any|matches|regex)\\b",name:"keyword.other.operator.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#Strings"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/clusterfunction",match:"\\b(cluster|database)(?:\\s*\\(\\s*(.+?)\\s*\\))?(?!\\w)",name:"meta.special.database.kusto"},{comment:"Special functions: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/tablefunction",match:"\\b(external_table|materialized_view|materialize|table|toscalar)\\b",name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/betweenoperator",match:"(?<!\\w)(!?between)\\b",name:"keyword.other.operator.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#Numeric"}]},3:{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binoperators",match:"\\b(binary_and|binary_or|binary_shift_left|binary_shift_right|binary_xor)(?:\\s*\\(\\s*(\\w+)\\s*,\\s*(\\w+)\\s*\\))?(?!\\w)",name:"meta.scalar.bitwise.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binary-notfunction",match:"\\b(binary_not|bitset_count_ones)(?:\\s*\\(\\s*(\\w+)\\s*\\))?(?!\\w)",name:"meta.scalar.bitwise.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/in-cs-operator",match:"(?<!\\w)(!?in~?)(?!\\w)",name:"keyword.other.operator.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators",match:"(?<!\\w)(!?(?:contains|endswith|hasprefix|hassuffix|has|startswith)(?:_cs)?)(?!\\w)",name:"keyword.other.operator.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},3:{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},4:{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/rangefunction",match:"\\b(range)\\s*\\((?:\\s*(\\w+(?:\\(.*?\\))?)\\s*,\\s*(\\w+(?:\\(.*?\\))?)\\s*,?(?:\\s*)?(\\w+(?:\\(.*?\\))?)?\\s*\\))?(?!\\w)",name:"meta.scalar.function.range.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalarfunctions",match:"\\b(abs|acos|around|array_concat|array_iff|array_index_of|array_length|array_reverse|array_rotate_left|array_rotate_right|array_shift_left|array_shift_right|array_slice|array_sort_asc|array_sort_desc|array_split|array_sum|asin|assert|atan2|atan|bag_has_key|bag_keys|bag_merge|bag_remove_keys|base64_decode_toarray|base64_decode_tostring|base64_decode_toguid|base64_encode_fromarray|base64_encode_tostring|base64_encode_fromguid|beta_cdf|beta_inv|beta_pdf|bin_at|bin_auto|case|ceiling|coalesce|column_ifexists|convert_angle|convert_energy|convert_force|convert_length|convert_mass|convert_speed|convert_temperature|convert_volume|cos|cot|countof|current_cluster_endpoint|current_database|current_principal_details|current_principal_is_member_of|current_principal|cursor_after|cursor_before_or_at|cursor_current|current_cursor|dcount_hll|degrees|dynamic_to_json|estimate_data_size|exp10|exp2|exp|extent_id|extent_tags|extract_all|extract_json|extractjson|extract|floor|format_bytes|format_ipv4_mask|format_ipv4|gamma|gettype|gzip_compress_to_base64_string|gzip_decompress_from_base64_string|has_any_index|has_any_ipv4_prefix|has_any_ipv4|has_ipv4_prefix|has_ipv4|hash_combine|hash_many|hash_md5|hash_sha1|hash_sha256|hash_xxhash64|hash|iff|iif|indexof_regex|indexof|ingestion_time|ipv4_compare|ipv4_is_in_range|ipv4_is_in_any_range|ipv4_is_match|ipv4_is_private|ipv4_netmask_suffix|ipv6_compare|ipv6_is_match|isascii|isempty|isfinite|isinf|isnan|isnotempty|notempty|isnotnull|notnull|isnull|isutf8|jaccard_index|log10|log2|loggamma|log|make_string|max_of|min_of|new_guid|not|bag_pack|pack_all|pack_array|pack_dictionary|pack|parse_command_line|parse_csv|parse_ipv4_mask|parse_ipv4|parse_ipv6_mask|parse_ipv6|parse_path|parse_urlquery|parse_url|parse_user_agent|parse_version|parse_xml|percentile_tdigest|percentile_array_tdigest|percentrank_tdigest|pi|pow|radians|rand|rank_tdigest|regex_quote|repeat|replace_regex|replace_string|reverse|round|set_difference|set_has_element|set_intersect|set_union|sign|sin|split|sqrt|strcat_array|strcat_delim|strcmp|strcat|string_size|strlen|strrep|substring|tan|to_utf8|tobool|todecimal|todouble|toreal|toguid|tohex|toint|tolong|tolower|tostring|toupper|translate|treepath|trim_end|trim_start|trim|unixtime_microseconds_todatetime|unixtime_milliseconds_todatetime|unixtime_nanoseconds_todatetime|unixtime_seconds_todatetime|url_decode|url_encode_component|url_encode|welch_test|zip|zlib_compress_to_base64_string|zlib_decompress_from_base64_string)\\b",name:"support.function.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},3:{patterns:[{include:"#TimeSpanLiterals"},{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binfunction",match:"\\b(bin)(?:\\s*\\(\\s*(.+?)\\s*,\\s*(.+?)\\s*\\))?(?!\\w)",name:"meta.scalar.function.bin.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/count-aggfunction",match:"\\b(count)\\s*\\(\\s*\\)(?!\\w)",name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/aggregation-functions",match:"\\b(arg_max|arg_min|avgif|avg|binary_all_and|binary_all_or|binary_all_xor|buildschema|countif|dcount|dcountif|hll|hll_merge|make_bag_if|make_bag|make_list_with_nulls|make_list_if|make_list|make_set_if|make_set|maxif|max|minif|min|percentilesw_array|percentiles_array|percentilesw|percentilew|percentiles|percentile|stdevif|stdevp|stdev|sumif|sum|take_anyif|take_any|tdigest_merge|merge_tdigest|tdigest|varianceif|variancep|variance)\\b",name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/geospatial-grid-systems",match:"\\b(geo_distance_2points|geo_distance_point_to_line|geo_distance_point_to_polygon|geo_intersects_2lines|geo_intersects_2polygons|geo_intersects_line_with_polygon|geo_intersection_2lines|geo_intersection_2polygons|geo_intersection_line_with_polygon|geo_line_centroid|geo_line_densify|geo_line_length|geo_line_simplify|geo_polygon_area|geo_polygon_centroid|geo_polygon_densify|geo_polygon_perimeter|geo_polygon_simplify|geo_polygon_to_s2cells|geo_point_in_circle|geo_point_in_polygon|geo_point_to_geohash|geo_point_to_h3cell|geo_point_to_s2cell|geo_geohash_to_central_point|geo_geohash_neighbors|geo_geohash_to_polygon|geo_s2cell_to_central_point|geo_s2cell_neighbors|geo_s2cell_to_polygon|geo_h3cell_to_central_point|geo_h3cell_neighbors|geo_h3cell_to_polygon|geo_h3cell_parent|geo_h3cell_children|geo_h3cell_level|geo_h3cell_rings|geo_simplify_polygons_array|geo_union_lines_array|geo_union_polygons_array)\\b",name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/windowsfunctions",match:"\\b(next|prev|row_cumsum|row_number|row_rank|row_window_session)\\b",name:"support.function.kusto"},{comment:"User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions",match:"\\.(create-or-alter|replace)",name:"keyword.control.kusto"},{comment:"User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions",match:"(?<=let ).+(?=\\W*=)",name:"entity.function.name.lambda.kusto"},{comment:"User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions",match:"\\b(folder|docstring|skipvalidation)\\b",name:"keyword.other.operator.kusto"},{match:"\\b(function)\\b",name:"storage.type.kusto"},{comment:"Data types: https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types",match:"\\b(bool|decimal|dynamic|guid|int|long|real|string)\\b",name:"storage.type.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"variable.other.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/asoperator",match:"\\b(as)\\s+(\\w+)\\b",name:"meta.query.as.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatableoperator",match:"\\b(datatable)(?=\\W*\\()",name:"keyword.other.query.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"keyword.other.operator.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/facetoperator",match:"\\b(facet)(?:\\s+(by))?\\b",name:"meta.query.facet.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"entity.name.function.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/invokeoperator",match:"\\b(invoke)(?:\\s+(\\w+))?\\b",name:"meta.query.invoke.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"keyword.other.operator.kusto"},3:{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/orderoperator",match:"\\b(order)(?:\\s+(by)\\s+(\\w+))?\\b",name:"meta.query.order.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"variable.other.column.kusto"},3:{name:"keyword.other.operator.kusto"},4:{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},5:{name:"keyword.other.operator.kusto"},6:{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},7:{name:"keyword.other.operator.kusto"},8:{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/rangeoperator",match:"\\b(range)\\s+(\\w+)\\s+(from)\\s+(\\w+(?:\\(\\w*\\))?)\\s+(to)\\s+(\\w+(?:\\(\\w*\\))?)\\s+(step)\\s+(\\w+(?:\\(\\w*\\))?)\\b",name:"meta.query.range.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sampleoperator",match:"\\b(sample)(?:\\s+(\\d+))?(?![\\w-])",name:"meta.query.sample.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]},3:{name:"keyword.other.operator.kusto"},4:{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sampledistinctoperator",match:"\\b(sample-distinct)(?:\\s+(\\d+)\\s+(of)\\s+(\\w+))?\\b",name:"meta.query.sample-distinct.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"keyword.other.operator.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sortoperator",match:"\\b(sort)(?:\\s+(by))?\\b",name:"meta.query.sort.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/takeoperator",match:"\\b(take|limit)(?:\\s+(\\d+))\\b",name:"meta.query.take.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]},3:{name:"keyword.other.operator.kusto"},4:{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/topoperator",match:"\\b(top)(?:\\s+(\\d+)\\s+(by)\\s+(\\w+))?(?![\\w-])\\b",name:"meta.query.top.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]},3:{name:"keyword.other.operator.kusto"},4:{name:"variable.other.column.kusto"},5:{name:"keyword.other.operator.kusto"},6:{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/tophittersoperator",match:"\\b(top-hitters)(?:\\s+(\\d+)\\s+(of)\\s+(\\w+)(?:\\s+(by)\\s+(\\w+))?)?\\b",name:"meta.query.top-hitters.kusto"},{comment:"Tabular operators: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/queries",match:"\\b(consume|count|distinct|evaluate|extend|externaldata|find|fork|getschema|join|lookup|make-series|mv-apply|mv-expand|project-away|project-keep|project-rename|project-reorder|project|parse|parse-where|parse-kv|partition|print|reduce|render|scan|search|serialize|shuffle|summarize|top-nested|union|where)\\b",name:"keyword.other.query.kusto"},{comment:"Tabular operators: evalute (plugins): https://docs.microsoft.com/en-us/azure/kusto/query/evaluateoperator",match:"\\b(active_users_count|activity_counts_metrics|activity_engagement|new_activity_metrics|activity_metrics|autocluster|azure_digital_twins_query_request|bag_unpack|basket|cosmosdb_sql_request|dcount_intersect|diffpatterns|funnel_sequence_completion|funnel_sequence|http_request_post|http_request|infer_storage_schema|ipv4_lookup|mysql_request|narrow|pivot|preview|rolling_percentile|rows_near|schema_merge|session_count|sequence_detect|sliding_window_counts|sql_request)\\b",name:"support.function.kusto"},{comment:"Tabular operators: join: https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator",match:"\\b(on|kind|hint\\.remote|hint\\.strategy)\\b",name:"keyword.other.operator.kusto"},{comment:"Tabular operators: join ($left, $right): https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator",match:"(\\$left|\\$right)\\b",name:"keyword.other.kusto"},{comment:"Tabular operators: join (kinds, strategies): https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator",match:"\\b(innerunique|inner|leftouter|rightouter|fullouter|leftanti|anti|leftantisemi|rightanti|rightantisemi|leftsemi|rightsemi|broadcast)\\b",name:"keyword.other.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/machine-learning-and-tsa",match:"\\b(series_abs|series_acos|series_add|series_asin|series_atan|series_cos|series_decompose|series_decompose_anomalies|series_decompose_forecast|series_divide|series_equals|series_exp|series_fft|series_fill_backward|series_fill_const|series_fill_forward|series_fill_linear|series_fir|series_fit_2lines_dynamic|series_fit_2lines|series_fit_line_dynamic|series_fit_line|series_fit_poly|series_greater_equals|series_greater|series_ifft|series_iir|series_less_equals|series_less|series_multiply|series_not_equals|series_outliers|series_pearson_correlation|series_periods_detect|series_periods_validate|series_pow|series_seasonal|series_sign|series_sin|series_stats|series_stats_dynamic|series_subtract|series_tan)\\b",name:"support.function.kusto"},{comment:"Tabular operators: mv-expand (bagexpand options): https://docs.microsoft.com/en-us/azure/kusto/query/mvexpandoperator",match:"\\b(bag|array)\\b",name:"keyword.other.operator.kusto"},{comment:"Tabular operators: order: https://docs.microsoft.com/en-us/azure/kusto/query/orderoperator",match:"\\b(asc|desc|nulls first|nulls last)\\b",name:"keyword.other.kusto"},{comment:"Tabular operators: parse: https://docs.microsoft.com/en-us/azure/kusto/query/parseoperator",match:"\\b(regex|simple|relaxed)\\b",name:"keyword.other.kusto"},{match:"\\b(anomalychart|areachart|barchart|card|columnchart|ladderchart|linechart|piechart|pivotchart|scatterchart|stackedareachart|timechart|timepivot)\\b",name:"support.function.kusto"},{include:"#Strings"},{match:"\\{.*?\\}",name:"string.other.kusto"},{comment:"Comments",match:"//.*",name:"comment.line.kusto"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#DateTimeTimeSpanDataTypes"},{include:"#Numeric"},{match:"\\b(true|false|null)\\b",name:"constant.language.kusto"},{comment:"Deprecated functions",match:"\\b(anyif|any|array_strcat|base64_decodestring|base64_encodestring|make_dictionary|makelist|makeset|mvexpand|todynamic|parse_json|replace|weekofyear)(?=\\W*\\(|\\b)",name:"invalid.deprecated.kusto"}],repository:{DateTimeTimeSpanDataTypes:{patterns:[{match:"\\b(datetime|timespan|time)\\b",name:"storage.type.kusto"}]},DateTimeTimeSpanFunctions:{patterns:[{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#DateTimeTimeSpanDataTypes"}]},3:{patterns:[{include:"#Strings"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/format-datetimefunction",match:`\\b(format_datetime)(?:\\s*\\(\\s*(.+?)\\s*,\\s*(['"].*?['"])\\s*\\))?(?!\\w)`,name:"meta.scalar.function.format_datetime.kusto"},{comment:"Scalar function: DateTime/Timespan Functions: https://docs.microsoft.com/en-us/azure/kusto/query/scalarfunctions#datetimetimespan-functions",match:"\\b(ago|datetime_add|datetime_diff|datetime_local_to_utc|datetime_part|datetime_utc_to_local|dayofmonth|dayofweek|dayofyear|endofday|endofmonth|endofweek|endofyear|format_timespan|getmonth|getyear|hourofday|make_datetime|make_timespan|monthofyear|now|startofday|startofmonth|startofweek|startofyear|todatetime|totimespan|week_of_year)(?=\\W*\\()",name:"support.function.kusto"}]},Escapes:{patterns:[{match:`\\\\['"]`,name:"constant.character.escape.kusto"}]},Numeric:{patterns:[{match:"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*+)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?(?=\\b|\\w)",name:"constant.numeric.kusto"}]},Strings:{patterns:[{begin:'([@h]?")',beginCaptures:{1:{name:"punctuation.definition.string.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string",end:'"',endCaptures:{0:{name:"punctuation.definition.string.kusto"}},name:"string.quoted.double.kusto",patterns:[{include:"#Escapes"}]},{begin:"([@h]?')",beginCaptures:{1:{name:"punctuation.definition.string.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string",end:"'",endCaptures:{0:{name:"punctuation.definition.string.kusto"}},name:"string.quoted.single.kusto",patterns:[{include:"#Escapes"}]}]},TimeSpanLiterals:{patterns:[{comment:"timespan literals: https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types/timespan#timespan-literals",match:"[+-]?(?:\\d*\\.)?\\d+(?:microseconds?|ticks?|seconds?|ms|d|h|m|s)\\b",name:"constant.numeric.kusto"}]}},scopeName:"source.kusto",aliases:["kql"]});var t=[e];export{t as default};
|
|
1
|
+
const e=Object.freeze({displayName:"Kusto",fileTypes:["csl","kusto","kql"],name:"kusto",patterns:[{comment:"Tabular operators: common helper operators",match:"\\b(by|from|of|to|step|with)\\b",name:"keyword.other.operator.kusto"},{comment:"Query statements: https://docs.microsoft.com/en-us/azure/kusto/query/statements",match:"\\b(let|set|alias|declare|pattern|query_parameters|restrict|access|set)\\b",name:"keyword.control.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators",match:"\\b(and|or|has_all|has_any|matches|regex)\\b",name:"keyword.other.operator.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#Strings"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/clusterfunction",match:"\\b(cluster|database)(?:\\s*\\(\\s*(.+?)\\s*\\))?(?!\\w)",name:"meta.special.database.kusto"},{comment:"Special functions: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/tablefunction",match:"\\b(external_table|materialized_view|materialize|table|toscalar)\\b",name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/betweenoperator",match:"(?<!\\w)(!?between)\\b",name:"keyword.other.operator.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#Numeric"}]},3:{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binoperators",match:"\\b(binary_and|binary_or|binary_shift_left|binary_shift_right|binary_xor)(?:\\s*\\(\\s*(\\w+)\\s*,\\s*(\\w+)\\s*\\))?(?!\\w)",name:"meta.scalar.bitwise.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binary-notfunction",match:"\\b(binary_not|bitset_count_ones)(?:\\s*\\(\\s*(\\w+)\\s*\\))?(?!\\w)",name:"meta.scalar.bitwise.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/in-cs-operator",match:"(?<!\\w)(!?in~?)(?!\\w)",name:"keyword.other.operator.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators",match:"(?<!\\w)(!?(?:contains|endswith|hasprefix|hassuffix|has|startswith)(?:_cs)?)(?!\\w)",name:"keyword.other.operator.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},3:{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},4:{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/rangefunction",match:"\\b(range)\\s*\\((?:\\s*(\\w+(?:\\(.*?\\))?)\\s*,\\s*(\\w+(?:\\(.*?\\))?)\\s*,?(?:\\s*)?(\\w+(?:\\(.*?\\))?)?\\s*\\))?(?!\\w)",name:"meta.scalar.function.range.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalarfunctions",match:"\\b(abs|acos|around|array_concat|array_iff|array_index_of|array_length|array_reverse|array_rotate_left|array_rotate_right|array_shift_left|array_shift_right|array_slice|array_sort_asc|array_sort_desc|array_split|array_sum|asin|assert|atan2|atan|bag_has_key|bag_keys|bag_merge|bag_remove_keys|base64_decode_toarray|base64_decode_tostring|base64_decode_toguid|base64_encode_fromarray|base64_encode_tostring|base64_encode_fromguid|beta_cdf|beta_inv|beta_pdf|bin_at|bin_auto|case|ceiling|coalesce|column_ifexists|convert_angle|convert_energy|convert_force|convert_length|convert_mass|convert_speed|convert_temperature|convert_volume|cos|cot|countof|current_cluster_endpoint|current_database|current_principal_details|current_principal_is_member_of|current_principal|cursor_after|cursor_before_or_at|cursor_current|current_cursor|dcount_hll|degrees|dynamic_to_json|estimate_data_size|exp10|exp2|exp|extent_id|extent_tags|extract_all|extract_json|extractjson|extract|floor|format_bytes|format_ipv4_mask|format_ipv4|gamma|gettype|gzip_compress_to_base64_string|gzip_decompress_from_base64_string|has_any_index|has_any_ipv4_prefix|has_any_ipv4|has_ipv4_prefix|has_ipv4|hash_combine|hash_many|hash_md5|hash_sha1|hash_sha256|hash_xxhash64|hash|iff|iif|indexof_regex|indexof|ingestion_time|ipv4_compare|ipv4_is_in_range|ipv4_is_in_any_range|ipv4_is_match|ipv4_is_private|ipv4_netmask_suffix|ipv6_compare|ipv6_is_match|isascii|isempty|isfinite|isinf|isnan|isnotempty|notempty|isnotnull|notnull|isnull|isutf8|jaccard_index|log10|log2|loggamma|log|make_string|max_of|min_of|new_guid|not|bag_pack|pack_all|pack_array|pack_dictionary|pack|parse_command_line|parse_csv|parse_ipv4_mask|parse_ipv4|parse_ipv6_mask|parse_ipv6|parse_path|parse_urlquery|parse_url|parse_user_agent|parse_version|parse_xml|percentile_tdigest|percentile_array_tdigest|percentrank_tdigest|pi|pow|radians|rand|rank_tdigest|regex_quote|repeat|replace_regex|replace_string|reverse|round|set_difference|set_has_element|set_intersect|set_union|sign|sin|split|sqrt|strcat_array|strcat_delim|strcmp|strcat|string_size|strlen|strrep|substring|tan|to_utf8|tobool|todecimal|todouble|toreal|toguid|tohex|toint|tolong|tolower|tostring|toupper|translate|treepath|trim_end|trim_start|trim|unixtime_microseconds_todatetime|unixtime_milliseconds_todatetime|unixtime_nanoseconds_todatetime|unixtime_seconds_todatetime|url_decode|url_encode_component|url_encode|welch_test|zip|zlib_compress_to_base64_string|zlib_decompress_from_base64_string)\\b",name:"support.function.kusto"},{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},3:{patterns:[{include:"#TimeSpanLiterals"},{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/binfunction",match:"\\b(bin)(?:\\s*\\(\\s*(.+?)\\s*,\\s*(.+?)\\s*\\))?(?!\\w)",name:"meta.scalar.function.bin.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/count-aggfunction",match:"\\b(count)\\s*\\(\\s*\\)(?!\\w)",name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/aggregation-functions",match:"\\b(arg_max|arg_min|avgif|avg|binary_all_and|binary_all_or|binary_all_xor|buildschema|countif|dcount|dcountif|hll|hll_merge|make_bag_if|make_bag|make_list_with_nulls|make_list_if|make_list|make_set_if|make_set|maxif|max|minif|min|percentilesw_array|percentiles_array|percentilesw|percentilew|percentiles|percentile|stdevif|stdevp|stdev|sumif|sum|take_anyif|take_any|tdigest_merge|merge_tdigest|tdigest|varianceif|variancep|variance)\\b",name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/geospatial-grid-systems",match:"\\b(geo_distance_2points|geo_distance_point_to_line|geo_distance_point_to_polygon|geo_intersects_2lines|geo_intersects_2polygons|geo_intersects_line_with_polygon|geo_intersection_2lines|geo_intersection_2polygons|geo_intersection_line_with_polygon|geo_line_centroid|geo_line_densify|geo_line_length|geo_line_simplify|geo_polygon_area|geo_polygon_centroid|geo_polygon_densify|geo_polygon_perimeter|geo_polygon_simplify|geo_polygon_to_s2cells|geo_point_in_circle|geo_point_in_polygon|geo_point_to_geohash|geo_point_to_h3cell|geo_point_to_s2cell|geo_geohash_to_central_point|geo_geohash_neighbors|geo_geohash_to_polygon|geo_s2cell_to_central_point|geo_s2cell_neighbors|geo_s2cell_to_polygon|geo_h3cell_to_central_point|geo_h3cell_neighbors|geo_h3cell_to_polygon|geo_h3cell_parent|geo_h3cell_children|geo_h3cell_level|geo_h3cell_rings|geo_simplify_polygons_array|geo_union_lines_array|geo_union_polygons_array)\\b",name:"support.function.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/windowsfunctions",match:"\\b(next|prev|row_cumsum|row_number|row_rank|row_window_session)\\b",name:"support.function.kusto"},{comment:"User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions",match:"\\.(create-or-alter|replace)",name:"keyword.control.kusto"},{comment:"User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions",match:"(?<=let ).+(?=\\W*=)",name:"entity.function.name.lambda.kusto"},{comment:"User-defined functions: https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions",match:"\\b(folder|docstring|skipvalidation)\\b",name:"keyword.other.operator.kusto"},{match:"\\b(function)\\b",name:"storage.type.kusto"},{comment:"Data types: https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types",match:"\\b(bool|decimal|dynamic|guid|int|long|real|string)\\b",name:"storage.type.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"variable.other.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/asoperator",match:"\\b(as)\\s+(\\w+)\\b",name:"meta.query.as.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatableoperator",match:"\\b(datatable)(?=\\W*\\()",name:"keyword.other.query.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"keyword.other.operator.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/facetoperator",match:"\\b(facet)(?:\\s+(by))?\\b",name:"meta.query.facet.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"entity.name.function.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/invokeoperator",match:"\\b(invoke)(?:\\s+(\\w+))?\\b",name:"meta.query.invoke.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"keyword.other.operator.kusto"},3:{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/orderoperator",match:"\\b(order)(?:\\s+(by)\\s+(\\w+))?\\b",name:"meta.query.order.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"variable.other.column.kusto"},3:{name:"keyword.other.operator.kusto"},4:{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},5:{name:"keyword.other.operator.kusto"},6:{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},7:{name:"keyword.other.operator.kusto"},8:{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/rangeoperator",match:"\\b(range)\\s+(\\w+)\\s+(from)\\s+(\\w+(?:\\(\\w*\\))?)\\s+(to)\\s+(\\w+(?:\\(\\w*\\))?)\\s+(step)\\s+(\\w+(?:\\(\\w*\\))?)\\b",name:"meta.query.range.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sampleoperator",match:"\\b(sample)(?:\\s+(\\d+))?(?![\\w-])",name:"meta.query.sample.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]},3:{name:"keyword.other.operator.kusto"},4:{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sampledistinctoperator",match:"\\b(sample-distinct)(?:\\s+(\\d+)\\s+(of)\\s+(\\w+))?\\b",name:"meta.query.sample-distinct.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{name:"keyword.other.operator.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/sortoperator",match:"\\b(sort)(?:\\s+(by))?\\b",name:"meta.query.sort.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/takeoperator",match:"\\b(take|limit)(?:\\s+(\\d+))\\b",name:"meta.query.take.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]},3:{name:"keyword.other.operator.kusto"},4:{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/topoperator",match:"\\b(top)(?:\\s+(\\d+)\\s+(by)\\s+(\\w+))?(?![\\w-])\\b",name:"meta.query.top.kusto"},{captures:{1:{name:"keyword.other.query.kusto"},2:{patterns:[{include:"#Numeric"}]},3:{name:"keyword.other.operator.kusto"},4:{name:"variable.other.column.kusto"},5:{name:"keyword.other.operator.kusto"},6:{name:"variable.other.column.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/tophittersoperator",match:"\\b(top-hitters)(?:\\s+(\\d+)\\s+(of)\\s+(\\w+)(?:\\s+(by)\\s+(\\w+))?)?\\b",name:"meta.query.top-hitters.kusto"},{comment:"Tabular operators: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/queries",match:"\\b(consume|count|distinct|evaluate|extend|externaldata|find|fork|getschema|join|lookup|make-series|mv-apply|mv-expand|project-away|project-keep|project-rename|project-reorder|project|parse|parse-where|parse-kv|partition|print|reduce|render|scan|search|serialize|shuffle|summarize|top-nested|union|where)\\b",name:"keyword.other.query.kusto"},{comment:"Tabular operators: evalute (plugins): https://docs.microsoft.com/en-us/azure/kusto/query/evaluateoperator",match:"\\b(active_users_count|activity_counts_metrics|activity_engagement|new_activity_metrics|activity_metrics|autocluster|azure_digital_twins_query_request|bag_unpack|basket|cosmosdb_sql_request|dcount_intersect|diffpatterns|funnel_sequence_completion|funnel_sequence|http_request_post|http_request|infer_storage_schema|ipv4_lookup|mysql_request|narrow|pivot|preview|rolling_percentile|rows_near|schema_merge|session_count|sequence_detect|sliding_window_counts|sql_request)\\b",name:"support.function.kusto"},{comment:"Tabular operators: join: https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator",match:"\\b(on|kind|hint\\.remote|hint\\.strategy)\\b",name:"keyword.other.operator.kusto"},{comment:"Tabular operators: join ($left, $right): https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator",match:"(\\$left|\\$right)\\b",name:"keyword.other.kusto"},{comment:"Tabular operators: join (kinds, strategies): https://docs.microsoft.com/en-us/azure/kusto/query/joinoperator",match:"\\b(innerunique|inner|leftouter|rightouter|fullouter|leftanti|anti|leftantisemi|rightanti|rightantisemi|leftsemi|rightsemi|broadcast)\\b",name:"keyword.other.kusto"},{comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/machine-learning-and-tsa",match:"\\b(series_abs|series_acos|series_add|series_asin|series_atan|series_cos|series_decompose|series_decompose_anomalies|series_decompose_forecast|series_divide|series_equals|series_exp|series_fft|series_fill_backward|series_fill_const|series_fill_forward|series_fill_linear|series_fir|series_fit_2lines_dynamic|series_fit_2lines|series_fit_line_dynamic|series_fit_line|series_fit_poly|series_greater_equals|series_greater|series_ifft|series_iir|series_less_equals|series_less|series_multiply|series_not_equals|series_outliers|series_pearson_correlation|series_periods_detect|series_periods_validate|series_pow|series_seasonal|series_sign|series_sin|series_stats|series_stats_dynamic|series_subtract|series_tan)\\b",name:"support.function.kusto"},{comment:"Tabular operators: mv-expand (bagexpand options): https://docs.microsoft.com/en-us/azure/kusto/query/mvexpandoperator",match:"\\b(bag|array)\\b",name:"keyword.other.operator.kusto"},{comment:"Tabular operators: order: https://docs.microsoft.com/en-us/azure/kusto/query/orderoperator",match:"\\b(asc|desc|nulls first|nulls last)\\b",name:"keyword.other.kusto"},{comment:"Tabular operators: parse: https://docs.microsoft.com/en-us/azure/kusto/query/parseoperator",match:"\\b(regex|simple|relaxed)\\b",name:"keyword.other.kusto"},{match:"\\b(anomalychart|areachart|barchart|card|columnchart|ladderchart|linechart|piechart|pivotchart|scatterchart|stackedareachart|timechart|timepivot)\\b",name:"support.function.kusto"},{include:"#Strings"},{match:"\\{.*?\\}",name:"string.other.kusto"},{comment:"Comments",match:"//.*",name:"comment.line.kusto"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#DateTimeTimeSpanDataTypes"},{include:"#Numeric"},{match:"\\b(true|false|null)\\b",name:"constant.language.kusto"},{comment:"Deprecated functions",match:"\\b(anyif|any|array_strcat|base64_decodestring|base64_encodestring|make_dictionary|makelist|makeset|mvexpand|todynamic|parse_json|replace|weekofyear)(?=\\W*\\(|\\b)",name:"invalid.deprecated.kusto"}],repository:{DateTimeTimeSpanDataTypes:{patterns:[{match:"\\b(datetime|timespan|time)\\b",name:"storage.type.kusto"}]},DateTimeTimeSpanFunctions:{patterns:[{captures:{1:{name:"support.function.kusto"},2:{patterns:[{include:"#DateTimeTimeSpanDataTypes"}]},3:{patterns:[{include:"#Strings"}]}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/format-datetimefunction",match:`\\b(format_datetime)(?:\\s*\\(\\s*(.+?)\\s*,\\s*(['"].*?['"])\\s*\\))?(?!\\w)`,name:"meta.scalar.function.format_datetime.kusto"},{comment:"Scalar function: DateTime/Timespan Functions: https://docs.microsoft.com/en-us/azure/kusto/query/scalarfunctions#datetimetimespan-functions",match:"\\b(ago|datetime_add|datetime_diff|datetime_local_to_utc|datetime_part|datetime_utc_to_local|dayofmonth|dayofweek|dayofyear|endofday|endofmonth|endofweek|endofyear|format_timespan|getmonth|getyear|hourofday|make_datetime|make_timespan|monthofyear|now|startofday|startofmonth|startofweek|startofyear|todatetime|totimespan|week_of_year)(?=\\W*\\()",name:"support.function.kusto"}]},Escapes:{patterns:[{match:`(\\\\['"]|\\\\\\\\)`,name:"constant.character.escape.kusto"}]},Numeric:{patterns:[{match:"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*+)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?(?=\\b|\\w)",name:"constant.numeric.kusto"}]},Strings:{patterns:[{begin:'([@h]?")',beginCaptures:{1:{name:"punctuation.definition.string.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string",end:'"',endCaptures:{0:{name:"punctuation.definition.string.kusto"}},name:"string.quoted.double.kusto",patterns:[{include:"#Escapes"}]},{begin:"([@h]?')",beginCaptures:{1:{name:"punctuation.definition.string.kusto"}},comment:"https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string",end:"'",endCaptures:{0:{name:"punctuation.definition.string.kusto"}},name:"string.quoted.single.kusto",patterns:[{include:"#Escapes"}]}]},TimeSpanLiterals:{patterns:[{comment:"timespan literals: https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types/timespan#timespan-literals",match:"[+-]?(?:\\d*\\.)?\\d+(?:microseconds?|ticks?|seconds?|ms|d|h|m|s)\\b",name:"constant.numeric.kusto"}]}},scopeName:"source.kusto",aliases:["kql"]});var t=[e];export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"57975886-3e65-4f06-9b8d-c072a775a94c","timestamp":1715995090187}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"57975886-3e65-4f06-9b8d-c072a775a94c","timestamp":1715995090187,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
3
|
<link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.D91GVkD7.css">
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D2Id3jI5.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DXFkqnOI.js">
|
|
6
6
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D6NljDpC.js">
|
|
7
7
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CowR2XfX.js">
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Cgl53LJQ.js">
|
|
76
76
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CGmujMTu.js">
|
|
77
77
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BOpLLL-w.js">
|
|
78
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
78
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C3qUB5O8.js">
|
|
79
79
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B6bHXiXE.js">
|
|
80
80
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C6Aznpr-.js">
|
|
81
81
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/ByMv4Xf1.js">
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BUpeXbsf.js">
|
|
126
126
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C9d3aiqh.js">
|
|
127
127
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dble9ECP.js">
|
|
128
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
128
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DKlGn9uv.js">
|
|
129
129
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/o5b8QYQO.js">
|
|
130
130
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Db2-y2xY.js">
|
|
131
131
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dg0DGYq4.js">
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DBxHOdLe.js">
|
|
143
143
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DR5YgmI2.js">
|
|
144
144
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/YdT6Gj0u.js">
|
|
145
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
145
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B7rNE5kf.js">
|
|
146
146
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CrgTADc5.js">
|
|
147
147
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BWKJ1FCf.js">
|
|
148
148
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B6ZnTe72.js">
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DBeuZS66.js">
|
|
188
188
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DnLUQrgA.js">
|
|
189
189
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BacI6-DX.js">
|
|
190
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
190
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bx89rGXK.js">
|
|
191
191
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/I4qd5QHW.js">
|
|
192
192
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/C2TBxDwV.js">
|
|
193
193
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CO5hpdkB.js">
|
|
@@ -195,8 +195,8 @@
|
|
|
195
195
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DVfdqzEq.js">
|
|
196
196
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/QZ3jNtnE.js">
|
|
197
197
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BLluXI4E.js">
|
|
198
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
199
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
198
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BcF9sHHc.js">
|
|
199
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B4ACM-c0.js">
|
|
200
200
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/o-cPXEvd.js">
|
|
201
201
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Cicx_DS6.js">
|
|
202
202
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D3VXSfF0.js">
|
|
@@ -249,14 +249,14 @@
|
|
|
249
249
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BBDuFDsq.js">
|
|
250
250
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/eJfcURhx.js">
|
|
251
251
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BSB_bK09.js">
|
|
252
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
253
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
254
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
252
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B3g-KkBK.js">
|
|
253
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bxkoe-BC.js">
|
|
254
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Br6ll-O0.js">
|
|
255
255
|
<link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-404.BRldFSII.css">
|
|
256
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
257
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
256
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B9T-hdPi.js">
|
|
257
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DH8runP0.js">
|
|
258
258
|
<link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-500.D8yw_IbC.css">
|
|
259
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
260
|
-
<script type="module" src="/__nuxt-scripts/_nuxt/
|
|
259
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BvCpKIQU.js">
|
|
260
|
+
<script type="module" src="/__nuxt-scripts/_nuxt/D2Id3jI5.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
|
|
261
261
|
</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
262
262
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{defaultScriptOptions:{trigger:"onNuxtReady"}}},app:{baseURL:"/__nuxt-scripts",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from 'vue'
|
|
14
14
|
import { type QueryObject, withQuery } from 'ufo'
|
|
15
15
|
import { defu } from 'defu'
|
|
16
|
-
import type { ElementScriptTrigger } from '../
|
|
16
|
+
import type { ElementScriptTrigger } from '../types'
|
|
17
17
|
import { scriptRuntimeConfig } from '../utils'
|
|
18
18
|
import { resolveComponent, useElementScriptTrigger, useHead, useScriptGoogleMaps } from '#imports'
|
|
19
19
|
|
|
@@ -144,7 +144,7 @@ onMounted(() => {
|
|
|
144
144
|
})
|
|
145
145
|
// create the map
|
|
146
146
|
$script.then(async (instance) => {
|
|
147
|
-
const maps = await instance.maps
|
|
147
|
+
const maps = await instance.maps
|
|
148
148
|
const _map = new maps.Map(mapEl.value!, options.value)
|
|
149
149
|
const placesService = new maps.places.PlacesService(_map)
|
|
150
150
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
2
|
+
import type { ElementScriptTrigger } from '../types'
|
|
3
|
+
import { onMounted, ref, useElementScriptTrigger, useScriptLemonSqueezy } from '#imports'
|
|
3
4
|
|
|
4
5
|
const props = withDefaults(defineProps<{
|
|
5
6
|
trigger?: ElementScriptTrigger
|
|
@@ -19,10 +20,8 @@ const { $script } = useScriptLemonSqueezy({
|
|
|
19
20
|
},
|
|
20
21
|
})
|
|
21
22
|
onMounted(() => {
|
|
22
|
-
// @ts-expect-error untyped
|
|
23
23
|
$script.then(({ Setup }) => {
|
|
24
24
|
Setup({
|
|
25
|
-
// @ts-expect-error untyped
|
|
26
25
|
eventHandler(event) {
|
|
27
26
|
emits('event', event)
|
|
28
27
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref } from 'vue'
|
|
3
|
-
import type { ElementScriptTrigger } from '../
|
|
3
|
+
import type { ElementScriptTrigger } from '../types'
|
|
4
4
|
import { onBeforeUnmount, useElementScriptTrigger, useScript } from '#imports'
|
|
5
5
|
|
|
6
6
|
const props = withDefaults(defineProps<{
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
/// <reference types="vimeo__player" />
|
|
2
3
|
import { type HTMLAttributes, type ImgHTMLAttributes, computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
|
3
|
-
import type Player from 'vimeo__player'
|
|
4
|
-
import type { EventMap, VimeoVideoQuality } from 'vimeo__player'
|
|
5
4
|
import { defu } from 'defu'
|
|
6
|
-
import type { ElementScriptTrigger } from '../
|
|
5
|
+
import type { ElementScriptTrigger } from '../types'
|
|
7
6
|
import { useAsyncData, useElementScriptTrigger, useHead, useScriptVimeoPlayer } from '#imports'
|
|
8
7
|
|
|
9
8
|
const props = withDefaults(defineProps<{
|
|
@@ -13,7 +12,7 @@ const props = withDefaults(defineProps<{
|
|
|
13
12
|
rootAttrs?: HTMLAttributes
|
|
14
13
|
aboveTheFold?: boolean
|
|
15
14
|
// copied from @types/vimeo__player
|
|
16
|
-
id:
|
|
15
|
+
id: number | undefined
|
|
17
16
|
url?: string | undefined
|
|
18
17
|
autopause?: boolean | undefined
|
|
19
18
|
autoplay?: boolean | undefined
|
|
@@ -35,7 +34,7 @@ const props = withDefaults(defineProps<{
|
|
|
35
34
|
portrait?: boolean | undefined
|
|
36
35
|
responsive?: boolean | undefined
|
|
37
36
|
speed?: boolean | undefined
|
|
38
|
-
quality?: VimeoVideoQuality | undefined
|
|
37
|
+
quality?: Vimeo.VimeoVideoQuality | undefined
|
|
39
38
|
texttrack?: string | undefined
|
|
40
39
|
title?: boolean | undefined
|
|
41
40
|
transparent?: boolean | undefined
|
|
@@ -48,35 +47,40 @@ const props = withDefaults(defineProps<{
|
|
|
48
47
|
controls: true,
|
|
49
48
|
})
|
|
50
49
|
|
|
51
|
-
const emits = defineEmits<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
50
|
+
const emits = defineEmits<TEmits>()
|
|
51
|
+
|
|
52
|
+
type EventMap<E extends keyof Vimeo.EventMap> = [event: Vimeo.EventMap[E], player: Vimeo]
|
|
53
|
+
|
|
54
|
+
// eslint-disable-next-line ts/consistent-type-definitions
|
|
55
|
+
type TEmits = {
|
|
56
|
+
play: EventMap<'play'>
|
|
57
|
+
playing: EventMap<'playing'>
|
|
58
|
+
pause: EventMap<'pause'>
|
|
59
|
+
ended: EventMap<'ended'>
|
|
60
|
+
timeupdate: EventMap<'timeupdate'>
|
|
61
|
+
progress: EventMap<'progress'>
|
|
62
|
+
seeking: EventMap<'seeking'>
|
|
63
|
+
seeked: EventMap<'seeked'>
|
|
64
|
+
texttrackchange: EventMap<'texttrackchange'>
|
|
65
|
+
chapterchange: EventMap<'chapterchange'>
|
|
66
|
+
cuechange: EventMap<'cuechange'>
|
|
67
|
+
cuepoint: EventMap<'cuepoint'>
|
|
68
|
+
volumechange: EventMap<'volumechange'>
|
|
69
|
+
playbackratechange: EventMap<'playbackratechange'>
|
|
70
|
+
bufferstart: EventMap<'bufferstart'>
|
|
71
|
+
bufferend: EventMap<'bufferend'>
|
|
72
|
+
error: EventMap<'error'>
|
|
73
|
+
loaded: EventMap<'loaded'>
|
|
74
|
+
durationchange: EventMap<'durationchange'>
|
|
75
|
+
fullscreenchange: EventMap<'fullscreenchange'>
|
|
76
|
+
qualitychange: EventMap<'qualitychange'>
|
|
77
|
+
camerachange: EventMap<'camerachange'>
|
|
78
|
+
resize: EventMap<'resize'>
|
|
79
|
+
enterpictureinpicture: EventMap<'enterpictureinpicture'>
|
|
80
|
+
leavepictureinpicture: EventMap<'leavepictureinpicture'>
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const events: (keyof TEmits)[] = [
|
|
80
84
|
'play',
|
|
81
85
|
'playing',
|
|
82
86
|
'pause',
|
|
@@ -100,6 +104,8 @@ const events = [
|
|
|
100
104
|
'qualitychange',
|
|
101
105
|
'camerachange',
|
|
102
106
|
'resize',
|
|
107
|
+
'enterpictureinpicture',
|
|
108
|
+
'leavepictureinpicture',
|
|
103
109
|
]
|
|
104
110
|
|
|
105
111
|
const elVimeo = ref()
|
|
@@ -134,7 +140,7 @@ if (import.meta.server) {
|
|
|
134
140
|
const { data: payload } = useAsyncData(
|
|
135
141
|
`vimeo-embed:${props.id}`,
|
|
136
142
|
// TODO ideally we cache this
|
|
137
|
-
() => $fetch(`https://vimeo.com/api/v2/video/${props.id}.json`).then(res => res[0]),
|
|
143
|
+
() => $fetch(`https://vimeo.com/api/v2/video/${props.id}.json`).then(res => (res as any)[0]),
|
|
138
144
|
{
|
|
139
145
|
watch: [() => props.id],
|
|
140
146
|
},
|
|
@@ -142,7 +148,7 @@ const { data: payload } = useAsyncData(
|
|
|
142
148
|
|
|
143
149
|
const placeholder = computed(() => payload.value?.thumbnail_large)
|
|
144
150
|
|
|
145
|
-
let player:
|
|
151
|
+
let player: Vimeo | undefined
|
|
146
152
|
// we can't directly expose the player as vue will break the proxy
|
|
147
153
|
defineExpose({
|
|
148
154
|
play: () => player?.play(),
|
|
@@ -159,6 +165,7 @@ defineExpose({
|
|
|
159
165
|
getPlaybackRate: () => player?.getPlaybackRate(),
|
|
160
166
|
setPlaybackRate: (rate: number) => player?.setPlaybackRate(rate),
|
|
161
167
|
})
|
|
168
|
+
|
|
162
169
|
onMounted(() => {
|
|
163
170
|
$script.then(async ({ Vimeo }) => {
|
|
164
171
|
// filter props for false values
|
|
@@ -171,7 +178,8 @@ onMounted(() => {
|
|
|
171
178
|
clickTriggered = false
|
|
172
179
|
}
|
|
173
180
|
for (const event of events) {
|
|
174
|
-
player!.on(event, (e) => {
|
|
181
|
+
player!.on(event, (e: EventMap<typeof event>) => {
|
|
182
|
+
// @ts-expect-error ts isn't able to infer the correct event type
|
|
175
183
|
emits(event, e, player)
|
|
176
184
|
if (event === 'loaded')
|
|
177
185
|
ready.value = true
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="youtube" />
|
|
3
3
|
import { type HTMLAttributes, type ImgHTMLAttributes, type Ref, computed, onMounted, ref, watch } from 'vue'
|
|
4
4
|
import { defu } from 'defu'
|
|
5
|
-
import type { ElementScriptTrigger } from '../
|
|
5
|
+
import type { ElementScriptTrigger } from '../types'
|
|
6
6
|
import { useElementScriptTrigger, useHead, useScriptYouTubePlayer } from '#imports'
|
|
7
7
|
|
|
8
8
|
const props = withDefaults(defineProps<{
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import type { TrackedPage } from '#nuxt-scripts';
|
|
2
|
-
export declare function useAnalyticsPageEvent(onChange?: (payload: TrackedPage) => void): import("#imports").Ref<
|
|
2
|
+
export declare function useAnalyticsPageEvent(onChange?: (payload: TrackedPage) => void): import("#imports").Ref<{
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
path: string;
|
|
5
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MaybeComputedElementRef, MaybeElement } from '@vueuse/core';
|
|
2
|
-
|
|
2
|
+
import type { ElementScriptTrigger } from '../types';
|
|
3
3
|
export interface ElementScriptTriggerOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The event to trigger the script load.
|
|
@@ -16,6 +16,21 @@ declare global {
|
|
|
16
16
|
interface Window extends CloudflareWebAnalyticsApi {
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
export declare const CloudflareWebAnalyticsOptions:
|
|
19
|
+
export declare const CloudflareWebAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
20
|
+
/**
|
|
21
|
+
* The Cloudflare Web Analytics token.
|
|
22
|
+
*/
|
|
23
|
+
token: import("valibot").StringSchema<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Cloudflare Web Analytics enables measuring SPAs automatically by overriding the History API’s pushState function
|
|
26
|
+
* and listening to the onpopstate. Hash-based router is not supported.
|
|
27
|
+
*
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
spa: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
31
|
+
}, undefined, {
|
|
32
|
+
token: string;
|
|
33
|
+
spa?: boolean | undefined;
|
|
34
|
+
}>;
|
|
20
35
|
export type CloudflareWebAnalyticsInput = RegistryScriptInput<typeof CloudflareWebAnalyticsOptions>;
|
|
21
36
|
export declare function useScriptCloudflareWebAnalytics<T extends CloudflareWebAnalyticsApi>(_options?: CloudflareWebAnalyticsInput): any;
|
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
|
-
export declare const FathomAnalyticsOptions:
|
|
2
|
+
export declare const FathomAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
3
|
+
/**
|
|
4
|
+
* The Fathom Analytics site ID.
|
|
5
|
+
*/
|
|
6
|
+
site: import("valibot").StringSchema<string>;
|
|
7
|
+
/**
|
|
8
|
+
* The Fathom Analytics tracking mode.
|
|
9
|
+
*/
|
|
10
|
+
spa: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"auto", "auto"> | import("valibot").LiteralSchema<"history", "history"> | import("valibot").LiteralSchema<"hash", "hash">)[], "auto" | "history" | "hash">, undefined, "auto" | "history" | "hash" | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* Automatically track page views.
|
|
13
|
+
*/
|
|
14
|
+
auto: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* Enable canonical URL tracking.
|
|
17
|
+
*/
|
|
18
|
+
canonical: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Honor Do Not Track requests.
|
|
21
|
+
*/
|
|
22
|
+
honorDnt: import("valibot").OptionalSchema<import("valibot").BooleanSchema<boolean>, undefined, boolean | undefined>;
|
|
23
|
+
}, undefined, {
|
|
24
|
+
site: string;
|
|
25
|
+
spa?: "auto" | "history" | "hash" | undefined;
|
|
26
|
+
auto?: boolean | undefined;
|
|
27
|
+
canonical?: boolean | undefined;
|
|
28
|
+
honorDnt?: boolean | undefined;
|
|
29
|
+
}>;
|
|
3
30
|
export type FathomAnalyticsInput = RegistryScriptInput<typeof FathomAnalyticsOptions, false>;
|
|
4
31
|
export interface FathomAnalyticsApi {
|
|
5
32
|
beacon: (ctx: {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { GoogleAnalyticsApi } from 'third-party-capital';
|
|
2
2
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
|
-
export declare const GoogleAnalyticsOptions:
|
|
3
|
+
export declare const GoogleAnalyticsOptions: import("valibot").ObjectSchema<{
|
|
4
|
+
/**
|
|
5
|
+
* The Google Analytics ID.
|
|
6
|
+
*/
|
|
7
|
+
id: import("valibot").StringSchema<string>;
|
|
8
|
+
}, undefined, {
|
|
9
|
+
id: string;
|
|
10
|
+
}>;
|
|
4
11
|
export type GoogleAnalyticsInput = RegistryScriptInput<typeof GoogleAnalyticsOptions>;
|
|
5
12
|
declare global {
|
|
6
13
|
interface Window extends GoogleAnalyticsApi {
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
declare namespace google {
|
|
3
|
+
namespace maps {
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
function __ib__(): void;
|
|
8
|
+
}
|
|
9
9
|
}
|
|
10
|
+
export declare const GoogleMapsOptions: import("valibot").ObjectSchema<{
|
|
11
|
+
apiKey: import("valibot").StringSchema<string>;
|
|
12
|
+
libraries: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<string>, string[]>, undefined, string[] | undefined>;
|
|
13
|
+
v: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"weekly", "weekly"> | import("valibot").LiteralSchema<"beta", "beta"> | import("valibot").LiteralSchema<"alpha", "alpha">)[], "weekly" | "beta" | "alpha">, undefined, "weekly" | "beta" | "alpha" | undefined>;
|
|
14
|
+
}, undefined, {
|
|
15
|
+
apiKey: string;
|
|
16
|
+
libraries?: string[] | undefined;
|
|
17
|
+
v?: "weekly" | "beta" | "alpha" | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type GoogleMapsInput = RegistryScriptInput<typeof GoogleMapsOptions>;
|
|
10
20
|
export interface GoogleMapsApi {
|
|
11
|
-
maps: typeof google.maps;
|
|
21
|
+
maps: typeof window.google.maps;
|
|
12
22
|
}
|
|
13
23
|
declare global {
|
|
14
24
|
interface Window {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { GoogleTagManagerApi } from 'third-party-capital';
|
|
2
2
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
|
-
declare const GoogleTagManagerOptions:
|
|
3
|
+
declare const GoogleTagManagerOptions: import("valibot").ObjectSchema<{
|
|
4
|
+
id: import("valibot").StringSchema<string>;
|
|
5
|
+
}, undefined, {
|
|
6
|
+
id: string;
|
|
7
|
+
}>;
|
|
4
8
|
export type GoogleTagManagerInput = RegistryScriptInput<typeof GoogleTagManagerOptions>;
|
|
5
9
|
declare global {
|
|
6
10
|
interface Window extends GoogleTagManagerApi {
|
|
@@ -12,6 +12,12 @@ declare global {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
export declare const HotjarOptions:
|
|
15
|
+
export declare const HotjarOptions: import("valibot").ObjectSchema<{
|
|
16
|
+
id: import("valibot").NumberSchema<number>;
|
|
17
|
+
sv: import("valibot").OptionalSchema<import("valibot").NumberSchema<number>, undefined, number | undefined>;
|
|
18
|
+
}, undefined, {
|
|
19
|
+
id: number;
|
|
20
|
+
sv?: number | undefined;
|
|
21
|
+
}>;
|
|
16
22
|
export type HotjarInput = RegistryScriptInput<typeof HotjarOptions>;
|
|
17
23
|
export declare function useScriptHotjar<T extends HotjarApi>(_options?: HotjarInput): any;
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import { type Input } from '#nuxt-scripts-validator';
|
|
2
2
|
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
3
|
-
export declare const IntercomOptions:
|
|
3
|
+
export declare const IntercomOptions: import("valibot").ObjectSchema<{
|
|
4
|
+
app_id: import("valibot").StringSchema<string>;
|
|
5
|
+
api_base: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"https://api-iam.intercom.io", "https://api-iam.intercom.io"> | import("valibot").LiteralSchema<"https://api-iam.eu.intercom.io", "https://api-iam.eu.intercom.io"> | import("valibot").LiteralSchema<"https://api-iam.au.intercom.io", "https://api-iam.au.intercom.io">)[], "https://api-iam.intercom.io" | "https://api-iam.eu.intercom.io" | "https://api-iam.au.intercom.io">, undefined, "https://api-iam.intercom.io" | "https://api-iam.eu.intercom.io" | "https://api-iam.au.intercom.io" | undefined>;
|
|
6
|
+
name: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
|
|
7
|
+
email: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
|
|
8
|
+
user_id: import("valibot").OptionalSchema<import("valibot").StringSchema<string>, undefined, string | undefined>;
|
|
9
|
+
alignment: import("valibot").OptionalSchema<import("valibot").UnionSchema<(import("valibot").LiteralSchema<"left", "left"> | import("valibot").LiteralSchema<"right", "right">)[], "left" | "right">, undefined, "left" | "right" | undefined>;
|
|
10
|
+
horizontal_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<number>, undefined, number | undefined>;
|
|
11
|
+
vertical_padding: import("valibot").OptionalSchema<import("valibot").NumberSchema<number>, undefined, number | undefined>;
|
|
12
|
+
}, undefined, {
|
|
13
|
+
app_id: string;
|
|
14
|
+
api_base?: "https://api-iam.intercom.io" | "https://api-iam.eu.intercom.io" | "https://api-iam.au.intercom.io" | undefined;
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
email?: string | undefined;
|
|
17
|
+
user_id?: string | undefined;
|
|
18
|
+
alignment?: "left" | "right" | undefined;
|
|
19
|
+
horizontal_padding?: number | undefined;
|
|
20
|
+
vertical_padding?: number | undefined;
|
|
21
|
+
}>;
|
|
4
22
|
export type IntercomInput = RegistryScriptInput<typeof IntercomOptions>;
|
|
5
23
|
export interface IntercomApi {
|
|
6
24
|
Intercom: ((event: 'boot', data?: Input<typeof IntercomOptions>) => void) & ((event: 'shutdown') => void) & ((event: 'update', options?: Input<typeof IntercomOptions>) => void) & ((event: 'hide') => void) & ((event: 'show') => void) & ((event: 'showSpace', spaceName: 'home' | 'messages' | 'help' | 'news' | 'tasks' | 'tickets' | string) => void) & ((event: 'showMessages') => void) & ((event: 'showNewMessage', content?: string) => void) & ((event: 'onHide', fn: () => void) => void) & ((event: 'onShow', fn: () => void) => void) & ((event: 'onUnreadCountChange', fn: () => void) => void) & ((event: 'trackEvent', eventName: string, metadata?: Record<string, any>) => void) & ((event: 'getVisitorId') => Promise<string>) & ((event: 'startTour', tourId: string | number) => void) & ((event: 'showArticle', articleId: string | number) => void) & ((event: 'showNews', newsItemId: string | number) => void) & ((event: 'startSurvey', surveyId: string | number) => void) & ((event: 'startChecklist', checklistId: string | number) => void) & ((event: 'showTicket', ticketId: string | number) => void) & ((event: 'showConversation', conversationId: string | number) => void) & ((event: 'onUserEmailSupplied', fn: () => void) => void) & ((event: string, ...params: any[]) => void);
|
|
7
25
|
}
|
|
8
26
|
declare global {
|
|
9
27
|
interface Window extends IntercomApi {
|
|
10
|
-
intercomSettings?:
|
|
28
|
+
intercomSettings?: any;
|
|
11
29
|
}
|
|
12
30
|
}
|
|
13
31
|
export declare function useScriptIntercom<T extends IntercomApi>(_options?: IntercomInput): any;
|