@squiz/dxp-cli-next 5.33.0-develop.5 → 5.33.0-develop.6
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/bin/dxp.js +6 -1
- package/dist/dxp.js +4319 -0
- package/package.json +37 -29
- package/lib/ApiService.d.ts +0 -39
- package/lib/ApiService.js +0 -120
- package/lib/ApiService.spec.d.ts +0 -1
- package/lib/ApiService.spec.js +0 -182
- package/lib/ApplicationConfig.d.ts +0 -7
- package/lib/ApplicationConfig.js +0 -38
- package/lib/ApplicationConfig.spec.d.ts +0 -1
- package/lib/ApplicationConfig.spec.js +0 -84
- package/lib/ApplicationStore.d.ts +0 -13
- package/lib/ApplicationStore.js +0 -53
- package/lib/__tests__/cmp/dev-mode.spec.d.ts +0 -1
- package/lib/__tests__/cmp/dev-mode.spec.js +0 -54
- package/lib/__tests__/helpers.d.ts +0 -17
- package/lib/__tests__/helpers.js +0 -54
- package/lib/__tests__/integration/main.spec.d.ts +0 -1
- package/lib/__tests__/integration/main.spec.js +0 -45
- package/lib/__tests__/smoke/validate.spec.d.ts +0 -1
- package/lib/__tests__/smoke/validate.spec.js +0 -37
- package/lib/__tests__/unit/cli.d.ts +0 -0
- package/lib/__tests__/unit/cli.js +0 -7
- package/lib/auth/index.d.ts +0 -3
- package/lib/auth/index.js +0 -14
- package/lib/auth/login/login.d.ts +0 -22
- package/lib/auth/login/login.js +0 -268
- package/lib/auth/login/login.spec.d.ts +0 -1
- package/lib/auth/login/login.spec.js +0 -179
- package/lib/auth/logout/logout.d.ts +0 -3
- package/lib/auth/logout/logout.js +0 -115
- package/lib/auth/logout/logout.spec.d.ts +0 -1
- package/lib/auth/logout/logout.spec.js +0 -67
- package/lib/cdp/constants.d.ts +0 -1
- package/lib/cdp/constants.js +0 -4
- package/lib/cdp/index.d.ts +0 -3
- package/lib/cdp/index.js +0 -16
- package/lib/cdp/instance/activate/activate.d.ts +0 -5
- package/lib/cdp/instance/activate/activate.js +0 -107
- package/lib/cdp/instance/activate/activate.spec.d.ts +0 -1
- package/lib/cdp/instance/activate/activate.spec.js +0 -274
- package/lib/cdp/instance/instanceCommand.d.ts +0 -3
- package/lib/cdp/instance/instanceCommand.js +0 -15
- package/lib/cdp/schema/deploy/deploy.const.d.ts +0 -5
- package/lib/cdp/schema/deploy/deploy.const.js +0 -8
- package/lib/cdp/schema/deploy/deploy.d.ts +0 -4
- package/lib/cdp/schema/deploy/deploy.js +0 -107
- package/lib/cdp/schema/deploy/deploy.spec.d.ts +0 -1
- package/lib/cdp/schema/deploy/deploy.spec.js +0 -137
- package/lib/cdp/schema/schemaCommand.d.ts +0 -3
- package/lib/cdp/schema/schemaCommand.js +0 -15
- package/lib/cdp/utils.d.ts +0 -23
- package/lib/cdp/utils.js +0 -133
- package/lib/cmp/deploy.d.ts +0 -3
- package/lib/cmp/deploy.js +0 -124
- package/lib/cmp/dev-mode-ui.d.ts +0 -4
- package/lib/cmp/dev-mode-ui.js +0 -51
- package/lib/cmp/dev-mode.d.ts +0 -4
- package/lib/cmp/dev-mode.js +0 -58
- package/lib/cmp/edge-components/compiler.d.ts +0 -13
- package/lib/cmp/edge-components/compiler.js +0 -55
- package/lib/cmp/index.d.ts +0 -3
- package/lib/cmp/index.js +0 -18
- package/lib/cmp/init.d.ts +0 -3
- package/lib/cmp/init.js +0 -105
- package/lib/cmp/utils/definitions.d.ts +0 -481
- package/lib/cmp/utils/definitions.js +0 -262
- package/lib/cmp/utils/definitions.spec.d.ts +0 -1
- package/lib/cmp/utils/definitions.spec.js +0 -503
- package/lib/constants.d.ts +0 -1
- package/lib/constants.js +0 -4
- package/lib/datastore/blueprint/add/add.d.ts +0 -3
- package/lib/datastore/blueprint/add/add.js +0 -119
- package/lib/datastore/blueprint/add/add.spec.d.ts +0 -1
- package/lib/datastore/blueprint/add/add.spec.js +0 -134
- package/lib/datastore/blueprint/blueprintCommand.d.ts +0 -3
- package/lib/datastore/blueprint/blueprintCommand.js +0 -21
- package/lib/datastore/blueprint/list/list.d.ts +0 -3
- package/lib/datastore/blueprint/list/list.js +0 -76
- package/lib/datastore/blueprint/list/list.spec.d.ts +0 -1
- package/lib/datastore/blueprint/list/list.spec.js +0 -51
- package/lib/datastore/blueprint/rename/rename.d.ts +0 -3
- package/lib/datastore/blueprint/rename/rename.js +0 -93
- package/lib/datastore/blueprint/rename/rename.spec.d.ts +0 -1
- package/lib/datastore/blueprint/rename/rename.spec.js +0 -142
- package/lib/datastore/blueprint/update/update.d.ts +0 -3
- package/lib/datastore/blueprint/update/update.js +0 -89
- package/lib/datastore/blueprint/update/update.spec.d.ts +0 -1
- package/lib/datastore/blueprint/update/update.spec.js +0 -99
- package/lib/datastore/bundle/bundle.d.ts +0 -3
- package/lib/datastore/bundle/bundle.js +0 -176
- package/lib/datastore/bundle/bundle.spec.d.ts +0 -1
- package/lib/datastore/bundle/bundle.spec.js +0 -94
- package/lib/datastore/index.d.ts +0 -3
- package/lib/datastore/index.js +0 -16
- package/lib/datastore/simulator/add/add.d.ts +0 -3
- package/lib/datastore/simulator/add/add.js +0 -125
- package/lib/datastore/simulator/add/add.spec.d.ts +0 -1
- package/lib/datastore/simulator/add/add.spec.js +0 -114
- package/lib/datastore/simulator/clear/clear.d.ts +0 -3
- package/lib/datastore/simulator/clear/clear.js +0 -70
- package/lib/datastore/simulator/clear/clear.spec.d.ts +0 -1
- package/lib/datastore/simulator/clear/clear.spec.js +0 -224
- package/lib/datastore/simulator/list/list.d.ts +0 -3
- package/lib/datastore/simulator/list/list.js +0 -115
- package/lib/datastore/simulator/list/list.spec.d.ts +0 -1
- package/lib/datastore/simulator/list/list.spec.js +0 -95
- package/lib/datastore/simulator/pause/pause.d.ts +0 -3
- package/lib/datastore/simulator/pause/pause.js +0 -84
- package/lib/datastore/simulator/pause/pause.spec.d.ts +0 -1
- package/lib/datastore/simulator/pause/pause.spec.js +0 -90
- package/lib/datastore/simulator/remove/remove.d.ts +0 -3
- package/lib/datastore/simulator/remove/remove.js +0 -68
- package/lib/datastore/simulator/remove/remove.spec.d.ts +0 -1
- package/lib/datastore/simulator/remove/remove.spec.js +0 -224
- package/lib/datastore/simulator/resume/resume.d.ts +0 -3
- package/lib/datastore/simulator/resume/resume.js +0 -84
- package/lib/datastore/simulator/resume/resume.spec.d.ts +0 -1
- package/lib/datastore/simulator/resume/resume.spec.js +0 -90
- package/lib/datastore/simulator/simulatorCommand.d.ts +0 -3
- package/lib/datastore/simulator/simulatorCommand.js +0 -27
- package/lib/datastore/simulator/upgrade/upgrade.d.ts +0 -3
- package/lib/datastore/simulator/upgrade/upgrade.js +0 -157
- package/lib/datastore/simulator/upgrade/upgrade.spec.d.ts +0 -1
- package/lib/datastore/simulator/upgrade/upgrade.spec.js +0 -199
- package/lib/datastore/simulator/utils.d.ts +0 -29
- package/lib/datastore/simulator/utils.js +0 -218
- package/lib/datastore/simulator/utils.spec.d.ts +0 -1
- package/lib/datastore/simulator/utils.spec.js +0 -201
- package/lib/datastore/utils.d.ts +0 -20
- package/lib/datastore/utils.js +0 -241
- package/lib/datastore/utils.spec.d.ts +0 -1
- package/lib/datastore/utils.spec.js +0 -113
- package/lib/dxp.d.ts +0 -1
- package/lib/dxp.js +0 -57
- package/lib/job-runner/index.d.ts +0 -3
- package/lib/job-runner/index.js +0 -22
- package/lib/job-runner/job/listJobs/listJobs.d.ts +0 -3
- package/lib/job-runner/job/listJobs/listJobs.js +0 -66
- package/lib/job-runner/job/listJobs/listJobs.spec.d.ts +0 -1
- package/lib/job-runner/job/listJobs/listJobs.spec.js +0 -42
- package/lib/job-runner/job/uploadJob/uploadJob.d.ts +0 -3
- package/lib/job-runner/job/uploadJob/uploadJob.js +0 -56
- package/lib/job-runner/job/uploadJob/uploadJob.spec.d.ts +0 -1
- package/lib/job-runner/job/uploadJob/uploadJob.spec.js +0 -42
- package/lib/job-runner/jobContext/listJobContexts.d.ts +0 -3
- package/lib/job-runner/jobContext/listJobContexts.js +0 -66
- package/lib/job-runner/jobContext/listJobContexts.spec.d.ts +0 -1
- package/lib/job-runner/jobContext/listJobContexts.spec.js +0 -58
- package/lib/job-runner/jobExecution/beginJob/beginJob.d.ts +0 -3
- package/lib/job-runner/jobExecution/beginJob/beginJob.js +0 -68
- package/lib/job-runner/jobExecution/beginJob/beginJob.spec.d.ts +0 -1
- package/lib/job-runner/jobExecution/beginJob/beginJob.spec.js +0 -62
- package/lib/job-runner/jobExecution/listJobExecutions/listJobExecutions.d.ts +0 -3
- package/lib/job-runner/jobExecution/listJobExecutions/listJobExecutions.js +0 -67
- package/lib/job-runner/jobExecution/listJobExecutions/listJobExecutions.spec.d.ts +0 -1
- package/lib/job-runner/jobExecution/listJobExecutions/listJobExecutions.spec.js +0 -64
- package/lib/job-runner/jobExecution/terminateJob/terminateJob.d.ts +0 -3
- package/lib/job-runner/jobExecution/terminateJob/terminateJob.js +0 -64
- package/lib/job-runner/jobExecution/terminateJob/terminateJob.spec.d.ts +0 -1
- package/lib/job-runner/jobExecution/terminateJob/terminateJob.spec.js +0 -61
- package/lib/job-runner/utils.d.ts +0 -19
- package/lib/job-runner/utils.js +0 -145
- package/lib/job-runner/utils.spec.d.ts +0 -1
- package/lib/job-runner/utils.spec.js +0 -116
- package/lib/migration/batch-get/batch-get.d.ts +0 -3
- package/lib/migration/batch-get/batch-get.js +0 -45
- package/lib/migration/batch-get/batch-get.spec.d.ts +0 -1
- package/lib/migration/batch-get/batch-get.spec.js +0 -182
- package/lib/migration/batch-next/batch-next.d.ts +0 -3
- package/lib/migration/batch-next/batch-next.js +0 -60
- package/lib/migration/batch-next/batch-next.spec.d.ts +0 -1
- package/lib/migration/batch-next/batch-next.spec.js +0 -251
- package/lib/migration/batch-revert/batch-revert.d.ts +0 -3
- package/lib/migration/batch-revert/batch-revert.js +0 -45
- package/lib/migration/batch-revert/batch-revert.spec.d.ts +0 -1
- package/lib/migration/batch-revert/batch-revert.spec.js +0 -197
- package/lib/migration/create/create.d.ts +0 -3
- package/lib/migration/create/create.js +0 -76
- package/lib/migration/create/create.spec.d.ts +0 -1
- package/lib/migration/create/create.spec.js +0 -308
- package/lib/migration/get/get.d.ts +0 -3
- package/lib/migration/get/get.js +0 -46
- package/lib/migration/get/get.spec.d.ts +0 -1
- package/lib/migration/get/get.spec.js +0 -276
- package/lib/migration/index.d.ts +0 -3
- package/lib/migration/index.js +0 -32
- package/lib/migration/list/list.d.ts +0 -3
- package/lib/migration/list/list.js +0 -45
- package/lib/migration/list/list.spec.d.ts +0 -1
- package/lib/migration/list/list.spec.js +0 -139
- package/lib/migration/mark-deployed/mark-deployed.d.ts +0 -3
- package/lib/migration/mark-deployed/mark-deployed.js +0 -55
- package/lib/migration/mark-deployed/mark-deployed.spec.d.ts +0 -1
- package/lib/migration/mark-deployed/mark-deployed.spec.js +0 -217
- package/lib/migration/next/next.d.ts +0 -3
- package/lib/migration/next/next.js +0 -75
- package/lib/migration/next/next.spec.d.ts +0 -1
- package/lib/migration/next/next.spec.js +0 -254
- package/lib/migration/pre/pre.d.ts +0 -3
- package/lib/migration/pre/pre.js +0 -54
- package/lib/migration/pre/pre.spec.d.ts +0 -1
- package/lib/migration/pre/pre.spec.js +0 -269
- package/lib/migration/revert/revert.d.ts +0 -3
- package/lib/migration/revert/revert.js +0 -47
- package/lib/migration/revert/revert.spec.d.ts +0 -1
- package/lib/migration/revert/revert.spec.js +0 -153
- package/lib/migration/settings/settings.d.ts +0 -3
- package/lib/migration/settings/settings.js +0 -63
- package/lib/migration/settings/settings.spec.d.ts +0 -1
- package/lib/migration/settings/settings.spec.js +0 -339
- package/lib/migration/types/common.types.d.ts +0 -60
- package/lib/migration/types/common.types.js +0 -19
- package/lib/migration/types/createMigration.types.d.ts +0 -48
- package/lib/migration/types/createMigration.types.js +0 -2
- package/lib/migration/types/getMigration.types.d.ts +0 -9
- package/lib/migration/types/getMigration.types.js +0 -2
- package/lib/migration/types/index.d.ts +0 -8
- package/lib/migration/types/index.js +0 -24
- package/lib/migration/types/listMigrations.types.d.ts +0 -2
- package/lib/migration/types/listMigrations.types.js +0 -2
- package/lib/migration/types/markDeployed.types.d.ts +0 -20
- package/lib/migration/types/markDeployed.types.js +0 -2
- package/lib/migration/types/nextStage.types.d.ts +0 -31
- package/lib/migration/types/nextStage.types.js +0 -2
- package/lib/migration/types/preMigration.types.d.ts +0 -10
- package/lib/migration/types/preMigration.types.js +0 -2
- package/lib/migration/types/revert.types.d.ts +0 -18
- package/lib/migration/types/revert.types.js +0 -2
- package/lib/migration/types/settings.types.d.ts +0 -15
- package/lib/migration/types/settings.types.js +0 -2
- package/lib/migration/utils/common.d.ts +0 -53
- package/lib/migration/utils/common.js +0 -166
- package/lib/migration/utils/common.spec.d.ts +0 -1
- package/lib/migration/utils/common.spec.js +0 -236
- package/lib/migration/utils/createMigration.d.ts +0 -16
- package/lib/migration/utils/createMigration.js +0 -116
- package/lib/migration/utils/createMigration.spec.d.ts +0 -1
- package/lib/migration/utils/createMigration.spec.js +0 -260
- package/lib/migration/utils/getMigration.d.ts +0 -3
- package/lib/migration/utils/getMigration.js +0 -46
- package/lib/migration/utils/getMigration.spec.d.ts +0 -1
- package/lib/migration/utils/getMigration.spec.js +0 -295
- package/lib/migration/utils/index.d.ts +0 -10
- package/lib/migration/utils/index.js +0 -26
- package/lib/migration/utils/listMigrations.d.ts +0 -3
- package/lib/migration/utils/listMigrations.js +0 -41
- package/lib/migration/utils/listMigrations.spec.d.ts +0 -1
- package/lib/migration/utils/listMigrations.spec.js +0 -109
- package/lib/migration/utils/loadAssetIdsFromFile.d.ts +0 -9
- package/lib/migration/utils/loadAssetIdsFromFile.js +0 -40
- package/lib/migration/utils/loadAssetIdsFromFile.spec.d.ts +0 -1
- package/lib/migration/utils/loadAssetIdsFromFile.spec.js +0 -91
- package/lib/migration/utils/loadStageOptionsFromFile.d.ts +0 -2
- package/lib/migration/utils/loadStageOptionsFromFile.js +0 -32
- package/lib/migration/utils/loadStageOptionsFromFile.spec.d.ts +0 -1
- package/lib/migration/utils/loadStageOptionsFromFile.spec.js +0 -77
- package/lib/migration/utils/markComponentsDeployed.d.ts +0 -2
- package/lib/migration/utils/markComponentsDeployed.js +0 -37
- package/lib/migration/utils/markComponentsDeployed.spec.d.ts +0 -1
- package/lib/migration/utils/markComponentsDeployed.spec.js +0 -222
- package/lib/migration/utils/nextStage.d.ts +0 -3
- package/lib/migration/utils/nextStage.js +0 -55
- package/lib/migration/utils/nextStage.spec.d.ts +0 -1
- package/lib/migration/utils/nextStage.spec.js +0 -323
- package/lib/migration/utils/options.d.ts +0 -18
- package/lib/migration/utils/options.js +0 -136
- package/lib/migration/utils/options.spec.d.ts +0 -1
- package/lib/migration/utils/options.spec.js +0 -115
- package/lib/migration/utils/promptForMorphConfirmation.d.ts +0 -5
- package/lib/migration/utils/promptForMorphConfirmation.js +0 -55
- package/lib/migration/utils/promptForMorphConfirmation.spec.d.ts +0 -1
- package/lib/migration/utils/promptForMorphConfirmation.spec.js +0 -101
- package/lib/migration/utils/revertMigration.d.ts +0 -3
- package/lib/migration/utils/revertMigration.js +0 -58
- package/lib/migration/utils/revertMigration.spec.d.ts +0 -1
- package/lib/migration/utils/revertMigration.spec.js +0 -210
- package/lib/migration/utils/setMigrationSettings.d.ts +0 -2
- package/lib/migration/utils/setMigrationSettings.js +0 -52
- package/lib/migration/utils/setMigrationSettings.spec.d.ts +0 -1
- package/lib/migration/utils/setMigrationSettings.spec.js +0 -163
- package/lib/page/index.d.ts +0 -3
- package/lib/page/index.js +0 -12
- package/lib/page/layouts/deploy/deploy.d.ts +0 -5
- package/lib/page/layouts/deploy/deploy.js +0 -157
- package/lib/page/layouts/deploy/deploy.spec.d.ts +0 -1
- package/lib/page/layouts/deploy/deploy.spec.js +0 -319
- package/lib/page/layouts/dev/dev.d.ts +0 -5
- package/lib/page/layouts/dev/dev.js +0 -84
- package/lib/page/layouts/dev/dev.spec.d.ts +0 -1
- package/lib/page/layouts/dev/dev.spec.js +0 -271
- package/lib/page/layouts/layouts.d.ts +0 -3
- package/lib/page/layouts/layouts.js +0 -17
- package/lib/page/layouts/layouts.spec.d.ts +0 -1
- package/lib/page/layouts/layouts.spec.js +0 -29
- package/lib/page/layouts/validation/index.d.ts +0 -3
- package/lib/page/layouts/validation/index.js +0 -9
- package/lib/page/layouts/validation/property-consistency.d.ts +0 -7
- package/lib/page/layouts/validation/property-consistency.js +0 -92
- package/lib/page/layouts/validation/property-consistency.spec.d.ts +0 -1
- package/lib/page/layouts/validation/property-consistency.spec.js +0 -307
- package/lib/page/layouts/validation/validateLayoutFormat.d.ts +0 -2
- package/lib/page/layouts/validation/validateLayoutFormat.js +0 -27
- package/lib/page/layouts/validation/validateLayoutFormat.spec.d.ts +0 -1
- package/lib/page/layouts/validation/validateLayoutFormat.spec.js +0 -42
- package/lib/page/layouts/validation/zone-consistency.d.ts +0 -7
- package/lib/page/layouts/validation/zone-consistency.js +0 -50
- package/lib/page/layouts/validation/zone-consistency.spec.d.ts +0 -1
- package/lib/page/layouts/validation/zone-consistency.spec.js +0 -94
- package/lib/page/templates/validation.d.ts +0 -11
- package/lib/page/templates/validation.js +0 -30
- package/lib/page/templates/validation.spec.d.ts +0 -1
- package/lib/page/templates/validation.spec.js +0 -89
- package/lib/page/utils/definitions.d.ts +0 -596
- package/lib/page/utils/definitions.js +0 -253
- package/lib/page/utils/definitions.spec.d.ts +0 -1
- package/lib/page/utils/definitions.spec.js +0 -804
- package/lib/page/utils/normalize.d.ts +0 -8
- package/lib/page/utils/normalize.js +0 -54
- package/lib/page/utils/normalize.spec.d.ts +0 -1
- package/lib/page/utils/normalize.spec.js +0 -309
- package/lib/page/utils/parse-args.d.ts +0 -44
- package/lib/page/utils/parse-args.js +0 -119
- package/lib/page/utils/parse-args.spec.d.ts +0 -1
- package/lib/page/utils/parse-args.spec.js +0 -284
- package/lib/page/utils/render.d.ts +0 -51
- package/lib/page/utils/render.js +0 -112
- package/lib/page/utils/render.spec.d.ts +0 -1
- package/lib/page/utils/render.spec.js +0 -134
- package/lib/page/utils/server.d.ts +0 -12
- package/lib/page/utils/server.js +0 -201
- package/lib/page/utils/server.spec.d.ts +0 -1
- package/lib/page/utils/server.spec.js +0 -275
- package/lib/porter/constants.d.ts +0 -11
- package/lib/porter/constants.js +0 -14
- package/lib/porter/index.d.ts +0 -3
- package/lib/porter/index.js +0 -24
- package/lib/porter/port/abort/abort.d.ts +0 -3
- package/lib/porter/port/abort/abort.js +0 -80
- package/lib/porter/port/abort/abort.spec.d.ts +0 -1
- package/lib/porter/port/abort/abort.spec.js +0 -182
- package/lib/porter/port/get/get.d.ts +0 -3
- package/lib/porter/port/get/get.js +0 -96
- package/lib/porter/port/get/get.spec.d.ts +0 -1
- package/lib/porter/port/get/get.spec.js +0 -277
- package/lib/porter/port/start/start.d.ts +0 -3
- package/lib/porter/port/start/start.js +0 -82
- package/lib/porter/port/start/start.spec.d.ts +0 -1
- package/lib/porter/port/start/start.spec.js +0 -198
- package/lib/porter/project/add/add.d.ts +0 -3
- package/lib/porter/project/add/add.js +0 -138
- package/lib/porter/project/add/add.spec.d.ts +0 -1
- package/lib/porter/project/add/add.spec.js +0 -269
- package/lib/porter/project/get/get.d.ts +0 -3
- package/lib/porter/project/get/get.js +0 -65
- package/lib/porter/project/get/get.spec.d.ts +0 -1
- package/lib/porter/project/get/get.spec.js +0 -185
- package/lib/porter/project/remove/remove.d.ts +0 -3
- package/lib/porter/project/remove/remove.js +0 -69
- package/lib/porter/project/remove/remove.spec.d.ts +0 -1
- package/lib/porter/project/remove/remove.spec.js +0 -201
- package/lib/porter/types.d.ts +0 -5
- package/lib/porter/types.js +0 -2
- package/lib/porter/utils/BuildDXPUrl/BuildDXPUrl.d.ts +0 -4
- package/lib/porter/utils/BuildDXPUrl/BuildDXPUrl.js +0 -34
- package/lib/porter/utils/BuildPorterUrl/BuildPorterUrl.d.ts +0 -1
- package/lib/porter/utils/BuildPorterUrl/BuildPorterUrl.js +0 -21
- package/lib/porter/utils/BuildPorterUrl/BuildPorterUrl.spec.d.ts +0 -1
- package/lib/porter/utils/BuildPorterUrl/BuildPorterUrl.spec.js +0 -52
- package/lib/porter/utils/CoreUtils/CoreUtils.d.ts +0 -2
- package/lib/porter/utils/CoreUtils/CoreUtils.js +0 -13
- package/lib/porter/utils/CoreUtils/CoreUtils.spec.d.ts +0 -1
- package/lib/porter/utils/CoreUtils/CoreUtils.spec.js +0 -36
- package/lib/porter/utils/DoesPathExist/DoesPathExist.d.ts +0 -1
- package/lib/porter/utils/DoesPathExist/DoesPathExist.js +0 -27
- package/lib/porter/utils/DoesPathExist/DoesPathExist.spec.d.ts +0 -1
- package/lib/porter/utils/DoesPathExist/DoesPathExist.spec.js +0 -40
- package/lib/porter/utils/ErrorUtils/ErrorUtils.d.ts +0 -4
- package/lib/porter/utils/ErrorUtils/ErrorUtils.js +0 -66
- package/lib/porter/utils/ErrorUtils/ErrorUtils.spec.d.ts +0 -1
- package/lib/porter/utils/ErrorUtils/ErrorUtils.spec.js +0 -176
- package/lib/porter/utils/GetProjectConfig/GetProjectConfig.d.ts +0 -2
- package/lib/porter/utils/GetProjectConfig/GetProjectConfig.js +0 -33
- package/lib/porter/utils/GetProjectConfig/GetProjectConfig.spec.d.ts +0 -1
- package/lib/porter/utils/GetProjectConfig/GetProjectConfig.spec.js +0 -50
- package/lib/porter/utils/GetProjectName/GetProjectName.d.ts +0 -4
- package/lib/porter/utils/GetProjectName/GetProjectName.js +0 -30
- package/lib/porter/utils/GetProjectName/GetProjectName.spec.d.ts +0 -1
- package/lib/porter/utils/GetProjectName/GetProjectName.spec.js +0 -91
- package/lib/porter/utils/index.d.ts +0 -7
- package/lib/porter/utils/index.js +0 -23
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const validation_1 = require("./validation");
|
|
4
|
-
describe('Handlebars Template Validation', () => {
|
|
5
|
-
describe('validateTemplateFile', () => {
|
|
6
|
-
it('should validate an empty template', () => {
|
|
7
|
-
const template = '';
|
|
8
|
-
const errors = (0, validation_1.validateTemplateFile)(template);
|
|
9
|
-
expect(errors).toHaveLength(0);
|
|
10
|
-
});
|
|
11
|
-
it('should validate a simple valid template', () => {
|
|
12
|
-
const template = '<div>{{zones.content}}</div>';
|
|
13
|
-
const errors = (0, validation_1.validateTemplateFile)(template);
|
|
14
|
-
expect(errors).toHaveLength(0);
|
|
15
|
-
});
|
|
16
|
-
it('should detect top-level HTML tags', () => {
|
|
17
|
-
const template = '<html><body><div>{{zones.content}}</div></body></html>';
|
|
18
|
-
const errors = (0, validation_1.validateTemplateFile)(template);
|
|
19
|
-
expect(errors.length).toBeGreaterThan(0);
|
|
20
|
-
expect(errors).toEqual(expect.arrayContaining([
|
|
21
|
-
expect.stringContaining('Template should not contain top-level HTML structure tag: <html>'),
|
|
22
|
-
expect.stringContaining('Template should not contain top-level HTML structure tag: <body>'),
|
|
23
|
-
]));
|
|
24
|
-
});
|
|
25
|
-
it('should detect DOCTYPE declarations', () => {
|
|
26
|
-
const template = '<!DOCTYPE html><div>{{zones.content}}</div>';
|
|
27
|
-
const errors = (0, validation_1.validateTemplateFile)(template);
|
|
28
|
-
expect(errors.length).toBeGreaterThan(0);
|
|
29
|
-
expect(errors).toEqual(expect.arrayContaining([
|
|
30
|
-
expect.stringContaining('Template should not contain top-level HTML structure tag: <doctype>'),
|
|
31
|
-
]));
|
|
32
|
-
});
|
|
33
|
-
it('should detect head tags', () => {
|
|
34
|
-
const template = '<head><title>Test</title></head><div>{{zones.content}}</div>';
|
|
35
|
-
const errors = (0, validation_1.validateTemplateFile)(template);
|
|
36
|
-
expect(errors.length).toBeGreaterThan(0);
|
|
37
|
-
expect(errors).toEqual(expect.arrayContaining([
|
|
38
|
-
expect.stringContaining('Template should not contain top-level HTML structure tag: <head>'),
|
|
39
|
-
]));
|
|
40
|
-
});
|
|
41
|
-
it('should allow body content elements', () => {
|
|
42
|
-
const template = `
|
|
43
|
-
<div class="layout">
|
|
44
|
-
<header>{{zones.header}}</header>
|
|
45
|
-
<main>{{zones.content}}</main>
|
|
46
|
-
<aside>{{zones.sidebar}}</aside>
|
|
47
|
-
<footer>{{zones.footer}}</footer>
|
|
48
|
-
</div>
|
|
49
|
-
`;
|
|
50
|
-
const errors = (0, validation_1.validateTemplateFile)(template);
|
|
51
|
-
expect(errors).toHaveLength(0);
|
|
52
|
-
});
|
|
53
|
-
it('should allow complex Handlebars expressions', () => {
|
|
54
|
-
const template = `
|
|
55
|
-
<div class="layout">
|
|
56
|
-
{{#if zones.header}}
|
|
57
|
-
<header>{{zones.header}}</header>
|
|
58
|
-
{{/if}}
|
|
59
|
-
<main>{{zones.content}}</main>
|
|
60
|
-
{{#each zones.sidebar}}
|
|
61
|
-
<aside>{{this}}</aside>
|
|
62
|
-
{{/each}}
|
|
63
|
-
</div>
|
|
64
|
-
`;
|
|
65
|
-
const errors = (0, validation_1.validateTemplateFile)(template);
|
|
66
|
-
expect(errors).toHaveLength(0);
|
|
67
|
-
});
|
|
68
|
-
it('should allow all valid HTML body elements', () => {
|
|
69
|
-
const template = `
|
|
70
|
-
<div>{{zones.content}}</div>
|
|
71
|
-
<p>{{zones.text}}</p>
|
|
72
|
-
<span>{{zones.inline}}</span>
|
|
73
|
-
<section>{{zones.section}}</section>
|
|
74
|
-
<article>{{zones.article}}</article>
|
|
75
|
-
<nav>{{zones.navigation}}</nav>
|
|
76
|
-
<header>{{zones.header}}</header>
|
|
77
|
-
<footer>{{zones.footer}}</footer>
|
|
78
|
-
<aside>{{zones.sidebar}}</aside>
|
|
79
|
-
<main>{{zones.main}}</main>
|
|
80
|
-
<h1>{{zones.title}}</h1>
|
|
81
|
-
<img src="{{zones.image}}" alt="{{zones.alt}}">
|
|
82
|
-
<a href="{{zones.link}}">{{zones.linkText}}</a>
|
|
83
|
-
<ul>{{#each zones.list}}<li>{{this}}</li>{{/each}}</ul>
|
|
84
|
-
`;
|
|
85
|
-
const errors = (0, validation_1.validateTemplateFile)(template);
|
|
86
|
-
expect(errors).toHaveLength(0);
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
});
|
|
@@ -1,596 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2025, Squiz Australia Pty Ltd.
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
*/
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
export declare function loadLayoutDefinition(layoutFile: string): Promise<LayoutDefinition>;
|
|
8
|
-
export declare function loadLayoutFromFile(layoutFile: string): Promise<InputLayoutDefinition>;
|
|
9
|
-
export declare const BaseLayoutDefinition: z.ZodObject<{
|
|
10
|
-
/**
|
|
11
|
-
* User defined identifier for a Page Layout
|
|
12
|
-
*/
|
|
13
|
-
name: z.ZodString;
|
|
14
|
-
/**
|
|
15
|
-
* Name displayed in user interfaces
|
|
16
|
-
*/
|
|
17
|
-
displayName: z.ZodString;
|
|
18
|
-
/**
|
|
19
|
-
* Description to provide extra information on the layout
|
|
20
|
-
*/
|
|
21
|
-
description: z.ZodString;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
name: string;
|
|
24
|
-
description: string;
|
|
25
|
-
displayName: string;
|
|
26
|
-
}, {
|
|
27
|
-
name: string;
|
|
28
|
-
description: string;
|
|
29
|
-
displayName: string;
|
|
30
|
-
}>;
|
|
31
|
-
/**
|
|
32
|
-
* Layout definition used for deprecated page-layout.yaml files
|
|
33
|
-
*/
|
|
34
|
-
export declare const InputLayoutDefinitionV1: z.ZodObject<z.objectUtil.extendShape<{
|
|
35
|
-
/**
|
|
36
|
-
* User defined identifier for a Page Layout
|
|
37
|
-
*/
|
|
38
|
-
name: z.ZodString;
|
|
39
|
-
/**
|
|
40
|
-
* Name displayed in user interfaces
|
|
41
|
-
*/
|
|
42
|
-
displayName: z.ZodString;
|
|
43
|
-
/**
|
|
44
|
-
* Description to provide extra information on the layout
|
|
45
|
-
*/
|
|
46
|
-
description: z.ZodString;
|
|
47
|
-
}, {
|
|
48
|
-
entry: z.ZodString;
|
|
49
|
-
/**
|
|
50
|
-
* Zone input structure configuration
|
|
51
|
-
*
|
|
52
|
-
* Declares the content structure that will be the input to the
|
|
53
|
-
* Handlebars template
|
|
54
|
-
*/
|
|
55
|
-
zones: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
|
-
displayName: z.ZodString;
|
|
57
|
-
description: z.ZodString;
|
|
58
|
-
minNodes: z.ZodDefault<z.ZodNumber>;
|
|
59
|
-
maxNodes: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
description: string;
|
|
62
|
-
displayName: string;
|
|
63
|
-
minNodes: number;
|
|
64
|
-
maxNodes?: number | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
description: string;
|
|
67
|
-
displayName: string;
|
|
68
|
-
minNodes?: number | undefined;
|
|
69
|
-
maxNodes?: number | undefined;
|
|
70
|
-
}>>, Record<string, {
|
|
71
|
-
description: string;
|
|
72
|
-
displayName: string;
|
|
73
|
-
minNodes: number;
|
|
74
|
-
maxNodes?: number | undefined;
|
|
75
|
-
}>, Record<string, {
|
|
76
|
-
description: string;
|
|
77
|
-
displayName: string;
|
|
78
|
-
minNodes?: number | undefined;
|
|
79
|
-
maxNodes?: number | undefined;
|
|
80
|
-
}>>;
|
|
81
|
-
/**
|
|
82
|
-
* Layout options
|
|
83
|
-
*
|
|
84
|
-
* Declares any configurable options that can be provided by a Content Editor
|
|
85
|
-
*/
|
|
86
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
87
|
-
displayName: z.ZodString;
|
|
88
|
-
description: z.ZodString;
|
|
89
|
-
valueType: z.ZodOptional<z.ZodEnum<["string-enum", "boolean", "text"]>>;
|
|
90
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
description: string;
|
|
93
|
-
displayName: string;
|
|
94
|
-
values?: string[] | undefined;
|
|
95
|
-
valueType?: "boolean" | "text" | "string-enum" | undefined;
|
|
96
|
-
}, {
|
|
97
|
-
description: string;
|
|
98
|
-
displayName: string;
|
|
99
|
-
values?: string[] | undefined;
|
|
100
|
-
valueType?: "boolean" | "text" | "string-enum" | undefined;
|
|
101
|
-
}>>>;
|
|
102
|
-
}>, "strict", z.ZodTypeAny, {
|
|
103
|
-
name: string;
|
|
104
|
-
entry: string;
|
|
105
|
-
description: string;
|
|
106
|
-
displayName: string;
|
|
107
|
-
zones: Record<string, {
|
|
108
|
-
description: string;
|
|
109
|
-
displayName: string;
|
|
110
|
-
minNodes: number;
|
|
111
|
-
maxNodes?: number | undefined;
|
|
112
|
-
}>;
|
|
113
|
-
options?: Record<string, {
|
|
114
|
-
description: string;
|
|
115
|
-
displayName: string;
|
|
116
|
-
values?: string[] | undefined;
|
|
117
|
-
valueType?: "boolean" | "text" | "string-enum" | undefined;
|
|
118
|
-
}> | undefined;
|
|
119
|
-
}, {
|
|
120
|
-
name: string;
|
|
121
|
-
entry: string;
|
|
122
|
-
description: string;
|
|
123
|
-
displayName: string;
|
|
124
|
-
zones: Record<string, {
|
|
125
|
-
description: string;
|
|
126
|
-
displayName: string;
|
|
127
|
-
minNodes?: number | undefined;
|
|
128
|
-
maxNodes?: number | undefined;
|
|
129
|
-
}>;
|
|
130
|
-
options?: Record<string, {
|
|
131
|
-
description: string;
|
|
132
|
-
displayName: string;
|
|
133
|
-
values?: string[] | undefined;
|
|
134
|
-
valueType?: "boolean" | "text" | "string-enum" | undefined;
|
|
135
|
-
}> | undefined;
|
|
136
|
-
}>;
|
|
137
|
-
/**
|
|
138
|
-
* Layout definition used for manifest.json files
|
|
139
|
-
*/
|
|
140
|
-
export declare const InputLayoutDefinitionV2: z.ZodObject<z.objectUtil.extendShape<{
|
|
141
|
-
/**
|
|
142
|
-
* User defined identifier for a Page Layout
|
|
143
|
-
*/
|
|
144
|
-
name: z.ZodString;
|
|
145
|
-
/**
|
|
146
|
-
* Name displayed in user interfaces
|
|
147
|
-
*/
|
|
148
|
-
displayName: z.ZodString;
|
|
149
|
-
/**
|
|
150
|
-
* Description to provide extra information on the layout
|
|
151
|
-
*/
|
|
152
|
-
description: z.ZodString;
|
|
153
|
-
}, {
|
|
154
|
-
entry: z.ZodString;
|
|
155
|
-
/**
|
|
156
|
-
* Zone input structure configuration
|
|
157
|
-
*
|
|
158
|
-
* Declares the content structure that will be the input to the
|
|
159
|
-
* Handlebars template
|
|
160
|
-
*/
|
|
161
|
-
zones: z.ZodArray<z.ZodObject<{
|
|
162
|
-
key: z.ZodString;
|
|
163
|
-
displayName: z.ZodString;
|
|
164
|
-
description: z.ZodString;
|
|
165
|
-
}, "strict", z.ZodTypeAny, {
|
|
166
|
-
key: string;
|
|
167
|
-
description: string;
|
|
168
|
-
displayName: string;
|
|
169
|
-
}, {
|
|
170
|
-
key: string;
|
|
171
|
-
description: string;
|
|
172
|
-
displayName: string;
|
|
173
|
-
}>, "atleastone">;
|
|
174
|
-
/**
|
|
175
|
-
* Layout properties
|
|
176
|
-
*
|
|
177
|
-
* Declares any configurable properties that can be provided by a Content Editor
|
|
178
|
-
*/
|
|
179
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
180
|
-
title: z.ZodString;
|
|
181
|
-
description: z.ZodString;
|
|
182
|
-
type: z.ZodLiteral<"boolean">;
|
|
183
|
-
}, "strict", z.ZodTypeAny, {
|
|
184
|
-
type: "boolean";
|
|
185
|
-
description: string;
|
|
186
|
-
title: string;
|
|
187
|
-
}, {
|
|
188
|
-
type: "boolean";
|
|
189
|
-
description: string;
|
|
190
|
-
title: string;
|
|
191
|
-
}>, z.ZodObject<{
|
|
192
|
-
title: z.ZodString;
|
|
193
|
-
description: z.ZodString;
|
|
194
|
-
type: z.ZodLiteral<"string">;
|
|
195
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
196
|
-
}, "strict", z.ZodTypeAny, {
|
|
197
|
-
type: "string";
|
|
198
|
-
description: string;
|
|
199
|
-
title: string;
|
|
200
|
-
enum?: string[] | undefined;
|
|
201
|
-
}, {
|
|
202
|
-
type: "string";
|
|
203
|
-
description: string;
|
|
204
|
-
title: string;
|
|
205
|
-
enum?: string[] | undefined;
|
|
206
|
-
}>]>>>;
|
|
207
|
-
}>, "strict", z.ZodTypeAny, {
|
|
208
|
-
name: string;
|
|
209
|
-
entry: string;
|
|
210
|
-
description: string;
|
|
211
|
-
displayName: string;
|
|
212
|
-
zones: [{
|
|
213
|
-
key: string;
|
|
214
|
-
description: string;
|
|
215
|
-
displayName: string;
|
|
216
|
-
}, ...{
|
|
217
|
-
key: string;
|
|
218
|
-
description: string;
|
|
219
|
-
displayName: string;
|
|
220
|
-
}[]];
|
|
221
|
-
properties?: Record<string, {
|
|
222
|
-
type: "boolean";
|
|
223
|
-
description: string;
|
|
224
|
-
title: string;
|
|
225
|
-
} | {
|
|
226
|
-
type: "string";
|
|
227
|
-
description: string;
|
|
228
|
-
title: string;
|
|
229
|
-
enum?: string[] | undefined;
|
|
230
|
-
}> | undefined;
|
|
231
|
-
}, {
|
|
232
|
-
name: string;
|
|
233
|
-
entry: string;
|
|
234
|
-
description: string;
|
|
235
|
-
displayName: string;
|
|
236
|
-
zones: [{
|
|
237
|
-
key: string;
|
|
238
|
-
description: string;
|
|
239
|
-
displayName: string;
|
|
240
|
-
}, ...{
|
|
241
|
-
key: string;
|
|
242
|
-
description: string;
|
|
243
|
-
displayName: string;
|
|
244
|
-
}[]];
|
|
245
|
-
properties?: Record<string, {
|
|
246
|
-
type: "boolean";
|
|
247
|
-
description: string;
|
|
248
|
-
title: string;
|
|
249
|
-
} | {
|
|
250
|
-
type: "string";
|
|
251
|
-
description: string;
|
|
252
|
-
title: string;
|
|
253
|
-
enum?: string[] | undefined;
|
|
254
|
-
}> | undefined;
|
|
255
|
-
}>;
|
|
256
|
-
export declare type InputLayoutDefinitionV1 = z.infer<typeof InputLayoutDefinitionV1>;
|
|
257
|
-
export declare type InputLayoutDefinitionV2 = z.infer<typeof InputLayoutDefinitionV2>;
|
|
258
|
-
export declare const InputLayoutDefinition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
259
|
-
/**
|
|
260
|
-
* User defined identifier for a Page Layout
|
|
261
|
-
*/
|
|
262
|
-
name: z.ZodString;
|
|
263
|
-
/**
|
|
264
|
-
* Name displayed in user interfaces
|
|
265
|
-
*/
|
|
266
|
-
displayName: z.ZodString;
|
|
267
|
-
/**
|
|
268
|
-
* Description to provide extra information on the layout
|
|
269
|
-
*/
|
|
270
|
-
description: z.ZodString;
|
|
271
|
-
}, {
|
|
272
|
-
entry: z.ZodString;
|
|
273
|
-
/**
|
|
274
|
-
* Zone input structure configuration
|
|
275
|
-
*
|
|
276
|
-
* Declares the content structure that will be the input to the
|
|
277
|
-
* Handlebars template
|
|
278
|
-
*/
|
|
279
|
-
zones: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
280
|
-
displayName: z.ZodString;
|
|
281
|
-
description: z.ZodString;
|
|
282
|
-
minNodes: z.ZodDefault<z.ZodNumber>;
|
|
283
|
-
maxNodes: z.ZodOptional<z.ZodNumber>;
|
|
284
|
-
}, "strip", z.ZodTypeAny, {
|
|
285
|
-
description: string;
|
|
286
|
-
displayName: string;
|
|
287
|
-
minNodes: number;
|
|
288
|
-
maxNodes?: number | undefined;
|
|
289
|
-
}, {
|
|
290
|
-
description: string;
|
|
291
|
-
displayName: string;
|
|
292
|
-
minNodes?: number | undefined;
|
|
293
|
-
maxNodes?: number | undefined;
|
|
294
|
-
}>>, Record<string, {
|
|
295
|
-
description: string;
|
|
296
|
-
displayName: string;
|
|
297
|
-
minNodes: number;
|
|
298
|
-
maxNodes?: number | undefined;
|
|
299
|
-
}>, Record<string, {
|
|
300
|
-
description: string;
|
|
301
|
-
displayName: string;
|
|
302
|
-
minNodes?: number | undefined;
|
|
303
|
-
maxNodes?: number | undefined;
|
|
304
|
-
}>>;
|
|
305
|
-
/**
|
|
306
|
-
* Layout options
|
|
307
|
-
*
|
|
308
|
-
* Declares any configurable options that can be provided by a Content Editor
|
|
309
|
-
*/
|
|
310
|
-
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
311
|
-
displayName: z.ZodString;
|
|
312
|
-
description: z.ZodString;
|
|
313
|
-
valueType: z.ZodOptional<z.ZodEnum<["string-enum", "boolean", "text"]>>;
|
|
314
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
315
|
-
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
description: string;
|
|
317
|
-
displayName: string;
|
|
318
|
-
values?: string[] | undefined;
|
|
319
|
-
valueType?: "boolean" | "text" | "string-enum" | undefined;
|
|
320
|
-
}, {
|
|
321
|
-
description: string;
|
|
322
|
-
displayName: string;
|
|
323
|
-
values?: string[] | undefined;
|
|
324
|
-
valueType?: "boolean" | "text" | "string-enum" | undefined;
|
|
325
|
-
}>>>;
|
|
326
|
-
}>, "strict", z.ZodTypeAny, {
|
|
327
|
-
name: string;
|
|
328
|
-
entry: string;
|
|
329
|
-
description: string;
|
|
330
|
-
displayName: string;
|
|
331
|
-
zones: Record<string, {
|
|
332
|
-
description: string;
|
|
333
|
-
displayName: string;
|
|
334
|
-
minNodes: number;
|
|
335
|
-
maxNodes?: number | undefined;
|
|
336
|
-
}>;
|
|
337
|
-
options?: Record<string, {
|
|
338
|
-
description: string;
|
|
339
|
-
displayName: string;
|
|
340
|
-
values?: string[] | undefined;
|
|
341
|
-
valueType?: "boolean" | "text" | "string-enum" | undefined;
|
|
342
|
-
}> | undefined;
|
|
343
|
-
}, {
|
|
344
|
-
name: string;
|
|
345
|
-
entry: string;
|
|
346
|
-
description: string;
|
|
347
|
-
displayName: string;
|
|
348
|
-
zones: Record<string, {
|
|
349
|
-
description: string;
|
|
350
|
-
displayName: string;
|
|
351
|
-
minNodes?: number | undefined;
|
|
352
|
-
maxNodes?: number | undefined;
|
|
353
|
-
}>;
|
|
354
|
-
options?: Record<string, {
|
|
355
|
-
description: string;
|
|
356
|
-
displayName: string;
|
|
357
|
-
values?: string[] | undefined;
|
|
358
|
-
valueType?: "boolean" | "text" | "string-enum" | undefined;
|
|
359
|
-
}> | undefined;
|
|
360
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
361
|
-
/**
|
|
362
|
-
* User defined identifier for a Page Layout
|
|
363
|
-
*/
|
|
364
|
-
name: z.ZodString;
|
|
365
|
-
/**
|
|
366
|
-
* Name displayed in user interfaces
|
|
367
|
-
*/
|
|
368
|
-
displayName: z.ZodString;
|
|
369
|
-
/**
|
|
370
|
-
* Description to provide extra information on the layout
|
|
371
|
-
*/
|
|
372
|
-
description: z.ZodString;
|
|
373
|
-
}, {
|
|
374
|
-
entry: z.ZodString;
|
|
375
|
-
/**
|
|
376
|
-
* Zone input structure configuration
|
|
377
|
-
*
|
|
378
|
-
* Declares the content structure that will be the input to the
|
|
379
|
-
* Handlebars template
|
|
380
|
-
*/
|
|
381
|
-
zones: z.ZodArray<z.ZodObject<{
|
|
382
|
-
key: z.ZodString;
|
|
383
|
-
displayName: z.ZodString;
|
|
384
|
-
description: z.ZodString;
|
|
385
|
-
}, "strict", z.ZodTypeAny, {
|
|
386
|
-
key: string;
|
|
387
|
-
description: string;
|
|
388
|
-
displayName: string;
|
|
389
|
-
}, {
|
|
390
|
-
key: string;
|
|
391
|
-
description: string;
|
|
392
|
-
displayName: string;
|
|
393
|
-
}>, "atleastone">;
|
|
394
|
-
/**
|
|
395
|
-
* Layout properties
|
|
396
|
-
*
|
|
397
|
-
* Declares any configurable properties that can be provided by a Content Editor
|
|
398
|
-
*/
|
|
399
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
400
|
-
title: z.ZodString;
|
|
401
|
-
description: z.ZodString;
|
|
402
|
-
type: z.ZodLiteral<"boolean">;
|
|
403
|
-
}, "strict", z.ZodTypeAny, {
|
|
404
|
-
type: "boolean";
|
|
405
|
-
description: string;
|
|
406
|
-
title: string;
|
|
407
|
-
}, {
|
|
408
|
-
type: "boolean";
|
|
409
|
-
description: string;
|
|
410
|
-
title: string;
|
|
411
|
-
}>, z.ZodObject<{
|
|
412
|
-
title: z.ZodString;
|
|
413
|
-
description: z.ZodString;
|
|
414
|
-
type: z.ZodLiteral<"string">;
|
|
415
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
416
|
-
}, "strict", z.ZodTypeAny, {
|
|
417
|
-
type: "string";
|
|
418
|
-
description: string;
|
|
419
|
-
title: string;
|
|
420
|
-
enum?: string[] | undefined;
|
|
421
|
-
}, {
|
|
422
|
-
type: "string";
|
|
423
|
-
description: string;
|
|
424
|
-
title: string;
|
|
425
|
-
enum?: string[] | undefined;
|
|
426
|
-
}>]>>>;
|
|
427
|
-
}>, "strict", z.ZodTypeAny, {
|
|
428
|
-
name: string;
|
|
429
|
-
entry: string;
|
|
430
|
-
description: string;
|
|
431
|
-
displayName: string;
|
|
432
|
-
zones: [{
|
|
433
|
-
key: string;
|
|
434
|
-
description: string;
|
|
435
|
-
displayName: string;
|
|
436
|
-
}, ...{
|
|
437
|
-
key: string;
|
|
438
|
-
description: string;
|
|
439
|
-
displayName: string;
|
|
440
|
-
}[]];
|
|
441
|
-
properties?: Record<string, {
|
|
442
|
-
type: "boolean";
|
|
443
|
-
description: string;
|
|
444
|
-
title: string;
|
|
445
|
-
} | {
|
|
446
|
-
type: "string";
|
|
447
|
-
description: string;
|
|
448
|
-
title: string;
|
|
449
|
-
enum?: string[] | undefined;
|
|
450
|
-
}> | undefined;
|
|
451
|
-
}, {
|
|
452
|
-
name: string;
|
|
453
|
-
entry: string;
|
|
454
|
-
description: string;
|
|
455
|
-
displayName: string;
|
|
456
|
-
zones: [{
|
|
457
|
-
key: string;
|
|
458
|
-
description: string;
|
|
459
|
-
displayName: string;
|
|
460
|
-
}, ...{
|
|
461
|
-
key: string;
|
|
462
|
-
description: string;
|
|
463
|
-
displayName: string;
|
|
464
|
-
}[]];
|
|
465
|
-
properties?: Record<string, {
|
|
466
|
-
type: "boolean";
|
|
467
|
-
description: string;
|
|
468
|
-
title: string;
|
|
469
|
-
} | {
|
|
470
|
-
type: "string";
|
|
471
|
-
description: string;
|
|
472
|
-
title: string;
|
|
473
|
-
enum?: string[] | undefined;
|
|
474
|
-
}> | undefined;
|
|
475
|
-
}>]>;
|
|
476
|
-
export declare const LayoutDefinition: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<{
|
|
477
|
-
/**
|
|
478
|
-
* User defined identifier for a Page Layout
|
|
479
|
-
*/
|
|
480
|
-
name: z.ZodString;
|
|
481
|
-
/**
|
|
482
|
-
* Name displayed in user interfaces
|
|
483
|
-
*/
|
|
484
|
-
displayName: z.ZodString;
|
|
485
|
-
/**
|
|
486
|
-
* Description to provide extra information on the layout
|
|
487
|
-
*/
|
|
488
|
-
description: z.ZodString;
|
|
489
|
-
}, {
|
|
490
|
-
entry: z.ZodString;
|
|
491
|
-
/**
|
|
492
|
-
* Zone input structure configuration
|
|
493
|
-
*
|
|
494
|
-
* Declares the content structure that will be the input to the
|
|
495
|
-
* Handlebars template
|
|
496
|
-
*/
|
|
497
|
-
zones: z.ZodArray<z.ZodObject<{
|
|
498
|
-
key: z.ZodString;
|
|
499
|
-
displayName: z.ZodString;
|
|
500
|
-
description: z.ZodString;
|
|
501
|
-
}, "strict", z.ZodTypeAny, {
|
|
502
|
-
key: string;
|
|
503
|
-
description: string;
|
|
504
|
-
displayName: string;
|
|
505
|
-
}, {
|
|
506
|
-
key: string;
|
|
507
|
-
description: string;
|
|
508
|
-
displayName: string;
|
|
509
|
-
}>, "atleastone">;
|
|
510
|
-
/**
|
|
511
|
-
* Layout properties
|
|
512
|
-
*
|
|
513
|
-
* Declares any configurable properties that can be provided by a Content Editor
|
|
514
|
-
*/
|
|
515
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
516
|
-
title: z.ZodString;
|
|
517
|
-
description: z.ZodString;
|
|
518
|
-
type: z.ZodLiteral<"boolean">;
|
|
519
|
-
}, "strict", z.ZodTypeAny, {
|
|
520
|
-
type: "boolean";
|
|
521
|
-
description: string;
|
|
522
|
-
title: string;
|
|
523
|
-
}, {
|
|
524
|
-
type: "boolean";
|
|
525
|
-
description: string;
|
|
526
|
-
title: string;
|
|
527
|
-
}>, z.ZodObject<{
|
|
528
|
-
title: z.ZodString;
|
|
529
|
-
description: z.ZodString;
|
|
530
|
-
type: z.ZodLiteral<"string">;
|
|
531
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
532
|
-
}, "strict", z.ZodTypeAny, {
|
|
533
|
-
type: "string";
|
|
534
|
-
description: string;
|
|
535
|
-
title: string;
|
|
536
|
-
enum?: string[] | undefined;
|
|
537
|
-
}, {
|
|
538
|
-
type: "string";
|
|
539
|
-
description: string;
|
|
540
|
-
title: string;
|
|
541
|
-
enum?: string[] | undefined;
|
|
542
|
-
}>]>>>;
|
|
543
|
-
}>, "entry">, {
|
|
544
|
-
template: z.ZodString;
|
|
545
|
-
}>, "strict", z.ZodTypeAny, {
|
|
546
|
-
name: string;
|
|
547
|
-
description: string;
|
|
548
|
-
displayName: string;
|
|
549
|
-
zones: [{
|
|
550
|
-
key: string;
|
|
551
|
-
description: string;
|
|
552
|
-
displayName: string;
|
|
553
|
-
}, ...{
|
|
554
|
-
key: string;
|
|
555
|
-
description: string;
|
|
556
|
-
displayName: string;
|
|
557
|
-
}[]];
|
|
558
|
-
template: string;
|
|
559
|
-
properties?: Record<string, {
|
|
560
|
-
type: "boolean";
|
|
561
|
-
description: string;
|
|
562
|
-
title: string;
|
|
563
|
-
} | {
|
|
564
|
-
type: "string";
|
|
565
|
-
description: string;
|
|
566
|
-
title: string;
|
|
567
|
-
enum?: string[] | undefined;
|
|
568
|
-
}> | undefined;
|
|
569
|
-
}, {
|
|
570
|
-
name: string;
|
|
571
|
-
description: string;
|
|
572
|
-
displayName: string;
|
|
573
|
-
zones: [{
|
|
574
|
-
key: string;
|
|
575
|
-
description: string;
|
|
576
|
-
displayName: string;
|
|
577
|
-
}, ...{
|
|
578
|
-
key: string;
|
|
579
|
-
description: string;
|
|
580
|
-
displayName: string;
|
|
581
|
-
}[]];
|
|
582
|
-
template: string;
|
|
583
|
-
properties?: Record<string, {
|
|
584
|
-
type: "boolean";
|
|
585
|
-
description: string;
|
|
586
|
-
title: string;
|
|
587
|
-
} | {
|
|
588
|
-
type: "string";
|
|
589
|
-
description: string;
|
|
590
|
-
title: string;
|
|
591
|
-
enum?: string[] | undefined;
|
|
592
|
-
}> | undefined;
|
|
593
|
-
}>;
|
|
594
|
-
export declare type InputLayoutDefinition = z.infer<typeof InputLayoutDefinition>;
|
|
595
|
-
export declare type LayoutDefinition = z.infer<typeof LayoutDefinition>;
|
|
596
|
-
export declare const LAYOUT_MANIFEST_FILE = "manifest.json";
|