@agent-native/core 0.63.3 → 0.63.4
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/client/blocks/library/AnnotatedCodeBlock.d.ts.map +1 -1
- package/dist/client/blocks/library/AnnotatedCodeBlock.js +23 -19
- package/dist/client/blocks/library/AnnotatedCodeBlock.js.map +1 -1
- package/dist/client/blocks/library/diagram.d.ts.map +1 -1
- package/dist/client/blocks/library/diagram.js +10 -11
- package/dist/client/blocks/library/diagram.js.map +1 -1
- package/dist/client/blocks/library/wireframe.d.ts.map +1 -1
- package/dist/client/blocks/library/wireframe.js +2 -1
- package/dist/client/blocks/library/wireframe.js.map +1 -1
- package/dist/server/auth.d.ts.map +1 -1
- package/dist/server/auth.js +5 -1
- package/dist/server/auth.js.map +1 -1
- package/dist/server/onboarding-html.d.ts.map +1 -1
- package/dist/server/onboarding-html.js +50 -5
- package/dist/server/onboarding-html.js.map +1 -1
- package/docs/content/template-analytics.md +11 -41
- package/docs/content/template-assets.md +8 -3
- package/docs/content/template-brain.md +6 -1
- package/docs/content/template-calendar.md +13 -59
- package/docs/content/template-chat.md +6 -9
- package/docs/content/template-clips.md +11 -16
- package/docs/content/template-content.md +14 -48
- package/docs/content/template-design.md +7 -2
- package/docs/content/template-dispatch.md +6 -9
- package/docs/content/template-forms.md +10 -13
- package/docs/content/template-mail.md +12 -27
- package/docs/content/template-plan.md +6 -1
- package/docs/content/template-slides.md +14 -75
- package/docs/content/template-videos.md +11 -52
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding-html.d.ts","sourceRoot":"","sources":["../../src/server/onboarding-html.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AA2C/B,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAI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M,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QACxB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,qBAA0B,GAAG,MAAM,CAi+D1E;AAED,kDAAkD;AAClD,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CA0G7C"}
|
|
@@ -115,6 +115,26 @@ ${googleNoticeRunLocalHtml}
|
|
|
115
115
|
${googleNoticeRunLocalPanelHtml}
|
|
116
116
|
</div>`
|
|
117
117
|
: "";
|
|
118
|
+
const identitySsoHtml = identitySsoLoginButtonHtml();
|
|
119
|
+
const identitySsoScript = identitySsoHtml
|
|
120
|
+
? `
|
|
121
|
+
function __anIdentitySsoUrl() {
|
|
122
|
+
var params = new URLSearchParams();
|
|
123
|
+
params.set('return', __anGetReturnPath());
|
|
124
|
+
return __anPath('/_agent-native/identity/login') + '?' + params.toString();
|
|
125
|
+
}
|
|
126
|
+
function __anStartIdentitySso(event) {
|
|
127
|
+
if (event && event.preventDefault) event.preventDefault();
|
|
128
|
+
window.location.href = __anIdentitySsoUrl();
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
(function __anPrepareIdentitySsoButton() {
|
|
132
|
+
var identity = document.getElementById('identity-sso-btn');
|
|
133
|
+
if (!identity) return;
|
|
134
|
+
identity.setAttribute('href', __anIdentitySsoUrl());
|
|
135
|
+
identity.addEventListener('click', __anStartIdentitySso);
|
|
136
|
+
})();`
|
|
137
|
+
: "";
|
|
118
138
|
const marketingStyles = hasMarketing
|
|
119
139
|
? `
|
|
120
140
|
body.has-marketing { padding: 0; position: relative; overflow-x: hidden; }
|
|
@@ -901,7 +921,7 @@ ${marketingPanelHtml}
|
|
|
901
921
|
id="upgrade-note"
|
|
902
922
|
data-upgrade-copy="Continue signing in to attach this app to your account and migrate local data."
|
|
903
923
|
></p>
|
|
904
|
-
${
|
|
924
|
+
${identitySsoHtml}
|
|
905
925
|
${renderGoogleButton
|
|
906
926
|
? `
|
|
907
927
|
<div class="google-signin" id="google-signin">
|
|
@@ -1095,12 +1115,35 @@ ${googleOnly
|
|
|
1095
1115
|
__anSetOAuthDebug('OAuth exchange redeemed; returning to the app', flowId);
|
|
1096
1116
|
__anRedirectToSignedInApp(ret);
|
|
1097
1117
|
}
|
|
1118
|
+
function __anHasControlCharacter(value) {
|
|
1119
|
+
for (var i = 0; i < value.length; i++) {
|
|
1120
|
+
if (value.charCodeAt(i) < 32) return true;
|
|
1121
|
+
}
|
|
1122
|
+
return false;
|
|
1123
|
+
}
|
|
1124
|
+
function __anNormalizeReturnPath(raw) {
|
|
1125
|
+
var value = typeof raw === 'string' ? raw : '';
|
|
1126
|
+
if (!value || __anHasControlCharacter(value)) return '';
|
|
1127
|
+
if (value.charAt(0) === '\\\\') return '';
|
|
1128
|
+
if (value.charAt(0) === '/' && (value.charAt(1) === '/' || value.charAt(1) === '\\\\')) return '';
|
|
1129
|
+
try {
|
|
1130
|
+
var url = new URL(value, window.location.origin);
|
|
1131
|
+
if (url.origin !== window.location.origin) return '';
|
|
1132
|
+
return url.pathname + url.search + url.hash;
|
|
1133
|
+
} catch(e) {
|
|
1134
|
+
return '';
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
function __anCurrentReturnPath() {
|
|
1138
|
+
return window.location.pathname + window.location.search + window.location.hash;
|
|
1139
|
+
}
|
|
1098
1140
|
function __anGetReturnPath() {
|
|
1099
1141
|
try {
|
|
1100
1142
|
var inner = new URLSearchParams(window.location.search).get('return');
|
|
1101
|
-
|
|
1143
|
+
var normalized = __anNormalizeReturnPath(inner);
|
|
1144
|
+
if (normalized) return normalized;
|
|
1102
1145
|
} catch(e) {}
|
|
1103
|
-
return
|
|
1146
|
+
return __anCurrentReturnPath();
|
|
1104
1147
|
}
|
|
1105
1148
|
function __anMountedPathname(pathname) {
|
|
1106
1149
|
var base = __anBasePath();
|
|
@@ -1115,10 +1158,11 @@ ${googleOnly
|
|
|
1115
1158
|
function __anGetSignedInReturnPath() {
|
|
1116
1159
|
try {
|
|
1117
1160
|
var inner = new URLSearchParams(window.location.search).get('return');
|
|
1118
|
-
|
|
1161
|
+
var normalized = __anNormalizeReturnPath(inner);
|
|
1162
|
+
if (normalized) return normalized;
|
|
1119
1163
|
} catch(e) {}
|
|
1120
1164
|
if (__anIsAuthEntryPath(window.location.pathname)) return __anPath('/');
|
|
1121
|
-
return
|
|
1165
|
+
return __anCurrentReturnPath();
|
|
1122
1166
|
}
|
|
1123
1167
|
function __anWithAuthCacheBypass(ret) {
|
|
1124
1168
|
try {
|
|
@@ -1137,6 +1181,7 @@ ${googleOnly
|
|
|
1137
1181
|
function __anRedirectToSignedInApp(ret) {
|
|
1138
1182
|
window.location.replace(__anWithAuthCacheBypass(ret || __anGetSignedInReturnPath()));
|
|
1139
1183
|
}
|
|
1184
|
+
${identitySsoScript}
|
|
1140
1185
|
(function __anRedirectIfAlreadySignedIn() {
|
|
1141
1186
|
fetch(__anPath('/_agent-native/auth/session'), {
|
|
1142
1187
|
headers: { 'Accept': 'application/json' },
|