@wazobiatech/wazui 1.0.53 → 1.0.55

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.
Files changed (27) hide show
  1. package/dist/{PictureBlot-TjDxbFJf.cjs → PictureBlot-26XIpZQ2.cjs} +2 -2
  2. package/dist/{PictureBlot-TjDxbFJf.cjs.map → PictureBlot-26XIpZQ2.cjs.map} +1 -1
  3. package/dist/{PictureBlot-DhlS54sJ.js → PictureBlot-CKjxWxUc.js} +2 -2
  4. package/dist/{PictureBlot-DhlS54sJ.js.map → PictureBlot-CKjxWxUc.js.map} +1 -1
  5. package/dist/components/wazui/PagesContentComponent/PagesContentComponent.d.ts.map +1 -1
  6. package/dist/components/wazui/PagesContentComponent/PagesContentComponent.test.d.ts.map +1 -1
  7. package/dist/hooks/useMercuryProjectToken.d.ts +2 -0
  8. package/dist/hooks/useMercuryProjectToken.d.ts.map +1 -1
  9. package/dist/hooks/useMercuryProjectToken.test.d.ts +2 -0
  10. package/dist/hooks/useMercuryProjectToken.test.d.ts.map +1 -0
  11. package/dist/{index--qJZSyMc.js → index-B3rTGMBB.js} +5209 -5193
  12. package/dist/index-B3rTGMBB.js.map +4 -0
  13. package/dist/{index-mGCA01Pj.cjs → index-Bg3koj-Q.cjs} +156 -156
  14. package/dist/index-Bg3koj-Q.cjs.map +4 -0
  15. package/dist/index.js +1 -1
  16. package/dist/index.mjs +1 -1
  17. package/dist/{quill-D2HXLate.cjs → quill-0ii77aUk.cjs} +2 -2
  18. package/dist/{quill-D2HXLate.cjs.map → quill-0ii77aUk.cjs.map} +1 -1
  19. package/dist/{quill-DPhAw9X5.js → quill-B7JopR5V.js} +2 -2
  20. package/dist/{quill-DPhAw9X5.js.map → quill-B7JopR5V.js.map} +1 -1
  21. package/dist/utils/apolloClient.d.ts +2 -2
  22. package/dist/utils/apolloClient.d.ts.map +1 -1
  23. package/dist/utils/authLink.d.ts +8 -0
  24. package/dist/utils/authLink.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/dist/index--qJZSyMc.js.map +0 -4
  27. package/dist/index-mGCA01Pj.cjs.map +0 -4
@@ -14,8 +14,8 @@ export declare const museClient: ApolloClient;
14
14
  /**
15
15
  * Muse client that authenticates every operation — queries included — with the
16
16
  * logged-in user's Bearer token (falls back to X-Project-Token when no user
17
- * token exists). Used by PagesContentComponent (/pages/home) so its Blog query
18
- * and UpdateBlogMetadata mutation both carry the Authorization header.
17
+ * token exists). Kept available for components that genuinely require user
18
+ * authentication on every request.
19
19
  */
20
20
  export declare const museUserAuthClient: ApolloClient;
21
21
  export declare const recipeClient: ApolloClient;
@@ -1 +1 @@
1
- {"version":3,"file":"apolloClient.d.ts","sourceRoot":"","sources":["../../src/utils/apolloClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA8C,MAAM,gBAAgB,CAAC;AAK1F,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,EACX,UAAU;IACR,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,WAAW,CAAC,EACR,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,YAAY,GACZ,UAAU,GACV,SAAS,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACxC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,iBAuCF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,KAAK,MAAM,EACX,UAAU;IACR,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,WAAW,CAAC,EACR,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,YAAY,GACZ,UAAU,GACV,SAAS,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;CACzC,iBAuCF,CAAC;AAEF,eAAO,MAAM,UAAU,cAAiE,CAAC;AAEzF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,cAG9B,CAAC;AAEF,eAAO,MAAM,YAAY,cAAmE,CAAC;AAI7F,eAAO,MAAM,eAAe,oBAW3B,CAAC"}
1
+ {"version":3,"file":"apolloClient.d.ts","sourceRoot":"","sources":["../../src/utils/apolloClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA8C,MAAM,gBAAgB,CAAC;AAK1F,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,EACX,UAAU;IACR,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,WAAW,CAAC,EACR,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,YAAY,GACZ,UAAU,GACV,SAAS,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACxC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,iBAuCF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,KAAK,MAAM,EACX,UAAU;IACR,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,WAAW,CAAC,EACR,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,YAAY,GACZ,UAAU,GACV,SAAS,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;CACzC,iBAwCF,CAAC;AAEF,eAAO,MAAM,UAAU,cAAiE,CAAC;AAEzF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,cAG9B,CAAC;AAEF,eAAO,MAAM,YAAY,cAAmE,CAAC;AAI7F,eAAO,MAAM,eAAe,oBAW3B,CAAC"}
@@ -4,6 +4,12 @@ export interface AuthLinkOptions {
4
4
  }>;
5
5
  /** When true, both queries and mutations are authenticated with the user's Bearer token. */
6
6
  requiresUserAuth?: boolean;
7
+ /**
8
+ * When false, the user's Bearer token is never attached — every operation
9
+ * authenticates with the project token. Use for non-Muse services (e.g.
10
+ * Dolos) that only accept X-Project-Token.
11
+ */
12
+ allowUserAuth?: boolean;
7
13
  }
8
14
  /**
9
15
  * Authentication link that separates query and mutation authentication:
@@ -14,6 +20,8 @@ export interface AuthLinkOptions {
14
20
  * - Mutations executed before a user token exists (e.g. the login
15
21
  * mutations themselves) fall back to `x-project-token` so the
16
22
  * authentication flow keeps working.
23
+ * - `updateBlogMetadata` sends the user's Bearer token together with its
24
+ * `tenant_id` argument, but does not fall back to `x-project-token`.
17
25
  */
18
26
  export declare const createAuthLink: (options?: AuthLinkOptions) => import('@apollo/client/link/context').SetContextLink;
19
27
  //# sourceMappingURL=authLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authLink.d.ts","sourceRoot":"","sources":["../../src/utils/authLink.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrD,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAOD;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,eAAe,yDAmCvD,CAAC"}
1
+ {"version":3,"file":"authLink.d.ts","sourceRoot":"","sources":["../../src/utils/authLink.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrD,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAiBD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,eAAe,yDAmDvD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wazobiatech/wazui",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "private": false,
5
5
  "description": "`@repo/wazui` is a React component library that provides a set of reusable UI components, hooks, and providers for building modern web applications. It is built with TypeScript, Tailwind CSS, and integrates Shadcn UI components.",
6
6
  "homepage": "https://bitbucket.org/wazobiatech/wazui#readme",
@@ -1,4 +0,0 @@
1
- [diffend] Oversized file quarantined before diffing.
2
- name: package/dist/index--qJZSyMc.js.map
3
- size: 35705942 bytes
4
- sha256: 28a76bf877f003be871f19d63b11f872ae7665d050ae0f7d79264bedde5d0448
@@ -1,4 +0,0 @@
1
- [diffend] Oversized file quarantined before diffing.
2
- name: package/dist/index-mGCA01Pj.cjs.map
3
- size: 35440165 bytes
4
- sha256: c4c19639e186732b8cad1560af9a363757c97d7ec77d1b5020d79aab348d81ea