@figma/code-connect 1.1.0 → 1.1.1

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/index.js DELETED
@@ -1,53 +0,0 @@
1
- "use strict";
2
- // IMPORTANT: be careful to ensure you don't accidentally add code which has a
3
- // dependency on Node.js-only modules here, as it will break co=located
4
- // components. We don't have a test for this yet. Any such code should be
5
- // conditionally required - see `client` for an example. Reach out in
6
- // #feat-code-connect if you're unsure.
7
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
- if (k2 === undefined) k2 = k;
9
- var desc = Object.getOwnPropertyDescriptor(m, k);
10
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
- desc = { enumerable: true, get: function() { return m[k]; } };
12
- }
13
- Object.defineProperty(o, k2, desc);
14
- }) : (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- o[k2] = m[k];
17
- }));
18
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
19
- Object.defineProperty(o, "default", { enumerable: true, value: v });
20
- }) : function(o, v) {
21
- o["default"] = v;
22
- });
23
- var __importStar = (this && this.__importStar) || function (mod) {
24
- if (mod && mod.__esModule) return mod;
25
- var result = {};
26
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
27
- __setModuleDefault(result, mod);
28
- return result;
29
- };
30
- Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.client = exports.figma = void 0;
32
- const figma = __importStar(require("./common/external"));
33
- // `client/external`'s dependency chain ends up including code which is not safe
34
- // in a browser context, e.g. `child_process`. This would mean that if you
35
- // co-locate your Code Connect with React components, your app will be broken in
36
- // a browser, because of this import chain.
37
- //
38
- // To get around this, we only import `client/external` if you are in a Node
39
- // context – it is only used for the icon script, so none of the code which runs
40
- // in the browser should touch it.
41
- //
42
- // Note that you may still see messages from the JS bundler about Node modules,
43
- // but these won't be included at runtime.
44
- let client = {};
45
- if (typeof process !== 'undefined' && process.versions && process.versions.node) {
46
- client = require('./client/external');
47
- }
48
- const _client = client;
49
- exports.client = _client;
50
- const _figma = figma;
51
- exports.figma = _figma;
52
- exports.default = _figma;
53
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,8EAA8E;AAC9E,uEAAuE;AACvE,yEAAyE;AACzE,qEAAqE;AACrE,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;AAGvC,yDAA0C;AAI1C,gFAAgF;AAChF,0EAA0E;AAC1E,gFAAgF;AAChF,2CAA2C;AAC3C,EAAE;AACF,4EAA4E;AAC5E,gFAAgF;AAChF,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,0CAA0C;AAC1C,IAAI,MAAM,GAAuB,EAAS,CAAA;AAC1C,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAChF,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,OAAO,GAAuB,MAAM,CAAA;AAGL,yBAAM;AAF3C,MAAM,MAAM,GAAoB,KAAK,CAAA;AAElB,uBAAK;AACxB,kBAAe,MAAM,CAAA"}