@aqentra/datum 0.1.1 → 0.1.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/README.md +25 -5
- package/dist/addin/assets/aqentra-logo.svg +1 -0
- package/dist/addin/assets/fonts/OFL.txt +1 -0
- package/dist/addin/assets/fonts/plus-jakarta-sans-400.woff2 +0 -0
- package/dist/addin/assets/fonts/plus-jakarta-sans-600.woff2 +0 -0
- package/dist/addin/assets/fonts/plus-jakarta-sans-700.woff2 +0 -0
- package/dist/addin/assets/themes.png +0 -0
- package/dist/addin/datum-desktop.zip +0 -0
- package/dist/addin/index.html +426 -103
- package/dist/addin/install.ps1 +2 -3
- package/dist/addin/install.sh +3 -3
- package/dist/addin/manifest.xml +2 -2
- package/dist/addin/taskpane.js +21 -21
- package/dist/addin/taskpane.js.map +3 -3
- package/dist/cli.js +11 -7
- package/dist/desktop/addin/assets/aqentra-logo.svg +1 -0
- package/dist/desktop/addin/assets/fonts/OFL.txt +1 -0
- package/dist/desktop/addin/assets/fonts/plus-jakarta-sans-400.woff2 +0 -0
- package/dist/desktop/addin/assets/fonts/plus-jakarta-sans-600.woff2 +0 -0
- package/dist/desktop/addin/assets/fonts/plus-jakarta-sans-700.woff2 +0 -0
- package/dist/desktop/addin/assets/themes.png +0 -0
- package/dist/desktop/addin/index.html +426 -103
- package/dist/desktop/addin/taskpane.js +21 -21
- package/dist/desktop/datum.mjs +11 -7
- package/dist/desktop/install.ps1 +2 -3
- package/dist/desktop/install.sh +3 -3
- package/package.json +1 -1
package/dist/desktop/datum.mjs
CHANGED
|
@@ -445,13 +445,16 @@ function pick(palette, i2) {
|
|
|
445
445
|
return palette[(i2 % palette.length + palette.length) % palette.length].toUpperCase();
|
|
446
446
|
}
|
|
447
447
|
function contrastText(fill2, dark) {
|
|
448
|
-
|
|
448
|
+
if (luminance(fill2) < 0.179) return "#FFFFFF";
|
|
449
|
+
return /^#[0-9a-f]{6}$/i.test(dark) && luminance(dark) >= 0.179 ? "#1F2328" : dark;
|
|
450
|
+
}
|
|
451
|
+
function luminance(color2) {
|
|
452
|
+
const n2 = parseInt(color2.slice(1), 16);
|
|
449
453
|
const [r, g, b] = [n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255].map((c) => {
|
|
450
454
|
const s = c / 255;
|
|
451
455
|
return s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
|
|
452
456
|
});
|
|
453
|
-
|
|
454
|
-
return luminance < 0.179 ? "#FFFFFF" : dark;
|
|
457
|
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
455
458
|
}
|
|
456
459
|
var DEFAULT_THEME;
|
|
457
460
|
var init_theme = __esm({
|
|
@@ -11275,9 +11278,10 @@ function manifest(base, version) {
|
|
|
11275
11278
|
},
|
|
11276
11279
|
developer: {
|
|
11277
11280
|
name: "DATUM",
|
|
11278
|
-
websiteUrl: "https://
|
|
11279
|
-
privacyUrl: "https://
|
|
11280
|
-
|
|
11281
|
+
websiteUrl: "https://datum.aqentra.ai/",
|
|
11282
|
+
privacyUrl: "https://datum.aqentra.ai/#privacy",
|
|
11283
|
+
// Open source: the licence is the terms of use.
|
|
11284
|
+
termsOfUseUrl: "https://github.com/RasmRo/DATUM/blob/main/LICENSE"
|
|
11281
11285
|
},
|
|
11282
11286
|
icons: { color: "color.png", outline: "outline.png" },
|
|
11283
11287
|
accentColor: "#0F2B46",
|
|
@@ -12834,7 +12838,7 @@ async function main(argv) {
|
|
|
12834
12838
|
throw new Error(`Unknown command "${cmd}". Run: datum --help`);
|
|
12835
12839
|
}
|
|
12836
12840
|
}
|
|
12837
|
-
var VERSION = true ? "0.1.
|
|
12841
|
+
var VERSION = true ? "0.1.3" : "dev";
|
|
12838
12842
|
main(process.argv.slice(2)).catch((e2) => {
|
|
12839
12843
|
process.stderr.write(`datum: ${e2.message}
|
|
12840
12844
|
`);
|
package/dist/desktop/install.ps1
CHANGED
|
@@ -17,9 +17,8 @@
|
|
|
17
17
|
$ProgressPreference = 'SilentlyContinue'
|
|
18
18
|
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
|
|
19
19
|
|
|
20
|
-
$Base = 'https://localhost:3000/'
|
|
21
20
|
$Dir = Join-Path $env:LOCALAPPDATA 'DATUM'
|
|
22
|
-
Write-Host "Installing DATUM Desktop 0.1.
|
|
21
|
+
Write-Host "Installing DATUM Desktop 0.1.3 for $env:USERNAME"
|
|
23
22
|
New-Item -ItemType Directory -Force -Path $Dir | Out-Null
|
|
24
23
|
|
|
25
24
|
# 1. Program files: from this folder, or downloaded.
|
|
@@ -27,7 +26,7 @@
|
|
|
27
26
|
if (-not ($Here -and (Test-Path (Join-Path $Here 'datum.mjs')))) {
|
|
28
27
|
$Zip = Join-Path $env:TEMP 'datum-desktop.zip'
|
|
29
28
|
Write-Host 'Downloading DATUM...'
|
|
30
|
-
Invoke-WebRequest
|
|
29
|
+
Invoke-WebRequest 'https://localhost:3000/datum-desktop.zip' -OutFile $Zip -UseBasicParsing
|
|
31
30
|
$Here = Join-Path $env:TEMP 'datum-desktop'
|
|
32
31
|
if (Test-Path $Here) { Remove-Item $Here -Recurse -Force }
|
|
33
32
|
Expand-Archive $Zip -DestinationPath $Here -Force
|
package/dist/desktop/install.sh
CHANGED
|
@@ -15,13 +15,13 @@ set -euo pipefail
|
|
|
15
15
|
# Everything runs in main, so "curl | bash" reads the whole script before any
|
|
16
16
|
# step starts (a program reading stdin cannot swallow the rest of it).
|
|
17
17
|
main() {
|
|
18
|
-
local
|
|
18
|
+
local DIR OS HERE TMP NODE
|
|
19
19
|
case "$(uname -s)" in
|
|
20
20
|
Darwin) DIR="$HOME/Library/Application Support/DATUM"; OS=darwin ;;
|
|
21
21
|
Linux) DIR="${XDG_DATA_HOME:-$HOME/.local/share}/datum"; OS=linux ;;
|
|
22
22
|
*) echo "DATUM Desktop supports macOS and Windows (use install.cmd there)."; exit 1 ;;
|
|
23
23
|
esac
|
|
24
|
-
echo "Installing DATUM Desktop 0.1.
|
|
24
|
+
echo "Installing DATUM Desktop 0.1.3 for $USER"
|
|
25
25
|
mkdir -p "$DIR"
|
|
26
26
|
|
|
27
27
|
# 1. Program files: from this folder, or downloaded.
|
|
@@ -29,7 +29,7 @@ main() {
|
|
|
29
29
|
if [ ! -f "$HERE/datum.mjs" ]; then
|
|
30
30
|
echo "Downloading DATUM..."
|
|
31
31
|
TMP="$(mktemp -d)"
|
|
32
|
-
curl -fsSL
|
|
32
|
+
curl -fsSL 'https://localhost:3000/datum-desktop.zip' -o "$TMP/datum.zip"
|
|
33
33
|
unzip -q "$TMP/datum.zip" -d "$TMP/pkg"
|
|
34
34
|
HERE="$TMP/pkg"
|
|
35
35
|
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aqentra/datum",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Open-source, agent-friendly charts for PowerPoint: data-driven columns, waterfalls, Mekko and Gantt as native shapes, linked to Excel, with corporate themes and an MCP server.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://datum.aqentra.ai/",
|