@procore/labs-emails
TypeScript icon, indicating that this package has built-in type declarations

0.8.1 • Public • Published

Emails Introduction

Emails component integrated with Procore endpoints to support reading and writing emails.

Installation

yarn add @procore/labs-emails

Dependencies

@procore/core-react, @procore/labs-toast-alert and react are listed as external peer dependencies. The package will not bundle the code, and requires the app client to provide it as a dependency. The external peer dep is to assure React Context is consistent in a client's React tree, the child consumers can reference the correct parent provider. If the package uses latest features or bug fixes and a new minimum version of core-react is required, it should be considered a breaking change as the peer dependency version must be met.

Emails depend on CORE I18nProvider and @procore/labs-toast-alert's ToastAlertProvider to work properly.

Usage

import { Emails } from '@procore/labs-emails';
import { I18nProvider } from '@procore/core-react';
import { ToastAlertProvider } from '@procore/labs-toast-alert';

<I18nProvider>
  <ToastAlertProvider>
    <Emails.Provider procoreEnv={...} topic={...}>
      <Emails />
      <Emails.Toolbar />
      <Emails.Count />
    </Emails.Provider>
  <ToastAlertProvider>
<I18nProvider>

Emails.Provider

Emails.Provider holds routing and pre-fetched state used by Emails, Emails.Toolbar and Emails.Count components.

The primary configuration points are procoreEnv describing Procore project and company and topic identifying the communication entity.

Provider's state can be accessed via Emails.Context, but it is unsafe to use it as it may be a subject for breaking change in future versions.

It is recommended to put Emails.Provider on the top of the application tree, with the rest of providers.

Emails

Emails component is responsible for displaying Email List, Email Thread and New Email pages. It is intended to be placed inside DetailPage.Body CORE component. Distribution and file upload strategy can be altered via distributionVariant and directFileUpload props.

Emails.Toolbar

Emails.Toolbar component is responsible for displaying dynamic emails toolbar. It is intended to be placed inside DetailPage.Actions CORE component.

Emails.Count

Emails.Count component is responsible for dynamically displaying the total amount of emails. format prop can be used to alternate the view of a counter.

Readme

Keywords

none

Package Sidebar

Install

npm i @procore/labs-emails

Weekly Downloads

18

Version

0.8.1

License

SEE LICENSE IN LICENSE

Unpacked Size

269 kB

Total Files

42

Last publish

