@symbo.ls/sync 2.34.1 → 2.34.4

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/dist/cjs/index.js CHANGED
@@ -145,6 +145,20 @@ const onOps = (el, s, ctx) => (payload = {}) => {
145
145
  changes,
146
146
  Array.isArray(changes) ? [] : {}
147
147
  );
148
+ if (ctx.forceDomql3) {
149
+ for (const key in changes.components) {
150
+ if (!key.includes("smbls.") && changes.components.hasOwnProperty(key)) {
151
+ changes.components[key] = temporaryDomqlHackReverse(
152
+ changes.components[key]
153
+ );
154
+ }
155
+ }
156
+ for (const key in changes.pages) {
157
+ if (changes.pages.hasOwnProperty(key)) {
158
+ changes.pages[key] = temporaryDomqlHackReverse(changes.pages[key]);
159
+ }
160
+ }
161
+ }
148
162
  const changed = applyOpsToCtx(ctx, changes);
149
163
  if (changed.has("state")) {
150
164
  const route = (_a = ctx.state) == null ? void 0 : _a.route;
package/dist/esm/index.js CHANGED
@@ -119,6 +119,20 @@ const onOps = (el, s, ctx) => (payload = {}) => {
119
119
  changes,
120
120
  Array.isArray(changes) ? [] : {}
121
121
  );
122
+ if (ctx.forceDomql3) {
123
+ for (const key in changes.components) {
124
+ if (!key.includes("smbls.") && changes.components.hasOwnProperty(key)) {
125
+ changes.components[key] = temporaryDomqlHackReverse(
126
+ changes.components[key]
127
+ );
128
+ }
129
+ }
130
+ for (const key in changes.pages) {
131
+ if (changes.pages.hasOwnProperty(key)) {
132
+ changes.pages[key] = temporaryDomqlHackReverse(changes.pages[key]);
133
+ }
134
+ }
135
+ }
122
136
  const changed = applyOpsToCtx(ctx, changes);
123
137
  if (changed.has("state")) {
124
138
  const route = (_a = ctx.state) == null ? void 0 : _a.route;
package/index.js CHANGED
@@ -151,6 +151,22 @@ const onOps =
151
151
  Array.isArray(changes) ? [] : {}
152
152
  )
153
153
 
154
+ // Iterate over components and pages to run domql3hack
155
+ if (ctx.forceDomql3) {
156
+ for (const key in changes.components) {
157
+ if (!key.includes('smbls.') && changes.components.hasOwnProperty(key)) {
158
+ changes.components[key] = temporaryDomqlHackReverse(
159
+ changes.components[key]
160
+ )
161
+ }
162
+ }
163
+ for (const key in changes.pages) {
164
+ if (changes.pages.hasOwnProperty(key)) {
165
+ changes.pages[key] = temporaryDomqlHackReverse(changes.pages[key])
166
+ }
167
+ }
168
+ }
169
+
154
170
  const changed = applyOpsToCtx(ctx, changes)
155
171
 
156
172
  // React to specific top-level changes
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/sync",
3
- "version": "2.34.1",
3
+ "version": "2.34.4",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
- "gitHead": "3c567c8ea21e3c14d9d88f96fb6aaa48d6296cba",
6
+ "gitHead": "24af4cb709642223c3fa555fa6fb954570c31b6b",
7
7
  "files": [
8
8
  "*.js",
9
9
  "dist"
@@ -29,12 +29,12 @@
29
29
  "prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs"
30
30
  },
31
31
  "dependencies": {
32
- "@domql/router": "^2.34.1",
33
- "@domql/utils": "^2.34.1",
34
- "@symbo.ls/init": "^2.34.1",
35
- "@symbo.ls/scratch": "^2.34.1",
36
- "@symbo.ls/socket": "^2.34.1",
37
- "@symbo.ls/uikit": "^2.34.1",
32
+ "@domql/router": "^2.34.4",
33
+ "@domql/utils": "^2.34.4",
34
+ "@symbo.ls/init": "^2.34.4",
35
+ "@symbo.ls/scratch": "^2.34.4",
36
+ "@symbo.ls/socket": "^2.34.4",
37
+ "@symbo.ls/uikit": "^2.34.4",
38
38
  "socket.io-client": "^4.8.1"
39
39
  },
40
40
  "devDependencies": {