@knapsack/core 4.101.0--canary.7991.b04e09f.0 → 4.101.0--canary.8052.eaecabb.0
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/branches.d.ts +22 -0
- package/dist/branches.d.ts.map +1 -1
- package/dist/docs-urls.d.ts +21 -13
- package/dist/docs-urls.d.ts.map +1 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/branches.d.ts
CHANGED
|
@@ -11,4 +11,26 @@ export declare const canInstanceStatusEdit: ({ instanceStatus, }: {
|
|
|
11
11
|
export declare const canInstanceStatusPublish: ({ instanceStatus, }: {
|
|
12
12
|
instanceStatus: SiteInstanceStatuses_Enum;
|
|
13
13
|
}) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* URL slugs that can never name a read-only deploy, because the router already
|
|
16
|
+
* gives them meaning: `latest` is the editable Cloud Authoring environment and
|
|
17
|
+
* `draft` is a reserved instance tag that site loading throws on.
|
|
18
|
+
*
|
|
19
|
+
* The single source of truth for this rule. Enforced by the admin mutation that
|
|
20
|
+
* writes `readOnlyDeploys`, and used by site loading to decide whether a URL
|
|
21
|
+
* segment is even a candidate for slug resolution. Deliberately not a database
|
|
22
|
+
* constraint, so the rule can change without shipping a migration.
|
|
23
|
+
*/
|
|
24
|
+
export declare const RESERVED_INSTANCE_SLUGS: readonly ["latest", "draft"];
|
|
25
|
+
export type ReservedInstanceSlug = (typeof RESERVED_INSTANCE_SLUGS)[number];
|
|
26
|
+
export declare function isReservedInstanceSlug(slug: string): slug is ReservedInstanceSlug;
|
|
27
|
+
/**
|
|
28
|
+
* A read-only deploy slug must be URL-safe: lowercase alphanumerics with
|
|
29
|
+
* internal hyphens only, no leading or trailing hyphen, at least one character.
|
|
30
|
+
*
|
|
31
|
+
* The single source of truth for this rule, enforced by the admin mutation that
|
|
32
|
+
* writes `readOnlyDeploys`.
|
|
33
|
+
*/
|
|
34
|
+
export declare const READ_ONLY_DEPLOY_SLUG_REGEX: RegExp;
|
|
35
|
+
export declare function isUrlSafeReadOnlyDeploySlug(slug: string): boolean;
|
|
14
36
|
//# sourceMappingURL=branches.d.ts.map
|
package/dist/branches.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branches.d.ts","sourceRoot":"","sources":["../src/branches.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E,eAAO,MAAM,2BAA2B,EAAE,yBAAyB,EAElE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,yBAAyB,EAGrE,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,yBAAyB,EACpC,CAAC;AAEzC,eAAO,MAAM,2BAA2B,GAAI,qBAEzC;IACD,cAAc,EAAE,yBAAyB,CAAC;CAC3C,KAAG,OAAyE,CAAC;AAE9E,eAAO,MAAM,qBAAqB,GAAI,qBAEnC;IACD,cAAc,EAAE,yBAAyB,CAAC;CAC3C,KAAG,OAA+D,CAAC;AAEpE,eAAO,MAAM,wBAAwB,GAAI,qBAEtC;IACD,cAAc,EAAE,yBAAyB,CAAC;CAC3C,KAAG,OAAkE,CAAC"}
|
|
1
|
+
{"version":3,"file":"branches.d.ts","sourceRoot":"","sources":["../src/branches.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E,eAAO,MAAM,2BAA2B,EAAE,yBAAyB,EAElE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,yBAAyB,EAGrE,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,yBAAyB,EACpC,CAAC;AAEzC,eAAO,MAAM,2BAA2B,GAAI,qBAEzC;IACD,cAAc,EAAE,yBAAyB,CAAC;CAC3C,KAAG,OAAyE,CAAC;AAE9E,eAAO,MAAM,qBAAqB,GAAI,qBAEnC;IACD,cAAc,EAAE,yBAAyB,CAAC;CAC3C,KAAG,OAA+D,CAAC;AAEpE,eAAO,MAAM,wBAAwB,GAAI,qBAEtC;IACD,cAAc,EAAE,yBAAyB,CAAC;CAC3C,KAAG,OAAkE,CAAC;AAEvE;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,8BAA+B,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,GACX,IAAI,IAAI,oBAAoB,CAM9B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,QAAoC,CAAC;AAE7E,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEjE"}
|
package/dist/docs-urls.d.ts
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
export declare const DOCS_URLS: {
|
|
2
|
-
readonly HOME: "https://docs.knapsack.cloud
|
|
3
|
-
readonly CONNECTING_DESIGN_SOURCES: "https://docs.knapsack.cloud/
|
|
4
|
-
readonly FIGMA_PLUGIN: "https://docs.knapsack.cloud/
|
|
2
|
+
readonly HOME: "https://docs.knapsack.cloud";
|
|
3
|
+
readonly CONNECTING_DESIGN_SOURCES: "https://docs.knapsack.cloud/figma-design-source";
|
|
4
|
+
readonly FIGMA_PLUGIN: "https://docs.knapsack.cloud/design-tokens/figma-plugin";
|
|
5
5
|
readonly FIGMA_FILE_VERSIONING: "https://help.figma.com/hc/en-us/articles/360038006754-View-a-file-s-version-history";
|
|
6
6
|
readonly FIGMA_FILE_SIZE_LIMIT: "https://www.figma.com/best-practices/team-file-organization";
|
|
7
|
-
readonly ENVIRONMENTS: "https://docs.knapsack.cloud/
|
|
8
|
-
readonly DEPLOYING_TO_PRODUCTION: "https://docs.knapsack.cloud/
|
|
9
|
-
readonly RUNNING_KNAPSACK_LOCALLY: "https://docs.knapsack.cloud/
|
|
10
|
-
readonly UPDATING_KNAPSACK: "https://docs.knapsack.cloud/
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
7
|
+
readonly ENVIRONMENTS: "https://docs.knapsack.cloud/get-started/knapsack-config";
|
|
8
|
+
readonly DEPLOYING_TO_PRODUCTION: "https://docs.knapsack.cloud/get-started/deploying-knapsack";
|
|
9
|
+
readonly RUNNING_KNAPSACK_LOCALLY: "https://docs.knapsack.cloud/get-started/running-knapsack-locally";
|
|
10
|
+
readonly UPDATING_KNAPSACK: "https://docs.knapsack.cloud/get-started/updating-knapsack";
|
|
11
|
+
readonly BRANCHING: "https://docs.knapsack.cloud/branching";
|
|
12
|
+
readonly CONCURRENT_EDITING: "https://docs.knapsack.cloud/concurrent-editing";
|
|
13
|
+
readonly ADDING_TEMPLATES: "https://docs.knapsack.cloud/documentation/patterns";
|
|
14
|
+
readonly CONNECTING_CODE: "https://docs.knapsack.cloud/code-sources";
|
|
15
|
+
readonly ASSET_SETS: "https://docs.knapsack.cloud/code-sources/asset-sets";
|
|
16
|
+
readonly PROTOTYPING: "https://docs.knapsack.cloud/composition-and-prototyping/prototyping";
|
|
17
|
+
readonly SLOTS_AND_SUB_COMPONENTS: "https://docs.knapsack.cloud/composition-and-prototyping/slots-and-sub-components";
|
|
18
|
+
readonly IMPORTING_TOKENS: "https://docs.knapsack.cloud/design-tokens/importing-tokens";
|
|
19
|
+
readonly TOKENS_AND_VARIABLES: "https://docs.knapsack.cloud/design-tokens";
|
|
20
|
+
readonly TEAM_MANAGEMENT: "https://docs.knapsack.cloud/administrative/team-management";
|
|
21
|
+
readonly CLAUDE: "https://docs.knapsack.cloud/intelligent-tools/configure-with-claude";
|
|
22
|
+
readonly VS_CODE: "https://docs.knapsack.cloud/intelligent-tools/configure-with-vs-code";
|
|
23
|
+
readonly LEARN_MORE: "https://docs.knapsack.cloud/intelligent-tools";
|
|
24
|
+
readonly EXAMPLE_PROMPTS: "https://docs.knapsack.cloud/intelligent-tools/data-sources";
|
|
17
25
|
};
|
|
18
26
|
//# sourceMappingURL=docs-urls.d.ts.map
|
package/dist/docs-urls.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-urls.d.ts","sourceRoot":"","sources":["../src/docs-urls.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"docs-urls.d.ts","sourceRoot":"","sources":["../src/docs-urls.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;CAqCZ,CAAC"}
|