@aw-webflow/workflow-automation 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/script.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aw-webflow/workflow-automation",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "start": "parcel script.js",
package/script.js CHANGED
@@ -286,16 +286,20 @@
286
286
  }
287
287
  return out;
288
288
  }
289
+ var FILE_SVG = '<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="m10 13-2 2 2 2M14 17l2-2-2-2"/></svg>';
289
290
  function buildMini(stage) {
291
+ var logoUrl = AWC_CSS.match(/\.routine \.bar \.mk\{[^}]*?url\((data:image[^)]+)\)/)[1];
290
292
  var names = ['Auto-close resolved tickets', 'Check app seats', 'Pull app info via API', 'Revoke app access', 'Rotate API keys'], rows = [];
291
293
  for (var i = 0; i < names.length; i++) {
292
294
  rows.push(E('div', 'display:flex;align-items:center;gap:10px;padding:10px 12px;position:relative;border-bottom:1px solid rgba(0,0,0,.05);background:' + (i === 0 ? '#F7F4FD' : '#fff'),
293
295
  (i === 0 ? '<span style="position:absolute;left:0;top:0;bottom:0;width:3px;background:#7C3AED"></span>' : '') +
294
- '<span style="flex:none;font:600 9.5px ' + MONO + ';background:#E9EEF8;color:#325EE0;border-radius:4px;padding:3px 5px">TS</span><b style="font:500 12px Inter,sans-serif;color:' + INK + '">' + names[i] + '</b>'));
296
+ '<span style="flex:none;width:24px;height:24px;border-radius:7px;background:#E9EEF8;color:#325EE0;display:inline-flex;align-items:center;justify-content:center">' + FILE_SVG + '</span><b style="font:500 12px Inter,sans-serif;color:' + INK + ';white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0">' + names[i] + '</b>'));
295
297
  }
296
298
  var code = E('pre', 'margin:0;white-space:pre;overflow:hidden;font:400 9.5px/1.75 ' + MONO + ';color:#0A0A0B;min-height:130px');
297
299
  var right = E('div', 'padding:10px 12px;min-width:0;border-left:1px solid rgba(0,0,0,.06)', [E('div', 'font:600 11px Inter,sans-serif;margin-bottom:6px;color:' + INK, 'auto-close-resolved-tickets.ts'), code]);
298
- var w = win('Atomicwork', 'Code library', E('div', 'display:grid;grid-template-columns:1.15fr 1fr', [E('div', 'background:#fff', rows), right]), 'margin:16px');
300
+ var bar = E('div', 'display:flex;align-items:center;gap:10px;height:44px;padding:0 16px;border-bottom:1px solid rgba(0,0,0,.06);font:500 11px Inter,sans-serif;letter-spacing:.4px;text-transform:uppercase;color:#3F3F46;flex:none',
301
+ '<span style="width:16px;height:16px;flex:none;display:inline-block;background:url(' + logoUrl + ') center/contain no-repeat"></span>Atomicwork<span style="flex:1"></span>Code library');
302
+ var w = E('div', 'background:#fff;border:.7px solid #E3DFE7;border-radius:12px;box-shadow:0 3.7px 11px rgba(31,21,40,.05),0 -1px 24px rgba(0,0,0,.08);overflow:hidden;display:flex;flex-direction:column;margin:16px', [bar, E('div', 'display:grid;grid-template-columns:46% 54%', [E('div', 'background:#fff;min-width:0', rows), right])]);
299
303
  stage.appendChild(w);
300
304
  return { root: w, code: code };
301
305
  }