@redocly/replay 0.29.0-next.1 → 0.29.0-next.11
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/oauth2-redirect.cjs +1 -1
- package/dist/oauth2-redirect.js +1 -1
- package/dist/{replay-AiChatProvider-B1_-wlJK.js → replay-AiChatProvider-DiP6ztPt.js} +1 -1
- package/dist/{replay-AiChatProvider-Z_799APd.js → replay-AiChatProvider-KaBd7DIg.js} +6 -6
- package/dist/{replay-AiChatSqliteDBStorage-B9waB0dA.js → replay-AiChatSqliteDBStorage-BiW2AzpT.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-C_-_P0T7.js → replay-AiChatSqliteDBStorage-CYG917_g.js} +1 -1
- package/dist/{replay-AiPanel-DvSoNrnz.js → replay-AiPanel-CRTgsNm-.js} +31 -19
- package/dist/{replay-AiPanel-IRetnmbM.js → replay-AiPanel-J_LTAvrH.js} +2 -2
- package/dist/{replay-FileWatcher-CZZXT8GC.js → replay-FileWatcher-BgvK_4Af.js} +2 -2
- package/dist/replay-FileWatcher-DB6V5Z_m.js +1 -0
- package/dist/{replay-SemanticSearchService-BzE8FK8a.js → replay-SemanticSearchService-CkCWaX7m.js} +1 -1
- package/dist/{replay-SemanticSearchService-B8R-ATMA.js → replay-SemanticSearchService-DkXA39F0.js} +21 -21
- package/dist/{replay-SqliteDBStorage-CPOEQnSp.js → replay-SqliteDBStorage-B6X43P-l.js} +1 -1
- package/dist/{replay-SqliteDBStorage-DVQZek3n.js → replay-SqliteDBStorage-CaEZatJm.js} +2 -2
- package/dist/{replay-TauriFileSystemAdapter-BfE1TXkK.js → replay-TauriFileSystemAdapter-CTnsZgpn.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-Zb6LTS_-.js → replay-TauriFileSystemAdapter-jXGkDtit.js} +1 -1
- package/dist/{replay-TauriRootStorage-CUGppZsY.js → replay-TauriRootStorage-C8Kth7fG.js} +18 -18
- package/dist/{replay-TauriRootStorage-BY7MGWGe.js → replay-TauriRootStorage-DldWoidz.js} +1 -1
- package/dist/{replay-agent-loop-BxPUGZq1.js → replay-agent-loop-CSQDyF19.js} +5 -5
- package/dist/{replay-agent-loop-BB-UIrKo.js → replay-agent-loop-CSkpuh-a.js} +1 -1
- package/dist/{replay-ai-chat-mappers-C4L8p2zl.js → replay-ai-chat-mappers-Bn5y3wfP.js} +1 -1
- package/dist/{replay-ai-chat-mappers-DAyPOhQn.js → replay-ai-chat-mappers-yFYjzino.js} +1 -1
- package/dist/{replay-create-model-ebcSRl3r.js → replay-create-model-B4AguBah.js} +4 -4
- package/dist/{replay-create-model-BnoDQ7OX.js → replay-create-model-DTusc1Ds.js} +3 -3
- package/dist/{replay-db-xD_5VGuR.js → replay-db-B4_mvLNp.js} +1 -1
- package/dist/{replay-db-og5UtVrp.js → replay-db-DVp8qKD7.js} +1 -1
- package/dist/{replay-external-resolver-DtqY6Ddl.js → replay-external-resolver-CzE3SOg1.js} +2 -2
- package/dist/{replay-external-resolver-1bxcPBye.js → replay-external-resolver-bSN_suNz.js} +1 -1
- package/dist/{replay-index-Clfun2IN.js → replay-index-BbQ0oJ7O.js} +1 -1
- package/dist/replay-index-CaxaTt3L.js +1 -0
- package/dist/{replay-index-rbCwID24.js → replay-index-Ck5-RWXm.js} +1 -1
- package/dist/{replay-index-jkDlU0Lx.js → replay-index-Cm_7fw-J.js} +6 -6
- package/dist/replay-index-CtzJut8U.js +1 -0
- package/dist/{replay-index-PEthMsJx.js → replay-index-CyD9TpVI.js} +130 -127
- package/dist/replay-index-D1qU5mu0.js +4 -0
- package/dist/replay-index-DAbsE71J.js +1 -0
- package/dist/replay-index-DP_00xWB.js +7219 -0
- package/dist/{replay-index-wPsTqXSf.js → replay-index-DU6K6x7I.js} +1 -1
- package/dist/{replay-index-C33Z16Rm.js → replay-index-DlFHhZgF.js} +54846 -40750
- package/dist/{replay-index-DiSy_1OY.js → replay-index-DzseLquf.js} +1 -1
- package/dist/replay-lint-C4JrAlfC.js +130 -0
- package/dist/replay-lint-CwWyWkWi.js +24688 -0
- package/dist/replay-lint-graphql-3FcAXO3S.js +99 -0
- package/dist/replay-lint-graphql-DjFu8XDg.js +1 -0
- package/dist/replay-oauth2-redirect-handler-BfZRvm6l.js +4 -0
- package/dist/{replay-oauth2-redirect-handler-CqKZB3aV.js → replay-oauth2-redirect-handler-Bq6bpZMm.js} +1 -1
- package/dist/{replay-periodic-revalidation-KHXYhF4T.js → replay-periodic-revalidation-ChE98fdS.js} +1 -1
- package/dist/{replay-periodic-revalidation-Cuzq23M8.js → replay-periodic-revalidation-Do5NHTEZ.js} +1 -1
- package/dist/{replay-resolve-C0VBozxM.js → replay-resolve-2BhmSL2L.js} +8 -8
- package/dist/{replay-resolve-C2l91lf8.js → replay-resolve-DLZhNwSz.js} +1 -1
- package/dist/replay-respect-run-4blfFaEM.js +73 -0
- package/dist/{replay-respect-run-B25T_yI0.js → replay-respect-run-Cqde-SsJ.js} +3840 -5291
- package/dist/{replay-tauri-path-9tVlry3g.js → replay-tauri-path-CxsepUAD.js} +1 -1
- package/dist/{replay-tauri-path-DpnuyiYr.js → replay-tauri-path-Dlnku8cQ.js} +2 -2
- package/dist/{replay-useAiChatQueries-Bi_6G8WU.js → replay-useAiChatQueries-Br7_L25G.js} +43 -43
- package/dist/{replay-useAiChatQueries-DLSFwWvn.js → replay-useAiChatQueries-DNT0fI6R.js} +461 -461
- package/dist/{replay-validate-key-DnQefCz3.js → replay-validate-key-B5gYUcfA.js} +2 -2
- package/dist/{replay-validate-key-BQB45O00.js → replay-validate-key-Btx97_od.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +41 -1
- package/dist/replay.js +10 -10
- package/package.json +9 -5
- package/dist/replay-FileWatcher-CUqV5dPp.js +0 -1
- package/dist/replay-core-BJmXmoC5.js +0 -1
- package/dist/replay-core-B_hiOZZr.js +0 -10
- package/dist/replay-index-3lwhSmvi.js +0 -1
- package/dist/replay-index-C7MCjO6i.js +0 -1
- package/dist/replay-index-LcDbGH39.js +0 -7026
- package/dist/replay-index-Oct6Dygd.js +0 -1
- package/dist/replay-index-_srgnXqd.js +0 -4
- package/dist/replay-lint-CVXT7IME.js +0 -30232
- package/dist/replay-lint-fhGv2lgR.js +0 -177
- package/dist/replay-lint-graphql-BhMbXKkF.js +0 -1956
- package/dist/replay-lint-graphql-DtQhF_PM.js +0 -3
- package/dist/replay-oauth2-redirect-handler-Bqw5UUvl.js +0 -4
- package/dist/replay-respect-run-BN4jlLVY.js +0 -82
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-index-DP_00xWB.js"),n=require("./replay-resolve-DLZhNwSz.js");class c extends n.BaseResolver{constructor(){super()}resolveExternalRef(e,t){return r.isAbsoluteUrl(t)?t:e&&r.isAbsoluteUrl(e)?new URL(t,e).href:e?r.path.resolve(r.path.dirname(e),t):t}async loadExternalRef(e){if(r.isAbsoluteUrl(e)){const{body:t,mimeType:i}=await n.readFileFromUrl(e,{...this.config.http,customFetch:r.fetch});return new n.Source(e,t,i)}else{if(!await r.exists(e))throw new Error(`File not found at ${e}.`);try{throw await r.readDir(e),new Error(`Expected a file but received a folder at ${e}.`)}catch(o){if(o instanceof Error&&o.message.includes("Expected a file but received a folder"))throw o}const i=await r.readTextFile(e);return new n.Source(e,i.replace(/\r\n/g,`
|
|
2
2
|
`))}}}exports.ExternalResolver=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./replay-index-DP_00xWB.js");async function a(t={}){return typeof t=="object"&&Object.freeze(t),await i.invoke("plugin:dialog|open",{options:t})}async function o(t={}){return typeof t=="object"&&Object.freeze(t),await i.invoke("plugin:dialog|save",{options:t})}async function l(t,n){const e=typeof n=="string"?{title:n}:n;await i.invoke("plugin:dialog|message",{message:t.toString(),title:e?.title?.toString(),kind:e?.kind,okButtonLabel:e?.okLabel?.toString()})}async function r(t,n){const e=typeof n=="string"?{title:n}:n;return await i.invoke("plugin:dialog|ask",{message:t.toString(),title:e?.title?.toString(),kind:e?.kind,okButtonLabel:e?.okLabel?.toString()??"Yes",cancelButtonLabel:e?.cancelLabel?.toString()??"No"})}async function c(t,n){const e=typeof n=="string"?{title:n}:n;return await i.invoke("plugin:dialog|confirm",{message:t.toString(),title:e?.title?.toString(),kind:e?.kind,okButtonLabel:e?.okLabel?.toString()??"Ok",cancelButtonLabel:e?.cancelLabel?.toString()??"Cancel"})}exports.ask=r;exports.confirm=c;exports.message=l;exports.open=a;exports.save=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./replay-index-DP_00xWB.js"),s=require("./replay-lint-C4JrAlfC.js"),o=require("./replay-resolve-DLZhNwSz.js");function j(e){return(p.pathBrowserifyExports.extname(e)===".yaml"||p.pathBrowserifyExports.extname(e)===".yml")&&!1}function k(e){return p.isPlainObject(e)&&!s.isEmptyObject(e)}async function w(e){return new Promise(t=>setTimeout(t,e))}function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}const S="type",v=["api-description","api-operation","data-schema"];function R(e,t){const{ctx:n}=s.getNodeTypesFromJSONSchema("EntityFileDefault",t),{ctx:r,discriminatorResolver:i}=s.getNodeTypesFromJSONSchema("EntityFile",e);return{entityTypes:{...n,...r,EntityFileArray:{properties:{},items:y=>{if(p.isPlainObject(y)){const m=y[S];if(!m)return"Entity";const l=i?.(y,m);if(l&&typeof l=="string")return l}return"Entity"}}},discriminatorResolver:i}}function c(e,t){if(o.isRef(t.parent))return;const n=t.key.toString(),r=e.counts??={};r[n]=(r[n]??0)+1}function O(e){for(const i of Object.values(e))i.items&&(i.total=i.items.size);const{xExtensions:t}=e,n=t.counts??{},r=Object.keys(n).sort();t.total=r.length,t.counts=Object.fromEntries(r.map(i=>[i,n[i]]))}const z=e=>({SpecExtension:{enter(t,n){c(e.xExtensions,n)}},XCodeSampleList:{enter(t,n){c(e.xExtensions,n)}},ExamplesMap:{enter(t,n){n.key.toString()==="x-examples"&&c(e.xExtensions,n)}},EnumDescriptions:{enter(t,n){c(e.xExtensions,n)}},TagGroups:{enter(t,n){c(e.xExtensions,n)}},Logo:{enter(t,n){c(e.xExtensions,n)}},XServerList:{enter(t,n){c(e.xExtensions,n)}},XUsePkce:{enter(t,n){c(e.xExtensions,n)}},Operation:{enter(t,n){n.key.toString()==="x-query"&&c(e.xExtensions,n)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},Link:{leave(t){e.links.items.add(t.operationId)}},WebhooksMap:{enter(t,n){n.key.toString()==="x-webhooks"&&c(e.xExtensions,n)},Operation:{leave(t){if(e.webhooks.total++,t.tags)for(const n of t.tags)e.tags.items.add(n)}}},Paths:{PathItem:{leave(){e.pathItems.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(const n of t.tags)e.tags.items.add(n)}},Parameter:{leave(t){e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){O(e)}}}),V=e=>({SpecExtension:{enter(t,n){c(e.xExtensions,n)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},ChannelMap:{Channel:{leave(){e.channels.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(const n of t.tags)e.tags.items.add(n)}},Parameter:{leave(t,{key:n}){e.parameters.items.add(n.toString())}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){O(e)}}}),G=e=>({SpecExtension:{enter(t,n){c(e.xExtensions,n)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},NamedChannels:{Channel:{leave(){e.channels.total++},Parameter:{leave(t,{key:n}){e.parameters.items.add(n.toString())}}}},NamedOperations:{Operation:{leave(t){if(e.operations.total++,t.tags)for(const n of t.tags)e.tags.items.add(n)}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){O(e)}}}),U=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,b=2,x=150,B=()=>({any(e,{report:t,location:n}){if(p.isPlainObject(e)&&"key"in e){const r=e.key;if(typeof r!="string"){t({message:"Entity `key` must be a string.",location:n.child(["key"])});return}r.length<b&&t({message:`Entity 'key' must be at least ${b} characters long.`,location:n.child(["key"])}),r.length>x&&t({message:`Entity 'key' must not exceed ${x} characters.`,location:n.child(["key"])}),U.test(r)||t({message:"Entity `key` must contain only lowercase letters, numbers, and hyphens, and cannot start or end with a hyphen.",location:n.child(["key"])})}}});function P(e,t){const r=t.split("-").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join("")+e;return Object.values(s.t).includes(r)?r:e}function M(e,t){const n={};for(const[r,i]of Object.entries(t))if(_(r,i)){if(i.severity==="off")continue;n[r]={...q(e,r,i)}}else n[r]=i;return n}function Y(e){const t={},n={};for(const[r,i]of Object.entries(e))if(_(r,i)){const a=i;A(a)?t[r]=a:n[r]=a}else n[r]=i;return{entityRules:t,apiRules:n}}function $(e,t,n){if(!p.isPlainObject(n.parsed)||!p.isPlainObject(n.parsed.components))return null;const r=n.parsed.components,i="schemas"in r?r.schemas:void 0;if(!i||!(e in i))return null;const a=i[e];try{const y=JSON.parse(t);if(s.dequal(a,y))return a}catch{return null}return null}function _(e,t){return e.startsWith("rule/")&&p.isPlainObject(t)}function A(e){return Object.values(s.t).some(t=>e.subject.type===t)}function q(e,t,n){const r=P(n.subject.type,e),i=n.where?.map(a=>({...a,subject:{...a.subject,type:P(a.subject.type,e)}}));return{assertionId:t,subject:{...n.subject,type:r},assertions:n.assertions,...i&&{where:i},...n.message&&{message:n.message},...n.severity&&{severity:n.severity}}}async function N(e){const{document:t,entitySchema:n,entityDefaultSchema:r,severity:i,externalRefResolver:a=new o.BaseResolver,assertionConfig:y={}}=e,m={problems:[],specVersion:"entity",visitorsData:{}},{entityTypes:l,discriminatorResolver:g}=R(n,r),f=o.normalizeTypes(l);let d=f.Entity;if(Array.isArray(t.parsed))d=f.EntityFileArray;else if(p.isPlainObject(t.parsed)){const h=t.parsed[S];if(!h)d=f.Entity;else{const T=g?.(t.parsed,h);T&&typeof T=="string"&&f[T]&&(d=f[T])}}const E=s.Assertions(y),u=Array.isArray(E)?E.map(h=>({severity:i||"error",ruleId:"entity assertions",visitor:h})):[{severity:i||"error",ruleId:"entity assertions",visitor:E}],C=[{severity:i||"error",ruleId:"entity struct",visitor:s.Struct()},{severity:i||"error",ruleId:"entity no-unresolved-refs",visitor:s.NoUnresolvedRefs()},{severity:i||"error",ruleId:"entity key-valid",visitor:B()},...u],D=s.normalizeVisitors(C,f),F=await o.resolveDocument({rootDocument:t,rootType:d,externalRefResolver:a});return s.walkDocument({document:t,rootType:d,normalizedVisitors:D,resolvedRefMap:F,ctx:m}),m.problems}async function H(e,t,n){if(!t.rules)throw new Error(`Scorecard level "${t.name}" has no rules defined.`);const r=new o.BaseResolver,i=o.makeDocumentFromString(JSON.stringify(e,null,2),"entity"),a=i.parsed[S],y=M(a||"unknown",t.rules),{entityRules:m,apiRules:l}=Y(y),g=await N({document:i,entitySchema:s.xi,entityDefaultSchema:s.Ei,externalRefResolver:r,assertionConfig:m});if(v.includes(e.type)){if(Object.keys(l).length===0)return g;if(!n)throw new Error(`Document is required for entity type "${e.type}". Provide the source API document to lint API rules.`);if(e.type==="data-schema"&&e.metadata?.schema){Object.values(l).forEach(u=>{if(p.isPlainObject(u)&&p.isPlainObject(u.subject)&&u.subject.type!=="Schema")throw new Error(`API rules for "data-schema" entity must target Schema subject, but found "${u.subject.type}".`)});const d=$(e.title,e.metadata.schema,n);if(!d)throw new Error(`Schema "${e.title}" not found in the document. Ensure the schema exists in components.schemas.`);const E=await I({schema:d,schemaKey:e.title,config:await s.createConfig({rules:l}),specType:e.metadata.specType,sourceDocument:n,externalRefResolver:r});return[...g,...E]}const f=await s.lintDocument({document:n,externalRefResolver:r,config:await s.createConfig({rules:l})});return[...g,...f]}else if(!s.isEmptyObject(l))throw new Error(`API rules are not supported for entity type "${e.type}". Only ${v.join(", ")} support API rules.`);return g}async function I(e){const{schema:t,schemaKey:n,config:r,sourceDocument:i,specType:a,externalRefResolver:y=new o.BaseResolver(r.resolve)}=e,m=i.parsed,l=m[a],g=m.info,f=o.makeDocumentFromString(JSON.stringify({[a]:l,info:g,components:{schemas:{[n]:t}}},null,2),i?.source.absoluteRef||`schema:${n}`);return(await s.lintDocument({document:f,config:r,externalRefResolver:y})).filter(E=>E.location.some(u=>u.pointer?.includes(`/components/schemas/${n}`)))}exports.isPlainObject=p.isPlainObject;exports.AbortFlowError=s.AbortFlowError;exports.Arazzo1Types=s.Arazzo1Types;exports.Arazzo1_1Types=s.Arazzo1_1Types;exports.AsyncApi2Types=s.AsyncApi2Types;exports.AsyncApi3Types=s.AsyncApi3Types;exports.CONFIG_BUNDLER_VISITOR_ID=s.CONFIG_BUNDLER_VISITOR_ID;exports.CONFIG_FILE_NAME=s.CONFIG_FILE_NAME;exports.Config=s.Config;exports.ConfigTypes=s.ConfigTypes;exports.ConfigValidationError=s.ConfigValidationError;exports.DEFAULT_CONFIG=s.DEFAULT_CONFIG;exports.DEFAULT_PROJECT_PLUGIN_PATHS=s.DEFAULT_PROJECT_PLUGIN_PATHS;exports.HandledError=s.HandledError;exports.IGNORE_BANNER=s.IGNORE_BANNER;exports.IGNORE_FILE=s.IGNORE_FILE;exports.Oas2Types=s.Oas2Types;exports.Oas3Types=s.Oas3Types;exports.Oas3_1Types=s.Oas3_1Types;exports.Oas3_2Types=s.Oas3_2Types;exports.OpenRpcTypes=s.OpenRpcTypes;exports.Overlay1Types=s.Overlay1Types;exports.PLUGINS_COLLECTOR_VISITOR_ID=s.PLUGINS_COLLECTOR_VISITOR_ID;exports.bundle=s.bundle;exports.bundleDocument=s.bundleDocument;exports.bundleFromString=s.bundleFromString;exports.clearPluginsCache=s.clearPluginsCache;exports.createConfig=s.createConfig;exports.createConfigTypes=s.createConfigTypes;exports.dequal=s.dequal;exports.detectSpec=s.detectSpec;exports.findConfig=s.findConfig;exports.formatProblems=s.formatProblems;exports.getAstNodeByPointer=s.getAstNodeByPointer;exports.getCodeframe=s.getCodeframe;exports.getLineColLocation=s.getLineColLocation;exports.getMajorSpecVersion=s.getMajorSpecVersion;exports.getPluginCacheVersion=s.getPluginCacheVersion;exports.getTotals=s.getTotals;exports.getTypes=s.getTypes;exports.isEmptyObject=s.isEmptyObject;exports.isNotEmptyArray=s.isNotEmptyArray;exports.isString=s.isString;exports.keysOf=s.keysOf;exports.lint=s.lint;exports.lintConfig=s.lintConfig;exports.lintDocument=s.lintDocument;exports.lintFromString=s.lintFromString;exports.loadConfig=s.loadConfig;exports.loadIgnoreConfig=s.loadIgnoreConfig;exports.logger=s.logger;exports.mapTypeToComponent=s.mapTypeToComponent;exports.normalizeVisitors=s.normalizeVisitors;exports.pluralize=s.pluralize;exports.regexFromString=s.regexFromString;exports.resolvePlugins=s.resolvePlugins;exports.slash=s.slash;exports.validate=s.lint;exports.walkDocument=s.walkDocument;exports.xmlEscape=s.xmlEscape;exports.BaseResolver=o.BaseResolver;exports.ResolveError=o.ResolveError;exports.Source=o.Source;exports.YamlParseError=o.YamlParseError;exports.escapePointerFragment=o.escapePointerFragment;exports.getDir=o.getDir;exports.isAbsoluteUrl=o.isAbsoluteUrl;exports.isBrowser=o.isBrowser;exports.isGraphqlRef=o.isGraphqlRef;exports.isMappingRef=o.isMappingRef;exports.isRef=o.isRef;exports.isSupportedExtension=o.isSupportedExtension;exports.isTruthy=o.isTruthy;exports.makeDocumentFromString=o.makeDocumentFromString;exports.normalizeTypes=o.normalizeTypes;exports.parseYaml=o.parseYaml;exports.readFileFromUrl=o.readFileFromUrl;exports.resolveDocument=o.resolveDocument;exports.resolvePath=o.resolvePath;exports.stringifyYaml=o.stringifyYaml;exports.unescapePointerFragment=o.unescapePointerFragment;exports.StatsAsync2=V;exports.StatsAsync3=G;exports.StatsOAS=z;exports.capitalize=L;exports.createEntityTypes=R;exports.doesYamlFileExist=j;exports.isNotEmptyObject=k;exports.lintEntityFile=N;exports.lintEntityWithScorecardLevel=H;exports.lintSchema=I;exports.pause=w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-SemanticSearchService-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-SemanticSearchService-CkCWaX7m.js");exports.getSemanticSearchService=e.getSemanticSearchService;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as t, x as D } from "./replay-index-DlFHhZgF.js";
|
|
2
2
|
var a;
|
|
3
3
|
(function(r) {
|
|
4
4
|
r.WINDOW_RESIZED = "tauri://resize", r.WINDOW_MOVED = "tauri://move", r.WINDOW_CLOSE_REQUESTED = "tauri://close-requested", r.WINDOW_DESTROYED = "tauri://destroyed", r.WINDOW_FOCUS = "tauri://focus", r.WINDOW_BLUR = "tauri://blur", r.WINDOW_SCALE_FACTOR_CHANGED = "tauri://scale-change", r.WINDOW_THEME_CHANGED = "tauri://theme-changed", r.WINDOW_CREATED = "tauri://window-created", r.WINDOW_SUSPENDED = "tauri://suspended", r.WINDOW_RESUMED = "tauri://resumed", r.WEBVIEW_CREATED = "tauri://webview-created", r.DRAG_ENTER = "tauri://drag-enter", r.DRAG_OVER = "tauri://drag-over", r.DRAG_DROP = "tauri://drag-drop", r.DRAG_LEAVE = "tauri://drag-leave";
|
|
5
5
|
})(a || (a = {}));
|
|
6
6
|
async function u(r, e) {
|
|
7
|
-
window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(r, e), await
|
|
7
|
+
window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(r, e), await t("plugin:event|unlisten", {
|
|
8
8
|
event: r,
|
|
9
9
|
eventId: e
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
async function o(r, e, s) {
|
|
13
|
-
var
|
|
14
|
-
const i = (
|
|
15
|
-
return
|
|
13
|
+
var n;
|
|
14
|
+
const i = (n = void 0) !== null && n !== void 0 ? n : { kind: "Any" };
|
|
15
|
+
return t("plugin:event|listen", {
|
|
16
16
|
event: r,
|
|
17
17
|
target: i,
|
|
18
18
|
handler: D(e)
|
|
19
19
|
}).then((_) => async () => u(r, _));
|
|
20
20
|
}
|
|
21
21
|
async function d() {
|
|
22
|
-
return await
|
|
22
|
+
return await t("plugin:deep-link|get_current");
|
|
23
23
|
}
|
|
24
24
|
async function l(r) {
|
|
25
25
|
return await o("deep-link://new-url", (e) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./replay-index-DP_00xWB.js");async function t(e,n){await i.invoke("plugin:opener|open_url",{url:e,with:n})}async function o(e,n){await i.invoke("plugin:opener|open_path",{path:e,with:n})}async function r(e){const n=typeof e=="string"?[e]:e;return i.invoke("plugin:opener|reveal_item_in_dir",{paths:n})}exports.openPath=o;exports.openUrl=t;exports.revealItemInDir=r;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as B, B as E, n as
|
|
5
|
-
import { R as
|
|
6
|
-
function
|
|
7
|
-
return (
|
|
1
|
+
import { a6 as T, a7 as f } from "./replay-index-DlFHhZgF.js";
|
|
2
|
+
import { a as I, g as x, d as z, t as P, A as L, S as V, N as $, n as U, w as G, x as M, E as Y, c as b, l as D } from "./replay-lint-CwWyWkWi.js";
|
|
3
|
+
import { b as he, e as ue, f as Ee, h as ve, j as Se, C as Te, k as xe, m as be, o as Oe, p as Re, D as _e, q as Ne, H as Ie, I as Pe, r as De, O as Ce, s as ke, u as je, v as we, y as Fe, z as ze, P as Le, B as Ve, F as $e, G as Ue, J as Ge, K as Me, L as Ye, M as Be, Q as Ke, R as We, T as He, U as Je, V as qe, W as Xe, X as Qe, Y as Ze, Z as Ae, _ as es, $ as ss, a0 as ts, a1 as ns, a2 as as, a3 as rs, a4 as os, a5 as is, a6 as ls, a7 as cs, a8 as ps, a9 as ys, aa as fs, a0 as ms, ab as ds } from "./replay-lint-CwWyWkWi.js";
|
|
4
|
+
import { i as B, B as E, n as K, a as W, m as C } from "./replay-resolve-2BhmSL2L.js";
|
|
5
|
+
import { R as hs, S as us, Y as Es, e as vs, g as Ss, b as Ts, c as xs, d as bs, f as Os, h as Rs, j as _s, p as Ns, r as Is, k as Ps, s as Ds, u as Cs } from "./replay-resolve-2BhmSL2L.js";
|
|
6
|
+
function oe(e) {
|
|
7
|
+
return (T.extname(e) === ".yaml" || T.extname(e) === ".yml") && !1;
|
|
8
8
|
}
|
|
9
9
|
function ie(e) {
|
|
10
10
|
return f(e) && !I(e);
|
|
@@ -12,9 +12,12 @@ function ie(e) {
|
|
|
12
12
|
async function le(e) {
|
|
13
13
|
return new Promise((s) => setTimeout(s, e));
|
|
14
14
|
}
|
|
15
|
+
function ce(e) {
|
|
16
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
17
|
+
}
|
|
15
18
|
const v = "type", O = ["api-description", "api-operation", "data-schema"];
|
|
16
|
-
function
|
|
17
|
-
const { ctx: t } =
|
|
19
|
+
function H(e, s) {
|
|
20
|
+
const { ctx: t } = x("EntityFileDefault", s), { ctx: a, discriminatorResolver: n } = x("EntityFile", e);
|
|
18
21
|
return {
|
|
19
22
|
entityTypes: {
|
|
20
23
|
...t,
|
|
@@ -26,9 +29,9 @@ function W(e, s) {
|
|
|
26
29
|
const c = l[v];
|
|
27
30
|
if (!c)
|
|
28
31
|
return "Entity";
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
return
|
|
32
|
+
const o = n?.(l, c);
|
|
33
|
+
if (o && typeof o == "string")
|
|
34
|
+
return o;
|
|
32
35
|
}
|
|
33
36
|
return "Entity";
|
|
34
37
|
}
|
|
@@ -49,7 +52,7 @@ function S(e) {
|
|
|
49
52
|
const { xExtensions: s } = e, t = s.counts ?? {}, a = Object.keys(t).sort();
|
|
50
53
|
s.total = a.length, s.counts = Object.fromEntries(a.map((n) => [n, t[n]]));
|
|
51
54
|
}
|
|
52
|
-
const
|
|
55
|
+
const pe = (e) => ({
|
|
53
56
|
SpecExtension: {
|
|
54
57
|
enter(s, t) {
|
|
55
58
|
i(e.xExtensions, t);
|
|
@@ -158,7 +161,7 @@ const ce = (e) => ({
|
|
|
158
161
|
S(e);
|
|
159
162
|
}
|
|
160
163
|
}
|
|
161
|
-
}),
|
|
164
|
+
}), ye = (e) => ({
|
|
162
165
|
SpecExtension: {
|
|
163
166
|
enter(s, t) {
|
|
164
167
|
i(e.xExtensions, t);
|
|
@@ -210,7 +213,7 @@ const ce = (e) => ({
|
|
|
210
213
|
S(e);
|
|
211
214
|
}
|
|
212
215
|
}
|
|
213
|
-
}),
|
|
216
|
+
}), fe = (e) => ({
|
|
214
217
|
SpecExtension: {
|
|
215
218
|
enter(s, t) {
|
|
216
219
|
i(e.xExtensions, t);
|
|
@@ -264,7 +267,7 @@ const ce = (e) => ({
|
|
|
264
267
|
S(e);
|
|
265
268
|
}
|
|
266
269
|
}
|
|
267
|
-
}),
|
|
270
|
+
}), J = /^[a-z0-9]+(?:-[a-z0-9]+)*$/, R = 2, _ = 150, q = () => ({
|
|
268
271
|
any(e, { report: s, location: t }) {
|
|
269
272
|
if (f(e) && "key" in e) {
|
|
270
273
|
const a = e.key;
|
|
@@ -275,13 +278,13 @@ const ce = (e) => ({
|
|
|
275
278
|
});
|
|
276
279
|
return;
|
|
277
280
|
}
|
|
278
|
-
a.length <
|
|
279
|
-
message: `Entity 'key' must be at least ${
|
|
281
|
+
a.length < R && s({
|
|
282
|
+
message: `Entity 'key' must be at least ${R} characters long.`,
|
|
280
283
|
location: t.child(["key"])
|
|
281
|
-
}), a.length >
|
|
282
|
-
message: `Entity 'key' must not exceed ${
|
|
284
|
+
}), a.length > _ && s({
|
|
285
|
+
message: `Entity 'key' must not exceed ${_} characters.`,
|
|
283
286
|
location: t.child(["key"])
|
|
284
|
-
}),
|
|
287
|
+
}), J.test(a) || s({
|
|
285
288
|
message: "Entity `key` must contain only lowercase letters, numbers, and hyphens, and cannot start or end with a hyphen.",
|
|
286
289
|
location: t.child(["key"])
|
|
287
290
|
});
|
|
@@ -295,7 +298,7 @@ function N(e, s) {
|
|
|
295
298
|
function X(e, s) {
|
|
296
299
|
const t = {};
|
|
297
300
|
for (const [a, n] of Object.entries(s))
|
|
298
|
-
if (
|
|
301
|
+
if (k(a, n)) {
|
|
299
302
|
if (n.severity === "off")
|
|
300
303
|
continue;
|
|
301
304
|
t[a] = {
|
|
@@ -308,9 +311,9 @@ function X(e, s) {
|
|
|
308
311
|
function Q(e) {
|
|
309
312
|
const s = {}, t = {};
|
|
310
313
|
for (const [a, n] of Object.entries(e))
|
|
311
|
-
if (
|
|
312
|
-
const
|
|
313
|
-
A(
|
|
314
|
+
if (k(a, n)) {
|
|
315
|
+
const r = n;
|
|
316
|
+
A(r) ? s[a] = r : t[a] = r;
|
|
314
317
|
} else
|
|
315
318
|
t[a] = n;
|
|
316
319
|
return { entityRules: s, apiRules: t };
|
|
@@ -321,28 +324,28 @@ function Z(e, s, t) {
|
|
|
321
324
|
const a = t.parsed.components, n = "schemas" in a ? a.schemas : void 0;
|
|
322
325
|
if (!n || !(e in n))
|
|
323
326
|
return null;
|
|
324
|
-
const
|
|
327
|
+
const r = n[e];
|
|
325
328
|
try {
|
|
326
329
|
const l = JSON.parse(s);
|
|
327
|
-
if (z(
|
|
328
|
-
return
|
|
330
|
+
if (z(r, l))
|
|
331
|
+
return r;
|
|
329
332
|
} catch {
|
|
330
333
|
return null;
|
|
331
334
|
}
|
|
332
335
|
return null;
|
|
333
336
|
}
|
|
334
|
-
function
|
|
337
|
+
function k(e, s) {
|
|
335
338
|
return e.startsWith("rule/") && f(s);
|
|
336
339
|
}
|
|
337
340
|
function A(e) {
|
|
338
341
|
return Object.values(P).some((s) => e.subject.type === s);
|
|
339
342
|
}
|
|
340
343
|
function ee(e, s, t) {
|
|
341
|
-
const a = N(t.subject.type, e), n = t.where?.map((
|
|
342
|
-
...
|
|
344
|
+
const a = N(t.subject.type, e), n = t.where?.map((r) => ({
|
|
345
|
+
...r,
|
|
343
346
|
subject: {
|
|
344
|
-
...
|
|
345
|
-
type: N(
|
|
347
|
+
...r.subject,
|
|
348
|
+
type: N(r.subject.type, e)
|
|
346
349
|
}
|
|
347
350
|
}));
|
|
348
351
|
return {
|
|
@@ -358,11 +361,11 @@ function ee(e, s, t) {
|
|
|
358
361
|
};
|
|
359
362
|
}
|
|
360
363
|
async function se(e) {
|
|
361
|
-
const { document: s, entitySchema: t, entityDefaultSchema: a, severity: n, externalRefResolver:
|
|
364
|
+
const { document: s, entitySchema: t, entityDefaultSchema: a, severity: n, externalRefResolver: r = new E(), assertionConfig: l = {} } = e, c = {
|
|
362
365
|
problems: [],
|
|
363
366
|
specVersion: "entity",
|
|
364
367
|
visitorsData: {}
|
|
365
|
-
}, { entityTypes:
|
|
368
|
+
}, { entityTypes: o, discriminatorResolver: m } = H(t, a), p = K(o);
|
|
366
369
|
let y = p.Entity;
|
|
367
370
|
if (Array.isArray(s.parsed))
|
|
368
371
|
y = p.EntityFileArray;
|
|
@@ -402,12 +405,12 @@ async function se(e) {
|
|
|
402
405
|
visitor: q()
|
|
403
406
|
},
|
|
404
407
|
...d
|
|
405
|
-
], w =
|
|
408
|
+
], w = U(j, p), F = await W({
|
|
406
409
|
rootDocument: s,
|
|
407
410
|
rootType: y,
|
|
408
|
-
externalRefResolver:
|
|
411
|
+
externalRefResolver: r
|
|
409
412
|
});
|
|
410
|
-
return
|
|
413
|
+
return G({
|
|
411
414
|
document: s,
|
|
412
415
|
rootType: y,
|
|
413
416
|
normalizedVisitors: w,
|
|
@@ -415,23 +418,23 @@ async function se(e) {
|
|
|
415
418
|
ctx: c
|
|
416
419
|
}), c.problems;
|
|
417
420
|
}
|
|
418
|
-
async function
|
|
421
|
+
async function me(e, s, t) {
|
|
419
422
|
if (!s.rules)
|
|
420
423
|
throw new Error(`Scorecard level "${s.name}" has no rules defined.`);
|
|
421
|
-
const a = new E(), n =
|
|
424
|
+
const a = new E(), n = C(JSON.stringify(e, null, 2), "entity"), r = n.parsed[v], l = X(r || "unknown", s.rules), { entityRules: c, apiRules: o } = Q(l), m = await se({
|
|
422
425
|
document: n,
|
|
423
|
-
entitySchema:
|
|
424
|
-
entityDefaultSchema:
|
|
426
|
+
entitySchema: M,
|
|
427
|
+
entityDefaultSchema: Y,
|
|
425
428
|
externalRefResolver: a,
|
|
426
429
|
assertionConfig: c
|
|
427
430
|
});
|
|
428
431
|
if (O.includes(e.type)) {
|
|
429
|
-
if (Object.keys(
|
|
432
|
+
if (Object.keys(o).length === 0)
|
|
430
433
|
return m;
|
|
431
434
|
if (!t)
|
|
432
435
|
throw new Error(`Document is required for entity type "${e.type}". Provide the source API document to lint API rules.`);
|
|
433
436
|
if (e.type === "data-schema" && e.metadata?.schema) {
|
|
434
|
-
Object.values(
|
|
437
|
+
Object.values(o).forEach((d) => {
|
|
435
438
|
if (f(d) && f(d.subject) && d.subject.type !== "Schema")
|
|
436
439
|
throw new Error(`API rules for "data-schema" entity must target Schema subject, but found "${d.subject.type}".`);
|
|
437
440
|
});
|
|
@@ -442,7 +445,7 @@ async function fe(e, s, t) {
|
|
|
442
445
|
schema: y,
|
|
443
446
|
schemaKey: e.title,
|
|
444
447
|
config: await b({
|
|
445
|
-
rules:
|
|
448
|
+
rules: o
|
|
446
449
|
}),
|
|
447
450
|
specType: e.metadata.specType,
|
|
448
451
|
sourceDocument: t,
|
|
@@ -454,17 +457,17 @@ async function fe(e, s, t) {
|
|
|
454
457
|
document: t,
|
|
455
458
|
externalRefResolver: a,
|
|
456
459
|
config: await b({
|
|
457
|
-
rules:
|
|
460
|
+
rules: o
|
|
458
461
|
})
|
|
459
462
|
});
|
|
460
463
|
return [...m, ...p];
|
|
461
|
-
} else if (!I(
|
|
464
|
+
} else if (!I(o))
|
|
462
465
|
throw new Error(`API rules are not supported for entity type "${e.type}". Only ${O.join(", ")} support API rules.`);
|
|
463
466
|
return m;
|
|
464
467
|
}
|
|
465
468
|
async function te(e) {
|
|
466
|
-
const { schema: s, schemaKey: t, config: a, sourceDocument: n, specType:
|
|
467
|
-
[
|
|
469
|
+
const { schema: s, schemaKey: t, config: a, sourceDocument: n, specType: r, externalRefResolver: l = new E(a.resolve) } = e, c = n.parsed, o = c[r], m = c.info, p = C(JSON.stringify({
|
|
470
|
+
[r]: o,
|
|
468
471
|
info: m,
|
|
469
472
|
components: {
|
|
470
473
|
schemas: {
|
|
@@ -478,97 +481,97 @@ async function te(e) {
|
|
|
478
481
|
externalRefResolver: l
|
|
479
482
|
})).filter((g) => g.location.some((d) => d.pointer?.includes(`/components/schemas/${t}`)));
|
|
480
483
|
}
|
|
481
|
-
class me extends Error {
|
|
482
|
-
}
|
|
483
484
|
export {
|
|
484
|
-
he as
|
|
485
|
-
ue as
|
|
486
|
-
Ee as
|
|
487
|
-
ve as
|
|
485
|
+
he as AbortFlowError,
|
|
486
|
+
ue as Arazzo1Types,
|
|
487
|
+
Ee as Arazzo1_1Types,
|
|
488
|
+
ve as AsyncApi2Types,
|
|
489
|
+
Se as AsyncApi3Types,
|
|
488
490
|
E as BaseResolver,
|
|
489
|
-
|
|
491
|
+
Te as CONFIG_BUNDLER_VISITOR_ID,
|
|
490
492
|
xe as CONFIG_FILE_NAME,
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
493
|
+
be as Config,
|
|
494
|
+
Oe as ConfigTypes,
|
|
495
|
+
Re as ConfigValidationError,
|
|
494
496
|
_e as DEFAULT_CONFIG,
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
497
|
+
Ne as DEFAULT_PROJECT_PLUGIN_PATHS,
|
|
498
|
+
Ie as HandledError,
|
|
499
|
+
Pe as IGNORE_BANNER,
|
|
500
|
+
De as IGNORE_FILE,
|
|
501
|
+
Ce as Oas2Types,
|
|
502
|
+
ke as Oas3Types,
|
|
503
|
+
je as Oas3_1Types,
|
|
504
|
+
we as Oas3_2Types,
|
|
505
|
+
Fe as OpenRpcTypes,
|
|
506
|
+
ze as Overlay1Types,
|
|
507
|
+
Le as PLUGINS_COLLECTOR_VISITOR_ID,
|
|
508
|
+
hs as ResolveError,
|
|
509
|
+
us as Source,
|
|
510
|
+
ye as StatsAsync2,
|
|
511
|
+
fe as StatsAsync3,
|
|
512
|
+
pe as StatsOAS,
|
|
513
|
+
Es as YamlParseError,
|
|
514
|
+
Ve as bundle,
|
|
515
|
+
$e as bundleDocument,
|
|
516
|
+
Ue as bundleFromString,
|
|
517
|
+
ce as capitalize,
|
|
518
|
+
Ge as clearPluginsCache,
|
|
516
519
|
b as createConfig,
|
|
517
520
|
Me as createConfigTypes,
|
|
518
|
-
|
|
521
|
+
H as createEntityTypes,
|
|
519
522
|
z as dequal,
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
523
|
+
Ye as detectSpec,
|
|
524
|
+
oe as doesYamlFileExist,
|
|
525
|
+
vs as escapePointerFragment,
|
|
526
|
+
Be as findConfig,
|
|
527
|
+
Ke as formatProblems,
|
|
528
|
+
We as getAstNodeByPointer,
|
|
529
|
+
He as getCodeframe,
|
|
530
|
+
Ss as getDir,
|
|
531
|
+
Je as getLineColLocation,
|
|
532
|
+
qe as getMajorSpecVersion,
|
|
533
|
+
Xe as getPluginCacheVersion,
|
|
534
|
+
Qe as getTotals,
|
|
535
|
+
Ze as getTypes,
|
|
536
|
+
Ts as isAbsoluteUrl,
|
|
537
|
+
xs as isBrowser,
|
|
535
538
|
I as isEmptyObject,
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
+
bs as isGraphqlRef,
|
|
540
|
+
Os as isMappingRef,
|
|
541
|
+
Ae as isNotEmptyArray,
|
|
539
542
|
ie as isNotEmptyObject,
|
|
540
543
|
f as isPlainObject,
|
|
541
544
|
B as isRef,
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
545
|
+
es as isString,
|
|
546
|
+
Rs as isSupportedExtension,
|
|
547
|
+
_s as isTruthy,
|
|
548
|
+
ss as keysOf,
|
|
549
|
+
ts as lint,
|
|
550
|
+
ns as lintConfig,
|
|
548
551
|
D as lintDocument,
|
|
549
552
|
se as lintEntityFile,
|
|
550
|
-
|
|
551
|
-
|
|
553
|
+
me as lintEntityWithScorecardLevel,
|
|
554
|
+
as as lintFromString,
|
|
552
555
|
te as lintSchema,
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
556
|
+
rs as loadConfig,
|
|
557
|
+
os as loadIgnoreConfig,
|
|
558
|
+
is as logger,
|
|
559
|
+
C as makeDocumentFromString,
|
|
560
|
+
ls as mapTypeToComponent,
|
|
561
|
+
K as normalizeTypes,
|
|
562
|
+
U as normalizeVisitors,
|
|
563
|
+
Ns as parseYaml,
|
|
561
564
|
le as pause,
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
565
|
+
cs as pluralize,
|
|
566
|
+
Is as readFileFromUrl,
|
|
567
|
+
ps as regexFromString,
|
|
568
|
+
W as resolveDocument,
|
|
569
|
+
Ps as resolvePath,
|
|
570
|
+
ys as resolvePlugins,
|
|
571
|
+
fs as slash,
|
|
572
|
+
Ds as stringifyYaml,
|
|
573
|
+
Cs as unescapePointerFragment,
|
|
574
|
+
ms as validate,
|
|
575
|
+
G as walkDocument,
|
|
576
|
+
ds as xmlEscape
|
|
574
577
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./replay-index-DP_00xWB.js");var a;(function(e){e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_SUSPENDED="tauri://suspended",e.WINDOW_RESUMED="tauri://resumed",e.WEBVIEW_CREATED="tauri://webview-created",e.DRAG_ENTER="tauri://drag-enter",e.DRAG_OVER="tauri://drag-over",e.DRAG_DROP="tauri://drag-drop",e.DRAG_LEAVE="tauri://drag-leave"})(a||(a={}));async function o(e,r){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(e,r),await n.invoke("plugin:event|unlisten",{event:e,eventId:r})}async function _(e,r,s){var t;const i=(t=void 0)!==null&&t!==void 0?t:{kind:"Any"};return n.invoke("plugin:event|listen",{event:e,target:i,handler:n.transformCallback$1(r)}).then(u=>async()=>o(e,u))}async function D(){return await n.invoke("plugin:deep-link|get_current")}async function l(e){return await _("deep-link://new-url",r=>{e(r.payload)})}exports.getCurrent=D;exports.onOpenUrl=l;
|