@swc-react/coachmark 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 +2 -2
- package/index.js.map +2 -2
- package/next.d.ts +3 -3
- package/next.dev.js +4 -2
- package/next.dev.js.map +2 -2
- package/next.js +1 -1
- package/next.js.map +2 -2
- package/package.json +3 -3
package/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": ";
|
|
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 { 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": ";AAWA,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.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
5
|
-
"mappings": "
|
|
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 { 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": "aAWA,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
6
|
"names": ["React", "createComponent", "SpCoachIndicator", "SpCoachmark"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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" | "staticColor" | "quiet" | "isLTR" | "hasVisibleFocusInTree"> & {} & 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>, "open" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "placement" | "tip" | "tipElement" | "primary" | "secondary" | "item" | "modifierKeys" | "hasAsset" | "asset" | "currentStep" | "totalSteps" | "primaryCTA" | "secondaryCTA" | "isLTR" | "hasVisibleFocusInTree"> & {
|
|
1
|
+
export declare const CoachIndicator: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("coachmark/src/CoachIndicator.js").CoachIndicator>, "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "staticColor" | "quiet" | "isLTR" | "hasVisibleFocusInTree"> & {} & Partial<Omit<import("coachmark/src/CoachIndicator.js").CoachIndicator, keyof HTMLElement>> & import("react").RefAttributes<import("coachmark/src/CoachIndicator.js").CoachIndicator>>;
|
|
2
|
+
export declare const Coachmark: import("react").ComponentType<Omit<import("react").HTMLAttributes<import("coachmark/src/Coachmark.js").Coachmark>, "open" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "placement" | "tip" | "tipElement" | "primary" | "secondary" | "item" | "modifierKeys" | "hasAsset" | "asset" | "currentStep" | "totalSteps" | "primaryCTA" | "secondaryCTA" | "isLTR" | "hasVisibleFocusInTree"> & {
|
|
3
3
|
primary?: ((e: Event) => void) | undefined;
|
|
4
4
|
secondary?: ((e: Event) => void) | undefined;
|
|
5
|
-
} & Partial<Omit<import("coachmark/src").Coachmark, keyof HTMLElement>> & import("react").RefAttributes<import("coachmark/src").Coachmark>>;
|
|
5
|
+
} & Partial<Omit<import("coachmark/src/Coachmark.js").Coachmark, keyof HTMLElement>> & import("react").RefAttributes<import("coachmark/src/Coachmark.js").Coachmark>>;
|
package/next.dev.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import dynamic from "next/dynamic";
|
|
3
|
-
export const CoachIndicator = dynamic(() => import(".").then(({ CoachIndicator: CoachIndicator2 }) => CoachIndicator2), {
|
|
3
|
+
export const CoachIndicator = dynamic(() => import("./index.dev.js").then(({ CoachIndicator: CoachIndicator2 }) => CoachIndicator2), {
|
|
4
|
+
ssr: false
|
|
5
|
+
});
|
|
6
|
+
export const Coachmark = dynamic(() => import("./index.dev.js").then(({ Coachmark: Coachmark2 }) => Coachmark2), {
|
|
4
7
|
ssr: false
|
|
5
8
|
});
|
|
6
|
-
export const Coachmark = dynamic(() => import(".").then(({ Coachmark: Coachmark2 }) => Coachmark2), { ssr: false });
|
|
7
9
|
//# 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
|
|
5
|
-
"mappings": ";
|
|
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 { CoachIndicator as SpCoachIndicator } from './index.dev.js'\nimport { Coachmark as SpCoachmark } from './index.dev.js'\n\nexport const CoachIndicator = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachIndicator,\n ComponentProps<typeof SpCoachIndicator>\n >\n>(() => import('./index.dev.js').then(({ CoachIndicator }) => CoachIndicator), {\n ssr: false,\n});\nexport const Coachmark = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachmark,\n ComponentProps<typeof SpCoachmark>\n >\n>(() => import('./index.dev.js').then(({ Coachmark }) => Coachmark), {\n ssr: false,\n});\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,aAAa;AAKb,aAAM,iBAAiB,QAK5B,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,gBAAAA,gBAAe,MAAMA,eAAc,GAAG;AAAA,EAC3E,KAAK;AACT,CAAC;AACM,aAAM,YAAY,QAKvB,MAAM,OAAO,gBAAgB,EAAE,KAAK,CAAC,EAAE,WAAAC,WAAU,MAAMA,UAAS,GAAG;AAAA,EACjE,KAAK;AACT,CAAC;",
|
|
6
6
|
"names": ["CoachIndicator", "Coachmark"]
|
|
7
7
|
}
|
package/next.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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});
|
|
1
|
+
"use strict";import r from"next/dynamic";export const CoachIndicator=r(()=>import("./index.js").then(({CoachIndicator:o})=>o),{ssr:!1}),Coachmark=r(()=>import("./index.js").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
|
|
5
|
-
"mappings": "
|
|
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 { CoachIndicator as SpCoachIndicator } from './index.js';\nimport { Coachmark as SpCoachmark } from './index.js';\n\nexport const CoachIndicator = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachIndicator,\n ComponentProps<typeof SpCoachIndicator>\n >\n>(() => import('./index.js').then(({ CoachIndicator }) => CoachIndicator), {\n ssr: false,\n});\nexport const Coachmark = dynamic<\n JSX.LibraryManagedAttributes<\n typeof SpCoachmark,\n ComponentProps<typeof SpCoachmark>\n >\n>(() => import('./index.js').then(({ Coachmark }) => Coachmark), {\n ssr: false,\n});\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAa,eAKb,aAAM,eAAiBA,EAK5B,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,eAAAC,CAAe,IAAMA,CAAc,EAAG,CACvE,IAAK,EACT,CAAC,EACY,UAAYD,EAKvB,IAAM,OAAO,YAAY,EAAE,KAAK,CAAC,CAAE,UAAAE,CAAU,IAAMA,CAAS,EAAG,CAC7D,IAAK,EACT,CAAC",
|
|
6
6
|
"names": ["dynamic", "CoachIndicator", "Coachmark"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/coachmark",
|
|
3
|
-
"version": "1.
|
|
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/coachmark 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/coachmark": "^1.
|
|
29
|
+
"@spectrum-web-components/coachmark": "^1.7.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"next": "~13.4 || ~14"
|