{"id":19009136,"url":"https://github.com/gamtiq/tempshow","last_synced_at":"2026-05-01T06:31:26.478Z","repository":{"id":51728525,"uuid":"207155971","full_name":"gamtiq/tempshow","owner":"gamtiq","description":"React component to temporary show some components/elements","archived":false,"fork":false,"pushed_at":"2021-05-25T15:11:54.000Z","size":410,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-01T09:36:44.082Z","etag":null,"topics":["change","component","content","element","elements","hidden","hide","react","show","temporary","visibility","visible"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gamtiq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-08T18:32:40.000Z","updated_at":"2021-05-25T20:43:55.000Z","dependencies_parsed_at":"2022-08-03T00:15:25.306Z","dependency_job_id":null,"html_url":"https://github.com/gamtiq/tempshow","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gamtiq/tempshow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamtiq%2Ftempshow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamtiq%2Ftempshow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamtiq%2Ftempshow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamtiq%2Ftempshow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gamtiq","download_url":"https://codeload.github.com/gamtiq/tempshow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamtiq%2Ftempshow/sbom","scorecard":{"id":418050,"data":{"date":"2025-08-11","repo":{"name":"github.com/gamtiq/tempshow","commit":"0a2ca90a2784f68e51158ff844a18bef92160b5a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"37 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T00:25:59.819Z","repository_id":51728525,"created_at":"2025-08-19T00:25:59.819Z","updated_at":"2025-08-19T00:25:59.819Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["change","component","content","element","elements","hidden","hide","react","show","temporary","visibility","visible"],"created_at":"2024-11-08T19:06:45.376Z","updated_at":"2026-05-01T06:31:26.456Z","avatar_url":"https://github.com/gamtiq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TempShow \u003ca name=\"start\"\u003e\u003c/a\u003e\n\nReact component to temporary show some components/elements.\n\n[![NPM version](https://badge.fury.io/js/tempshow.png)](http://badge.fury.io/js/tempshow)\n\n### Features\n\n* Control which events should trigger showing or hiding.\n* Set timeout for automatic hiding (`autoHide` property).\n* Specify a function to be called when component is shown (`onShow` property) or hidden (`onHide` property).\n* Control component's visibility by `visible` property.\n* Use different CSS classes and styles when component is visible and hidden.\n\n## Table of contents\n\n* [Installation](#install)\n* [Usage](#usage)\n* [API](#api)\n* [Contributing](#contributing)\n* [License](#license)\n\n## Installation \u003ca name=\"install\"\u003e\u003c/a\u003e [\u0026#x2191;](#start)\n\n    npm install tempshow --save\n\n## Usage \u003ca name=\"usage\"\u003e\u003c/a\u003e [\u0026#x2191;](#start)\n\n```js\nimport TempShow from 'tempshow';\n\n// ...\n\nexport class Foo extends React.Component {\n    constructor(props) {\n        super(props);\n\n        this.handleVisibleChange = this.handleVisibleChange.bind(this);\n    }\n\n    // ...\n\n    /**\n     * Handle component's visibility change.\n     *\n     * @param {boolean} visible\n     *      `true`, when component became visible, `false`, when component became invisible.\n     */\n    handleVisibleChange(visible) {\n        // ...\n    }\n\n    render() {\n        // ...\n        return (\n            \u003cTempShow\n                className=\"overlay\"\n                showClassName=\"opaque\"\n                hideClassName=\"transparent\"\n                autoHide={10}\n                onShow={this.handleVisibleChange}\n                onHide={this.handleVisibleChange}\n                visible={boolValueToControlVisibility}\n                showOnMouseOver={boolValueToControlShowOnMouseOver}\n                hideOnMouseLeave={true}\n                toggleVisibleOnClick={false}\n            \u003e\n                \u003cdiv className=\"content\"\u003e\n                    Some content here.\n                \u003c/div\u003e\n            \u003c/TempShow\u003e\n        );\n    }\n}\n```\n\n## API \u003ca name=\"api\"\u003e\u003c/a\u003e [\u0026#x2191;](#start)\n\n### Props\n\n|  Prop  |  Type  |  Default  |  Description  |\n|  ----  |  ----  |  -------  |  -----------  |\n|  `autoHide`  |  number  |  `5`  |  Number of seconds after which component should be hidden automatically.  When zero or negative value is specified auto hiding is not applied.  |\n|  `children`  |  React node  |    |  Component's children.  |\n|  `className`  |  string  |    |  A CSS class that should be set for component's root element.  |\n|  `component`  |  React elementType  |  `div`  |  Component's root element type.  |\n|  `componentProps`  |  object  |    |  Any properties (except for `className` and `style`) that should be passed to component.  |\n|  `componentRef`  |  function, object  |    |  An optional ref callback to get reference to the root (top-most) element of the rendered component.  Just like other refs, this will provide `null` when it unmounts.  |\n|  `hideClassName`  |  string  |    |  An additional CSS class that should be set for component's root element when component is hidden.  |\n|  `hideForClick`  |  function  |  [hideForClick](#hideForClick)  |  Function that will be used to determine whether component should be hidden on a mouse click when value of `hideOnAnyClick` prop is `false`.  The following arguments will be passed into function: event data (`SyntheticEvent`) and component's object.  If function returns a true value, component will be hidden.  |\n|  `hideOnAnyClick`  |  boolean  |  `false`  |  Whether component should be hidden on any mouse click.  |\n|  `hideOnBlur`  |  boolean or function  |  `false`  |  Whether component should be hidden on `blur` event.  A function can be specified to determine whether component should be hidden.  The following arguments will be passed into function: event data (`SyntheticEvent`) and component's object.  If the function returns a true value, component will be hidden.  |\n|  `hideOnMouseLeave`  |  boolean  |  `false`  |  Whether component should be hidden when mouse leaves area of component's root DOM element.  |\n|  `hideStyle`  |  object  |    |  Styles that should be assigned for hidden component.  |\n|  `postponeAutoHide`  |  boolean  |  `true`  |  Whether component's autohiding should be postponed when component props are changed.  |\n|  `showClassName`  |  string  |    |  An additional CSS class that should be set for component's root element when component is visible.  |\n|  `showOnFocus`  |  boolean or function  |  `true`  |  Whether component should be shown on `focus` event.  A function can be specified to determine whether component should be shown.  The following arguments will be passed into function: event data (`SyntheticEvent`) and component's object.  If the function returns a true value, component will be shown.  |\n|  `showOnMouseOver`  |  boolean  |  `true`  |  Should component be shown on mouse over?  |\n|  `showStyle`  |  object  |    |  Styles that should be assigned for visible component.  |\n|  `toggleVisibleOnClick`  |  boolean  |  `true`  |  Whether component visibility should be toggled on a mouse click.  |\n|  `visible`  |  boolean  |  `false`  |  Should component be visible?  Can be used to explicitly control component's visibility.  |\n|  `onHide`  |  function  |    |  Function that should be called on component hidding.  |\n|  `onShow`  |  function  |    |  Function that should be called on component show.  |\n\n\n### Methods\n\n#### TempShow.hideForClick(eventData: SyntheticEvent): boolean \u003ca name=\"hideForClick\"\u003e\u003c/a\u003e\n\nDefault function that is used to determine whether component should be hidden on a mouse click.\n\nReturn `true` when component's root DOM element is clicked.\n\n## Contributing \u003ca name=\"contributing\"\u003e\u003c/a\u003e [\u0026#x2191;](#start)\nIn lieu of a formal styleguide, take care to maintain the existing coding style.\nAdd tests for any new functionality.\n\n## License \u003ca name=\"license\"\u003e\u003c/a\u003e [\u0026#x2191;](#start)\nCopyright (c) 2019-2020 Denis Sikuler  \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamtiq%2Ftempshow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamtiq%2Ftempshow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamtiq%2Ftempshow/lists"}