@swc-react/toast 0.31.1-react.3 → 0.32.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.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { EventName } from '@lit-labs/react';
2
2
  import { Toast as SpToast } from '@spectrum-web-components/toast';
3
+ import '@spectrum-web-components/toast/sp-toast.js';
3
4
  export declare const Toast: import("@lit-labs/react").ReactWebComponent<SpToast, {
4
5
  close: EventName<CustomEvent<any>>;
5
6
  }>;
package/index.dev.js CHANGED
@@ -2,6 +2,7 @@
2
2
  import * as React from "react";
3
3
  import { createComponent } from "@lit-labs/react";
4
4
  import { Toast as SpToast } from "@spectrum-web-components/toast";
5
+ import "@spectrum-web-components/toast/sp-toast.js";
5
6
  export const Toast = createComponent({
6
7
  displayName: "Toast",
7
8
  elementClass: SpToast,
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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Toast as SpToast } from '@spectrum-web-components/toast';\n\nexport const Toast = createComponent({\n displayName: 'Toast',\n elementClass: SpToast,\n react: React,\n tagName: 'sp-toast',\n events: {\n close: 'close' as EventName<CustomEvent>, // Announces that the Toast has been closed by the user or by its timeout.\n },\n});\n\nexport type ToastType = EventTarget & SpToast;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,SAAS,eAAe;AAE1B,aAAM,QAAQ,gBAAgB;AAAA,EACjC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA;AAAA,EACX;AACJ,CAAC;",
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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Toast as SpToast } from '@spectrum-web-components/toast';\n\nimport '@spectrum-web-components/toast/sp-toast.js';\n\nexport const Toast = createComponent({\n displayName: 'Toast',\n elementClass: SpToast,\n react: React,\n tagName: 'sp-toast',\n events: {\n close: 'close' as EventName<CustomEvent>, // Announces that the Toast has been closed by the user or by its timeout.\n },\n});\n\nexport type ToastType = EventTarget & SpToast;\n"],
5
+ "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,SAAS,eAAe;AAEjC,OAAO;AAEA,aAAM,QAAQ,gBAAgB;AAAA,EACjC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA;AAAA,EACX;AACJ,CAAC;",
6
6
  "names": []
7
7
  }
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import*as t from"react";import{createComponent as e}from"@lit-labs/react";import{Toast as a}from"@spectrum-web-components/toast";export const Toast=e({displayName:"Toast",elementClass:a,react:t,tagName:"sp-toast",events:{close:"close"}});
1
+ "use strict";import*as t from"react";import{createComponent as e}from"@lit-labs/react";import{Toast as o}from"@spectrum-web-components/toast";import"@spectrum-web-components/toast/sp-toast.js";export const Toast=e({displayName:"Toast",elementClass:o,react:t,tagName:"sp-toast",events:{close:"close"}});
2
2
  //# sourceMappingURL=index.js.map
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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Toast as SpToast } from '@spectrum-web-components/toast';\n\nexport const Toast = createComponent({\n displayName: 'Toast',\n elementClass: SpToast,\n react: React,\n tagName: 'sp-toast',\n events: {\n close: 'close' as EventName<CustomEvent>, // Announces that the Toast has been closed by the user or by its timeout.\n },\n});\n\nexport type ToastType = EventTarget & SpToast;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,SAASC,MAAe,iCAE1B,aAAM,MAAQD,EAAgB,CACjC,YAAa,QACb,aAAcC,EACd,MAAOF,EACP,QAAS,WACT,OAAQ,CACJ,MAAO,OACX,CACJ,CAAC",
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-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Toast as SpToast } from '@spectrum-web-components/toast';\n\nimport '@spectrum-web-components/toast/sp-toast.js';\n\nexport const Toast = createComponent({\n displayName: 'Toast',\n elementClass: SpToast,\n react: React,\n tagName: 'sp-toast',\n events: {\n close: 'close' as EventName<CustomEvent>, // Announces that the Toast has been closed by the user or by its timeout.\n },\n});\n\nexport type ToastType = EventTarget & SpToast;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,SAASC,MAAe,iCAEjC,MAAO,6CAEA,aAAM,MAAQD,EAAgB,CACjC,YAAa,QACb,aAAcC,EACd,MAAOF,EACP,QAAS,WACT,OAAQ,CACJ,MAAO,OACX,CACJ,CAAC",
6
6
  "names": ["React", "createComponent", "SpToast"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/toast",
3
- "version": "0.31.1-react.3+886f51591",
3
+ "version": "0.32.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,15 +30,15 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@lit-labs/react": "^1.1.1",
33
- "@spectrum-web-components/toast": "^0.31.1-react.3+886f51591"
33
+ "@spectrum-web-components/toast": "^0.32.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "next": "^13.4.1 || latest"
36
+ "next": "~13.4"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "next": {
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "886f515919ca0e8a1cec52a00babb1d4a195ae01"
43
+ "gitHead": "c5f67662ac54d0e37debaf7cbd7c2df60e8b294e"
44
44
  }