@cntrl-site/sdk-nextjs 1.9.13-5 → 1.9.13-7

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.
@@ -151,7 +151,7 @@ class InteractionsRegistry {
151
151
  notifyScroll(position) {
152
152
  var _a, _b, _c;
153
153
  const timestamp = Date.now();
154
- const item = this.items.find((item) => item.id === 'FYUIEGBF');
154
+ const item = this.items.find((item) => item.id === this.items[0].id);
155
155
  const testtop = item.area[this.layoutId].top;
156
156
  for (const interaction of this.interactions) {
157
157
  const currentStateId = this.getCurrentStateByInteractionId(interaction.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "1.9.13-5",
3
+ "version": "1.9.13-7",
4
4
  "description": "SDK for Next.js",
5
5
  "author": "arsen@momdesign.nyc",
6
6
  "license": "MIT",
@@ -159,7 +159,7 @@ export class InteractionsRegistry implements InteractionsRegistryPort {
159
159
 
160
160
  notifyScroll(position: number) {
161
161
  const timestamp = Date.now();
162
- const item = this.items.find((item) => item.id === 'FYUIEGBF')!;
162
+ const item = this.items.find((item) => item.id === this.items[0].id)!;
163
163
  const testtop = item.area[this.layoutId].top;
164
164
  for (const interaction of this.interactions) {
165
165
  const currentStateId = this.getCurrentStateByInteractionId(interaction.id);