Skip to content

Commit 2df6c19

Browse files
committed
Update shiny.js
1 parent 39bcfdd commit 2df6c19

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

shiny/www/shared/_version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"note!": "This file is auto-generated by scripts/htmlDependencies.R",
33
"package": "shiny",
4-
"version": "Github (rstudio/shiny@370ba1f288d3f759456ef3ef6e768ee1d7fda677)"
4+
"version": "Github (rstudio/shiny@f71f1256b8ed1ee133c5aea281bbc750a379460c)"
55
}

shiny/www/shared/shiny.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18574,9 +18574,10 @@
1857418574
idTypes.forEach(function(type) {
1857518575
return counts[type] += 1;
1857618576
});
18577-
if (Object.values(counts).some(function(count) {
18578-
return count > 1;
18579-
})) {
18577+
if (counts.input === 1 && counts.output === 1 && !Shiny.inDevMode()) {
18578+
return;
18579+
}
18580+
if (counts.input + counts.output > 1) {
1858018581
duplicateIds.set(id, counts);
1858118582
}
1858218583
});
@@ -22355,6 +22356,9 @@
2235522356
_defineProperty19(ShinyErrorMessage, "styles", [i(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(['\n :host {\n color: var(--red-11);\n display: block;\n font-size: var(--font-md);\n\n position: relative;\n --icon-size: var(--font-lg)\n\n /* Reset box sizing */\n box-sizing: border-box;\n }\n\n .container {\n display: flex;\n gap: var(--space-2);\n }\n\n .contents {\n width: 40ch;\n display: flex;\n flex-direction: column;\n gap: var(--space-1);\n padding-block-start: 0;\n padding-block-end: var(--space-3);\n overflow: auto;\n }\n\n :host(:last-of-type) .contents {\n\n padding-block-end: var(--space-1);\n }\n\n .contents > h3 {\n font-size: 1em;\n font-weight: 500;\n color: var(--red-12);\n }\n\n .contents > * {\n margin-block: 0;\n }\n\n .error-message {\n font-family: "Courier New", Courier, monospace;\n }\n\n .decoration-container {\n flex-shrink: 0;\n position: relative;\n\n --line-w: 2px;\n --dot-size: 11px;\n }\n\n :host(:hover) .decoration-container {\n --scale: 1.25;\n }\n\n .vertical-line {\n margin-inline: auto;\n width: var(--line-w);\n height: 100%;\n\n background-color: var(--red-10);\n }\n\n :host(:first-of-type) .vertical-line {\n height: calc(100% - var(--dot-size));\n margin-top: var(--dot-size);\n }\n\n .dot {\n position: absolute;\n width: var(--dot-size);\n height: var(--dot-size);\n top: calc(-1px + var(--dot-size) / 2);\n left: calc(50% - var(--dot-size) / 2);\n border-radius: 100%;\n transform: scale(var(--scale, 1));\n\n color: var(--red-6);\n background-color: var(--red-10);\n }\n\n .actions {\n transform: scaleX(0);\n transition: transform calc(var(--animation-speed) / 2) ease-in-out;\n display: flex;\n justify-content: center;\n flex-direction: column;\n }\n\n /* Delay transition on mouseout so the buttons don\'t jump away if the user\n overshoots them with their mouse */\n :host(:not(:hover)) .actions {\n transition-delay: 0.15s;\n }\n\n :host(:hover) .actions {\n transform: scaleX(1);\n }\n\n ', "\n\n .copy-button {\n padding: 0;\n width: var(--space-8);\n height: var(--space-8);\n position: relative;\n --pad: var(--space-2);\n }\n\n .copy-button-inner {\n position: relative;\n width: 100%;\n height: 100%;\n border-radius: inherit;\n transition: transform 0.5s;\n transform-style: preserve-3d;\n }\n\n /* Animate flipping to the other side when the .copy-success class is\n added to the host */\n :host(.copy-success) .copy-button-inner {\n transform: rotateY(180deg);\n }\n\n /* Position the front and back side */\n .copy-button .front,\n .copy-button .back {\n --side: calc(100% - 2 * var(--pad));\n position: absolute;\n inset: var(--pad);\n height: var(--side);\n width: var(--side);\n -webkit-backface-visibility: hidden; /* Safari */\n backface-visibility: hidden;\n }\n\n .copy-button:hover .copy-button-inner {\n background-color: var(--gray-2);\n }\n\n /* Style the back side */\n .copy-button .back {\n --pad: var(--space-1);\n color: var(--green-8);\n transform: rotateY(180deg);\n }\n "])), buttonStyles)]);
2235622357
customElements.define("shiny-error-message", ShinyErrorMessage);
2235722358
function showErrorInClientConsole(e4) {
22359+
if (!Shiny.inDevMode()) {
22360+
return;
22361+
}
2235822362
var errorMsg = null;
2235922363
var headline = "Error on client while running Shiny app";
2236022364
if (typeof e4 === "string") {
@@ -25127,6 +25131,11 @@
2512725131
windowShiny2.renderContent = renderContent;
2512825132
windowShiny2.renderHtmlAsync = renderHtmlAsync;
2512925133
windowShiny2.renderHtml = renderHtml2;
25134+
windowShiny2.inDevMode = function() {
25135+
if ("__SHINY_DEV_MODE__" in window)
25136+
return Boolean(window.__SHINY_DEV_MODE__);
25137+
return false;
25138+
};
2513025139
(0, import_jquery40.default)(function() {
2513125140
setTimeout(/* @__PURE__ */ _asyncToGenerator15(/* @__PURE__ */ _regeneratorRuntime15().mark(function _callee() {
2513225141
return _regeneratorRuntime15().wrap(function _callee$(_context) {

0 commit comments

Comments
 (0)