@swc-react/coachmark 0.40.5 → 0.41.1

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,4 +1,12 @@
1
+ import type { EventName } from '@lit/react';
2
+ import { CoachIndicator as SpCoachIndicator } from '@spectrum-web-components/coachmark';
1
3
  import { Coachmark as SpCoachmark } from '@spectrum-web-components/coachmark';
4
+ import '@spectrum-web-components/coachmark/sp-coach-indicator.js';
2
5
  import '@spectrum-web-components/coachmark/sp-coachmark.js';
3
- export declare const Coachmark: import("@lit/react").ReactWebComponent<SpCoachmark, {}>;
6
+ export declare const CoachIndicator: import("@lit/react").ReactWebComponent<SpCoachIndicator, {}>;
7
+ export declare const Coachmark: import("@lit/react").ReactWebComponent<SpCoachmark, {
8
+ primary: EventName<Event>;
9
+ secondary: EventName<Event>;
10
+ }>;
11
+ export declare type CoachIndicatorType = EventTarget & SpCoachIndicator;
4
12
  export declare type CoachmarkType = EventTarget & SpCoachmark;
package/index.dev.js CHANGED
@@ -1,13 +1,27 @@
1
1
  "use strict";
2
2
  import * as React from "react";
3
3
  import { createComponent } from "@lit/react";
4
+ import { CoachIndicator as SpCoachIndicator } from "@spectrum-web-components/coachmark";
4
5
  import { Coachmark as SpCoachmark } from "@spectrum-web-components/coachmark";
6
+ import "@spectrum-web-components/coachmark/sp-coach-indicator.js";
5
7
  import "@spectrum-web-components/coachmark/sp-coachmark.js";
8
+ export const CoachIndicator = createComponent({
9
+ displayName: "CoachIndicator",
10
+ elementClass: SpCoachIndicator,
11
+ react: React,
12
+ tagName: "sp-coach-indicator",
13
+ events: {}
14
+ });
6
15
  export const Coachmark = createComponent({
7
16
  displayName: "Coachmark",
8
17
  elementClass: SpCoachmark,
9
18
  react: React,
10
19
  tagName: "sp-coachmark",
11
- events: {}
20
+ events: {
21
+ primary: "primary",
22
+ // Announces that the "primary" button has been clicked.
23
+ secondary: "secondary"
24
+ // Announces that the "secondary" button has been clicked.
25
+ }
12
26
  });
13
27
  //# sourceMappingURL=index.dev.js.map
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 { Coachmark as SpCoachmark } from '@spectrum-web-components/coachmark';\n\nimport '@spectrum-web-components/coachmark/sp-coachmark.js';\n\nexport const Coachmark = createComponent({\n displayName: 'Coachmark',\n elementClass: SpCoachmark,\n react: React,\n tagName: 'sp-coachmark',\n events: {},\n});\n\nexport type CoachmarkType = EventTarget & SpCoachmark;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,SAAS,aAAa,mBAAmB;AAEzC,OAAO;AAEA,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,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/react';\nimport type { EventName } from '@lit/react';\nimport { CoachIndicator as SpCoachIndicator } from '@spectrum-web-components/coachmark';\nimport { Coachmark as SpCoachmark } from '@spectrum-web-components/coachmark';\n\nimport '@spectrum-web-components/coachmark/sp-coach-indicator.js';\nimport '@spectrum-web-components/coachmark/sp-coachmark.js';\n\nexport const CoachIndicator = createComponent({\n displayName: 'CoachIndicator',\n elementClass: SpCoachIndicator,\n react: React,\n tagName: 'sp-coach-indicator',\n events: {},\n});\nexport const Coachmark = createComponent({\n displayName: 'Coachmark',\n elementClass: SpCoachmark,\n react: React,\n tagName: 'sp-coachmark',\n events: {\n primary: 'primary' as EventName<Event>, // Announces that the \"primary\" button has been clicked.\n secondary: 'secondary' as EventName<Event>, // Announces that the \"secondary\" button has been clicked.\n },\n});\n\nexport type CoachIndicatorType = EventTarget & SpCoachIndicator;\nexport type CoachmarkType = EventTarget & SpCoachmark;\n"],
5
+ "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,kBAAkB,wBAAwB;AACnD,SAAS,aAAa,mBAAmB;AAEzC,OAAO;AACP,OAAO;AAEA,aAAM,iBAAiB,gBAAgB;AAAA,EAC1C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,SAAS;AAAA;AAAA,IACT,WAAW;AAAA;AAAA,EACf;AACJ,CAAC;",
6
6
  "names": []
