@code.store/arcxp-sdk-ts 5.1.8 → 5.3.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.
@@ -1,5 +1,3 @@
1
- export * as ANS from './ans-types';
2
- export * as TypeUtils from './utils';
3
1
  export * from '../api/author/types.js';
4
2
  export * from '../api/content/types.js';
5
3
  export * from '../api/content-ops/types.js';
@@ -17,3 +15,5 @@ export * from '../api/site/types.js';
17
15
  export * from '../api/tags/types.js';
18
16
  export * from '../api/websked/types.js';
19
17
  export * from '../content-elements/types.js';
18
+ export * as ANS from './ans-types';
19
+ export * as TypeUtils from './utils';
@@ -1,4 +1,4 @@
1
- import type { ContentElementType } from '../../content-elements/types.js';
1
+ import type { CElement, ContentElementType } from '../../content-elements/types.js';
2
2
  export declare function youtubeURLParser(url?: string | null): string | undefined;
3
3
  export declare function twitterURLParser(url: string): string | undefined;
4
4
  export declare function instagramURLParser(url: string): string | undefined;
@@ -7,3 +7,5 @@ export declare function facebookVideoURLParser(url: string): string | undefined;
7
7
  export declare function facebookPostURLParser(url: string): string | undefined;
8
8
  export declare function createSocial(url?: string): ContentElementType<'instagram' | 'tiktok' | 'youtube' | 'twitter'>[];
9
9
  export declare const randomId: () => string;
10
+ export declare const isTextCE: (ce?: CElement) => ce is ContentElementType<"text">;
11
+ export declare const decodeHTMLEntities: (str: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code.store/arcxp-sdk-ts",
3
- "version": "5.1.8",
3
+ "version": "5.3.0",
4
4
  "description": "A strongly typed set of ArcXP API's and utilities reduce the amount of work required to develop with ArcXP, starting with reducing the boilerplate code you have to write.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,9 @@
24
24
  "url": "git+https://github.com/code-store-platform/arcxp-sdk-ts.git"
25
25
  },
26
26
  "homepage": "https://github.com/code-store-platform/arcxp-sdk-ts",
27
- "files": ["dist"],
27
+ "files": [
28
+ "dist"
29
+ ],
28
30
  "scripts": {
29
31
  "build": "tsc --noEmit && rollup -c",
30
32
  "format": "npx @biomejs/biome format --write .",
@@ -35,7 +37,11 @@
35
37
  "gen:ts": "npx tsx ./src/scripts/json-schema-to-ts.ts",
36
38
  "cs": "npx changeset && npx changeset version"
37
39
  },
38
- "keywords": ["ArcXP", "SDK", "Code.Store"],
40
+ "keywords": [
41
+ "ArcXP",
42
+ "SDK",
43
+ "Code.Store"
44
+ ],
39
45
  "author": "code.store",
40
46
  "license": "MIT",
41
47
  "dependencies": {
@@ -47,10 +53,11 @@
47
53
  "html-entities": "^2.5.2",
48
54
  "node-html-parser": "^7.0.1",
49
55
  "uuid": "^9.0.1",
50
- "ws": "^8.14.0"
56
+ "ws": "^8.14.0",
57
+ "xmldoc": "^2.0.3"
51
58
  },
52
59
  "devDependencies": {
53
- "@biomejs/biome": "^1.9.4",
60
+ "@biomejs/biome": "^2.3.13",
54
61
  "@changesets/changelog-github": "^0.4.8",
55
62
  "@changesets/cli": "^2.26.2",
56
63
  "@rollup/plugin-alias": "^5.1.1",