progon-agent 1.5.0 → 1.5.1
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/extension-bundle.json +3 -3
- package/extension-dist/background/background.js +82 -82
- package/extension-dist/card/card.html +9 -9
- package/extension-dist/card/card.js +3 -9
- package/extension-dist/chunks/shared-B5u-B6Qn.css +1 -0
- package/extension-dist/chunks/shared-BLDboBjL.js +348 -0
- package/extension-dist/chunks/shared-BdUzhaBn.js +39 -0
- package/extension-dist/chunks/{shared-CwsTFlbT.js → shared-Bl2B_Px5.js} +1 -1
- package/extension-dist/chunks/shared-CD1T06ac.js +98 -0
- package/extension-dist/chunks/shared-CDXdhl3P.js +8 -0
- package/extension-dist/chunks/shared-CVlB4Tu3.js +15 -0
- package/extension-dist/chunks/{shared-C7IWMwZY.js → shared-Cz00vYCW.js} +1 -1
- package/extension-dist/chunks/shared-D8QWnY4m.css +1 -0
- package/extension-dist/chunks/shared-DDffpwXS.js +134 -0
- package/extension-dist/chunks/shared-D_QceNk9.js +254 -0
- package/extension-dist/chunks/shared-Dp2jkJ8R.js +1 -0
- package/extension-dist/chunks/shared-Jcq39euZ.js +199 -0
- package/extension-dist/chunks/shared-R5ipc0Sn.js +1 -0
- package/extension-dist/chunks/shared-eZL18n5t.css +1 -0
- package/extension-dist/chunks/shared-gwUGKre-.js +1 -0
- package/extension-dist/chunks/shared-kKZVALIt.js +1 -0
- package/extension-dist/chunks/shared-nJgqlX01.js +1 -0
- package/extension-dist/chunks/shared-q9EK7cIP.js +1 -0
- package/extension-dist/chunks/shared-tcQ7xPb-.js +1 -0
- package/extension-dist/content/content.css +1 -1
- package/extension-dist/content/content.js +284 -220
- package/extension-dist/manifest.json +32 -30
- package/extension-dist/offscreen/offscreen.html +2 -2
- package/extension-dist/offscreen/offscreen.js +1 -1
- package/extension-dist/popup/popup.html +8 -8
- package/extension-dist/popup/popup.js +3 -9
- package/extension-dist/sidepanel/sidepanel.css +1 -1
- package/extension-dist/sidepanel/sidepanel.html +11 -11
- package/extension-dist/sidepanel/sidepanel.js +1 -1
- package/extension-dist/workspace/workspace.css +1 -1
- package/extension-dist/workspace/workspace.html +12 -12
- package/extension-dist/workspace/workspace.js +170 -46
- package/package.json +2 -2
- package/extension-dist/chunks/shared-73iHxv_g.js +0 -1
- package/extension-dist/chunks/shared-BRaGK72I.css +0 -1
- package/extension-dist/chunks/shared-Beih6ywL.js +0 -1
- package/extension-dist/chunks/shared-BgEO6Nif.js +0 -39
- package/extension-dist/chunks/shared-ByZxg79I.js +0 -1
- package/extension-dist/chunks/shared-CFEBqIm7.js +0 -21
- package/extension-dist/chunks/shared-CKtbh_44.js +0 -199
- package/extension-dist/chunks/shared-CSBwVLDL.js +0 -1
- package/extension-dist/chunks/shared-CeI71eLt.js +0 -134
- package/extension-dist/chunks/shared-CfjrOLG1.js +0 -336
- package/extension-dist/chunks/shared-CgUMEof2.js +0 -1
- package/extension-dist/chunks/shared-D-c-eSoI.js +0 -1
- package/extension-dist/chunks/shared-DXp1f_Ub.css +0 -1
- package/extension-dist/chunks/shared-Dk6zuyaK.css +0 -1
- package/extension-dist/chunks/shared-RcZD4SR-.js +0 -1
- package/extension-dist/chunks/shared-lM00HeT6.js +0 -98
- package/extension-dist/chunks/shared-t8TH2XkL.js +0 -239
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "progon-agent",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Progon local agent — runs Progon scenarios on your machine in its own Chromium with the Progon extension.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@antvish/progon-gates": "^1.0.0",
|
|
63
|
-
"@antvish/shared": "^2.25.
|
|
63
|
+
"@antvish/shared": "^2.25.2",
|
|
64
64
|
"@types/node": "^22.0.0",
|
|
65
65
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
66
66
|
"@typescript-eslint/parser": "^8.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Bo as e,Gr as t,Ro as n,Uo as r,Va as i,Wo as a,zo as o}from"./shared-t8TH2XkL.js";function s(e,t){if(t.length===0)return[];let r=a(e);if(r===null)return[];let i=[];for(let e of d(r,t))for(let t of e.winners)i.push(p(t));return i.sort((e,t)=>n(e.environmentId,t.environmentId)||n(e.applicationId,t.applicationId))}function c(e,t,r){if(t.length===0)return{kind:`no_targets`};let i=a(e);if(i===null)return{kind:`unsupported_url`};let o=d(i,t);if(o.length===0)return{kind:`unknown_host`};let s=f(o,r);if(s===null)return{kind:`environment_choice`,environmentIds:o.map(e=>e.environmentId)};let c=[...new Set(s.winners.map(e=>e.rule.applicationId))].sort(n);return c.length>1?{kind:`ambiguous_application`,environmentId:s.environmentId,applicationIds:c}:{kind:`matched`,...p(s.winners[0])}}function l(e,t,n){let r=a(e);return r!==null&&t.some(e=>(n===null||e.environmentId===n)&&u(e,r)!==null)}function u(t,n){if(t.baseUrl!==null){let e=r(t.baseUrl);if(o(e.host)===o(n.host)){if(e.port===``)return 2;if(e.port===n.port)return 1}}return t.hostPattern!==null&&e(n.host,t.hostPattern)?3:null}function d(e,t){let r=/* @__PURE__ */ new Map;for(let n of t){let t=u(n,e);if(t===null)continue;let i={rule:n,tier:t},a=r.get(n.environmentId);a===void 0||t<a.winners[0].tier?r.set(n.environmentId,{environmentId:n.environmentId,winners:[i]}):t===a.winners[0].tier&&a.winners.push(i)}return[...r.values()].sort((e,t)=>n(e.environmentId,t.environmentId))}function f(e,t){let[n]=e;if(e.length===1&&n!==void 0)return n;if(t===null)return null;let r=e.find(e=>e.environmentId===t);return r===void 0?null:r}function p(e){let t=e.tier===3?`host_pattern`:`base_url`;return{targetId:e.rule.targetId,applicationId:e.rule.applicationId,environmentId:e.rule.environmentId,matchedBy:t}}var m=i(),h=`?`,g={xs:`size-4 text-(length:--text-2xs)`,sm:`size-5.5 text-(length:--text-micro)`,md:`size-7 text-(length:--text-caption)`,lg:`size-9 text-(length:--text-body-sm)`},_={primary:`bg-(--color-bg-primary-tint-15) text-fg-on-primary-tint shadow-[0_0_0_2px_var(--av-ring,var(--color-bg-card)),inset_0_0_0_1px_var(--color-border-primary-tint-28)]`,info:`bg-[color-mix(in_srgb,var(--color-info)_16%,transparent)] text-fg-info shadow-[0_0_0_2px_var(--av-ring,var(--color-bg-card))]`,scenario:`bg-[color-mix(in_srgb,var(--color-accent-scenario)_16%,transparent)] text-(--color-accent-scenario) shadow-[0_0_0_2px_var(--av-ring,var(--color-bg-card))]`};function v(e){return typeof e==`string`&&e.length>0}function y(e,t,n){return v(e)&&v(t)?(e.charAt(0)+t.charAt(0)).toUpperCase():v(e)?e.charAt(0).toUpperCase():v(n)?n.charAt(0).toUpperCase():h}function b(e,t,n,r){return v(e)&&v(t)?`${e} ${t}`:v(e)?e:v(n)?n:r}function x(e){return e.replace(/@.*$/,``).split(/[\s._-]+/).filter(e=>e!==``).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(``)}var S=`inline-grid shrink-0 place-items-center rounded-full font-semibold tracking-[0.2px]`;function C(e){let{size:n,tone:r=`primary`,className:i}=e,a=t(S,g[n],_[r],i);if(e.displayName!==void 0)return/* @__PURE__ */ (0,m.jsx)(`span`,{"aria-hidden":`true`,className:a,children:x(e.displayName)});let{firstName:o,lastName:s,email:c,unknownLabel:l}=e;return/* @__PURE__ */ (0,m.jsx)(`span`,{role:`img`,"aria-label":b(o,s,c,l),className:a,children:/* @__PURE__ */ (0,m.jsx)(`span`,{"aria-hidden":`true`,children:y(o,s,c)})})}export{c as i,l as n,s as r,C as t};
|