7
7
  }
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import*as a from"react";import{createComponent as o}from"@lit/react";import{Coachmark as r}from"@spectrum-web-components/coachmark";import"@spectrum-web-components/coachmark/sp-coachmark.js";export const Coachmark=o({displayName:"Coachmark",elementClass:r,react:a,tagName:"sp-coachmark",events:{}});
1
+ "use strict";import*as a from"react";import{createComponent as t}from"@lit/react";import{CoachIndicator as e}from"@spectrum-web-components/coachmark";import{Coachmark as o}from"@spectrum-web-components/coachmark";import"@spectrum-web-components/coachmark/sp-coach-indicator.js";import"@spectrum-web-components/coachmark/sp-coachmark.js";export const CoachIndicator=t({displayName:"CoachIndicator",elementClass:e,react:a,tagName:"sp-coach-indicator",events:{}}),Coachmark=t({displayName:"Coachmark",elementClass:o,react:a,tagName:"sp-coachmark",events:{primary:"primary",secondary:"secondary"}});
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/react';\nimport { Coachmark as SpCoachmark } from '@spectrum-web-components/coachmark';\n\nimport '@spectrum-web-components/coachmark/sp-coachmark.js';\n\nexport const Coachmark = createComponent({\n displayName: 'Coachmark',\n elementClass: SpCoachmark,\n react: React,\n tagName: 'sp-coachmark',\n events: {},\n});\n\nexport type CoachmarkType = EventTarget & SpCoachmark;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAChC,OAAS,aAAaC,MAAmB,qCAEzC,MAAO,qDAEA,aAAM,UAAYD,EAAgB,CACrC,YAAa,YACb,aAAcC,EACd,MAAOF,EACP,QAAS,eACT,OAAQ,CAAC,CACb,CAAC",
6
- "names": ["React", "createComponent", "SpCoachmark"]
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 { CoachIndicator as SpCoachIndicator } from '@spectrum-web-components/coachmark';\nimport { Coachmark as SpCoachmark } from '@spectrum-web-components/coachmark';\n\nimport '@spectrum-web-components/coachmark/sp-coach-indicator.js';\nimport '@spectrum-web-components/coachmark/sp-coachmark.js';\n\nexport const CoachIndicator = createComponent({\n displayName: 'CoachIndicator',\n elementClass: SpCoachIndicator,\n react: React,\n tagName: 'sp-coach-indicator',\n events: {},\n});\nexport const Coachmark = createComponent({\n displayName: 'Coachmark',\n elementClass: SpCoachmark,\n react: React,\n tagName: 'sp-coachmark',\n events: {\n primary: 'primary' as EventName<Event>, // Announces that the \"primary\" button has been clicked.\n secondary: 'secondary' as EventName<Event>, // Announces that the \"secondary\" button has been clicked.\n },\n});\n\nexport type CoachIndicatorType = EventTarget & SpCoachIndicator;\nexport type CoachmarkType = EventTarget & SpCoachmark;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,aAEhC,OAAS,kBAAkBC,MAAwB,qCACnD,OAAS,aAAaC,MAAmB,qCAEzC,MAAO,2DACP,MAAO,qDAEA,aAAM,eAAiBF,EAAgB,CAC1C,YAAa,iBACb,aAAcC,EACd,MAAOF,EACP,QAAS,qBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcE,EACd,MAAOH,EACP,QAAS,eACT,OAAQ,CACJ,QAAS,UACT,UAAW,WACf,CACJ,CAAC",
6
+ "names": ["React", "createComponent", "SpCoachIndicator", "SpCoachmark"]
7
7
  }
package/next.d.ts CHANGED
@@ -1 +1,5 @@
1
- export declare const Coachmark: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("coachmark/src").Coachmark>, "quiet" | "variant" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("coachmark/src").Coachmark, keyof HTMLElement>> & import("react").RefAttributes<import("coachmark/src").Coachmark>>;
1
+ export declare const CoachIndicator: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("coachmark/src").CoachIndicator>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "variant" | "static" | "isLTR" | "hasVisibleFocusInTree" | "quiet"> & {} & Partial<Omit<import("coachmark/src").CoachIndicator, keyof HTMLElement>> & import("react").RefAttributes<import("coachmark/src").CoachIndicator>>;
2
+ export declare const Coachmark: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("coachmark/src").Coachmark>, "download" | "label" | "href" | "target" | "rel" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "dialog" | "renderOptions" | "open" | "placement" | "tip" | "tipElement" | "isLTR" | "hasVisibleFocusInTree" | "primary" | "secondary" | "item" | "modifierKeys" | "hasAsset" | "asset" | "currentStep" | "totalSteps" | "primaryCTA" | "secondaryCTA" | "renderAnchor"> & {
3
+ primary?: ((e: Event) => void) | undefined;
4
+ secondary?: ((e: Event) => void) | undefined;
5
+ } & Partial<Omit<import("coachmark/src").Coachmark, keyof HTMLElement>> & import("react").RefAttributes<import("coachmark/src").Coachmark>>;
package/next.dev.js CHANGED
@@ -1,4 +1,7 @@
1
1
  "use strict";
2
2
  import dynamic from "next/dynamic";
3
+ export const CoachIndicator = dynamic(() => import(".").then(({ CoachIndicator: CoachIndicator2 }) => CoachIndicator2), {
4
+ ssr: false
5
+ });
3
6
  export const Coachmark = dynamic(() => import(".").then(({ Coachmark: Coachmark2 }) => Coachmark2), { ssr: false });
4
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 { Coachmark as SpCoachmark } from '.';\n\nexport const Coachmark = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachmark,\n ComponentProps<typeof SpCoachmark>\n >\n>(() => import('.').then(({ Coachmark }) => Coachmark), { ssr: false });\n"],
5
- "mappings": ";AAaA,OAAO,aAAa;AAIb,aAAM,YAAY,QAKvB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,WAAAA,WAAU,MAAMA,UAAS,GAAG,EAAE,KAAK,MAAM,CAAC;",
6
- "names": ["Coachmark"]
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 { CoachIndicator as SpCoachIndicator } from '.';\nimport { Coachmark as SpCoachmark } from '.';\n\nexport const CoachIndicator = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachIndicator,\n ComponentProps<typeof SpCoachIndicator>\n >\n>(() => import('.').then(({ CoachIndicator }) => CoachIndicator), {\n ssr: false,\n});\nexport const Coachmark = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachmark,\n ComponentProps<typeof SpCoachmark>\n >\n>(() => import('.').then(({ Coachmark }) => Coachmark), { ssr: false });\n"],
5
+ "mappings": ";AAaA,OAAO,aAAa;AAKb,aAAM,iBAAiB,QAK5B,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,gBAAAA,gBAAe,MAAMA,eAAc,GAAG;AAAA,EAC9D,KAAK;AACT,CAAC;AACM,aAAM,YAAY,QAKvB,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG,EAAE,KAAK,MAAM,CAAC;",
6
+ "names": ["CoachIndicator", "Coachmark"]
7
7
  }
package/next.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import r from"next/dynamic";export const Coachmark=r(()=>import(".").then(({Coachmark:o})=>o),{ssr:!1});
1
+ "use strict";import r from"next/dynamic";export const CoachIndicator=r(()=>import(".").then(({CoachIndicator:o})=>o),{ssr:!1}),Coachmark=r(()=>import(".").then(({Coachmark:o})=>o),{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 { Coachmark as SpCoachmark } from '.';\n\nexport const Coachmark = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachmark,\n ComponentProps<typeof SpCoachmark>\n >\n>(() => import('.').then(({ Coachmark }) => Coachmark), { ssr: false });\n"],
5
- "mappings": "aAaA,OAAOA,MAAa,eAIb,aAAM,UAAYA,EAKvB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,UAAAC,CAAU,IAAMA,CAAS,EAAG,CAAE,IAAK,EAAM,CAAC",
6
- "names": ["dynamic", "Coachmark"]
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 { CoachIndicator as SpCoachIndicator } from '.';\nimport { Coachmark as SpCoachmark } from '.';\n\nexport const CoachIndicator = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachIndicator,\n ComponentProps<typeof SpCoachIndicator>\n >\n>(() => import('.').then(({ CoachIndicator }) => CoachIndicator), {\n ssr: false,\n});\nexport const Coachmark = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachmark,\n ComponentProps<typeof SpCoachmark>\n >\n>(() => import('.').then(({ Coachmark }) => Coachmark), { ssr: false });\n"],
5
+ "mappings": "aAaA,OAAOA,MAAa,eAKb,aAAM,eAAiBA,EAK5B,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,eAAAC,CAAe,IAAMA,CAAc,EAAG,CAC9D,IAAK,EACT,CAAC,EACY,UAAYD,EAKvB,IAAM,OAAO,GAAG,EAAE,KAAK,CAAC,CAAE,UAAAE,CAAU,IAAMA,CAAS,EAAG,CAAE,IAAK,EAAM,CAAC",
6
+ "names": ["dynamic", "CoachIndicator", "Coachmark"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/coachmark",
3
- "version": "0.40.5",
3
+ "version": "0.41.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,15 +30,15 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@lit/react": "^1.0.2",
33
- "@spectrum-web-components/coachmark": "^0.40.5"
33
+ "@spectrum-web-components/coachmark": "^0.41.1"
34
34
  },
35
35
  "peerDependencies": {
36
- "next": "~13.4 || ~14.0"
36
+ "next": "~13.4 || ~14"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "next": {
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "2e0006478841b07af63c19a0167a136bf724d064"
43
+ "gitHead": "1eded35d98d01973b40990486b86840ba464a2da"
44
44
  }