@neuralnomads/codenomad-dev 0.20.0-dev-20260907-e9e94a67 → 0.20.0-dev-20260908-e5115fe8
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/package.json +1 -1
- package/public/assets/{App-lAZZOE--.js → App-DPj4p3An.js} +16 -16
- package/public/assets/App-DPj4p3An.js.map +1 -0
- package/public/assets/{FilesTab-CgfwF6tR.js → FilesTab-C8fnWsM4.js} +2 -2
- package/public/assets/{FilesTab-CgfwF6tR.js.map → FilesTab-C8fnWsM4.js.map} +1 -1
- package/public/assets/{GitChangesTab-r1JoAD9n.js → GitChangesTab-C3rapWwl.js} +2 -2
- package/public/assets/{GitChangesTab-r1JoAD9n.js.map → GitChangesTab-C3rapWwl.js.map} +1 -1
- package/public/assets/{SplitFilePanel-D9FfoZUZ.js → SplitFilePanel-D3S7Zfcc.js} +2 -2
- package/public/assets/{SplitFilePanel-D9FfoZUZ.js.map → SplitFilePanel-D3S7Zfcc.js.map} +1 -1
- package/public/assets/{StatusTab-DMnWj5WS.js → StatusTab-DHvQ-0to.js} +2 -2
- package/public/assets/{StatusTab-DMnWj5WS.js.map → StatusTab-DHvQ-0to.js.map} +1 -1
- package/public/assets/{align-justify-Dc1gjAkp.js → align-justify-BIN0BnZw.js} +2 -2
- package/public/assets/{align-justify-Dc1gjAkp.js.map → align-justify-BIN0BnZw.js.map} +1 -1
- package/public/assets/{bundle-full-CXK0RpEe.js → bundle-full-BfEvraVO.js} +2 -2
- package/public/assets/{bundle-full-CXK0RpEe.js.map → bundle-full-BfEvraVO.js.map} +1 -1
- package/public/assets/{client-state-DmImbmIC.js → client-state-CBKOWfhu.js} +2 -2
- package/public/assets/{client-state-DmImbmIC.js.map → client-state-CBKOWfhu.js.map} +1 -1
- package/public/assets/{diff-viewer-CbJWj99J.js → diff-viewer-6oxyPi3-.js} +2 -2
- package/public/assets/{diff-viewer-CbJWj99J.js.map → diff-viewer-6oxyPi3-.js.map} +1 -1
- package/public/assets/{index-CF7UTwOC.js → index-BJrZpSe6.js} +2 -2
- package/public/assets/{index-CF7UTwOC.js.map → index-BJrZpSe6.js.map} +1 -1
- package/public/assets/{index-UtSy15g1.js → index-B_9dhJTl.js} +2 -2
- package/public/assets/{index-UtSy15g1.js.map → index-B_9dhJTl.js.map} +1 -1
- package/public/assets/{index-xkTcWbMt.js → index-BeWVYvfJ.js} +2 -2
- package/public/assets/{index-xkTcWbMt.js.map → index-BeWVYvfJ.js.map} +1 -1
- package/public/assets/{index-C1AVy0gw.js → index-BhBg6Tnf.js} +2 -2
- package/public/assets/{index-C1AVy0gw.js.map → index-BhBg6Tnf.js.map} +1 -1
- package/public/assets/{index-Bv4cVEdt.js → index-C9znv1NB.js} +2 -2
- package/public/assets/{index-Bv4cVEdt.js.map → index-C9znv1NB.js.map} +1 -1
- package/public/assets/{index-kaTj6a0V.js → index-CD9b6FoA.js} +2 -2
- package/public/assets/{index-kaTj6a0V.js.map → index-CD9b6FoA.js.map} +1 -1
- package/public/assets/{index-D5cfewGV.js → index-CmJg6xjr.js} +2 -2
- package/public/assets/{index-D5cfewGV.js.map → index-CmJg6xjr.js.map} +1 -1
- package/public/assets/{index-C8aIk3bb.js → index-DHNlQHw2.js} +2 -2
- package/public/assets/{index-C8aIk3bb.js.map → index-DHNlQHw2.js.map} +1 -1
- package/public/assets/{index-AwBa5De4.js → index-DdklToXY.js} +2 -2
- package/public/assets/{index-AwBa5De4.js.map → index-DdklToXY.js.map} +1 -1
- package/public/assets/{index-Dggdc5Fz.js → index-Dr5L4afe.js} +2 -2
- package/public/assets/{index-Dggdc5Fz.js.map → index-Dr5L4afe.js.map} +1 -1
- package/public/assets/{index-BJSdILt0.js → index-DsmOPul3.js} +2 -2
- package/public/assets/{index-BJSdILt0.js.map → index-DsmOPul3.js.map} +1 -1
- package/public/assets/{index-BfORYhCR.js → index-ef9_CbWU.js} +3 -3
- package/public/assets/index-ef9_CbWU.js.map +1 -0
- package/public/assets/{loading-CLjF2dnt.js → loading-CanSHf7z.js} +2 -2
- package/public/assets/{loading-CLjF2dnt.js.map → loading-CanSHf7z.js.map} +1 -1
- package/public/assets/{main-CA9pw_Mr.js → main-COtTRZe6.js} +25 -25
- package/public/assets/main-COtTRZe6.js.map +1 -0
- package/public/assets/{markdown-DP0osupz.js → markdown-B04qkFuc.js} +4 -4
- package/public/assets/{markdown-DP0osupz.js.map → markdown-B04qkFuc.js.map} +1 -1
- package/public/assets/{startup-state-settings-card-Bc27wplD.js → startup-state-settings-card-DE11-Je6.js} +2 -2
- package/public/assets/{startup-state-settings-card-Bc27wplD.js.map → startup-state-settings-card-DE11-Je6.js.map} +1 -1
- package/public/assets/{terminal-square-4t6I40X6.js → terminal-square-W8UL0Uzs.js} +2 -2
- package/public/assets/{terminal-square-4t6I40X6.js.map → terminal-square-W8UL0Uzs.js.map} +1 -1
- package/public/assets/{tool-call-BIHyGWIy.js → tool-call-irc_6gLg.js} +4 -4
- package/public/assets/{tool-call-BIHyGWIy.js.map → tool-call-irc_6gLg.js.map} +1 -1
- package/public/assets/{unified-picker-CpvYPG8V.js → unified-picker-CkVc32ly.js} +2 -2
- package/public/assets/{unified-picker-CpvYPG8V.js.map → unified-picker-CkVc32ly.js.map} +1 -1
- package/public/assets/{wrap-text-Dq8UDb8D.js → wrap-text-CR-cuiJP.js} +2 -2
- package/public/assets/{wrap-text-Dq8UDb8D.js.map → wrap-text-CR-cuiJP.js.map} +1 -1
- package/public/index.html +2 -2
- package/public/loading.html +2 -2
- package/public/sw.js +1 -1
- package/public/sw.js.map +1 -1
- package/public/assets/App-lAZZOE--.js.map +0 -1
- package/public/assets/index-BfORYhCR.js.map +0 -1
- package/public/assets/main-CA9pw_Mr.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i,q as f}from"./index-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{i,q as f}from"./index-ef9_CbWU.js";import"./git-diff-vendor-ChbWBukG.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./monaco-viewer-BB3_mBkA.js";var o;(function(n){n.Year="year",n.Month="month",n.TwoWeeks="twoWeeks",n.Week="week",n.Day="day",n.Hour="hour",n.Minute="minute",n.Second="second"})(o||(o={}));class g{static at(t,e=!1,a=!1){return{at:{date:t,repeating:e,allowWhileIdle:a},interval:void 0,every:void 0}}static interval(t,e=!1){return{at:void 0,interval:{interval:t,allowWhileIdle:e},every:void 0}}static every(t,e,a=!1){return{at:void 0,interval:void 0,every:{interval:t,count:e,allowWhileIdle:a}}}}var c;(function(n){n[n.None=0]="None",n[n.Min=1]="Min",n[n.Low=2]="Low",n[n.Default=3]="Default",n[n.High=4]="High"})(c||(c={}));var r;(function(n){n[n.Secret=-1]="Secret",n[n.Private=0]="Private",n[n.Public=1]="Public"})(r||(r={}));async function v(){return window.Notification.permission!=="default"?await Promise.resolve(window.Notification.permission==="granted"):await i("plugin:notification|is_permission_granted")}async function p(){return await window.Notification.requestPermission()}function y(n){typeof n=="string"?new window.Notification(n):new window.Notification(n.title,n)}async function m(n){await i("plugin:notification|register_action_types",{types:n})}async function P(){return await i("plugin:notification|get_pending")}async function _(n){await i("plugin:notification|cancel",{notifications:n})}async function N(){await i("plugin:notification|cancel")}async function h(){return await i("plugin:notification|get_active")}async function A(n){await i("plugin:notification|remove_active",{notifications:n})}async function k(){await i("plugin:notification|remove_active")}async function M(n){await i("plugin:notification|create_channel",{...n})}async function q(n){await i("plugin:notification|delete_channel",{id:n})}async function C(){return await i("plugin:notification|listChannels")}async function D(n){return await f("notification","notification",n)}async function H(n){return await f("notification","actionPerformed",n)}export{c as Importance,g as Schedule,o as ScheduleEvery,r as Visibility,h as active,_ as cancel,N as cancelAll,C as channels,M as createChannel,v as isPermissionGranted,H as onAction,D as onNotificationReceived,P as pending,m as registerActionTypes,A as removeActive,k as removeAllActive,q as removeChannel,p as requestPermission,y as sendNotification};
|
|
2
|
+
//# sourceMappingURL=index-BhBg6Tnf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-C1AVy0gw.js","sources":["../../../../../../node_modules/@tauri-apps/plugin-notification/dist-js/index.js"],"sourcesContent":["import { invoke, addPluginListener } from '@tauri-apps/api/core';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Send toast notifications (brief auto-expiring OS window element) to your user.\n * Can also be used with the Notification Web API.\n *\n * @module\n */\nvar ScheduleEvery;\n(function (ScheduleEvery) {\n ScheduleEvery[\"Year\"] = \"year\";\n ScheduleEvery[\"Month\"] = \"month\";\n ScheduleEvery[\"TwoWeeks\"] = \"twoWeeks\";\n ScheduleEvery[\"Week\"] = \"week\";\n ScheduleEvery[\"Day\"] = \"day\";\n ScheduleEvery[\"Hour\"] = \"hour\";\n ScheduleEvery[\"Minute\"] = \"minute\";\n /**\n * Not supported on iOS.\n */\n ScheduleEvery[\"Second\"] = \"second\";\n})(ScheduleEvery || (ScheduleEvery = {}));\nclass Schedule {\n static at(date, repeating = false, allowWhileIdle = false) {\n return {\n at: { date, repeating, allowWhileIdle },\n interval: undefined,\n every: undefined\n };\n }\n static interval(interval, allowWhileIdle = false) {\n return {\n at: undefined,\n interval: { interval, allowWhileIdle },\n every: undefined\n };\n }\n static every(kind, count, allowWhileIdle = false) {\n return {\n at: undefined,\n interval: undefined,\n every: { interval: kind, count, allowWhileIdle }\n };\n }\n}\nvar Importance;\n(function (Importance) {\n Importance[Importance[\"None\"] = 0] = \"None\";\n Importance[Importance[\"Min\"] = 1] = \"Min\";\n Importance[Importance[\"Low\"] = 2] = \"Low\";\n Importance[Importance[\"Default\"] = 3] = \"Default\";\n Importance[Importance[\"High\"] = 4] = \"High\";\n})(Importance || (Importance = {}));\nvar Visibility;\n(function (Visibility) {\n Visibility[Visibility[\"Secret\"] = -1] = \"Secret\";\n Visibility[Visibility[\"Private\"] = 0] = \"Private\";\n Visibility[Visibility[\"Public\"] = 1] = \"Public\";\n})(Visibility || (Visibility = {}));\n/**\n * Checks if the permission to send notifications is granted.\n * @example\n * ```typescript\n * import { isPermissionGranted } from '@tauri-apps/plugin-notification';\n * const permissionGranted = await isPermissionGranted();\n * ```\n *\n * @since 2.0.0\n */\nasync function isPermissionGranted() {\n if (window.Notification.permission !== 'default') {\n return await Promise.resolve(window.Notification.permission === 'granted');\n }\n return await invoke('plugin:notification|is_permission_granted');\n}\n/**\n * Requests the permission to send notifications.\n * @example\n * ```typescript\n * import { isPermissionGranted, requestPermission } from '@tauri-apps/plugin-notification';\n * let permissionGranted = await isPermissionGranted();\n * if (!permissionGranted) {\n * const permission = await requestPermission();\n * permissionGranted = permission === 'granted';\n * }\n * ```\n *\n * @returns A promise resolving to whether the user granted the permission or not.\n *\n * @since 2.0.0\n */\nasync function requestPermission() {\n return await window.Notification.requestPermission();\n}\n/**\n * Sends a notification to the user.\n * @example\n * ```typescript\n * import { isPermissionGranted, requestPermission, sendNotification } from '@tauri-apps/plugin-notification';\n * let permissionGranted = await isPermissionGranted();\n * if (!permissionGranted) {\n * const permission = await requestPermission();\n * permissionGranted = permission === 'granted';\n * }\n * if (permissionGranted) {\n * sendNotification('Tauri is awesome!');\n * sendNotification({ title: 'TAURI', body: 'Tauri is awesome!' });\n * }\n * ```\n *\n * @since 2.0.0\n */\nfunction sendNotification(options) {\n if (typeof options === 'string') {\n new window.Notification(options);\n }\n else {\n new window.Notification(options.title, options);\n }\n}\n/**\n * Register actions that are performed when the user clicks on the notification.\n *\n * @example\n * ```typescript\n * import { registerActionTypes } from '@tauri-apps/plugin-notification';\n * await registerActionTypes([{\n * id: 'tauri',\n * actions: [{\n * id: 'my-action',\n * title: 'Settings'\n * }]\n * }])\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function registerActionTypes(types) {\n await invoke('plugin:notification|register_action_types', { types });\n}\n/**\n * Retrieves the list of pending notifications.\n *\n * @example\n * ```typescript\n * import { pending } from '@tauri-apps/plugin-notification';\n * const pendingNotifications = await pending();\n * ```\n *\n * @returns A promise resolving to the list of pending notifications.\n *\n * @since 2.0.0\n */\nasync function pending() {\n return await invoke('plugin:notification|get_pending');\n}\n/**\n * Cancels the pending notifications with the given list of identifiers.\n *\n * @example\n * ```typescript\n * import { cancel } from '@tauri-apps/plugin-notification';\n * await cancel([-34234, 23432, 4311]);\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function cancel(notifications) {\n await invoke('plugin:notification|cancel', { notifications });\n}\n/**\n * Cancels all pending notifications.\n *\n * @example\n * ```typescript\n * import { cancelAll } from '@tauri-apps/plugin-notification';\n * await cancelAll();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function cancelAll() {\n await invoke('plugin:notification|cancel');\n}\n/**\n * Retrieves the list of active notifications.\n *\n * @example\n * ```typescript\n * import { active } from '@tauri-apps/plugin-notification';\n * const activeNotifications = await active();\n * ```\n *\n * @returns A promise resolving to the list of active notifications.\n *\n * @since 2.0.0\n */\nasync function active() {\n return await invoke('plugin:notification|get_active');\n}\n/**\n * Removes the active notifications with the given list of identifiers.\n *\n * @example\n * ```typescript\n * import { cancel } from '@tauri-apps/plugin-notification';\n * await cancel([-34234, 23432, 4311])\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function removeActive(notifications) {\n await invoke('plugin:notification|remove_active', { notifications });\n}\n/**\n * Removes all active notifications.\n *\n * @example\n * ```typescript\n * import { removeAllActive } from '@tauri-apps/plugin-notification';\n * await removeAllActive()\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function removeAllActive() {\n await invoke('plugin:notification|remove_active');\n}\n/**\n * Creates a notification channel.\n *\n * @example\n * ```typescript\n * import { createChannel, Importance, Visibility } from '@tauri-apps/plugin-notification';\n * await createChannel({\n * id: 'new-messages',\n * name: 'New Messages',\n * lights: true,\n * vibration: true,\n * importance: Importance.Default,\n * visibility: Visibility.Private\n * });\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function createChannel(channel) {\n await invoke('plugin:notification|create_channel', { ...channel });\n}\n/**\n * Removes the channel with the given identifier.\n *\n * @example\n * ```typescript\n * import { removeChannel } from '@tauri-apps/plugin-notification';\n * await removeChannel();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function removeChannel(id) {\n await invoke('plugin:notification|delete_channel', { id });\n}\n/**\n * Retrieves the list of notification channels.\n *\n * @example\n * ```typescript\n * import { channels } from '@tauri-apps/plugin-notification';\n * const notificationChannels = await channels();\n * ```\n *\n * @returns A promise resolving to the list of notification channels.\n *\n * @since 2.0.0\n */\nasync function channels() {\n return await invoke('plugin:notification|listChannels');\n}\nasync function onNotificationReceived(cb) {\n return await addPluginListener('notification', 'notification', cb);\n}\nasync function onAction(cb) {\n return await addPluginListener('notification', 'actionPerformed', cb);\n}\n\nexport { Importance, Schedule, ScheduleEvery, Visibility, active, cancel, cancelAll, channels, createChannel, isPermissionGranted, onAction, onNotificationReceived, pending, registerActionTypes, removeActive, removeAllActive, removeChannel, requestPermission, sendNotification };\n"],"names":["ScheduleEvery","Schedule","date","repeating","allowWhileIdle","interval","kind","count","Importance","Visibility","isPermissionGranted","invoke","requestPermission","sendNotification","options","registerActionTypes","types","pending","cancel","notifications","cancelAll","active","removeActive","removeAllActive","createChannel","channel","removeChannel","id","channels","onNotificationReceived","cb","addPluginListener","onAction"],"mappings":"kMAWG,IAACA,GACH,SAAUA,EAAe,CACtBA,EAAc,KAAU,OACxBA,EAAc,MAAW,QACzBA,EAAc,SAAc,WAC5BA,EAAc,KAAU,OACxBA,EAAc,IAAS,MACvBA,EAAc,KAAU,OACxBA,EAAc,OAAY,SAI1BA,EAAc,OAAY,QAC9B,GAAGA,IAAkBA,EAAgB,CAAA,EAAG,EACx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CAEtD,CAoBA,eAAeC,EAAoBC,EAAO,CACtC,MAAML,EAAO,4CAA6C,CAAE,MAAAK,EAAO,CACvE,CAcA,eAAeC,GAAU,CACrB,OAAO,MAAMN,EAAO,iCAAiC,CACzD,CAcA,eAAeO,EAAOC,EAAe,CACjC,MAAMR,EAAO,6BAA8B,CAAE,cAAAQ,EAAe,CAChE,CAcA,eAAeC,GAAY,CACvB,MAAMT,EAAO,4BAA4B,CAC7C,CAcA,eAAeU,GAAS,CACpB,OAAO,MAAMV,EAAO,gCAAgC,CACxD,CAcA,eAAeW,EAAaH,EAAe,CACvC,MAAMR,EAAO,oCAAqC,CAAE,cAAAQ,EAAe,CACvE,CAcA,eAAeI,GAAkB,CAC7B,MAAMZ,EAAO,mCAAmC,CACpD,CAqBA,eAAea,EAAcC,EAAS,CAClC,MAAMd,EAAO,qCAAsC,CAAE,GAAGc,CAAO,CAAE,CACrE,CAcA,eAAeC,EAAcC,EAAI,CAC7B,MAAMhB,EAAO,qCAAsC,CAAE,GAAAgB,EAAI,CAC7D,CAcA,eAAeC,GAAW,CACtB,OAAO,MAAMjB,EAAO,kCAAkC,CAC1D,CACA,eAAekB,EAAuBC,EAAI,CACtC,OAAO,MAAMC,EAAkB,eAAgB,eAAgBD,CAAE,CACrE,CACA,eAAeE,EAASF,EAAI,CACxB,OAAO,MAAMC,EAAkB,eAAgB,kBAAmBD,CAAE,CACxE","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index-BhBg6Tnf.js","sources":["../../../../../../node_modules/@tauri-apps/plugin-notification/dist-js/index.js"],"sourcesContent":["import { invoke, addPluginListener } from '@tauri-apps/api/core';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Send toast notifications (brief auto-expiring OS window element) to your user.\n * Can also be used with the Notification Web API.\n *\n * @module\n */\nvar ScheduleEvery;\n(function (ScheduleEvery) {\n ScheduleEvery[\"Year\"] = \"year\";\n ScheduleEvery[\"Month\"] = \"month\";\n ScheduleEvery[\"TwoWeeks\"] = \"twoWeeks\";\n ScheduleEvery[\"Week\"] = \"week\";\n ScheduleEvery[\"Day\"] = \"day\";\n ScheduleEvery[\"Hour\"] = \"hour\";\n ScheduleEvery[\"Minute\"] = \"minute\";\n /**\n * Not supported on iOS.\n */\n ScheduleEvery[\"Second\"] = \"second\";\n})(ScheduleEvery || (ScheduleEvery = {}));\nclass Schedule {\n static at(date, repeating = false, allowWhileIdle = false) {\n return {\n at: { date, repeating, allowWhileIdle },\n interval: undefined,\n every: undefined\n };\n }\n static interval(interval, allowWhileIdle = false) {\n return {\n at: undefined,\n interval: { interval, allowWhileIdle },\n every: undefined\n };\n }\n static every(kind, count, allowWhileIdle = false) {\n return {\n at: undefined,\n interval: undefined,\n every: { interval: kind, count, allowWhileIdle }\n };\n }\n}\nvar Importance;\n(function (Importance) {\n Importance[Importance[\"None\"] = 0] = \"None\";\n Importance[Importance[\"Min\"] = 1] = \"Min\";\n Importance[Importance[\"Low\"] = 2] = \"Low\";\n Importance[Importance[\"Default\"] = 3] = \"Default\";\n Importance[Importance[\"High\"] = 4] = \"High\";\n})(Importance || (Importance = {}));\nvar Visibility;\n(function (Visibility) {\n Visibility[Visibility[\"Secret\"] = -1] = \"Secret\";\n Visibility[Visibility[\"Private\"] = 0] = \"Private\";\n Visibility[Visibility[\"Public\"] = 1] = \"Public\";\n})(Visibility || (Visibility = {}));\n/**\n * Checks if the permission to send notifications is granted.\n * @example\n * ```typescript\n * import { isPermissionGranted } from '@tauri-apps/plugin-notification';\n * const permissionGranted = await isPermissionGranted();\n * ```\n *\n * @since 2.0.0\n */\nasync function isPermissionGranted() {\n if (window.Notification.permission !== 'default') {\n return await Promise.resolve(window.Notification.permission === 'granted');\n }\n return await invoke('plugin:notification|is_permission_granted');\n}\n/**\n * Requests the permission to send notifications.\n * @example\n * ```typescript\n * import { isPermissionGranted, requestPermission } from '@tauri-apps/plugin-notification';\n * let permissionGranted = await isPermissionGranted();\n * if (!permissionGranted) {\n * const permission = await requestPermission();\n * permissionGranted = permission === 'granted';\n * }\n * ```\n *\n * @returns A promise resolving to whether the user granted the permission or not.\n *\n * @since 2.0.0\n */\nasync function requestPermission() {\n return await window.Notification.requestPermission();\n}\n/**\n * Sends a notification to the user.\n * @example\n * ```typescript\n * import { isPermissionGranted, requestPermission, sendNotification } from '@tauri-apps/plugin-notification';\n * let permissionGranted = await isPermissionGranted();\n * if (!permissionGranted) {\n * const permission = await requestPermission();\n * permissionGranted = permission === 'granted';\n * }\n * if (permissionGranted) {\n * sendNotification('Tauri is awesome!');\n * sendNotification({ title: 'TAURI', body: 'Tauri is awesome!' });\n * }\n * ```\n *\n * @since 2.0.0\n */\nfunction sendNotification(options) {\n if (typeof options === 'string') {\n new window.Notification(options);\n }\n else {\n new window.Notification(options.title, options);\n }\n}\n/**\n * Register actions that are performed when the user clicks on the notification.\n *\n * @example\n * ```typescript\n * import { registerActionTypes } from '@tauri-apps/plugin-notification';\n * await registerActionTypes([{\n * id: 'tauri',\n * actions: [{\n * id: 'my-action',\n * title: 'Settings'\n * }]\n * }])\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function registerActionTypes(types) {\n await invoke('plugin:notification|register_action_types', { types });\n}\n/**\n * Retrieves the list of pending notifications.\n *\n * @example\n * ```typescript\n * import { pending } from '@tauri-apps/plugin-notification';\n * const pendingNotifications = await pending();\n * ```\n *\n * @returns A promise resolving to the list of pending notifications.\n *\n * @since 2.0.0\n */\nasync function pending() {\n return await invoke('plugin:notification|get_pending');\n}\n/**\n * Cancels the pending notifications with the given list of identifiers.\n *\n * @example\n * ```typescript\n * import { cancel } from '@tauri-apps/plugin-notification';\n * await cancel([-34234, 23432, 4311]);\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function cancel(notifications) {\n await invoke('plugin:notification|cancel', { notifications });\n}\n/**\n * Cancels all pending notifications.\n *\n * @example\n * ```typescript\n * import { cancelAll } from '@tauri-apps/plugin-notification';\n * await cancelAll();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function cancelAll() {\n await invoke('plugin:notification|cancel');\n}\n/**\n * Retrieves the list of active notifications.\n *\n * @example\n * ```typescript\n * import { active } from '@tauri-apps/plugin-notification';\n * const activeNotifications = await active();\n * ```\n *\n * @returns A promise resolving to the list of active notifications.\n *\n * @since 2.0.0\n */\nasync function active() {\n return await invoke('plugin:notification|get_active');\n}\n/**\n * Removes the active notifications with the given list of identifiers.\n *\n * @example\n * ```typescript\n * import { cancel } from '@tauri-apps/plugin-notification';\n * await cancel([-34234, 23432, 4311])\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function removeActive(notifications) {\n await invoke('plugin:notification|remove_active', { notifications });\n}\n/**\n * Removes all active notifications.\n *\n * @example\n * ```typescript\n * import { removeAllActive } from '@tauri-apps/plugin-notification';\n * await removeAllActive()\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function removeAllActive() {\n await invoke('plugin:notification|remove_active');\n}\n/**\n * Creates a notification channel.\n *\n * @example\n * ```typescript\n * import { createChannel, Importance, Visibility } from '@tauri-apps/plugin-notification';\n * await createChannel({\n * id: 'new-messages',\n * name: 'New Messages',\n * lights: true,\n * vibration: true,\n * importance: Importance.Default,\n * visibility: Visibility.Private\n * });\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function createChannel(channel) {\n await invoke('plugin:notification|create_channel', { ...channel });\n}\n/**\n * Removes the channel with the given identifier.\n *\n * @example\n * ```typescript\n * import { removeChannel } from '@tauri-apps/plugin-notification';\n * await removeChannel();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 2.0.0\n */\nasync function removeChannel(id) {\n await invoke('plugin:notification|delete_channel', { id });\n}\n/**\n * Retrieves the list of notification channels.\n *\n * @example\n * ```typescript\n * import { channels } from '@tauri-apps/plugin-notification';\n * const notificationChannels = await channels();\n * ```\n *\n * @returns A promise resolving to the list of notification channels.\n *\n * @since 2.0.0\n */\nasync function channels() {\n return await invoke('plugin:notification|listChannels');\n}\nasync function onNotificationReceived(cb) {\n return await addPluginListener('notification', 'notification', cb);\n}\nasync function onAction(cb) {\n return await addPluginListener('notification', 'actionPerformed', cb);\n}\n\nexport { Importance, Schedule, ScheduleEvery, Visibility, active, cancel, cancelAll, channels, createChannel, isPermissionGranted, onAction, onNotificationReceived, pending, registerActionTypes, removeActive, removeAllActive, removeChannel, requestPermission, sendNotification };\n"],"names":["ScheduleEvery","Schedule","date","repeating","allowWhileIdle","interval","kind","count","Importance","Visibility","isPermissionGranted","invoke","requestPermission","sendNotification","options","registerActionTypes","types","pending","cancel","notifications","cancelAll","active","removeActive","removeAllActive","createChannel","channel","removeChannel","id","channels","onNotificationReceived","cb","addPluginListener","onAction"],"mappings":"kMAWG,IAACA,GACH,SAAUA,EAAe,CACtBA,EAAc,KAAU,OACxBA,EAAc,MAAW,QACzBA,EAAc,SAAc,WAC5BA,EAAc,KAAU,OACxBA,EAAc,IAAS,MACvBA,EAAc,KAAU,OACxBA,EAAc,OAAY,SAI1BA,EAAc,OAAY,QAC9B,GAAGA,IAAkBA,EAAgB,CAAA,EAAG,EACxC,MAAMC,CAAS,CACX,OAAO,GAAGC,EAAMC,EAAY,GAAOC,EAAiB,GAAO,CACvD,MAAO,CACH,GAAI,CAAE,KAAAF,EAAM,UAAAC,EAAW,eAAAC,CAAc,EACrC,SAAU,OACV,MAAO,MACnB,CACI,CACA,OAAO,SAASC,EAAUD,EAAiB,GAAO,CAC9C,MAAO,CACH,GAAI,OACJ,SAAU,CAAE,SAAAC,EAAU,eAAAD,CAAc,EACpC,MAAO,MACnB,CACI,CACA,OAAO,MAAME,EAAMC,EAAOH,EAAiB,GAAO,CAC9C,MAAO,CACH,GAAI,OACJ,SAA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MR,EAAO,oCAAqC,CAAE,cAAAQ,EAAe,CACvE,CAcA,eAAeI,GAAkB,CAC7B,MAAMZ,EAAO,mCAAmC,CACpD,CAqBA,eAAea,EAAcC,EAAS,CAClC,MAAMd,EAAO,qCAAsC,CAAE,GAAGc,CAAO,CAAE,CACrE,CAcA,eAAeC,EAAcC,EAAI,CAC7B,MAAMhB,EAAO,qCAAsC,CAAE,GAAAgB,EAAI,CAC7D,CAcA,eAAeC,GAAW,CACtB,OAAO,MAAMjB,EAAO,kCAAkC,CAC1D,CACA,eAAekB,EAAuBC,EAAI,CACtC,OAAO,MAAMC,EAAkB,eAAgB,eAAgBD,CAAE,CACrE,CACA,eAAeE,EAASF,EAAI,CACxB,OAAO,MAAMC,EAAkB,eAAgB,kBAAmBD,CAAE,CACxE","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as p}from"./index-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{i as p}from"./index-ef9_CbWU.js";import"./git-diff-vendor-ChbWBukG.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./monaco-viewer-BB3_mBkA.js";async function a(o,i){await p("plugin:opener|open_url",{url:o,with:i})}export{a as openUrl};
|
|
2
|
+
//# sourceMappingURL=index-C9znv1NB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-C9znv1NB.js","sources":["../../../../../../node_modules/@tauri-apps/plugin-opener/dist-js/index.js"],"sourcesContent":["import { invoke } from '@tauri-apps/api/core';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Open files and URLs using their default application.\n *\n * ## Security\n *\n * This API has a scope configuration that forces you to restrict the files and urls to be opened.\n *\n * ### Restricting access to the {@link open | `open`} API\n *\n * On the configuration object, `open: true` means that the {@link open} API can be used with any URL,\n * as the argument is validated with the `^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+` regex.\n * You can change that regex by changing the boolean value to a string, e.g. `open: ^https://github.com/`.\n *\n * @module\n */\n/**\n * Opens a url with the system's default app, or the one specified with {@linkcode openWith}.\n *\n * @example\n * ```typescript\n * import { openUrl } from '@tauri-apps/plugin-opener';\n *\n * // opens the given URL on the default browser:\n * await openUrl('https://github.com/tauri-apps/tauri');\n * // opens the given URL using `firefox`:\n * await openUrl('https://github.com/tauri-apps/tauri', 'firefox');\n * ```\n *\n * @param url The URL to open.\n * @param openWith The app to open the URL with. If not specified, defaults to the system default application for the specified url type.\n * On mobile, `openWith` can be provided as `inAppBrowser` to open the URL in an in-app browser. Otherwise, it will open the URL in the system default browser.\n *\n * @since 2.0.0\n */\nasync function openUrl(url, \n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nopenWith) {\n await invoke('plugin:opener|open_url', {\n url,\n with: openWith\n });\n}\n/**\n * Opens a path with the system's default app, or the one specified with {@linkcode openWith}.\n *\n * @example\n * ```typescript\n * import { openPath } from '@tauri-apps/plugin-opener';\n *\n * // opens a file using the default program:\n * await openPath('/path/to/file');\n * // opens a file using `vlc` command on Windows.\n * await openPath('C:/path/to/file', 'vlc');\n * ```\n *\n * @param path The path to open.\n * @param openWith The app to open the path with. If not specified, defaults to the system default application for the specified path type.\n *\n * @since 2.0.0\n */\nasync function openPath(path, openWith) {\n await invoke('plugin:opener|open_path', {\n path,\n with: openWith\n });\n}\n/**\n * Reveal a path with the system's default explorer.\n *\n * #### Platform-specific:\n *\n * - **Android / iOS:** Unsupported.\n *\n * @example\n * ```typescript\n * import { revealItemInDir } from '@tauri-apps/plugin-opener';\n * await revealItemInDir('/path/to/file');\n * await revealItemInDir([ '/path/to/file', '/path/to/another/file' ]);\n * ```\n *\n * @param path The path to reveal.\n *\n * @since 2.0.0\n */\nasync function revealItemInDir(path) {\n const paths = typeof path === 'string' ? [path] : path;\n return invoke('plugin:opener|reveal_item_in_dir', { paths });\n}\n\nexport { openPath, openUrl, revealItemInDir };\n"],"names":["openUrl","url","openWith","invoke"],"mappings":"gMAuCA,eAAeA,EAAQC,EAEvBC,EAAU,CACN,MAAMC,EAAO,yBAA0B,CACnC,IAAAF,EACA,KAAMC,CACd,CAAK,CACL","x_google_ignoreList":[0]}
|