') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); Dash for R v0.9.0 by rpkyle · Pull Request #239 · plotly/dashR · GitHub
Skip to content

Dash for R v0.9.0 - #239

Merged
rpkyle merged 35 commits into
masterfrom
dev
Oct 31, 2020
Merged

Dash for R v0.9.0#239
rpkyle merged 35 commits into
masterfrom
dev

Conversation

@rpkyle

@rpkylerpkyle commented Oct 31, 2020

Copy link
Copy Markdown
Contributor

[0.9.0] - 2020-10-31

Fixed

  • Fixes a minor bug in setCallbackContext (described in #236) which prevented pattern-matching callbacks from working properly if one or more input statements did not include a selector. #237

Changed

  • Dash for R now depends on v1.1.1 of dashHtmlComponents
  • Dash for R now depends on v1.13.0 of dashCoreComponents
  • Dash for R now depends on v4.11.0 of dashTable
  • dash-renderer version is now v1.8.3

Ryan Patrick Kyleand others added 30 commits August 3, 2020 13:27
Co-authored-by: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com>
Relocate metadata fixup logic from config.yml to R script
* Testing initial implementation
* More testing
* Callback Context Updates
* Updating callback context logic
* Fixing callback returns
* Adding callback args conditional
* Cleanup and additional changes to callback value conditionals
* Comment cleanup
* Added PMC callback validation, removed unnecessary code
* Update R/dependencies.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update R/dependencies.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update R/dependencies.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update R/dependencies.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Added build to gitignore
* Updated dependencies.R
* Update boilerplate docs and add wildcard symbols
* Drying up validation code and applying symbol logic
* Update test to use symbols
* Cleaned up code and added allsmaller test example
* Cleaning up redundant code
* Update FUNDING.yml
* Updated callback_args logic and example
* Adding basic unittests, updated validation
* Fixed response for MATCH callbacks
* Added integration test and updated examples for docs
* Added additional integration test
* Formatting and cleanup
* update docs
* Update to-do app
* Add comments to examples
* Change empy vector to character type.
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update boilerplate text.
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update tests/integration/callbacks/test_pattern_matching.py
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update tests/integration/callbacks/test_pattern_matching.py
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update tests/integration/callbacks/test_pattern_matching.py
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update tests/integration/callbacks/test_pattern_matching.py
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update tests/integration/callbacks/test_pattern_matching.py
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update tests/testthat/test-wildcards.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update wildcards_test.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update wildcards_test.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update wildcards_test.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update wildcards_test.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update wildcards_test.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update wildcards_test.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update wildcards_test.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Update wildcards_test.R
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
* Removed triple colon syntax
* Use seq_along and remove unnecessary unittest
* Update CHANGELOG.md
* Update CHANGELOG.md
* Add support for arbitrary and sorted keys
* Whitespace deleted
* Added integration tests
* Fixing test output
* Fixing flakiness
* Update test_pattern_matching.py
* Update test_pattern_matching.py
* Updating boilerplate text and test with generalized keys
* Minor test fixes
Co-authored-by: Ryan Patrick Kyle <rpkyle@users.noreply.github.com>
Co-authored-by: Nicolas Kruchten <nicolas@plot.ly>
Co-authored-by: rpkyle <ryan@plotly.com>
* Fixing NULL error with glue interpolation
* Update utils.R
* Update utils.R
* bump dash-renderer to v1.8.2
* Update CHANGELOG.md
* add note about update to dash-renderer
* Fixing flaky test
Co-authored-by: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com>
Co-authored-by: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com>
Co-authored-by: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com>
Co-authored-by: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com>
Co-authored-by: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com>
Co-authored-by: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com>
* Update setCallbackContext
* Adding graphs test
* Slight fix
* bump version and update CHANGELOG
* Less flaky test
Co-authored-by: rpkyle <ryan@plotly.com>
@rpkylerpkyle changed the title Dash for R v0.8.1Dash for R v0.9.0Oct 31, 2020
@rpkyle
rpkyle merged commit edbcc04 into masterOct 31, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@rpkyle@HammadTheOne