@link-loom/cloud-sdk 1.0.5 → 1.0.6
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/cloud-sdk.esm.js
CHANGED
|
@@ -7504,6 +7504,12 @@ var buildBareSpecifierPattern = function buildBareSpecifierPattern() {
|
|
|
7504
7504
|
});
|
|
7505
7505
|
return new RegExp("((?:from|import)\\s*)([\"'])(".concat(escaped.join('|'), ")(?:\\/[^\"']*)?(\\2)"), 'g');
|
|
7506
7506
|
};
|
|
7507
|
+
|
|
7508
|
+
// JavaScript reserved words that cannot be used as variable names in
|
|
7509
|
+
// `export const <name> = ...` statements. Without this filter, modules
|
|
7510
|
+
// like axios (which exports a function named `delete`) would generate
|
|
7511
|
+
// invalid shim code such as `export const delete = m["delete"];`.
|
|
7512
|
+
var JS_RESERVED_WORDS = new Set(['break', 'case', 'catch', 'continue', 'debugger', 'default', 'delete', 'do', 'else', 'finally', 'for', 'function', 'if', 'in', 'instanceof', 'new', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'var', 'void', 'while', 'with', 'class', 'const', 'enum', 'export', 'extends', 'import', 'super', 'implements', 'interface', 'let', 'package', 'private', 'protected', 'public', 'static', 'yield']);
|
|
7507
7513
|
var buildShimCode = function buildShimCode(depKey) {
|
|
7508
7514
|
var _window$RUNTIME_WINDO;
|
|
7509
7515
|
var moduleObj = (_window$RUNTIME_WINDO = window[RUNTIME_WINDOW_KEY]) === null || _window$RUNTIME_WINDO === void 0 ? void 0 : _window$RUNTIME_WINDO[depKey];
|
|
@@ -7518,7 +7524,7 @@ var buildShimCode = function buildShimCode(depKey) {
|
|
|
7518
7524
|
}
|
|
7519
7525
|
if (_typeof(moduleObj) === 'object' && moduleObj !== null) {
|
|
7520
7526
|
Object.keys(moduleObj).filter(function (k) {
|
|
7521
|
-
return k !== 'default' && k !== '__esModule' && /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(k);
|
|
7527
|
+
return k !== 'default' && k !== '__esModule' && /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(k) && !JS_RESERVED_WORDS.has(k);
|
|
7522
7528
|
}).forEach(function (k) {
|
|
7523
7529
|
return lines.push("export const ".concat(k, " = m[\"").concat(k, "\"];"));
|
|
7524
7530
|
});
|
|
@@ -33161,19 +33167,31 @@ function PinnedAppsWidget(_ref2) {
|
|
|
33161
33167
|
return null;
|
|
33162
33168
|
}
|
|
33163
33169
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(WidgetContainer, null, pinnedApps.map(function (app) {
|
|
33164
|
-
var _app$manifest;
|
|
33170
|
+
var _app$manifest, _app$publisher, _app$publisher2;
|
|
33165
33171
|
var rawCategory = app.category || ((_app$manifest = app.manifest) === null || _app$manifest === void 0 ? void 0 : _app$manifest.kind) || "workspace";
|
|
33166
33172
|
var category = typeof rawCategory === "string" ? rawCategory : (rawCategory === null || rawCategory === void 0 ? void 0 : rawCategory.name) || "workspace";
|
|
33167
33173
|
var CategoryIcon = getCategoryIcon(category);
|
|
33168
33174
|
var tint = getCategoryTint(category);
|
|
33175
|
+
var publisherLogoUrl = ((_app$publisher = app.publisher) === null || _app$publisher === void 0 ? void 0 : _app$publisher.logo_url) || ((_app$publisher2 = app.publisher) === null || _app$publisher2 === void 0 || (_app$publisher2 = _app$publisher2.profile) === null || _app$publisher2 === void 0 ? void 0 : _app$publisher2.logo_url) || null;
|
|
33169
33176
|
return /*#__PURE__*/React__default.createElement(AppTile, {
|
|
33170
33177
|
key: app.id,
|
|
33171
33178
|
onClick: function onClick() {
|
|
33172
33179
|
return handleOpenApp(app);
|
|
33173
33180
|
}
|
|
33174
33181
|
}, /*#__PURE__*/React__default.createElement(IconBox, {
|
|
33175
|
-
$bg: tint.bg
|
|
33176
|
-
|
|
33182
|
+
$bg: publisherLogoUrl ? "transparent" : tint.bg,
|
|
33183
|
+
style: publisherLogoUrl ? {
|
|
33184
|
+
overflow: "hidden"
|
|
33185
|
+
} : undefined
|
|
33186
|
+
}, publisherLogoUrl ? /*#__PURE__*/React__default.createElement("img", {
|
|
33187
|
+
src: publisherLogoUrl,
|
|
33188
|
+
alt: app.name,
|
|
33189
|
+
style: {
|
|
33190
|
+
width: "100%",
|
|
33191
|
+
height: "100%",
|
|
33192
|
+
objectFit: "cover"
|
|
33193
|
+
}
|
|
33194
|
+
}) : /*#__PURE__*/React__default.createElement(DynamicMuiIcon, {
|
|
33177
33195
|
iconName: app.icon,
|
|
33178
33196
|
fallbackIcon: CategoryIcon,
|
|
33179
33197
|
sx: {
|