GithubHelp home page GithubHelp logo

csvenke / react-semantic-render Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 1.0 4.23 MB

Semantic helper components for rendering content with React.

Home Page: https://www.npmjs.com/package/react-semantic-render

License: MIT License

JavaScript 100.00%
react react-components react-utils react-library react-component-library render helpers utils semantic conditional

react-semantic-render's People

Contributors

bergelf avatar csvenke avatar greenkeeper[bot] avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bergelf

react-semantic-render's Issues

Rename Resolve component, add child components

Rename resolve component to something better and add child components as an option.
Shorthand props should also work, child components take precedence and shorthand props should be ignored.

For how to handle multiple custom components in children, see Switch component for reference.

Here are some of my ideas:

<Show async when={aPromise}>
  <Show.Pending
    render={() => <div>Loading...</div>}
  />

  <Show.Resolved
    render={value => <div>Success!</div>}
  />

  <Show.Rejected
    render={error => <div>Failure!</div>}
  />
</Show>

Add flow types

Find a way to automatically generate flow types from the allready generated typescript definition files.

An in-range update of ts-jest is breaking the build 🚨

The devDependency ts-jest was updated from 23.1.4 to 23.10.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ts-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).
  • ❌ Travis CI - Branch: The build failed.

Release Notes for 23.10.0

ts-jest, reloaded!

  • lots of new features including full type-checking and internal cache (see changelog)
  • improved performances
  • Babel not required anymore
  • improved (and growing) documentation
  • a ts-jest Slack community where you can find some instant help
  • end-to-end isolated testing over multiple jest, typescript and babel versions
Commits

The new version differs by 293 commits.

  • 0e5ffed chore(release): 23.10.0
  • 3665609 Merge pull request #734 from huafu/appveyor-optimizations
  • 45d44d1 Merge branch 'master' into appveyor-optimizations
  • 76e2fe5 ci(appveyor): cache npm versions as well
  • 191c464 ci(appveyor): try to improve appveyor's config
  • 0f31b42 Merge pull request #733 from huafu/fix-test-snap
  • 661853a Merge branch 'master' into fix-test-snap
  • aa7458a Merge pull request #731 from kulshekhar/dependabot/npm_and_yarn/tslint-plugin-prettier-2.0.0
  • 70775f1 ci(lint): run lint scripts in series instead of parallel
  • a18e919 style(fix): exclude package.json from tslint rules
  • 011b580 test(config): stop using snapshots for pkg versions
  • 7e5a3a1 build(deps-dev): bump tslint-plugin-prettier from 1.3.0 to 2.0.0
  • fbe90a9 Merge pull request #730 from kulshekhar/dependabot/npm_and_yarn/@types/node-10.10.1
  • a88456e build(deps-dev): bump @types/node from 10.9.4 to 10.10.1
  • 54fd239 Merge pull request #729 from kulshekhar/dependabot/npm_and_yarn/prettier-1.14.3

There are 250 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Rename Map component to List

Map is in hindsight not very semantic, and List feels much more natural.

