@wix/web5-core 1.63.37 → 1.63.38
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/cjs/components/ui/PoweredByBadge.js +12 -4
- package/dist/cjs/components/ui/PoweredByBadge.js.map +1 -1
- package/dist/cjs/styles/components.css +0 -1
- package/dist/esm/components/ui/PoweredByBadge.js +8 -0
- package/dist/esm/components/ui/PoweredByBadge.js.map +1 -1
- package/dist/esm/styles/components.css +0 -1
- package/dist/types/components/ui/PoweredByBadge.d.ts +8 -0
- package/dist/types/components/ui/PoweredByBadge.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/styles/components.css +0 -1
- package/dist/cjs/components/ui/PoweredByBadge.css +0 -68
- package/dist/esm/components/ui/PoweredByBadge.css +0 -68
- package/src/components/ui/PoweredByBadge.css +0 -68
|
@@ -15,6 +15,14 @@ const DEFAULT_POWERED_BY_HREF = exports.DEFAULT_POWERED_BY_HREF = 'https://www.n
|
|
|
15
15
|
* Rendering is the caller's decision — this component says nothing about plans.
|
|
16
16
|
* The AI page mounts it only when the site is on the Free tier (see
|
|
17
17
|
* `shouldShowPoweredBy`); any paid package removes it.
|
|
18
|
+
*
|
|
19
|
+
* NOTE: unlike every other component here, its CSS is NOT in
|
|
20
|
+
* `styles/components.css`. That file ships in the client bundle, and this
|
|
21
|
+
* component is mounted from the app bundle — the two are deployed
|
|
22
|
+
* independently, and splitting it across them shipped a naked, unstyled credit
|
|
23
|
+
* to a live storefront. Its stylesheet lives with the shell that mounts it, in
|
|
24
|
+
* `web50-server-ui/src/components/App.css`. A future client that mounts this
|
|
25
|
+
* itself has to bring its own copy, or move the rules somewhere both can see.
|
|
18
26
|
*/
|
|
19
27
|
const PoweredByBadge = ({
|
|
20
28
|
label = 'Powered by',
|
|
@@ -30,7 +38,7 @@ const PoweredByBadge = ({
|
|
|
30
38
|
__self: void 0,
|
|
31
39
|
__source: {
|
|
32
40
|
fileName: _jsxFileName,
|
|
33
|
-
lineNumber:
|
|
41
|
+
lineNumber: 47,
|
|
34
42
|
columnNumber: 5
|
|
35
43
|
}
|
|
36
44
|
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
@@ -47,7 +55,7 @@ const PoweredByBadge = ({
|
|
|
47
55
|
__self: void 0,
|
|
48
56
|
__source: {
|
|
49
57
|
fileName: _jsxFileName,
|
|
50
|
-
lineNumber:
|
|
58
|
+
lineNumber: 48,
|
|
51
59
|
columnNumber: 7
|
|
52
60
|
}
|
|
53
61
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -55,7 +63,7 @@ const PoweredByBadge = ({
|
|
|
55
63
|
__self: void 0,
|
|
56
64
|
__source: {
|
|
57
65
|
fileName: _jsxFileName,
|
|
58
|
-
lineNumber:
|
|
66
|
+
lineNumber: 61,
|
|
59
67
|
columnNumber: 9
|
|
60
68
|
}
|
|
61
69
|
}, label), ' ', /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -63,7 +71,7 @@ const PoweredByBadge = ({
|
|
|
63
71
|
__self: void 0,
|
|
64
72
|
__source: {
|
|
65
73
|
fileName: _jsxFileName,
|
|
66
|
-
lineNumber:
|
|
74
|
+
lineNumber: 62,
|
|
67
75
|
columnNumber: 9
|
|
68
76
|
}
|
|
69
77
|
}, brand)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_utils","_jsxFileName","DEFAULT_POWERED_BY_HREF","exports","PoweredByBadge","label","brand","href","target","onClick","className","rel","undefined","default","createElement","cn","__self","__source","fileName","lineNumber","columnNumber"],"sources":["../../../../src/components/ui/PoweredByBadge.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface PoweredByBadgeProps {\n /** Muted lead-in. Default: \"Powered by\". */\n label?: string;\n /** The emphasised brand name, and the link's visible anchor. Default: \"Niso\". */\n brand?: string;\n /** URL the badge opens. Default: the Niso marketing site. */\n href?: string;\n /** Override the link target. Default: `_blank` (opens in a new tab). */\n target?: '_blank' | '_self' | '_parent' | '_top';\n /** Click handler invoked before navigation. Use to fire analytics. */\n onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;\n className?: string;\n}\n\nexport const DEFAULT_POWERED_BY_HREF = 'https://www.nisoweb.ai';\n\n/**\n * The free-tier credit bar (B2B-4574): a full-width strip at the very bottom of\n * the AI page reading \"Powered by Niso\", with the brand name linking out.\n *\n * Rendering is the caller's decision — this component says nothing about plans.\n * The AI page mounts it only when the site is on the Free tier (see\n * `shouldShowPoweredBy`); any paid package removes it.\n */\nexport const PoweredByBadge: FC<PoweredByBadgeProps> = ({\n label = 'Powered by',\n brand = 'Niso',\n href = DEFAULT_POWERED_BY_HREF,\n target = '_blank',\n onClick,\n className,\n}) => {\n const rel = target === '_blank' ? 'noopener noreferrer' : undefined;\n\n return (\n <div className={cn('web5-powered-by', className)}>\n <a\n className=\"web5-powered-by__link\"\n href={href}\n target={target}\n rel={rel}\n onClick={onClick}\n // The visible text splits across two spans for the two-tone treatment,\n // so spell the whole thing out once for assistive tech — including the\n // new tab, which is otherwise unannounced.\n aria-label={`${label} ${brand}${\n target === '_blank' ? ' (opens in a new tab)' : ''\n }`}\n >\n <span className=\"web5-powered-by__label\">{label}</span>{' '}\n <span className=\"web5-powered-by__brand\">{brand}</span>\n </a>\n </div>\n );\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAqC,IAAAE,YAAA;AAgB9B,MAAMC,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,wBAAwB;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,cAAuC,GAAGA,CAAC;EACtDC,KAAK,GAAG,YAAY;EACpBC,KAAK,GAAG,MAAM;EACdC,IAAI,GAAGL,uBAAuB;EAC9BM,MAAM,GAAG,QAAQ;EACjBC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAMC,GAAG,GAAGH,MAAM,KAAK,QAAQ,GAAG,qBAAqB,GAAGI,SAAS;EAEnE,oBACEf,MAAA,CAAAgB,OAAA,CAAAC,aAAA;IAAKJ,SAAS,EAAE,IAAAK,SAAE,EAAC,iBAAiB,EAAEL,SAAS,CAAE;IAAAM,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjB,YAAA;MAAAkB,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAC/CvB,MAAA,CAAAgB,OAAA,CAAAC,aAAA;IACEJ,SAAS,EAAC,uBAAuB;IACjCH,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfG,GAAG,EAAEA,GAAI;IACTF,OAAO,EAAEA;IACT;IACA;IACA;IAAA;IACA,cAAY,GAAGJ,KAAK,IAAIC,KAAK,GAC3BE,MAAM,KAAK,QAAQ,GAAG,uBAAuB,GAAG,EAAE,EACjD;IAAAQ,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjB,YAAA;MAAAkB,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAEHvB,MAAA,CAAAgB,OAAA,CAAAC,aAAA;IAAMJ,SAAS,EAAC,wBAAwB;IAAAM,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjB,YAAA;MAAAkB,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAEf,KAAY,CAAC,EAAC,GAAG,eAC3DR,MAAA,CAAAgB,OAAA,CAAAC,aAAA;IAAMJ,SAAS,EAAC,wBAAwB;IAAAM,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjB,YAAA;MAAAkB,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAEd,KAAY,CACrD,CACA,CAAC;AAEV,CAAC;AAACH,OAAA,CAAAC,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_utils","_jsxFileName","DEFAULT_POWERED_BY_HREF","exports","PoweredByBadge","label","brand","href","target","onClick","className","rel","undefined","default","createElement","cn","__self","__source","fileName","lineNumber","columnNumber"],"sources":["../../../../src/components/ui/PoweredByBadge.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface PoweredByBadgeProps {\n /** Muted lead-in. Default: \"Powered by\". */\n label?: string;\n /** The emphasised brand name, and the link's visible anchor. Default: \"Niso\". */\n brand?: string;\n /** URL the badge opens. Default: the Niso marketing site. */\n href?: string;\n /** Override the link target. Default: `_blank` (opens in a new tab). */\n target?: '_blank' | '_self' | '_parent' | '_top';\n /** Click handler invoked before navigation. Use to fire analytics. */\n onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;\n className?: string;\n}\n\nexport const DEFAULT_POWERED_BY_HREF = 'https://www.nisoweb.ai';\n\n/**\n * The free-tier credit bar (B2B-4574): a full-width strip at the very bottom of\n * the AI page reading \"Powered by Niso\", with the brand name linking out.\n *\n * Rendering is the caller's decision — this component says nothing about plans.\n * The AI page mounts it only when the site is on the Free tier (see\n * `shouldShowPoweredBy`); any paid package removes it.\n *\n * NOTE: unlike every other component here, its CSS is NOT in\n * `styles/components.css`. That file ships in the client bundle, and this\n * component is mounted from the app bundle — the two are deployed\n * independently, and splitting it across them shipped a naked, unstyled credit\n * to a live storefront. Its stylesheet lives with the shell that mounts it, in\n * `web50-server-ui/src/components/App.css`. A future client that mounts this\n * itself has to bring its own copy, or move the rules somewhere both can see.\n */\nexport const PoweredByBadge: FC<PoweredByBadgeProps> = ({\n label = 'Powered by',\n brand = 'Niso',\n href = DEFAULT_POWERED_BY_HREF,\n target = '_blank',\n onClick,\n className,\n}) => {\n const rel = target === '_blank' ? 'noopener noreferrer' : undefined;\n\n return (\n <div className={cn('web5-powered-by', className)}>\n <a\n className=\"web5-powered-by__link\"\n href={href}\n target={target}\n rel={rel}\n onClick={onClick}\n // The visible text splits across two spans for the two-tone treatment,\n // so spell the whole thing out once for assistive tech — including the\n // new tab, which is otherwise unannounced.\n aria-label={`${label} ${brand}${\n target === '_blank' ? ' (opens in a new tab)' : ''\n }`}\n >\n <span className=\"web5-powered-by__label\">{label}</span>{' '}\n <span className=\"web5-powered-by__brand\">{brand}</span>\n </a>\n </div>\n );\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAqC,IAAAE,YAAA;AAgB9B,MAAMC,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,wBAAwB;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,cAAuC,GAAGA,CAAC;EACtDC,KAAK,GAAG,YAAY;EACpBC,KAAK,GAAG,MAAM;EACdC,IAAI,GAAGL,uBAAuB;EAC9BM,MAAM,GAAG,QAAQ;EACjBC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAMC,GAAG,GAAGH,MAAM,KAAK,QAAQ,GAAG,qBAAqB,GAAGI,SAAS;EAEnE,oBACEf,MAAA,CAAAgB,OAAA,CAAAC,aAAA;IAAKJ,SAAS,EAAE,IAAAK,SAAE,EAAC,iBAAiB,EAAEL,SAAS,CAAE;IAAAM,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjB,YAAA;MAAAkB,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAC/CvB,MAAA,CAAAgB,OAAA,CAAAC,aAAA;IACEJ,SAAS,EAAC,uBAAuB;IACjCH,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfG,GAAG,EAAEA,GAAI;IACTF,OAAO,EAAEA;IACT;IACA;IACA;IAAA;IACA,cAAY,GAAGJ,KAAK,IAAIC,KAAK,GAC3BE,MAAM,KAAK,QAAQ,GAAG,uBAAuB,GAAG,EAAE,EACjD;IAAAQ,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjB,YAAA;MAAAkB,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAEHvB,MAAA,CAAAgB,OAAA,CAAAC,aAAA;IAAMJ,SAAS,EAAC,wBAAwB;IAAAM,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjB,YAAA;MAAAkB,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAEf,KAAY,CAAC,EAAC,GAAG,eAC3DR,MAAA,CAAAgB,OAAA,CAAAC,aAAA;IAAMJ,SAAS,EAAC,wBAAwB;IAAAM,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjB,YAAA;MAAAkB,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAEd,KAAY,CACrD,CACA,CAAC;AAEV,CAAC;AAACH,OAAA,CAAAC,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@import '../components/ui/PromptEntryEmptyState.css';
|
|
3
3
|
@import '../components/ui/FeedbackBar.css';
|
|
4
4
|
@import '../components/ui/AiDisclosure.css';
|
|
5
|
-
@import '../components/ui/PoweredByBadge.css';
|
|
6
5
|
@import '../components/ui/UserQuery.css';
|
|
7
6
|
@import '../components/ui/PlacementLoader.css';
|
|
8
7
|
@import '../components/placement/PlacementResponseRenderer.css';
|
|
@@ -9,6 +9,14 @@ export const DEFAULT_POWERED_BY_HREF = 'https://www.nisoweb.ai';
|
|
|
9
9
|
* Rendering is the caller's decision — this component says nothing about plans.
|
|
10
10
|
* The AI page mounts it only when the site is on the Free tier (see
|
|
11
11
|
* `shouldShowPoweredBy`); any paid package removes it.
|
|
12
|
+
*
|
|
13
|
+
* NOTE: unlike every other component here, its CSS is NOT in
|
|
14
|
+
* `styles/components.css`. That file ships in the client bundle, and this
|
|
15
|
+
* component is mounted from the app bundle — the two are deployed
|
|
16
|
+
* independently, and splitting it across them shipped a naked, unstyled credit
|
|
17
|
+
* to a live storefront. Its stylesheet lives with the shell that mounts it, in
|
|
18
|
+
* `web50-server-ui/src/components/App.css`. A future client that mounts this
|
|
19
|
+
* itself has to bring its own copy, or move the rules somewhere both can see.
|
|
12
20
|
*/
|
|
13
21
|
export const PoweredByBadge = _ref => {
|
|
14
22
|
let {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","cn","DEFAULT_POWERED_BY_HREF","PoweredByBadge","_ref","label","brand","href","target","onClick","className","rel","undefined","createElement"],"sources":["../../../../src/components/ui/PoweredByBadge.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface PoweredByBadgeProps {\n /** Muted lead-in. Default: \"Powered by\". */\n label?: string;\n /** The emphasised brand name, and the link's visible anchor. Default: \"Niso\". */\n brand?: string;\n /** URL the badge opens. Default: the Niso marketing site. */\n href?: string;\n /** Override the link target. Default: `_blank` (opens in a new tab). */\n target?: '_blank' | '_self' | '_parent' | '_top';\n /** Click handler invoked before navigation. Use to fire analytics. */\n onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;\n className?: string;\n}\n\nexport const DEFAULT_POWERED_BY_HREF = 'https://www.nisoweb.ai';\n\n/**\n * The free-tier credit bar (B2B-4574): a full-width strip at the very bottom of\n * the AI page reading \"Powered by Niso\", with the brand name linking out.\n *\n * Rendering is the caller's decision — this component says nothing about plans.\n * The AI page mounts it only when the site is on the Free tier (see\n * `shouldShowPoweredBy`); any paid package removes it.\n */\nexport const PoweredByBadge: FC<PoweredByBadgeProps> = ({\n label = 'Powered by',\n brand = 'Niso',\n href = DEFAULT_POWERED_BY_HREF,\n target = '_blank',\n onClick,\n className,\n}) => {\n const rel = target === '_blank' ? 'noopener noreferrer' : undefined;\n\n return (\n <div className={cn('web5-powered-by', className)}>\n <a\n className=\"web5-powered-by__link\"\n href={href}\n target={target}\n rel={rel}\n onClick={onClick}\n // The visible text splits across two spans for the two-tone treatment,\n // so spell the whole thing out once for assistive tech — including the\n // new tab, which is otherwise unannounced.\n aria-label={`${label} ${brand}${\n target === '_blank' ? ' (opens in a new tab)' : ''\n }`}\n >\n <span className=\"web5-powered-by__label\">{label}</span>{' '}\n <span className=\"web5-powered-by__brand\">{brand}</span>\n </a>\n </div>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAASC,EAAE,QAAQ,iBAAiB;AAgBpC,OAAO,MAAMC,uBAAuB,GAAG,wBAAwB;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAuC,GAAGC,IAAA,IAOjD;EAAA,IAPkD;IACtDC,KAAK,GAAG,YAAY;IACpBC,KAAK,GAAG,MAAM;IACdC,IAAI,GAAGL,uBAAuB;IAC9BM,MAAM,GAAG,QAAQ;IACjBC,OAAO;IACPC;EACF,CAAC,GAAAN,IAAA;EACC,MAAMO,GAAG,GAAGH,MAAM,KAAK,QAAQ,GAAG,qBAAqB,GAAGI,SAAS;EAEnE,oBACEZ,KAAA,CAAAa,aAAA;IAAKH,SAAS,EAAET,EAAE,CAAC,iBAAiB,EAAES,SAAS;EAAE,gBAC/CV,KAAA,CAAAa,aAAA;IACEH,SAAS,EAAC,uBAAuB;IACjCH,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfG,GAAG,EAAEA,GAAI;IACTF,OAAO,EAAEA;IACT;IACA;IACA;IAAA;IACA,cAAY,GAAGJ,KAAK,IAAIC,KAAK,GAC3BE,MAAM,KAAK,QAAQ,GAAG,uBAAuB,GAAG,EAAE;EACjD,gBAEHR,KAAA,CAAAa,aAAA;IAAMH,SAAS,EAAC;EAAwB,GAAEL,KAAY,CAAC,EAAC,GAAG,eAC3DL,KAAA,CAAAa,aAAA;IAAMH,SAAS,EAAC;EAAwB,GAAEJ,KAAY,CACrD,CACA,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","cn","DEFAULT_POWERED_BY_HREF","PoweredByBadge","_ref","label","brand","href","target","onClick","className","rel","undefined","createElement"],"sources":["../../../../src/components/ui/PoweredByBadge.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { cn } from '../../lib/utils';\n\nexport interface PoweredByBadgeProps {\n /** Muted lead-in. Default: \"Powered by\". */\n label?: string;\n /** The emphasised brand name, and the link's visible anchor. Default: \"Niso\". */\n brand?: string;\n /** URL the badge opens. Default: the Niso marketing site. */\n href?: string;\n /** Override the link target. Default: `_blank` (opens in a new tab). */\n target?: '_blank' | '_self' | '_parent' | '_top';\n /** Click handler invoked before navigation. Use to fire analytics. */\n onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;\n className?: string;\n}\n\nexport const DEFAULT_POWERED_BY_HREF = 'https://www.nisoweb.ai';\n\n/**\n * The free-tier credit bar (B2B-4574): a full-width strip at the very bottom of\n * the AI page reading \"Powered by Niso\", with the brand name linking out.\n *\n * Rendering is the caller's decision — this component says nothing about plans.\n * The AI page mounts it only when the site is on the Free tier (see\n * `shouldShowPoweredBy`); any paid package removes it.\n *\n * NOTE: unlike every other component here, its CSS is NOT in\n * `styles/components.css`. That file ships in the client bundle, and this\n * component is mounted from the app bundle — the two are deployed\n * independently, and splitting it across them shipped a naked, unstyled credit\n * to a live storefront. Its stylesheet lives with the shell that mounts it, in\n * `web50-server-ui/src/components/App.css`. A future client that mounts this\n * itself has to bring its own copy, or move the rules somewhere both can see.\n */\nexport const PoweredByBadge: FC<PoweredByBadgeProps> = ({\n label = 'Powered by',\n brand = 'Niso',\n href = DEFAULT_POWERED_BY_HREF,\n target = '_blank',\n onClick,\n className,\n}) => {\n const rel = target === '_blank' ? 'noopener noreferrer' : undefined;\n\n return (\n <div className={cn('web5-powered-by', className)}>\n <a\n className=\"web5-powered-by__link\"\n href={href}\n target={target}\n rel={rel}\n onClick={onClick}\n // The visible text splits across two spans for the two-tone treatment,\n // so spell the whole thing out once for assistive tech — including the\n // new tab, which is otherwise unannounced.\n aria-label={`${label} ${brand}${\n target === '_blank' ? ' (opens in a new tab)' : ''\n }`}\n >\n <span className=\"web5-powered-by__label\">{label}</span>{' '}\n <span className=\"web5-powered-by__brand\">{brand}</span>\n </a>\n </div>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAASC,EAAE,QAAQ,iBAAiB;AAgBpC,OAAO,MAAMC,uBAAuB,GAAG,wBAAwB;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAuC,GAAGC,IAAA,IAOjD;EAAA,IAPkD;IACtDC,KAAK,GAAG,YAAY;IACpBC,KAAK,GAAG,MAAM;IACdC,IAAI,GAAGL,uBAAuB;IAC9BM,MAAM,GAAG,QAAQ;IACjBC,OAAO;IACPC;EACF,CAAC,GAAAN,IAAA;EACC,MAAMO,GAAG,GAAGH,MAAM,KAAK,QAAQ,GAAG,qBAAqB,GAAGI,SAAS;EAEnE,oBACEZ,KAAA,CAAAa,aAAA;IAAKH,SAAS,EAAET,EAAE,CAAC,iBAAiB,EAAES,SAAS;EAAE,gBAC/CV,KAAA,CAAAa,aAAA;IACEH,SAAS,EAAC,uBAAuB;IACjCH,IAAI,EAAEA,IAAK;IACXC,MAAM,EAAEA,MAAO;IACfG,GAAG,EAAEA,GAAI;IACTF,OAAO,EAAEA;IACT;IACA;IACA;IAAA;IACA,cAAY,GAAGJ,KAAK,IAAIC,KAAK,GAC3BE,MAAM,KAAK,QAAQ,GAAG,uBAAuB,GAAG,EAAE;EACjD,gBAEHR,KAAA,CAAAa,aAAA;IAAMH,SAAS,EAAC;EAAwB,GAAEL,KAAY,CAAC,EAAC,GAAG,eAC3DL,KAAA,CAAAa,aAAA;IAAMH,SAAS,EAAC;EAAwB,GAAEJ,KAAY,CACrD,CACA,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@import '../components/ui/PromptEntryEmptyState.css';
|
|
3
3
|
@import '../components/ui/FeedbackBar.css';
|
|
4
4
|
@import '../components/ui/AiDisclosure.css';
|
|
5
|
-
@import '../components/ui/PoweredByBadge.css';
|
|
6
5
|
@import '../components/ui/UserQuery.css';
|
|
7
6
|
@import '../components/ui/PlacementLoader.css';
|
|
8
7
|
@import '../components/placement/PlacementResponseRenderer.css';
|
|
@@ -20,6 +20,14 @@ export declare const DEFAULT_POWERED_BY_HREF = "https://www.nisoweb.ai";
|
|
|
20
20
|
* Rendering is the caller's decision — this component says nothing about plans.
|
|
21
21
|
* The AI page mounts it only when the site is on the Free tier (see
|
|
22
22
|
* `shouldShowPoweredBy`); any paid package removes it.
|
|
23
|
+
*
|
|
24
|
+
* NOTE: unlike every other component here, its CSS is NOT in
|
|
25
|
+
* `styles/components.css`. That file ships in the client bundle, and this
|
|
26
|
+
* component is mounted from the app bundle — the two are deployed
|
|
27
|
+
* independently, and splitting it across them shipped a naked, unstyled credit
|
|
28
|
+
* to a live storefront. Its stylesheet lives with the shell that mounts it, in
|
|
29
|
+
* `web50-server-ui/src/components/App.css`. A future client that mounts this
|
|
30
|
+
* itself has to bring its own copy, or move the rules somewhere both can see.
|
|
23
31
|
*/
|
|
24
32
|
export declare const PoweredByBadge: FC<PoweredByBadgeProps>;
|
|
25
33
|
//# sourceMappingURL=PoweredByBadge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoweredByBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/PoweredByBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,MAAM,WAAW,mBAAmB;IAClC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACjD,sEAAsE;IACtE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAEhE
|
|
1
|
+
{"version":3,"file":"PoweredByBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/PoweredByBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,MAAM,WAAW,mBAAmB;IAClC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACjD,sEAAsE;IACtE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAEhE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA8BlD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/web5-core",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.63.
|
|
4
|
+
"version": "1.63.38",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tsachis",
|
|
7
7
|
"email": "tsachis@wix.com"
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"wallaby": {
|
|
101
101
|
"autoDetect": true
|
|
102
102
|
},
|
|
103
|
-
"falconPackageHash": "
|
|
103
|
+
"falconPackageHash": "527f52ff447d5d61666f8af72e2f79ab513eea188fe4f1a640a38cb2"
|
|
104
104
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@import '../components/ui/PromptEntryEmptyState.css';
|
|
3
3
|
@import '../components/ui/FeedbackBar.css';
|
|
4
4
|
@import '../components/ui/AiDisclosure.css';
|
|
5
|
-
@import '../components/ui/PoweredByBadge.css';
|
|
6
5
|
@import '../components/ui/UserQuery.css';
|
|
7
6
|
@import '../components/ui/PlacementLoader.css';
|
|
8
7
|
@import '../components/placement/PlacementResponseRenderer.css';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/* "Powered by Niso" free-tier credit bar (B2B-4574).
|
|
2
|
-
|
|
3
|
-
A full-width strip pinned under the prompt dock at the very bottom of the AI
|
|
4
|
-
page. Colour and type are vars with fallbacks so a client can re-skin the bar
|
|
5
|
-
without forking the component — but see the two values below that are
|
|
6
|
-
deliberately fixed, and `App.tsx` on why the bar itself is not a UI slot. */
|
|
7
|
-
|
|
8
|
-
.web5-powered-by {
|
|
9
|
-
/*
|
|
10
|
-
* The bar's lift, straight from the design (Figma 751-2729): a soft drop
|
|
11
|
-
* plus a wider ambient glow, the latter being what actually reads above a
|
|
12
|
-
* bar pinned to the bottom edge.
|
|
13
|
-
*
|
|
14
|
-
* Its own value rather than one of the `--shadow-*` steps in
|
|
15
|
-
* `base-tokens.css`: that is a general-purpose scale clients legitimately
|
|
16
|
-
* re-map — feature.com flattens `--shadow-sm` to `none` — and the bar needs
|
|
17
|
-
* a lift that survives it. Declared here rather than in `base-tokens.css`
|
|
18
|
-
* because that file ships in the *client* bundle, which is versioned apart
|
|
19
|
-
* from this stylesheet; a token defined there would resolve to nothing on
|
|
20
|
-
* any client built before this change.
|
|
21
|
-
*/
|
|
22
|
-
--web5-credit-bar-shadow:
|
|
23
|
-
0px 6px 6px hsl(230 100% 7% / 0.03), 0px 0px 18px hsl(230 100% 7% / 0.07);
|
|
24
|
-
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
width: 100%;
|
|
29
|
-
/*
|
|
30
|
-
* Fixed, not a var. The host docks this bar `position: fixed` and lifts the
|
|
31
|
-
* prompt input by the same 30px (`--web5-credit-bar-height` in `App.css`);
|
|
32
|
-
* a client able to resize it could only ever push the two out of step. The
|
|
33
|
-
* colour and type vars below are safe precisely because they cannot.
|
|
34
|
-
*/
|
|
35
|
-
height: 30px;
|
|
36
|
-
padding-inline: var(--web5-powered-by-padding-inline, 16px);
|
|
37
|
-
background: var(--web5-powered-by-background, hsl(var(--background)));
|
|
38
|
-
box-shadow: var(--web5-powered-by-shadow, var(--web5-credit-bar-shadow));
|
|
39
|
-
font-size: var(--web5-powered-by-font-size, 14px);
|
|
40
|
-
line-height: var(--web5-powered-by-line-height, 1);
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
text-align: center;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.web5-powered-by__link {
|
|
46
|
-
display: inline-flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
gap: 0.25em;
|
|
49
|
-
/* WCAG 2.1 AA target size — the 30px bar is taller than the text alone. */
|
|
50
|
-
min-height: 24px;
|
|
51
|
-
color: inherit;
|
|
52
|
-
text-decoration: none;
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.web5-powered-by__label {
|
|
57
|
-
color: var(--web5-powered-by-label-color, hsl(var(--muted-foreground)));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.web5-powered-by__brand {
|
|
61
|
-
color: var(--web5-powered-by-brand-color, hsl(var(--foreground)));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.web5-powered-by__link:hover .web5-powered-by__brand,
|
|
65
|
-
.web5-powered-by__link:focus-visible .web5-powered-by__brand {
|
|
66
|
-
text-decoration: underline;
|
|
67
|
-
text-decoration-skip-ink: none;
|
|
68
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/* "Powered by Niso" free-tier credit bar (B2B-4574).
|
|
2
|
-
|
|
3
|
-
A full-width strip pinned under the prompt dock at the very bottom of the AI
|
|
4
|
-
page. Colour and type are vars with fallbacks so a client can re-skin the bar
|
|
5
|
-
without forking the component — but see the two values below that are
|
|
6
|
-
deliberately fixed, and `App.tsx` on why the bar itself is not a UI slot. */
|
|
7
|
-
|
|
8
|
-
.web5-powered-by {
|
|
9
|
-
/*
|
|
10
|
-
* The bar's lift, straight from the design (Figma 751-2729): a soft drop
|
|
11
|
-
* plus a wider ambient glow, the latter being what actually reads above a
|
|
12
|
-
* bar pinned to the bottom edge.
|
|
13
|
-
*
|
|
14
|
-
* Its own value rather than one of the `--shadow-*` steps in
|
|
15
|
-
* `base-tokens.css`: that is a general-purpose scale clients legitimately
|
|
16
|
-
* re-map — feature.com flattens `--shadow-sm` to `none` — and the bar needs
|
|
17
|
-
* a lift that survives it. Declared here rather than in `base-tokens.css`
|
|
18
|
-
* because that file ships in the *client* bundle, which is versioned apart
|
|
19
|
-
* from this stylesheet; a token defined there would resolve to nothing on
|
|
20
|
-
* any client built before this change.
|
|
21
|
-
*/
|
|
22
|
-
--web5-credit-bar-shadow:
|
|
23
|
-
0px 6px 6px hsl(230 100% 7% / 0.03), 0px 0px 18px hsl(230 100% 7% / 0.07);
|
|
24
|
-
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
width: 100%;
|
|
29
|
-
/*
|
|
30
|
-
* Fixed, not a var. The host docks this bar `position: fixed` and lifts the
|
|
31
|
-
* prompt input by the same 30px (`--web5-credit-bar-height` in `App.css`);
|
|
32
|
-
* a client able to resize it could only ever push the two out of step. The
|
|
33
|
-
* colour and type vars below are safe precisely because they cannot.
|
|
34
|
-
*/
|
|
35
|
-
height: 30px;
|
|
36
|
-
padding-inline: var(--web5-powered-by-padding-inline, 16px);
|
|
37
|
-
background: var(--web5-powered-by-background, hsl(var(--background)));
|
|
38
|
-
box-shadow: var(--web5-powered-by-shadow, var(--web5-credit-bar-shadow));
|
|
39
|
-
font-size: var(--web5-powered-by-font-size, 14px);
|
|
40
|
-
line-height: var(--web5-powered-by-line-height, 1);
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
text-align: center;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.web5-powered-by__link {
|
|
46
|
-
display: inline-flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
gap: 0.25em;
|
|
49
|
-
/* WCAG 2.1 AA target size — the 30px bar is taller than the text alone. */
|
|
50
|
-
min-height: 24px;
|
|
51
|
-
color: inherit;
|
|
52
|
-
text-decoration: none;
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.web5-powered-by__label {
|
|
57
|
-
color: var(--web5-powered-by-label-color, hsl(var(--muted-foreground)));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.web5-powered-by__brand {
|
|
61
|
-
color: var(--web5-powered-by-brand-color, hsl(var(--foreground)));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.web5-powered-by__link:hover .web5-powered-by__brand,
|
|
65
|
-
.web5-powered-by__link:focus-visible .web5-powered-by__brand {
|
|
66
|
-
text-decoration: underline;
|
|
67
|
-
text-decoration-skip-ink: none;
|
|
68
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/* "Powered by Niso" free-tier credit bar (B2B-4574).
|
|
2
|
-
|
|
3
|
-
A full-width strip pinned under the prompt dock at the very bottom of the AI
|
|
4
|
-
page. Colour and type are vars with fallbacks so a client can re-skin the bar
|
|
5
|
-
without forking the component — but see the two values below that are
|
|
6
|
-
deliberately fixed, and `App.tsx` on why the bar itself is not a UI slot. */
|
|
7
|
-
|
|
8
|
-
.web5-powered-by {
|
|
9
|
-
/*
|
|
10
|
-
* The bar's lift, straight from the design (Figma 751-2729): a soft drop
|
|
11
|
-
* plus a wider ambient glow, the latter being what actually reads above a
|
|
12
|
-
* bar pinned to the bottom edge.
|
|
13
|
-
*
|
|
14
|
-
* Its own value rather than one of the `--shadow-*` steps in
|
|
15
|
-
* `base-tokens.css`: that is a general-purpose scale clients legitimately
|
|
16
|
-
* re-map — feature.com flattens `--shadow-sm` to `none` — and the bar needs
|
|
17
|
-
* a lift that survives it. Declared here rather than in `base-tokens.css`
|
|
18
|
-
* because that file ships in the *client* bundle, which is versioned apart
|
|
19
|
-
* from this stylesheet; a token defined there would resolve to nothing on
|
|
20
|
-
* any client built before this change.
|
|
21
|
-
*/
|
|
22
|
-
--web5-credit-bar-shadow:
|
|
23
|
-
0px 6px 6px hsl(230 100% 7% / 0.03), 0px 0px 18px hsl(230 100% 7% / 0.07);
|
|
24
|
-
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
width: 100%;
|
|
29
|
-
/*
|
|
30
|
-
* Fixed, not a var. The host docks this bar `position: fixed` and lifts the
|
|
31
|
-
* prompt input by the same 30px (`--web5-credit-bar-height` in `App.css`);
|
|
32
|
-
* a client able to resize it could only ever push the two out of step. The
|
|
33
|
-
* colour and type vars below are safe precisely because they cannot.
|
|
34
|
-
*/
|
|
35
|
-
height: 30px;
|
|
36
|
-
padding-inline: var(--web5-powered-by-padding-inline, 16px);
|
|
37
|
-
background: var(--web5-powered-by-background, hsl(var(--background)));
|
|
38
|
-
box-shadow: var(--web5-powered-by-shadow, var(--web5-credit-bar-shadow));
|
|
39
|
-
font-size: var(--web5-powered-by-font-size, 14px);
|
|
40
|
-
line-height: var(--web5-powered-by-line-height, 1);
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
text-align: center;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.web5-powered-by__link {
|
|
46
|
-
display: inline-flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
gap: 0.25em;
|
|
49
|
-
/* WCAG 2.1 AA target size — the 30px bar is taller than the text alone. */
|
|
50
|
-
min-height: 24px;
|
|
51
|
-
color: inherit;
|
|
52
|
-
text-decoration: none;
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.web5-powered-by__label {
|
|
57
|
-
color: var(--web5-powered-by-label-color, hsl(var(--muted-foreground)));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.web5-powered-by__brand {
|
|
61
|
-
color: var(--web5-powered-by-brand-color, hsl(var(--foreground)));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.web5-powered-by__link:hover .web5-powered-by__brand,
|
|
65
|
-
.web5-powered-by__link:focus-visible .web5-powered-by__brand {
|
|
66
|
-
text-decoration: underline;
|
|
67
|
-
text-decoration-skip-ink: none;
|
|
68
|
-
}
|