{"id":13764740,"url":"https://github.com/adamweeks/spark-widget-custom-menu","last_synced_at":"2025-06-22T23:08:35.313Z","repository":{"id":142773993,"uuid":"117576598","full_name":"adamweeks/spark-widget-custom-menu","owner":"adamweeks","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-26T21:23:57.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T23:35:58.980Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamweeks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-01-15T17:45:50.000Z","updated_at":"2018-01-15T17:46:01.000Z","dependencies_parsed_at":"2024-01-30T07:09:38.497Z","dependency_job_id":null,"html_url":"https://github.com/adamweeks/spark-widget-custom-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adamweeks/spark-widget-custom-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamweeks%2Fspark-widget-custom-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamweeks%2Fspark-widget-custom-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamweeks%2Fspark-widget-custom-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamweeks%2Fspark-widget-custom-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamweeks","download_url":"https://codeload.github.com/adamweeks/spark-widget-custom-menu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamweeks%2Fspark-widget-custom-menu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261380910,"owners_count":23149966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-08-03T16:00:27.786Z","updated_at":"2025-06-22T23:08:30.298Z","avatar_url":"https://github.com/adamweeks.png","language":"JavaScript","funding_links":[],"categories":["Code samples"],"sub_categories":["Web SDK \u0026 Widgets samples"],"readme":"# Creating Custom Activities\n\nThis is a basic example of how to instantiate a [Cisco Spark Space Widget](https://github.com/ciscospark/react-ciscospark/tree/master/packages/node_modules/%40ciscospark/widget-space)\nwith a custom activity menu option.\n\n**Note: This option is currently only available when using the [browser global](https://github.com/ciscospark/react-ciscospark/tree/master/packages/node_modules/%40ciscospark/widget-space#browser-globals) method.\n\n## Initialization Params\n\n```js\nwindow.ciscospark.widget(widgetEl).spaceWidget({\n  accessToken: myAccessToken,\n  customActivityTypes: [\n    {\n      // Menu Item Name\n      displayName: 'Custom',\n      // Internal Name\n      name: 'custom',\n      // Style for menu button\n      buttonClassName: 'custom-activity',\n      // Icon name from react-component-icon\n      iconClassName: 'icon-call_camera_32',\n      // React component to display when selected\n      component: CustomActivity,\n      // Types of spaces to support\n      spaceTypes: ['direct', 'group'],\n      // Type of widget (secondary type coming soon)\n      type: 'ACTIVITY_TYPE_PRIMARY'\n    }\n  ],\n  toPersonEmail: toPersonEmail\n});\n```\n\n## Issues\n\n- `react-component-icon` is bad on npm and requires you to use class name string directly [package](https://github.com/ciscospark/react-ciscospark/tree/master/packages/node_modules/%40ciscospark/react-component-icon)\n- Custom icons/buttons\n- `ACTIVITY_TYPE_PRIMARY` strings aren't exported anywhere\n- Secondary Activities\n  - No way to get button actions (cannot hide once opened)\n  - Could use a wrapper function\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamweeks%2Fspark-widget-custom-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamweeks%2Fspark-widget-custom-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamweeks%2Fspark-widget-custom-menu/lists"}