<List
  items={[1,2,3}
  render={item => (<div>{item}</div>)}
/>

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.18.0 to 1.19.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Commits

The new version differs by 6 commits.

  • 9af119d 1.19.0
  • b3f361c Update changelog
  • 456f4d2 Avoid variable from empty module name be empty (#3026)
  • 17eaa43 Use id of last module in chunk as name base for auto-generated chunks (#3025)
  • 871bfa0 Switch to a code-splitting build and update dependencies (#3020)
  • 2443783 Unified file emission api (#2999)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Content in render is evaluated

This results in error: 'Cannot read asd of undefined'

const result = undefined;
<Show 
  when={!!result}
  render={() => <span>{result.label}</span>}
/>

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): replace dependency rollup-plugin-terser with @rollup/plugin-terser 0.1.0
  • chore(deps): update babel monorepo (@babel/core, @babel/preset-env, @babel/preset-react)
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency lint-staged to v15
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency rollup to v4
  • chore(deps): update github artifact actions to v4 (major) (actions/download-artifact, actions/upload-artifact)
  • πŸ” Create all rate-limited PRs at once πŸ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/master-workflow.yml
  • actions/checkout v2
  • actions/setup-node v1
  • actions/upload-artifact v1
  • actions/checkout v2
  • actions/setup-node v1
  • actions/download-artifact v1
.github/workflows/pull-request-workflow.yml
  • actions/checkout v2
  • actions/setup-node v1
  • actions/labeler v2
npm
package.json
  • prop-types 15.8.1
  • @babel/core 7.23.9
  • @babel/preset-env 7.23.9
  • @babel/preset-react 7.23.3
  • @commitlint/cli 8.3.6
  • @commitlint/config-conventional 8.3.6
  • @csvenke/prettier-config 3.0.0
  • @semantic-release/commit-analyzer 8.0.1
  • @semantic-release/git 9.0.1
  • @semantic-release/github 7.2.3
  • @semantic-release/npm 7.1.3
  • @semantic-release/release-notes-generator 9.0.3
  • @types/jest 26.0.24
  • @types/node 13.13.52
  • babel-core 7.0.0-bridge.0
  • babel-jest 25.5.1
  • babel-preset-env 1.7.0
  • babel-preset-react 6.24.1
  • husky 4.3.8
  • jest 25.5.4
  • lint-staged 10.5.4
  • prettier 2.2.1
  • react 16.14.0
  • react-dom 16.14.0
  • react-test-renderer 16.14.0
  • rollup 2.79.1
  • rollup-plugin-babel 4.4.0
  • rollup-plugin-replace 2.2.0
  • rollup-plugin-terser 7.0.2
  • semantic-release 17.4.7
  • react ^16.13.1
  • react-dom ^16.13.1

  • Check this box to trigger a request for Renovate to run again on this repository

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.19.0 to 4.19.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • βœ… coverage/coveralls: First build on greenkeeper/webpack-4.19.1 at 100.0% (Details).
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).
  • βœ… Travis CI - Branch: The build passed.

Release Notes for v4.19.1

Bugfixes

  • Internal requested filename for import() with target: "electron-main" uses correct path separator on windows
    (This fixes a problem with filemappings in vscode)
  • devtool: "source-map" and variants generate SourceMaps when output file is .mjs
  • browser field as object is used when using target: "electron-renderer"
  • Comments near export default are preserved
  • Passing an array as externals value, now works correctly as documented
Commits

The new version differs by 15 commits.

  • b7121c1 4.19.1
  • ab28497 Merge pull request #8043 from RubenVerborgh/externals-object-array
  • 9bda629 remove bad unit test
  • f0271d9 fix ExternalModule and test case
  • 3aef0e5 Allow array as value in externals object.
  • 7b91fa6 Merge pull request #8042 from webpack/bugfix/comments-export-default
  • e08f71c keep/restore comments in export default
  • 2f78aae Merge pull request #8038 from sharang-d/patch-5
  • bb4c2d1 Correctly set the 'browser' value for electron-renderer
  • 5ade574 Merge pull request #7947 from philipwalton/mjs-sourcemap-support
  • 5258471 Merge pull request #8035 from kwonoj/fix-path
  • 2df7b0c fix(nodemaintemplate): resolve async chunk path platform agnostic
  • 17fafd3 Fix lint errors
  • a2cc031 Add tests for default source map extensions
  • 12762ff Add sourcemap support for .mjs output files

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

UnhandledPromiseRejectionWarning: undefined

This code

import ShowAsync from 'react-semantic-render/ShowAsync'

const rejectable = () => {
  return new Promise((_, reject) => {
    reject();
  }) 
}

<ShowAsync 
  when={rejectable()} 
  rejected={() => <div>something went wrong</div>
/>

Leads to this

(node:4792) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 
This error originated either by throwing inside of an 
async function without a catch block, or by rejecting a promise 
which was not handled with .catch(). (rejection id: 1)

An in-range update of eslint-plugin-react is breaking the build 🚨

The devDependency eslint-plugin-react was updated from 7.14.0 to 7.14.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-react is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v7.14.1

Fixed

  • Fix prop-types crash on multiple destructuring (#2319 @golopot)
Commits

The new version differs by 3 commits.

  • 62255af Update CHANGELOG and bump version
  • 655eb01 Merge pull request #2320 from golopot/issue-2319
  • 9639d82 [Fix] prop-types: fix crash on multiple destructuring

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.