Collaborators

  • squidbeaks
  • swati.jadhav
  • tejeshwar
  • mohitsharma97
  • andreszorrilla-procore
  • magdyyxx
  • charan_procore
  • aly-el-kerdany
  • s_kudryk
  • adarsh.gautam
  • vishal-procore
  • kalyani.gosavi
  • amit.gurav-contractor
  • worldofsatyaki
  • kuldeepsingh4556
  • karina.mendez-contractor
  • bikash.sahoo
  • rowan.ibrahim
  • vinayakaprabhu
  • saurasumprocore
  • conner-procore
  • chaitra-m-15
  • vsobol-c
  • abhishekkumar123
  • jasaswini
  • aleh.haurylenia-contractor
  • kellikearns
  • viktoriia_azarovska
  • fabriciobd
  • youssefamer
  • brockpcor
  • kani-procore
  • antonyayoub
  • ashish.sharma2024
  • glidenor
  • daniel-pierre-procore
  • amitk030
  • mathenes_procore
  • vinoth.kuppusamy
  • mariia.solodovnik
  • sflang-procore
  • cassianomatos-procore
  • alan.facchini-contractor
  • zayter
  • bohdan-horai-procore
  • nigeld-procore
  • samad.virani
  • fernandocamilotti
  • connie-feng-procore
  • roger-procore
  • ganesh.raghupathy
  • yzhou2024
  • alyelashram_procore
  • melch-procore
  • peterknif
  • moaz-ashraf
  • attachi
  • a.elbadawei
  • hyogman
  • dmitri_wm
  • stephanie.brereton
  • procore-oss-user
  • stevenkang3
  • max.helmetag
  • codyrobertsprocore
  • miguel.garcia-procore
  • atoaima
  • mustafa-abdelrahman
  • elewando-procore
  • ahmed.ghorab
  • lnspatz914
  • richard.bunn
  • omar.wagdy
  • mona.khairbek
  • mbartlett413
  • cody_schindler_procore
  • yoasyo25
  • ritchlee
  • andersontr15
  • steven.hinkle
  • jamie-dugan-procore
  • hgouhierprocore
  • denzylbalram
  • sarah.freitas
  • alan.bresani
  • amyprocore
  • yoyis3000
  • elijah.procore
  • mike-arndt-procore
  • jnhoang1
  • pam-whisenhunt
  • shradha.khard
  • david-christensen-procore
  • javio-procore
  • chance.eakin.procore
  • gideon-procore
  • ihor.diachenko_procore
  • justinmwatts
  • tedyang
  • jyang-procore
  • pwhisenhunt-procore
  • fairchild
  • rodayna.ehab
  • neil1023
  • scottstern
  • brian.smith1
  • g2mitchell
  • dlameter-procore
  • kylepietz
  • abhijit-procore
  • lhuang325
  • jake-pitkin
  • erikthoreson
  • simona.iancu
  • decha-sanson
  • aberkowitz
  • asamay
  • mustafa-u-abdelrahman
  • rajatmenhdiratta
  • jacksonleach-procore
  • pmfrawley
  • phunguyen-pcor
  • tatsiana.clifton
  • deiab
  • srichaitanya.peddinti
  • kenny.foisy
  • matheusprocore
  • jgreene_procore
  • hectorthiele
  • etokarev
  • daniel.ferreira-contractor
  • dmccraw-procore
  • cyrille.bai
  • greg.sparks
  • fabiomelo513
  • phil.custer
  • bbreyel921
  • amir-iskander
  • neil.mckeeman
  • nickprocore
  • lzhou888
  • davidshure
  • stevenliprocore
  • ramysaid2
  • refaiepcn
  • jgentes
  • faraz.hanif
  • mostafaeltazy
  • agamaleldin
  • andrew.isaac
  • saranahal2
  • rodrigo.dejuana
  • kellen.stewart
  • bill-wagner
  • ezrasimeloff
  • jeffgiaquinto
  • gturkadze
  • sean.spearman.procore
  • kylemartinez-procore
  • roobo-romeski
  • andres-mendez-procore
  • gaurav.sharma.procore
  • tracy.otto
  • sarah.heredia
  • victorbendeck-pc
  • cbathgate
  • davidkangpro
  • kyle.liu
  • amin.jaipuri
  • grafffffff
  • mishaelowoyemi
  • evan.cerwonka.procore
  • ilya.dryha-contractor
  • varomir
  • yogevfine1
  • timofeee
  • matt.harris0223
  • winson.chu
  • andersonbispoprocore
  • scorgiat-procore
  • ladavarga
  • procore_halzy
  • enyaga
  • willpankonien
  • sateesh-kadiyala-procore
  • chris.berber
  • txin1
  • epalinprocore
  • mehrdad-panahandeh
  • tyler.wasden.procore
  • jeremy.lund
  • dineshkumar.jayak
  • ryanfuentesprocore
  • stajics
  • brocktillotsonprocore
  • kyle.williams
  • dtorres-procore
  • noor.ali
  • ari-procore
  • alanprocore
  • jl4ever
  • james.lawson
  • ajaykumar-procore
  • dennis.heckman
  • lalovar-procore
  • james.cleary
  • chadryder
  • devin.cunningham.procore
  • abhijit.patwardhan
  • lydiahara
  • sherylnapigkit
  • changprocore
  • apcarroll_procore
  • andy.mayer
  • bob.laskowski
  • vinaya-procore
  • kahliholmes
  • andrew.wheeler
  • leandro-proc
  • yadhu.prakash
  • jason-kaye
  • jesse.olsen
  • patrick.lardin
  • brad.urani
  • allenanle.procore
  • brookyboy009
  • uddhavjoglekar
  • dancingshell
  • rysmithprocore
  • robbiegprocore
  • jadamsss
  • jeremy.bouzigard
  • timdoherty
  • b.bookout
  • jalyng
  • htael
  • dev-account-admin
  • sseanwang
  • bhargavrnd
  • farismmk
  • dannyporrello
  • danny.ou
  • messanjah
  • eyvettesou
  • jgee67
  • cagmz
  • mariah_delaney
  • lukenispel
  • kimhin267
  • juliana.hernandez
  • judy-lu-pc
  • procore-it-support
  • andrewburke-pc
  • jkleintech
  • rachel.arkebauer
  • procore-npm-bot
  • james.dabbs-procore
  • laurenbrandsteinprocore
  • scottbieser-procore
  • zach.mckenzie.procore
  • shayonj_procore
  • heplayskeys
  • mike.south
  • thomasoboyle
  • dischorde
  • derek-carter-procore
  • dlgasser
  • cfprocore
  • evan.waits
  • jeremy-marcus
  • jmejia-fsl
  • ersgonzalo
  • stephan-procore
  • aleclarsenprocore
  • yihai.zweifel
  • jay-rajan
  • jacky-lei
  • peter.jin