Choice AI - Visual Editor

Choice AI - Visual Editor

The Visual Editor is your design hub. Create, modify and deploy any Choice AI component using the Visual Editor.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "Choice AI - Visual Editor",
  "version": "0.3.9",
  "manifest_version": 2,
  "description": "The Visual Editor is your design hub. Create, modify and deploy any Choice AI component using the Visual Editor.",
  "homepage_url": "https://choice.ai",
  "icons": {
    "16": "icons/icon16.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  },
  "default_locale": "en",
  "background": {
    "page": "src/bg/background.html",
    "persistent": true
  },
  "options_page": "src/bg/options.html",
  "web_accessible_resources": [
    "src/inject/general_plugins/*.js",
    "src/inject/inject-general.js",
    "src/inject/inject-editor.js",
    "src/inject/inject-preview.js",
    "src/inject/inject-camera.js"
  ],
  "browser_action": {
    "default_icon": "icons/icon48.png",
    "default_popup": "src/bg/popup.html",
    "default_title": "Choice.AI Visual Editor"
  },
  "commands": {
    "toggle-dev-feature": {
      "suggested_key": {
        "default": "Ctrl+Shift+K",
        "mac": "Command+Shift+K"
      },
      "description": "Toggle dev feature"
    },
    "toggle-dev-feature2": {
      "suggested_key": {
        "default": "Ctrl+Shift+8",
        "mac": "Command+Shift+8"
      },
      "description": "Toggle dev feature"
    },
    "toggle-dev-feature3": {
      "suggested_key": {
        "default": "Ctrl+Shift+Space",
        "mac": "Command+Shift+Space"
      },
      "description": "Toggle dev feature"
    }
  },
  "content_scripts": [
    {
      "exclude_globs": [
        "*mweditor=*"
      ],
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "src/content/dom-demo-loader.js"
      ],
      "run_at": "document_start"
    },
    {
      "include_globs": [
        "*mweditor=*",
        "*mwexclusive=*",
        "*choice.ai*",
        "*airtable.com*"
      ],
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "src/content/dom-started.js"
      ],
      "run_at": "document_start"
    },
    {
      "include_globs": [
        "*mweditor=*",
        "*mwexclusive=*",
        "*choice.ai*"
      ],
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "src/content/dom-loaded.js"
      ],
      "run_at": "document_end"
    },
    {
      "include_globs": [
        "*airtable.com*"
      ],
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "src/content/dom-generic-loaded.js"
      ],
      "run_at": "document_end"
    }
  ],
  "permissions": [
    "tabs",
    "storage",
    "webRequest",
    "webRequestBlocking",
    "<all_urls>"
  ],
  "content_security_policy": "script-src 'self' https://apis.google.com; object-src 'self'"
}