@swc-react/overlay 1.6.0 → 1.7.0

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/index.dev.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Overlay as SpOverlay } from '@spectrum-web-components/overlay';\nimport { OverlayTrigger as SpOverlayTrigger } from '@spectrum-web-components/overlay';\n\nimport '@spectrum-web-components/overlay/sp-overlay.js';\nimport '@spectrum-web-components/overlay/overlay-trigger.js';\n\nexport const Overlay = createComponent({\n displayName: 'Overlay',\n elementClass: SpOverlay,\n react: React,\n tagName: 'sp-overlay',\n events: {\n spOpened: 'sp-opened' as EventName<Event>, // announces that an overlay has completed any entry animations\n spClosed: 'sp-closed' as EventName<Event>, // announce that an overlay has compelted any exit animations\n slottableRequest: 'slottable-request' as EventName<Event>, // requests to add or remove slottable content\n },\n});\nexport const OverlayTrigger = createComponent({\n displayName: 'OverlayTrigger',\n elementClass: SpOverlayTrigger,\n react: React,\n tagName: 'overlay-trigger',\n events: {\n spOpened: 'sp-opened' as EventName<Event>, // Announces that the overlay has been opened\n spClosed: 'sp-closed' as EventName<Event>, // Announces that the overlay has been closed\n },\n});\n\nexport type OverlayType = EventTarget & SpOverlay;\nexport type OverlayTriggerType = EventTarget & SpOverlayTrigger;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,WAAW,iBAAiB;AACrC,SAAS,kBAAkB,wBAAwB;AAEnD,OAAO;AACP,OAAO;AAEA,aAAM,UAAU,gBAAgB;AAAA,EACnC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,UAAU;AAAA;AAAA,IACV,UAAU;AAAA;AAAA,IACV,kBAAkB;AAAA;AAAA,EACtB;AACJ,CAAC;AACM,aAAM,iBAAiB,gBAAgB;AAAA,EAC1C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,UAAU;AAAA;AAAA,IACV,UAAU;AAAA;AAAA,EACd;AACJ,CAAC;",
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Overlay as SpOverlay } from '@spectrum-web-components/overlay';\nimport { OverlayTrigger as SpOverlayTrigger } from '@spectrum-web-components/overlay';\n\nimport '@spectrum-web-components/overlay/sp-overlay.js';\nimport '@spectrum-web-components/overlay/overlay-trigger.js';\n\nexport const Overlay = createComponent({\n displayName: 'Overlay',\n elementClass: SpOverlay,\n react: React,\n tagName: 'sp-overlay',\n events: {\n spOpened: 'sp-opened' as EventName<Event>, // announces that an overlay has completed any entry animations\n spClosed: 'sp-closed' as EventName<Event>, // announce that an overlay has compelted any exit animations\n slottableRequest: 'slottable-request' as EventName<Event>, // requests to add or remove slottable content\n },\n});\nexport const OverlayTrigger = createComponent({\n displayName: 'OverlayTrigger',\n elementClass: SpOverlayTrigger,\n react: React,\n tagName: 'overlay-trigger',\n events: {\n spOpened: 'sp-opened' as EventName<Event>, // Announces that the overlay has been opened\n spClosed: 'sp-closed' as EventName<Event>, // Announces that the overlay has been closed\n },\n});\n\nexport type OverlayType = EventTarget & SpOverlay;\nexport type OverlayTriggerType = EventTarget & SpOverlayTrigger;\n"],
5
+ "mappings": ";AAWA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,WAAW,iBAAiB;AACrC,SAAS,kBAAkB,wBAAwB;AAEnD,OAAO;AACP,OAAO;AAEA,aAAM,UAAU,gBAAgB;AAAA,EACnC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,UAAU;AAAA;AAAA,IACV,UAAU;AAAA;AAAA,IACV,kBAAkB;AAAA;AAAA,EACtB;AACJ,CAAC;AACM,aAAM,iBAAiB,gBAAgB;AAAA,EAC1C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,UAAU;AAAA;AAAA,IACV,UAAU;AAAA;AAAA,EACd;AACJ,CAAC;",
6
6
  "names": []
7
7
  }
package/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Overlay as SpOverlay } from '@spectrum-web-components/overlay';\nimport { OverlayTrigger as SpOverlayTrigger } from '@spectrum-web-components/overlay';\n\nimport '@spectrum-web-components/overlay/sp-overlay.js';\nimport '@spectrum-web-components/overlay/overlay-trigger.js';\n\nexport const Overlay = createComponent({\n displayName: 'Overlay',\n elementClass: SpOverlay,\n react: React,\n tagName: 'sp-overlay',\n events: {\n spOpened: 'sp-opened' as EventName<Event>, // announces that an overlay has completed any entry animations\n spClosed: 'sp-closed' as EventName<Event>, // announce that an overlay has compelted any exit animations\n slottableRequest: 'slottable-request' as EventName<Event>, // requests to add or remove slottable content\n },\n});\nexport const OverlayTrigger = createComponent({\n displayName: 'OverlayTrigger',\n elementClass: SpOverlayTrigger,\n react: React,\n tagName: 'overlay-trigger',\n events: {\n spOpened: 'sp-opened' as EventName<Event>, // Announces that the overlay has been opened\n spClosed: 'sp-closed' as EventName<Event>, // Announces that the overlay has been closed\n },\n});\n\nexport type OverlayType = EventTarget & SpOverlay;\nexport type OverlayTriggerType = EventTarget & SpOverlayTrigger;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,WAAWC,MAAiB,mCACrC,OAAS,kBAAkBC,MAAwB,mCAEnD,MAAO,iDACP,MAAO,sDAEA,aAAM,QAAUF,EAAgB,CACnC,YAAa,UACb,aAAcC,EACd,MAAOF,EACP,QAAS,aACT,OAAQ,CACJ,SAAU,YACV,SAAU,YACV,iBAAkB,mBACtB,CACJ,CAAC,EACY,eAAiBC,EAAgB,CAC1C,YAAa,iBACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CACJ,SAAU,YACV,SAAU,WACd,CACJ,CAAC",
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport type { EventName } from '@lit/react';\nimport { Overlay as SpOverlay } from '@spectrum-web-components/overlay';\nimport { OverlayTrigger as SpOverlayTrigger } from '@spectrum-web-components/overlay';\n\nimport '@spectrum-web-components/overlay/sp-overlay.js';\nimport '@spectrum-web-components/overlay/overlay-trigger.js';\n\nexport const Overlay = createComponent({\n displayName: 'Overlay',\n elementClass: SpOverlay,\n react: React,\n tagName: 'sp-overlay',\n events: {\n spOpened: 'sp-opened' as EventName<Event>, // announces that an overlay has completed any entry animations\n spClosed: 'sp-closed' as EventName<Event>, // announce that an overlay has compelted any exit animations\n slottableRequest: 'slottable-request' as EventName<Event>, // requests to add or remove slottable content\n },\n});\nexport const OverlayTrigger = createComponent({\n displayName: 'OverlayTrigger',\n elementClass: SpOverlayTrigger,\n react: React,\n tagName: 'overlay-trigger',\n events: {\n spOpened: 'sp-opened' as EventName<Event>, // Announces that the overlay has been opened\n spClosed: 'sp-closed' as EventName<Event>, // Announces that the overlay has been closed\n },\n});\n\nexport type OverlayType = EventTarget & SpOverlay;\nexport type OverlayTriggerType = EventTarget & SpOverlayTrigger;\n"],
5
+ "mappings": "aAWA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,WAAWC,MAAiB,mCACrC,OAAS,kBAAkBC,MAAwB,mCAEnD,MAAO,iDACP,MAAO,sDAEA,aAAM,QAAUF,EAAgB,CACnC,YAAa,UACb,aAAcC,EACd,MAAOF,EACP,QAAS,aACT,OAAQ,CACJ,SAAU,YACV,SAAU,YACV,iBAAkB,mBACtB,CACJ,CAAC,EACY,eAAiBC,EAAgB,CAC1C,YAAa,iBACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CACJ,SAAU,YACV,SAAU,WACd,CACJ,CAAC",
6
6
  "names": ["React", "createComponent", "SpOverlay", "SpOverlayTrigger"]
7
7
  }
package/next.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export declare const Overlay: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("overlay/src").Overlay>, "type" | "elements" | "placement" | "strategy" | "delayed" | "renderOptions" | "open" | "disabled" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "dialogEl" | "offset" | "receivesFocus" | "slotEl" | "state" | "tipPadding" | "trigger" | "triggerElement" | "triggerInteraction" | "render" | "spOpened" | "spClosed" | "slottableRequest" | "parentOverlayToForceClose" | "_state" | "manuallyKeepOpen" | "shouldPreventClose" | "willUpdate" | "dispose" | "willPreventClose" | "isLTR" | "hasVisibleFocusInTree"> & {
1
+ export declare const Overlay: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("overlay/src/Overlay.js").Overlay>, "type" | "elements" | "placement" | "strategy" | "delayed" | "renderOptions" | "open" | "disabled" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "dialogEl" | "offset" | "receivesFocus" | "slotEl" | "state" | "tipPadding" | "trigger" | "triggerElement" | "triggerInteraction" | "render" | "spOpened" | "spClosed" | "slottableRequest" | "parentOverlayToForceClose" | "_state" | "manuallyKeepOpen" | "shouldPreventClose" | "willUpdate" | "dispose" | "willPreventClose" | "isLTR" | "hasVisibleFocusInTree"> & {
2
2
  spOpened?: ((e: Event) => void) | undefined;
3
3
  spClosed?: ((e: Event) => void) | undefined;
4
4
  slottableRequest?: ((e: Event) => void) | undefined;
5
- } & Partial<Omit<import("overlay/src").Overlay, keyof HTMLElement>> & import("react").RefAttributes<import("overlay/src").Overlay>>;
6
- export declare const OverlayTrigger: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("overlay/src").OverlayTrigger>, "type" | "placement" | "renderOptions" | "open" | "disabled" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "offset" | "receivesFocus" | "triggeredBy" | "clickOverlayElement" | "longpressOverlayElement" | "hoverOverlayElement" | "spOpened" | "spClosed" | "isLTR" | "hasVisibleFocusInTree"> & {
5
+ } & Partial<Omit<import("overlay/src/Overlay.js").Overlay, keyof HTMLElement>> & import("react").RefAttributes<import("overlay/src/Overlay.js").Overlay>>;
6
+ export declare const OverlayTrigger: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("overlay/src/OverlayTrigger.js").OverlayTrigger>, "type" | "placement" | "renderOptions" | "open" | "disabled" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "offset" | "receivesFocus" | "triggeredBy" | "clickOverlayElement" | "longpressOverlayElement" | "hoverOverlayElement" | "spOpened" | "spClosed" | "isLTR" | "hasVisibleFocusInTree"> & {
7
7
  spOpened?: ((e: Event) => void) | undefined;
8
8
  spClosed?: ((e: Event) => void) | undefined;
9
- } & Partial<Omit<import("overlay/src").OverlayTrigger, keyof HTMLElement>> & import("react").RefAttributes<import("overlay/src").OverlayTrigger>>;
9
+ } & Partial<Omit<import("overlay/src/OverlayTrigger.js").OverlayTrigger, keyof HTMLElement>> & import("react").RefAttributes<import("overlay/src/OverlayTrigger.js").OverlayTrigger>>;
package/next.dev.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  import dynamic from "next/dynamic";
3
- export const Overlay = dynamic(() => import(".").then(({ Overlay: Overlay2 }) => Overlay2), { ssr: false });
4
- export const OverlayTrigger = dynamic(() => import(".").then(({ OverlayTrigger: OverlayTrigger2 }) => OverlayTrigger2), {
3
+ export const Overlay = dynamic(() => import("./index.dev.js").then(({ Overlay: Overlay2 }) => Overlay2), { ssr: false });
4
+ export const OverlayTrigger = dynamic(() => import("./index.dev.js").then(({ OverlayTrigger: OverlayTrigger2 }) => OverlayTrigger2), {
5
5
  ssr: false
6
6
  });
7
7
  //# sourceMappingURL=next.dev.js.map
package/next.dev.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["next.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Overlay as SpOverlay } from '.';\nimport { OverlayTrigger as SpOverlayTrigger } from '.';\n\nexport const Overlay = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpOverlay,\n ComponentProps<typeof SpOverlay>\n >\n>(() => import('.').then(({ Overlay }) => Overlay), { ssr: false });\nexport const OverlayTrigger = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpOverlayTrigger,\n ComponentProps<typeof SpOverlayTrigger>\n >\n>(() => import('.').then(({ OverlayTrigger }) => OverlayTrigger), {\n ssr: false,\n});\n"],
5
- "mappings": ";AAaA,OAAO,aAAa;AAKb,aAAM,UAAU,QAKrB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,SAAAA,SAAQ,MAAMA,QAAO,GAAG,EAAE,KAAK,MAAM,CAAC;AAC3D,aAAM,iBAAiB,QAK5B,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,gBAAAC,gBAAe,MAAMA,eAAc,GAAG;AAAA,EAC9D,KAAK;AACT,CAAC;",
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Overlay as SpOverlay } from './index.dev.js'\nimport { OverlayTrigger as SpOverlayTrigger } from './index.dev.js'\n\nexport const Overlay = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpOverlay,\n ComponentProps<typeof SpOverlay>\n >\n>(() => import('./index.dev.js').then(({ Overlay }) => Overlay), { ssr: false });\nexport const OverlayTrigger = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpOverlayTrigger,\n ComponentProps<typeof SpOverlayTrigger>\n >\n>(() => import('./index.dev.js').then(({ OverlayTrigger }) => OverlayTrigger), {\n ssr: false,\n});\n"],
5
+ "mappings": ";AAYA,OAAO,aAAa;AAKb,aAAM,UAAU,QAKrB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,SAAAA,SAAQ,MAAMA,QAAO,GAAG,EAAE,KAAK,MAAM,CAAC;AACxE,aAAM,iBAAiB,QAK5B,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,gBAAAC,gBAAe,MAAMA,eAAc,GAAG;AAAA,EAC3E,KAAK;AACT,CAAC;",
6
6
  "names": ["Overlay", "OverlayTrigger"]
7
7
  }
package/next.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import e from"next/dynamic";export const Overlay=e(()=>import(".").then(({Overlay:r})=>r),{ssr:!1}),OverlayTrigger=e(()=>import(".").then(({OverlayTrigger:r})=>r),{ssr:!1});
1
+ "use strict";import e from"next/dynamic";export const Overlay=e(()=>import("./index.js").then(({Overlay:r})=>r),{ssr:!1}),OverlayTrigger=e(()=>import("./index.js").then(({OverlayTrigger:r})=>r),{ssr:!1});
2
2
  //# sourceMappingURL=next.js.map
package/next.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["next.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Overlay as SpOverlay } from '.';\nimport { OverlayTrigger as SpOverlayTrigger } from '.';\n\nexport const Overlay = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpOverlay,\n ComponentProps<typeof SpOverlay>\n >\n>(() => import('.').then(({ Overlay }) => Overlay), { ssr: false });\nexport const OverlayTrigger = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpOverlayTrigger,\n ComponentProps<typeof SpOverlayTrigger>\n >\n>(() => import('.').then(({ OverlayTrigger }) => OverlayTrigger), {\n ssr: false,\n});\n"],
5
- "mappings": "aAaA,OAAOA,MAAa,eAKb,aAAM,QAAUA,EAKrB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,QAAAC,CAAQ,IAAMA,CAAO,EAAG,CAAE,IAAK,EAAM,CAAC,EACrD,eAAiBD,EAK5B,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,eAAAE,CAAe,IAAMA,CAAc,EAAG,CAC9D,IAAK,EACT,CAAC",
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { ComponentProps } from 'react';\nimport dynamic from 'next/dynamic';\n\nimport { Overlay as SpOverlay } from './index.js';\nimport { OverlayTrigger as SpOverlayTrigger } from './index.js';\n\nexport const Overlay = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpOverlay,\n ComponentProps<typeof SpOverlay>\n >\n>(() => import('./index.js').then(({ Overlay }) => Overlay), { ssr: false });\nexport const OverlayTrigger = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpOverlayTrigger,\n ComponentProps<typeof SpOverlayTrigger>\n >\n>(() => import('./index.js').then(({ OverlayTrigger }) => OverlayTrigger), {\n ssr: false,\n});\n"],
5
+ "mappings": "aAYA,OAAOA,MAAa,eAKb,aAAM,QAAUA,EAKrB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,QAAAC,CAAQ,IAAMA,CAAO,EAAG,CAAE,IAAK,EAAM,CAAC,EAC9D,eAAiBD,EAK5B,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,eAAAE,CAAe,IAAMA,CAAc,EAAG,CACvE,IAAK,EACT,CAAC",
6
6
  "names": ["dynamic", "Overlay", "OverlayTrigger"]
7
7
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@swc-react/overlay",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "React and Next.js wrapper of the @spectrum-web-components/overlay component",
8
8
  "license": "Apache-2.0",
9
- "author": "",
9
+ "author": "Adobe",
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@lit/react": "^1.0.2",
29
- "@spectrum-web-components/overlay": "^1.6.0"
29
+ "@spectrum-web-components/overlay": "^1.7.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "next": "~13.4 || ~14"