@knapsack/rendering-utils 4.77.0--canary.5638.67c8cf0.0 → 4.77.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.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/CHANGELOG.md +33 -0
- package/dist/rendering.d.ts +7 -3
- package/dist/rendering.d.ts.map +1 -1
- package/dist/rendering.js +1 -2
- package/dist/rendering.js.map +1 -1
- package/package.json +7 -7
- package/src/rendering.ts +8 -10
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-lint.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
# v4.77.0 (Thu Mar 13 2025)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- KSP-6200: proper var name in var ref [#5778](https://github.com/knapsack-labs/app-monorepo/pull/5778) ([@illepic](https://github.com/illepic))
|
|
6
|
+
|
|
7
|
+
#### 🐛 Bug Fix
|
|
8
|
+
|
|
9
|
+
- Merge branch 'latest' into feature/ksp-6069-fix-and-test-bitbucket-dc-provider ([@freneticpixel](https://github.com/freneticpixel))
|
|
10
|
+
|
|
11
|
+
#### 🏠 Internal
|
|
12
|
+
|
|
13
|
+
- Bitbucket DC updates [#5652](https://github.com/knapsack-labs/app-monorepo/pull/5652) ([@freneticpixel](https://github.com/freneticpixel))
|
|
14
|
+
|
|
15
|
+
#### Authors: 2
|
|
16
|
+
|
|
17
|
+
- Christopher Bloom ([@illepic](https://github.com/illepic))
|
|
18
|
+
- Jim Frenette ([@freneticpixel](https://github.com/freneticpixel))
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# v4.76.3 (Mon Mar 10 2025)
|
|
23
|
+
|
|
24
|
+
#### 🏠 Internal
|
|
25
|
+
|
|
26
|
+
- Update sds_extended view ddl generator [#5443](https://github.com/knapsack-labs/app-monorepo/pull/5443) ([@greylabel](https://github.com/greylabel))
|
|
27
|
+
|
|
28
|
+
#### Authors: 1
|
|
29
|
+
|
|
30
|
+
- Grant Gaudet ([@greylabel](https://github.com/greylabel))
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
1
34
|
# v4.76.1 (Wed Mar 05 2025)
|
|
2
35
|
|
|
3
36
|
#### 🐛 Bug Fix
|
package/dist/rendering.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { KsAppClientData, KsAppClientDataNoMeta, RenderDataDemo, ContentStateForRendering } from '@knapsack/types';
|
|
2
2
|
export declare function getContentStateFromAppClientData({ patterns, demosById, }: {
|
|
3
3
|
patterns: KsAppClientDataNoMeta['patternsState']['patterns'];
|
|
4
4
|
demosById: KsAppClientDataNoMeta['db']['demos']['byId'];
|
|
@@ -13,7 +13,11 @@ export declare function getContentStateFromAppClientData({ patterns, demosById,
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function inlineDemoData({ demosById, demo, collectionsParentKey, }: {
|
|
15
15
|
demosById: KsAppClientData['db']['demos']['byId'];
|
|
16
|
-
demo: Extract<RenderDataDemo,
|
|
16
|
+
demo: Extract<RenderDataDemo, {
|
|
17
|
+
type: 'data';
|
|
18
|
+
}>;
|
|
17
19
|
collectionsParentKey: string;
|
|
18
|
-
}): Extract<RenderDataDemo,
|
|
20
|
+
}): Extract<RenderDataDemo, {
|
|
21
|
+
type: 'data';
|
|
22
|
+
}>;
|
|
19
23
|
//# sourceMappingURL=rendering.d.ts.map
|
package/dist/rendering.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rendering.d.ts","sourceRoot":"","sources":["../src/rendering.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"rendering.d.ts","sourceRoot":"","sources":["../src/rendering.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AAGzB,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC,UAAU,CAAC,CAAC;IAC7D,SAAS,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;CACzD,GAAG,wBAAwB,CAmC3B;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,IAAI,EACJ,oBAAoB,GACrB,EAAE;IACD,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IAClD,IAAI,EAAE,OAAO,CAAC,cAAc,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,oBAAoB,EAAE,MAAM,CAAC;CAC9B,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAyC5C"}
|
package/dist/rendering.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isEmpty, produce } from '@knapsack/utils';
|
|
2
|
-
import { isDemoWithData, } from '@knapsack/types';
|
|
3
2
|
import { convertSlotOptions } from './slot-layout-options-utils.js';
|
|
4
3
|
export function getContentStateFromAppClientData({ patterns, demosById, }) {
|
|
5
4
|
return {
|
|
@@ -64,7 +63,7 @@ export function inlineDemoData({ demosById, demo, collectionsParentKey, }) {
|
|
|
64
63
|
if (!slottedDemo) {
|
|
65
64
|
throw new Error(`slottedDemo, ${slottedData.demoId} not found in ${draft.id}`);
|
|
66
65
|
}
|
|
67
|
-
if (
|
|
66
|
+
if (slottedDemo.type === 'data') {
|
|
68
67
|
// For backwards compatibility with older App Client's we're putting these ids on the slottedData.
|
|
69
68
|
// It was removed in commit linked below since we have had it in `slottedDemo` for a while now.
|
|
70
69
|
// https://github.com/knapsack-labs/app-monorepo/commit/bb623913f9f317d1c4262355764972b6727f0951#diff-869a9617126324391ef651d0f7eaf12f0c6b2fc427dfd26dcb3862e4ee6e24c7
|
package/dist/rendering.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rendering.js","sourceRoot":"","sources":["../src/rendering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"rendering.js","sourceRoot":"","sources":["../src/rendering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAOnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,UAAU,gCAAgC,CAAC,EAC/C,QAAQ,EACR,SAAS,GAIV;IACC,OAAO;QACL,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;;YACxD,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG;gBAChB,EAAE,EAAE,OAAO,CAAC,EAAE;gBACd,aAAa,EACX,CAAA,MAAA,OAAO,CAAC,SAAS,0CAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;oBAC/B,IAAI,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,CAAA,EAAE,CAAC;wBAChB,OAAO,EAAE,CAAC;oBACZ,CAAC;oBACD,OAAO,CAAC,CAAC,OAAO;yBACb,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;wBACd,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;wBAC/B,OAAO;4BACL,GAAG,IAAI;4BACP,UAAU,EAAE,CAAC,CAAC,EAAE;4BAChB,kBAAkB,EAAE,CAAC,CAAC,kBAAkB;yBACzC,CAAC;oBACJ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W;oBACX,oBAAoB;iBACrB,CAAC,CAAC;YACL,CAAC;YACD,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;gBACnC,IAAI,WAAW,CAAC,IAAI,KAAK,eAAe;oBAAE,OAAO;gBACjD,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;gBAClD,IAAI,CAAC,WAAW,EAAE,CAAC;oBACjB,MAAM,IAAI,KAAK,CACb,gBAAgB,WAAW,CAAC,MAAM,iBAAiB,KAAK,CAAC,EAAE,EAAE,CAC9D,CAAC;gBACJ,CAAC;gBAED,IAAI,WAAW,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;oBAChC,kGAAkG;oBAClG,+FAA+F;oBAC/F,sKAAsK;oBACtK,6BAA6B;oBAC7B,WAAW,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;oBAC9C,6BAA6B;oBAC7B,WAAW,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;oBAChD,wEAAwE;oBACxE,WAAW,CAAC,IAAI,GAAG,cAAc,CAAC;wBAChC,SAAS;wBACT,IAAI,EAAE,WAAW;wBACjB,oBAAoB;qBACrB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knapsack/rendering-utils",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "4.77.0
|
|
4
|
+
"version": "4.77.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"lint": "eslint ./"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@knapsack/utils": "4.77.0
|
|
21
|
+
"@knapsack/utils": "4.77.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@knapsack/eslint-config-starter": "4.77.0
|
|
25
|
-
"@knapsack/prettier-config": "4.77.0
|
|
26
|
-
"@knapsack/types": "4.77.0
|
|
27
|
-
"@knapsack/typescript-config-starter": "4.77.0
|
|
24
|
+
"@knapsack/eslint-config-starter": "4.77.0",
|
|
25
|
+
"@knapsack/prettier-config": "4.77.0",
|
|
26
|
+
"@knapsack/types": "4.77.0",
|
|
27
|
+
"@knapsack/typescript-config-starter": "4.77.0",
|
|
28
28
|
"eslint": "^8.57.0",
|
|
29
29
|
"typescript": "^5.7.3"
|
|
30
30
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"directory": "libs/rendering-utils",
|
|
38
38
|
"type": "git"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c0a38469e19fe1f41b33f7eb137ab4301f4001a1"
|
|
41
41
|
}
|
package/src/rendering.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { isEmpty, produce } from '@knapsack/utils';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type DemoWithData,
|
|
8
|
-
isDemoWithData,
|
|
2
|
+
import type {
|
|
3
|
+
KsAppClientData,
|
|
4
|
+
KsAppClientDataNoMeta,
|
|
5
|
+
RenderDataDemo,
|
|
6
|
+
ContentStateForRendering,
|
|
9
7
|
} from '@knapsack/types';
|
|
10
8
|
import { convertSlotOptions } from './slot-layout-options-utils.js';
|
|
11
9
|
|
|
@@ -66,9 +64,9 @@ export function inlineDemoData({
|
|
|
66
64
|
collectionsParentKey,
|
|
67
65
|
}: {
|
|
68
66
|
demosById: KsAppClientData['db']['demos']['byId'];
|
|
69
|
-
demo: Extract<RenderDataDemo,
|
|
67
|
+
demo: Extract<RenderDataDemo, { type: 'data' }>;
|
|
70
68
|
collectionsParentKey: string;
|
|
71
|
-
}): Extract<RenderDataDemo,
|
|
69
|
+
}): Extract<RenderDataDemo, { type: 'data' }> {
|
|
72
70
|
if (Object.keys(demo.data.slots || {}).length === 0) return demo;
|
|
73
71
|
return produce(demo, (draft) => {
|
|
74
72
|
Object.entries(draft.data.slots || {}).forEach(
|
|
@@ -90,7 +88,7 @@ export function inlineDemoData({
|
|
|
90
88
|
);
|
|
91
89
|
}
|
|
92
90
|
|
|
93
|
-
if (
|
|
91
|
+
if (slottedDemo.type === 'data') {
|
|
94
92
|
// For backwards compatibility with older App Client's we're putting these ids on the slottedData.
|
|
95
93
|
// It was removed in commit linked below since we have had it in `slottedDemo` for a while now.
|
|
96
94
|
// https://github.com/knapsack-labs/app-monorepo/commit/bb623913f9f317d1c4262355764972b6727f0951#diff-869a9617126324391ef651d0f7eaf12f0c6b2fc427dfd26dcb3862e4ee6e24c7
|