@nylas/react 1.1.0-canary.4 → 1.1.0-canary.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/elements/index.d.ts +1 -0
- package/dist/{elements-dc5b338e-fb5dbfb5.js → elements-dc5b338e-6078b875.js} +1 -1
- package/dist/{elements-dc5b338e-81a0319c.cjs → elements-dc5b338e-96e197ca.cjs} +1 -1
- package/dist/focus-visible-e8093c16-018ffd63.cjs +1 -0
- package/dist/{focus-visible-e8093c16-28fc08a0.js → focus-visible-e8093c16-ab01d60a.js} +5 -3
- package/dist/index-1fd24ccf.js +3582 -0
- package/dist/index-823fdc6f.cjs +36 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +53 -52
- package/package.json +3 -3
- package/dist/_commonjsHelpers-57e89916-4a3ae7d8.cjs +0 -1
- package/dist/_commonjsHelpers-57e89916-af061c86.js +0 -19
- package/dist/add-circle-icon_22.entry-077661c3.cjs +0 -1
- package/dist/add-circle-icon_22.entry-f699d91e.js +0 -1733
- package/dist/archive-icon_7.entry-40b7ef3b.js +0 -75
- package/dist/archive-icon_7.entry-e8630de9.cjs +0 -1
- package/dist/arrow-icon.entry-58246303.js +0 -15
- package/dist/arrow-icon.entry-ffa53114.cjs +0 -1
- package/dist/bold-icon_3.entry-106a4e77.cjs +0 -1
- package/dist/bold-icon_3.entry-f5f1643d.js +0 -35
- package/dist/calendar-cancel-icon.entry-6ae0fd0f.cjs +0 -1
- package/dist/calendar-cancel-icon.entry-75b15b19.js +0 -15
- package/dist/calendar-check-icon_2.entry-57339318.js +0 -25
- package/dist/calendar-check-icon_2.entry-c57f83f3.cjs +0 -1
- package/dist/calendar-icon.entry-2069fec6.js +0 -15
- package/dist/calendar-icon.entry-492c2630.cjs +0 -1
- package/dist/chevron-icon_3.entry-83df50c3.js +0 -117
- package/dist/chevron-icon_3.entry-878ff6df.cjs +0 -1
- package/dist/close-icon.entry-480c199d.js +0 -15
- package/dist/close-icon.entry-8015ca05.cjs +0 -1
- package/dist/constants-6ee60d6d-4cd16450.js +0 -3740
- package/dist/constants-6ee60d6d-6c0540db.cjs +0 -15
- package/dist/document-refresh-icon.entry-06f7972b.cjs +0 -1
- package/dist/document-refresh-icon.entry-09870b14.js +0 -15
- package/dist/focus-visible-e8093c16-f380b705.cjs +0 -1
- package/dist/forward-icon_6.entry-8bb201eb.js +0 -955
- package/dist/forward-icon_6.entry-eeecf2a2.cjs +0 -3
- package/dist/globe-icon.entry-a690028c.cjs +0 -1
- package/dist/globe-icon.entry-d515cbfa.js +0 -15
- package/dist/google-logo-icon_3.entry-2164cec1.js +0 -258
- package/dist/google-logo-icon_3.entry-b2b85284.cjs +0 -1
- package/dist/index-2b8437d6.cjs +0 -30
- package/dist/index-db0c5017.js +0 -1824
- package/dist/index.es-2578c6a5-098d48d0.cjs +0 -7
- package/dist/index.es-2578c6a5-71441142.js +0 -3133
- package/dist/info-icon_2.entry-300ef196.js +0 -34
- package/dist/info-icon_2.entry-e286aaa5.cjs +0 -1
- package/dist/loading-icon.entry-6d8adaa4.js +0 -15
- package/dist/loading-icon.entry-dc40e97d.cjs +0 -1
- package/dist/mailbox-store-bb21512c-649a374c.js +0 -381
- package/dist/mailbox-store-bb21512c-fc3c8c03.cjs +0 -1
- package/dist/nylas-additional-participants.entry-4afba192.js +0 -83
- package/dist/nylas-additional-participants.entry-db05e510.cjs +0 -1
- package/dist/nylas-booked-event-card_10.entry-1ebbe0c0.js +0 -784
- package/dist/nylas-booked-event-card_10.entry-6b6fdfae.cjs +0 -1
- package/dist/nylas-form-card.entry-70b20571.cjs +0 -1
- package/dist/nylas-form-card.entry-7bc23695.js +0 -56
- package/dist/nylas-if-state.entry-3829cb3d.js +0 -96
- package/dist/nylas-if-state.entry-ebeffe22.cjs +0 -1
- package/dist/nylas-list-folders.entry-191688f2.cjs +0 -1
- package/dist/nylas-list-folders.entry-7347e78d.js +0 -122
- package/dist/nylas-list-threads.entry-432a8d8c.js +0 -72
- package/dist/nylas-list-threads.entry-44658578.cjs +0 -1
- package/dist/nylas-login.entry-5311f0a7.js +0 -75
- package/dist/nylas-login.entry-db17a3d2.cjs +0 -1
- package/dist/nylas-mailbox-pagination.entry-20150fb2.js +0 -103
- package/dist/nylas-mailbox-pagination.entry-9d3f5baa.cjs +0 -1
- package/dist/nylas-mailbox-toolbar-button.entry-6c0f7299.cjs +0 -1
- package/dist/nylas-mailbox-toolbar-button.entry-eec426d5.js +0 -84
- package/dist/nylas-mailbox.entry-b6c758b9.js +0 -136
- package/dist/nylas-mailbox.entry-d41401e0.cjs +0 -1
- package/dist/nylas-provider.entry-271cafd2.js +0 -147
- package/dist/nylas-provider.entry-6173b721.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-0c75d39e.cjs +0 -7
- package/dist/nylas-scheduler-editor.entry-b51ad4b1.js +0 -2192
- package/dist/nylas-scheduling.entry-081c8825.cjs +0 -1
- package/dist/nylas-scheduling.entry-0a8d1da8.js +0 -237
- package/dist/nylas-threads-refresh.entry-72dd854e.js +0 -76
- package/dist/nylas-threads-refresh.entry-c3509e6a.cjs +0 -1
- package/dist/nylas-threads-search.entry-16a59ef6.cjs +0 -1
- package/dist/nylas-threads-search.entry-4750a187.js +0 -71
- package/dist/nylas-view-thread.entry-27df3349.cjs +0 -1
- package/dist/nylas-view-thread.entry-c6adce43.js +0 -205
- package/dist/people-icon.entry-342be0c8.js +0 -15
- package/dist/people-icon.entry-35252ca9.cjs +0 -1
- package/dist/play-icon_2.entry-0787352c.js +0 -25
- package/dist/play-icon_2.entry-f83fa92a.cjs +0 -1
- package/dist/refresh-icon.entry-8fbabfe7.js +0 -15
- package/dist/refresh-icon.entry-ddbc5446.cjs +0 -1
- package/dist/register-component-dc659dc3-e43e8fae.js +0 -105
- package/dist/register-component-dc659dc3-fb85ee68.cjs +0 -1
- package/dist/scheduler-config-store-51ee4f42-66f8c2ac.js +0 -14
- package/dist/scheduler-config-store-51ee4f42-d7d9c25d.cjs +0 -1
- package/dist/scheduler-store-72116723-ce4c7a69.cjs +0 -1
- package/dist/scheduler-store-72116723-e5f87122.js +0 -294
- package/dist/time-period-selector.entry-333942a8.js +0 -78
- package/dist/time-period-selector.entry-78d5b3c2.cjs +0 -1
- package/dist/translate-icon.entry-87a62108.js +0 -15
- package/dist/translate-icon.entry-cb19864c.cjs +0 -1
- package/dist/utils-c00bdc3c-89ab163d.js +0 -2111
- package/dist/utils-c00bdc3c-94b9c3b6.cjs +0 -8
- package/dist/warning-icon.entry-50755d91.cjs +0 -1
- package/dist/warning-icon.entry-7a72e24a.js +0 -15
package/dist/elements/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const NylasEventTitle: import("react").ForwardRefExoticComponent<
|
|
|
48
48
|
export declare const NylasFormCard: import("react").ForwardRefExoticComponent<JSX.NylasFormCard & Omit<import("react").HTMLAttributes<HTMLNylasFormCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasFormCardElement>>;
|
|
49
49
|
export declare const NylasIfState: import("react").ForwardRefExoticComponent<JSX.NylasIfState & Omit<import("react").HTMLAttributes<HTMLNylasIfStateElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasIfStateElement>>;
|
|
50
50
|
export declare const NylasLimitFutureBookings: import("react").ForwardRefExoticComponent<JSX.NylasLimitFutureBookings & Omit<import("react").HTMLAttributes<HTMLNylasLimitFutureBookingsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasLimitFutureBookingsElement>>;
|
|
51
|
+
export declare const NylasListConfigurations: import("react").ForwardRefExoticComponent<JSX.NylasListConfigurations & Omit<import("react").HTMLAttributes<HTMLNylasListConfigurationsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasListConfigurationsElement>>;
|
|
51
52
|
export declare const NylasListFolders: import("react").ForwardRefExoticComponent<JSX.NylasListFolders & Omit<import("react").HTMLAttributes<HTMLNylasListFoldersElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasListFoldersElement>>;
|
|
52
53
|
export declare const NylasListThreads: import("react").ForwardRefExoticComponent<JSX.NylasListThreads & Omit<import("react").HTMLAttributes<HTMLNylasListThreadsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasListThreadsElement>>;
|
|
53
54
|
export declare const NylasLocaleSwitch: import("react").ForwardRefExoticComponent<JSX.NylasLocaleSwitch & Omit<import("react").HTMLAttributes<HTMLNylasLocaleSwitchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasLocaleSwitchElement>>;
|
|
@@ -1067,7 +1067,7 @@ let ea = !0;
|
|
|
1067
1067
|
try {
|
|
1068
1068
|
document.body.querySelector(":focus-visible");
|
|
1069
1069
|
} catch {
|
|
1070
|
-
ea = !1, import("./focus-visible-e8093c16-
|
|
1070
|
+
ea = !1, import("./focus-visible-e8093c16-ab01d60a.js").then(function(t) {
|
|
1071
1071
|
return t.f;
|
|
1072
1072
|
});
|
|
1073
1073
|
}
|
|
@@ -169,7 +169,7 @@ var(--spectrum-accordion-item-header-line-height)
|
|
|
169
169
|
@slotchange=${this.handleSlotchange}
|
|
170
170
|
@sp-accordion-item-toggle=${this.onToggle}
|
|
171
171
|
></slot>
|
|
172
|
-
`}}zs([i({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Bo.prototype,"allowMultiple",2),zs([i({type:String,reflect:!0})],Bo.prototype,"density",2),zs([oo()],Bo.prototype,"defaultNodes",2);function v(s,t){customElements.define(s,t)}v("sp-accordion",Bo);let ea=!0;try{document.body.querySelector(":focus-visible")}catch{ea=!1,Promise.resolve().then(()=>require("./focus-visible-e8093c16-
|
|
172
|
+
`}}zs([i({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Bo.prototype,"allowMultiple",2),zs([i({type:String,reflect:!0})],Bo.prototype,"density",2),zs([oo()],Bo.prototype,"defaultNodes",2);function v(s,t){customElements.define(s,t)}v("sp-accordion",Bo);let ea=!0;try{document.body.querySelector(":focus-visible")}catch{ea=!1,Promise.resolve().then(()=>require("./focus-visible-e8093c16-018ffd63.cjs")).then(function(t){return t.f})}const Qt=s=>{var t;const e=a=>{if(a.shadowRoot==null||a.hasAttribute("data-js-focus-visible"))return()=>{};if(self.applyFocusVisiblePolyfill)self.applyFocusVisiblePolyfill(a.shadowRoot),a.manageAutoFocus&&a.manageAutoFocus();else{const c=()=>{self.applyFocusVisiblePolyfill&&a.shadowRoot&&self.applyFocusVisiblePolyfill(a.shadowRoot),a.manageAutoFocus&&a.manageAutoFocus()};return self.addEventListener("focus-visible-polyfill-ready",c,{once:!0}),()=>{self.removeEventListener("focus-visible-polyfill-ready",c)}}return()=>{}},r=Symbol("endPolyfillCoordination");class o extends s{constructor(){super(...arguments),this[t]=null}connectedCallback(){super.connectedCallback&&super.connectedCallback(),ea||requestAnimationFrame(()=>{this[r]==null&&(this[r]=e(this))})}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),ea||requestAnimationFrame(()=>{this[r]!=null&&(this[r](),this[r]=null)})}}return t=r,o};var Dl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,$s=(s,t,e,r)=>{for(var o=r>1?void 0:r?Bl(t,e):t,a=s.length-1,c;a>=0;a--)(c=s[a])&&(o=(r?c(t,e,o):c(o))||o);return r&&o&&Dl(t,e,o),o};function yc(){return new Promise(s=>requestAnimationFrame(()=>s()))}class L extends Qt($){constructor(){super(...arguments),this.disabled=!1,this.autofocus=!1,this._tabIndex=0,this.manipulatingTabindex=!1,this._recentlyConnected=!1}get tabIndex(){if(this.focusElement===this){const e=this.hasAttribute("tabindex")?Number(this.getAttribute("tabindex")):NaN;return isNaN(e)?-1:e}const t=parseFloat(this.hasAttribute("tabindex")&&this.getAttribute("tabindex")||"0");return this.disabled||t<0?-1:this.focusElement?this.focusElement.tabIndex:t}set tabIndex(t){if(this.manipulatingTabindex){this.manipulatingTabindex=!1;return}if(this.focusElement===this){if(t!==this._tabIndex){this._tabIndex=t;const e=this.disabled?"-1":""+t;this.manipulatingTabindex=!0,this.setAttribute("tabindex",e)}return}if(t===-1?this.addEventListener("pointerdown",this.onPointerdownManagementOfTabIndex):(this.manipulatingTabindex=!0,this.removeEventListener("pointerdown",this.onPointerdownManagementOfTabIndex)),t===-1||this.disabled){this.setAttribute("tabindex","-1"),this.removeAttribute("focusable"),t!==-1&&this.manageFocusElementTabindex(t);return}this.setAttribute("focusable",""),this.hasAttribute("tabindex")?this.removeAttribute("tabindex"):this.manipulatingTabindex=!1,this.manageFocusElementTabindex(t)}onPointerdownManagementOfTabIndex(){this.tabIndex===-1&&(this.tabIndex=0,this.focus({preventScroll:!0}))}async manageFocusElementTabindex(t){this.focusElement||await this.updateComplete,t===null?this.focusElement.removeAttribute("tabindex"):this.focusElement.tabIndex=t}get focusElement(){throw new Error("Must implement focusElement getter!")}focus(t){this.disabled||!this.focusElement||(this.focusElement!==this?this.focusElement.focus(t):HTMLElement.prototype.focus.apply(this,[t]))}blur(){const t=this.focusElement||this;t!==this?t.blur():HTMLElement.prototype.blur.apply(this)}click(){if(this.disabled)return;const t=this.focusElement||this;t!==this?t.click():HTMLElement.prototype.click.apply(this)}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent("keydown",{code:"Tab"})),this.focusElement.focus())}firstUpdated(t){super.firstUpdated(t),(!this.hasAttribute("tabindex")||this.getAttribute("tabindex")!=="-1")&&this.setAttribute("focusable","")}update(t){t.has("disabled")&&this.handleDisabledChanged(this.disabled,t.get("disabled")),super.update(t)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.blur()}async handleDisabledChanged(t,e){const r=()=>this.focusElement!==this&&typeof this.focusElement.disabled<"u";t?(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),await this.updateComplete,r()?this.focusElement.disabled=!0:this.setAttribute("aria-disabled","true")):e&&(this.manipulatingTabindex=!0,this.focusElement===this?this.setAttribute("tabindex",""+this._tabIndex):this.removeAttribute("tabindex"),await this.updateComplete,r()?this.focusElement.disabled=!1:this.removeAttribute("aria-disabled"))}async getUpdateComplete(){const t=await super.getUpdateComplete();return this._recentlyConnected&&(this._recentlyConnected=!1,await yc(),await yc()),t}connectedCallback(){super.connectedCallback(),this._recentlyConnected=!0,this.updateComplete.then(()=>{this.manageAutoFocus()})}}$s([i({type:Boolean,reflect:!0})],L.prototype,"disabled",2),$s([i({type:Boolean})],L.prototype,"autofocus",2),$s([i({type:Number})],L.prototype,"tabIndex",1);/**
|
|
173
173
|
* @license
|
|
174
174
|
* Copyright 2018 Google LLC
|
|
175
175
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./index-823fdc6f.cjs");require("react");require("react-dom");var f={exports:{}};(function(V,A){(function(r,i){i()})(T.commonjsGlobal,function(){function r(n){var o=!0,u=!1,a=null,v={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){return!!(e&&e!==document&&e.nodeName!=="HTML"&&e.nodeName!=="BODY"&&"classList"in e&&"contains"in e.classList)}function b(e){var g=e.type,l=e.tagName;return!!(l==="INPUT"&&v[g]&&!e.readOnly||l==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function c(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function E(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function L(e){e.metaKey||e.altKey||e.ctrlKey||(s(n.activeElement)&&c(n.activeElement),o=!0)}function d(e){o=!1}function y(e){s(e.target)&&(o||b(e.target))&&c(e.target)}function p(e){s(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(u=!0,window.clearTimeout(a),a=window.setTimeout(function(){u=!1},100),E(e.target))}function w(e){document.visibilityState==="hidden"&&(u&&(o=!0),m())}function m(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function h(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function t(e){e.target.nodeName&&e.target.nodeName.toLowerCase()==="html"||(o=!1,h())}document.addEventListener("keydown",L,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("pointerdown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("visibilitychange",w,!0),m(),n.addEventListener("focus",y,!0),n.addEventListener("blur",p,!0),n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n.host?n.host.setAttribute("data-js-focus-visible",""):n.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window<"u"&&typeof document<"u"){window.applyFocusVisiblePolyfill=r;var i;try{i=new CustomEvent("focus-visible-polyfill-ready")}catch{i=document.createEvent("CustomEvent"),i.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(i)}typeof document<"u"&&r(document)})})();const N=f.exports,O=Object.freeze(Object.assign(Object.create(null),f.exports,{default:N}));exports.f=O;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { c as T } from "./
|
|
1
|
+
import { c as T } from "./index-1fd24ccf.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
2
4
|
var f = { exports: {} };
|
|
3
5
|
(function(V, A) {
|
|
4
6
|
(function(r, i) {
|
|
@@ -74,9 +76,9 @@ var f = { exports: {} };
|
|
|
74
76
|
typeof document < "u" && r(document);
|
|
75
77
|
});
|
|
76
78
|
})();
|
|
77
|
-
const N = f.exports,
|
|
79
|
+
const N = f.exports, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), f.exports, {
|
|
78
80
|
default: N
|
|
79
81
|
}));
|
|
80
82
|
export {
|
|
81
|
-
|
|
83
|
+
M as f
|
|
82
84
|
};
|