@se-studio/contentful-rest-api 1.0.105 → 1.0.107
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @se-studio/contentful-rest-api
|
|
2
2
|
|
|
3
|
+
## 1.0.107
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bulk version bump: patch for all packages
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @se-studio/core-data-types@1.0.107
|
|
10
|
+
|
|
11
|
+
## 1.0.106
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Bulk version bump: patch for all packages
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @se-studio/core-data-types@1.0.106
|
|
18
|
+
|
|
3
19
|
## 1.0.105
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -5,7 +5,7 @@ import type { ContentfulConfig, FetchOptions } from '../types';
|
|
|
5
5
|
* Fetches a single component, collection, or external component entry from Contentful
|
|
6
6
|
* by entry ID and returns it as a base-converted typed object.
|
|
7
7
|
*
|
|
8
|
-
* Intended for use in dev-only preview render routes (`/cms
|
|
8
|
+
* Intended for use in dev-only preview render routes (`/cms/preview/render?id=`).
|
|
9
9
|
* Always fetches from the Preview API to show draft content.
|
|
10
10
|
*
|
|
11
11
|
* @param context - Base converter context (URL calculators, resolvers)
|
|
@@ -39,7 +39,7 @@ export declare function contentfulAnyEntryRest(context: BaseConverterContext, co
|
|
|
39
39
|
* Fetches a single component, collection, or external component entry from Contentful
|
|
40
40
|
* by entry ID and returns it as a base-converted typed object.
|
|
41
41
|
*
|
|
42
|
-
* Intended for use in dev-only preview render routes (`/cms
|
|
42
|
+
* Intended for use in dev-only preview render routes (`/cms/preview/render?id=`).
|
|
43
43
|
* Always fetches from the Preview API to show draft content.
|
|
44
44
|
* For person entries use contentfulAnyEntryRest instead.
|
|
45
45
|
*
|
|
@@ -62,7 +62,7 @@ export async function contentfulAnyEntryRest(context, config, entryId, options)
|
|
|
62
62
|
* Fetches a single component, collection, or external component entry from Contentful
|
|
63
63
|
* by entry ID and returns it as a base-converted typed object.
|
|
64
64
|
*
|
|
65
|
-
* Intended for use in dev-only preview render routes (`/cms
|
|
65
|
+
* Intended for use in dev-only preview render routes (`/cms/preview/render?id=`).
|
|
66
66
|
* Always fetches from the Preview API to show draft content.
|
|
67
67
|
* For person entries use contentfulAnyEntryRest instead.
|
|
68
68
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svgProcessor.d.ts","sourceRoot":"","sources":["../../src/converters/svgProcessor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMlE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"svgProcessor.d.ts","sourceRoot":"","sources":["../../src/converters/svgProcessor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMlE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAkB9E"}
|
|
@@ -36,10 +36,7 @@ export function processSvgForSprite(svgContent, iconId) {
|
|
|
36
36
|
if (!innerContentMatch) {
|
|
37
37
|
throw new Error(`Invalid SVG content: could not parse SVG structure`);
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
// Remove width and height attributes from inner elements if they exist
|
|
41
|
-
// This ensures the symbol scales properly
|
|
42
|
-
innerContent = innerContent.replace(/\s(width|height)=["'][^"']*["']/gi, '');
|
|
39
|
+
const innerContent = innerContentMatch[1] ?? '';
|
|
43
40
|
// Create the symbol element
|
|
44
41
|
const symbolId = `icon-${iconId}`;
|
|
45
42
|
return `<symbol id="${symbolId}" viewBox="${viewBox}">${innerContent}</symbol>`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svgProcessor.js","sourceRoot":"","sources":["../../src/converters/svgProcessor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAW;IAC/C,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,4BAA4B,GAAG,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAAkB,EAAE,MAAc;IACpE,+CAA+C;IAC/C,4CAA4C;IAC5C,MAAM,YAAY,GAAG,UAAU,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACzE,MAAM,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IAE7D,uEAAuE;IACvE,sDAAsD;IACtD,MAAM,iBAAiB,GAAG,UAAU,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC1E,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"svgProcessor.js","sourceRoot":"","sources":["../../src/converters/svgProcessor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAW;IAC/C,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,4BAA4B,GAAG,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAAkB,EAAE,MAAc;IACpE,+CAA+C;IAC/C,4CAA4C;IAC5C,MAAM,YAAY,GAAG,UAAU,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACzE,MAAM,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IAE7D,uEAAuE;IACvE,sDAAsD;IACtD,MAAM,iBAAiB,GAAG,UAAU,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAC1E,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhD,4BAA4B;IAC5B,MAAM,QAAQ,GAAG,QAAQ,MAAM,EAAE,CAAC;IAClC,OAAO,eAAe,QAAQ,cAAc,OAAO,KAAK,YAAY,WAAW,CAAC;AAClF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@se-studio/contentful-rest-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.107",
|
|
4
4
|
"description": "Type-safe Contentful REST API client with caching and rate limiting for Next.js applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@contentful/rich-text-types": "^17.2.5",
|
|
51
51
|
"contentful": "^11.10.6",
|
|
52
52
|
"server-only": "0.0.1",
|
|
53
|
-
"@se-studio/core-data-types": "1.0.
|
|
53
|
+
"@se-studio/core-data-types": "1.0.107"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"next": ">=15.5.0"
|