@timbenniks/contentstack-platform-sdk 0.1.4 → 0.1.5

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/README.md CHANGED
@@ -19,16 +19,16 @@ npm install @timbenniks/contentstack-platform-sdk
19
19
  ## Quick Start (CMA)
20
20
 
21
21
  ```ts
22
- import { createCMAClient } from "@timbenniks/contentstack-platform-sdk/cma"
22
+ import { createCMAClient } from "@timbenniks/contentstack-platform-sdk/cma";
23
23
 
24
24
  const cma = createCMAClient({
25
25
  region: "us",
26
26
  apiKey: "blt...",
27
27
  auth: { type: "management-token", token: "cms..." },
28
- })
28
+ });
29
29
 
30
- const entries = await cma.entries.listAll("blog_post")
31
- console.log(`Found ${entries.length} entries`)
30
+ const entries = await cma.entries.listAll("blog_post");
31
+ console.log(`Found ${entries.length} entries`);
32
32
  ```
33
33
 
34
34
  ## Regions
@@ -46,17 +46,17 @@ Supported regions:
46
46
  ## Subpath Imports
47
47
 
48
48
  ```ts
49
- import { createCMAClient } from "@timbenniks/contentstack-platform-sdk/cma"
50
- import { createBrandKitClient } from "@timbenniks/contentstack-platform-sdk/brandkit"
51
- import { createGenerativeAIClient } from "@timbenniks/contentstack-platform-sdk/generative-ai"
52
- import { imageTransform } from "@timbenniks/contentstack-platform-sdk/images"
53
- import { toHTML } from "@timbenniks/contentstack-platform-sdk/rte"
49
+ import { createCMAClient } from "@timbenniks/contentstack-platform-sdk/cma";
50
+ import { createBrandKitClient } from "@timbenniks/contentstack-platform-sdk/brandkit";
51
+ import { createGenerativeAIClient } from "@timbenniks/contentstack-platform-sdk/generative-ai";
52
+ import { imageTransform } from "@timbenniks/contentstack-platform-sdk/images";
53
+ import { toHTML } from "@timbenniks/contentstack-platform-sdk/rte";
54
54
  ```
55
55
 
56
56
  ## Documentation
57
57
 
58
- - Full docs: https://github.com/timbenniks/contentstack-platform-sdk/tree/main/packages/docs
59
- - Repository: https://github.com/timbenniks/contentstack-platform-sdk
58
+ - Full docs: https://github.com/timbenniks/platform-sdk/tree/main/packages/docs
59
+ - Repository: https://github.com/timbenniks/platform-sdk
60
60
 
61
61
  ## License
62
62
 
@@ -1,3 +1,6 @@
1
+ import {
2
+ ContentstackProvider
3
+ } from "../chunk-ARPJDW3A.mjs";
1
4
  import {
2
5
  useAssets,
3
6
  useBrandKit,
@@ -13,9 +16,6 @@ import {
13
16
  usePublishEntry,
14
17
  useUpdateEntry
15
18
  } from "../chunk-OGTRGKYK.mjs";
16
- import {
17
- ContentstackProvider
18
- } from "../chunk-ARPJDW3A.mjs";
19
19
  import {
20
20
  useContentstackContext
21
21
  } from "../chunk-K76DKSHJ.mjs";
package/dist/ui/index.mjs CHANGED
@@ -1,3 +1,11 @@
1
+ import {
2
+ colorVar,
3
+ colors,
4
+ fontVar,
5
+ spaceVar,
6
+ spacing,
7
+ typography
8
+ } from "../chunk-JL2E3EOT.mjs";
1
9
  import {
2
10
  CSS_TOKENS_PATH
3
11
  } from "../chunk-QGA4WBDC.mjs";
@@ -8,14 +16,6 @@ import {
8
16
  onThemeChange,
9
17
  setTheme
10
18
  } from "../chunk-BUZ6CQHE.mjs";
11
- import {
12
- colorVar,
13
- colors,
14
- fontVar,
15
- spaceVar,
16
- spacing,
17
- typography
18
- } from "../chunk-JL2E3EOT.mjs";
19
19
  export {
20
20
  CSS_TOKENS_PATH,
21
21
  colorVar,
@@ -1,9 +1,6 @@
1
1
  import {
2
- ContentstackAuthGuard,
3
- ContentstackLoginButton,
4
- ContentstackLogoutButton,
5
- useContentstackUser
6
- } from "../chunk-NKLOZ5VI.mjs";
2
+ ContentstackRichText
3
+ } from "../chunk-T5OIJQK7.mjs";
7
4
  import {
8
5
  useAssets,
9
6
  useBrandKit,
@@ -19,9 +16,6 @@ import {
19
16
  usePublishEntry,
20
17
  useUpdateEntry
21
18
  } from "../chunk-2BOUGPJ5.mjs";
22
- import {
23
- ContentstackRichText
24
- } from "../chunk-T5OIJQK7.mjs";
25
19
  import {
26
20
  ContentstackProvider
27
21
  } from "../chunk-QW7TVYOA.mjs";
@@ -29,6 +23,12 @@ import {
29
23
  CONTENTSTACK_KEY,
30
24
  useContentstackContext
31
25
  } from "../chunk-LPVVA5J3.mjs";
26
+ import {
27
+ ContentstackAuthGuard,
28
+ ContentstackLoginButton,
29
+ ContentstackLogoutButton,
30
+ useContentstackUser
31
+ } from "../chunk-NKLOZ5VI.mjs";
32
32
  import "../chunk-7VFGD32I.mjs";
33
33
  import "../chunk-T5A2E2RI.mjs";
34
34
  import "../chunk-VW7DD6HV.mjs";
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "@timbenniks/contentstack-platform-sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Unified TypeScript SDK for building apps on Contentstack",
5
5
  "type": "module",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.css"
8
+ ],
7
9
  "engines": {
8
10
  "node": ">=18"
9
11
  },
@@ -151,7 +153,12 @@
151
153
  "import": "./dist/ui/css/index.mjs",
152
154
  "require": "./dist/ui/css/index.cjs"
153
155
  },
154
- "./ui/tokens.css": "./dist/ui/tokens.css"
156
+ "./ui/tokens.css": {
157
+ "style": "./dist/ui/tokens.css",
158
+ "import": "./dist/ui/tokens.css",
159
+ "default": "./dist/ui/tokens.css"
160
+ },
161
+ "./dist/ui/tokens.css": "./dist/ui/tokens.css"
155
162
  },
156
163
  "scripts": {
157
164
  "build": "tsup",