@griddo/cx 11.10.4-rc.3 → 11.10.5
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/build/commands/end-render.js +12 -12
- package/build/commands/end-render.js.map +4 -4
- package/build/commands/prepare-assets-directory.js +3 -3
- package/build/commands/prepare-assets-directory.js.map +4 -4
- package/build/commands/prepare-domains-render.js +9 -9
- package/build/commands/prepare-domains-render.js.map +4 -4
- package/build/commands/reset-render.js +10 -10
- package/build/commands/reset-render.js.map +4 -4
- package/build/commands/start-render.js +19 -19
- package/build/commands/start-render.js.map +4 -4
- package/build/commands/upload-search-content.js +7 -7
- package/build/commands/upload-search-content.js.map +4 -4
- package/build/index.js +1 -110
- package/build/react/GriddoIntegrations/utils.d.ts +1 -2
- package/build/react/index.js +3 -1
- package/build/shared/endpoints.d.ts +2 -1
- package/exporter/react/GriddoIntegrations/index.tsx +9 -11
- package/exporter/react/GriddoIntegrations/utils.ts +0 -17
- package/exporter/services/api.ts +1 -5
- package/exporter/services/auth.ts +1 -5
- package/exporter/shared/endpoints.ts +2 -0
- package/package.json +4 -3
- package/build/shared/headers.d.ts +0 -5
- package/exporter/shared/headers.ts +0 -7
package/build/index.js
CHANGED
|
@@ -345,112 +345,6 @@ var SEARCH = `${GRIDDO_API_URL2}/search`;
|
|
|
345
345
|
var SETTINGS = `${GRIDDO_API_URL2}/settings`;
|
|
346
346
|
var SITE_URI = `${GRIDDO_API_URL2}/site/`;
|
|
347
347
|
|
|
348
|
-
// package.json
|
|
349
|
-
var package_default = {
|
|
350
|
-
name: "@griddo/cx",
|
|
351
|
-
description: "Griddo SSG based on Gatsby",
|
|
352
|
-
version: "11.10.4-rc.3",
|
|
353
|
-
authors: [
|
|
354
|
-
"Hisco <francis.vega@griddo.io>"
|
|
355
|
-
],
|
|
356
|
-
license: "UNLICENSED",
|
|
357
|
-
homepage: "https://griddo.io",
|
|
358
|
-
repository: {
|
|
359
|
-
type: "git",
|
|
360
|
-
url: "https://github.com/griddo/griddo"
|
|
361
|
-
},
|
|
362
|
-
bin: {
|
|
363
|
-
"griddo-render": "cli.mjs"
|
|
364
|
-
},
|
|
365
|
-
exports: {
|
|
366
|
-
".": {
|
|
367
|
-
import: "./build/index.js",
|
|
368
|
-
require: "./build/index.js",
|
|
369
|
-
types: "./build/index.d.ts"
|
|
370
|
-
},
|
|
371
|
-
"./react": {
|
|
372
|
-
import: "./build/react/index.js",
|
|
373
|
-
require: "./build/react/index.js",
|
|
374
|
-
types: "./build/react/index.d.ts"
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
scripts: {
|
|
378
|
-
"// NPM": "",
|
|
379
|
-
prepare: "yarn run build",
|
|
380
|
-
"// BUILD": "",
|
|
381
|
-
build: "rm -rf build && sh ./exporter/build.sh",
|
|
382
|
-
"build:debug": "rm -rf build && sh ./exporter/build.sh --debug",
|
|
383
|
-
"// TESTS": "",
|
|
384
|
-
test: "npm run test:compile && npm run test:create-render-fixtures && node --env-file=.env --test ./build/__tests__/* && npm run test:remove-render-fixtures",
|
|
385
|
-
"test-exporter": "npm run test:compile && node --env-file=.env --test ./build/__tests__exporter__/",
|
|
386
|
-
"test:create-render-fixtures": "node --env-file=.env ./build/__tests__/utils/create-fixtures",
|
|
387
|
-
"test:remove-render-fixtures": "node --env-file=.env ./build/__tests__/utils/remove-fixtures",
|
|
388
|
-
"test:compile": "tsgo --project tsconfig.tests.json",
|
|
389
|
-
"// INFRA SCRIPTS": "",
|
|
390
|
-
"prepare-domains-render": "node ./build/commands/prepare-domains-render",
|
|
391
|
-
"start-render": "node ./build/commands/start-render",
|
|
392
|
-
"end-render": "node ./build/commands/end-render",
|
|
393
|
-
"upload-search-content": "node ./build/commands/upload-search-content",
|
|
394
|
-
"reset-render": "node ./build/commands/reset-render",
|
|
395
|
-
"// ONLY LOCAL SCRIPTS": "",
|
|
396
|
-
"prepare-assets-directory": "node ./build/commands/prepare-assets-directory",
|
|
397
|
-
"create-rollback-copy": "rm -rf ../../exports-backup && cp -r ../../exports ../../exports-backup",
|
|
398
|
-
render: "npm run build && node --env-file=.env cli.mjs render --root=../..",
|
|
399
|
-
"// LINTER & FORMATTER": "",
|
|
400
|
-
lint: "biome check --write",
|
|
401
|
-
format: "biome format --write",
|
|
402
|
-
flint: "npm run lint && npm run format",
|
|
403
|
-
"ts-lint": "tsgo --noEmit",
|
|
404
|
-
"watch:ts-lint": "tsc --noEmit --watch"
|
|
405
|
-
},
|
|
406
|
-
dependencies: {
|
|
407
|
-
gatsby: "5.15.0"
|
|
408
|
-
},
|
|
409
|
-
devDependencies: {
|
|
410
|
-
"@biomejs/biome": "2.3.4",
|
|
411
|
-
"@types/node": "20.19.4",
|
|
412
|
-
"@typescript/native-preview": "latest",
|
|
413
|
-
cheerio: "1.1.2",
|
|
414
|
-
esbuild: "0.25.12",
|
|
415
|
-
"p-limit": "7.2.0",
|
|
416
|
-
typescript: "5.9.3"
|
|
417
|
-
},
|
|
418
|
-
peerDependencies: {
|
|
419
|
-
"@griddo/core": "11.9.16",
|
|
420
|
-
react: ">=18 <19",
|
|
421
|
-
"react-dom": ">=18 <19"
|
|
422
|
-
},
|
|
423
|
-
engines: {
|
|
424
|
-
node: ">=20.19"
|
|
425
|
-
},
|
|
426
|
-
files: [
|
|
427
|
-
"build",
|
|
428
|
-
"exporter",
|
|
429
|
-
"src",
|
|
430
|
-
"gatsby-browser.tsx",
|
|
431
|
-
"gatsby-config.ts",
|
|
432
|
-
"gatsby-node.ts",
|
|
433
|
-
"gatsby-ssr.tsx",
|
|
434
|
-
"global.d.ts",
|
|
435
|
-
"tsconfig.commands.json",
|
|
436
|
-
"tsconfig.exporter.json",
|
|
437
|
-
"tsconfig.json",
|
|
438
|
-
"plugins",
|
|
439
|
-
"cli.mjs"
|
|
440
|
-
],
|
|
441
|
-
publishConfig: {
|
|
442
|
-
access: "public"
|
|
443
|
-
},
|
|
444
|
-
gitHead: "bcd57d7f4aeeb8a1d939c464fd44ac26a5393103"
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
// exporter/shared/headers.ts
|
|
448
|
-
var DEFAULT_HEADERS = {
|
|
449
|
-
"x-application-id": "griddo-cx",
|
|
450
|
-
"x-client-version": package_default.version,
|
|
451
|
-
"x-client-name": "CX"
|
|
452
|
-
};
|
|
453
|
-
|
|
454
348
|
// exporter/services/auth.ts
|
|
455
349
|
var AuthService = class {
|
|
456
350
|
headers;
|
|
@@ -458,10 +352,7 @@ var AuthService = class {
|
|
|
458
352
|
try {
|
|
459
353
|
const response = await fetch(LOGIN, {
|
|
460
354
|
method: "POST",
|
|
461
|
-
headers:
|
|
462
|
-
"Content-Type": "application/json",
|
|
463
|
-
Connection: "close"
|
|
464
|
-
}),
|
|
355
|
+
headers: { "Content-Type": "application/json", Connection: "close" },
|
|
465
356
|
body: JSON.stringify({
|
|
466
357
|
username: GRIDDO_BOT_USER,
|
|
467
358
|
password: GRIDDO_BOT_PASSWORD
|
|
@@ -23,5 +23,4 @@ declare function composeAnalytics(siteScriptRaw?: string, dimensions?: Dimension
|
|
|
23
23
|
analyticsScript: string;
|
|
24
24
|
analyticsDimensions: string | null;
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
export { composeAnalytics, extractScriptContent, filterBodyIntegrationFromPosition, filterHeadIntegrations, filterPositionIntegrations, };
|
|
26
|
+
export { composeAnalytics, filterBodyIntegrationFromPosition, filterHeadIntegrations, filterPositionIntegrations, };
|