{"id":24988548,"url":"https://github.com/lit-protocol/lit-access-control-conditions-modal","last_synced_at":"2026-03-05T14:31:21.226Z","repository":{"id":45174090,"uuid":"399626500","full_name":"LIT-Protocol/lit-access-control-conditions-modal","owner":"LIT-Protocol","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-11T18:01:52.000Z","size":3515,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T00:32:43.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LIT-Protocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-24T23:01:32.000Z","updated_at":"2022-04-03T23:34:25.000Z","dependencies_parsed_at":"2022-09-06T00:20:45.354Z","dependency_job_id":null,"html_url":"https://github.com/LIT-Protocol/lit-access-control-conditions-modal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LIT-Protocol/lit-access-control-conditions-modal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-access-control-conditions-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-access-control-conditions-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-access-control-conditions-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-access-control-conditions-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIT-Protocol","download_url":"https://codeload.github.com/LIT-Protocol/lit-access-control-conditions-modal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Flit-access-control-conditions-modal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30130329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-02-04T12:04:39.500Z","updated_at":"2026-03-05T14:31:21.205Z","avatar_url":"https://github.com/LIT-Protocol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A new version of the Share Modal with additional functionality is now available.\n- [Lit Share Modal v2 on GitHub](https://github.com/LIT-Protocol/lit-share-modal-v2)\n- [Lit Share Modal v2 on NPM](https://www.npmjs.com/package/lit-share-modal)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n# Lit Access Control Conditions Modal\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Props](#props)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\nThis React package provides a modal for the use with Lit Protocol that lets the user choose the access control conditions under which to share content or data.\n\n![Screenshot](https://github.com/LIT-Protocol/lit-access-control-conditions-modal/raw/main/assets/screenshot.png)\n\n# Example\n\nYou can find an example implementation of this modal in the [lit-access-control-conditions-modal-example](https://github.com/LIT-Protocol/lit-access-control-conditions-modal-example) repository.\n\n# Installation\n\n`yarn add lit-access-control-conditions-modal`\n\nNote: This project requires a few peer dependencies so make sure you install them in your main project:\n\n- react\n- lit-js-sdk\n\n# Usage\n\n`import { ShareModal } from 'lit-access-control-conditions-modal'`\n\n```\n\u003cShareModal\n          onClose={() =\u003e closeShareModal()}\n          sharingItems={selectedFiles}\n          onAccessControlConditionsSelected={onAccessControlConditionsSelected}\n          getSharingLink={getSharingLink}\n          showStep={shareModalStep}\n        /\u003e\n```\n\n# Props\n\n- onClose: Pass a function. This will be called when the user clicks the \"X\" button on the modal\n- sharingItems: An array of items being shared. Each item should have a \"name\" property.\n- onAccessControlConditionsSelected: Pass a function. This will be called when the user has selected their access control requirements.\n- getSharingLink: Pass a fuction. This will be used when the user clicks the \"Copy share link\" button. This function should return a string that is the url to be shared. This function will be called with the sharingItems[0] as a parameter. It is only used when sharingItems.length == 1\n- showStep: Optional. Pass a string. If you'd like to force the modal into a specific step, you can use this function. It will immediately show this step when opened. The options you can choose from are the keys in src/ShareModal.jsx in the ModalComponents variable. I use this because when a user picks their access control conditions, and onAccessControlConditionsSelected is called, I close this modal, and open a \"file upload progress\" modal. When the upload is complete, I show this modal again, but I set showStep to \"accessCreated\" so the user sees the page that lets them copy the share link.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-access-control-conditions-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flit-protocol%2Flit-access-control-conditions-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Flit-access-control-conditions-modal/lists"}