New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@dpa-connect/dpa-id-collab

Package Overview
Dependencies
Maintainers
24
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dpa-connect/dpa-id-collab

⚠ this package is under active development.

latest
npmnpm
Version
1.3.3
Version published
Weekly downloads
10
100%
Maintainers
24
Weekly downloads
 
Created
Source

@dpa-connect/dpa-id-collab

⚠ this package is under active development.

Provides shared components for collaboration integrations (e.g. Sidebar, Value Unit Templates).

Installation

You need access to the @dpa-connect organization on npm while we are in closed source.

yarn add @dpa-connect/dpa-id-collab

Usage

GraphQL

This package comes with villus as graphql library. Therefore it needs to be wrapped with the provided DpaIdCollabGraphqlProvider.

Props

DpaIdCollabSidebar

proptypedefaultdesc
folderIdStringundefinedThe uuid of the currently selected folder in the host application.
collabOriginStringundefinedURL for the collaboration interface.
widthNumber400Width of the sidebar.
consumerString""The name of the service which is using the sidebar, e.g. dpa-agenda or dpa-select

DpaIdCollabUnitTemplateEvent

proptypedefaultdesc
startTimeStringundefinedDatetime string for events start time.
titleStringundefinedtitle for the event.
locationObjectundefinedobject containing the region and country for the given event.

DpaIdCollabUnitTemplatePicture

proptypedefaultdesc
thumbnailStringundefinedrequired Base64 encoded thumbnail.
titleStringundefinedtitle for the picture.
subtypeStringundefinedsubtype of the picture (e.g. picture).

DpaIdCollabUnitTemplateText

proptypedefaultdesc
titleStringundefinedtitle for the item.

DpaIdCollabUnitTemplateTopic

proptypedefaultdesc
startTimeStringundefinedDatetime string for topics start time.
titleStringundefinedtitle for the topic.

DpaIdCollabGraphqlProvider

proptypedefaultdesc
endpointStringundefinedURL for the graphql endpoint.
subscriptionsEndpointStringundefinedURL for the graphql subscriptions endpoint.
tokenStringundefinedA valid JWT Token for authentication against the graphql endpoints.

Events

DpaIdCollabSidebar

eventpayloaddesc
@folderChangeObjectTriggered when folder is changed in the selection.
@listChangeObjectTriggered when a new sublist is selected.
@itemClickObjectTriggered when a list item inside the Sidebar is clicked. The payload will be the ID of the item and the type.
@closeArrayTriggered when the close button in the sidebar was clicked.

With a module System (commonjs-node)

DpaIdCollabSidebar

Using Vue single file components and postcss imports

<template>
  <dpa-id-collab-graphql-provider
    :endpoint="<graphql-endpoint-url>"
    :subscriptions-endpoint="<graphql-subscriptions-endpoint-url>"
    :token="<authorization-token>"
  >
    <dpa-id-collab-sidebar
      :folder-id="<yoor_folder_uuid>"
      @folderChange="handleFolderChange"
      @listChange="handleListChange"
      @itemClick="handleItemClick"
      @close="handleClose"
    />
  </dpa-id-collab-graphql-provider>
</template>
<script>
  import { DpaIdCollabGraphqlProvider, DpaIdCollabSidebar } from "@dpa-connect/dpa-id-collab";

  export default {
    components: {
      DpaIdCollabGraphqlProvider
      DpaIdCollabSidebar
    },
    methods: {
      handleFolderChange(activeFolder) {
        console.log(activeFolder);
      },
      handleListChange(activeList) {
        console.log(activeList);
      },
      handleClose() {
        console.log("Close Button has been clicked.");
      },
      handleItemClick({ id, type }) {
        console.log(`List item with ID ${id} and ${type} was clicked!`);
      }
    }
  };
</script>

<style postcss>
  @import "@dpa-connect/dpa-id-collab/lib/dpa-id-collab.css";
</style>

FAQs

Package last updated on 17 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts